Mask a room using OpenCV

asked 2019-04-25 04:10:14 -0600

Hi, I am trying to clone the results and technique of this website https://www.visualizecolor.com/voc#/P... Using open cv in Python. So far i have tried converting BGR 2 HSV and then get the pixel color and make mask but it's not making same results. then i have tried segmentation. Even gray scale also,I just need help in selection of mask. any hint will be really appreciated. Attached the image for refrence purpose. image description

edit retag flag offensive close merge delete

Comments

can you try to explain more detailled, what YOU are trying to do (code ?), not some ppl on some (arbitrary) website ?

berak gravatar imageberak ( 2019-04-25 05:48:42 -0600 )edit

Yes sure actually i am trying to paint the colors using mouse click i am stucked in the selection process, for example, the blue color on wall should select accurate blue color of full wall not including frames and flower

I can share the code but it's using different different approches and it will just confuse you!. I have tried so far FloodFIll, Segmentation, BGR to HSV.

Shubhamm gravatar imageShubhamm ( 2019-04-25 06:56:35 -0600 )edit

Try to use kmeans

LBerger gravatar imageLBerger ( 2019-04-25 09:00:45 -0600 )edit

or grabcut

kbarni gravatar imagekbarni ( 2019-04-26 08:29:46 -0600 )edit