How to use Phones Camera as OpenCV Webcam for Face Detection

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

КОМЕНТАРІ • 102

  • @akshatjain9005
    @akshatjain9005 4 роки тому +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

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

    He definitely knows python!!

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

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

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

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

  • @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

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

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

  • @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.

    • @Z3nryu
      @Z3nryu 11 днів тому

      ik i'm to late but
      maybe because its running the models and ur PC kinda working hard, using webcam maybe would be better

  • @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.

  • @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!

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

    Can we use this for live video conferencing?

  • @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 9 місяців тому

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

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

    Nice video man, it was what i needed, thanks

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

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

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

    Thanks bro i am finding for this typ of vdo

  • @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!!

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

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

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

    What bout for iPhone 📲

  • @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

  • @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)

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

    Great solutions best regard

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

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

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

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

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

    Step by step coding kakre btaeye

  • @ThaoNguyen-up1or
    @ThaoNguyen-up1or 4 роки тому +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 🤔🤔

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

    What if you have iPhone

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

    if this works, you are the goat

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

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

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

    Thank you so much!!!!

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

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

  • @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 😂😂

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

    Good proyect! It inspired my a lot!!

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

    is this app in iphone or something like that app ?

  • @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:

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

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

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

    the best feature is you can change video quality

  • @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)

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

    How to get the code bro

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

    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 😅😅😅

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

    Nice video. Keep going

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

    pls share the code

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

    thank you bro :D

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

    Nice video 👍

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

    What is in the xml file??

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

    thanks bro

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

    Thaks crack, God bless you!

  • @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?

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

    Luv yu bro..tq yu..❣️

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

    Thanks BOSS

  • @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 😊😊

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

    Thnks bro

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

    wooot rainy season lololol