UPDATE Vision 更新模型
This commit is contained in:
@ -22,10 +22,11 @@ import os
|
||||
"""
|
||||
测试 Vision
|
||||
"""
|
||||
|
||||
def detectionPosition_test():
|
||||
detection = Detection()
|
||||
while True:
|
||||
ret, img, xyz, nx_ny_nz, box = detection.get_position()
|
||||
ret, img, xyz, nx_ny_nz, box = detection.get_position(Point_isVision=True)
|
||||
if ret==1:
|
||||
print('xyz点云坐标:', xyz)
|
||||
print('nx_ny_nz法向量:', nx_ny_nz)
|
||||
@ -37,7 +38,7 @@ def detectionPosition_test():
|
||||
print("target_position:", target_position)
|
||||
print("noraml_base", noraml_base)
|
||||
cv2.imshow('img', img)
|
||||
cv2.waitKey(1)
|
||||
cv2.waitKey(0)
|
||||
|
||||
def take_photo_position_test():
|
||||
detection = Detection()
|
||||
@ -113,4 +114,4 @@ def bag_collection_test():
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
bag_collection_test()
|
||||
detectionPosition_test()
|
||||
Reference in New Issue
Block a user