face_cropper

Last updated:

0 purchases

face_cropper Image
face_cropper Images
Add to Cart

Description:

face cropper

Face Cropper #
A flutter package that detects face in an image and gives cropped image of face.
Preview #

Installation #
First, add face_cropper as a dependency in your pubspec.yaml file.
face_cropper: ^<latest-version>
copied to clipboard
iOS #
• Minimum iOS Deployment Target: 13.0
Add a row to the ios/Runner/Info.plist:
• Add Privacy - Photo Library Usage Description and a usage description.
• If editing Info.plist as text, add:
<key>NSPhotoLibraryUsageDescription</key>
<string>your usage description here</string>
copied to clipboard
Android #
• Change the minimum Android sdk version to 21 (or higher) in your android/app/build.gradle file.
minSdkVersion 21
copied to clipboard
Usage #
• Add the import of the dependency
import 'package:face_cropper/face_cropper.dart';
copied to clipboard
• Create an instance of the FaceCropper class
FaceCropper faceCropper = FaceCropper();
copied to clipboard
• Use the async detectFacesAndCrop method to get a cropped image path
await faceCropper.detectFacesAndCrop(<path_to_image>);
copied to clipboard
• It returns a path of the cropped image
Contributions #
Contributions of any kind are more than welcome! Feel free to fork and improve face_cropper in any way you want, make a pull request, or open an issue.
Support the Library #
You can support the library by liking it on pub, staring in on Github and reporting any bugs you encounter

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.