Ask Your Question
1

problem with light reflection

asked 2014-04-30 02:09:49 -0600

Fares gravatar image

updated 2014-04-30 02:16:28 -0600

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

edit retag flag offensive close merge delete

Comments

you probably need to show some code, images .

and have a look at findContours

berak gravatar imageberak ( 2014-04-30 02:15:08 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-04-30 03:21:19 -0600

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".

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-04-30 02:09:49 -0600

Seen: 1,382 times

Last updated: Apr 30 '14