helperSanitizeBoxes is a function provided in some object detection examples but is not a built-in function?
Show older comments
I've been working with the object detectors and some of the supporting functions call "helperSanitizeBoxes" which I assume helps with bounding boxes overextending the image dimensions. I've tried looking up this function, but am curious if anyone has insight into what it does/how it can be released.
Answers (2)
sir, please check the default example folder,such as
C:\Users\Administrator\Documents\MATLAB\Examples\R2021a\deeplearning_shared\DeepLearningFasterRCNNObjectDetectionExample
may I upload helperSanitizeBoxes.m just for discussion
1 Comment
Keisham Pritamdas
on 23 Dec 2021
Anshika Chaurasia
on 4 Oct 2021
0 votes
Hi,
The function helperSanitizeBoxes is used to clean up invalid bounding box data. Boxes with values <=0 are removed and fractional values are rounded to integers. If none of the boxes are valid, this function passes the data through to enable downstream processing to issue proper errors.
For more information about this function you can run the following example where you can open the helperSanitizeBoxes.m file available in current folder section:
3 Comments
Puneet Mishra
on 18 Nov 2021
Edited: Puneet Mishra
on 18 Nov 2021
where is this function, I cannot find it in any of deep learning tutorial? also at the end of this tutorial there are only two functions i.e. augment and preprocess data... and no sanitizebox
Anshika Chaurasia
on 18 Nov 2021

Matej Komlosi
on 28 Nov 2021
Edited: Matej Komlosi
on 28 Nov 2021
It does not appear for me, I'm using matlab R2020b. It doesn't download with the example code.

Categories
Find more on Object Detection in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!