Skip to content

Commit

Permalink
don't save zero area bounding boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
jveitchmichaelis committed Mar 3, 2020
1 parent 1165c0d commit ecc24c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/labelproject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ bool LabelProject::addLabel(QString fileName, BoundingBox bbox)
class_id = bbox.classid;
}

if(image_id > 0 && class_id > 0){
if(image_id > 0 && class_id > 0 && bbox.rect.width()*bbox.rect.height() > 0){
{
QSqlQuery query(db);

Expand Down

0 comments on commit ecc24c5

Please sign in to comment.