UPDATE Vision box:修改

This commit is contained in:
HJW
2024-10-09 15:57:01 +08:00
parent b5ca028199
commit 1feb28b68d
2 changed files with 1 additions and 1 deletions

View File

@ -252,6 +252,7 @@ class Detection:
if np.isnan(point_x): # 点云值为无效值
continue
else:
if Box_isPoint == True:
box_list.append(
[[box_point_x1, box_point_y1, box_point_z1],

View File

@ -231,7 +231,6 @@ class Detection:
box_point_x4, box_point_y4, box_point_z4 = remove_nan_mean_value(pm, box[3][0][1], box[3][0][0])
else:
pass
x_rotation_center = int((box[0][0][0] + box[1][0][0] + box[2][0][0] + box[3][0][0]) / 4)
y_rotation_center = int((box[0][0][1] + box[1][0][1] + box[2][0][1] + box[3][0][1]) / 4)
point_x, point_y, point_z = remove_nan_mean_value(pm, y_rotation_center, x_rotation_center)