Hello Sir, I'm working on a license plate detection and I would love for you to teach me how to clean and preprocess images that I have personally taken and how to bring the images together for model building using CNN
This is a great tutorial, thank you for your generosity and clear explanations. The project videos provide a wider view on how to use and implement the models in a very practical way and expose to us additional practical tools.
Hello Sir, you are an amazing teacher and I am very honoured to learn from you. You have a really good heart to be working so so hard to help us all on this platform and I hope you keep going and you stay in good health to enjoy a long happy life for helping out so many people. Thanks for all the hard work.
Hi Dhaval, Although, you made this project series in a pretty explanatory way and I hope everybody likes this series but It would be better if you could explain more about the arguments that you feed to libraries's attributes. I hope from the next project series you would focus more on that part.
For all the users with the problem error :- Opencv(4.5.5) ,error(-215 : assertion failed)!_src.empty in function 'cv:cvColor'. Modify the function as def get_cropped_image_if_2_eyes(image_path): img = cv2.imread(image_path) if img is not None: gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) faces = face_cascade.detectMultiScale(gray, 1.3, 5) for (x,y,w,h) in faces: roi_gray = gray[y:y+h, x:x+w] roi_color = img[y:y+h, x:x+w] eyes = eye_cascade.detectMultiScale(roi_gray) if len(eyes) >= 2: return roi_color
When I started watching this video, and I didn't know that you will use OpenCV library, so I purchased a course of OpenCV from Udemy and completed it and then I watched this video, then it was very easy for me to understand all the functions you implemented in this video. CHEERS!!!
Hey, hope you are doing fine. Here is a suggestion, show us how to tackle problems during projects that will give us a proper understanding of projects. Choose big projects on different algorithms. Share your personal experience in that way you can increase the content of your channel and we can also learn more from you. Make projects on different topics Right now Data science is growing and more people want to become a data scientist. You have covered basics now you have to show us how to deal with projects? What should be your goal when you get any dataset? What to do, what not to do? Why you require this or that? Protocols? How to approach a dataset How to solve it. I hope you will do it because these are the things i personally face right now. I admire only you and krish naik.
After completed your ML series these projects are really helpful it's blow my mind, thank you so much, please make another project like this which helpful to gain more coding knowledge which can't gain in basics, if it is possible please make another in future
Ohh thank you I'm exciting for upcoming projects And also I want to suggest you that in next project please teach some data scientist presentation means the way data scientist present project or model so we can learn it with coding bcz some persons say that data scientist must story teller.. so think about this if it is possible. I want to one promise to you is when I became a data scientist or machine learning engineering I will contribute you and your channel 🙂🙂
Nice INformation. JFYI ... your face video is not synchronizing with audio .If it is recorded video we can adjust while editing. If it is live , Please switch camera OFF & ON
Have you installed the libraries with given version or newest version?? With newset version , I am getting error in executing code.can you help me out ?
@@niharika5161 hey, Niharika, I installed the libraries with the old versions, and it worked fine. Let me know what is the error popping up with the new versions.
@@irfan2597 When i write image shape(the second line code) ,it shows 'nonetype object has no attribute shape' and plt.imshow(img) giving typeerror"image data of dtype object cannot be converted to float" . Also can you tell me how to install the old versions?
Got this error @29:00 min : PermissionError: [WinError 5] Access is denied: './dataset/cropped/' *Solution* for others: *Changed that code by adding a prefix 'r' before the path.* example : img = cv2.imread(r'./test_images/sharapova1.jpg') Make sure you give the full path to the image. This worked for and got rid of the permission problem.
I got this error @22:00 min while removing the cropped folder (I tested how this code woks well ). I got permission error whenver I try to delete the existing folder and creating new empty folder ! @codebasics help me please !
Hi Dhaval. It is great efforts where you making projects which will help the beginners. But if will be good if you explain about the arguments which you are passing. For example for line of code faces=face_cascade.detectMultiScale(gray,1.3,5 ) You mentioned what is that gray but you dint mention why 1.3 and 5 are passed.
In the video, the author explains (time-stamp 9:37) cv2 module presents any image with RGB values as the third dimension. Where as, it should be BGR values, I believe. Please let me know if I am wrong.
Hey dhaval! I have a problem whenver i m running code, it says generating cropped image folder But when i see I can't find a single image and there's no error. Note:- os.makedirs('full path', exist_ok = True) This i had change as it was throwing many error Plz check it once
is it necessary to install same versions of modules(requirements.txt). Latest version are being installed. I am facing issue of compatibility in older versions
Next Video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-sWAPtaBZKBQ.html Data Science Project | Sports Celebrity Image Classification: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-qWXXHjV3JHI.html Machine Learning & Data Science Project | Real Estate Price Prediction Project: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-rdfbcdP75KI.html Learn data science for beginners (How to learn data science for free)?: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Vn_mmOuQkSA.html
@code_basics sir getting error on faces=face_cascade.detectMultiScale(gray, 1.3, 5) faces error: OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-71670poj\opencv\modules\objdetect\src\cascadedetect.cpp:1689: error: (-215:Assertion failed) !empty() in function 'cv::CascadeClassifier::detectMultiScale'
I was looking for a data cleaning method and I found this video is interesting. As a part of my project, I`d like to delete some images that are labeled as the same class but were taken outdoors. For example, let`s say there`s a Empire State Building, this picture should`ve taken outdoors but a few pictures was taken indoors. Is there any possible way to remove those kinds of outliers automatically on Python? Or should I delete the pictures manually?
everytime we run the code it will delete the existing folders and create new one thing is wrong i have take 10 hr to clean manually the cropped dataset next day when i opened my laptop and rerun it it regenerates the folder
we downloaded images in jpg format..then after processing why did you saved in png format.( although it should not create any format beacause file formats itself are self introducing to rendering softwares as far i know
Hi, This tutorial is top of the line. I have a query. In the section where you mention that in creating cropped images folder ( 32:21 - of the video), one face is as of that code is picked - how come that both faces are seen when we check the cropped images that are created( for eg. Serena's husband). Regards KM
Thanks for the great video. Just curious, if there are two faces in the downloaded picture, will the code produces two cropped images of those two faces? Thank you.
Companies use crowdsourcing platforms for this. Let's say you want to verify 10000 images, they will send a job in crowd where every person in crowd verified let's say 10 images. They get paid very low, say 1 cent per image verification. But the work force is from the countries where labour is cheap for companies this effort will not be very expensive. If you don't want to verify all images you can also do random sampling. Overall it works out to be okay
I have an error that after I delete the previous photo I want to select another photo, I just change the path, the above command lines all run normally but to the command line using Haar Cascade it uses the face coordinates of the previous photo I deleted and now I can't update any more faces at the current Now it is not possible to change the coordinates of the previous photo I deleted
Dear Dhaval, Thank you so much for your hard work in making wonderful tutorials. Though I am able to follow your videos, I face problem executing the codes I write. At the moment, I do not know why and how the extension files have been created once I execute program. For example extension files such as `.ipynb_checkpoints`, `.jovianrc` and `.idea` exetensions are creating lots of problems. I will appreciate if you can help me solve the problems.
What problem is that t creating? It would be great if you can include exact details so that we can help you. Also it is best to join our discord server (link in video description), we have an active python and ML community where someone will help you
You have to wrap some part of the function in an if block, like so def ______(img_path): img = cv2.imread(img_path) if img is not None: # The rest of the code goes under this if block.
i have an error in[22] error: OpenCV(4.8.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor' can you help me?
Hi Sir when I try to install requirements.txt it gives me error "pip is not recognized as an internal or external command" and when i tried with git bash, the error is "bash: pip command not found". Please help me to solve these errors.
Hi, why do I encounter this error "UnboundLocalError: local variable 'roi_color' referenced before assignment" when I want to crop faces of file and creating cropped images folder for famous sportmen