A way to work with HSL?

asked 2018-01-09 18:10:54 -0600

minh gravatar image

I on a self-driving car project and i need to detect color white, after doing some research i found that using HSL color model is a pretty good method. Using cv2.inRange with lower_white = [0,100-thrHold,0] and upper_white = [100, 100, 100] i get a result that it show small dot around the image but the one i want to detect which is the small bar within the sign. Im looking for an explanation and better solutions as well.

This is the original : alt text

And the result : alt text

edit retag flag offensive close merge delete

Comments

Do you use this cv2.COLOR_BGR2HSV?

supra56 gravatar imagesupra56 ( 2018-01-09 20:44:03 -0600 )edit

No sir i used cv2.COLOR_BGR2HLS

minh gravatar imageminh ( 2018-01-09 20:46:45 -0600 )edit

The idea of detecting that bar in a larger image using pure color based segmentation is broken ... and it will simply not work.

StevenPuttemans gravatar imageStevenPuttemans ( 2018-01-10 07:03:58 -0600 )edit