update vision
This commit is contained in:
@ -5,12 +5,15 @@
|
||||
# @Author : hjw
|
||||
# @File : camera_coordinate_dete_test.py.py
|
||||
'''
|
||||
import time
|
||||
|
||||
from camera_coordinate_dete import Detection
|
||||
import cv2
|
||||
|
||||
detection = Detection()
|
||||
|
||||
while True:
|
||||
t1 = time.time()
|
||||
ret, img, xyz, nx_ny_nz = detection.get_position()
|
||||
if ret==1:
|
||||
print('xyz点云坐标:', xyz)
|
||||
@ -18,5 +21,7 @@ while True:
|
||||
img = cv2.resize(img,(720, 540))
|
||||
cv2.imshow('img', img)
|
||||
cv2.waitKey(1)
|
||||
t2 = time.time()
|
||||
print(t2-t1)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user