Giter Site home page Giter Site logo

rikinpatoliya / cognitive-face-android Goto Github PK

View Code? Open in Web Editor NEW

This project forked from microsoft/cognitive-face-android

0.0 1.0 0.0 4 MB

Cognitive Services Face client library for Android.

Home Page: https://www.microsoft.com/cognitive-services/en-us/face-api

License: Other

Java 100.00%

cognitive-face-android's Introduction

Microsoft Face API: Android Client Library & Sample

This repo contains the Android client library & sample for the Microsoft Face API, an offering within Microsoft Cognitive Services, formerly known as Project Oxford.

The Client Library

The Face API client library is a thin Java client wrapper for Microsoft Face API.

The client library is indexed on Maven Central Repository with all versions here.

Invoke the client library

There are two recommended approaches to introduce the client library in other application projects.

To add the client library dependency via build.gradle file, add the following entry in the dependencies section.

dependencies {
    //
    // Use the following line to include client library from Maven Central Repository
    // Change the version number with the latest version according to the search.maven.org result
    //
    implementation 'com.microsoft.projectoxford:face:1.4.3'

    // Your other Dependencies...
}

To add the client library dependency via Android Studio:

  1. From Menu, Choose File > Project Structure.
  2. Click on your app module.
  3. Click on Dependencies tab.
  4. Click "+" sign to add new dependency.
  5. Pick "Library dependency" from the drop down list.
  6. Type "com.microsoft.projectoxford" and hit the search icon from "Choose Library Dependency" dialog.
  7. Pick the Project Oxford client library that you intend to use.
  8. Click "OK" to add the new dependency.

The Sample

This sample is an Android application to demonstrate the use of Microsoft Face API. It demonstrates face detection, face verification, face grouping, finding similar faces, and face identification functionalities.

Requirements

Android OS must be Android 4.1 or higher (API Level 16 or higher).

Build the Sample

  1. First, you must obtain a Face API subscription key by following the instructions on our website.
  2. Start Android Studio and open project from Face > Android > Sample folder.
  3. In Android Studio -> "Project" panel -> "Android" view, open file "app/res/values/strings.xml", and find the line "Please_add_the_subscription_key_here;". Replace the "Please_add_the_subscription_key_here" value with your subscription key string from the first step. If you cannot find the file "strings.xml", it is in folder "Sample\app\src\main\res\values\string.xml".
  4. In Android Studio, select menu "Build > Make Project" to build the sample.

Run the sample

In Android Studio, select menu "Run", and "Run app" to launch this sample app.

Once the app is launched, click on buttons to use samples of between different scenarios, and follow the instructions on screen.

Microsoft will receive the images you upload and may use them to improve Face API and related services. By submitting an image, you confirm you have consent from everyone in it.

Updates

Contributing

We welcome contributions. Feel free to file issues and pull requests on the repo and we'll address them as we can. Learn more about how you can help on our Contribution Rules & Guidelines.

You can reach out to us anytime with questions and suggestions using our communities below:

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

License

All Microsoft Cognitive Services SDKs and samples are licensed with the MIT License. For more details, see LICENSE.

Sample images are licensed separately, please refer to LICENSE-IMAGE.

Developer Code of Conduct

Developers using Cognitive Services, including this client library & sample, are expected to follow the “Developer Code of Conduct for Microsoft Cognitive Services”, found at http://go.microsoft.com/fwlink/?LinkId=698895.

cognitive-face-android's People

Contributors

huxuan avatar cthrash avatar wangjun-microsoft avatar lightfrenzy avatar msftgits avatar naterickard avatar vernazza avatar lebronj avatar sldi-microsoft avatar

Watchers

Rikin Patoliya 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.