Test cases / image

deft image ocr

Read the text in an image (tesseract)

1 run on real files, 3 tests on generated files, not shown. 0 failed.

Fixed cases

Generated files, compared with ground truth by tools other than deft.

a real scanned page of textPassed

deft image ocr phototest.tif -o out.txt

Input

phototest.tif 37.8 KB · 640x480
phototest.tif

Output

out.txt 286 B
This is a lot of 12 point text to test the
ocr code and see if it works on all types
of file format.

The quick brown dog jumped over the
lazy fox. The quick brown dog jumped
over the lazy fox. The quick brown dog
jumped over the lazy fox. The quick
brown dog jumped over the lazy fox.
What it printed
ok image.ocr phototest.tif -> out.txt  285 characters  0.28s
Automatic checks (1)
  • text: contains = ["quick brown"], file = "out.txt"