Recognito
  • About RECOGNITO
  • Face Recognition SDK
    • Performance Overview
    • Integration Guide
      • Linux
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • Windows
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • Android
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • iOS
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • Flutter
        • Installation
        • API Reference
        • Licensing
        • Sample Application
  • Face Liveness Detection SDK
    • Performance Overview
    • Integration Guide
      • Linux
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • Windows
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • Android
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • iOS
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • Flutter
        • Installation
        • API Reference
        • Licensing
        • Sample Application
  • ID Document Recognition SDK
    • Performance Overview
    • Integration Guide
      • Linux
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • Android
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • iOS
        • Installation
        • API Reference
        • Licensing
        • Sample Application
  • ID Document Liveness Detection SDK
    • Performance Overview
    • Integration Guide
      • Linux
        • Installation
        • API Reference
        • Licensing
        • Sample Application
  • License Option
  • How to implement 1:N identification with RECOGNITO SDK
  • Contact & Support
Powered by GitBook
On this page
  • 1. Face Enrollment
  • 2. Face Identification
  • 1:N Face Template Matching Sample Code
  • Examples
  • - Linux 1:N Face Search Demo
  • - Window-Face SDK Video Surveillance Demo
  • - Android-Face SDK Demo

How to implement 1:N identification with RECOGNITO SDK

PreviousLicense OptionNextContact & Support

Last updated 5 months ago

Using RECOGNITO FaceSDK, you can implement 1:N face identification function.

1. Face Enrollment

2. Face Identification

1:N Face Template Matching Sample Code

Android-FaceRecognition-FaceLivenessDetection/app/src/main/java/com/bio/facerecognition /CameraActivityKt.kt
...
if(faceBoxes.size > 0) {
    val faceBox = faceBoxes[0]
    if (faceBox.liveness > SettingsActivity.getLivenessThreshold(context)) {
        val templates = FaceSDK.templateExtraction(bitmap, faceBox)

        var maxSimiarlity = 0f
        var maximiarlityPerson: Person? = null
        for (person in DBManager.personList) {
            val similarity = FaceSDK.similarityCalculation(templates, person.templates)
            if (similarity > maxSimiarlity) {
                maxSimiarlity = similarity
                maximiarlityPerson = person
            }
        }
        if (maxSimiarlity > SettingsActivity.getMatchThreshold(context)) {
            recognized = true
            val identifiedPerson = maximiarlityPerson
            val identifiedSimilarity = maxSimiarlity

            runOnUiThread {
                val faceImage = Utils.cropFace(bitmap, faceBox)
                val intent = Intent(context, ResultActivity::class.java)
                intent.putExtra("identified_face", faceImage)
                intent.putExtra("enrolled_face", identifiedPerson!!.face)
                intent.putExtra("identified_name", identifiedPerson!!.name)
                intent.putExtra("similarity", identifiedSimilarity)
                intent.putExtra("liveness", faceBox.liveness)
                intent.putExtra("yaw", faceBox.yaw)
                intent.putExtra("roll", faceBox.roll)
                intent.putExtra("pitch", faceBox.pitch)
                startActivity(intent)
            }
        }
    }
}

Examples

- Linux 1:N Face Search Demo

- Window-Face SDK Video Surveillance Demo

- Android-Face SDK Demo

Sample Application
Sample Application
LogoLinux-FaceRecognition-FaceLivenessDetection/Identification(1:N)-Demo at main · recognito-vision/Linux-FaceRecognition-FaceLivenessDetectionGitHub
Face Enrollment Step
Face Identification Step