更新 Vision/get_position_test.py
This commit is contained in:
@ -19,7 +19,7 @@ while True:
|
|||||||
print('nx_ny_nz法向量:', nx_ny_nz)
|
print('nx_ny_nz法向量:', nx_ny_nz)
|
||||||
img = cv2.resize(img,(720, 540))
|
img = cv2.resize(img,(720, 540))
|
||||||
transformation_matrix = R_matrix(521.534, 0.705, 850.03, 0.0, 90.0, 0.0) # (x, y, z, u, v, w)
|
transformation_matrix = R_matrix(521.534, 0.705, 850.03, 0.0, 90.0, 0.0) # (x, y, z, u, v, w)
|
||||||
target_position, noraml_base = getPosition(xyz[0], xyz[1], xyz[2], nx_ny_nz[0], nx_ny_nz[1], nx_ny_nz[2], transformation_matrix)
|
target_position, noraml_base = getPosition(xyz[0], xyz[1], xyz[2], nx_ny_nz[0], nx_ny_nz[1], nx_ny_nz[2], transformation_matri,box)
|
||||||
print("target_position:", target_position)
|
print("target_position:", target_position)
|
||||||
print("noraml_base", noraml_base)
|
print("noraml_base", noraml_base)
|
||||||
cv2.imshow('img', img)
|
cv2.imshow('img', img)
|
||||||
|
|||||||
Reference in New Issue
Block a user