emotion

Emotion API Project Oxford base64 image

旧时模样 提交于 2019-12-06 08:34:38
I am trying to make a call to the Emotion Api via JavaScript with in a PhoneGap app. I encoded the image into base64 and verified that the data can be decoded by one of the online tools. this is the code that i found on the web to use. var apiKey = "e371fd4333ccad2"; //(you can get a free key on site this is modified for here) //apiUrl: The base URL for the API. Find out what this is for other APIs via the API documentation var apiUrl = " https://api.projectoxford.ai/emotion/v1.0/recognize "; "file" is the base64 string. function CallAPI(file, apiUrl, apiKey) { // console.log("file=> " +file);

How to send and receive Emoji to webservice [closed]

断了今生、忘了曾经 提交于 2019-12-05 19:26:20
I need to use emoji for chat in my android application.I'm using this library https://github.com/rockerhieu/emojicon to get emoji, its perfectly shows emoji but how can I send/receive to the server for my chat application. Thanks- This is my code for getting Emoji with the help of library <com.rockerhieu.emojicon.EmojiconTextView android:id="@+id/txtEmojicon" android:text="I \ue32d emojicon" android:layout_width="match_parent" android:layout_height="wrap_content"/> <com.rockerhieu.emojicon.EmojiconEditText android:id="@+id/editEmojicon" android:text="I \ue32d emojicon" emojicon:emojiconSize=

Emotion CSS-in-JS - how to add conditional CSS based on component props?

北慕城南 提交于 2019-12-03 10:08:50
问题 I'd like to have a component, styled with Emotion, that takes props that ultimately control the styling. For example, consider a GridCol component that has various props that change the padding and width (the width can be changed across different viewport widths). I'd like to use an API like this: <GridCol gutter size="2> // or alternatively, like this: <GridCol gutter size={{ m: 2, l: 4 }}> There are three things happening here: the gutter is a boolean prop that adds some horizontal padding

Getting `Status Code:400 Bad Request` When calling Microsoft Azure Emotion API with data of type `Content-Type:application/octet-stream`

老子叫甜甜 提交于 2019-12-02 14:56:35
问题 I'm trying to send data to Microsoft Cognitive Services' Emotion API, in the form of Content-Type: application/octet-stream . I'm getting the Base64 string of an image from a canvas by calling canvas.toDataURL('image/jpeg', 0.1); (I've tried calling it with 1, 0.5, 0.2 as well, just to check whether it works and stops giving me errors) Then with that Base64 string, I'm calling the EmotionService's getUserEmotion method. I followed the instructions mentioned in this answer, to make an AJAX

Getting `Status Code:400 Bad Request` When calling Microsoft Azure Emotion API with data of type `Content-Type:application/octet-stream`

微笑、不失礼 提交于 2019-12-02 10:25:11
I'm trying to send data to Microsoft Cognitive Services' Emotion API , in the form of Content-Type: application/octet-stream . I'm getting the Base64 string of an image from a canvas by calling canvas.toDataURL('image/jpeg', 0.1); (I've tried calling it with 1, 0.5, 0.2 as well, just to check whether it works and stops giving me errors) Then with that Base64 string, I'm calling the EmotionService's getUserEmotion method. I followed the instructions mentioned in this answer , to make an AJAX call using Angular's HttpClient. Here's what my service looks like: import { Injectable } from '@angular

Audio analysis to detect human voice, gender, age and emotion — any prior open-source work done?

本秂侑毒 提交于 2019-11-29 19:54:23
Is there prior open-source work done in the field of 'Audio analysis' to detect human-voice (say in spite of some background noise), determine speaker's gender, possibly determine no. of speakers, age of speaker(s), and the emotion of speakers? My hunch is that the speech recognition software like CMU Sphinx could be a good place to start, but if there's something better, it'd be great. I'm a graduate student doing speech recognition research. These are open research problems, and, unfortunately, I'm not aware of open-source packages that can do these things out of the box. If you have some

Need Haar Casscades for Nose, Eyes & Lips(Mouth)

大城市里の小女人 提交于 2019-11-28 17:35:25
I need Haar Cascades xml files for Mouth, Eyes & Nose. Do provide me useful links. Any kind of help would be highly appreciated. Look at this page: http://alereimondo.no-ip.org/OpenCV/34 There are haar cascades for eyes, nose and mouth :) I believe they are in the EmguCV package when you download it. Can't remember exact directory but do a search for *.xml. Edit Found the location. Get the emgucv zip file then they're in... .\opencv\data I imagine you can get these straight from their SVN as well Saad Bilal This will help. Contains all haar cascade for eye, face and nose: https://github.com

Need Haar Casscades for Nose, Eyes & Lips(Mouth)

别说谁变了你拦得住时间么 提交于 2019-11-27 10:49:18
问题 I need Haar Cascades xml files for Mouth, Eyes & Nose. Do provide me useful links. Any kind of help would be highly appreciated. 回答1: Look at this page: http://alereimondo.no-ip.org/OpenCV/34 There are haar cascades for eyes, nose and mouth :) 回答2: I believe they are in the EmguCV package when you download it. Can't remember exact directory but do a search for *.xml. Edit Found the location. Get the emgucv zip file then they're in... .\opencv\data I imagine you can get these straight from