maikherbig / AIDeveloper

GUI-based software for training, evaluating and applying deep neural nets for image classification
BSD 2-Clause "Simplified" License
109 stars 20 forks source link

RT-DC only: Dont drop event if cell is too close at border of image #44

Closed maikherbig closed 3 years ago

maikherbig commented 3 years ago

Currently, the whole image is dropped if the cell is too close at the border of the image (such that the requested ROI would go beyond the original image). This can be a problem for small datasets where each event counts. The function "image_crop_pad_cv2" in https://github.com/maikherbig/AIDeveloper/blob/master/Tutorial%20Deploy%20to%20OpenCV%20dnn/aid_cv2_dnn.py already solved that issue. Hence, just use that in aid_img.py!

Thanks to Martin Kräter (https://twitter.com/KraterMartin) for reporting!