根据跟踪结果画框图Python代码
ground_truth_box.py
import cv2
data_path = r"E:/shipinjihe/WILD_ANIMAL/AnimalData/TheGreatFox/groundtruth_rect.txt" #文本文档所在目录v groundtruth_rect
image_path = "E:/shipinjihe/WILD_ANIMAL/AnimalData/TheGreatFox/img2" #图片所在目录,使用“/”,而不是“/”
with open(data_path) as fb: #将数据逐行读取
lines = fb.readlines()
for i in range(1,1527):
if i<10:
共有 0 条评论