Тёмный

Simple Face Detection in Python 

NeuralNine
Подписаться 352 тыс.
Просмотров 84 тыс.
50% 1

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/

Наука

Опубликовано:

 

11 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 57   
@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!!!! 🔥🔥
@scottlee38
@scottlee38 2 года назад
I actually use OpenCV all the time. these are interesting!
@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
@_ifly
@_ifly Год назад
great tutorial you made it very simple.
@rashilalan1661
@rashilalan1661 5 месяцев назад
Thankyou so much for the great vid!
@mirolimturgunov1455
@mirolimturgunov1455 2 года назад
Thanks bro for usefull and awasome tutorial
@suryanshusaxena2082
@suryanshusaxena2082 2 года назад
Thank you very much sir for this video
@huntercoleman1347
@huntercoleman1347 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.
@jarjarbinks8954
@jarjarbinks8954 Год назад
do i need to install opencv in the python installation directory? or just in any location from the command line?
@jakiez6750
@jakiez6750 Год назад
can we use other trained data for this ?
@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
@lexal03
@lexal03 2 года назад
does it record the whole time you are using the facial recognition?
@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 😢🙏🙏🙏
@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
@jakesnell7707
@jakesnell7707 Год назад
Can you do a video series on using git?
@prime2836
@prime2836 2 года назад
please tell what to do it is constantly saying pip is not recognizes a command in command prompt please help
@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.
@artbuddy5043
@artbuddy5043 2 месяца назад
which Ide are u using
@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?
@_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
@marcolyne7563
@marcolyne7563 Год назад
Am facing problems, it is saying" Cannot find reference 'CASCADE_SCALE_IMAGE' in '__init__.py':19"
@nbachalky3625
@nbachalky3625 Год назад
didnt understand a thing you were just firing on 😭
@galactussnaxus1541
@galactussnaxus1541 Год назад
Same bro same
@__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
@3dgiftz
@3dgiftz Год назад
where is the code?
@Monarch6969
@Monarch6969 4 месяца назад
what application did you use
@Harirtaylorversion
@Harirtaylorversion 3 месяца назад
vs code
@Oof_the_gamer
@Oof_the_gamer Месяц назад
Someone help me, How do I install that harr file (the pretrained model)
@Oof_the_gamer
@Oof_the_gamer Месяц назад
I meant casade
@videoboda
@videoboda Год назад
Hello, I dont undertsan ",_" of the line _, frame = camera.read()
@Ibbi_rl
@Ibbi_rl Год назад
for which camera to use i think
@boredfellow7292
@boredfellow7292 Год назад
Great Video! But I am not able to install Opencv:
@bohdansemenovich1818
@bohdansemenovich1818 2 месяца назад
What exactly in code tells to find human faces here?
@bohdansemenovich1818
@bohdansemenovich1818 2 месяца назад
Oh I see, haarcascade_frontalface Nice tutorial though👍
@g.s.3389
@g.s.3389 2 года назад
suggestion: cvlib works better, why don't you make a video on it. :)
@sartikawidya6120
@sartikawidya6120 10 месяцев назад
I want to ask how to install import CV2, bro? Please answer, sis 🙏
@diyaobeid190
@diyaobeid190 6 месяцев назад
pip install cv-3 write it in terminal
@muscababdinaasir2771
@muscababdinaasir2771 Год назад
Where is this code? 🙏🏽
@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?
@AvarageGamingContent.
@AvarageGamingContent. 10 месяцев назад
i just want the script
@N0OBB
@N0OBB 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
Live Face Recognition in Python
16:16
Просмотров 146 тыс.
Try not to Laugh Game!
00:38
Просмотров 4 млн
Face Recognition With Python 3.10 Tutorial (Webcam)
18:59
Python Face Recognition Tutorial
31:18
Просмотров 624 тыс.
OpenCV Python Tutorial #8 - Face and Eye Detection
16:08
Python Face Recognition (Beginner Tutorial)
12:36
Просмотров 45 тыс.
Build Real Time Face Detection With JavaScript
12:41
Просмотров 1,3 млн
How I would learn to code (if I could start over)
10:52
Password Manager in Python
24:57
Просмотров 60 тыс.
Open Source Face Analysis with Python
15:07
Просмотров 48 тыс.
Motion Detection Alarm System in Python
19:20
Просмотров 37 тыс.
$1 vs $100,000 Slow Motion Camera!
0:44
Просмотров 10 млн
Как разблокировать айфон?
0:27
Просмотров 149 тыс.