pepeline_extract_subimg.py: extract subimg
This commit is contained in:
@ -264,12 +264,11 @@ def yolo_resnet_tracker(
|
||||
im0 = annotator.result()
|
||||
save_path_img, ext = os.path.splitext(save_path)
|
||||
if save_img:
|
||||
if dataset.mode == 'image':
|
||||
imgpath = save_path_img + f"_{dataset}.png"
|
||||
else:
|
||||
imgpath = save_path_img + f"_{dataset.frame}.png"
|
||||
|
||||
cv2.imwrite(Path(imgpath), im0)
|
||||
# if dataset.mode == 'image':
|
||||
# imgpath = save_path_img + f"_{dataset}.png"
|
||||
# else:
|
||||
# imgpath = save_path_img + f"_{dataset.frame}.png"
|
||||
# cv2.imwrite(Path(imgpath), im0)
|
||||
|
||||
if vid_path[i] != save_path: # new video
|
||||
vid_path[i] = save_path
|
||||
|
Reference in New Issue
Block a user