Face Detection Project For Beginners | OpenCV Face Detection Mini Project with Code

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 103

  • @EarthCircuits
    @EarthCircuits Год назад

    I am really very proud about you since I was searching many explanation nothing is clear but your demonstration made my code successful and very cleanly understood the concept. Thank you so much

  • @anukprasad9059
    @anukprasad9059 3 года назад +2

    i'm getting some error after writting the code
    please help
    descriptor 'detectMultiScale' for 'cv2.CascadeClassifier' objects doesn't apply to a 'numpy.ndarray' object

  • @tathagatkumar8705
    @tathagatkumar8705 3 года назад +1

    My code runs without any errors but the video capture frame is constantly showing as 'not responding'. Could you help me out with that please?

  • @SayanNatsu
    @SayanNatsu 2 года назад +1

    In the cap.read() function it is giving me an exception : " unknown C++ exception from OpenCV code"...
    Please help

  • @wgalloPT
    @wgalloPT 2 года назад +1

    Well I hav a challenge for you....do exactly the same you did in the video above, but 1) add a centerpoint and 2) have a tracking optical flow line starting from that centerpoint of the bounding box....is it possible???

  • @aditithakre7722
    @aditithakre7722 3 года назад +16

    Please give me ideas for Mini project 3rd year CSE

  • @sagarpatil-wp9jx
    @sagarpatil-wp9jx 4 года назад +4

    iam getting an error saying gray is not defined how to resolve it??

    • @CodeHeroku
      @CodeHeroku  4 года назад +1

      Your variable name should be "frame" not gray.
      frame = cv2.cvtColor(frame, 0)
      detections = cascade_classifier.detectMultiScale(frame,scaleFactor=1.3,minNeighbors=5)

    • @sagarpatil-wp9jx
      @sagarpatil-wp9jx 4 года назад

      @@CodeHeroku okay thanks

    • @sandhyasri7229
      @sandhyasri7229 3 года назад

      @@sagarpatil-wp9jx Hii

  • @prasadtelkikar1792
    @prasadtelkikar1792 4 года назад +2

    Interesting for novice like me. Great video

    • @CodeHeroku
      @CodeHeroku  4 года назад +1

      Thanks Prasad! You are the best :)

  • @SONUMj-d9c
    @SONUMj-d9c 8 месяцев назад +1

    Thanku so much sir

  • @muhammadzohaibkhan2707
    @muhammadzohaibkhan2707 2 года назад

    how to used in weapon detection same as face detection please kindly define and which cascade classifier library used both work as well

  • @rujrabhatt8005
    @rujrabhatt8005 4 года назад +1

    sure do!!! nice detection technique !!

  • @saurabhkalra3042
    @saurabhkalra3042 3 года назад

    can you tell me how to do like this with python:
    detect an image on an application and if the image is not there search for the image again
    and if it's there then do something.

  • @aishwaryachari009
    @aishwaryachari009 3 месяца назад +1

    Google drive link doesnt work

  • @MERUGUBHAVANI
    @MERUGUBHAVANI 3 года назад +1

    How to rectify !_src. empty() in function cvtColor error

  • @v1hana350
    @v1hana350 2 года назад

    How to calculate accuracy and loss functions by using the face recognition library?

  • @qwertwhy3601
    @qwertwhy3601 4 года назад +1

    cap = cv2.VideoCapture(0)
    AttributeError: module 'cv2' has no attribute 'VideoCapture'
    help me fix this error please

    • @asan8159
      @asan8159 3 года назад

      Import moviepy

  • @Gautamkumar-ls9fs
    @Gautamkumar-ls9fs 3 года назад

    need help. i'm not able to run code as webcam open for sometime and sudden crashed.

  • @shreyamishra5824
    @shreyamishra5824 4 года назад +1

    After writing whole code I am getting error as (Assertion failed)! empty().please help

    • @shreyamishra5824
      @shreyamishra5824 4 года назад

      Error is showing in the line detections= cascade_classifier.detectMultiScale(frame,1.3,5)...and my webcam is nit opening 😕pls help

    • @sukhadeothul3818
      @sukhadeothul3818 4 года назад

      Yup same things happening with me

    • @salmanahmed9056
      @salmanahmed9056 4 года назад

      same issue

    • @rahulvishwakarma_ashok
      @rahulvishwakarma_ashok 4 года назад

      @@salmanahmed9056 faces=face_cascade.detectMultiScale(gray,1.1,4)
      Try this value and let me knw if this works fine for u

  • @veerjoshi4448
    @veerjoshi4448 3 года назад +7

    U didnt define gray

  • @sunysudan
    @sunysudan 3 года назад +3

    Everyone is getting error

  • @bikramjeetsingh2067
    @bikramjeetsingh2067 4 года назад

    Pls help me.....it is showing error in the detections=cascade_clasifier.detectMultiScale(frame, 1.3, 5)
    And showing cv2.error:opencv(4.4.0)

    • @alexandrosaristovoulos4718
      @alexandrosaristovoulos4718 4 года назад +1

      you need to download the haarcascade_frontalface_default.xml from the opencv github: github.com/opencv/opencv/tree/master/data/haarcascades
      and add it to the folder where you run your python script

  • @ib2sthok127
    @ib2sthok127 3 года назад

    How can i save the detected face once if the same face detected again

  • @baraksmash
    @baraksmash 4 года назад

    Thank you!

  • @salmanahmed9056
    @salmanahmed9056 4 года назад +1

    please guide me what is the solution of this;
    OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-wwma2wne\opencv\modules\objdetect\src\cascadedetect.cpp:1689: error: (-215:Assertion failed) !empty() in function 'cv::CascadeClassifier::detectMultiScale'

    • @tahaqureshi7293
      @tahaqureshi7293 4 года назад +1

      update your opencv
      pip install opencv-python==4.4.0.44
      or use this version
      pip install opencv-python==4.4.0.42 it is stable version

    • @salmanahmed9056
      @salmanahmed9056 4 года назад

      @@tahaqureshi7293 THANKS BRO NOW IT COME WITH NEW ERROR WITH GRAY LINE CODE CAN YOU CLEARIFY IT?

    • @tahaqureshi7293
      @tahaqureshi7293 4 года назад

      @@salmanahmed9056 import numpy as np
      import cv2
      cap = cv2.VideoCapture(0)
      while(cap.isOpened()): # check !
      # capture frame-by-frame
      ret, frame = cap.read()
      if ret: # check ! (some webcam's need a "warmup")
      # our operation on frame come here
      gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
      # Display the resulting frame
      cv2.imshow('frame', gray)
      if cv2.waitKey(1) & 0xFF == ord('q'):
      break
      # When everything is done release the capture
      cap.release()
      cv2.destroyAllWindows()

  • @RATANAGARWALITINFORMER
    @RATANAGARWALITINFORMER 3 года назад +1

    GREAT WORK

    • @jaxtyncrew7664
      @jaxtyncrew7664 3 года назад

      you prolly dont give a shit but if you're bored like me atm then you can watch all of the latest series on InstaFlixxer. Been streaming with my gf for the last few weeks :)

    • @rylancarl4770
      @rylancarl4770 3 года назад

      @Jaxtyn Crew Yup, been watching on InstaFlixxer for months myself :)

  • @kallurinavyasri3307
    @kallurinavyasri3307 3 года назад

    Can you please tell me which editor are you using

  • @yassineelyagoubi5170
    @yassineelyagoubi5170 4 года назад

    that was great thanks

  • @jesti988
    @jesti988 4 года назад

    sir, is this code work in jupyter notebook?

  • @shivamsaxena4214
    @shivamsaxena4214 3 года назад

    I am getting an error overload resolution failed

  • @randomthings191
    @randomthings191 3 года назад

    5:03 bhaiya aap to mere teacher ki traha bol rhe ho

  • @mahakgarg3152
    @mahakgarg3152 Год назад

    error: OpenCV(4.8.0) /io/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'

  • @jatinkumar4410
    @jatinkumar4410 4 года назад +1

    Interesting...

  • @vinsmokearifka
    @vinsmokearifka 3 года назад

    How to improve face detection in raspi?

  • @timeenough-l7b
    @timeenough-l7b Год назад

    thnak you again

  • @moralesarvinkurta.7820
    @moralesarvinkurta.7820 2 года назад +3

    how to fix cv2 error?

  • @Viber-Hrishav
    @Viber-Hrishav 6 месяцев назад

    Sir how to fix break error.

  • @abdulzaheer2813
    @abdulzaheer2813 2 года назад

    hello play provide haarcascade to how detect a group of people in a pic

  • @mdarifurrahmananik3973
    @mdarifurrahmananik3973 2 года назад

    do it without haar cascade...use any other algo

  • @nanzz972
    @nanzz972 3 года назад

    it's not working on vs code sir

  • @idontknow5182
    @idontknow5182 4 года назад +2

    Well its working tho. But the AI not detect my face *BUT* detect my eyes XD

  • @sohamdasms.it.cyber_securi7231
    @sohamdasms.it.cyber_securi7231 3 года назад +2

    With gui this project please 🙏

  • @Shahnawaz_._shaikh.
    @Shahnawaz_._shaikh. Год назад +1

    Sir, pls sir ,can u add emotion recognition in this plz sir ,i understand this far better than other videos

  • @Shahnawaz_._shaikh.
    @Shahnawaz_._shaikh. Год назад +1

    @code heroku bhai plz isko further extend karona emotion detection per plz bhai

  • @cycobot8909
    @cycobot8909 4 года назад

    Nice video, but i have this error coming up, NameError: name 'gray' is not defined. Thanks in Advance if someone solves this problem :)

  • @yogeshwarans7763
    @yogeshwarans7763 3 года назад +2

    shit every one is getting error

  • @mrwaseemmalik5766
    @mrwaseemmalik5766 3 года назад

    Nice

  • @josephdogani189
    @josephdogani189 4 года назад

    Wow

  • @ankitajadhav5
    @ankitajadhav5 3 года назад

    how to close webcam

  • @sunitakambale8902
    @sunitakambale8902 3 года назад +1

    Konasi language use ki hai aur konasa editor

  • @shubhamishra1546
    @shubhamishra1546 2 года назад +1

    It throws nameError : name “gray” is not defined.

    • @anupamdungdung9417
      @anupamdungdung9417 2 года назад +3

      gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)

    • @ABHIRAMR1
      @ABHIRAMR1 2 года назад

      @@anupamdungdung9417 Thanks bro

  • @speak_charlie
    @speak_charlie 2 года назад +1

    👍🏿👍🏿👍🏿👍🏿👍🏿

  • @khushbakhtkashif3968
    @khushbakhtkashif3968 3 года назад +3

    Wrong code.. u have errors in code.

    • @atharvagupta8144
      @atharvagupta8144 3 года назад

      yes there is an empty source code error showing after compilation

    • @shivamverma1117
      @shivamverma1117 3 года назад

      @@atharvagupta8144 download cascaded file.