update vision
This commit is contained in:
@ -20,7 +20,7 @@ import os
|
||||
|
||||
class Detection:
|
||||
|
||||
def __init__(self, use_openvino_model = False):
|
||||
def __init__(self, use_openvino_model = True):
|
||||
self.use_openvino_model = use_openvino_model
|
||||
if self.use_openvino_model == False:
|
||||
model_path = ''.join([os.getcwd(), '/model/pt/best.pt'])
|
||||
@ -32,14 +32,14 @@ class Detection:
|
||||
device = 'CPU'
|
||||
self.model = yolov8_segment_openvino(model_path, device, conf_thres=0.3, iou_thres=0.3)
|
||||
|
||||
img_path = ''.join([os.getcwd(), '/model/data/test0910.png'])
|
||||
point_path = ''.join([os.getcwd(), '/model/data/test0910.xyz'])
|
||||
img_path = ''.join([os.getcwd(), '/model/data/test0911.png'])
|
||||
point_path = ''.join([os.getcwd(), '/model/data/test0911.xyz'])
|
||||
self.img = cv2.imread(img_path)
|
||||
self.point = np.loadtxt(point_path).reshape((1080, 1440, 3))
|
||||
|
||||
|
||||
|
||||
def get_position(self, Point_isVision=True):
|
||||
def get_position(self, Point_isVision=False):
|
||||
""
|
||||
'''
|
||||
:param api: None
|
||||
|
||||
Reference in New Issue
Block a user