
Пробовал с PaddleOCR, EasyOCR или Tesseract. Никто из них не нашел цифр на изображении. Думаю, мне нужна предварительная обработка. Попробовал эти шаги:
Код: Выделить всё
# Convert to grayscale
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
# Apply a Gaussian blur to the image to reduce noise
blurred = cv2.GaussianBlur(gray, (9, 9), 0)
# Subtract the blurred image from the original (Unsharp masking)
sharpened = cv2.addWeighted(gray, 1.5, blurred, -0.5, 0)
# Apply CLAHE for contrast enhancement
clahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(8, 8))
enhanced = clahe.apply(sharpened)
Подробнее здесь: https://stackoverflow.com/questions/790 ... this-image