Skip to content

New checkbox detection algorithm

Hugo Kerstens requested to merge 609-checkbox-detection into master

Implements a new checkbox detection algorithm and adds new example scans for testing.

The algorithm works as follows. First, a binary threshold is applied to the input images. Next, template matching is applied to find the exact location of the checkbox. Finally the inside of the checkbox is checked to be filled for at least a certain threshold.

This MR:

  • Adds the new algorithm
    • First version of the algorithm
    • Use a different threshold for template matching (optional)
  • Adds new example scans for testing the new algorithm
    • 100 dpi scan
    • 300 dpi scan
  • Generalizes the is_blank method
  • Implement the is_solution_blank method using the above method

Closes #609 (closed)

Merge request reports

Loading