Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. val compareItem = CompareItem()
  2. /*
  3. Base of Liveness Changeled
  4. */
  5. compareItem.baseImage1 = imageFirst
  6. compareItem.baseImage2 = imageSecond
  7.  
  8. /*
  9. Image would be to Compare
  10. */
  11. compareItem.baseIndentityData = imageSecond
  12.  
  13. liveCamera.privyCompareFace(compareItem, object : PrivyCompareFaceCallBackListener {
  14. override fun failed(params: Throwable?) {
  15. Toast.makeText(this@MainActivity, "Error ${params?.localizedMessage}", Toast.LENGTH_LONG).show()
  16. }
  17.  
  18. override fun success(params: String?) {
  19. Toast.makeText(this@MainActivity, params, Toast.LENGTH_LONG).show()
  20. }
  21.  
  22. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement