strip string of detection values
This commit is contained in:
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user