Adaptive threshold of blurry image

前端 未结 3 658
旧巷少年郎
旧巷少年郎 2020-12-13 01:23

I have a fairly blurry 432x432 image of a Sudoku puzzle that doesn\'t adaptively threshold well (take the mean over a block size of 5x5 pixels, then subtract 2):

3条回答
  •  悲哀的现实
    2020-12-13 01:43

    Always apply gaussian for better results.

    cvAdaptiveThreshold(original_image, thresh_image, 255,
                CV_ADAPTIVE_THRESH_GAUSSIAN_C, CV_THRESH_BINARY, 11, 2);
    

提交回复
热议问题