Real-time License Plate Recognition with YOLOv7 + OCR in Google Colab GPU | ANPR/ALPR Tutorial 2023

  Рет қаралды 38,299

Theos AI

Theos AI

Күн бұрын

Пікірлер: 89
@PlateCatcher
@PlateCatcher 6 ай бұрын
Really enjoyed this video! I’ve been working on an ANPR app for Windows and it's interesting to see different implementations.
@mabroukhamid6879
@mabroukhamid6879 8 ай бұрын
please How do I obtain the training accuracy?
@renkhoen548
@renkhoen548 Ай бұрын
xq no haxces todo en colab ?
@nourabdelghany6847
@nourabdelghany6847 2 жыл бұрын
Thanks for your great efforts!...Can I enter my own datasets if I want to detect "Egyptian" license plates?
@theos-ai
@theos-ai 2 жыл бұрын
Yes you can! sign up to theos.ai and start labeling your own dataset! also join our community from the links in the description so we can help you.
@thisisrajatkumar
@thisisrajatkumar 2 жыл бұрын
Hii. Can we setup this whole program in system and make use it by web cam.
@theos-ai
@theos-ai 2 жыл бұрын
Hi 👋🏻 yes! you can use it with your webcam, I show how to do it here: kzbin.info/www/bejne/gXe9iGumYtRlnKM
@thisisrajatkumar
@thisisrajatkumar 2 жыл бұрын
@@theos-ai will it work offline because 8 have to setup it in my college.
@theos-ai
@theos-ai 2 жыл бұрын
Yes! It works offline
@pratyushpandey9126
@pratyushpandey9126 Жыл бұрын
​@@thisisrajatkumar have you tried it offline
@jeremyterrible1692
@jeremyterrible1692 11 ай бұрын
can i use that dataset for other country or do i need to create my own?
@theos-ai
@theos-ai 11 ай бұрын
Depends on the alphabet of your country. But you can create your own with Theos AI if needed.
@luchador191
@luchador191 2 жыл бұрын
Thank you for your great project!Instead of inputting a video for my university homework, I need to do it in real time with the ESP32 Cam. I need to detect the plate from the camera, keep the plate code in communication with the Arduino and use it. After training YOLO, how can I do plate detection and text extraction with ESP32 Cam? I will be grateful if you help
@theos-ai
@theos-ai 2 жыл бұрын
Hi 👋🏻! take a look at our new Easy YOLOv7 GitHub repository: github.com/theos-ai/easy-yolov7 We show how to easily use YOLOv7 in real-time with any camera (even livestream). Here's the KZbin tutorial: kzbin.info/www/bejne/gXe9iGumYtRlnKM Then you can follow the same instructions I show in the real-time license plate video to read the text.
@hardishah3188
@hardishah3188 Жыл бұрын
heyy have u tried doing it? how were the results??
@luchador191
@luchador191 Жыл бұрын
@@hardishah3188 I did it with my computers webcam instead of ESP32CAM 5 months ago. 🙂
@maddestruction1
@maddestruction1 9 ай бұрын
@@luchador191 I need to do it in real-time too but when a license plate is detected it outputs the number multiple times as long as it is still in the frame. How did you approach this issue?
@kishoreg8835
@kishoreg8835 2 жыл бұрын
i have a question - insted of using ocr model. can i train my yolo v7 model to detect alphabets and numbers .. classes will be car, lp, 0-9, A-Z. isn't this better than using two different detection.
@theos-ai
@theos-ai 2 жыл бұрын
We tried this before but it didn't work very well. Mainly because it's hard to get a good class balance on the alphabet. You would need a lot of labeled data for this. But If you want to try, please let us know if it worked better for you, good luck!
@kishoreg8835
@kishoreg8835 2 жыл бұрын
cool.
@pratyushpandey9126
@pratyushpandey9126 Жыл бұрын
Amazing work.... but i have a question will it work offline once trained and downloaded????
@theos-ai
@theos-ai Жыл бұрын
Thanks! yes definitely, it works offline.
@sebaarr
@sebaarr Жыл бұрын
Hi! Great job, it looks amazing. It's possible to download the weights after train?
@theos-ai
@theos-ai Жыл бұрын
Hi, thanks! Yes of course it's possible! check this out: github.com/theos-ai/easy-yolov7#click-the-weights-button
@sebaarr
@sebaarr Жыл бұрын
@@theos-ai Thanks a lot! :)
@soumyakapat6537
@soumyakapat6537 Жыл бұрын
Sir, how can I collect the license plate number in colab, because it is only showing in the output video only but I need the license plate number as a string?
@theos-ai
@theos-ai Жыл бұрын
after this line: "detections = ocr_model.read(frame, detections=detections, classes=OCR_CLASSES)" the detections variable is a list of dictionaries, and each dictionary has a "text" key where you can extract the string.
@soumyakapat6537
@soumyakapat6537 Жыл бұрын
@@theos-ai Thank you very much 😊
@soumyakapat6537
@soumyakapat6537 Жыл бұрын
@@theos-ai from theos.computer_vision.object_detection.utils import draw from theos.computer_vision import ocr from theos.client import Client from google.colab import files from tqdm import tqdm import torch import json import time import cv2 import os if torch.cuda.is_available(): torch.cuda.empty_cache() client = Client(inputs='.', outputs='.') yolov7 = client.get(ALGORITHM, version=ALGORITHM_VERSION) yolov7.load_weights(WEIGHTS) yolov7.to_gpu() if OCR_MODEL_TYPE and OCR_MODEL_ACCURACY: ocr_model = ocr.load(size=OCR_MODEL_SIZE, model_type=OCR_MODEL_TYPE, accuracy=OCR_MODEL_ACCURACY) else: ocr_model = ocr.load(size=OCR_MODEL_SIZE) if OCR_MODEL_SIZE == 'large': ocr_model.to_gpu() webcam = cv2.VideoCapture(0) if webcam.isOpened() == False: print('[!] error opening the webcam') try: while webcam.isOpened(): ret, frame = webcam.read() if ret == True: detections = yolov7.detect(frame, track=True) detections = ocr_model.read(frame, detections=detections, classes=OCR_CLASSES) for d in detections: print(d['text']) detected_frame = draw(frame, detections, alpha=0.15) print(json.dumps(detections, indent=4)) cv2.imshow('webcam', detected_frame) cv2.waitKey(1) else: break except KeyboardInterrupt: pass webcam.release() print('[+] webcam closed') yolov7.unload() Sir I tried this code for the opening of webcam in colab, but it always says that "[!] error opening the webcam". So please help me to solve this problem....
@theos-ai
@theos-ai Жыл бұрын
@@soumyakapat6537 You can't open the webcam in colab. Watch this tutorial to learn how to use the webcam with YOLOv7: kzbin.info/www/bejne/gXe9iGumYtRlnKM
@dayalan81
@dayalan81 Жыл бұрын
Great work. Will this run on mobile phone s?
@theos-ai
@theos-ai Жыл бұрын
Thanks! yes for sure. Maybe not in real-time but it works.
@arazib8394
@arazib8394 Жыл бұрын
Thanks for your training. Is it possible to read Asian languages like Farsi and how are you?
@theos-ai
@theos-ai Жыл бұрын
Yes it's definitely possible, send us an email to contact@theos.ai and we will help you. I'm good and you?
@eduardourzua155
@eduardourzua155 Жыл бұрын
Amazing music 13:30 what song is that ?
@theos-ai
@theos-ai Жыл бұрын
Once Upon a December (from Anastasia): open.spotify.com/track/2PCTrOWob0vs0io6pfGOYS?si=0d3bd0e78cf04349
@saifnacer4532
@saifnacer4532 Жыл бұрын
Thank you , it looks amazing , It's possible to work on my local machine not on colab , if yes can you please tell me how ??
@theos-ai
@theos-ai Жыл бұрын
Thanks! Yes of course you can. Install all the dependencies shown in the first cell and then copy and paste the code cells in a script.py file and run it.
@aliali-sj9jp
@aliali-sj9jp Жыл бұрын
hay thanks to let me know about the great theos and for the great lesson ,this is my question please : in the Detect and read script Replace configuration variables with my own values. can i do it this way because i deleted my weight tag from my theos session but before deleted i download the weights Hopeing that will have a way to implement it in this way WEIGHTS = '/content/drive/MyDrive/best.weights' please explain to me what i can do now
@theos-ai
@theos-ai Жыл бұрын
Thanks! I'm afraid you can't use it like that in this colab notebook, you have to set the weights tag there. Try using your weights with easy yolov7: kzbin.info/www/bejne/gXe9iGumYtRlnKM
@jorgesk8iqq
@jorgesk8iqq Жыл бұрын
Thank you a lot. I hope u can help me, i need know how to work in real time, save the plate, after it put it on a database whit date and time.
@theos-ai
@theos-ai Жыл бұрын
Sure, check out this video: kzbin.info/www/bejne/gXe9iGumYtRlnKM
@coconutnut21
@coconutnut21 Жыл бұрын
What model is faster to train yolov5 or yolov7?
@theos-ai
@theos-ai Жыл бұрын
They take roughly the same time. YOLOv7 tiny is the fastest to train because it's the smallest model.
@merazali7712
@merazali7712 Жыл бұрын
Hi Thoes Can I use this code in Jetson nano.?
@theos-ai
@theos-ai Жыл бұрын
Hi, yes definitely
@walidflux
@walidflux 2 жыл бұрын
can you do the security camera video method please
@theos-ai
@theos-ai 2 жыл бұрын
Yes! will do it this week or the next, make sure to subscribe and turn on the notification bell so you know when I posted the video.
@yslronhepos3325
@yslronhepos3325 2 жыл бұрын
can you do a security cam plss hehe
@theos-ai
@theos-ai 2 жыл бұрын
Take a look at the new Easy YOLOv7 tutorial I made guys, I show how to use security cameras: kzbin.info/www/bejne/gXe9iGumYtRlnKM
@varundeliwala2441
@varundeliwala2441 Жыл бұрын
Hi rama, I am facing this error, in the last google colab cell, AttributeError: 'NoneType' object has no attribute 'get_installation_path' for the line number 16: yolov7 = client.get(ALGORITHM, version=ALGORITHM_VERSION) can you please help me out?
@theos-ai
@theos-ai Жыл бұрын
Hi Varun 👋🏻 did you run the previous cell where the settings variable are created? and did you previously train your own model on theos.ai and set the variables accordingly to your own model just like I show in the video?
@hema-ig1xk
@hema-ig1xk 2 жыл бұрын
sir, can you teach us to use paddle OCR with custom data?
@theos-ai
@theos-ai 2 жыл бұрын
Hi hema! Sure we are working on that video currently! Make sure to subscribe and turn on the notification bell to be the first to see it when it comes out!
@hema-ig1xk
@hema-ig1xk 2 жыл бұрын
@@theos-ai I see that you are trying to implement this on your website. to make training easier.... but is it possible for you to show us how to do the training normally using the repository. I can't tell my faculty that i used some library or website.... sorry if am asking for something unreasonable. there is no such tutorial online...so i could only ask you since you are kind enough to reply to us. it's ok if you can't...
@hema-ig1xk
@hema-ig1xk 2 жыл бұрын
tutorial on Collab and machine if possible.
@theos-ai
@theos-ai 2 жыл бұрын
Why can't you tell them that you used a library? you will always be using a library, wether it is PyTorch, TensorFlow, NumPy, OpenCV, and all the others... the Theos pip library is no different: pypi.org/project/theos-ai/
@theos-ai
@theos-ai 2 жыл бұрын
Sure, we will make it on colab
@haitamben9177
@haitamben9177 Жыл бұрын
great work but i can't find the source code ?
@theos-ai
@theos-ai Жыл бұрын
It’s on the description of this video
@sumitsrivatava
@sumitsrivatava Жыл бұрын
How Can i save all the car numbers in a CSV file or display real time
@theos-ai
@theos-ai Жыл бұрын
Loop through the detections list, get the text with detection['text'] and then use this to save to a csv: www.codingem.com/python-write-to-csv-file/
@sumitsrivatava
@sumitsrivatava Жыл бұрын
@@theos-ai Hi Theos, I tried but number plate information is not getting saved on csv. 😪
@theos-ai
@theos-ai Жыл бұрын
@@sumitsrivatava why not?
@arif-emre-yaman
@arif-emre-yaman Жыл бұрын
hello sir how can ı reading license plate from camera.
@theos-ai
@theos-ai Жыл бұрын
Hi 👋🏻 check this out: github.com/theos-ai/easy-yolov7#detect-multiple-live-video-streams-in-parallel
@theelofiguy
@theelofiguy 2 жыл бұрын
no weights with tag license-plates:experiment-1:best found for yolov7, help me please
@theos-ai
@theos-ai 2 жыл бұрын
Did you sign up to theos.ai and trained yolov7 tiny on a dataset called "license plates" ?
@theelofiguy
@theelofiguy 2 жыл бұрын
@@theos-ai i just sign up
@89Micro
@89Micro Жыл бұрын
Hi! After training a custom model starting from the yolov7-tiny , the inference time grows a lot ( like 4 times longer). The dataset used is not so large (500-600 images). What could be the reason for this ?
@theos-ai
@theos-ai Жыл бұрын
Hi 👋🏻 Where are you running the model?
@89Micro
@89Micro Жыл бұрын
@@theos-ai rookie mistake. Was using the cfg for the full yolo when training, not the one for tiny. Thanks for replying though!
@tamiltanny7
@tamiltanny7 Жыл бұрын
where i can find the video
@theos-ai
@theos-ai Жыл бұрын
Hi 👋🏻 What video? If you're talking about the video where I trained the model, it's linked in the description of this video. You can also go to our channel page and find it there.
@seanlowwei
@seanlowwei Жыл бұрын
Hi there, I am new to machine learning. I have my own machine learning model, I have already used Theos ai to annotate and draw bounding boxes for 1000 images, may I know how I can export/download the json file for each image?
@theos-ai
@theos-ai Жыл бұрын
Hi, send me a WhatsApp message and I'll help you with this: +41784208194
@GhostRider-bn3tk
@GhostRider-bn3tk 2 жыл бұрын
Sir am getting "these weights don't exist or you don't have access to them. Please remember to set the project key if the weights are private" ... Please help me with that Sir....🥺
@theos-ai
@theos-ai 2 жыл бұрын
Hi Ghost! 👻 Did you follow all the steps? You have to upload the dataset and train the model. Then set the project key with the CLI and finally you will be able to download the weights. Join our discord server linked in the description so we can help you there in real-time.
@GhostRider-bn3tk
@GhostRider-bn3tk 2 жыл бұрын
@@theos-ai K Sir... Thank u for ur reply...😍
@hackspro8732
@hackspro8732 6 ай бұрын
need your assistance on this project
@timochyfilix5176
@timochyfilix5176 Жыл бұрын
why do I have to login?
@theos-ai
@theos-ai Жыл бұрын
Because it's a platform, like AWS and Google Cloud but for Artificial Intelligence development.
@leminhduy7107
@leminhduy7107 5 ай бұрын
Anh có thể cho xin code về phần ocr mà không cần yolov7 không
@Arrobosys
@Arrobosys 10 ай бұрын
This is not working realtime it's Saving the vedio then it's playing
@theos-ai
@theos-ai 10 ай бұрын
It's real-time. If you do it on your local computer you'll be able to see the output while it's detecting it.
@anshulparashar9743
@anshulparashar9743 Жыл бұрын
Thanks for the informative video. I am trying to connect my local gpu using the 4 commands as mentioned in previous video. It is throwing me a error that it needs theos 0.0.34. But I am unable to install it as Ubuntu says package does not exist. And therefore I am unable to connect. Can you please provide a solution or your WhatsApp number so I can explain better. I have to critically test it as our organization might move for Theos Ai Pro if this is successful.
@theos-ai
@theos-ai Жыл бұрын
Hi, please send us a whatsapp message to +17372046474
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Licence Plate Recognition with YOLO V8 and Easy OCR using Custom Dataset
21:26
SPARKLERS : We Are The Makers
Рет қаралды 32 М.
[EN] Open Sourced ALPR/ANPR Solution!
9:23
Tomas Diblik
Рет қаралды 786
Exploring Abandoned Games From Our Childhood
20:00
globert
Рет қаралды 70 М.
Network Ports Explained
10:33
PowerCert Animated Videos
Рет қаралды 1,8 МЛН
This New AI is 430,000 Times Faster Than Reality (AGI Robots Soon)
8:37
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН