UPDATE Vision box:修改
This commit is contained in:
@ -252,6 +252,7 @@ class Detection:
|
|||||||
if np.isnan(point_x): # 点云值为无效值
|
if np.isnan(point_x): # 点云值为无效值
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
|
|
||||||
if Box_isPoint == True:
|
if Box_isPoint == True:
|
||||||
box_list.append(
|
box_list.append(
|
||||||
[[box_point_x1, box_point_y1, box_point_z1],
|
[[box_point_x1, box_point_y1, box_point_z1],
|
||||||
|
|||||||
@ -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])
|
box_point_x4, box_point_y4, box_point_z4 = remove_nan_mean_value(pm, box[3][0][1], box[3][0][0])
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
x_rotation_center = int((box[0][0][0] + box[1][0][0] + box[2][0][0] + box[3][0][0]) / 4)
|
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)
|
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)
|
point_x, point_y, point_z = remove_nan_mean_value(pm, y_rotation_center, x_rotation_center)
|
||||||
|
|||||||
Reference in New Issue
Block a user