MATLAB Answers

0

Cascade object detector: detect something inside another detected object ROI

Asked by Eduardo Juarez on 21 Jul 2018
Latest activity Commented on by Felipe Souza on 1 Apr 2019
Hello,
I am working on a program that detects faults in solar modules using thermographic images.
Currently I am using the cascade object detector training it with several images of defects. It works (kind of), but is not as precise as I would like it to be as there is a lot a of objects in the ground that are falsely detected.
Anyway, my idea is to first detect all the modules by putting one boundary box over each module (I already done this), for example in one image I will have 30 boundary boxes. Then, with another detector look for any "fault looking shape" just inside of each of the previous modules boundarybox ROI's.
For example, I have this image, please imagine there are green boundaryboxes over each of the modules. Lets say I have 40 boxes.
I want to run another detector that will only detect objects inside of each of the modules boundary box, I was thinking on a for loop that will detect an object first inside module bbox 1 ROI, then 2, then 3, then 4, etc. using this:
bbox = detector(I,roi) detects objects within the rectangular search region specified by roi. Set the 'UseROI' property to true to use this syntax.
The problem is I dont know how to make this, Are the boundaryboxes saved in a matrix? How can a use a for loop to get the coordinates of a bbox to use it as a ROI for another detector? Can someone help me providing me some example code that would make something like this?
Thank you a lot!

  3 Comments

In case you dont find a solution to use the detector in the bounding box you just could crop the bounding boxes from the image and save them in a seperate image. Then you run the second detector on the cropped images. This is a simple solution and not very elegant, but it would work.
What function are you using for detecting the panels and creating the boxes?
How are you finding the modules?
I am on a similar project in the University.

Sign in to comment.

0 Answers