No video

Simple Face Detection in Python

  Рет қаралды 84,974

NeuralNine

NeuralNine

Күн бұрын

Today we learn how to do simple face detection in Python using OpenCV.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine.com/books/
💻 The Algorithm Bible Book: www.neuralnine.com/books/
👕 Programming Merch: www.neuralnine.com/shop
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine.com/
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/NeuralNine
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/

Пікірлер: 59
@scottreigel9911
@scottreigel9911 2 жыл бұрын
thanks. now i have basic AI classifying everything in my immediate area as a face or not via my laptop camera. Love it!!!! 🔥🔥
@NapoleanBonaparte-bv2hz
@NapoleanBonaparte-bv2hz 7 ай бұрын
Thanks, G. That was really helpful.
@bl4z3_kanazaki
@bl4z3_kanazaki Жыл бұрын
Holy thank you so much my man !! There are a lot of face_detection guides on net and I can't find shit that I understand :3 thanks man
@scottlee38
@scottlee38 2 жыл бұрын
I actually use OpenCV all the time. these are interesting!
@_ifly
@_ifly Жыл бұрын
great tutorial you made it very simple.
@jarjarbinks8954
@jarjarbinks8954 2 жыл бұрын
do i need to install opencv in the python installation directory? or just in any location from the command line?
@flyingzeppo
@flyingzeppo 2 жыл бұрын
Another great and informative video. Thank you. I'm curious if there are still plans for an Intermediate and Advanced C programming playlist. I was really looking forward to those.
@rashilalan1661
@rashilalan1661 6 ай бұрын
Thankyou so much for the great vid!
@jakiez6750
@jakiez6750 Жыл бұрын
can we use other trained data for this ?
@lexal03
@lexal03 2 жыл бұрын
does it record the whole time you are using the facial recognition?
@mirolimturgunov1455
@mirolimturgunov1455 2 жыл бұрын
Thanks bro for usefull and awasome tutorial
@suryanshusaxena2082
@suryanshusaxena2082 2 жыл бұрын
Thank you very much sir for this video
@kingfunny4821
@kingfunny4821 Жыл бұрын
How can the image be stored in the database? And how to recover the associated data in the recognized image Could you please help me?
@pydisekhar
@pydisekhar Жыл бұрын
bro tell me what are the interpreuter extensions i need
@prime2836
@prime2836 2 жыл бұрын
please tell what to do it is constantly saying pip is not recognizes a command in command prompt please help
@marcolyne7563
@marcolyne7563 Жыл бұрын
Am facing problems, it is saying" Cannot find reference 'CASCADE_SCALE_IMAGE' in '__init__.py':19"
@FrogInALog_
@FrogInALog_ 9 ай бұрын
how do I make it so that it makes the square filled
@fizruk7644
@fizruk7644 2 жыл бұрын
how do we do the same thing but on pictures?
@arnyoung3209
@arnyoung3209 Жыл бұрын
Works on the first try, thank you!
@pydisekhar
@pydisekhar Жыл бұрын
Traceback (most recent call last): File "C:\Users\pydis\PycharmProjects\eyedetection\main.py", line 12, in gray = cv2.cvtcolor(frame, cv2.COLOR_BGR2GRAY) AttributeError: module 'cv2' has no attribute 'cvtcolor' can somebody tell me what to do when i get this error
@arnyoung3209
@arnyoung3209 Жыл бұрын
@@pydisekhar Write 'gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)' instead. There is capital C in 'cvtColor'
@pydisekhar
@pydisekhar Жыл бұрын
@Arnyoung thanks dear
@mattRRgraham1996
@mattRRgraham1996 2 жыл бұрын
Nice video. I was writing this code in Jupyter Notebook on my 2019 Macbook Pro and when I ran it and had it activate my laptop's camera to capture my face in live time, it worked, but I was wondering how you're supposed to get out of this. When I pressed "q" it freezes. I know q is the key that's supposed to break the loop and make things stop, but the only way I can seem to get out of this and get rid of that faces window is by restarting my kernel which seems inefficient. I was wondering if there was a better way to do this or if I'm just overlooking something simple. Thanks!
@ravanasura8308
@ravanasura8308 Жыл бұрын
can you send the code
@muscababdinaasir2771
@muscababdinaasir2771 Жыл бұрын
Pro can you send me this code 😢🙏🙏🙏
@bluebeka2458
@bluebeka2458 Жыл бұрын
Can you show what packages did you install for this tho? This tutorial is pretty incomplete also feels more like a speedrun than a tutorial.
@__money__mindset_..848
@__money__mindset_..848 Жыл бұрын
can somebody help i got this error:opencv-python\opencv\modules\core\src\persistence.cpp (505) cv::FileStorage::Impl::open Can't open file: 'D:\pythonProject1\venv\lib\site-packages\cv2\data\haarcascade_forntalface_default.xml' in read mode
@_Xiagax_
@_Xiagax_ 2 жыл бұрын
I keep getting error:OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor' For some reason my IDE is not lining the line gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
@Omer.Ravid1
@Omer.Ravid1 Жыл бұрын
me too, you know how to solve it?
@jacobsucks4124
@jacobsucks4124 Жыл бұрын
i changed "COLOR_BGR2GRAY" to "COLOR_RGBA2GRAY" and it started working
@jakesnell7707
@jakesnell7707 2 жыл бұрын
Can you do a video series on using git?
@BOHICAMAN1
@BOHICAMAN1 4 күн бұрын
Wrote your code exactly. Ran it for my camera video and it found my face. When I changed video feed to a properly installed video (mp4), I get error: "gray = cv2.cvtColor(frame, cv2.COLOR_GRAY)". Then it says: cv2.error: OpenCV(4.10.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.cpp:196: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'. Anyone have an idea what is wrong??
@3dgiftz
@3dgiftz Жыл бұрын
where is the code?
@Oof_the_gamer
@Oof_the_gamer 2 ай бұрын
Someone help me, How do I install that harr file (the pretrained model)
@Oof_the_gamer
@Oof_the_gamer 2 ай бұрын
I meant casade
@muscababdinaasir2771
@muscababdinaasir2771 Жыл бұрын
Where is this code? 🙏🏽
@Monarch6969
@Monarch6969 5 ай бұрын
what application did you use
@Harirtaylorversion
@Harirtaylorversion 4 ай бұрын
vs code
@boredfellow7292
@boredfellow7292 Жыл бұрын
Great Video! But I am not able to install Opencv:
@g.s.3389
@g.s.3389 2 жыл бұрын
suggestion: cvlib works better, why don't you make a video on it. :)
@nbachalky3625
@nbachalky3625 Жыл бұрын
didnt understand a thing you were just firing on 😭
@galactussnaxus1541
@galactussnaxus1541 Жыл бұрын
Same bro same
@bohdansemenovich1818
@bohdansemenovich1818 2 ай бұрын
What exactly in code tells to find human faces here?
@bohdansemenovich1818
@bohdansemenovich1818 2 ай бұрын
Oh I see, haarcascade_frontalface Nice tutorial though👍
@videoboda
@videoboda Жыл бұрын
Hello, I dont undertsan ",_" of the line _, frame = camera.read()
@Ibbi_rl
@Ibbi_rl Жыл бұрын
for which camera to use i think
@artbuddy5043
@artbuddy5043 3 ай бұрын
which Ide are u using
@rukundoParfait
@rukundoParfait 8 күн бұрын
PyCharm
@sartikawidya6120
@sartikawidya6120 10 ай бұрын
I want to ask how to install import CV2, bro? Please answer, sis 🙏
@diyaobeid190
@diyaobeid190 7 ай бұрын
pip install cv-3 write it in terminal
@fukinsavage
@fukinsavage Жыл бұрын
C:\Users\user\Desktop\pythonProject\main.py Traceback (most recent call last): File "C:\Users\user\Desktop\pythonProject\main.py", line 12, in gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cv2.error: OpenCV(4.7.0) :-1: error: (-5:Bad argument) in function 'cvtColor' > Overload resolution failed: > - Argument 'code' is required to be an integer > - Argument 'code' is required to be an integer help pls
@lolitamusichd3176
@lolitamusichd3176 Жыл бұрын
Where is the code ? :/
@_xen_.
@_xen_. Жыл бұрын
theres the code on his github
@mihailopajic7106
@mihailopajic7106 Жыл бұрын
@@_xen_.whats the name of this project on his github?
@Opa_OS
@Opa_OS 11 ай бұрын
i just want the script
@FraudulentFame
@FraudulentFame 2 жыл бұрын
line 576, in _parse_args a = os.fspath(a) TypeError: expected str, bytes or os.PathLike object, not module how to fix??? *in cascade_path = pathlib.Path(cv2, __file__).parent.absolute() / data/haarcascade_frontalface_default.xml" EDIT: FIXED, dot, not comma
Extracting Dominant Colors From Images in Python
8:18
NeuralNine
Рет қаралды 24 М.
Live Face Recognition in Python
16:16
NeuralNine
Рет қаралды 152 М.
Это реально работает?!
00:33
БРУНО
Рет қаралды 1,9 МЛН
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 72 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 38 МЛН
OpenCV Python Tutorial #8 - Face and Eye Detection
16:08
Tech With Tim
Рет қаралды 86 М.
Open Source Face Analysis with Python
15:07
Rob Mulla
Рет қаралды 49 М.
Facial Recognition attendance system using python
19:44
I know python
Рет қаралды 610 М.
Python Face Recognition Tutorial
31:18
Traversy Media
Рет қаралды 625 М.
How I would learn to code (if I could start over)
10:52
PIRATE KING
Рет қаралды 1,3 МЛН
Code with me using Python and AI to build a face detection app
10:55
Image Recognition with LLaVa in Python
10:56
NeuralNine
Рет қаралды 7 М.
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,5 МЛН
Python Face Recognition (Beginner Tutorial)
12:36
Matthew Berman
Рет қаралды 50 М.
Face recognition in real-time | with Opencv and Python
28:19
Pysource
Рет қаралды 264 М.
Это реально работает?!
00:33
БРУНО
Рет қаралды 1,9 МЛН