UPDATE Vision 更新模型

This commit is contained in:
HJW
2024-12-02 15:51:32 +08:00
parent 157e7edce5
commit e2821f7e48
9 changed files with 1228822 additions and 20 deletions

View File

@ -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()