Cut image into rows.
-
Take a look on cut_line.c, see if you want to change the following arguments
- #define GUESS_ARG_TIMES (100)
- #define GUESS_OFFSET_SEP_TIMES (100)
- #define GUESS_MAX_ARG (M_PI/10)
- #define GUESSED_MAX_ROWS (200)
- #define GUESSED_MIN_ROWS (50)
- #define USE_THREAD (4)
- #define THRESHOLD(color) ((color & 0xFF) < 128)
-
execute
make
-
execute
./cut_line input.jpg
-
Then you got input_output.jpg and many input_???.jpg as a result
The file 060.jpg is the sample input image. And other jpeg files are some of the output images.