Screen-to-text fixes in VM test script
commite11fe7ab79fe5ae69147a83754b0c9ced08e8cc6
authorVojtech Horky <vojtechhorky@users.sourceforge.net>
Tue, 7 Jun 2016 11:36:56 +0000 (7 13:36 +0200)
committerVojtech Horky <vojtechhorky@users.sourceforge.net>
Tue, 7 Jun 2016 11:36:56 +0000 (7 13:36 +0200)
tree1d1d36faee79efb134763b249ffc3b1189dd6119
parent89a09dcb4d1a4ebce828acc4a1184bc9dce88485
Screen-to-text fixes in VM test script

ImageMagick (again) updated the internal algorithm used to compute image
signatures. That broke the OCR as the hashes were used to identify
individual characters.

This commit introduced a new mechanism that relies on determining color
of individual pixels when converting to text. Hopefully this mechanism
will be more stable :-).

The OCR patterns are now in separate file to simplify updating (or adding
new characters). Also a new switch --train-ocr was added for such task.
ocr.sed [new file with mode: 0644]
test-in-vm.sh
train-ocr.txt [new file with mode: 0644]