更新 Vision/camera_coordinate_dete_test.py

This commit is contained in:
hjw
2024-09-06 03:42:32 +00:00
parent 538b52bb7f
commit 9fdf488674

View File

@ -7,9 +7,8 @@
''' '''
from camera_coordinate_dete import Detection from camera_coordinate_dete import Detection
import cv2 import cv2
model_path = './pt_model/last-0903.pt'
device = 'cpu' detection = Detection()
detection = Detection(model_path, device)
while True: while True:
ret, img, xyz, nx_ny_nz = detection.get_position() ret, img, xyz, nx_ny_nz = detection.get_position()