Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val compareItem = CompareItem()
- /*
- Base of Liveness Changeled
- */
- compareItem.baseImage1 = imageFirst
- compareItem.baseImage2 = imageSecond
- /*
- Image would be to Compare
- */
- compareItem.baseIndentityData = imageSecond
- liveCamera.privyCompareFace(compareItem, object : PrivyCompareFaceCallBackListener {
- override fun failed(params: Throwable?) {
- Toast.makeText(this@MainActivity, "Error ${params?.localizedMessage}", Toast.LENGTH_LONG).show()
- }
- override fun success(params: String?) {
- Toast.makeText(this@MainActivity, params, Toast.LENGTH_LONG).show()
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement