Tensorflow not working right, not sure what is wrong

22
November 20, 2018, at 07:50 AM

I use Android Studio to code and in the tensorflowObjectDetection example, I commented out @Disable and added our Vuforia key, and when I run the program it just crashes. I've narrowed it down to this code:

private void initTfod() {
    int tfodMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(
        "tfodMonitorViewId", "id", hardwareMap.appContext.getPackageName());
    TFObjectDetector.Parameters tfodParameters = new TFObjectDetector.Parameters(tfodMonitorViewId);
    tfod = ClassFactory.getInstance().createTFObjectDetector(tfodParameters, vuforia);
    tfod.loadModelFromAsset(TFOD_MODEL_ASSET, LABEL_GOLD_MINERAL, LABEL_SILVER_MINERAL);
}

By commenting out the bottom two lines it doesn't crash, but it don't understand why.

READ ALSO
Apache Commons Configuration: read from classpath/JAR?

Apache Commons Configuration: read from classpath/JAR?

Does the Apache Commons Configuration library support reading properties/configuration files from the classpath or JAR? I didn't find an API where it can take an InputStream, that returned by getResourceAsStream

18
Spring Controller gives me 404 status error

Spring Controller gives me 404 status error

So I am attempting to write a basic Rest Controller in Spring Tool Suite with Spring annotations where I hit the endpoint "/health" and I receive the following message upon hitting the endpoint "Kafka Streaming App is healthy"

37
Writing dynamic checkbox list, How can I submit the checked boxes? [on hold]

Writing dynamic checkbox list, How can I submit the checked boxes? [on hold]

I am producing a list of students so a user can mark their absenceI want to have a form which has the checkbox and their name for each student on the users roster

12
How to get effective result (6-digit hex value) of solid background color and translucent overlay color?

How to get effective result (6-digit hex value) of solid background color and translucent overlay color?

Let's say I have 2 colors: a solid background color (6-digit hex value) and an overlay color with opacity (6-digit hex value and some opacity percentage)

31