Code Monkey home page Code Monkey logo

face_cropper's Introduction

Face Cropper

A flutter package that detects face in an image and gives cropped image of face.

Preview

face_cropper_2024-02-21

Installation

First, add face_cropper as a dependency in your pubspec.yaml file.

face_cropper: ^<latest-version>

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>

Android

• Change the minimum Android sdk version to 21 (or higher) in your android/app/build.gradle file.

minSdkVersion 21

Usage

• Add the import of the dependency

import 'package:face_cropper/face_cropper.dart';

• Create an instance of the FaceCropper class

FaceCropper faceCropper = FaceCropper();

• Use the async detectFacesAndCrop method to get a cropped image path

await faceCropper.detectFacesAndCrop(<path_to_image>);

• 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

face_cropper's People

Contributors

sagarrawatantino avatar sagarrawatuk avatar imhafeez avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.