Тёмный

Text detection with Python and Opencv | OCR using EasyOCR | Computer vision tutorial 

Computer vision engineer
Подписаться 32 тыс.
Просмотров 35 тыс.
50% 1

In this video I show you how to make an optical character recognition (OCR) using Python, OpenCV and EasyOCR !
Following the steps of this 15 minutes tutorial you will be able to detect text on images !
Code: github.com/computervisioneng/...
#ocr #computervision #textdetection #python #easyocr #opencv

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

 

16 июн 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 66   
@WelcomeToMyLife888
@WelcomeToMyLife888 Год назад
Thanks! Your videos helped me a lot in trying to get into computer vision.
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
☺️ my pleasure! I am happy to help you in your computer vision journey! 😃💪
@gloryness
@gloryness 11 месяцев назад
I noticed that test2.png wasn't a perfect detection because "$5.00 FEE" was picked up as "S5.00 FEE" Aside from that, really helpful tutorial!
@RWM85
@RWM85 4 месяца назад
Thanks, great explanation.
@mermoqqueijo
@mermoqqueijo 2 месяца назад
Hey, just found out about your channel and is very good! I am also a Computer Vision practitioner, and I will use your code for an application with a robot focused for the pedagogy. Basically, the goal is to detect Blue, Red and Green texts and it send an information to the robot to pick it up a piece of that color =). I also saw that you have a tutorial for the color detection, so I might use that also haha. Anyways, great job!
@ComputerVisionEngineer
@ComputerVisionEngineer 2 месяца назад
Sounds like a very cool project! 😃🤖 Thank you for your support! 🙌
@hamzawi2752
@hamzawi2752 Год назад
Thank you very much. It is informative.
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
I am happy you find it useful! 😊🙌
@MrMilesfinn
@MrMilesfinn 7 месяцев назад
excellent. Great organization.
@ComputerVisionEngineer
@ComputerVisionEngineer 7 месяцев назад
Thank you! Glad you enjoyed it! 😃
@user-bm1gt7vh7u
@user-bm1gt7vh7u 3 месяца назад
very goood our ENG
@brahimaissa
@brahimaissa 7 месяцев назад
Thanks for you for this, i hope if you can to explain how it works.
@zyzz605
@zyzz605 3 месяца назад
Which datasets are used in this project? What is the accuracy?
@philipgeorgiev
@philipgeorgiev 15 дней назад
Dude , you rock!
@ComputerVisionEngineer
@ComputerVisionEngineer 15 дней назад
Thank you for your support! 🙌
@philipgeorgiev
@philipgeorgiev 4 дня назад
Is there anything better than easyocr that we can run locally like claude 3 haiku ?
@nikowolfwood
@nikowolfwood Год назад
Hi!! I found your channel today, I'm trying to make a similar functionality but with text in real time that appears on screen (to make translations in real time). Do you think that is possible using opencv or I will need to use another image detection model? Cheers! and keep up with the good work!
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Thank you! I think you could do it with EasyOCR, the same way I do it in the video. Let me know how it goes! 😃🙌
@nikowolfwood
@nikowolfwood Год назад
@@ComputerVisionEngineer Hi I just wanted to tell you that I managed to make the program with easyOCR + googletrans + tkinter to display text on screen, but the problem is that the process of OCR+translation takes way too long (like 15 seconds to translate 20 words) so Ill keep researching for a faster way.
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
​@@nikowolfwood Cool! Thank you for sharing the update on your project! 💪
@oliviaonyinye595
@oliviaonyinye595 10 месяцев назад
@@nikowolfwood can you please share your codes . I am working on something similar but I am having issues
@manifestasisanubari
@manifestasisanubari 8 месяцев назад
@@nikowolfwood It would be nice to see a demo video of you. It sounds like Google Lens (Translate). Kudos!
@middlelevelgamer9180
@middlelevelgamer9180 2 месяца назад
Is there a way to group high score text and low score text and display only high score text?
@danilzubarev2952
@danilzubarev2952 6 месяцев назад
Thank you :)
@ComputerVisionEngineer
@ComputerVisionEngineer 6 месяцев назад
You are welcome! 😃🙌
@vasilisvasileiou8406
@vasilisvasileiou8406 Месяц назад
hello sir!, Is it possible to train an easyOCR model to detect images based on my own dataset?
@sayisha2472
@sayisha2472 Год назад
Nice tutorial! Is it possible to read text from an inverted image using easyocr and that the output is expected to come as expected?
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Hey, it is much better if the text is aligned. But take a look at easyocr documentation, the parameter rotation_info from the function readtext may be what you are looking for. 🙌
@gabrielchinzz3332
@gabrielchinzz3332 3 месяца назад
extremely helpful tutorial for a project, im doing right now related to OCR.Only problem now is that this model tends mistake the $ sign for an S when testing some images,other than that it is able to detect texts quite well!
@sjr787
@sjr787 2 месяца назад
Hey can I know what project are you doing
@gabrielchinzz3332
@gabrielchinzz3332 2 месяца назад
@@sjr787 Ocr scanner to scan a food pricelist and update the database
@harishdasari2641
@harishdasari2641 Год назад
Hi I'm getting error like " process finished with exit code -1073742795 (0xC000001D) while executing easyocr with python 3.9. can provide any solution for this issue.
@muzhafarhashim1234
@muzhafarhashim1234 Год назад
Great tutorial ! Can we add language translation as an output for this project ? Is like image to text translation .
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Thank you! Sure, that is perfectly possible! It is just a matter of plugging the output with a text translation API. 😃🙌
@muzhafarhashim1234
@muzhafarhashim1234 Год назад
@@ComputerVisionEngineer can you do a video about that ? im a python beginner or you can send me a coding with the translator
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Sure, I liked the idea for a tutorial, I can make a video about it. 😃 I am working in other projects right now, but I will find some time to do it within the next few weeks! 💪💪
@thaihoanguyen
@thaihoanguyen 6 месяцев назад
my output using print(Text) is only "Using CPU. Note: This module is much faster with a GPU". Nothing else. why? Help me please
@soroushlotfimehr
@soroushlotfimehr 3 месяца назад
TNX man 👨 ❤❤❤❤❤❤
@hemasripidintla-jg4ss
@hemasripidintla-jg4ss Год назад
Can you do a video on vertical text detection For eg: 1 6 7 E 5 Text should detect and recognise vertically also Pls make a video on this
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Hey Hemasri, that is a very good idea! I will look into it for a future video. 🙌
@stern7658
@stern7658 Месяц назад
hey buddy could you do an update on the code that have it print out the text to the consol and also lets say that some words letter has a font that is bgger and bolder than the rest that it also target that too then print out tit to the console, example text that is bigger or like a header it print it like this for example: since caution is more bigger it it print H1- CAUTION for caution, H2- maintain social destancing for maintain social destancing etc. you get the point
@oguapi
@oguapi Год назад
🙌
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
😄🙌
@SukumarReddyMandem-et6gd
@SukumarReddyMandem-et6gd Год назад
Hi Your videos are helpful...Can we build OCR model to detect date and time in the video. For me it will be in the same place throught the video. Please help me.
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Hey, yes sure it is possible. You can use opencv to read frames from the video, then crop the frames where the date / time is located and input the crop into easyocr. 💪
@SukumarReddyMandem-et6gd
@SukumarReddyMandem-et6gd Год назад
@@ComputerVisionEngineer Thank you so much for your reply. I implemented same but it's detecting differently each time. For example if date and time is 05/05/2023 07:08:23 some times it is detecting correctly remaining all times it is detecting as 07.08.23, 077778.23, 27.77.28 something like this each time. Can we fine tune to detect correctly. Format will be exactly same for each video as camera used to record footage is same. Please help me.
@holdengreene9717
@holdengreene9717 Год назад
Ive had a lot of trouble just getting easyOCR installed.I keep getting errors when the depoendencies are getting installed, specifically pytorch. Ive read that pytorch is not compatable with any python version after 3.7 which i find odd and also this is never mentioned in the video. This feels like it should be a simple pip install comand but i have been trying for hours and nothing works. Anyone else encoutnering this issue?
@ComputerVisionEngineer
@ComputerVisionEngineer Год назад
Hey, I just cloned the repository and everything works properly on my end. I am using Python 3.8, on a Linux system. I added a requirements.txt file to the repo with all the versions of the different packages in case it helps. Let me know how it goes! 🙌
@holdengreene9717
@holdengreene9717 Год назад
@@ComputerVisionEngineer Nope. Still get the following C:\Users\hgree>pip install easyocr==1.6.1 Collecting easyocr==1.6.1 Using cached easyocr-1.6.1-py3-none-any.whl (2.9 MB) Requirement already satisfied: torch in c:\users\hgree\appdata\local\programs\python\python311\lib\site-packages (from easyocr==1.6.1) (2.1.0.dev20230306+cpu) ERROR: Could not find a version that satisfies the requirement torchvision>=0.5 (from easyocr) (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3) ERROR: No matching distribution found for torchvision>=0.5
@holdengreene9717
@holdengreene9717 Год назад
this is odd since torchvision is installed.... Requirement already satisfied: torchvision in c:\users\hgree\appdata\local\programs\python\python311\lib\site-packages (0.2.2)
@holdengreene9717
@holdengreene9717 Год назад
@@ComputerVisionEngineer It looks like the issue is that easyOCR wants a version of torchvision > 0.5 but when I manually install I cant seem to find a version above 0.2.2 PS C:\Users\hgree> pip3 install torchvision ERROR: Could not find a version that satisfies the requirement torchvision (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3) ERROR: No matching distribution found for torchvision
@user-fw4xz4ew1e
@user-fw4xz4ew1e 6 месяцев назад
can you do the same tutorial with yolov8?
@ComputerVisionEngineer
@ComputerVisionEngineer 6 месяцев назад
I will try to. 🙌
@user-fw4xz4ew1e
@user-fw4xz4ew1e 6 месяцев назад
@@ComputerVisionEngineer thank you
@user-xl5ir7bv4v
@user-xl5ir7bv4v 11 месяцев назад
hi that good job but i need using Blurred image
@letlhogonolosetlhodi7494
@letlhogonolosetlhodi7494 11 месяцев назад
The word "but" disqualifies what you said before that. Sometimes it's a great idea to thank somebody for doing a great job especially when they are not obligated to do it. Then in a separate conversation we can't ask them nicely if it's possible to use blurred images as a use case.
@hayderalaasdy8611
@hayderalaasdy8611 11 месяцев назад
@@letlhogonolosetlhodi7494 I am sorry i not good in english
@ComputerVisionEngineer
@ComputerVisionEngineer 11 месяцев назад
Thank you so much Haider and Letlhogonolo for your contributions. Haider, do you mean you need to read the text from a blurred image?
@hayderalaasdy8611
@hayderalaasdy8611 11 месяцев назад
@@ComputerVisionEngineer yes
@krzysztofbiay462
@krzysztofbiay462 10 месяцев назад
@@letlhogonolosetlhodi7494 the word "but" does not disqualify anything, LOL. It just introduces contrast or additional information to what was said before. I have no idea who educated you... but he sure as hell owes u a refund. And I have no idea what made you think that you are welcome to interject here and scold other people. Because no one cares about your opinion so you are well-advised to take your autism elsewhere. Also - yes, he was not obligated to do it but it's not like he did any charity. RU-vidrs make videos to develop their channels and, hopefully, to get paid. And if they don't do well, users have like 10 000 other videos to watch so it's up to channel to deliver what consumer needs and then he can be thankful that anyone watches. Last but not least, he did a decent job but by no means "great" - many people, including me, had issues with easyocr's installation. Nowhere it was mentioned that nvidia-cuda-toolkit needs to be installed. And it needs to. And there were some other problems.
@satypk8664
@satypk8664 4 месяца назад
In my case it is detecting & writing only 3rd line "AND BIKE USE".
@ComputerVisionEngineer
@ComputerVisionEngineer 4 месяца назад
Are you installing the same easyocr version? Are you using the same images I used in the video?
@satypk8664
@satypk8664 4 месяца назад
@@ComputerVisionEngineeryes , followed the same code also , for drawing rectangle i modified by using loop so finally was able to draw rectangle around everything .but in case of writing issue is still there
Далее
The NGINX Crash Course
50:53
Просмотров 473 тыс.
Пранк над Катей 🤣🤣🤣
01:00
Просмотров 172 тыс.
Learning Rust! | Writing a 16bit Virtual Machine
1:37:34
3 Python Projects I’d Put On MY Resume
14:49
Просмотров 45 тыс.
Learn to Code in  UE5 - 2 - Your First Class
14:00
Просмотров 38 тыс.
Пранк над Катей 🤣🤣🤣
01:00
Просмотров 172 тыс.