Commit 54ec604c authored by Rohan  Kumar's avatar Rohan Kumar
Browse files

updated EntryPoints

parent 738ee2cb
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -8,19 +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> -->
        <exec.mainClass>EntryPoint</exec.mainClass>
    </properties>

    <!-- FOR THE YOLO USAGE:
    <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>
+17 −10
Original line number Diff line number Diff line
@@ -15,30 +15,34 @@ public class EntryPoint {
            - GUI server pulls information and displays point cloud to user
         */

        System.out.println("***********************************************");
        System.out.println("{ Running group8's project }");
        System.out.println("***********************************************");

        // #################################################
        // 1) Starting the GUI Server

        // nothing yet
        int port = 9999;

        System.out.println("1) GUI Server has been started on https://localhost:"+ port + ".");
        System.out.println(" - 1) GUI Server has been started on https://localhost:"+ port + ".");

        // #################################################
        // 2) Getting keyframes and feature points

        // for now, we can just set paths to the directories that hold keyframes and featurepoint CSVs
        String feature_csv_path = "/src/main/java/vslam/KeyFramePoints/";
        String keyframe_png_path = "/src/main/java/vslam/KeyFrames/";
        String feature_csv_path = "src/main/java/vslam/KeyFramePoints";
        String keyframe_png_path = "src/main/java/vslam/KeyFrames";

        System.out.println("2) Keyframe and Features have been collected.");
        System.out.println(" - 2) Keyframe and Features have been collected.");

        // #################################################
        // 3) Get objects from keyframes

        // for now, we can just set paths to the directories holding bounded box information
        String bounding_info_path = "/src/main/java/vslam/BoundedInfo/";
        String bounding_info_path = "src/main/java/vslam/BoundedInfo";

        System.out.println("3) Objects have been detected via YOLOv4.");
        System.out.println(" - 3) Objects have been detected via YOLOv4.");

        // #################################################
        // 4) Get objects from keyframes
@@ -46,8 +50,7 @@ public class EntryPoint {
        // start the object detection module, output will be the objects pushed to the cloud, return the completed object set
        ObjectSet os = ObjectDetector.process(bounding_info_path, feature_csv_path);

        System.out.println("4) ObjectSet has been constructed.");

        System.out.println(" - 4) ObjectSet has been constructed.");

        // #################################################
        // 5) Update database with objectset
@@ -58,18 +61,22 @@ public class EntryPoint {
            System.err.println("ERROR: database update failed");
        }

        System.out.println("5) Database has been constructed.");
        System.out.println(" - 5) Database has been constructed.");

        // #################################################
        // 6) Ping GUI server with completion status, so server can start displaying ObjectSet

        // nothing yet

        System.out.println("5) GUI will start reflecting object tracking.");
        System.out.println(" - 6) GUI will start reflecting object tracking.");


        /*
        At this point, everything is done, but there should be the option to rerun this system with another video possibly?
         */

        System.out.println("***********************************************");
        System.out.println("{ Project completed with success. Hope you enjoyed. }");
        System.out.println("***********************************************");
    }
}
+2.25 KiB

File added.

No diff preview for this file type.

+443 B

File added.

No diff preview for this file type.

+2.81 KiB

File added.

No diff preview for this file type.

Loading