🎅 Christmas Udemy Cupons 🎅 Ends in 1 day! 89% OFF! 🎁 Python Docx from Beginner to Winner 🎅 www.udemy.com/course/python-docx-from-beginner-to-winner/?couponCode=DECEMBER_19_22 🎁 Python PDF Handling from Beginner to Winner 2023 🎅 www.udemy.com/course/python-pdf-handling-from-beginner-to-winner/?couponCode=DECEMBER_19_22 🎁 Python TkInter from Beginner to Winner 2023 🎅 www.udemy.com/course/python-tkinter-from-beginner-to-winner/?couponCode=DECEMBER_19_22 🎁 Python ReportLab from Beginner to Winner 2023 🎅 www.udemy.com/course/python-reportlab-from-beginner-to-winner/?couponCode=DECEMBER_19_22 🎅 Cupons de Natal 🎅 Termina em 1 dia! 89% de desconto! 🎁 Python Docx de Iniciante a Vencedor 🎅 www.udemy.com/course/python-docx-de-iniciante-a-vencedor/?couponCode=DECEMBER_19_22 🎁 Python Manipulação de PDF de Iniciante a Vencedor 2023 🎅 www.udemy.com/course/python-manipulacao-de-pdf-de-iniciante-a-vencedor/?couponCode=DECEMBER_19_22 🎁 Python TkInter de Iniciante a Vencedor 2023 🎅 www.udemy.com/course/python-tkinter-de-iniciante-a-vencedor/?couponCode=DECEMBER_19_22 🎁 Gerando Arquivos PDF com Python e ReportLab 2023 🎅 www.udemy.com/course/gerando-arquivos-pdf-com-python-e-reportlab/?couponCode=DECEMBER_19_22 🎁 Python ReportLab de Iniciante a Vencedor 2023 🎅 www.udemy.com/course/python-reportlab-de-iniciante-a-vencedor/?couponCode=DECEMBER_19_22
This video was more useful that the 5 documentations that I read. Thank you. Short, simple, strait to the point, and showed us the error and what I had to install that no one else told me to.
i bet it's very repetitive but i wanted to stop by and say thanks, this video rlly was the difference between learning smth in 40mins or 4 mins so great job, man!!
Nicely done but i have a question. If tesseract needs a exe file to be called while running how can we deploy it to a cloud? How can we call the tesseract exe if the code is deployed to cloud?
Thank you so so so much but i have a little question: How do i change the directory so tesseract can know where to look for files? thanks in advance! edit: nevermind i figured it out
Wow very good, but the problem is "If the text is very clear and crisp its is showing output correctly", But I want to know if the image has multiple data not only text for example "bills, taken calendar photo or any kind of images", How to print the string from that, I tried my self it's not printing anything, Any idea for this?
Well I believe that AI is not sooo advanced for that at the moment..because captchas still are a valid way to distinguish humans from machines...the moment that kind of technology is available for all of us, captches will disappear!
Traceback (most recent call last): File "F:\all\python sourses\123.py", line 4, in img = Image.open('text.png') File "C:\Users\grapf\AppData\Local\Programs\Python\Python38-32\lib\site-packages\PIL\Image.py", line 2809, in open fp = builtins.open(filename, "rb") FileNotFoundError: [Errno 2] No such file or directory: 'text.png'
If you can't find the folder in the path mentioned at 3:40 then try looking in C:\ Program Files Mine ended up there Hope that helps save anyone some time!
you're very welcome ☺️☺️☺️🙌 i will publish this Sunday a video with another option!!! Meanwhile you can see this: Python cool tutorials: th-cam.com/play/PLOGAj7tCqHx8UnbicOV7iI-ogWeMmkqyu.html 🔥🔥🔥 thank youuu for watching 🙌
Hello thank you for the video. Is there a way to get the image preprocessed by the tesseract algorithm? When running tesseract in cmd I can get it by setting tessedit_write_images = 1, but in python I couldn't find a way to get preprocessed image.
Thanks so much for the tutorial, I understand very simple and quickly, but please may you help me to convert it to text and being displayed on web with user interface?
I tried taking a cropped image of the google page search results after you search and it's not handwritten so I would think it could read it. But...it can't. with just the lines of code you gave, it doesn't read it properly. Do you know what I can do to train the model to recognize the font type and size of the images I'm using and how to save that so I can rerun it for any search results on google?
Thank you very much Latha :)) Actually I have this video about converting text to speech: th-cam.com/video/TKtqLZh6NHA/w-d-xo.html And now I am doing small videos about python multiple choice questions and answers: th-cam.com/play/PLOGAj7tCqHx-lll9SkuU8ue_NaCIKN9pG.html What do you thing about those?
Hello Aaron, I'm sorry but I can't do it now because I don't have a mac and I'm still poor and I can't buy one now ahaha...if people share this stuff maybe I'll get enough money to buy one and start doing it for mac users too :) Thanks for watching and for the comment :)
AllTech yes I did. When I enter pip install pyresseract into visual studio the system states that: “the term pip is not recognised as the name of a cmdlet, function, script file, or operable program.”
Sorry for the delay. It seems that you don't have pip in the environment variables. Try going to the folder where you have pip.exe in the command line and then execute. For example, imagine you have Python installed at c:\pythonInstall, so you have go in command line to "cd c:\pythonInstall\Scripts" (pip should be there) and after install pytesseract. Did this helped?
Hello again, Yes it is possible. You need to provide a second parameter to: pytesseract.image_to_string(img, lang='deu') - deu for german. I did not tested this! I don't know if it is required to install any language pack or something.
Is there a way I can use this to capture text on my SCREEN rather than a text document. For example, I would like to capture the numbers in a specific region in my game and have it output into a strong, and I would like this outputted after a 5second delay until I close it. Is this possible?
Yeah you can use the PIL.ImageGrab.grab() function to take a screenshot and then just use the returned image as the document to feed into the tesseract OCR. I know this is old, but maybe it will help someone else.
on my Mac this worked import pytesseract as tess #tess.pytesseract.tesseract_cmd = r'C:\Users\AllTech\AppData\Local\Tesseract-OCR\tesseract.exe' from PIL import Image img = Image.open('textHand.png') text = tess.image_to_string(img) print(text)
🎅 Christmas Udemy Cupons 🎅 Ends in 1 day! 89% OFF!
🎁 Python Docx from Beginner to Winner 🎅 www.udemy.com/course/python-docx-from-beginner-to-winner/?couponCode=DECEMBER_19_22
🎁 Python PDF Handling from Beginner to Winner 2023 🎅 www.udemy.com/course/python-pdf-handling-from-beginner-to-winner/?couponCode=DECEMBER_19_22
🎁 Python TkInter from Beginner to Winner 2023 🎅 www.udemy.com/course/python-tkinter-from-beginner-to-winner/?couponCode=DECEMBER_19_22
🎁 Python ReportLab from Beginner to Winner 2023 🎅 www.udemy.com/course/python-reportlab-from-beginner-to-winner/?couponCode=DECEMBER_19_22
🎅 Cupons de Natal 🎅 Termina em 1 dia! 89% de desconto!
🎁 Python Docx de Iniciante a Vencedor 🎅 www.udemy.com/course/python-docx-de-iniciante-a-vencedor/?couponCode=DECEMBER_19_22
🎁 Python Manipulação de PDF de Iniciante a Vencedor 2023 🎅 www.udemy.com/course/python-manipulacao-de-pdf-de-iniciante-a-vencedor/?couponCode=DECEMBER_19_22
🎁 Python TkInter de Iniciante a Vencedor 2023 🎅 www.udemy.com/course/python-tkinter-de-iniciante-a-vencedor/?couponCode=DECEMBER_19_22
🎁 Gerando Arquivos PDF com Python e ReportLab 2023 🎅 www.udemy.com/course/gerando-arquivos-pdf-com-python-e-reportlab/?couponCode=DECEMBER_19_22
🎁 Python ReportLab de Iniciante a Vencedor 2023 🎅 www.udemy.com/course/python-reportlab-de-iniciante-a-vencedor/?couponCode=DECEMBER_19_22
if i want to dedect a number
This video was more useful that the 5 documentations that I read. Thank you. Short, simple, strait to the point, and showed us the error and what I had to install that no one else told me to.
thank you thank you very much for the support pancake king 😊😊
Ultra like. You solved a issue that no forum could. Thank you very much!
Really?!?! I was not aware of that!!!! lol
Thank you Vitor ^.^
This channel deserves much more subscribers. The content was very funny and still solved the problem
Thank you Apurva for your comment :)
Show this to your friends, maybe they will like too :)
simple, concise, doesn’t waste time :) i loved this video, thank you and i wish you well
thank you very much Amagicmuffin 😊
by the way..do you have any suggestion for a future video? something that you would like to see ?
So this is why my installation was reading everything as blank... what an install process. Thank you.
Thanks you so much man!
This process is far better than the Open OCR. And it works great for scanned documents.
thank you Leonardo 😊
i bet it's very repetitive but i wanted to stop by and say thanks, this video rlly was the difference between learning smth in 40mins or 4 mins so great job, man!!
Thank you very very much! This kind of comments actually motivates me to do more stuff and try to do it better! Thank you ^.^
Nicely done but i have a question.
If tesseract needs a exe file to be called while running how can we deploy it to a cloud?
How can we call the tesseract exe if the code is deployed to cloud?
Did you find out a way?
You are very quick and clear, keep it up!
Thank you very much xNovanoid :)
Thank you so so so much but i have a little question: How do i change the directory so tesseract can know where to look for files? thanks in advance!
edit: nevermind i figured it out
You can key in full path to your folder/file
This guy's accent made my day. So thanks for tutorial, it worked
this is so cool, can you compare it with PaddleOCR next time? I heard it works great in some cases.
Subscribed. You just explained something big and ultra useful in an easy way. Thx a lot.
Ohh thank you too Rahul ^.^
can i do it that the code can read the text from some coordinates on my pc without puting and image like text in a game for expample
Thank you very much for this video, I would never have managed to make it work without your help!
It's working, this tutorial is awesome...Thank you for sharing....
Straight up and really great explanation, thanks
Thank you Fachri :)
Thank you for the video! What usb camera do you recommend for tesseract?
Thank you very much for this video, it's save my effort for read multiple documentation
A proper video for getting started. Kudos 👏👏
Thanks a ton Nikon :D
first one that worked was trying to find out for 2 days now thank you 4rl
This vide just saved my life
thanks mate
Thank you for the valuable information i try in jupyter notebook it worked💓💓💓
Wow very good, but the problem is "If the text is very clear and crisp its is showing output correctly", But I want to know if the image has multiple data not only text for example "bills, taken calendar photo or any kind of images", How to print the string from that, I tried my self it's not printing anything, Any idea for this?
Well I believe that AI is not sooo advanced for that at the moment..because captchas still are a valid way to distinguish humans from machines...the moment that kind of technology is available for all of us, captches will disappear!
And by the way thank you Gowtham :)
please can you tell me how to load trained data (equ. traineddata ) to use with Pytesseract to detect math equations in the image!
The path for me was slightly different: "C:\Users\USERNAME\AppData\Local\Programs\Tesseract-OCR\tesseract.exe"
Thank you Tristan 😊💪👍
Mine was C:\Program Files\Tesseract-OCR
Can you please let me know how to know tesseract path
Which compiler are you using for python. Please reply me
python version 3.8.6 😊
Simple and perfect, thanks for share
This video helped me to do some cool things and saved me from boredom in these days.
Thank You
You're welcome Anonymous :)
Traceback (most recent call last):
File "F:\all\python sourses\123.py", line 4, in
img = Image.open('text.png')
File "C:\Users\grapf\AppData\Local\Programs\Python\Python38-32\lib\site-packages\PIL\Image.py", line 2809, in open
fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'text.png'
Hello Grapfik,
The file exists in that location?
Or, there is enough security permissions for your script access that location?
@@AllTechPage Yup I just double-checked. And I think it's a problem with PIL
Uhmm maybe updating the package pillow?
@@AllTechPage ok, but I'll do that tomorrow
@@kupinaa did it work by updating package pillow?
i too am facing the same issue
thank you helped very much for personal project.
This video is just perfection
This video is helpful for me. Thanks!!
You're welcome Jeff!
By the way, this is another option: th-cam.com/video/MIaIM6CLViQ/w-d-xo.html
simple and fast, THX
Thank you Diego :)
dude you are a lifesaver thank you very much
You're welcome Pavan, thank you ^.^
If you can't find the folder in the path mentioned at 3:40 then try looking in C:\ Program Files
Mine ended up there
Hope that helps save anyone some time!
Superb explanation.. hatsoff bro
thank you very much ☺️
your are save my day. Thank you very much for your tutorials
You're welcome Kishore :)
Thank you!
Thank you Nick for the support :)
how can we save the extracted text of image into a word file through python could you pleas make a video on this
I think by using the open() and .write functions you can put it into a txt.
woooah concept made easy
gr8 work dude
Thank you Advik :)
Great tutorial what I'm looking for
Exactly what I was looking for thank you
you're very welcome ☺️☺️☺️🙌
i will publish this Sunday a video with another option!!!
Meanwhile you can see this: Python cool tutorials: th-cam.com/play/PLOGAj7tCqHx8UnbicOV7iI-ogWeMmkqyu.html 🔥🔥🔥
thank youuu for watching 🙌
Thanks, I’ll watch some of those videos
Does this work for WSL as well?
Like. Quick and easy. Thanks!
You're very welcome ^.^ thanks for the visit
Hello thank you for the video. Is there a way to get the image preprocessed by the tesseract algorithm? When running tesseract in cmd I can get it by setting tessedit_write_images = 1, but in python I couldn't find a way to get preprocessed image.
Thank you very much!
You're welcome M.Adeeb ^.^
thanks, nice explanation
you're welcome 😁
Palette images with Transparency expressed in bytes should be converted to RGBA images
warnings.warn(
what should I do?
Hi friend, what do I do if I want to read image on screen using python
Thank you very much, bro!!!
You are amazing!! Thanks so much!!!
Thank you Victoria for your comment :)
Thank you very well!
you're welcome 🙌
Also i have this playlist: Python cool tutorials: th-cam.com/play/PLOGAj7tCqHx8UnbicOV7iI-ogWeMmkqyu.html
Thanks so much for the tutorial, I understand very simple and quickly, but please may you help me to convert it to text and being displayed on web with user interface?
this got me more exited than it should of.
+1 for no padding
I tried taking a cropped image of the google page search results after you search and it's not handwritten so I would think it could read it. But...it can't. with just the lines of code you gave, it doesn't read it properly. Do you know what I can do to train the model to recognize the font type and size of the images I'm using and how to save that so I can rerun it for any search results on google?
thank you so much.keep going
I.like.the.way.you.talk.
Thank.you.so.much.for.this
=) keep.it up.bro.tha
Thanks youuu :)
Very very good, thanks
you're welcome!! also i have another option, with easy OCR: th-cam.com/video/MIaIM6CLViQ/w-d-xo.html
Fantastic
Thank you so much William 😀
Also you can check this other tutorials: th-cam.com/play/PLOGAj7tCqHx8UnbicOV7iI-ogWeMmkqyu.html
nice thanks buddy
can you help me
facing error as sample.png directory not found
Thank you very much! I appreciate your all efforts to help us.
would you teach number digit to text with MacBook please; thank you in advance😀😀😀😀
u are just ,marvellous , keep it up brother
Saved my life
Thank you so much :) It worked !!
You're very welcome Suriya 😀
it's really helpful
how to link text extrect software with excel sheet or Google sheet pls help
does it work if the image contains numbers?
it worked thanks a lot! do video on converting image to text to speech
Thank you very much Latha :))
Actually I have this video about converting text to speech:
th-cam.com/video/TKtqLZh6NHA/w-d-xo.html
And now I am doing small videos about python multiple choice questions and answers: th-cam.com/play/PLOGAj7tCqHx-lll9SkuU8ue_NaCIKN9pG.html
What do you thing about those?
@@AllTechPage yaaa i saw it too thank you very much ! doing a great job!
can u please give the preprocessing code to convert a numberplate to text ?
Great video, thank you that was helpful.
thank you so much :)
you're very welcome Peyton 😊🙌🎉🎉
Don't forget to subscribe and hit the bell 🔔 button to get more videos 🔥🔥🔥
Grande Tuga. Obrigadão :)
ehehe Obrigado pelo apoio Rui!!! 😊🥳
It worked! But I fund the the tesseract in other path: "C:\Program Files\Tesseract-OCR\tesseract.exe"
Properly done, thanks!
Thank you Samuele ^.^
Thanks for your video. But I use macos, how to run it on macos, please help me! thank you so much!
I don't know because i don't have a mac...i pin this message so maybe someone replies to you :)
First, you can start with "pip install pytesseract" on mac terminal.
bro, if u still need help, give me your email I can help u
lolipopstick26@gmail.com
type me and ill help you
you can try stackoverflow.com/questions/50655738/how-do-i-resolve-a-tesseractnotfounderror
Awesome, thanks!
could you do this for us mac users because I am really struggling thanks!
Hello Aaron,
I'm sorry but I can't do it now because I don't have a mac and I'm still poor and I can't buy one now ahaha...if people share this stuff maybe I'll get enough money to buy one and start doing it for mac users too :)
Thanks for watching and for the comment :)
Hello, I was wondering what Library I must download to do this. Please show what I must type.
Hello, did you watched the video?
AllTech yes I did. When I enter pip install pyresseract into visual studio the system states that:
“the term pip is not recognised as the name of a cmdlet, function, script file, or operable program.”
Sorry for the delay. It seems that you don't have pip in the environment variables.
Try going to the folder where you have pip.exe in the command line and then execute.
For example, imagine you have Python installed at c:\pythonInstall, so you have go in command line to "cd c:\pythonInstall\Scripts" (pip should be there) and after install pytesseract.
Did this helped?
what can i do to use utf-8 characters?
thank you!
And thank you Wirechair for watching ;)
Eh... I am using an IDE and that too on a smartphone. I can't download packages
so we know to extract text but what if we want only some specific text(like only address text) to be extracted , how to do then?
extract the text and then search for what you want with a regex :)
@@AllTechPage thankyou
what apps you using? i am a begginer
Hello Chaohai, I'm using Visual Studio Code and Python 3.7 :)
does it recognize text like from captcha
thank you
Thank You!!! ))) Super-Mega-Like )
Thank you m16utah :)
thankyou very much
You're welcome San :)
Is there a way to change the language? If yes how do I change it to german?
Hello again,
Yes it is possible. You need to provide a second parameter to: pytesseract.image_to_string(img, lang='deu') - deu for german. I did not tested this! I don't know if it is required to install any language pack or something.
@@AllTechPage Okay, ill test if it. Thanks
@@AllTechPage Sorry for not answering for so long, I tried it and it works perfectly! Thanks
@@nydery nice to know that :)
Is there a way I can use this to capture text on my SCREEN rather than a text document. For example, I would like to capture the numbers in a specific region in my game and have it output into a strong, and I would like this outputted after a 5second delay until I close it. Is this possible?
Yeah you can use the PIL.ImageGrab.grab() function to take a screenshot and then just use the returned image as the document to feed into the tesseract OCR. I know this is old, but maybe it will help someone else.
LOL Exactly how did you figure all that out? I haven't tried it yet, but awesome video. :)
I had to read the documentation :p...Thank you very much William, you rock! :D
Obrigado novamente. Este vídeo é impressionante
Thanks you so much!! :D
You're welcome Juan :D
on my Mac this worked
import pytesseract as tess
#tess.pytesseract.tesseract_cmd = r'C:\Users\AllTech\AppData\Local\Tesseract-OCR\tesseract.exe'
from PIL import Image
img = Image.open('textHand.png')
text = tess.image_to_string(img)
print(text)
fantastic! Thank you sir! :D
Hey Matthew, thanks :)
God bless you.
Thank you Winston :)
Great