341 Commits

Author SHA1 Message Date
Erik Auerswald e6f4e49ba9 second step to implement different character sets
- add character sets full, digits, decimal, hex
- full is used by default
- character set cannot be selected for now
2018-08-05 06:26:04 +02:00
Erik Auerswald 60a5b3c62c add more details to INSTALL, e.g. needed utilities 2018-08-05 05:35:14 +02:00
Erik Auerswald 116e3e0dad remove not needed include of stdlib.h from help.c 2018-08-05 05:28:56 +02:00
Erik Auerswald d6a957e6d3 move character printing to a separate function
This is the first step towards support of different character sets.
Different character sets are intended to be used to e.g. select
between '6' and 'b', but also to receive an error if e.g. a decimal
display is recognized as a hexadecimal digit.
2018-08-05 05:24:38 +02:00
Erik Auerswald 1b90fbba6e prefix all error messages with 'ssocr: ' 2018-07-27 22:30:05 +02:00
Erik Auerswald 858327da59 hard code binary name instead of using argv[0] 2018-07-27 22:10:02 +02:00
Erik Auerswald a5d77497ee use a shorter usage description after errors 2018-07-27 22:04:56 +02:00
Erik Auerswald 6e8a7855df rename --ignore-decimal to --omit-decimal-point
The decimal point is not ignored, it is found during image segmentation
and recognized as a decimal point, but then it is omitted from the
output. Thus '--omit-decimal-point' is a more fitting name.
2018-07-25 15:50:50 +02:00
Erik Auerswald 22d95db48e further licensing clarifications 2018-07-25 14:59:33 +02:00
Erik Auerswald 16b647d7e5 clarify licensing 2018-07-24 23:22:27 +02:00
Erik Auerswald 583b96263c bump copyright year to 2018 2018-07-24 15:18:05 +02:00
Erik Auerswald bfc6e60b81 add option -G, --ignore-decimal
This option omits decimal points from the output. This can be used
to ignore isolated pixel clusters (together with --number-digits=-1).
2018-07-24 15:12:49 +02:00
Erik Auerswald 3afa041b95 improve --adjust-gray & gray_stretch documentation 2018-07-24 14:24:54 +02:00
Erik Auerswald ad22b57761 INSTALL: mention macOS include path oddity 2018-03-02 11:56:51 +01:00
Erik Auerswald ba5c908775 bump version number to 2.18.0+
This is supposed to show that this is a development version after
release of 2.18.0.
2017-11-19 15:47:34 +01:00
Erik Auerswald f87b4a80bd enable executing dilation & erosion N times...
...with optional parameter N instead of repeating the command
2017-11-19 15:33:29 +01:00
Erik Auerswald b780e91197 bumped version number to 2.17.0 (and made a release) 2017-10-22 19:28:49 +02:00
Erik Auerswald b0bfadffc3 add additional characters used by some Chinese robot
Thanks to Anders Lundstrom for for writing me an email
and describing his use case.
2017-10-22 19:20:09 +02:00
Erik Auerswald 4df402f3d9 added option -X, --print-as-hex to change output
The changed output format can be used for further processing in an
external filter to e.g. recognize characters not known to ssocr, or use
some fuzzy matching rules to work around variations in image quality.
2017-10-22 18:44:59 +02:00
Erik Auerswald 8cb3e66587 adjust comment to reflect new option -S 2017-10-22 18:27:06 +02:00
Erik Auerswald 719ca823a1 add option -S, --ascii-art-segments
This options prints the recognized segments, i.e. the display as
seen by ssocr, to standard error. This can be used as a quick check
what went wrong if the recognition does not work. Additionally,
it can be used to get the raw segment data to use a separate
program to interpret set segments as digits or characters.
2017-10-22 17:19:16 +02:00
Erik Auerswald 60614d467e maint: change flags from int to unsigned int 2017-10-22 17:03:03 +02:00
Erik Auerswald 3bd9929ebc README: I prefer emails, but look at GitHub issues 2017-10-14 15:12:29 +02:00
Erik Auerswald 6db731f44f added README to Makefile (as a documentation file) 2017-06-03 17:12:55 +02:00
Erik Auerswald 96c1fc0eb5 mention man page in README 2017-05-29 22:12:26 +02:00
Erik Auerswald f6bd80644f added a README file for display on GitHub 2017-05-29 22:09:27 +02:00
Erik Auerswald a5a00b4f24 bump version number to 2.16.4 to reflect bug fix
A new tar-ball release will follow shortly.
2017-02-28 21:52:51 +01:00
Erik Auerswald c6755feeb0 add Robert Sund w/o email to THANKS file 2017-02-28 21:51:26 +01:00
Erik Auerswald 1f1094ab0d Fix help output of default back-/foreground colors
The help section supposed to show default values would
display the current back-/foreground colors instead of
the defaults.
2017-02-26 21:51:04 +01:00
Erik Auerswald 482969cd12 bump copyright year to 2017 2017-02-26 21:38:51 +01:00
Erik Auerswald c7d6b4bda5 Fix description of -b, --background option
The description of the -b, --background option wronlgy stated that
this sets the foreground color to the given value, but sets the background
color to the given value.

