This commit is contained in:
Showdown76 2025-05-19 20:21:30 +02:00
parent c2fb041285
commit b035bee682

View File

@ -66,9 +66,9 @@ def perform_ocr(screenshot: bytes) -> list[dict]:
# vertical line
draw.line((x, y - size, x, y + size), fill=color, width=width)
screenshot_with_circles.save("screenshot_with_circles.png", format='PNG')
# save in a file
logger.debug("Debug, saving ocr results screenshot with circles")
screenshot_with_circles.save("ocr_results.png", format='PNG')
# save in a file
logger.debug("Debug, saving ocr results screenshot with circles")
screenshot_with_circles.save("ocr_results.png", format='PNG')
return results
def screenshot_to_base64(screenshot: bytes) -> str: