From 5fab31135c674479290f38ea39953e7a35325f70 Mon Sep 17 00:00:00 2001 From: iTrooz Date: Tue, 20 Feb 2024 15:42:09 +0100 Subject: [PATCH] gocr: add page (#12294) * gocr: add page --------- Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --- pages/common/gocr.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pages/common/gocr.md diff --git a/pages/common/gocr.md b/pages/common/gocr.md new file mode 100644 index 000000000..0f612d2ea --- /dev/null +++ b/pages/common/gocr.md @@ -0,0 +1,17 @@ +# gocr + +> Optical Character Recognition tool. +> Recognize characters using its engine, and prompt the user for unknown patterns to store them in a database. +> More information: . + +- Recognize characters in the [i]nput image and [o]utput it in the given file. Put the database ([p]) in `path/to/db_directory` (verify that the folder exists or DB usage will silently be skipped). [m]ode 130 means create + use + extend database: + +`gocr -m 130 -p {{path/to/db_directory}} -i {{path/to/input_image.png}} -o {{path/to/output_file.txt}}` + +- Recognize characters and assume all [C]haracters are numbers: + +`gocr -m 130 -p {{path/to/db_directory}} -i {{path/to/input_image.png}} -o {{path/to/output_file.txt}} -C "{{0..9}}"` + +- Recognize characters with a cert[a]inty of 100% (characters have a higher chance to be treated as unknown): + +`gocr -m 130 -p {{path/to/db_directory}} -i {{path/to/input_image.png}} -o {{path/to/output_file.txt}} -a 100`