Skip to content

This IoT project will use the camera to detect faces, and play the song you chose when it detects your face!

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE.md
Unknown
LICENSE-IMAGE.md
Notifications You must be signed in to change notification settings

tierwixt/MyAnthem

Repository files navigation

Microsoft Face API: Python SDK

This repo contains the Python SDK for the Microsoft Face API, an offering within Microsoft Cognitive Services, formerly known as Project Oxford.

Installation

pip install cognitive_face

Installation from Source Code

python setup.py install

Unittests

Before running unittests, please refer to the /cognitive_face/tests/config.sample.py and set proper configuration with valid Subscription Key to make the unittests work.

python setup.py test

Minimal Usage

import cognitive_face as CF

KEY = 'subscription key'  # Replace with a valid Subscription Key here.
CF.Key.set(KEY)

img_url = 'https://raw.githubusercontent.com/Microsoft/Cognitive-Face-Windows/master/Data/detection1.jpg'
result = CF.face.detect(img_url)
print result

Sample

A Python SDK sample built with wxPython is also provided, before execution, please install all components listed below.

Sample Prerequisite

Sample Execution

git clone https://github.com/Microsoft/Cognitive-Face-Python.git
cd Cognitive-Face-Python
python sample

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.

Updates

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 sample, are expected to follow the “Developer Code of Conduct for Microsoft Cognitive Services”, found at http://go.microsoft.com/fwlink/?LinkId=698895.

About

This IoT project will use the camera to detect faces, and play the song you chose when it detects your face!

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE.md
Unknown
LICENSE-IMAGE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published