MATLAB Answers

Cascade object detector: detect something inside another detected object ROI

조회 수: 4(최근 30일)
Eduardo Juarez
Eduardo Juarez 21 Jul 2018
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

Florian Morsch
Florian Morsch 23 Jul 2018
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.
jonas 23 Jul 2018
What function are you using for detecting the panels and creating the boxes?
Felipe Souza
Felipe Souza 1 Apr 2019
How are you finding the modules?
I am on a similar project in the University.

로그인 to comment.

답변 수 (0)

이 질문에 답변하려면 로그인을(를) 수행하십시오.

Translated by