Bank statement PDFs to CSV, part 7: installing tesseract on Windows, tested in CI
Part 6 ended with a list of things this converter had not proven. Item 3 on that list was the scanned-PDF path on Windows: OCR worked on Linux (tesseract 5.3.4, 6/6 rows on a clean synthetic scan), but tesseract is not bundled in the installer or in either exe, and the steps for installing it on Windows had never been tested. This post closes that item — with the two failures it took to get…
This article details the installation of Tesseract OCR on Windows for a bank statement PDF to CSV converter. The previous posts established that OCR worked on Linux, but Tesseract was not bundled in the Windows installer, and installation steps had not been tested. The new CI job, ocr-windows, runs on every change to the converter and installs Tesseract using Chocolatey, adds Simplified Chinese language data, installs Python dependencies, regenerates fixtures, and runs test_ocr.py against a scanned fixture.
The installation process took 1 minute 24 seconds, and all six rows were correctly recognized and parsed. The article also highlights that the previous failures were due to bugs in test_ocr.py that were only present on Windows. Despite these successes, the article notes that the tested scenario is limited to a clean synthetic scan and does not cover real bank scans with skew, noise, low resolution, or stamps. The next post in the series will address other untested scenarios.
Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.
This story
This is one outlet's version. Read the fullest account.