We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3192eef commit 6eb8937Copy full SHA for 6eb8937
1 file changed
yggdrasil/src/vision/body_contour/mod.rs
@@ -147,12 +147,6 @@ impl BodyContour {
147
}
148
149
fn is_part_of_chest(chest_points: &ChestPoints, image_coordinate: Point2<f32>) -> bool {
150
- if image_coordinate.x <= chest_points.first().unwrap().x
151
- || image_coordinate.x >= chest_points.last().unwrap().x
152
- {
153
- return false;
154
- }
155
-
156
for (left_point, right_point) in chest_points.iter().zip(chest_points.iter().skip(1)) {
157
if image_coordinate.x < right_point.x {
158
let a = (right_point.y - left_point.y) / (right_point.x - left_point.x);
@@ -161,7 +155,7 @@ impl BodyContour {
161
162
163
164
- unreachable!();
+ false
165
159
166
160
167
// # TODO: This might be too simple for a body part that's not static.
0 commit comments