Category : ocr

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 and I have found no working solution online yet. img = cv2.imread(‘image4.jpg’) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) bfilter = cv2.bilateralFilter(gray, 11, 17, 17) #Noise reduction edged = cv2.Canny(bfilter, ..

Read more

so i am getting an error in this code def preProcessing(img): img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) img = cv2.equalizeHist(img) img = img/255 return img while True: success, imgOriginal = cap.read() img = np.asarray(imgOriginal) img = cv2.resize(img ,(32,32)) img = preProcessing(img) cv2.imshow("Processsed Image", img) img = img.reshape(1, 32, 32, 1) i get an error as shown below ..

Read more

I have an image that is oriented at a 90-degree angle. When fetch the angle using the tesseract command line I get a 90-degree orientation. However, when I run it in python code using pytesseract (with the same tesseract version) I get 270-degree orientation. In the command line: >tesseract test-file.PNG stdout -l osd –psm 0 ..

Read more