For developers only - Runu Apis


Introduction

Runu has been running live from past 3 weeks and is getting traction on how to interact with cognitive apis. This has been a platform to showcase the learning algorithms of Google and Microsoft, thereby helping any individual to decide if he/she wants to leverage these features in their app or not. 

Runu currently comes with 8 kinds of cognitive Analysis
  1. Image detection - Talking to Google Vision
  2. Logo Detection - Talking to Google Vision
  3. Face detection - Talking to Google Vision
  4. Location detection - Talking to Google Vision
  5. Celebrity detection - Talking to Microsoft's Cognitive APIs
  6. Text Detection - Talking to Google Vision
  7. Emotion Detection - Talking to Microsoft's Cognitive APIs
  8. What is this image (Caption detection)-Talking to Microsoft's Cognitive APIs
  9. Sentiment Analysis for text - Talking to Google NLP
The app has an hybrid mechanism to talk to both Google and Microsoft apis in order to leverage both the features in analyzing an image.

What's new in Runu?

Runu  has been updated with a REST api layer for each features mentioned above. This will help any developer to leverage the apis easily with his/her own features. (Please note, this is an experimental version and can be changed in future). If you want to integrate this feature drop a mail to sengupta.nabarun@gmail.com so that we can make you aware of any kind of disruption in service.

These features will be available without any cost of payment.

Currently all REST Apis are giving JSON responses. 

1. Image Detection

API call: http://runu.herokuapp.com/getlabels?url=http://runu.herokuapp.com/Images/runu-imagedetection_owl.jpg
Request Type: GET
Response Format: JSON
Example: ["bird","owl","wildlife","beak","nature"]

2. Logo Detection

API call: http://runu.herokuapp.com/getlogo?url=http://runu.herokuapp.com/Images/runu-logodetection_cocacola.png
Request Type: GET
Response Format: JSON
Example: ["Coca-Cola"]

3. Face Detection

API call: http://runu.herokuapp.com/getface?url=http://runu.herokuapp.com/Images/runu-facedetection.png
Request Type: GET
Response Format: STRING
Example: "Found 1 face"

4. Location Detection

API call: http://runu.herokuapp.com/getlandmark?url=http://runu.herokuapp.com/Images/wunu-locationdetection_tajmahal.jpeg
Request Type: GET
Response Format: JSON
Example: ["Taj Mahal"]

5. Celebrity Detection

API call: http://runu.herokuapp.com/getcelebrity?url=http://runu.herokuapp.com/Images/runu-celebritydetection.jpg
Request Type: GET
Response Format: JSON
Example: ["Brad Pitt","Angelina Jolie"]

6. Text Detection

API call: http://runu.herokuapp.com/gettext?url=http://runu.herokuapp.com/Images/runu-ocrdetection.jpg
Request Type: GET
Response Format: JSON
Example: ["Imagination is\nGG\nmore important\nthan knowledge.\nAlbert Einstein\n","Imagination","is","GG","more","important","than","knowledge.","Albert","Einstein"]

7. Emotion Detection

API call: http://runu.herokuapp.com/getemotion?url=http://runu.herokuapp.com/Images/runu-emotiondetection.jpg
Request Type: GET
Response Format: JSON
Example: {"Anger":0.999675453,"Contempt":0,"Disgust":0,"Fear":0,"Happiness":0,"Neutral":0,"Sadness":0,"Surprise":0}

8. What is this image (Caption Detection)

API call: http://runu.herokuapp.com/getAnswers?url=http://runu.herokuapp.com/Images/runu-answerme.jpg
Request Type: GET
Response Format: STRING
Example: "there is a star"

9. Sentiment Analysis for text
API call: http://runu.herokuapp.com/getentities?text=Stop%20human%20killing.%20This%20is%20not%20helping%20anyone.%20We%20want%20peace.
Request Type: GET
Response Format: STRING
Example: {"documentSentiment":{"polarity":-0.9,"magnitude":1.8},"language":"en"}
Details: https://www.linkedin.com/pulse/runu-sentiment-analysis-nabarun-sengupta

Conclusion

The intent of these apis are to provide easy rest api calls to the cognitive apis in backend. These features can be leveraged in creation of demo POCs. For further enquiry regarding the transaction drop a mail to sengupta.nabarun@gmail.com. 

Happy Coding!!!

Comments

Popular posts from this blog

Firebase authentication with Ionic creator

Big Data - SWOT Analysis

LINKEDIN api call using NODE.JS OAUTH module