Skip to content

Commit ce76f95

Browse files
committed
fixed blobfinder area reported by player (issue 41)
1 parent 08a66da commit ce76f95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libstageplugin/p_blobfinder.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void InterfaceBlobfinder::Publish(void)
9393
+ ((uint8_t)(blobs[b].color.g * 255.0) << 8)
9494
+ ((uint8_t)(blobs[b].color.b * 255.0));
9595

96-
bfd.blobs[b].area = dx * dy;
96+
bfd.blobs[b].area = fabs( dx * dy );
9797
bfd.blobs[b].range = blobs[b].range;
9898
}
9999
}

0 commit comments

Comments
 (0)