galfar / deskew

Deskew is a command line tool for deskewing scanned text documents. It uses Hough transform to detect "text lines" in the image. As an output, you get an image rotated so that the lines are horizontal.
http://galfar.vevb.net/deskew
Mozilla Public License 2.0
164 stars 26 forks source link

GUI: parse Deskew CLI output #27

Open galfar opened 4 years ago

galfar commented 4 years ago

Newer GUI version may not work correctly when paired with outdated CLI program (new options, deprecated options, etc.) => deskewing then fails but there is just not very visible e.g. "Invalid params" message in the output log.

GUI could check if the CLI is a reasonable version (parse the captured console output). This could be printed somewhere on the "Progress" page (Detected version: 1.40, tested version: 1.35). Or in the console output with some highlight.

Another possibility is to color the console output (line background?) when Error or FinishedOk message is detected. We would have to switch from TMemo to TRichMemo, such styling is supposed to be supported on all 3 supported platforms: https://wiki.freepascal.org/RichMemo#Append_mixed_color_text_at_the_end_of_the_RichMemo Colors: