Hi there,
We have been using the UltimateALPR SDK in production for some time - on various Android phones.
Recently we tried to install our Android App (that uses the SDK) on Samsung S24 Ultra (Snapdragon 8 Gen 3 CPU) and the ALPR engine does not seem to be working.
Here is a small extract from the error in Logcat:
---
2024-05-23 12:13:21.418 23642-23642 **************************************************** E ALPR config prepared = {"debug_level":"info","debug_write_input_image_enabled":false,"num_threads":-1,"gpgpu_enabled":true,"charset":"latin","max_latency":-1,"ienv_enabled":false,"openvino_enabled":true,"openvino_device":"CPU","detect_minscore":0.3,"detect_roi":[0,0,0,0],"car_noplate_detect_enabled":false,"car_noplate_detect_min_score":0.8,"pyramidal_search_enabled":true,"pyramidal_search_sensitivity":0.28,"pyramidal_search_minscore":0.5,"pyramidal_search_min_image_size_inpixels":800,"klass_lpci_enabled":false,"klass_vcr_enabled":false,"klass_vmmr_enabled":false,"klass_vbsr_enabled":false,"klass_vcr_gamma":1.5,"recogn_minscore":0.5,"recogn_score_type":"min","recogn_rectify_enabled":false,"license_token_data":"******"}
2024-05-23 12:13:21.422 23642-23642 **************************************************** E ***[COMPV ERROR]: function: "UltimateBaseDebugPrint()"
file: "../../../../ultimateBase/lib/include/ultimate_base_debug.h"
line: "51"
message: [[Check Code]]Operation Failed (COMPV_ERROR_CODE_E_INVALID_CALL) -> Invalid cookie
2024-05-23 12:13:21.422 23642-23642 **************************************************** E ***[COMPV ERROR]: function: "UltimateBaseDebugPrint()"
file: "../../../../ultimateBase/lib/include/ultimate_base_debug.h"
line: "51"
message: [[Check Code]]Operation Failed (COMPV_ERROR_CODE_E_INVALID_CALL) -> updateLicenseInfo: Deser failed
2024-05-23 12:13:21.422 23642-23642 **************************************************** E ***[COMPV ERROR]: function: "UltimateBaseDebugPrint()"
file: "../../../../ultimateBase/lib/include/ultimate_base_debug.h"
line: "51"
message: [[Check Code]]Operation Failed (COMPV_ERROR_CODE_E_INVALID_CALL) -> Failed to update the license info
2024-05-23 12:13:21.422 23642-23642 **************************************************** E ***[COMPV ERROR]: function: "UltimateBaseDebugPrint()"
file: "../../../../ultimateBase/lib/include\ultimate_base_debug.h"
line: "51"
message: [UltAlprSdkEngine]Failed to initialize the engine
2024-05-23 12:13:21.422 23642-23642 **************************************************** E Error initializing ALPR engine for video stream
java.lang.AssertionError: Operation failed: Failed to initialize the engine
at org.doubango.ultimateAlpr.common.AlprUtils.assertIsOk(AlprUtils.java:293)
at org.doubango.ultimateAlpr.common.AlprActivity.onCreate(AlprActivity.java:237)
at org.doubango.ultimateAlpr.AlprVideoParallelActivity.onCreate(AlprVideoParallelActivity.java:363)
at android.app.Activity.performCreate(Activity.java:8975)
at android.app.Activity.performCreate(Activity.java:8944)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1456)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4146)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4322)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:139)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:96)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2685)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.app.ActivityThread.main(ActivityThread.java:8918)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
---
The same Android App runs fine on other devices, including Samsung S23 (Snapdragon 8 Gen 2 CPU).
We are using version v3.10.x of UltimateALPR.
We are building with armv8 and armv7 support/native libraries.
Can the reason be the Snapdragon 8 Gen 3 processor (drops 32 bit support on Android)?
Can you advice what to do to make the UltimateALPR SDK run on Samsung S24 Ultra?
Thanks in advance,
Georgi