while others are struggling to explain opencv. you did it in a simple way. In just 2 min GREAT vlog
@interesting72154 жыл бұрын
this is not 2 min...
@shuaibsugaran89364 жыл бұрын
actually he skip it for a seconds without skipping the countdown in the screen
@voltifer52674 жыл бұрын
This is not a vlog. If you don’t know, don’t use it
@nainaalex90533 жыл бұрын
You gotta be kidding me.. The error I've been trying to fix got fixed in 2 seconds just cuz of you 🔥 Thanks buddy!
@Integralsouls4 жыл бұрын
i really have to say ...nice work man ...u deserve to be recognised not just be these cascades but also by real people all around this ML community...
@AdarshMenon4 жыл бұрын
Thank you so much 😀
@nalinin25053 жыл бұрын
@@AdarshMenon which terminal have u used
@okokicici Жыл бұрын
This helped me a lot done with my project just in 15 mins😊 ,.... U r fabulous bro...
@bunnyvlogs76474 жыл бұрын
u earned my like with 2 min stopper clock
@albertovarela60503 жыл бұрын
Thank you!!! I tried to do this for more than a month... You explained very well!
@philliphelmut10774 жыл бұрын
Great Video, everyone else makes hour-long videos and explains basically the same stuff, here I learned all what is important in 6min. Good job!
@mufeezazam47633 жыл бұрын
@Maryam Ashraf i can
@faizahmed75242 жыл бұрын
@@mufeezazam4763 i want it.. Please if u can
@shubhamkhupase65145 жыл бұрын
Bro explained very well. Just carry on !!!!
@shaad4984 жыл бұрын
Watched every commercial videos but got the thing in DESI ONE
@okokicici Жыл бұрын
Can u pls upload about human activity recognition
@leamlisophara7313 жыл бұрын
I have some error with this --> 'cv2.CascadeClassifier' object has no attribute 'detectMultiScal'. Could you tell how to fix it ????
@ahmed1o1373 жыл бұрын
good job man. keep up the good work because im sure it'll pay off in the long run. its rare to find talanted teachers and you are definitely one. simply well done
@anadani819174 жыл бұрын
Finally, a good video. Thank you!
@AdarshMenon4 жыл бұрын
Glad you liked it!
@chijonyacigak3119Ай бұрын
This was really insightful keep on going
@atlurivijay102 жыл бұрын
So I have been getting this error OpenCV(4.1.2) /io/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor' any idea?
@akankshachoudante24893 жыл бұрын
Please help me sir..it is showing error no Module named cv2
@AdarshMenon3 жыл бұрын
make sure you have installed opencv - run pip install opencv-python
@akankshachoudante24893 жыл бұрын
@@AdarshMenon sir I have followed all the steps.already installed openCV n I have saved raw file as well .but this error is coming
@AdarshMenon3 жыл бұрын
@@akankshachoudante2489 if you are on python3 then you might also want to try pip3 install opencv-python. Or the recommended way is to create a virtual env and do everything inside it
@akankshachoudante24893 жыл бұрын
@@AdarshMenon ok thank you Sir I will try ...
@roku18924 жыл бұрын
Nice, clean and good explanation tutorial ❌ Indian guy tutorial, machine sound, cursed audio 👍👍👍👍
@rohitsharma-pz1xc3 жыл бұрын
This is great video, I knew the basics off all the commands, your video helped me put all my knowledge to a functional detector. Thank you
@alizekhan27453 жыл бұрын
Plz tell me which terminal is used in this video?
@gaurav_jambhulkar3 жыл бұрын
@@alizekhan2745 It's Linux terminal :-)
@cubeheadii9284 Жыл бұрын
can you explain the last commad you put in the terminal? pleeeeees
@radhikaravindra72934 жыл бұрын
Best one I have come across on KZbin. Works without any error SO INSTANTLY. Keep more coming!
@AdarshMenon4 жыл бұрын
Thanks, will do!
@herecomestherainagain30313 жыл бұрын
u are a king man thanks from turkey
@rusbiantrush45764 жыл бұрын
hi Ardas, thanks for your Lesson. god bless you ..Rusbi from Indonesia
@shouviksamadder51934 жыл бұрын
by far the best explanation
@marcusbeck23293 жыл бұрын
In what software do you code this
@safabelhadjromdhane29223 жыл бұрын
Hello, I have a question to ask, I did the exact same thing as you in the video but the program didn't work and it announced an error while running the color saying "error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor' " how do I fix it ? and thanks in advance for your help.
@ammarammarammarammarammar3 жыл бұрын
try again but make sure you webcam wasnt use that time
@raviteja8432 жыл бұрын
Same error can anyone help me with this one!
@palakeetivikas2569 Жыл бұрын
can u explain this part cv2.waitKey(30) & 0xff
@abdullaal-bader463 жыл бұрын
hello, there is a problem in line 19
@lokeshperimi3710 Жыл бұрын
hiii bro where i have to load harrcascade file and how to come up into vs code
@arpanhalder5822 жыл бұрын
Please tell me what is the platform name where you writing code
@Evolutionofacharyaprsant2 жыл бұрын
Hello buddy I have cctv footage video it's possible to detect the face coz the face in video lil blur
@infobox-Hindi4 жыл бұрын
Can u please make video like detecting the presence of human and with respect to open or close the relay
@ruggy16894 жыл бұрын
can i ask how do i run it? i've done the code but how do i get the camera to pop up with that code?
@AdarshMenon4 жыл бұрын
You need to use a command prompt on windows (or terminal) to run this. You need to install python first of all to do that, and the library open-cv for this to work. Please search for 'how to install python on windows/whatever OS you have'
@ruggy16894 жыл бұрын
@@AdarshMenon hello, im doing your code for almost 5 hours can u help me? it says "python: can't open file (filename)" No such file or directory.
@ruggy16894 жыл бұрын
@@AdarshMenon i already have the python
@MrThe1000thman4 жыл бұрын
same problem. i already installed python and opencv
@pranitsawant60854 жыл бұрын
amazing buddy its really help me my mca projects thanks a lot buddy.
@snehagh97342 жыл бұрын
Hey Adarsh can you please drop cascade files of right ear and left ear please
@SomethingSpiritual4 жыл бұрын
installing error 1 while doing pip install opencv-python please guide for opencv installation
@AdarshMenon4 жыл бұрын
please post your exact error
@nawaab92754 жыл бұрын
how can we display the name along with the rectangle box around the face
@AdarshMenon4 жыл бұрын
there is a method cv2.putText to write text on the image - you can also check my face recognition video, where I did that
@vinsmokearifka3 жыл бұрын
Raspi 4 camera use to face detection so slow & little bit dark. How to improve camera quality?
@siscart_nilanisha2 жыл бұрын
Hello! Need some help regarding the text editor and terminal used
@deepanshubazzad26822 жыл бұрын
is there any option that we can classify strangers and me
@pankajjoshi4206 Жыл бұрын
How to detect two or more faces coming towards camera. Thankyou for your video
@JalalKhan-we1th3 жыл бұрын
Wow simply amazing, hats off to you😍
@SatyaYinakonda10 ай бұрын
Hi sir it shows an error cv2 has no attribute wait key can u solve this sir???
@flodyto2 ай бұрын
Gracias por tu video. Octubre de 2024 y funciona perfecto. (Si necesitan activar la camara web externa solo deben modificar esto "cap = cv2.VideoCapture(1)")
@saurabh-ny8cn4 жыл бұрын
If we want to recognize faces with names then what we can do ? Means it can able to detect face. Then what ?
@AdarshMenon4 жыл бұрын
This is only to detect faces. To recognize them - kzbin.info/www/bejne/b2magqeBhb9ghpI
@saurabh-ny8cn4 жыл бұрын
@@AdarshMenon I watched that video but I am saying that if a moving person comes infront of camera. Then how we can do that in real time??
@AdarshMenon4 жыл бұрын
the face recognition library can help you do that - github.com/ageitgey/face_recognition
@sushmithasanthosh8938 Жыл бұрын
Can you make an emotion detector
@ib2sthok1273 жыл бұрын
How can i save the detected face once if the same same detect again
@zuriuszu2 жыл бұрын
How can the image be enlarged so both neck and head could be visible?
@jayant91514 жыл бұрын
Is it possible to add a sticker over face instead of a box o
@AdarshMenon4 жыл бұрын
yes you can use opencv to draw an image instead of the box
@likhithagoberu13043 жыл бұрын
Traceback (most recent call last): File "C:/face recognition/detectfacevideo.py", line 19, in faces = face_cascade.detectMultiScale(gray, 1.1, 4) cv2.error: OpenCV(4.5.2) C:\Users unneradmin\AppData\Local\Temp\pip-req-build-vi271kac\opencv\modules\objdetect\src\cascadedetect.cpp:1689: error: (-215:Assertion failed) !empty() in function 'cv::CascadeClassifier::detectMultiScale' iam having this error how can i solve it..
@ammarammarammarammarammar3 жыл бұрын
try again but make sure you webcam wasnt use that time work for me
@akshaykadam38112 жыл бұрын
That's Very Nice 👍👍............. You have any report of this project which gives details information about this project.
@AmeerHamza-uu1gc3 жыл бұрын
Good bro Also made video on face MASK detection. Thanks
@deki90to4 жыл бұрын
How to show people names with rectangle? I know to do with pictures, but donno with videos
@AdarshMenon4 жыл бұрын
it is the same code you use with pictures, just put it inside the loop of the video. Videos are made up of frames which are images, all functions applied to images can be applied to videos as well
@deki90to4 жыл бұрын
@@AdarshMenon Don't know how to do that. Can you write simple example here in comment?
@@AdarshMenon There is no code I need, so you don't know how to do ir or?
@krajeshwari4914 Жыл бұрын
Front end and back end of this topic is?
@Daniel-qo9uv3 жыл бұрын
Hi I did: pip3 install opencv-python but I get an error with pycharm regarding open cv2 : ModuleNotFoundError: No module named 'cv2' How to fix it?
@AdarshMenon3 жыл бұрын
Maybe you are on another version of python ? if you are using pip3, then make sure you call the script with python3
@HOBBY-MASTER3 жыл бұрын
thank you , this was my first face detection project , awesome explanation
@deepakdadlani92844 жыл бұрын
hey...i need your help please reply.. can you tell me how can i detect the face of dog and cat and their emotions ...in python..please let me know if you know anything about it ..please help!
@kakulapatisunandini8429 Жыл бұрын
Hi... im working with upperbody detection, this is not working with the detection of upper-body. can u plz help me out to get a frame over the upperbody recognition
@MohitSaini-zc5zi2 жыл бұрын
Good job. Your code is still working.
@sejalshinde2092 жыл бұрын
Which ide you have used?
@ritvikshetty98343 жыл бұрын
Bro..can i run this in jupyter-notebook?
@nishanisha12664 жыл бұрын
What if we need to detect a photo which is in a particular drive
@AdarshMenon4 жыл бұрын
In the video at 1:30, line number 5 simply change the path of your file. For example if your file is C:/pictures/test.jpg, you can change that line to cv2.imread('C:/pictures/test.jpg')
@nishanisha12664 жыл бұрын
@@AdarshMenon thank you for replying
@nishanisha12664 жыл бұрын
@@AdarshMenon I have a doubt could you pls help me out...how can I reach you!!pls a small help
@AdarshMenon4 жыл бұрын
adarsh1021@gmail.com
@nishanisha12664 жыл бұрын
@@AdarshMenon I mailed!!pls checkout
@obobiacisej6 ай бұрын
What platform are you running the code in please? As I'm having trouble running it in Google Colab
@MertAliBarlas4 жыл бұрын
Hi I'm getting this error: C:\Users\pc\AppData\Local\Programs\Python\Python38-32\python.exe: can't open file 'test2.py': [Errno 2] No such file or directory I'm try to solve but I can't solve it, can you help me ? @Adarsh Menon
@AdarshMenon4 жыл бұрын
you need to be inside the directory where you saved your file 'test2.py'. Use chdir command in windows terminal to change directory
@MertAliBarlas4 жыл бұрын
@@AdarshMenon Thanks but ı already solved, thx for help
@spjcovers12043 жыл бұрын
Can we add some time limit for the camera so that the camera turns off automatically and we don't have to press the ESC button ???
@AdarshMenon3 жыл бұрын
inside the while loop you could add a delay of say 100ms. Then you can keep a counter to count the number of times it ran (or maybe use a for loop). So now when this counter reaches 100 then you know that 10 seconds have passed
@OT-oi8kl3 жыл бұрын
This was hella easy to follow, thank you!
@gumernus3 жыл бұрын
how to change camera frame rate?
@sonusulakshana51534 жыл бұрын
can u provide numbering for how many faces detected in an image or video pls (eg: in an image 4 numbers are present like this)
@AdarshMenon4 жыл бұрын
you can simply count the faces list, or add a counter in the for loop
@sonusulakshana51534 жыл бұрын
@@AdarshMenon i got it by adding two lines in the program import cv2 # Load the cascade face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') # Read the input image img = cv2.imread('test7.jpg') # Convert into grayscale gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) # Detect faces faces = face_cascade.detectMultiScale(gray, 1.1, 4) # Draw rectangle around the faces for (x, y, w, h) in faces: cv2.rectangle(img, (x, y), (x + w, y + h), (255, 0, 0), 2) cv2.rectangle(img, ((0,img.shape[0] -25)),(270, img.shape[0]), (255,255,255), -1) cv2.putText(img, "Number of faces detected: " + str(faces.shape[0]), (0,img.shape[0] -10), cv2.FONT_HERSHEY_TRIPLEX, 0.5, (0,0,0), 1) # Display the output cv2.imshow('img', img) cv2.waitKey()
@sonusulakshana51534 жыл бұрын
for different images i got output
@sonusulakshana51534 жыл бұрын
what was the given image in that program it was not given numbering but for another image it given the output
@sonusulakshana51534 жыл бұрын
With numbering
@roku18924 жыл бұрын
Nice video, because : -Indian tutorial -Cursed audio -Machine backsound
@andreidamean2484 жыл бұрын
what terminal should i use the $ comand isn't recognised anywhere i tried
@lakshmiam194 жыл бұрын
how to save all the detected faces(not image) ?
@AdarshMenon4 жыл бұрын
you can try cv2.imwrite("face.jpg", img[y:y+h, x:x+w]) - here you are simply using the coordinates of faces to extract the face area from the image and then save it
@leon814464 жыл бұрын
I'm getting this error please help face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') AttributeError: module 'cv2' has no attribute 'CascadeClassifier'
@AdarshMenon4 жыл бұрын
Maybe your haar cascade file did not load properly. Check if you donwloaded it in the same directory as your code. Maybe this will help - answers.opencv.org/question/52340/opencv-error-assertion-failed-empty-in-detectmultiscale/
@leon814464 жыл бұрын
@@AdarshMenon Thank you for replying brother! Actually the problem was w/ the version of OpenCV. It wasn't compatible with the python version installed on my PC
@AtenTetsu4 жыл бұрын
Hi! Can I use this program with Raspberry Pi ? Thanks
@sathiyamoorthy37572 жыл бұрын
bro what python compiler are you working on
@ouranosTheos5 жыл бұрын
What is the best way to train a image classifier
@AdarshMenon4 жыл бұрын
Using CNNs
@dumbtex61074 жыл бұрын
use hog if ur cpu only cnn slow
@abhicruz16683 жыл бұрын
i wrote the exact code but i there is not rectangle formation for the detection of faces
@pankajjoshi82924 жыл бұрын
Liked and subscribed. One question. I want to this with 10 diff ip cams not just one laptop camera. Pls tell how to do
@AdarshMenon4 жыл бұрын
you can definitely do it with 2 or even 3 i guess, but 10 might be a bit too much on your computer, unless you have a really powerful machine. In the line cv2.VideCapture(cam_no) - for each camera you need to write this like, where cam_no = 0, 1, 2.. no, of cameras. ref - stackoverflow.com/questions/29664399/capturing-video-from-two-cameras-in-opencv-at-once
@blackjoni824 жыл бұрын
module cv2 has no CascadeClassifier... someone help please
@AdarshMenon4 жыл бұрын
Make sure you have run pip install opencv-python
@blackjoni824 жыл бұрын
@@AdarshMenon okay thanks bro,now, how to show the Video larger?
@shafiquesayed26735 жыл бұрын
In web cam capture it is not showing rectangle on more than 1 face what should i do
@AdarshMenon5 жыл бұрын
This will help you stackoverflow.com/questions/33546356/how-to-detect-multiple-faces-in-opencv
@nitishhdas3 жыл бұрын
Why u have not given credits to sentdex?
@suryanshusaxena20822 жыл бұрын
Hello sir I am getting this error: 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' Please tell me how to resolve it
@raviteja8432 жыл бұрын
Same error sir can you help me if you know how to resolve it
@hurraykoookie212 жыл бұрын
Please help me same error
@ruthvikrao86315 жыл бұрын
can you print the number of squares detected as faces?
@AdarshMenon5 жыл бұрын
yes each iteration in the for loop corresponds to a square
@yegenderkumar__developer__83673 жыл бұрын
Please tell me your theme name. I am searching it since 5 years but did not know it's name
@passion0022 жыл бұрын
Getting an error on line 7 saying src.empty() in function cv::cvtColor
@Tecky_girl4 жыл бұрын
How to install pip in sublime text
@AdarshMenon4 жыл бұрын
you need to install python on your computer. Sublime text is a text editor used to type and edit the code. phoenixnap.com/kb/how-to-install-python-3-windows
@sarthakagrawal84603 жыл бұрын
great video i founded on youtube thanks a lot bro. I am facing some error in code can u help me with that
@koushikguptabonthala24292 жыл бұрын
Hello. For detecting faces from images and detecting images from webcam do we need to build two different models
@valibabushaik50734 жыл бұрын
Everything is Awesome.... Tnq bro
@mertceylan20804 жыл бұрын
thanks man, beneficial video for beginners
@pratikdhule25793 жыл бұрын
bro how to close this application it opens again when i close it,, i am running this in anaconda... any key to stop this?
@PiyankaYadav2 жыл бұрын
Sir ...can u help me in my face detection project... I'm stuck ...how I add img ...it give me error that img file is not in appropriate position...
@soseikiharagatatsu78592 жыл бұрын
it didn't work in my sublime software because there's no run button but it run on idle python
@WillMartinez1990-x6m3 жыл бұрын
How would you send this to someone and see their webcam
@dpreek4 жыл бұрын
sir thank your for this video. i tried this. but i have a error.how can i fix it? Traceback (most recent call last): File "C:\Users\amali\Desktop\Face_Detection\test1.py", line 13, in faces = face_casCade.detectMultiScale(gray, 1.3, 5) NameError: name 'face_casCade' is not defined
@AdarshMenon4 жыл бұрын
looks like the variable is not defined, python is case sensitive. I think it should be face_cascade if you have used my code. Or else make sure the cascade file is in the same folder where the code is
@RinRoya3 жыл бұрын
Can you tell me this error error: Unknown C++ exception from OpenCV code in this code _, img = cap.read()
@soseikiharagatatsu78592 жыл бұрын
how did that terminal suddenly pop up I can't run the code
@betsythomas59714 жыл бұрын
Good work Adarsh..Saved a lot of time!!
@AdarshMenon4 жыл бұрын
Glad to hear that !
@ramsy-sploit223 жыл бұрын
i want to cheek if the face is my face then it wil give me a signe that the face is my you know what i'm saying
@circuittricks51443 жыл бұрын
Very great video sir, please tell me how I save XML file in python project
@lvmeghana1304 жыл бұрын
hey help plz getting errors like Module 'cv2' has no 'CascadeClassifier' member..,Module 'cv2' has no 'VideoCapture' member,..Module 'cv2' has no 'cvtColor' member...,Module 'cv2' has no 'COLOR_BGR2GRAY' member...,Module 'cv2' has no 'rectangle' member....,Module 'cv2' has no 'waitKey' member
@manishsharma22114 жыл бұрын
Please install cv2 first Pip install opencv-python