Menu

#5 'No-overwrite' option for debug images

4.2.0
closed
cb4960
2017-06-03
2017-05-09
digirel
No

The debug functionality is very useful for post-OCR verification/corrections (especially in cases where the original is not available anymore after OCRing it). Unfortunately the debug-images are overwritten when the next OCR-operation is performed.
How about an option to add an incremental number or timestamp to the image name, making it possible to keep the individual images and check back later, if needed?

Discussion

  • cb4960

    cb4960 - 2017-05-13
    • labels: --> enhancement
    • status: open --> accepted
    • assigned_to: Christopher Brochtrup
    • Milestone: 4.1.0 --> 4.2.0
     
  • cb4960

    cb4960 - 2017-05-13

    Added "Appending timestamp to image" option to the output tab of the Settings dialog.

    If you need this functionality for CLI, just rename the debug image file to something unique in your script.

     
  • cb4960

    cb4960 - 2017-05-13
    • status: accepted --> closed
     
  • digirel

    digirel - 2017-05-18

    Just to save other ppl the googling: The following generates a 'unique' filename like "Output_2017-05-17_23-46-07.txt"

    -o Output_%date:~6,4%-%date:~3,2%-%date:~0,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%.txt
    
     
  • cb4960

    cb4960 - 2017-06-03

    In v4.3 I added the --debug-timestamp option so that a timestamp will be appended to the debug images when using the -d option.

     
    • digirel

      digirel - 2017-06-03

      Fantastic - thanks!

       

Log in to post a comment.