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

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

example/lib/main.dart

import 'package:example/Views/home_page.dart';
import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:sphinx_verify/sphinx_verify.dart';

Future<void> main() async {
  await dotenv.load(fileName: ".env");
  WidgetsFlutterBinding.ensureInitialized();

  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,
      });
    },
  );

  runApp(MyApp(sphinxVerify: sphinxVerify));
}

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

  final SphinxVerify sphinxVerify;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.teal),
        useMaterial3: true,
      ),
      home: HomePage(sphinxVerify: sphinxVerify),
    );
  }
}
2
likes
80
pub points
27%
popularity
screenshot

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

MIT (license)

Dependencies

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

More

Packages that depend on sphinx_verify