Ask Your Question

How can I filter white color from simmilar background?

asked 2020-02-02 19:13:21 -0500

Nivash_Hashim gravatar image

Hi, I have some problems with segmentation of white colour Lego brackets. They are simmilar to background. image description

I've changed my input image to hsv, then with trackbars and inRange function I was trying to find only white brackets. Result was awful. I've tried to use histogram equalization, CLAHE but it doesn't really help. What could you suggest me? I'm using opencv Python.

edit retag flag offensive close merge delete



white or black are no real "colors" in hsv, there is no specific hue value for it.

rather try inRange() from plain bgr here.

berak gravatar imageberak ( 2020-02-03 05:01:59 -0500 )edit

They are not similar to background. The background is light white, light grey white, etc

supra56 gravatar imagesupra56 ( 2020-02-03 22:13:56 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2020-02-03 14:14:04 -0500

LBerger gravatar image

I like kmeans : image description

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2020-02-02 19:13:21 -0500

Seen: 53 times

Last updated: Feb 03