Development
This page contains the information of Usage, Configuration, Result of OkayDoc for Android
Usage
Config videoConfig = new VideoConfig.Builder()
.setMyKadThreshold(70)
.setLandmarkThreshold(10)
.setHologramThreshold(30)
.setMinHologramDiff(2)
.setMinHologramCount(1)
.setMinLandmarkCount(3)
.setColorDetection(false)
.setScreenDetection(false)
.setContentSubDetection(false)
.setFaceTamperDetection(false)
.setMicroprintDetection(false)
.build();
Config imageConfig = new ImageConfig.Builder()
.setMyKadThreshold(70)
.setLandmarkThreshold(10)
.setHologramThreshold(30)
.setColorDetection(false)
.setScreenDetection(false)
.setContentSubDetection(false)
.setFaceTamperDetection(false)
.setMicroprintDetection(false)
.build();
Config imagePathConfig = new ImagePathConfig.Builder()
.setPath("path/to/image.jpg")
.setMyKadThreshold(70)
.setLandmarkThreshold(10)
.setHologramThreshold(30)
.setColorDetection(false)
.setScreenDetection(false)
.setContentSubDetection(false)
.setFaceTamperDetection(false)
.setMicroprintDetection(false)
.build();
MyKadDetectionActivity.startDetection(this, LICENSE_KEY,
MyKadDetectionManager.CameraType.IMAGE, imageConfig, (success, errorCode, result) -> {
if (success) {
Log.d("SAMPLE", "result => " + result);
} else {
Log.d("SAMPLE", "error => " + errorCode);
}
});Configuration
ImageConfig
ImagePathConfig
VideoConfig
Result
Error Code
Last updated