Extract Text From Images in Python (OCR)
Вставка
- Опубліковано 6 жов 2021
- In this video we learn how to use OCR to extract text from images using Python and Tesseract.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine.com/books/
💻 The Algorithm Bible Book: www.neuralnine.com/books/
👕 Programming Merch: www.neuralnine.com/shop
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine.com/
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/NeuralNine
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/ - Наука та технологія
Thank you dude! Exactly what I was looking for! Suggestion, do you think you can make a video on Google Drive and Python?
Your video helped a lot than university. Thank you so much. I can't express how much it helped.
you always bring this awesome videos .
Page segmentation modes:
O Orientation and script detection (OSD) only
1 Automatic page segmentation with OSD. ‘
2 Automatic page segmentation, but no OSD, or OCR.
3 Fully automatic page segmentation, but no OSD. (Default)
4 Assume a single column of text of variable sizes.
5 Assume a single uniform block of vertically aligned text.
6 Assume a single uniform block of textJ
7 Treat the image as a single text line.
8 Treat the image as a single word.
9 Treat the image as a single word in a circle.
10 Treat the image as a single character.
11 Sparse text. Find as much text as possible in no particular order.
12 Sparse text with OSD.
13 Raw line. Treat the image as a single text line, bypassing hacks that are Tesseract-specific.
wheres the code
Thanks, nice example, good work.
do you have any videos on training tesseract to better recognize say a different font?
I was looking for this
Thanks. Great video!
Hey mate- -- any chance these files might be in a repo somewhere for reference?
Awesome video. It would be nice if we can use the phone to do the same photo to text conversion.
Did you find something?
This would be really cool
hi, the cv2.fucntion was highlighted and cannot run. no errors either. import cv2 done. opencv-python installed....all done. how to resolve?
Your videos are amazing
thanks!
Can I put this kind of a program on the web server, get data from webhooks, process them with OpenCV + Tesseract, and then send processed data back to the input server?
Actually I mean if the tesseract and whole program can work on server environment?
Is it possible to export it into an online document automatically, then it get checked by A.I to detect any mistakes or misspelling words, so the user can automatically and quickly fix them up one by one, by jumping from one word to another.
Would this work on manuscripts such as Arabic language, and is there a way to train the machine to recognise the characters of Arabic including Tashkeel.
Thanks
Can I use that to read numerical values? I'm creating a project that I can read every day my energy usage with a camera
Hi, do you have any video on Azure Function App using Python as a Scripting Language to run the python script in Azure Function app?
hi there. awesome video. i wanted to ask that if i want particular data only from an image is it possible?
did you figure it out
I never thought Nacho would teach me Python
Thank you for your tutorials!
I have a question: what would be the best way to extract a specific information, such as invoice number or purchase order number. Let’s say there are many different vendors, maybe over 100 vendors. And every vendor has invoice number in different parts of the document. What technique would be used to perform this kind of ocr?
That's quite difficult. I don't think there is a very simple solution to this. But one idea is to use regular expressions if you know the format of the numbers for each vendor.
@@NeuralNine thank you. I agree that regex is a decent way to achieve this. What do you think about creating a template for each vendor?
Am running tbe code in jupyter Notebook but am having insure installing the different packages like tesseract
I need a help from you. I think you know ICR right (INTELLIGENT CHARACTER RECOGNITION) . We are trying to implement that in deep learning.
But we don't have segmentation for image.
Our algorithm is good for normal hand writting but cursive handwriting which is having high storks.
Please help me out for word segmentation brother,
Thankyou, hope you will help me.
Dear Sir, I am your Subscriber
I want to create a tool that finds text errors in the image.
For Example:
I forgot to write CONTACT US, BUY NOW, CONTACT NUMBER, SPELLING MISTAKE, etc... in my social media post.
that the tool finds error and suggests what are missing or what is incorrect in social media post.
🙏 Please guide me and suggest what course I need to buy or what I need to learn to create this tool
Thank you
wish to test this code on my localhost,where can i find it?
Bro please post a video that extract tabular data from image and pdf except using tabula, camelot,table -ocr,... All libraries I used none of them are working plzzz..
how do you make it extract text from what is currently on ur screen? and store it in a variable which changes each time because each time whats stored on ur screen is different
Screenshot screen, scan screenshot, store to file
hello could you advise me an artificial intelligence, I have photos of jewelry and I would like this one to give me the description in SEO and then the generated text goes directly into a Google sheet
anyway thank you very much for your videos
I am facing this error. Anyone Can help me? PermissionError: [WinError 5] Access is denied
Awesome. Thanks a lot. Can you share the code as I am lost at some point?
I don't share code for small tutorials. I explain why in my Q&A.
@@NeuralNine can u help me continue this project by exporting to csv file.
According to my tests, PaddleOCR works better than tesseract in most scenes.
Plzz share code
It's all about tesserocr
im looking for library that can take cursive writing to readable writing. Do you think paddleocr can do the job
tesseract thinks 7 is 1 for me, is there anything i can do, its also not so good at detecting dots
Nice tutorial. Can you post a Tutorial on how to extract tabular data in OCR Python
Hi did you find any solution for tabular data extraction using ocr?
Hi did you find any solution for tabular data extraction using ocr?
Hi did you find any solution for tabular data extraction using ocr?
plz find one@@stefano8840
Hi did you find any solution for tabular data extraction using ocr?
Will this work for captcha images? can anyone please answer
Please tell me if I use what I learn in this video in any commercial app of my own, is it legal? I am in 1st year of college and need to know these rules
Why would you think its illegal. Its an open source repo of course its legal. My suggestion learn any tech stack and implement it and deploy
I am getting into Django development, so I'm a little new to that, but do you think it's possible to run this feature on a Django site? It should be possible right? Basically anything python can do, just on the web..
yep obiviously
👍👍👍
Second 🔥🔥🔥best project
^^
Thx_.
I am looking for something like this but which scans passport mrz
If you found sth send help please I’m stuck :(
How to extract pixels for a TIFF image and be white and black and they do inside his matrix use Python
I am working handwritten text extraction from the image which is non english. I tried using tesseract for extract. but the accuracy is very poor. Could any one please let me know if there is any lib available for extraction?
no there is not , I have the same problem , I have tried many packages none of them is advanced enough to detect handwritten text until it is written in very clear handwriting.
OK followed that and used a very CLEAR input image and VERY VERY VERY clear human readable font. Tesseract in all its paramaters totally face plants. It totally totally fails it is so bad!
How would I go about it using a MacBook ?
You can use a jupyter Notebook and use pytesserect, similar to what he does at 02:58
Can anyone tell me why someone use python or paddle or these things that require coding and does not use a ocr program like pdf element or pdf acrobat or any online ocr , why i use coding thing ???
first of all it is free and let u automate task the only reason to use ocr....i have to say after extraction of 1000 images each image data i want to properly arrange in excel too. So python helps a lot working with ocr
@@abhimonarch9596
I have a lot of scanned images maybe reach 10000 images and the number will inceease i want to convert all of that to microsoft word files with the same original formatting and tables and pictures all that i want to keep it ,can you tell me the best way to do that ?
How to create txt extractor bot please help ❤❤
hello i wanna ask please...
i want to convert pdf to excel ....how i can do
to a csv file, u need to extract the text first, then save the string in a file, and u can read the file with pandas and give it the separator.
NEED HELP! I am making a website where user can upload a pdf but I want that pdf to upload only if that pdf has images of only HANDWRITTEN text. Thank you for reading.
I am working on the same project as u
Did u find anything ?
Nope🥲..Please let me know if you find anything
Not for everyone. Too complex.
21:04
how to protect text from ocr scanning ?? 😢😢
make bad looking text, write it by hand ? do weird letters XD
@@cavalfou No brother its not written by hand.... i am doing legal drafting work.... some people ask me for pdf or JPEG files for drafting chekout...... now days someone know about ocr scanning and so many apps... i dont want to copy my drafting work so.....
seems like Pipboy is not impossiible
First
congrats 👀
you look a little bit like joel kinnaman
Forth
Forth or fourth? 👀
@@NeuralNine Was ihre Meinung?
Forth was an intriguing language imho. I can understand why it ultimately failed, but it still had some cool ideas.
lol not for the amateurs. why are all coders terrible teachers
hey
i have an image that contains persian numbers. i want to reed those numbers. the ocr didnt helped me so much. but i have an idea. what if i could use "opencv" and give it a set of persian numbers and signs that the image contains then match number digit by digit. numbers are big >99,999.999