Closed zlhaa23 closed 9 years ago
The current procedure of remove_noise_with_hsv is as follows.
(std_h, std_s, std_v)
(delta_h, delta_s, delta_v)
delta_h <= h_tol && delta_s <= s_tol && delta_v <= v_tol
1 - delta_v
0
This method may produce very different thicknesses for some CAPTCHA images.
Case A
Case B
The original chars appear to have almost identical thicknesses; after this procedure, the char in Case A is ~2x as thick as in Case B.
The current procedure of remove_noise_with_hsv is as follows.
(std_h, std_s, std_v)
(delta_h, delta_s, delta_v)
delta_h <= h_tol && delta_s <= s_tol && delta_v <= v_tol
, set the new grayscale value to be1 - delta_v
, or0
otherwise.Problem
This method may produce very different thicknesses for some CAPTCHA images.
Case A
Case B
The original chars appear to have almost identical thicknesses; after this procedure, the char in Case A is ~2x as thick as in Case B.
If this is fixed...