Loading src/main/java/database/target/classes/object_detection/types/ObjectSet.class +73 B (6.31 KiB) File changed.No diff preview for this file type. View original file View changed file src/main/java/object_detection/types/ObjectSet.java +6 −2 Original line number Diff line number Diff line Loading @@ -136,8 +136,11 @@ public class ObjectSet { public void updateObjectSet(List<ArrayList<Point>> points) { // for each BoundingBox we have all points that fall within it for(ArrayList<Point> point : points) { Point[] pointArray = point.toArray(new Point[0]); for(ArrayList<Point> singleBoxPoints : points) { if(singleBoxPoints.isEmpty()){ continue; } Point[] pointArray = singleBoxPoints.toArray(new Point[0]); int objIdx = makeObject(pointArray); // Compare the new object with all existing objects Loading @@ -147,6 +150,7 @@ public class ObjectSet { continue; } if (compareObjects(objIdx, j)) { System.out.println("COMBINING"); combineObjects(j, objIdx); break; } Loading Loading
src/main/java/database/target/classes/object_detection/types/ObjectSet.class +73 B (6.31 KiB) File changed.No diff preview for this file type. View original file View changed file
src/main/java/object_detection/types/ObjectSet.java +6 −2 Original line number Diff line number Diff line Loading @@ -136,8 +136,11 @@ public class ObjectSet { public void updateObjectSet(List<ArrayList<Point>> points) { // for each BoundingBox we have all points that fall within it for(ArrayList<Point> point : points) { Point[] pointArray = point.toArray(new Point[0]); for(ArrayList<Point> singleBoxPoints : points) { if(singleBoxPoints.isEmpty()){ continue; } Point[] pointArray = singleBoxPoints.toArray(new Point[0]); int objIdx = makeObject(pointArray); // Compare the new object with all existing objects Loading @@ -147,6 +150,7 @@ public class ObjectSet { continue; } if (compareObjects(objIdx, j)) { System.out.println("COMBINING"); combineObjects(j, objIdx); break; } Loading