Ensure we're passing a string to `imread`
This commit is contained in:
parent
c903c73270
commit
62d5bb7c2b
|
@ -76,7 +76,7 @@ class Detector:
|
|||
detections.append(Detection(label, confidences[i], box))
|
||||
|
||||
font = cv.FONT_HERSHEY_PLAIN
|
||||
marked = cv.imread(filename)
|
||||
marked = cv.imread(str(filename))
|
||||
for detection in detections:
|
||||
x, y, w, h = detection.box
|
||||
cv.rectangle(marked, (x,y), (x + w, y + h), (255,255,255,0), 2)
|
||||
|
|
Loading…
Reference in New Issue