--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/039f25c3-d211-406e-8012-92a8bbe7edf5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks a bunch for the response. How would I go about inverting the image and increasing the contrast though. Sorry I'm still learning how all this works.
--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/3f937317-fe4b-4d92-af5e-96e169bb4df9%40googlegroups.com.
modify last part of your code to this:# invert image and convert to grayscaleinverted = PIL.ImageOps.invert(newim2).convert('LA')loopTest = (pytesseract.image_to_string(inverted, config=tessdata_dir_config + '--psm 8 --oem 3'))print(loopTest)loopTest = int(loopTest)Do not forget to import PIL and set up tessdata_dir_config as stated in pytesseract docs[1].Zdenko
ut 7. 5. 2019 o 15:09 Sean Connell <nightfire...@gmail.com> napísal(a):
Thanks a bunch for the response. How would I go about inverting the image and increasing the contrast though. Sorry I'm still learning how all this works.
--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesser...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/85079d34-8003-4f7a-a9ba-39d75a9bb388%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/f3d29ee5-fff1-48b9-a3e9-fbd8ab0e084b%40googlegroups.com.
Thanks a bunch it works now. The only issue it has is when trying to detect the number 1 for some reason it just thinks nothing is there.
--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/9e2877fe-bf89-4446-bfc7-021a5bb7de86%40googlegroups.com.
Thanks a bunch it works now. The only issue it has is when trying to detect the number 1 for some reason it just thinks nothing is there.
--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/9e2877fe-bf89-4446-bfc7-021a5bb7de86%40googlegroups.com.
probably because it is recognized as "l" instead of 1 and you can not convert letter to integer.Zdenko
ut 7. 5. 2019 o 21:21 Sean Connell <nightfire...@gmail.com> napísal(a):
Thanks a bunch it works now. The only issue it has is when trying to detect the number 1 for some reason it just thinks nothing is there.--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesser...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/74af4e0c-7ed0-4100-8d75-1719ae9d10bd%40googlegroups.com.
Sorry I misread the python message: actually tesseract did not find there anything (which at the end is the same as there is l ;-) )First of all I would stop with that idiotic resizing. For tesseract is AFAIR is best to have letter at size 13-30 px. Your as 240!Try to provide original captured image.Zdenko
ut 7. 5. 2019 o 21:41 Sean Connell <nightfire...@gmail.com> napísal(a):
I see so should I fool around with the contrast or is there a way to make it so it while only use number selection when reading the image?--
On Tuesday, May 7, 2019 at 3:26:50 PM UTC-4, zdenop wrote:probably because it is recognized as "l" instead of 1 and you can not convert letter to integer.Zdenkout 7. 5. 2019 o 21:21 Sean Connell <nightfire...@gmail.com> napísal(a):Thanks a bunch it works now. The only issue it has is when trying to detect the number 1 for some reason it just thinks nothing is there.--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesser...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/9e2877fe-bf89-4446-bfc7-021a5bb7de86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesser...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.