DoubangoTelecom / ultimateALPR-SDK

World's fastest ANPR / ALPR implementation for CPUs, GPUs, VPUs and NPUs using deep learning (Tensorflow, Tensorflow lite, TensorRT, OpenVX, OpenVINO). Multi-Charset (Latin, Korean, Chinese) & Multi-OS (Jetson, Android, Raspberry Pi, Linux, Windows) & Multi-Arch (ARM, x86).
https://www.doubango.org/webapps/alpr/
Other
593 stars 157 forks source link

Body style and make model confidence error #266

Open Nook2007 opened 1 year ago

Nook2007 commented 1 year ago

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]
    }]
}