UPDATE Vision 修复Z轴抓取
This commit is contained in:
@ -46,7 +46,6 @@ class Detection_plane_vsion:
|
|||||||
self.img = cv2.resize(self.img,((int(self.img.shape[1]/2),int(self.img.shape[0]/2))))
|
self.img = cv2.resize(self.img,((int(self.img.shape[1]/2),int(self.img.shape[0]/2))))
|
||||||
self.point = np.loadtxt(point_path).reshape(self.img.shape[0], self.img.shape[1], 3)
|
self.point = np.loadtxt(point_path).reshape(self.img.shape[0], self.img.shape[1], 3)
|
||||||
self.seg_distance_threshold = 5
|
self.seg_distance_threshold = 5
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def get_position(self, Point_isVision=False, Box_isPoint=True, First_Depth=True, Iter_Max_Pixel=30,
|
def get_position(self, Point_isVision=False, Box_isPoint=True, First_Depth=True, Iter_Max_Pixel=30,
|
||||||
|
|||||||
@ -160,7 +160,6 @@ def get_disk_space(path='C:'):
|
|||||||
# space_free = bytes2human(usage.free)
|
# space_free = bytes2human(usage.free)
|
||||||
# space_used_percent = bytes2human(usage.percent)
|
# space_used_percent = bytes2human(usage.percent)
|
||||||
space_free = float(space_free[:-1])
|
space_free = float(space_free[:-1])
|
||||||
|
|
||||||
return space_free
|
return space_free
|
||||||
def find_position(Depth_Z, RegionalArea, RegionalArea_Threshold, first_depth=True):
|
def find_position(Depth_Z, RegionalArea, RegionalArea_Threshold, first_depth=True):
|
||||||
if first_depth == True:
|
if first_depth == True:
|
||||||
|
|||||||
@ -96,7 +96,6 @@ def detectionPerson_test():
|
|||||||
# cv2.waitKey(1)
|
# cv2.waitKey(1)
|
||||||
# else:
|
# else:
|
||||||
# break
|
# break
|
||||||
|
|
||||||
def HIK_Camera_test():
|
def HIK_Camera_test():
|
||||||
MY_CAMERA = camera_HIK("192.168.1.121", 554, "admin", "zlzk.123")
|
MY_CAMERA = camera_HIK("192.168.1.121", 554, "admin", "zlzk.123")
|
||||||
while True:
|
while True:
|
||||||
|
|||||||
Reference in New Issue
Block a user