Skip to content

Body style and make model confidence error #266

Description

@Nook2007

Sometimes confidence for body style or make model is null
and then it crashing in https://github.com/DoubangoTelecom/ultimateALPR-SDK/blob/master/samples/android/common/src/main/java/org/doubango/ultimateAlpr/common/AlprUtils.java#L242 or
https://github.com/DoubangoTelecom/ultimateALPR-SDK/blob/master/samples/android/common/src/main/java/org/doubango/ultimateAlpr/common/AlprUtils.java#L259
I noticed that this happens on the Jetson nano(but this is not accurate)

{
    "frame_id": 411,
    "job_idx": 1,
    "latency": 2,
    "plates": [{
        "car": {
            "bodyStyle": [{
                "confidence": null,
                "klass": -1,
                "name": "b*****"
            }, {
                "confidence": null,
                "klass": -1,
                "name": "c*****"
            }, {
                "confidence": null,
                "klass": -1,
                "name": "c*****"
            }, {
                "confidence": null,
                "klass": -1,
                "name": "c*****"
            }, {
                "confidence": null,
                "klass": -1,
                "name": "h*****"
            }],
            "confidence": 100.0,
            "makeModelYear": [{
                "confidence": 93.55119,
                "klass": -1,
                "make": "toyota",
                "model": "c*****",
                "year": "0-9"
            }, {
                "confidence": 3.98389,
                "klass": -1,
                "make": "toyota",
                "model": "a*****",
                "year": "0-9"
            }, {
                "confidence": 0.7968282,
                "klass": -1,
                "make": "infiniti",
                "model": "m*****",
                "year": "0-9"
            }, {
                "confidence": 0.6605937,
                "klass": -1,
                "make": "toyota",
                "model": "a*****",
                "year": "0-9"
            }, {
                "confidence": 0.2711072,
                "klass": -1,
                "make": "toyota",
                "model": "c*****",
                "year": "0-9"
            }],
            "warpedBox": [242.9378, 632.3661, 916.7623, 632.3661, 916.7623, 991.0001, 242.9378, 991.0001]
        },
        "confidences": [89.70135, 99.99648, 89.74863, 91.01137, 89.75468, 90.36578, 89.70135, 89.92514, 90.99458, 90.4777],
        "text": "763HWA1*",
        "warpedBox": [371.2712, 817.0659, 486.2534, 817.0659, 486.2534, 868.6824, 371.2712, 868.6824]
    }]
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions