facetagr_package 1.0.12 copy "facetagr_package: ^1.0.12" to clipboard
facetagr_package: ^1.0.12 copied to clipboard

The FaceTagr Flutter package allows third-party teams to integrate face recognition capabilities into their applications. This package provides two primary functions: initialization (init) and face ma [...]

FaceTagr Flutter Package #

Overview #

The FaceTagr Flutter package allows third-party teams to integrate face recognition capabilities into their applications. This package provides two primary functions: initialization (init) and face matching (fnFaceMatch).

Initialization #

To initialize the FaceTagr library, call the init method with the required parameters:

import 'package:facetagr_package/facetagr_package.dart'; import 'dart:io'; import 'package:image_picker/image_picker.dart';

final faceTagr = FaceTagr();

faceTagr.init( apiURL: 'https://yourapiurl.com', clientID: 'yourClientID', externalID: 'yourExternalID', hashcode: 'yourHashcode', utcTime: DateTime.now().toUtc().toString(), requestID: Uuid().v4(), );

Face Matching #

To perform face matching, call the fnFaceMatch method with a File object representing the image:

// Pick an image final picker = ImagePicker(); final pickedFile = await picker.getImage(source: ImageSource.camera);

if (pickedFile != null) { File imageFile = File(pickedFile.path); await faceTagr.fnFaceMatch(imageFile); }

Listening to Events #

You can listen to initialization and face match events using the provided streams:

faceTagr.initStream.listen((message) { print('Init Event: $message'); });

faceTagr.faceMatchStream.listen((message) { print('Face Match Event: $message'); });

Logout #

To logout and clear all stored tokens, call the fnLogout method:

await faceTagr.fnLogout();

2
likes
0
points
180
downloads

Publisher

unverified uploader

Weekly Downloads

The FaceTagr Flutter package allows third-party teams to integrate face recognition capabilities into their applications. This package provides two primary functions: initialization (init) and face matching (fnFaceMatch).

License

unknown (license)

Dependencies

crypto, device_info_plus, dio, flutter, flutter_secure_storage, google_mlkit_commons, google_mlkit_face_detection, image, path_provider, uuid

More

Packages that depend on facetagr_package