How to detect blue color in blue background like sea

asked 2019-04-27 13:28:53 -0600

Hi,I'm working on a task to detect blue ball in sea with opencv. How can i detect it without overlapping with sea or sky color ? Should i use bit-wise operations ?

edit retag flag offensive close merge delete

Comments

Do you have any sample images??

Chris gravatar imageChris ( 2019-04-27 13:53:45 -0600 )edit

In a case when you can't use color detection, the next step is to try texture segmentation (Haralick, Gabor filters, wavelets, structure tensors...).

kbarni gravatar imagekbarni ( 2019-04-28 05:40:51 -0600 )edit

The blue ball and blue sky are not the same, because of colour ranges. You will have to two ranges one for ball and one for sky

supra56 gravatar imagesupra56 ( 2019-04-29 07:52:42 -0600 )edit

using blob detection you can easily detect blue color in blue background. take reference from here :- https://www.learnopencv.com/blob-dete...

Akhil Patel gravatar imageAkhil Patel ( 2019-04-30 02:04:02 -0600 )edit

Yeah actually @supra56 it worked .Wanted to know the same thing mcdvoice

Andrewgupta gravatar imageAndrewgupta ( 2019-04-30 08:29:57 -0600 )edit