Skip to content
Advertisement

Tag: ocr

OCR: Saving Words in a CSV-file

this is a part of my OCR code. This part looks for a special word in a scanned PDF and prints this out. I have like 10 Queries like this and all print me the word I am looking for. Now I want to get the found words saved in a CSV, but I don’t know how to do that.

cv2.error (-215:Assertion failed) reader.ptr != NULL in function cvDrawContours

So I’m trying to create a license plate detection program and I have been following a guide for that, (https://github.com/nicknochnack/ANPRwithPython/blob/main/ANPR%20-%20Tutorial.ipynb) however I am currently running into a problem. I have also tried to change “location” to 0 or [0] but to no success. Answer Found the “solution” to this, although it’s not much an Solution. The reason this kept happening

Pytesseract read coloured text

I am trying to read coloured (red and orange) text with Pytesseract. I tried to not grayscale the image, but that didn’t work either. Images, that it CAN read Images, that it CANNOT read My current code is: Answer This little function (below) will do for any color ec9Ut.png Thresh result x18MN.png Thresh result SFr48.png Thresh result Output

Bounding box detection for characters / digits

I have images, which look like the following: I want to find the bounding boxes for the 8 digits. My first try was to use cv2 with the following code: Unfortunately that doesn’t work. Does anyone have an idea? Answer The problem in your solution is likely the input image, which is very poor in quality. There’s hardly any contrast

Advertisement