Skip to content

Commit 8e5d0dc

Browse files
committed
Fix minus sign
1 parent d6ca68a commit 8e5d0dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

labelbox/exporters/pascal_voc_writer/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def add_object(self, name, xy_coords):
4242
# quantize up to 1 px off to bounding boxes
4343
if abs(x_points[0] - x_points[1]) < 1 \
4444
and abs(x_points[2] - x_points[3]) < 1 \
45-
and abs(y_points[0] == y_points[1]) < 1 \
46-
and abs(y_points[2] == y_points[3]) < 1:
45+
and abs(y_points[0] - y_points[1]) < 1 \
46+
and abs(y_points[2] - y_points[3]) < 1:
4747
x_points[0] = x_points[1]
4848
x_points[2] = x_points[3]
4949
label_type = 'bndbox'

0 commit comments

Comments
 (0)