Overview


Tape uses advanced machine learning and computer vision to analyze a video. It gives emotion of a person in a video like happy, sad, angry, disgust, etc. by analyzing facial expressions which can help to know your customer better.


Beginner's Guide


Emotion recognition is a process identifying person's mood or emotion. Emotional Analysis can be used to guage consumer mood towards a product and It can also be used for analysing the engagement of a customer to a particular content.


Quickstart


Following : service/API is provided by Tape as part of Release 2.0.0.

  • Emotion Analysis : Emotion Analysis gives you the emotion of person in the video.


APIs


All URIs below are relative to https://studio.spotflock.com

Emotion Analysis POST   /api/v1/tape-service/phoenix-tape/emotion-analysis/
Emotion Analysis POST   /api/v1/tape-service/phoenix-tape/job/get/{id}

Emotion Analysis

Description

This API would enable you to do emotional analysis on a video.

URI

POST  /api/v1/tape-service/phoenix-tape/emotion-analysis/

Headers

api-key Your App's API Key

Request Example

{
	"fileUrl":"spotflock-storage/path/to/video/file/",
	"name":"test-2",
	"description":"test2"
}

Response

{
    "jobId": 10
}

Emotion Analysis

Description

This API would enable you to do emotional analysis on a video.

URI

POST  /api/v1/tape-service/phoenix-tape/job/get/{id}

Headers

api-key Your App's API Key

Attributes

text Text Sentence (String)

Response

{
    "jobId": 10,
    "name": "test-2",
    "description": "test2",
    "status": "FINISH",
    "output": {
        "tmpytp2ytq9": {
            "averages": {
                "sad": [0.22028783802380955, 0.2830094049183674, 0.2483123040238096, 0.14024592775510206, 0.20028905373979589, 0.09129466517006803, 0.2480492229455782, 0.15855064328571428, 0.17499644107482992],
                "fear": [0.0392193313510204, 0.02741615048367347, 0.10488615934217686, 0.08042037212925171, 0.08858209838605441, 0.017636117697278915, 0.048912131994897946, 0.06550168642517007, 0.10191697239115645],
                "angry": [0.10537645220204078, 0.08552468753061224, 0.16832351358843534, 0.17594547119387752, 0.11480239279421767, 0.020905314448979594, 0.13594519938265306, 0.2762894144098639, 0.2897594250918368],
                "happy": [0.41800050786054416, 0.19928503934693878, 0.19680455121428575, 0.26372490195578224, 0.2165509297146259, 0.1297739057823129, 0.38019804469047613, 0.2899336594183673, 0.1954981996292517],
                "disgust": [0.004026840849958505, 0.0009744360873775509, 0.00843749553261905, 0.001858533515090476, 0.001770593260271428, 0.00018358847514625848, 0.00312446211680272, 0.008191170254268708, 0.01269661824727891],
                "neutral": [0.14485224726190474, 0.18083961822448982, 0.19946173961224492, 0.17216333744557824, 0.12494199893282312, 0.04956990616326531, 0.1757236339234694, 0.19691967668707486, 0.12312199102040816],
                "surprise": [0.027420465231972786, 0.03927719249693878, 0.0533660772840136, 0.043192483782653064, 0.04898130148132654, 0.017167111575850342, 0.02845546065714286, 0.025021918442687068, 0.020377690337414964]
            }
        }
    }
}


Release Notes


Folowing are the release notes as part of Release 2.0.0

  • Tape supports .mp4 and .avi video files

  • Tape also supports zip folder containing multiple video files

  • Make sure the folder containing videos should be compressed but not videos directly

Helpdesk