GithubHelp home page GithubHelp logo

microsoft / cognitive-emotion-python Goto Github PK

View Code? Open in Web Editor NEW
64.0 64.0 43.0 1.76 MB

Python SDK for the Microsoft Emotion API, part of Cognitive Services

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

License: Other

Jupyter Notebook 100.00%

cognitive-emotion-python's Introduction

Microsoft Emotion API: Jupyter Notebook

This Jupyter Notebook demonstrates how to use Python with the Microsoft Emotion API, an offering within Microsoft Cognitive Services, formerly known as Project Oxford.

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

cognitive-emotion-python's People

Contributors

chsienki avatar lightfrenzy avatar microsoft-github-policy-service[bot] avatar msftgits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cognitive-emotion-python's Issues

Emotion Analysis Example

From @Alaakhazar on May 9, 2016 18:12

i am trying to run this example, it works just fine for the url image, but the second one (reading an image from disk memory) give me this error

Exception in thread Thread-1:
Traceback (most recent call last):
File "C:\Anaconda2\lib\threading.py", line 801, in __bootstrap_inner
self.run()
File "C:\Anaconda2\lib\site-packages\spyderlib\widgets\externalshell\monitor.py", line 569, in run
self.update_remote_view()
File "C:\Anaconda2\lib\site-packages\spyderlib\widgets\externalshell\monitor.py", line 450, in update_remote_view
remote_view = make_remote_view(ns, settings, more_excluded_names)
File "C:\Anaconda2\lib\site-packages\spyderlib\widgets\externalshell\monitor.py", line 79, in make_remote_view
minmax=settings['minmax'])
File "C:\Anaconda2\lib\site-packages\spyderlib\widgets\dicteditorutils.py", line 225, in value_to_display
return display
UnboundLocalError: local variable 'display' referenced before assignment

Copied from original issue: microsoft/ProjectOxford-ClientSDK#65

Emotion example

hi,

While trying to replicate the sample in my Ipython notebook I get the error below when I run the URL or the FROM MY DISK part of the function -


NameError Traceback (most recent call last)
in ()
12 params = None
13
---> 14 result = processRequest( json, data, headers, params )
15
16 if result is not None:

in processRequest(json, data, headers, params)
15 while True:
16
---> 17 response = requests.request( 'post', _url, json = json, data = data, headers = headers, params = params )
18
19 if response.status_code == 429:

NameError: global name 'requests' is not defined

I checked the library and it shows REQUESTS has been already installed. Can you please help.

Prasad.

Connection aborted

I've modified Jupyter based facial expression analysis code to handle a large amount of images (about 10K).

I wrote python code that runs in Windows, which send images to the Endpoint with API key and collect response that contains the facial expression.

and I got "connection abort error code 10053" after about 3000 successful analysis results.

as far as it is written in Azure, the quota of my account can hold 10 images per sec. so I don't think it happened because of my account.

however, I couldn't find other questions with Emotion API. so i post here.

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.