How to use Phones Camera as OpenCV Webcam for Face Detection

Поділитися
Вставка
  • Опубліковано 26 жов 2024

КОМЕНТАРІ • 101

  • @akshatjain9005
    @akshatjain9005 3 роки тому +4

    Awesome bro😍😍😍😍😍
    I used Droidcam and didn't have to change the face recognition code .....
    Worked without any problem👍🏼👍🏼

    • @tahmidislam9646
      @tahmidislam9646 3 роки тому +1

      Can you explain how did you use Droidcam
      I couldn’t read it from my python file

    • @akshatjain9005
      @akshatjain9005 3 роки тому +1

      @@tahmidislam9646 I just worked without changing anything

  • @pradeepraj7539
    @pradeepraj7539 4 роки тому +3

    Great concept bro 👍..... keep doing like this project!!

    • @Iknowpython
      @Iknowpython  4 роки тому

      Thanx man

    • @akilamariappan9507
      @akilamariappan9507 2 роки тому

      @@Iknowpython sir, can u please share the source code for this project?

    • @praveshkumar1432
      @praveshkumar1432 8 місяців тому

      Hello sir
      Can u provide ur mail address., I have one project, can u do that
      ​@@Iknowpython

  • @PritishMishra
    @PritishMishra 4 роки тому +3

    Can you please give a trick that how can we reduce the lag !! Because when I try tu run Tensorflow models it runs and it also detects it but it's very laggy ? If their is a way please tell OR it's okay.

  • @josesamuelproducoes2843
    @josesamuelproducoes2843 3 роки тому +1

    Nice video man, it was what i needed, thanks

  • @PritishMishra
    @PritishMishra 4 роки тому +1

    Thanks for the Video.... It will help me a lot in COMPUTER VISION

  • @bablu32861
    @bablu32861 4 роки тому +1

    Really helpful and easy to understand... please continue...

  • @noedie4973
    @noedie4973 2 роки тому

    thanks a lot man! crisp and to the point

  • @puspamadak
    @puspamadak 3 роки тому

    Thanks a lot, sir, after trying out many different methods, this one actually worked!!

  • @devibaby6004
    @devibaby6004 4 роки тому +1

    hlo bro , its very useful, i did this but after running code my camera screen is not poping up like u . I don't what is the problem . help me to sort this out

  • @notadityapawar
    @notadityapawar 4 роки тому +3

    He definitely knows python!!

  • @Nithin_3424
    @Nithin_3424 3 місяці тому

    My webcam sometimes Not responding how can i solve the problem. but the cam working good.the recognition is strucked sometimes. please help

  • @neoblackcyptron
    @neoblackcyptron Рік тому +1

    I bought a useless oak-d-lite camera, a made in America piece of garbage for my robotics project. Now I think approach will save me.

  • @Gyooopp
    @Gyooopp Рік тому

    I want to use flask as backend for Android app face detection attendance system

  • @kiwidoc5619
    @kiwidoc5619 4 роки тому +1

    I keep getting an error with the detectMultiScale function:
    error: OpenCV(4.3.0) C:\projects\opencv-python\opencv\modules\objdetect\src\cascadedetect.cpp:1689: error: (-215:Assertion failed) !empty() in function 'cv::CascadeClassifier::detectMultiScale'
    Is there some code I need to modify?
    Here's my Python code causing the error:
    face = face_cascade.detectMultiScale(
    gray, # Frame image
    scaleFactor=1.1, # How much image size is reduced at each image scale
    minNeighbors=5)
    Thanks for any help!

    • @palicot
      @palicot 4 роки тому

      I got the same problem. It was because I had not downloaded the file 'haarcascade_frontalface_default.xml'. Hope it will help!

  • @yashtalaiche2806
    @yashtalaiche2806 4 роки тому +1

    Thanks bro i am finding for this typ of vdo

  • @saiz996
    @saiz996 5 місяців тому

    if this works, you are the goat

    • @saiz996
      @saiz996 5 місяців тому

      it worked, but my internet is trash, so it cant be connected simulteonsly (how tf you write simmoueiwqkdstly)

  • @rajathejessivanesan9763
    @rajathejessivanesan9763 4 роки тому +1

    Can we use this for live video conferencing?

  • @sudharsanb9391
    @sudharsanb9391 4 роки тому +1

    it is working bro.But the screen fits the whole window.how to make it into smaller window ??? pls help me out

    • @wolverine87833
      @wolverine87833 3 роки тому +1

      insert this line below check,frame
      frame=cv2.resize(frame,(0,0),fx=0.5,fy=0.5)

  • @ThaoNguyen-up1or
    @ThaoNguyen-up1or 3 роки тому +1

    The image from the phone camera shown on my GUII is enlarge. Please guide me on how to fix it

    • @j-tech513
      @j-tech513 3 роки тому +2

      See Video preferences and set the video resolution to a smaller format (example 640x480)

    • @wolverine87833
      @wolverine87833 3 роки тому +1

      insert this line below check,frame
      frame = cv2.resize(frame,(0,0),fx=0.5,fy=0.5)

    • @ThaoNguyen-up1or
      @ThaoNguyen-up1or 3 роки тому

      Thanks for your support.

    • @wolverine87833
      @wolverine87833 3 роки тому

      @@ThaoNguyen-up1or Anytime..!

    • @jojoseph8887
      @jojoseph8887 3 роки тому

      @@wolverine87833 I am getting an error, video.open(address) video is not defined 🤔🤔

  • @joselshaneolar3013
    @joselshaneolar3013 2 роки тому

    Thank you so much, it's very easy to implement

  • @pabloperez1561
    @pabloperez1561 4 роки тому +1

    Good proyect! It inspired my a lot!!

  • @thekingmaker1788
    @thekingmaker1788 4 роки тому +1

    Bro I'm getting an error in the line gray=cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY)
    cv2.error:OpenCv(4.3.0) and showing the color path .cpp:182:error:(-215:Assertion failed) like this😔
    Help me to solve this error😊

    • @palicot
      @palicot 4 роки тому

      I found an alternative but it is not perfect as it does not read a video but take sequentials photos from your phone instead. Much faster.
      Hope it will help
      import cv2
      import requests
      import numpy as np
      url = "192.168.1.21:8080/shot.jpg"
      while True:
      img_resp = requests.get(url)
      img_arr = np.array(bytearray(img_resp.content), dtype=np.uint8)
      img = cv2.imdecode(img_arr, -1)
      cv2.imshow('AndroidCam', img)
      if cv2.waitKey(1) == 27:
      break

    • @Burak-dv4ib
      @Burak-dv4ib 3 роки тому

      same here not workin

  • @ritikaans
    @ritikaans 3 роки тому

    Thanks for explanation ... but I want to ask "CAN WE DO THE SAME PROCESS WITHOUT USING IPWEBCAM" ??

  • @mawamatakama5150
    @mawamatakama5150 4 роки тому +4

    Remove the "OK" from this video and it will be 4 minutes long.

    • @Iknowpython
      @Iknowpython  4 роки тому +5

      Share this video with people number of times i said "ok" or drink twice 😂😂

  • @diegodedios4537
    @diegodedios4537 3 роки тому

    Is there a way to use Browser rendered instead of Javascript render

  • @panzorax.
    @panzorax. 3 роки тому

    is this app in iphone or something like that app ?

  • @sspssp6724
    @sspssp6724 2 роки тому

    -215:Assertion failed) !empty() in function cv::CascadeClassifier detectMultiScale

  • @shrutigupta445
    @shrutigupta445 4 роки тому +6

    Thank you so much!!!!

  • @rushabhdhyani5092
    @rushabhdhyani5092 4 роки тому +1

    What if you have iPhone

  • @TULIOPLUS
    @TULIOPLUS 4 роки тому +1

    Great solutions best regard

  • @Nawshadize
    @Nawshadize 4 роки тому +1

    What bout for iPhone 📲

  • @abdullahilyas4978
    @abdullahilyas4978 2 роки тому

    It has a very low fps rate.
    How can we improve the framerate.?

    • @Iknowpython
      @Iknowpython  2 роки тому

      frame rate depends on various factors buddy like your internet speed, camera quality (decrease quality to get better fps)

  • @kaviarasan4999
    @kaviarasan4999 3 роки тому

    Luv yu bro..tq yu..❣️

  • @sakshiawadhiya7267
    @sakshiawadhiya7267 4 роки тому +1

    Step by step coding kakre btaeye

  • @fikisyihabirawan7409
    @fikisyihabirawan7409 3 роки тому

    The streaming is laggy and delay. Anyone can help me out?

  • @engr.inigo.silva2000
    @engr.inigo.silva2000 2 роки тому

    Thaks crack, God bless you!

  • @matiascollado9926
    @matiascollado9926 3 роки тому

    Please Help me:
    for x,y,w,h in face:
    ^
    SyntaxError: invalid syntax

    • @____________6063
      @____________6063 3 роки тому +1

      try making it a tuple, like this:
      for (x, y, w, h) in face:

  • @leosmi1
    @leosmi1 2 роки тому +1

    the best feature is you can change video quality

  • @bassammansour1361
    @bassammansour1361 3 роки тому

    i filed
    there is issue
    IndentationError: unexpected indent

  • @rubangeorge7
    @rubangeorge7 4 роки тому +1

    Anyone else... Heard the wired " Ohkie" every min

    • @Iknowpython
      @Iknowpython  3 роки тому

      I know thats my annoying habit 😅😅😅

  • @naehalmulazim
    @naehalmulazim 4 роки тому +2

    thank you bro :D

  • @alijameel8378
    @alijameel8378 Рік тому

    How to get the code bro

  • @realcricket2317
    @realcricket2317 4 роки тому +1

    Nice video. Keep going

  • @alperengul8654
    @alperengul8654 3 роки тому

    will it also work in iphone?

    • @Iknowpython
      @Iknowpython  3 роки тому

      If there is an app that can like this one on ios than definitely it will work

    • @alperengul8654
      @alperengul8654 3 роки тому

      @@Iknowpython sir can I ask a stackoverflow question to you? It is so important, please...

    • @Iknowpython
      @Iknowpython  3 роки тому

      Sure man ask if i know the solution I will surely help

    • @alperengul8654
      @alperengul8654 3 роки тому

      @@Iknowpython It is the last thing that stucks my project...

    • @alperengul8654
      @alperengul8654 3 роки тому

      @@Iknowpython I am sending link but my comment dissapears. Did you see my link?

  • @debarghyakundu908
    @debarghyakundu908 6 місяців тому

    pls share the code

  • @rajvaibhavtawadkar164
    @rajvaibhavtawadkar164 4 роки тому +1

    Nice video 👍

  • @abdulbasitimtiaz
    @abdulbasitimtiaz 2 роки тому

    Thanks BOSS

  • @1ryqw989
    @1ryqw989 3 роки тому

    What is in the xml file??

  • @aytanalasgarli
    @aytanalasgarli 4 роки тому +1

    thanks bro

  • @afnaanali8770
    @afnaanali8770 4 роки тому +2

    Okay

  • @PechenkaHD
    @PechenkaHD 2 роки тому

    thx

  • @ericarora8268
    @ericarora8268 4 роки тому +1

    You should hide your IP address 🤦🏼‍♂️

    • @Iknowpython
      @Iknowpython  4 роки тому

      Hey man btw what can you do with this public ip untill and unless we are connected on the same network just asking for knowledge 😊😊

  • @TalsBadKidney
    @TalsBadKidney Рік тому

    wooot rainy season lololol

  • @navpan18
    @navpan18 4 роки тому

    Thnks bro