Commit 78ea90ee authored by huangzhi's avatar huangzhi

ubo_night-test vedio

parent 4f4789ea
......@@ -4,14 +4,34 @@ import darknet as interface
import argparse
import sys
import time
import datetime
'''
#精确模型
configPath='hat-obj-test.cfg'
weightPath='hat-obj_last.weights'
metaPath='hat.names'
thresh =0.9
#tiny模型
configPath='hat-obj-tiny-obj-test.cfg'
weightPath='hat-obj-tiny.weights'
metaPath='hat.names'
thresh =0.6 #识别精度
'''
#tiny模型
configPath='hat-fastest-xl-hat.cfg'
weightPath='hat-fastest-xl_final.weights'
metaPath='hat.names'
thresh =0.9 #识别精度
yolo=interface.DarknetYolo(configPath, weightPath, metaPath, thresh)
parser = argparse.ArgumentParser(description='Object Detection using YOLO in OPENCV')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment