License Plate Recognition using OpenCV Python | Full Tutorial
Вставка
- Опубліковано 12 вер 2024
- Hello, Guys, I am Spidy. I am back with another video.
🔥 SUBSCRIBE FOR MORE VIDEOS ► bit.ly/2UvLDcQ | ★
In this video, I am showing you how you can make License Plate Recognition from Scratch.
Steps which we have followed
(1) License Plate Detection using Cascading
(2) Image processing on the cropped number plate image
(3) Implement OCR(Optical Character Recognition) on the cropped number plate.
You will get a text of the number plate. There are lots of other ways to do it. but this is a good approach, in this, I got an amazing result
Install OCR:- / how-to-use-tesseract-o...
Haar cascade:-
Code:-
Buy this whole project with GUI:- www.instamojo....
Like & Share this video and share this video with your friends.
My Github for free projects:- github.com/Spi...
ML Guidelines PDF:- imojo.in/27qk1iu
Like the video & Subscribe channel and comment down your review about it.
Subscribe to Machine Learning Hub for more exciting videos.
Follow our community on Instagram for Video updates and ML related Posts:- / machine_learning_hub.ai
Donate us via UPI: - kushalbhavsar58@okicici
Donate us via Paypal: - www.paypal.com...
Do Subscribe.
Android ML App Development:- • Android Machine Learni...
OpenCV Tutorials:- • OpenCV Project Tutorial
ChatBot Development:- • ChatBot Development Se...
Deep Learning Projects:- • Deep Learning Projects
Python Projects:- • Python Project Develop...
Face Recognition Project:- • Face Detection & Recog...
Food recognition WebApp using Flask:- • Food 🍕 Recognition Sys...
Flask Tutorial Playlist:- • Flask Web App Development
Google News Web Scraping Tutorial:- • Web scraping with Pyth...
Wikipedia App using Python:- • Create a Wikipedia App...
Car Detection System:- • Car Detection Opnecv P...
Create ML App from scratch:- • Build ML App from Scratch
AI Playing Flappy Bird Full Tutorial:- • Deep Flappy Bird Tutorial
Mask RCNN full Playlist:- • Mask R-CNN Tutorial
Emotions Recognition Full Tutorials Playlist:- • Emotion Recognition Sy...
Tensorflow Object Detection full Tutorial Playlist:- • Tensorflow Object Dete...
Face Mask Detection using TF Object Detection API - • Face Mask Detection😷 T...
OpenPose Estimation Full tutorial:-
• OpenPose Tutorial
Do follow me, comment down your opinion & suggestions.
Tell me if you didn't get anything.
I will be back with another python tricks & tips
Subscribe to our Channel & press the bell icon
You will get the all notification of the channel on my Instagram page.
Follow me on Github for more projects related to Machine learning and Deep learning
Buy Coffee for me:- www.buymeacoff...
Until that "Keep learning, Do more code!"
"Stay safe at home, keep coding"
license plate recognition using opencv python, number plate recognition using opencv python, number plate recognition, license plate recognition python, number plate recognition using python, license plate recognition python, license plate detection, license plate detector, license plate recognition tutorial
"The video thumbnails were created using publicly available images from Google images and are used solely for thumbnail purposes. I do not claim ownership of these images. If you are the owner of any copyrighted content used in these thumbnails and want them removed or changed, please contact me and I will comply promptly. Thank you."
#numberplaterecognitionusingpython
#numberplaterecognitionusingopencvpython
#licenceplaterecognitionusingopencvpython
thanx this is perfect
Welcome 🤗🙏
Can i get the source code please?? Some codes to the right cannot be seen
hey pls help Im getting following on python console when I run the script,
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['C:\\Users\\MB\\PycharmProjects\\NumberPlate', 'C:/Users/MB/PycharmProjects/NumberPlate'])
Can you please tell me how to use CNN-deep learning technique to extract the text from image instead of OCR?
Do this project only detect the plate of car or any vehicle it may detect?
In my case it was not detecting when bike image was processed.
This one is working for only car. This haar cascade is trained only for car detection.
sir, where do you get that pic? i mean is that you get from the xml file or how?
we cant see the complete code in line:28 and line:43
please tell me the full code of these two lines
You can follow the video, code you can write it by yourself.
hi bro, i have a question.
What happens when there are 2 license plates in the frame ?
It will try to detect both but again accuracy can be differ.
this is so cool, can you compare it with PaddleOCR next time? I heard it works great in some cases.
Sure, i will try to do that
for image thresholdhing, what is the last parameter as it can not be seen in the video?
whare i get the sourse code of all this project:
Hi, please is there a source code ? because in some lignes the code is not complete and I'm a beginner
getting error:
from imap_server import Imap_Server
ModuleNotFoundError: No module named 'imap_server'
Install that module using Pip
Can this code be used in Google Colab too?
Yes, but few changes required
Sir 😘😘 this project is really awesome sir its really incredible
But pls sir how can I be able to recognize the license plate with a video feed that the challenge I am getting thk u sooo much for this🙏👍 and God bless
Welcome dear:) Yes, I am also finding the solution for the Video feed detection. Will upload the solution if I found any solution.
@@MachineLearningHub broo did u find any solutions?
Sir very well Explanation Thank you
Thanks Nilay 👍😀
how to deal with skew and tilts in the number plate images
Do imqge processing with OpenCV filters
does it will work on video or in real time or do you have any other source code related to this
Not sure for video, it will work on images
how did you develop the GUI? Could you please tell me the logic?
I used tkinter
@@MachineLearningHub what should I do If I want to create the same thing except I want to show it in a browser like chrome? I mean I want to create a web app with it how should I proceed?
sir how can i recognize if the text in the image is a name or not and then extract it if it is a name
Can I do this for mini project?
Yes, you can give it a try
Could you help me with this error:
error: (-215:Assertion failed) !src.empty() in function 'cv::dilate'
I have given reply in email
Even I am getting the same reply please help me @MachineLearningHub I have emailed you
Both of you put the dilate line in comment and try again
After putting the dilate method in comments it's showing the error on erode after putting the erode in comments it's showing error in cv::cvtColor
Hey, I think you both are doing the any mistake. Can you email me your whole code? So I can give the solution
Great video sir, thanks!
Sorry for any inconveniences.
Could you mind to share those license plate image dataset, sir?
How can I get those images yaa?
Thanks Sir
I just downloaded those images from Google, it was near 30 images for testing. It's not a dataset.
Sir in case of truck, there are many rectangles, how did it recognise the number plate
For truck it might not get work, you need to train own haar cascade file for truck
in Open cv image processing, what are the Threshold method did u use, i am try with thresh_binary but cannot get the expected result.
See cropped plate is already in black& white. So you need to increase the threshold. It will brighter the image.
can i get the open cv code
hi sir now its been 2 years can u send me or uploade the code please
Hey I want to buy this project but the thing is that your project detect only images what I want is it should also detect from video like a moving vehicle if you can full fill this requirements then please tell me I will buy it
No it will work only with image as input
is there any video about about installation of what you used in this?
It's influded dear, see carefully from starting. I have shown what dependencies you need to have.
Which ur running this program pls say which platform it is
It's pycharm IDE.
is It support for plate of Viet Nam ?
You can give it a try and let me know.
I have an error line 29 .
cv2.drawContours(image,[NumberPlateCount], -1, (0, 225, 0), 3)
NameError: name 'NumberPlateCount' is not defined. Did you mean: 'NumberplateCount'?
how can i fixed this?
Yes define that variable and make it 0 before loop.
i need source of this project
Sir I'm unable to get number plate in terminal. What to do?
What's the issue you are facing?
Sir this project run successfully but some time character recognition detecte wrong how i solve this problem...
Please help
You can do more better image processing, to get better OCR result.
sir can i read electricity meter's digits with this plate recognition code ? I will catch the numbers and applicate some operation to these numbers. is it possible ? thanks
Yes you can, but for detecting the Electric meter, you need to create your own haar cascade, other solution is take photo manually, and feed that photo to OCR engine. It will work.
@@MachineLearningHub Very good videos. if you don't mind, can you make a tutorial about Electric Meter too? because this is also my project. Thank you
i click on the link of tesseract ocr. But the exe file is not downloading
If link is not working, just do simple Google for it. You will find many.
from where did you learnt ml , plz reply
Not from one source, learnt from too many sources and practical implementation
Hello Now Can I Get The Full Project?
hello sir!
can you please provide the code as it cannot be seen in video
or
just provide line 30 as it is not full visible.
Sir plzz tell what is written at line 30 (thresh, plate )=cv2.threshold...............................225,cv2 (AFTER THIS)
No need sir I searched in Google
Btw thanks a lot sir for this project it worked for me .
One thing I wanna know how can I make that gui part as u have not shown in this video🙏🙏
For the GUI you need to have the knowledge of tkinter. If you want the full code with GUI then you can do email me on kushalbhavsar58@gmail.com (PAID).
Bro terko mil gya toh post bhi krde naa
errors are showing for the extract_num line...the last line...what to do?
What's the error?
@@MachineLearningHub i have mailed you the query
can't i get the full code sir?
can you please tell me .....full line of code of line number 43 . It is not visible cv2.FONT_HERSHEY_SIMPLEX , onwords..????
Here it is
cv2.rectangle(img, (x,y), (x+w, y+h), (51,51,255), 2)
cv2.rectangle(img, (x, y - 40), (x + w, y),(51,51,255) , -1)
cv2.putText(img,read, (x, y - 10), cv2.FONT_HERSHEY_SIMPLEX, 0.7, (255, 255, 255), 2)
after execute the project have unicode error. How to resolve the error.
Can you tell me the full error?
How do i change my image part to images from the camera
Use VideoCapture method of opencv
bro we have completed our project only gui part is only remaining please give the code we are doing using motion video
Hey, so you have implemented the license plate from video also?
Yes
only gui part is remaining
I will mail you please give me the source code
Bro please reply
Along with number can we get the details of that person who is registered for that number plate
If yes then how can we get can you provide the code
Yes, you can do that there are lots of paid RTO APIs are available, you can use that.
sir the download link for the code is not available on website
Yeah that site is down, sorry for the inconvenience. You can write code by self by following video.
@@MachineLearningHub sir it would be great if you provide the code by any other way.... 🥲🥲
It is working fine for one image but in case of loop I am getting error "cv2.dilate source empty"
It's issue of loop, check that you are feeding proper image or not.
sir how can we get car and owner details from license plate (details as shown in vaahan app)???
I also tried that and succeed but then that api stopped working.
how can we recognize number plate in real time video or any video?
Use yolo
Helllo Can I Get The Sample Images?
bro not able to download tesseract ocr, plz help
Search in Google, you can download
sorry, can you give me the code in line 43? I can't see it completely.
cv2.rectangle(img, (x,y), (x+w, y+h), (51,51,255), 2)
cv2.rectangle(img, (x, y - 40), (x + w, y),(51,51,255) , -1)
cv2.putText(img,read, (x, y - 10), cv2.FONT_HERSHEY_SIMPLEX, 0.7, (255, 255, 255), 2)
cv2.imshow('PLate',plate)
cv2.imwrite('plate.jpg', plate)
Subscribe Machine Learning Hub for more.
How to put a link in the working directory???
Give the path
Sir, how about black background and white text?
It might be not work, for that we need to more different image processing
Sir!
Can't i use a video using CCTV camera
I mean cant we use a .mkv file
Yes, you can use any video file, can you share that video file with me? I want to do some testing.
@@MachineLearningHub no i don't have video right now
But sir
Ocr can read only images and can't capture images from a live video by CCTV
So how can i actually proceed with CCTV
See video is the collevtoof frames, pass each frames threw ocr. That's all
Can we get the source code now sir..? It's been 3yrs from your semester project...Because I'm planning to have this as my project for my school...? Can I?
Sure will share it in description once I will have access of my personal laptop, give me 1-2 days.
Can you share me soruce for vehicle dataset. Example for vehicle brand, vehicle color, plate, like these?
Nope dear, I don't have. please have lookon Google.
Please how can I find the xml file to brazil? Because your are using one from russian!
Try this russian, it will work for you. I am from India still this russian XML is working fine for me.
Why except cmnd occurs error?
Means you have error in try
Can you share us the python code as shown in the video as it isnot visible
Please watch in 1080P, then whole code will be visible
can we implement train split on cnn algorithm?
No here we aren't implementing machine learning
can anyone tell wahts written on line 28,after cv2.???
plate = cv2.dilate(plate, kernel, iterations=1)
plate = cv2.erode(plate, kernel, iterations=1)
having prblm related to cascade in line 20
What's the error which you are facing?
sir line 30 is not full ..please reply
Here it is
plate = cv2.erode(plate, kernel, iterations=1)
plate_gray = cv2.cvtColor(plate,cv2.COLOR_BGR2GRAY)
(thresh, plate) = cv2.threshold(plate_gray, 127, 255, cv2.THRESH_BINARY)
how to do it in video format sir?
You need to do lots of changes into the code
Can we run this on pycharm with cv2?
Yes, you can
Hi great work man.!!!
How do i run this on a video file?
any suggestions please
No, currently it's working on the images. For the video, we need to change the code.
@@MachineLearningHub yeah but any suggestions for that please, like were i have to change the code
See, You have to caught the particular frame from video, treat it as a image, do the detection from image.
Could it run in realtime?
Nope, in real-time we need to implement many layers of changes.
I am working on this project and I need your help bro. I've mailed you the source code. Can you please let me know what's wrong in it.
What's the error you are getting?
@@MachineLearningHub I ain't getting any result
Where is source code
Hey Kushal!!
Would like to share GitHub link for this project?
Nope, I can't share this in public, but if you want the you can drop me email, I will provide you the whole project code. (PAID)
@@MachineLearningHub Sounds great. Here is my email id:
v.snehith999@gmail.com
Do me email on kushalbhavsar58@gmail.com
@@MachineLearningHub I have replied to you through my e-mail, please have a look
I have given reply, please check it.
Sir
Can I buy this project for my college major project
Yes, you can. There are so many students who bought this for college project.
@@MachineLearningHub so
Sir how I can buy this project
Contact me on kushalbhavsar58@gmail.com
Thank you sir
I understand the creator is not in a position to share the source code.
if someone has copied the code from this video; could you please post the link.. thank you
Yes, sorry for that, I already published all other code, but this code is for my College project so that's why. You can understand it 😀
Even you can write it by yourself by watching video.
We need programmer like you:)👍🙏
can you recognize multiple multiple license plates
No, even its create issues in more than 2 number plates.
What is the solution to that then
Use yolo object detection for number plate detection.
Img is not defined error line 46
It means you have given wrong path, check the path & try again
How can I use in surveillance cameras
This code isn't much optimised that can be use in surveillance live camera.
100% working thanks for your explanation sir!
Welcome dear🙏❤️
oombu
Bro how do u able to install tessarect ocr the link is not working
Can you please resolve some error for me please
I need source code of this project
How to make it run on saved video
Use same code, use video instead of image
Line number 30, cv2.?
I also want to know at line no. 30??
Please provide GitHub link for project your project is good
This is my college project, I can't share it to public. Email me on kushalbhavsar58@gmail.com. if you want it.
bro can we run this on a raspberry pi?
Yes, but with some configuration
@@MachineLearningHub bro how long will take to detect the number plate after running this function? can we use this for real-time monitoring system?
Mujhe iska fully made project chahya . Maina description ma dekha ha aapka 2500 ma project, uska baara ma detail ma Jaana ha
Can you do the email on kushalbhavsar58@gmail.com, we will discuss there.
can you provide car data set??
There are only 40 images which I have downloaded from Google
Great you and you deserved reward..
Please that of GUI, how much you want to sell it Sir?
Kindly reply and let talk, I'm from Africa
Ohh glad you like it !! Do email me on kushalbhavsar58@gmail.com, I can't discuss things here, I hope you can understand.
Can you link me the full code pls.
i want to study em.
i can't see the full code to the right
Btw nice vid.
Thanks ! See code is visible in video. You can write it by yourself.
@@MachineLearningHub yepp
Ty nice idea btw.
Really helped me in my thesis.
Awesome 👍, keep going
please any one share this code🙏
hello sir i also working on this project can you help me?
Do email on kushalbhavsar58@gmail.com, and send me all of your abstract
bro can you provide me a source code of this program? its urgent
Do email me on kushalbhavsar58@gmail.com (Paid)
bro i need this code
Sure will share soon in description in 1-2 day
Source code ?
Do email me on kushalbhavsar58@gmail.com
10:40
can you post the code and describe how to run it
See full video, I have given the way.
@@MachineLearningHub can you post the code in github and forward the link
Nope, code is not open-source. You can write it by yourself from video.
Is it possible to get 100% accuracy?
Yes, it might be, but in real-time it is very hard to get it.
project buy krne ke lia tmhe hi ho
bhai mera bi project he plz mujhe help kro yr
Do email me on kushalbhavsar58@gmail.com
Report plz?
What?