You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Run OCR on each individual character in the string of numbers.
106
+
// Return empty string if OCR fails.
107
+
//
108
+
// text_inside_range: binary filter is applied to the image so that any pixels within the color range will be turned black, and everything else will be white
109
+
// width_max: return empty string if any character's width is greater than width_max (likely means that two characters are touching, and so are treated as one large character)
110
+
// min_digit_area: if a character has area (aka pixel count) smaller than this value (likely noise or punctuations), skip this character
111
+
// check_empty_string: if set to true, return empty string (and stop evaluation) if any character returns an empty string from OCR
Copy file name to clipboardExpand all lines: SerialPrograms/Source/CommonTools/OCR/OCR_NumberReader.h
+6-16Lines changed: 6 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -36,35 +36,25 @@ int read_number_waterfill(
36
36
int8_t line_index = -1
37
37
);
38
38
39
-
// run OCR on each individual character in the string of numbers.
40
-
// return empty string if OCR fails
41
-
//
42
-
// text_inside_range: binary filter is applied to the image so that any pixels within the color range will be turned black, and everything else will be white
43
-
// width_max: return empty string if any character's width is greater than width_max (likely means that two characters are touching, and so are treated as one large character)
44
-
// check_empty_string: if set to true, return empty string (and stop evaluation) if any character returns an empty string from OCR
0 commit comments