Commit 2adfd89c authored by Nafis A Abeer's avatar Nafis A Abeer
Browse files

Working YOLODetector

parent 75454198
Loading
Loading
Loading
Loading

.vscode/settings.json

0 → 100644
+3 −0
Original line number Diff line number Diff line
{
    "java.configuration.updateBuildConfiguration": "interactive"
}
 No newline at end of file
+12 −0
Original line number Diff line number Diff line
@@ -40,3 +40,15 @@ The best way to use this in Intellij is by creating a build configuration using
  - group8/database
  - etc
- do your work within these subdirectories so we don't have issues resolving changes at the end


## Working with YOLO at current state

Install dependencies 

`mvn clean install -DskipTests`

Run program

`mvn exec:java`
+32 −2
Original line number Diff line number Diff line
@@ -8,13 +8,21 @@
    <artifactId>vslam-objects</artifactId>
    <version>1.0</version>

    <properties>
    <!-- <properties>
        <maven.compiler.source>17</maven.compiler.source>
        <maven.compiler.target>17</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <exec.mainClass>object_detection.ObjectDetector</exec.mainClass>
    </properties> -->

    <properties>
        <maven.compiler.source>17</maven.compiler.source>
        <maven.compiler.target>17</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <exec.mainClass>yolo.YOLODetector</exec.mainClass>
    </properties>


    <dependencies>
        <dependency>
            <groupId>com.sparkjava</groupId>
@@ -47,6 +55,28 @@
            <artifactId>mongodb-driver-sync</artifactId>
            <version>5.0.1</version>
        </dependency>
        <!-- JavaCV dependencies -->
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>javacv</artifactId>
            <version>1.5.7</version>
        </dependency>
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>javacv-platform</artifactId>
            <version>1.5.7</version>
        </dependency>
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>opencv-platform</artifactId>
            <version>4.5.5-1.5.7</version>
        </dependency>
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>javacpp</artifactId>
            <version>1.5.7</version>
        </dependency>

    </dependencies>
    
</project>
+15 −0
Original line number Diff line number Diff line
Class,Confidence,X,Y,Width,Height
chair,0.993455,49,263,216,217
bottle,0.943588,374,139,20,54
bottle,0.914840,202,40,26,74
bottle,0.900759,177,35,26,72
bottle,0.880150,348,124,20,70
chair,0.863159,392,234,151,200
bottle,0.847367,398,147,16,41
book,0.843019,261,212,67,39
bottle,0.777080,301,33,27,81
book,0.741183,198,146,23,73
cup,0.657321,543,203,22,27
book,0.614862,214,146,24,73
book,0.594223,232,147,15,71
book,0.568934,186,146,20,73
+14 −0
Original line number Diff line number Diff line
Class,Confidence,X,Y,Width,Height
chair,0.989348,55,264,221,216
bottle,0.972833,191,33,26,69
bottle,0.915706,299,24,21,82
bottle,0.913090,166,28,27,74
bottle,0.910639,366,133,21,51
book,0.910017,259,206,65,38
chair,0.869248,393,216,138,205
bottle,0.775094,388,139,15,40
bottle,0.756660,288,25,14,80
book,0.742734,180,144,24,69
bottle,0.732562,340,121,20,66
book,0.670628,193,140,34,74
cup,0.655761,533,191,23,25
Loading