Selecting 'Region of Interest' based on color and also to identify the shape of the object

StackOverflow https://stackoverflow.com//questions/25042828

  •  21-12-2019
  •  | 
  •  

Question

We have the following requirements for image processing:

  1. A vehicle is present in the image. We need to isolate the area such that only the vehicle is visible i.e. becomes the region of interest and the rest of the area is either discarded / cropped.

  2. where the area having a particular colour (an RGB combination, lets says yellow) has to be separated out / highlighted and then area has to be calculated for the same.

    I am new to OpenCV or ImageJ libraries which are used in these scenarios. Hence request to provide pointers on how to solve the problem.

Regards Vijay

Was it helpful?

Solution

I have not tried this solution but just an idea.

  1. Train a SVM or HAAR cascade classifier to perform vehicle detection(car, motorbike, etc) in the image.

  2. Result of detection can be given as an input to grabcut algorithm which isolates the object of interest from rest.

  3. You can highlight the area of particular colour based on its HSV colour components

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top