To quickly integrate the HyperLPR3 SDK into an Android project, add the JitPack repository and the dependency in your build.gradle files.
Step 1: Add JitPack to root build.gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2: Add dependency
dependencies {
implementation 'com.github.HyperInspire:hyperlpr3-android-sdk:1.0.3'
}
Step 3: Usage
Initialize the instance once (e.g., at app startup) and then call plateRecognition with a bitmap.
// Initialization
HyperLPR3.getInstance().init(this, new HyperLPRParameter());
// exec recognition
Plate[] plates = HyperLPR3.getInstance().plateRecognition(bitmap, HyperLPR3.CAMERA_ROTATION_0, HyperLPR3.STREAM_BGRA);