strip string of detection values
This commit is contained in:
parent
7532f1ed87
commit
7cc5241664
@ -139,7 +139,7 @@ class YoloReader:
|
||||
def parseYoloFormat(self):
|
||||
bndBoxFile = open(self.filepath, 'r')
|
||||
for bndBox in bndBoxFile:
|
||||
classIndex, xcen, ycen, w, h = bndBox.split(' ')
|
||||
classIndex, xcen, ycen, w, h = bndBox.strip().split(' ')
|
||||
label, xmin, ymin, xmax, ymax = self.yoloLine2Shape(classIndex, xcen, ycen, w, h)
|
||||
|
||||
# Caveat: difficult flag is discarded when saved as yolo format.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user