Loading src/main/java/object_detection/types/ObjectSet.java +1 −1 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ public class ObjectSet { // 4) Now that we have a full list of candidate objects, we can do object resolution by combining candidates with overlapping points for(PointSet c : candidates){ if(c.pset.size() > 2){ if(c.pset.size() > 100 && c.pset.size() < this.pointCloud.size()*0.75){ this.reconcileCandidate(c, 0.7); } } Loading src/main/java/object_detection/types/Point.java +8 −3 Original line number Diff line number Diff line package object_detection.types; import org.apache.commons.lang3.builder.HashCodeBuilder; public class Point { Loading Loading @@ -39,13 +41,16 @@ public class Point { return false; } Point p = (Point) o; return Point.equals(this, p, (float) 6); return Point.equals(this, p, 0.0001F); } @Override public int hashCode() { float res = this.x + this.y + this.z; return Float.hashCode(res); return new HashCodeBuilder(17, 37) .append(this.x) .append(this.y) .append(this.z) .toHashCode(); } @Override public String toString() { Loading src/main/resources/application.properties +0 −1 Original line number Diff line number Diff line server.port = 5555 #spring.data.mongodb.uri = mongodb+srv://zanem:<YXQiSFkSVqxPTs3M>@cluster0.axhv9kg.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0 No newline at end of file target/classes/application.properties 0 → 100644 +2 −0 Original line number Diff line number Diff line server.port = 5555 #spring.data.mongodb.uri = mongodb+srv://zanem:<YXQiSFkSVqxPTs3M>@cluster0.axhv9kg.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0 No newline at end of file target/classes/database/MongoDBInteraction.class 0 → 100644 +7.79 KiB File added.No diff preview for this file type. View file Loading
src/main/java/object_detection/types/ObjectSet.java +1 −1 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ public class ObjectSet { // 4) Now that we have a full list of candidate objects, we can do object resolution by combining candidates with overlapping points for(PointSet c : candidates){ if(c.pset.size() > 2){ if(c.pset.size() > 100 && c.pset.size() < this.pointCloud.size()*0.75){ this.reconcileCandidate(c, 0.7); } } Loading
src/main/java/object_detection/types/Point.java +8 −3 Original line number Diff line number Diff line package object_detection.types; import org.apache.commons.lang3.builder.HashCodeBuilder; public class Point { Loading Loading @@ -39,13 +41,16 @@ public class Point { return false; } Point p = (Point) o; return Point.equals(this, p, (float) 6); return Point.equals(this, p, 0.0001F); } @Override public int hashCode() { float res = this.x + this.y + this.z; return Float.hashCode(res); return new HashCodeBuilder(17, 37) .append(this.x) .append(this.y) .append(this.z) .toHashCode(); } @Override public String toString() { Loading
src/main/resources/application.properties +0 −1 Original line number Diff line number Diff line server.port = 5555 #spring.data.mongodb.uri = mongodb+srv://zanem:<YXQiSFkSVqxPTs3M>@cluster0.axhv9kg.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0 No newline at end of file
target/classes/application.properties 0 → 100644 +2 −0 Original line number Diff line number Diff line server.port = 5555 #spring.data.mongodb.uri = mongodb+srv://zanem:<YXQiSFkSVqxPTs3M>@cluster0.axhv9kg.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0 No newline at end of file
target/classes/database/MongoDBInteraction.class 0 → 100644 +7.79 KiB File added.No diff preview for this file type. View file