Skip to content

Commit

Permalink
Fix generated Java blob detection (#812)
Browse files Browse the repository at this point in the history
Closes #811
  • Loading branch information
SamCarlberg authored Jan 30, 2017
1 parent 6459049 commit 0bc1087
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@
config.append("<maxCircularity>");
config.append(circularity[1]);
config.append("</maxCircularity>\n");
config.append("<filterByInertia>0</filterByInertia>\n");
config.append("<filterByConvexity>0</filterByConvexity>\n");
config.append("<filterByInertia>1</filterByInertia>\n");
config.append("<minInertiaRatio>0.1</minInertiaRatio>\n");
config.append("<maxInertiaRatio>" + Integer.MAX_VALUE + "</maxInertiaRatio>\n");
config.append("<filterByConvexity>1</filterByConvexity>\n");
config.append("<minConvexity>0.95</minConvexity>\n");
config.append("<maxConvexity>" + Integer.MAX_VALUE + "</maxConvexity>\n");
config.append("</opencv_storage>\n");
FileWriter writer;
writer = new FileWriter(tempFile, false);
Expand Down

0 comments on commit 0bc1087

Please sign in to comment.