Coder Social home page Coder Social logo

mnc-identifiersdk-ios's Introduction

MNC Identifier SDK for iOS

MNC Identifier is a service to identify and verify consumer with AI in it. This SDK has 2 main features

  • Face Identifier (1.1.10) (for face identification)
  • OCR Identifier (1.1.10) (for optical character recognition)

Alt Text

Installation

add this to your podfile

#This is for Face Identifier
 pod 'MNCIdentifier/Face', '1.1.10'
 pod 'GoogleMLKit/FaceDetection', '4.0.0'

#This is for OCR Identifier
 pod 'MNCIdentifier/OCR', '1.1.10'
 pod 'GoogleMLKit/TextRecognition', '4.0.0'
 pod 'GoogleMLKit/ObjectDetection', '4.0.0'

Face Identifier Usage

In Objective-C

#import <MNCFaceIdentifier/MNCFaceIdentifierClient.h>
#import <MNCFaceIdentifier/MNCFaceIdentifierDelegate.h>

@interface ViewController() <MNCFaceIdentifierDelegate>
@end

@implementation ViewController

- (void)viewDidLoad {
    .......
    MNCFaceIdentifierClient client = [MNCFaceIdentifierClient new];
    client.delegate = self;
}

- (void)buttonTapped:(UIButton *)sender {
    [client showFaceIdentifier:self];
}

- (void)faceIdentifierResult:(MNCFaceIdentifierResult *)result {
    //this function return data result from Face Identifier
    //this function return captured image from process face identifier with type data UIImage
}

@end

In Swift

import MNCFaceIdentifier

class ViewController: UIViewController, MNCFaceIdentifierDelegate {

   override func viewDidLoad() {
        .......
        let client = MNCFaceIdentifierClient()
        client.delegate = self


  }

  @IBAction func buttonTapped(_ sender: UIButton) {
        client.showFaceIdentifier(self)
  }

  func faceIdentifierResult(_ result: MNCFaceIdentifierResult!) {
        //this function return data result from Face Identifier
        //this function return captured image from process face identifier with type data UIImage
  }
}

OCR Usage

In Objective-C

#import <MNCOCRIdentifier/MNCOCRIdentifierClient.h>
#import <MNCOCRIdentifier/MNCOCRIdentifierDelegate.h>

@interface ViewController() <MNCOCRIdentifierDelegate>
@end

@implementation ViewController

- (void)viewDidLoad {
    .......
    MNCOCRIdentifierClient *client = [MNCOCRIdentifierClient new];
    client.delegate = self;
    client.isFlashEnable = NO;
    client.isCameraOnly = NO; //this properties for MNCOCRIdentifer with features camera only
}

- (void)buttonTapped:(UIButton *)sender {
    [client showOCRIdentifier:self];
}

- (void)ocrResult:(MNCOCRIdentifierResult *)result {
     //this function return data result from OCR.
     //This function return KTP image Path and KTP Data
}

@end

In Swift

import MNCOCRIdentifier

class ViewController: UIViewController, MNCOCRIdentifierDelegate {

   override func viewDidLoad() {
        .......
        let client = MNCOCRIdentifierClient()
        client.delegate = self
        client.isFlashEnable = true
        client.isCameraOnly = true //this properties for MNCOCRIdentifer with features camera only
  }

  @IBAction func buttonTapped(_ sender: UIButton) {
        client.showOCRIdentifier(self)
  }

  func ocrResult(_ result: MNCOCRIdentifierResult?) {
         //this function return data result from OCR.
         //This function return KTP image Path and KTP Data
  }
}

mnc-identifiersdk-ios's People

Contributors

ryan-alfi avatar iksandecade avatar mncinnocent avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.