增加了单帧入侵判断及yoloV10
This commit is contained in:
@ -16,7 +16,11 @@ from pathlib import Path
|
||||
import matplotlib.pyplot as plt
|
||||
import sys
|
||||
|
||||
sys.path.append(r"D:\DetectTracking")
|
||||
FILE = Path(__file__).resolve()
|
||||
ROOT = FILE.parents[1] # YOLOv5 root directory
|
||||
if str(ROOT) not in sys.path:
|
||||
sys.path.append(str(ROOT))
|
||||
|
||||
from tracking.utils.read_data import read_similar
|
||||
|
||||
def read_one2one_data(filepath):
|
||||
@ -531,21 +535,23 @@ def contrast_pr(evtPaths):
|
||||
|
||||
|
||||
# bcdSet = set(bcdList)
|
||||
one2nErrFile = os.path.join(evtPaths, "one_2_Small_n_Error.txt")
|
||||
with open(one2nErrFile, "w") as file:
|
||||
for item in fnevents:
|
||||
file.write(item + "\n")
|
||||
|
||||
|
||||
# one2nErrFile = os.path.join(evtPaths, "one_2_Small_n_Error.txt")
|
||||
# with open(one2nErrFile, "w") as file:
|
||||
# for item in fnevents:
|
||||
# file.write(item + "\n")
|
||||
|
||||
one2NErrFile = os.path.join(evtPaths, "one_2_Big_N_Error.txt")
|
||||
with open(one2NErrFile, "w") as file:
|
||||
for item in fn_events:
|
||||
file.write(item + "\n")
|
||||
# one2NErrFile = os.path.join(evtPaths, "one_2_Big_N_Error.txt")
|
||||
# with open(one2NErrFile, "w") as file:
|
||||
# for item in fn_events:
|
||||
# file.write(item + "\n")
|
||||
|
||||
print('Done!')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
evtpaths = r"\\192.168.1.28\share\测试视频数据以及日志\全实时测试\V12\2025-3-3"
|
||||
evtpaths = r"/home/wqg/dataset/test_base_dataset/single_event/source"
|
||||
contrast_pr(evtpaths)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user