Skip to content

Commit d612d3f

Browse files
committed
Fixing according to issue #155
1 parent c0fe8a6 commit d612d3f

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

lib/BoundingBox.py

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -138,25 +138,24 @@ def compare(det1, det2):
138138
det1BB[1] == det2BB[1] and \
139139
det1BB[2] == det2BB[2] and \
140140
det1BB[3] == det2BB[3] and \
141-
det1ImgSize[0] == det1ImgSize[0] and \
142-
det2ImgSize[1] == det2ImgSize[1]:
141+
det1ImgSize[0] == det2ImgSize[0] and \
142+
det1ImgSize[1] == det2ImgSize[1]:
143143
return True
144144
return False
145145

146146
@staticmethod
147147
def clone(boundingBox):
148148
absBB = boundingBox.getAbsoluteBoundingBox(format=BBFormat.XYWH)
149149
# return (self._x,self._y,self._x2,self._y2)
150-
newBoundingBox = BoundingBox(
151-
boundingBox.getImageName(),
152-
boundingBox.getClassId(),
153-
absBB[0],
154-
absBB[1],
155-
absBB[2],
156-
absBB[3],
157-
typeCoordinates=boundingBox.getCoordinatesType(),
158-
imgSize=boundingBox.getImageSize(),
159-
bbType=boundingBox.getBBType(),
160-
classConfidence=boundingBox.getConfidence(),
161-
format=BBFormat.XYWH)
150+
newBoundingBox = BoundingBox(boundingBox.getImageName(),
151+
boundingBox.getClassId(),
152+
absBB[0],
153+
absBB[1],
154+
absBB[2],
155+
absBB[3],
156+
typeCoordinates=boundingBox.getCoordinatesType(),
157+
imgSize=boundingBox.getImageSize(),
158+
bbType=boundingBox.getBBType(),
159+
classConfidence=boundingBox.getConfidence(),
160+
format=BBFormat.XYWH)
162161
return newBoundingBox

0 commit comments

Comments
 (0)