UPDATE Vision 更新行人检测方法2
This commit is contained in:
@ -5,6 +5,8 @@
|
||||
# @Author : hjw
|
||||
# @File : get_position_test.py
|
||||
'''
|
||||
import time
|
||||
|
||||
from Vision.camera_coordinate_dete_img import Detection
|
||||
from Trace.handeye_calibration import *
|
||||
from Vision.tool.utils import get_disk_space
|
||||
@ -56,6 +58,10 @@ def detectionPerson_test():
|
||||
if img_src is not None:
|
||||
cv2.imshow('detectPerson', img_src)
|
||||
cv2.waitKey(1)
|
||||
time.sleep(5)
|
||||
else:
|
||||
cv2.destroyAllWindows()
|
||||
|
||||
print("person", person)
|
||||
# video_path = ''.join([os.getcwd(), '/Vision/model/data/1.mp4'])
|
||||
# cam = cv2.VideoCapture(video_path)
|
||||
|
||||
Reference in New Issue
Block a user