Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit bc42c6e

Browse files
committed
Added _OCR_ERR prefix handling instructions
1 parent 09ad346 commit bc42c6e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,8 @@ Please make sure to install all necessary addons for tesseract.
101101
Please check /var/log/pmocr.log or ./pmocr.log file for errors.
102102

103103
Filenames containing special characters should work, nevertheless, if your file doesn't get converted, try to rename it and copy it again to the monitored directory or batch process it again.
104+
105+
By default, failing to prevent files will add a prefix '_OCR_ERR' + date to the filename.
106+
In order to reprocess those files, the prefix has to be removed with the following command
107+
108+
$ find /monitor/path -iname "*_OCR_ERR.*" -print0 | xargs -0 -I {} sh -c 'export file="{}"; mv "$file" "${file//_OCR_ERR/}"'

0 commit comments

Comments
 (0)