centroid_sum += blobs[largest_blob].cx() * r[4]
center_pos = (centroid_sum / weight_sum)
deflection_angle = -math.atan((center_pos-80)/60)
S
ssmh 发布的帖子
-
想知道小车巡线以下权值代码原理
centroid_sum += blobs[largest_blob].cx() * r[4]
center_pos = (centroid_sum / weight_sum)
deflection_angle = -math.atan((center_pos-80)/60)