/StripPhotoIntoRows

Strip photo into rows by scanned content

Primary LanguageCMIT LicenseMIT

Purpose

Cut image into rows.

Usage

  • 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

Sample

The file 060.jpg is the sample input image. And other jpeg files are some of the output images.