搜索插件、代码仓与 APP 分类

sphinx_verify 封面
插件详情v1.0.3

sphinx_verify

Sphinx Verify 是一个 Flutter 包,旨在为亚马逊识别服务提供接口,并内置了使用案例。

AndroidiOSmacOSWindowsLinux
近 30 天下载
30
喜欢数
5
Pub 分数
150

安装插件

flutter pub add sphinx_verify

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Sphinx Verify 是一个专为 Flutter 应用程序设计的包,旨在将亚马逊的识别服务集成到 Flutter 应用中,提供用于机器学习、OCR 和计算机视觉任务的简化接口。它内置了多种使用场景,可简化文档扫描、人脸识别和文本提取等常见工作流程。该包支持 Android、iOS、macOS、Windows 和 Linux 多个平台,实现跨平台开发并保持功能一致性。开发者可以通过简洁、符合 Dart 风格的 API 轻松利用亚马逊强大的后端服务。

适合场景

  • 文档验证
  • 人脸识别
  • 从图像中提取文本
  • 身份认证
  • 实时图像分析
  • 自动数据录入

主要特点

  • 与亚马逊识别服务的内置集成
  • 跨平台支持
  • 预定义的快速实施用例
  • 简单的 Dart API
  • 安全的基于云的处理
  • 实时结果

适合对象

  • 需要身份验证的移动应用
  • 文档扫描应用
  • OCR密集型企业工具
  • 需要面部识别的应用程序
  • 使用 Amazon AWS 服务的开发人员

使用建议

  • 需要互联网连接以进行云处理
  • 取决于 Amazon AWS 服务的可用性
  • 可能会产生云服务费用
  • 需要正确配置 AWS 凭据
  • 有限的离线功能
  • 实时响应中的潜在延迟

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Sphinx Verify logo

pub package License: MIT

Sphinx Verify

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

More demo images


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

Install via pubspec.yaml:

dependencies:
  sphinx_verify: ^0.1.0

Usage 📖

import 'package:sphinx_verify/sphinx_verify.dart';

/// initialize the sphinx verify
SphinxVerify sphinxVerify = SphinxVerify(
    region: AwsRegionEnum.usEast1 <- adjust to your region,
    accessKey: 'your access key',
    secretKey: 'your 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;
  }
}

所属分类

依赖

依赖清单 6 项

源码仓库

使用此插件的项目

暂无相关数据。