Skip to content

Commit

Permalink
Avoid implicit downcast in corner detection (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 authored Jan 8, 2021
1 parent f7e29a1 commit b2d939b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private List<Point> detectExtremeCornersByApproxPolyDp(TrackedTarget target, boo
// and maximize their distance from the center of the min area rectangle
var leftList = new ArrayList<Point>();
var rightList = new ArrayList<Point>();
var averageXCoordinate = 0;
double averageXCoordinate = 0.0;
for (var p : pointList) {
averageXCoordinate += p.x;
}
Expand Down

0 comments on commit b2d939b

Please sign in to comment.