33 Commits

Author SHA1 Message Date
Erik Auerswald b44a4ad72a update copyright years 2025-02-01 19:33:29 +01:00
Erik Auerswald 6569ca9f6b update copyright years 2024-02-23 19:03:58 +01:00
Erik Auerswald 898f5ec712 allow to specify a range for the number of digits
This can be helpful when using ssocr with a display showing
a variable number of digits, e.g., a clock, a scale, or a
thermometer.
2023-05-01 16:19:12 +02:00
Erik Auerswald 9e2d37ddbf add option -M, --min-char-dims=WxH
When there is a bit of noise in the image, the segmentation
step might find lots of small potential digits that are not
really digits (or other characters) of the display.  Given
sufficiently large display characters, it may be possible
to specify minimum character dimensions to remove spurious
potential characters (digits) based on their size.
2023-04-30 19:14:19 +02:00
Erik Auerswald ea8f724846 update copyright years 2023-04-23 12:53:48 +02:00
Erik Auerswald b83610d7d2 update copyright year 2022-01-25 18:38:52 +01:00
Erik Auerswald 113d665135 add ability to detect and print white space
This adds an option to enable white spece detection, and two
further options to control the operation of white space detection.

White space detection (--print-spaces) is intended for use cases
where digit (resp. character) grouping is important for correct
interpretation.  One use case is the recognition of superimposed
dates in photographic images.

This commit also increases the version number to 2.21.0 and tweaks
some debug output.
2021-04-25 14:05:51 +02:00
Erik Auerswald dc463a5529 options to control decimal separator recognition
Additionally, bump copyright dates and version number.
2021-04-19 19:27:52 +02:00
Erik Auerswald 2031c2c08e refactor scanning for set segments
This introduces a function to scan part of the image for foreground
pixels.

This scanline() function may be of use for distuingishing between
the digit '1' and the symbol ":".

It may also help in segment detection reliability if the "len" parameter
is used to skip scanning image areas between segment positions.
2019-03-10 17:58:04 +01:00
Erik Auerswald 9569289c63 bump copyright year to 2019 2019-02-02 13:08:13 +01:00
Erik Auerswald 583b96263c bump copyright year to 2018 2018-07-24 15:18:05 +02:00
Erik Auerswald 482969cd12 bump copyright year to 2017 2017-02-26 21:38:51 +01:00
Erik Auerswald 2fc3a07190 bump copyright year to 2016 to reflect recent changes 2016-08-08 21:11:22 +02: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 842cae99e2 bumped version number and copyright year 2014-10-27 09:45:23 +00:00
Erik Auerswald 16bcc37f78 Bumped copyright years to 2004-2013. 2013-01-08 16:56:37 +00:00
Erik Auerswald a45d5cd5d8 Bump copyright to 2004-2010,2012. 2012-02-16 08:58:31 +00:00
Erik Auerswald 5bd1f54b5d Updated copyright statement. 2010-06-08 11:59:09 +00:00
Erik Auerswald a1a060b416 - refactor image processing and online help in seperate files
- no functional changes
- this is another step towards refactoring the recognition algorithm
- this is another step towards factoring out the image access routines to
  ultimately replace Imlib2 by something else (e.g. gd)
2009-01-06 11:22:10 +00:00
Erik Auerswald 4b8ddc80f7 bump version number to 2.8.0 2008-12-14 11:21:01 +00:00
Erik Auerswald 95a1120c57 use a preprocessor constant for height/width threshold to recognize a "one" 2008-12-14 11:05:35 +00:00
Erik Auerswald 65e7aec965 remove _imlib from name of ssocr color-setting function
(as a step towards replacing Imlib2)
2008-03-13 14:57:34 +00:00
Erik Auerswald f09969d0fa refactoring: create functions draw_pixel, draw_fg_pixel, and draw_bg_pixel
and use them for image processing

ATTENTION! THIS CODE IS CURRENTLY UNTESTED!
2008-03-13 09:11:25 +00:00
Erik Auerswald 5c1ea41cec use one flags variable instead of one int variable for each flag 2008-03-09 17:59:49 +00:00
Erik Auerswald f1543aba59 remove an unneeded #define 2008-03-08 23:13:19 +00:00
Erik Auerswald b022f6046e debug_output is a global variable -> don't pass it to adapt_threshold() 2008-03-08 15:42:22 +00:00
Erik Auerswald 0e7c6e6e60 refactoring: saving of image is now done with a function 2008-03-07 14:48:13 +00:00
Erik Auerswald d5c12288eb bump version number to 2.7.0 2008-03-05 14:18:04 +00:00
Erik Auerswald 9fa09361e5 added iterative thresholding method 2008-03-02 18:02:09 +00:00
Erik Auerswald 3d202ef60c expand tabs to spaces 2008-03-02 16:30:28 +00:00
Erik Auerswald 5712564c3c - refactor "adapt threshold"
- fputs doesn't write a newline -> add newlines to fputs() invokations
2008-03-02 16:17:35 +00:00
Erik Auerswald 7c88105708 print version info to stderr if called when printing usage() to stderr 2008-03-02 15:14:01 +00:00
Erik Auerswald 8926c8c2a8 initial import, ssocr version 2.6.3 2008-03-02 15:03:51 +00:00