sphinx_verify 1.0.0 copy "sphinx_verify: ^1.0.0" to clipboard
sphinx_verify: ^1.0.0 copied to clipboard

Sphinx Verify is a Flutter package that amis to provider a interface to amazon recognition service. with built-in use cases.

Sphinx Verify logo


Sphinx Verify logo Sphinx Verify logo Sphinx Verify logo Sphinx Verify logo Sphinx Verify logo Sphinx Verify logo

Sphinx Verify #

pub package License: MIT

Sphinx Verify is a Flutter package that amis to provider an interface to amazon recognition service. with built-in use cases.


Features πŸš€ #

  • βœ… Text Detection
  • βœ… Face Detection
  • βœ… Label Detection
  • βœ… content Moderation
  • βœ… compare Faces

use cases #

  • βœ… ( KYC flow ) Verify a user by comparing a selfie with a document photo ( driving license )

Installation πŸ’» #

❗ In order to start using Sphinx Verify you must have the Fkutter installed on your machine.

Install via flutter pub add:

flutter pub add sphinx_verify

Usage πŸ“– #

import 'package:sphinx_verify/sphinx_verify.dart';

/// initialize the sphinx verify
SphinxVerify sphinxVerify = SphinxVerify(
    region: AwsRegionEnum.usEast1,
    accessKey: dotenv.env['ACCESS_KEY'] ?? '',
    secretKey: dotenv.env['SECRET_KEY'] ?? '',
    onVerificationComplete: (FaceMatchesModel faceMatchesModel) {
        print({
        '❌similarity': faceMatchesModel.matchedFaces?.first.similarity,
        'faceMatchesModel': faceMatchesModel,
        });
    },
);

/// exposed methods

// detect labels
LabelDetectionModel? res = await widget.sphinxVerify.awsSDK.detectLabels(
    file: _imageFile,
    imageUrl: _imageUrl,
);

// detect text
List<TextDetectionModel>? res = await widget.sphinxVerify.awsSDK.detectText(
    file: _imageFile,
    imageUrl: _imageUrl,
);

// detect faces
List<FaceDetectionModel>? res = await widget.sphinxVerify.awsSDK.detectFaces(
    file: _imageFile,
    imageUrl: _imageUrl,
);

// compare faces
FaceMatchesModel? res = await widget.sphinxVerify.awsSDK.compareFaces(
    sourceImageFile: _imageFile,
    sourceImageUrl: _imageUrl,
    targetImageFile: _targetImageFile,
    targetImageUrl: _targetImageUrl,
    similarityThreshold: 90,
);

// moderate content
ModerateContentModel? res = await widget.sphinxVerify.awsSDK.moderateContent(
    file: _imageFile,
    imageUrl: _imageUrl,
    minConfidence: 5,
);

KYC flow #

import 'package:flutter/material.dart';
import 'package:sphinx_verify/sphinx_verify.dart';

class KycPage extends StatelessWidget {
  const KycPage({super.key, required this.sphinxVerify});
  final SphinxVerify sphinxVerify;

  @override
  Widget build(BuildContext context) {
    return sphinxVerify.kycWidget;
  }
}
2
likes
0
pub points
26%
popularity

Publisher

verified publishermoesaid.com

Sphinx Verify is a Flutter package that amis to provider a interface to amazon recognition service. with built-in use cases.

Repository (GitHub)
View/report issues

Topics

#amazon-rekognition #face-detection #text-detection #compare-faces #content-moderation

License

unknown (license)

Dependencies

crypto, flutter, freezed_annotation, http, image_picker, intl, json_annotation

More

Packages that depend on sphinx_verify