abdelrehman mahmoud - emotion ai developer day 2016

18
@affectiva #emodev16 Affectiva Emotion SDK for Linux Abdelrahman Mahmoud Product Manager Affectiva @ahamino

Upload: affectiva

Post on 16-Apr-2017

36 views

Category:

Science


2 download

TRANSCRIPT

Page 1: Abdelrehman Mahmoud - Emotion Ai Developer Day 2016

@affectiva #emodev16

Affectiva Emotion SDK for Linux

Abdelrahman MahmoudProduct ManagerAffectiva@ahamino

Page 2: Abdelrehman Mahmoud - Emotion Ai Developer Day 2016

@affectiva #emodev16

Emotion Metrics!

#smile

#surprise #sadness #eye_widen #smirk

#disgust#eye_closure

#anger

#lip_puckerer20 Expressions

7 Emotions13 Emojis

#Joy

#lid_tighten

Source: giphy.com

Page 3: Abdelrehman Mahmoud - Emotion Ai Developer Day 2016

@affectiva #emodev16

Software and Hardware Requirements

Supported Linux Distros:Ubuntu 14.04 LTSCentOS 7Programming Language:C++

Processor Architecture: x86_64, ARM (coming soon!)

Hardware Requirements: (recommended) Processor, 2GHzRAM 1GHz

Compiler Requirements:GLIBC 3.4, GLIBCXX 3.4.9, GCC v4.8

Page 4: Abdelrehman Mahmoud - Emotion Ai Developer Day 2016

@affectiva #emodev16

SDK Detectors

affdex::PhotoDetector affdex::FrameDetector affdex::CameraDetector affdex::VideoDetector

Source

Detector

For each of the different sources, a child of the class affdex::Detector can be used to consume pixels and produce emotion metrics.

Page 5: Abdelrehman Mahmoud - Emotion Ai Developer Day 2016

@affectiva #emodev16

SDK Data StructuresThe affdex::Frame data structure contains the raw pixels of the image in BGR Format.

Page 6: Abdelrehman Mahmoud - Emotion Ai Developer Day 2016

@affectiva #emodev16

The affdex::Face data structure contains the results for the analysis of the different expressions, emotions and locations of the

face for an individual frame.

SDK Data Structures

Page 7: Abdelrehman Mahmoud - Emotion Ai Developer Day 2016

@affectiva #emodev16

SDK CallbacksThe SDK uses callback functions to

report events.

• affdex::ImageListener: receive image and emotion analysis

• affdex::FaceListener: receive events for every face found and lost.

Page 8: Abdelrehman Mahmoud - Emotion Ai Developer Day 2016

@affectiva #emodev16

How do Track Faces in my app ?

Page 9: Abdelrehman Mahmoud - Emotion Ai Developer Day 2016

@affectiva #emodev16

How do Track Faces in my app ?(1) Create an instance of the detector

matching your data source. Specify the number of faces to track, or just track one.

Page 10: Abdelrehman Mahmoud - Emotion Ai Developer Day 2016

@affectiva #emodev16

(2) Specify the location of the Affdex Emotion SDK data folder. The location of

the classifier files to use.

How do Track Faces in my app ?

Page 11: Abdelrehman Mahmoud - Emotion Ai Developer Day 2016

@affectiva #emodev16

(3) Turn on the emotion metrics you are interested in tracking.

How do Track Faces in my app ?

Page 12: Abdelrehman Mahmoud - Emotion Ai Developer Day 2016

@affectiva #emodev16

(4) Implement affdex::FaceListener callback to receive notification when a face

is found or lost.

How do Track Faces in my app ?

Page 13: Abdelrehman Mahmoud - Emotion Ai Developer Day 2016

@affectiva #emodev16

(5) start the detector.How do Track Faces in my app ?

Page 14: Abdelrehman Mahmoud - Emotion Ai Developer Day 2016

@affectiva #emodev16

(6) Call stop to release the camera at the end of your app.

How do Track Faces in my app ?

Page 15: Abdelrehman Mahmoud - Emotion Ai Developer Day 2016

@affectiva #emodev16

How do I get Emotion Metrics in my app ?

SWITCH TO LINUX VM!

Page 16: Abdelrehman Mahmoud - Emotion Ai Developer Day 2016

@affectiva #emodev16

How to get started ?

Developer portal:Documentation and how to guides to show how to use the SDKs

Sample code and utilities on GitHub

Ask questions through stack exchange

tag: affdex-sdk

/Affectiva

Visit: http://developer.affectiva.com

Page 17: Abdelrehman Mahmoud - Emotion Ai Developer Day 2016

@affectiva #emodev16

@affectiva @ahamino

#emodev16#EmotionAI

Get started todaydeveloper.affectiva.com

Page 18: Abdelrehman Mahmoud - Emotion Ai Developer Day 2016

@affectiva #emodev16

THANK YOU :)