mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-20 00:51:41 +00:00
Fix for ratio in decimal number
This commit is contained in:
@@ -12,9 +12,9 @@ public class Pipeline {
|
||||
public List<Integer> value = Arrays.asList(50, 255);
|
||||
public boolean erode = false;
|
||||
public boolean dilate = false;
|
||||
public List<Double> area = Arrays.asList(0.0, 100.0);
|
||||
public List<Double> ratio = Arrays.asList(0.0, 20.0);
|
||||
public List<Double> extent = Arrays.asList(0.0, 100.0);
|
||||
public List<Integer> area = Arrays.asList(0, 100);
|
||||
public List<Double> ratio = Arrays.asList(0D, 20D);
|
||||
public List<Integer> extent = Arrays.asList(0, 100);
|
||||
public int is_binary = 0;
|
||||
public String sort_mode = "Largest";
|
||||
public String target_group = "Single";
|
||||
|
||||
@@ -53,7 +53,7 @@ public class CVProcess {
|
||||
return FoundContours;
|
||||
}
|
||||
|
||||
List<MatOfPoint> FilterContours(List<MatOfPoint> InputContours, List<Double> area, List<Double> ratio, List<Double> extent) {
|
||||
List<MatOfPoint> FilterContours(List<MatOfPoint> InputContours, List<Integer> area, List<Double> ratio, List<Integer> extent) {
|
||||
for (MatOfPoint Contour : InputContours) {
|
||||
try {
|
||||
double contourArea = Imgproc.contourArea(Contour); //TODO change scaling
|
||||
|
||||
Reference in New Issue
Block a user