Add to clean_cct() function in clean_and_combine_datasets.ipynb. Evidently the Animl frontend is capable of creating bounding boxes in which the xmax is smaller than the xmin, which will produce negative absolute pixel values when we export it to COCO for cameratraps during the relToAbs() bounding box conversion:
Add to
clean_cct()
function inclean_and_combine_datasets.ipynb
. Evidently the Animl frontend is capable of creating bounding boxes in which thexmax
is smaller than thexmin
, which will produce negative absolute pixel values when we export it to COCO for cameratraps during therelToAbs()
bounding box conversion:https://github.com/tnc-ca-geo/animl-api/blob/3051013ceca4e924d3dcf021ee73ba5baddee3a4/src/task/annotations.js#L441-L449
This was the case for image
jldp:76b399ca2fa9100f581878054f55d9bd
, object65b952ec6464959953d157ad
. The offending object looked like:Which produces a COCO annotation that looks like: