tue-robotics / ed_perception

ED extension for classifying entities based on their attached RGBD measurements.
2 stars 5 forks source link

Don't call image classification, if image is empty #30

Closed MatthijsBurgh closed 6 years ago

MatthijsBurgh commented 6 years ago

Let me add some explanation. When a empty convexhull is created. The Imagemask is empty. This caused the crash, because of a incorrectly implementation of a custom iterator. See tue-robotics/ed#59. This is an ugly fix. Albert will make a good fix. Now the roi can be empty, which causes the image to be sent to the image recognition to be empty, which causes an error in the image recognition. Therefore it shouldn't be sent if the image is empty.

Can only be tested by custom code in segmentation, which causes an empty convexhull.