Commit ae60642b authored by Rohan  Kumar's avatar Rohan Kumar
Browse files

"fixed project layout"

parent 8cea36d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ package object_detection;
import static spark.Spark.*;
public class Backend {
    public static void main(String[] args) {
        get("/hello", (req, res) -> "Hello World");
        post("/completion", (req, res) -> true);
    }

}
+7 −3
Original line number Diff line number Diff line
package object_detection;

import com.jmatio.io.*;
import com.jmatio.types.*;

import java.io.IOException;

public class ObjectDetector {

    static ObjectSet os;

    public static void run(){
    public static void run() throws IOException {
        System.out.println("Running object detection");
        ObjectDetector.main(null);
    }

    public static void main(String[] args){
    public static void main(String[] args) throws IOException {

        /* infinite loop of running system:
        1) Get new info from system
@@ -20,6 +21,9 @@ public class ObjectDetector {
        3) Push new update to database if necessary
         */

        MatFileReader mf = new MatFileReader("./extractedPoints.mat");
        System.out.println(mf);

        // create objectset
        os = new ObjectSet();

Loading