Bug reported by Robert Sund.
2017-02-26 21:28:28 +01:00
Erik Auerswald 227fa378ab Makefile: add -fstack-protector-all compiler option 2016-09-09 17:47:22 +02:00
Erik Auerswald 2fc3a07190 bump copyright year to 2016 to reflect recent changes 2016-08-08 21:11:22 +02:00
Erik Auerswald f3c269e084 ensure debug image shows bitmap used for recognition
The recognition algorithm always works on a bitmap of set and unset
(foreground and background) pixels. The debug image used to show the
input image after image processing, but if the processing did not include
a command that replaced pixels with fore- or background pixel values,
it would not show which pixels are foreground, and which are not. This
commit uses the make_mono() function to create the debug image, thereby
creating a representation of the bitmap used for recognition.
2016-08-07 21:08:51 +02:00
Erik Auerswald adba20dfd9 .gitignore the generated HTML man page 2016-07-31 18:56:37 +02:00
Erik Auerswald a4ebe476a8 improve man page formatting
Option and command parameters shall be printed in bold face. This was
missing for W and H from the dynamic_threshold description.
2016-07-31 17:27:07 +02:00
Erik Auerswald 43580917c6 improve man page regarding dynamic_threshold usage
The dynamic_threshold command interacts in suprising ways with the
default threshold adjustment used by SSOCR. The --absolute-threshold
option usually helps. Mention this in the man page.
2016-07-31 17:23:00 +02:00
Erik Auerswald e375983109 added .o files to .gitignore 2016-04-26 21:44:05 +02:00
Erik Auerswald 6b5a3199de Windows might need .exe extension for binary, mention in INSTALL 2015-03-11 10:00:39 +00:00
Erik Auerswald 5e6f113cdb Change one_ratio default to 3, to make regression tests pass. 2015-02-23 19:20:27 +00:00
Erik Auerswald 55a982e253 use a float for one_ratio comparison, and bump copyright year 2015-02-23 15:52:56 +00:00
Erik Auerswald d0438b0704 Allow --minus-ratio=1
This is needed for one of my regression tests. Because checking the input
to --minus-ratio did not work before 2.16.1, this worked before.
2014-10-29 12:17:52 +00:00
Erik Auerswald b931ce6209 bumped overlooked copyright year 2014-10-27 17:07:14 +00:00
Erik Auerswald cfd6cfd5ea added Steve Meyer to THANKS for reporting the bug fixerd in r145 2014-10-27 15:30:21 +00:00
Erik Auerswald 842cae99e2 bumped version number and copyright year 2014-10-27 09:45:23 +00:00
Erik Auerswald c74bd46a72 imroved debug output for one ratio 2014-10-27 09:36:39 +00:00
Erik Auerswald bbfc6f9184 fix sanity check for option -m, --minus-ratio 2014-10-27 09:35:46 +00:00
Erik Auerswald 04afa48720 Added imlib2-config as explicit requirement to INSTALL. 2014-04-03 11:20:30 +00:00
Erik Auerswald 83f424343f Added -lm to LDLIBS.
The ssocr code itself uses math.h and thus libm. This library has been
linked to via recursive linking or the requirements of Imlib2 before
this commit. According to a report from Arne Wichmann this does not work
in all environments. While I do not know the exact circumstances under
which this problem occurs, adding -lm to the linker step is correct,
because ssocr uses it. It is incorrect to rely on Imlib2 to pull this in.
2014-03-16 17:31:35 +00:00
Erik Auerswald 9865a9ea41 Added new command 'mirror' and bumped version to 2.16.0.
This command enables recognition of Critiano Fontana's images.
2013-12-29 05:29:51 +00:00