Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

THRES_BINARY & THRES_BINARY_INV border

With image white background and black character foreground + When I use adaptive threshold with thresh_binary_inv then border around character is exact. + When I use adaptive threshold with thresh_binar then boder around character is bigger Can you explain for me why ? How to get exact border at all ?

THRES_BINARY & THRES_BINARY_INV border

With image white background and black character foreground + When I use adaptive threshold with thresh_binary_inv then border around character is exact. + When I use adaptive threshold with thresh_binar then boder around character is bigger Can you explain for me why ? How to get exact border at all ?

Example thres_binary_inv (border threshold image bigger origianl then contour is exact) Original Image: C:\fakepath\3.png Threshold Image: C:\fakepath\1.png Contour: C:\fakepath\2.png