FIRST-Tech-Challenge / fmltc

FIRST Machine Learning Toolchain
Other
39 stars 14 forks source link

Able to Create Invalid Bounding Box #180

Closed uvidyadharan closed 2 years ago

uvidyadharan commented 2 years ago

Bug

Using either the manual input from the table or the OpenCV tracker it is possible for coordinates of the bounding box to be invalid. By invalid I mean that the location is off of the image. So for a 320x320 image one such point would be (400, 400). From my testing in certain scenarios it causes an error when trying to create a Model from said video. The user has no indication that the cause of the error is an Invalid Bounding Box.

image

Replication of Bug

This bug can be replicated by either manual setting the a coordinate of a given bounding box to one outside of the image. It can also be done by tracking an image that goes off or near the edge of the image and in some cases it will cause the tracker to place a point that goes off of the image.