Ask Your Question
1

problem with light reflection

asked Apr 30 '14

Fares gravatar image

updated Apr 30 '14

berak gravatar image

When I convert my image to a binary image, this part of light reflection becomes white, and I need to get the exact contour of the character . How I could solve this...

PS: I use opencv c++

thanks

Preview: (hide)

Comments

you probably need to show some code, images .

and have a look at findContours

berak gravatar imageberak (Apr 30 '14)edit

1 answer

Sort by » oldest newest most voted
1

answered Apr 30 '14

adrians gravatar image

If the area is not completely white or black, converting the image from RGB to HSV or HSL and then ignoring the Saturation or Lightness channels might be a solution, because now the image is invariant to "whitening".

Preview: (hide)

Question Tools

Stats

Asked: Apr 30 '14

Seen: 1,411 times

Last updated: Apr 30 '14