SlideShare a Scribd company logo
Mood analyzer
@Sherrrylst
Hello!
I’m Sherry List
Azure Developer Engagement Lead, Microsoft
You can find me at @SherrryLst
http://bit.ly/mood-analyzer
Machine
Learning 101
@Sherrrylst
Data
Machine Learning 101
@Sherrrylst
Data
Patterns
Machine Learning 101
@Sherrrylst
Data
Patterns
Algorithm
(Deep learning, clustering, …)
Machine Learning 101
@Sherrrylst
Data
Patterns
Algorithm
(Deep learning, clustering, …)
Find patterns
Machine Learning 101
@Sherrrylst
Data
Patterns
Model
Algorithm
(Deep learning, clustering, …)
Find patterns
Machine Learning 101
@Sherrrylst
Data
Patterns
Model
Algorithm
(Deep learning, clustering, …)
Find patterns Recognizes patterns
Machine Learning 101
@Sherrrylst
Data
Patterns
Model
Algorithm
(Deep learning, clustering, …)
Find patterns Recognizes patterns
Training
Machine Learning 101
@Sherrrylst
Data
Patterns
Model
Algorithm
(Deep learning, clustering, …)
Find patterns Recognizes patterns Application
Training
Machine Learning 101
Challenges
@Sherrrylst
Data
Patterns
Model
Algorithm
(Deep learning, clustering, …)
Find patterns Recognizes patterns Application
Challenges
Data preparation
@Sherrrylst
Data
Patterns
Model
Algorithm
(Deep learning, clustering, …)
Find patterns Recognizes patterns Application
Challenges
Data preparation Create and test algorithms
@Sherrrylst
Algorithm
(Deep learning, clustering, …)
Find patterns
Challenges
Create and test algorithms
Chihuahua or muffin?
@Sherrrylst
Data
Patterns
Model
Algorithm
(Deep learning, clustering, …)
Find patterns Recognizes patterns Application
Challenges
Data preparation Create and test algorithms Expose the model to app
Is there an
easier way?
Azure
Cognitive
Services
@Sherrrylst
Application
The easier way
Azure Cognitive
Services
REST API
@Sherrrylst
Application
The easier way
Azure Cognitive
Services
REST API
Cognitive Services
Decision
Speech
Language
Vision
Web search
@Sherrrylst
Cognitive Services
Decision
Speech
Language
Vision
Web search
@Sherrrylst
Cognitive Services - Vision
• Computer vision
• Video Indexer
• Face
• Form Recognizer
• Custom Vision
@Sherrrylst
Cognitive Services - Vision
• Computer vision
• Video Indexer
• Face
• Form Recognizer
• Custom Vision
@Sherrrylst
@Sherrrylst
Face Detection
Face API
Let’s do it!
@Sherrrylst
Create a Cognitive Services account in the
Azure portal
@Sherrrylst
@Sherrrylst
Cognitive Services account
💻</code>
@Sherrrylst
@Sherrrylst
Capture the picture
<div class="p-1">
<video #video autoplay></video>
</div>
<div class="pb-2">
<button (click)="capture()">🤳</button>
</div>
<div>
<canvas #canvas id="flatten"></canvas>
</div>
Source code
@Sherrrylst
Start the camera
export class CameraComponent implements OnInit {
@ViewChild("video", { static: true }) videoElement: ElementRef;
@ViewChild("canvas", { static: true }) canvas: ElementRef;
constraints = {
video: {
facingMode: "user",
width: { ideal: 400 },
height: { ideal: 400 }
}
};
constructor(private renderer: Renderer2) { }
ngOnInit(){
this.startCamera();
}
Source code
@Sherrrylst
Start the camera
export class CameraComponent implements OnInit {
@ViewChild("video", { static: true }) videoElement: ElementRef;
@ViewChild("canvas", { static: true }) canvas: ElementRef;
constraints = {
video: {
facingMode: "user",
width: { ideal: 400 },
height: { ideal: 400 }
}
};
constructor(private renderer: Renderer2) { }
ngOnInit(){
this.startCamera();
}
Source code
@Sherrrylst
Start the camera
export class CameraComponent implements OnInit {
@ViewChild("video", { static: true }) videoElement: ElementRef;
@ViewChild("canvas", { static: true }) canvas: ElementRef;
constraints = {
video: {
facingMode: "user",
width: { ideal: 400 },
height: { ideal: 400 }
}
};
constructor(private renderer: Renderer2) { }
ngOnInit(){
this.startCamera();
}
Source code
@Sherrrylst
Start the camera
startCamera() {
if (!!(navigator.mediaDevices && navigator.mediaDevices.getUserMedia)) {
navigator.mediaDevices
.getUserMedia(this.constraints)
.then(this.attachVideo.bind(this))
.catch(this.handleError);
} else {
alert("Sorry, camera not available.");
}
}
Source code
@Sherrrylst
Start the camera
startCamera() {
if (!!(navigator.mediaDevices && navigator.mediaDevices.getUserMedia)) {
navigator.mediaDevices
.getUserMedia(this.constraints)
.then(this.attachVideo.bind(this))
.catch(this.handleError);
} else {
alert("Sorry, camera not available.");
}
}
Source code
@Sherrrylst
Start the camera
attachVideo(stream) {
this.renderer.setProperty(
this.videoElement.nativeElement,
"srcObject",
stream
);
this.renderer.listen(this.videoElement.nativeElement, "play", event => {
this.videoHeight = this.videoElement.nativeElement.videoHeight;
this.videoWidth = this.videoElement.nativeElement.videoWidth;
});
}
Source code
@Sherrrylst
Start the camera
Source code
@Sherrrylst
Start the camera
attachVideo(stream) {
this.renderer.setProperty(
this.videoElement.nativeElement,
"srcObject",
stream
);
this.renderer.listen(this.videoElement.nativeElement, "play", event => {
this.videoHeight = this.videoElement.nativeElement.videoHeight;
this.videoWidth = this.videoElement.nativeElement.videoWidth;
});
}
Source code
🤳 Snap
@Sherrrylst
@Sherrrylst
Capture the picture
capture() {
this.renderer.setProperty(
this.canvas.nativeElement,
"width",
this.videoWidth
);
this.renderer.setProperty(
this.canvas.nativeElement,
"height",
this.videoHeight
);
this.canvas.nativeElement
.getContext("2d")
.drawImage(this.videoElement.nativeElement, 0, 0);
...
}
Source code
@Sherrrylst
Capture the picture
capture() {
this.renderer.setProperty(
this.canvas.nativeElement,
"width",
this.videoWidth
);
this.renderer.setProperty(
this.canvas.nativeElement,
"height",
this.videoHeight
);
this.canvas.nativeElement
.getContext("2d")
.drawImage(this.videoElement.nativeElement, 0, 0);
...
}
Source code
@Sherrrylst
Capture the picture
capture() {
...
this.selfie = this.canvas.nativeElement.toDataURL("img/png");
let file = this.cameraService.dataURItoBlob(this.selfie);
// Mojify this
this.detectEmotions(file);
}
Source code
@Sherrrylst
Capture the picture
capture() {
...
this.selfie = this.canvas.nativeElement.toDataURL("img/png");
let file = this.cameraService.dataURItoBlob(this.selfie);
// Mojify this
this.detectEmotions(file);
}
Source code
@Sherrrylst
Capture the picture
capture() {
...
this.selfie = this.canvas.nativeElement.toDataURL("img/png");
let file = this.cameraService.dataURItoBlob(this.selfie);
// Mojify this
this.detectEmotions(file);
}
Source code
@Sherrrylst
Capture the picture
async detectEmotions(file: Blob) {
const headerDict = {
"Content-Type": "application/octet-stream",
"Ocp-Apim-Subscription-Key": this.apiKey
};
const requestOptions = {
headers: new HttpHeaders(headerDict)
};
this.http
.post(this.faceAPI, file, requestOptions)
.subscribe((res: FaceData[]) => {
this.emotions = this.cameraService.getEmotionData(res);
// let's drwa the emoji on canvas
this.draw(this.emotions);
});
}
Source code
@Sherrrylst
Capture the picture
async detectEmotions(file: Blob) {
const headerDict = {
"Content-Type": "application/octet-stream",
"Ocp-Apim-Subscription-Key": this.apiKey
};
const requestOptions = {
headers: new HttpHeaders(headerDict)
};
this.http
.post(this.faceAPI, file, requestOptions)
.subscribe((res: FaceData[]) => {
this.emotions = this.cameraService.getEmotionData(res);
// let's drwa the emoji on canvas
this.draw(this.emotions);
});
}
Source code
@Sherrrylst
Capture the picture
async detectEmotions(file: Blob) {
const headerDict = {
"Content-Type": "application/octet-stream",
"Ocp-Apim-Subscription-Key": this.apiKey
};
const requestOptions = {
headers: new HttpHeaders(headerDict)
};
this.http
.post(this.faceAPI, file, requestOptions)
.subscribe((res: FaceData[]) => {
this.emotions = this.cameraService.getEmotionData(res);
// let's drwa the emoji on canvas
this.draw(this.emotions);
});
}
Source code
📚 Service
@Sherrrylst
@Sherrrylst
Capture the picture
async detectEmotions(file: Blob) {
const headerDict = {
"Content-Type": "application/octet-stream",
"Ocp-Apim-Subscription-Key": this.apiKey
};
const requestOptions = {
headers: new HttpHeaders(headerDict)
};
this.http
.post(this.faceAPI, file, requestOptions)
.subscribe((res: FaceData[]) => {
this.emotions = this.cameraService.getEmotionData(res);
// let's drwa the emoji on canvas
this.draw(this.emotions);
});
}
Source code
@Sherrrylst
Capture the picture
async detectEmotions(file: Blob) {
const headerDict = {
"Content-Type": "application/octet-stream",
"Ocp-Apim-Subscription-Key": this.apiKey
};
const requestOptions = {
headers: new HttpHeaders(headerDict)
};
this.http
.post(this.faceAPI, file, requestOptions)
.subscribe((res: FaceData[]) => {
this.emotions = this.cameraService.getEmotionData(res);
// let's drwa the emoji on canvas
this.draw(this.emotions);
});
}
Source code
@Sherrrylst
🤳 Draw
@Sherrrylst
Capture the picture
draw(faces: Face[]) {
const cameraCanvas = this.canvas.nativeElement.getContext("2d");
for (let face of faces) {
let multiplier = face.faceRectangle.height / face.faceRectangle.width;
let fontSize = face.faceRectangle.width * multiplier;
let stringFont = fontSize + "px Arial";
cameraCanvas.font = stringFont;
cameraCanvas.fillText(
face.mojiIcon,
face.faceRectangle.left * multiplier - 20,
face.faceRectangle.top * multiplier + face.faceRectangle.height / 2 + 20
);
}
}
Source code
@Sherrrylst
Capture the picture
draw(faces: Face[]) {
const cameraCanvas = this.canvas.nativeElement.getContext("2d");
for (let face of faces) {
let multiplier = face.faceRectangle.height / face.faceRectangle.width;
let fontSize = face.faceRectangle.width * multiplier;
let stringFont = fontSize + "px Arial";
cameraCanvas.font = stringFont;
cameraCanvas.fillText(
face.mojiIcon,
face.faceRectangle.left * multiplier - 20,
face.faceRectangle.top * multiplier + face.faceRectangle.height / 2 + 20
);
}
}
Source code
@Sherrrylst
Capture the picture
draw(faces: Face[]) {
const cameraCanvas = this.canvas.nativeElement.getContext("2d");
for (let face of faces) {
let multiplier = face.faceRectangle.height / face.faceRectangle.width;
let fontSize = face.faceRectangle.width * multiplier;
let stringFont = fontSize + "px Arial";
cameraCanvas.font = stringFont;
cameraCanvas.fillText(
face.mojiIcon,
face.faceRectangle.left * multiplier - 20,
face.faceRectangle.top * multiplier + face.faceRectangle.height / 2 + 20
);
}
}
Source code
@Sherrrylst
Capture the picture
draw(faces: Face[]) {
const cameraCanvas = this.canvas.nativeElement.getContext("2d");
for (let face of faces) {
let multiplier = face.faceRectangle.height / face.faceRectangle.width;
let fontSize = face.faceRectangle.width * multiplier;
let stringFont = fontSize + "px Arial";
cameraCanvas.font = stringFont;
cameraCanvas.fillText(
face.mojiIcon,
face.faceRectangle.left * multiplier - 20,
face.faceRectangle.top * multiplier + face.faceRectangle.height / 2 + 20
);
}
}
Source code
@Sherrrylst
Capture the picture
draw(faces: Face[]) {
const cameraCanvas = this.canvas.nativeElement.getContext("2d");
for (let face of faces) {
let multiplier = face.faceRectangle.height / face.faceRectangle.width;
let fontSize = face.faceRectangle.width * multiplier;
let stringFont = fontSize + "px Arial";
cameraCanvas.font = stringFont;
cameraCanvas.fillText(
face.mojiIcon,
face.faceRectangle.left * multiplier - 20,
face.faceRectangle.top * multiplier + face.faceRectangle.height / 2 + 20
);
}
}
Source code
Tell me, how are you?
http://bit.ly/mood-analyzer
# ngPoland
@Sherrrylst
AI.lab@Sherrrylst
The Learner
aka.ms/azure.heroes
#azureHeroes
Join the
community!
azureheroes.community
@Sherrrylst
Thank you!
https://aka.ms/mood-analyzer
Resources
• Microsoft Azure Cognitive Services: The Big Picture
• The Mojifier (MS Learn)
• The Mojifier (Github)
• Where's Chewie? Object detection with Azure Custom Vision by Goran Vuksic
• What does the Computer Vision see? Analyse a local image with JavaScript by Goran Vuksic
• Azure Cognitive Services API — I need your clothes, boots and your motorcycle by Chris Noring
• Add conversational intelligence to your apps by using LUIS (MS Learn)
• Discover sentiment in text with the Text Analytics API (MS Learn)
• Create Intelligent Bots with the Azure Bot Service (MS Learn)
• Capturing Camera Images with Angular by Chad Upton
Artificial Intelligence
AI is the simulation of human intelligence
processes by machines. These processes
include, reasoning, remembering, learning
and self-correction.
@Sherrrylst
Machine Learning
Machine learning is a field of computer
science that gives computers the ability to
learn without being explicitly programmed.
Arthur Samuel, 1959
@Sherrrylst
Machine learning
techniques
• Artificial Neural Networks
• Deep Learning
• Bayesian Networks
• Clustering
@Sherrrylst
Artificial Intelligence (AI)
The bigger picture
Machine
Learning
Artificial Neural Networks
Deep Learning
Bayesian Networks
Clustering
@Sherrrylst
AI Services
Cognitive Services Bot Service Azure ML, Databricks, HDInsight
Pre-build AI Conversational AI Custom AI
Azure Infrastructure
CPU, FPGA, GPU
Cosmos
DB
SQL DB Data Lake IOT EdgeDSVMSparkBatch AISQL DW
Deep learning Frameworks
Cognitive Toolkits Tensorflow Azure ML, Databricks, HDInsight
Pre-build AI Conversational AI Custom AI
Deep learning Frameworks
CPU, FPGA, GPU
Cosmos
DB
SQL DB Data Lake IOT EdgeDSVMSparkBatch AISQL DW
• Speech to Text
• Text to Speech
• Speaker recognition (Preview)
• Speech Translation
@Sherrrylst
Cognitive Services - Speech
• Speech to Text
• Text to Speech
• Speaker recognition (Preview)
• Speech Translation
@Sherrrylst
Cognitive Services - Speech
• Language Understanding
• Bing Spell Check
• Translator Text
• Content Moderator
• Text Analytics
@Sherrrylst
Cognitive Services - Language
• Language Understanding
• Bing Spell Check
• Translator Text
• Content Moderator
• Text Analytics
@Sherrrylst
Cognitive Services - Language
Cognitive Services - Search
@Sherrrylst
• Bing Custom Search
• Bing Web Search
• Bing Video Search
• Bing Image Search
• Bing Local Business Search (Preview)
• Bing Visual Search
• Bing Entity Search
• Bing News Search
• Bing Auto Suggest

More Related Content

What's hot

Zend Framework 1.9 Setup & Using Zend_Tool
Zend Framework 1.9 Setup & Using Zend_ToolZend Framework 1.9 Setup & Using Zend_Tool
Zend Framework 1.9 Setup & Using Zend_Tool
Gordon Forsythe
 
QA Lab: тестирование ПО. Станислав Шмидт: "Self-testing REST APIs with API Fi...
QA Lab: тестирование ПО. Станислав Шмидт: "Self-testing REST APIs with API Fi...QA Lab: тестирование ПО. Станислав Шмидт: "Self-testing REST APIs with API Fi...
QA Lab: тестирование ПО. Станислав Шмидт: "Self-testing REST APIs with API Fi...
GeeksLab Odessa
 
slingmodels
slingmodelsslingmodels
slingmodels
Ankur Chauhan
 
AOP in Python API design
AOP in Python API designAOP in Python API design
AOP in Python API design
meij200
 
Dart Power Tools
Dart Power ToolsDart Power Tools
Dart Power Tools
Matt Norris
 
Ajax Rails
Ajax RailsAjax Rails
Ajax Rails
hot
 
OSCON Google App Engine Codelab - July 2010
OSCON Google App Engine Codelab - July 2010OSCON Google App Engine Codelab - July 2010
OSCON Google App Engine Codelab - July 2010
ikailan
 
Node.js server-side rendering
Node.js server-side renderingNode.js server-side rendering
Node.js server-side rendering
The Software House
 
"R & Text Analytics" (15 January 2013)
"R & Text Analytics" (15 January 2013)"R & Text Analytics" (15 January 2013)
"R & Text Analytics" (15 January 2013)
Portland R User Group
 
Real World Dependency Injection - oscon13
Real World Dependency Injection - oscon13Real World Dependency Injection - oscon13
Real World Dependency Injection - oscon13
Stephan Hochdörfer
 
Searching ORM: First Why, Then How
Searching ORM: First Why, Then HowSearching ORM: First Why, Then How
Searching ORM: First Why, Then How
sfarmer10
 
Build Deep Learning Applications with TensorFlow & SageMaker: Machine Learnin...
Build Deep Learning Applications with TensorFlow & SageMaker: Machine Learnin...Build Deep Learning Applications with TensorFlow & SageMaker: Machine Learnin...
Build Deep Learning Applications with TensorFlow & SageMaker: Machine Learnin...
Amazon Web Services
 
JSMVCOMFG - To sternly look at JavaScript MVC and Templating Frameworks
JSMVCOMFG - To sternly look at JavaScript MVC and Templating FrameworksJSMVCOMFG - To sternly look at JavaScript MVC and Templating Frameworks
JSMVCOMFG - To sternly look at JavaScript MVC and Templating Frameworks
Mario Heiderich
 
Authentication with zend framework
Authentication with zend frameworkAuthentication with zend framework
Authentication with zend framework
George Mihailov
 
Introduction to Backbone.js & Marionette.js
Introduction to Backbone.js & Marionette.jsIntroduction to Backbone.js & Marionette.js
Introduction to Backbone.js & Marionette.js
Return on Intelligence
 
Curso Symfony - Clase 2
Curso Symfony - Clase 2Curso Symfony - Clase 2
Curso Symfony - Clase 2
Javier Eguiluz
 
Anatomy of an Addon Ecosystem - EmberConf 2019
Anatomy of an Addon Ecosystem - EmberConf 2019Anatomy of an Addon Ecosystem - EmberConf 2019
Anatomy of an Addon Ecosystem - EmberConf 2019
Lisa Backer
 

What's hot (17)

Zend Framework 1.9 Setup & Using Zend_Tool
Zend Framework 1.9 Setup & Using Zend_ToolZend Framework 1.9 Setup & Using Zend_Tool
Zend Framework 1.9 Setup & Using Zend_Tool
 
QA Lab: тестирование ПО. Станислав Шмидт: "Self-testing REST APIs with API Fi...
QA Lab: тестирование ПО. Станислав Шмидт: "Self-testing REST APIs with API Fi...QA Lab: тестирование ПО. Станислав Шмидт: "Self-testing REST APIs with API Fi...
QA Lab: тестирование ПО. Станислав Шмидт: "Self-testing REST APIs with API Fi...
 
slingmodels
slingmodelsslingmodels
slingmodels
 
AOP in Python API design
AOP in Python API designAOP in Python API design
AOP in Python API design
 
Dart Power Tools
Dart Power ToolsDart Power Tools
Dart Power Tools
 
Ajax Rails
Ajax RailsAjax Rails
Ajax Rails
 
OSCON Google App Engine Codelab - July 2010
OSCON Google App Engine Codelab - July 2010OSCON Google App Engine Codelab - July 2010
OSCON Google App Engine Codelab - July 2010
 
Node.js server-side rendering
Node.js server-side renderingNode.js server-side rendering
Node.js server-side rendering
 
"R & Text Analytics" (15 January 2013)
"R & Text Analytics" (15 January 2013)"R & Text Analytics" (15 January 2013)
"R & Text Analytics" (15 January 2013)
 
Real World Dependency Injection - oscon13
Real World Dependency Injection - oscon13Real World Dependency Injection - oscon13
Real World Dependency Injection - oscon13
 
Searching ORM: First Why, Then How
Searching ORM: First Why, Then HowSearching ORM: First Why, Then How
Searching ORM: First Why, Then How
 
Build Deep Learning Applications with TensorFlow & SageMaker: Machine Learnin...
Build Deep Learning Applications with TensorFlow & SageMaker: Machine Learnin...Build Deep Learning Applications with TensorFlow & SageMaker: Machine Learnin...
Build Deep Learning Applications with TensorFlow & SageMaker: Machine Learnin...
 
JSMVCOMFG - To sternly look at JavaScript MVC and Templating Frameworks
JSMVCOMFG - To sternly look at JavaScript MVC and Templating FrameworksJSMVCOMFG - To sternly look at JavaScript MVC and Templating Frameworks
JSMVCOMFG - To sternly look at JavaScript MVC and Templating Frameworks
 
Authentication with zend framework
Authentication with zend frameworkAuthentication with zend framework
Authentication with zend framework
 
Introduction to Backbone.js & Marionette.js
Introduction to Backbone.js & Marionette.jsIntroduction to Backbone.js & Marionette.js
Introduction to Backbone.js & Marionette.js
 
Curso Symfony - Clase 2
Curso Symfony - Clase 2Curso Symfony - Clase 2
Curso Symfony - Clase 2
 
Anatomy of an Addon Ecosystem - EmberConf 2019
Anatomy of an Addon Ecosystem - EmberConf 2019Anatomy of an Addon Ecosystem - EmberConf 2019
Anatomy of an Addon Ecosystem - EmberConf 2019
 

Similar to Mood analyzer-ng poland

Mood analyzer-virtual-dev-conf
Mood analyzer-virtual-dev-confMood analyzer-virtual-dev-conf
Mood analyzer-virtual-dev-conf
Sherry List
 
Computer Vision: Mood Analyzer 盧
Computer Vision: Mood Analyzer 盧Computer Vision: Mood Analyzer 盧
Computer Vision: Mood Analyzer 盧
Sherry List
 
Using Azure Cognitive Services with NativeScript
Using Azure Cognitive Services with NativeScriptUsing Azure Cognitive Services with NativeScript
Using Azure Cognitive Services with NativeScript
Sherry List
 
Questioning the status quo
Questioning the status quoQuestioning the status quo
Questioning the status quo
Ivano Pagano
 
Let ColdFusion ORM do the work for you!
Let ColdFusion ORM do the work for you!Let ColdFusion ORM do the work for you!
Let ColdFusion ORM do the work for you!
Masha Edelen
 
Childthemes ottawa-word camp-1919
Childthemes ottawa-word camp-1919Childthemes ottawa-word camp-1919
Childthemes ottawa-word camp-1919
Paul Bearne
 
前端MVC 豆瓣说
前端MVC 豆瓣说前端MVC 豆瓣说
前端MVC 豆瓣说
Ting Lv
 
Intro to computer vision in .net update
Intro to computer vision in .net   updateIntro to computer vision in .net   update
Intro to computer vision in .net update
Stephen Lorello
 
The Role of Python in SPAs (Single-Page Applications)
The Role of Python in SPAs (Single-Page Applications)The Role of Python in SPAs (Single-Page Applications)
The Role of Python in SPAs (Single-Page Applications)
David Gibbons
 
Designing CakePHP plugins for consuming APIs
Designing CakePHP plugins for consuming APIsDesigning CakePHP plugins for consuming APIs
Designing CakePHP plugins for consuming APIs
Neil Crookes
 
Real World MVC
Real World MVCReal World MVC
Real World MVC
James Johnson
 
How to implement authorization in your backend with AWS IAM
How to implement authorization in your backend with AWS IAMHow to implement authorization in your backend with AWS IAM
How to implement authorization in your backend with AWS IAM
Provectus
 
Build, Train & Deploy Your ML Application on Amazon SageMaker
Build, Train & Deploy Your ML Application on Amazon SageMakerBuild, Train & Deploy Your ML Application on Amazon SageMaker
Build, Train & Deploy Your ML Application on Amazon SageMaker
Amazon Web Services
 
Gears User Guide
Gears User GuideGears User Guide
Gears User Guide
Muthuselvam RS
 
API-first development
API-first developmentAPI-first development
API-first development
Vasco Veloso
 
09 - express nodes on the right angle - vitaliy basyuk - it event 2013 (5)
09 - express nodes on the right angle - vitaliy basyuk - it event 2013 (5)09 - express nodes on the right angle - vitaliy basyuk - it event 2013 (5)
09 - express nodes on the right angle - vitaliy basyuk - it event 2013 (5)
Igor Bronovskyy
 
Creating a New iSites Tool
Creating a New iSites ToolCreating a New iSites Tool
Creating a New iSites Tool
Harvard Web Working Group
 
Python Code Camp for Professionals 1/4
Python Code Camp for Professionals 1/4Python Code Camp for Professionals 1/4
Python Code Camp for Professionals 1/4
DEVCON
 
Building Deep Learning Applications with TensorFlow and Amazon SageMaker
Building Deep Learning Applications with TensorFlow and Amazon SageMakerBuilding Deep Learning Applications with TensorFlow and Amazon SageMaker
Building Deep Learning Applications with TensorFlow and Amazon SageMaker
Amazon Web Services
 
WebNet Conference 2012 - Designing complex applications using html5 and knock...
WebNet Conference 2012 - Designing complex applications using html5 and knock...WebNet Conference 2012 - Designing complex applications using html5 and knock...
WebNet Conference 2012 - Designing complex applications using html5 and knock...
Fabio Franzini
 

Similar to Mood analyzer-ng poland (20)

Mood analyzer-virtual-dev-conf
Mood analyzer-virtual-dev-confMood analyzer-virtual-dev-conf
Mood analyzer-virtual-dev-conf
 
Computer Vision: Mood Analyzer 盧
Computer Vision: Mood Analyzer 盧Computer Vision: Mood Analyzer 盧
Computer Vision: Mood Analyzer 盧
 
Using Azure Cognitive Services with NativeScript
Using Azure Cognitive Services with NativeScriptUsing Azure Cognitive Services with NativeScript
Using Azure Cognitive Services with NativeScript
 
Questioning the status quo
Questioning the status quoQuestioning the status quo
Questioning the status quo
 
Let ColdFusion ORM do the work for you!
Let ColdFusion ORM do the work for you!Let ColdFusion ORM do the work for you!
Let ColdFusion ORM do the work for you!
 
Childthemes ottawa-word camp-1919
Childthemes ottawa-word camp-1919Childthemes ottawa-word camp-1919
Childthemes ottawa-word camp-1919
 
前端MVC 豆瓣说
前端MVC 豆瓣说前端MVC 豆瓣说
前端MVC 豆瓣说
 
Intro to computer vision in .net update
Intro to computer vision in .net   updateIntro to computer vision in .net   update
Intro to computer vision in .net update
 
The Role of Python in SPAs (Single-Page Applications)
The Role of Python in SPAs (Single-Page Applications)The Role of Python in SPAs (Single-Page Applications)
The Role of Python in SPAs (Single-Page Applications)
 
Designing CakePHP plugins for consuming APIs
Designing CakePHP plugins for consuming APIsDesigning CakePHP plugins for consuming APIs
Designing CakePHP plugins for consuming APIs
 
Real World MVC
Real World MVCReal World MVC
Real World MVC
 
How to implement authorization in your backend with AWS IAM
How to implement authorization in your backend with AWS IAMHow to implement authorization in your backend with AWS IAM
How to implement authorization in your backend with AWS IAM
 
Build, Train & Deploy Your ML Application on Amazon SageMaker
Build, Train & Deploy Your ML Application on Amazon SageMakerBuild, Train & Deploy Your ML Application on Amazon SageMaker
Build, Train & Deploy Your ML Application on Amazon SageMaker
 
Gears User Guide
Gears User GuideGears User Guide
Gears User Guide
 
API-first development
API-first developmentAPI-first development
API-first development
 
09 - express nodes on the right angle - vitaliy basyuk - it event 2013 (5)
09 - express nodes on the right angle - vitaliy basyuk - it event 2013 (5)09 - express nodes on the right angle - vitaliy basyuk - it event 2013 (5)
09 - express nodes on the right angle - vitaliy basyuk - it event 2013 (5)
 
Creating a New iSites Tool
Creating a New iSites ToolCreating a New iSites Tool
Creating a New iSites Tool
 
Python Code Camp for Professionals 1/4
Python Code Camp for Professionals 1/4Python Code Camp for Professionals 1/4
Python Code Camp for Professionals 1/4
 
Building Deep Learning Applications with TensorFlow and Amazon SageMaker
Building Deep Learning Applications with TensorFlow and Amazon SageMakerBuilding Deep Learning Applications with TensorFlow and Amazon SageMaker
Building Deep Learning Applications with TensorFlow and Amazon SageMaker
 
WebNet Conference 2012 - Designing complex applications using html5 and knock...
WebNet Conference 2012 - Designing complex applications using html5 and knock...WebNet Conference 2012 - Designing complex applications using html5 and knock...
WebNet Conference 2012 - Designing complex applications using html5 and knock...
 

Recently uploaded

KubeCon & CloudNative Con 2024 Artificial Intelligent
KubeCon & CloudNative Con 2024 Artificial IntelligentKubeCon & CloudNative Con 2024 Artificial Intelligent
KubeCon & CloudNative Con 2024 Artificial Intelligent
Emre Gündoğdu
 
Honeypots Unveiled: Proactive Defense Tactics for Cyber Security, Phoenix Sum...
Honeypots Unveiled: Proactive Defense Tactics for Cyber Security, Phoenix Sum...Honeypots Unveiled: Proactive Defense Tactics for Cyber Security, Phoenix Sum...
Honeypots Unveiled: Proactive Defense Tactics for Cyber Security, Phoenix Sum...
APNIC
 
快速办理(Vic毕业证书)惠灵顿维多利亚大学毕业证完成信一模一样
快速办理(Vic毕业证书)惠灵顿维多利亚大学毕业证完成信一模一样快速办理(Vic毕业证书)惠灵顿维多利亚大学毕业证完成信一模一样
快速办理(Vic毕业证书)惠灵顿维多利亚大学毕业证完成信一模一样
3a0sd7z3
 
Bengaluru Dreamin' 24 - Personal Branding
Bengaluru Dreamin' 24 - Personal BrandingBengaluru Dreamin' 24 - Personal Branding
Bengaluru Dreamin' 24 - Personal Branding
Tarandeep Singh
 
一比一原版新西兰林肯大学毕业证(Lincoln毕业证书)学历如何办理
一比一原版新西兰林肯大学毕业证(Lincoln毕业证书)学历如何办理一比一原版新西兰林肯大学毕业证(Lincoln毕业证书)学历如何办理
一比一原版新西兰林肯大学毕业证(Lincoln毕业证书)学历如何办理
thezot
 
cyber crime.pptx..........................
cyber crime.pptx..........................cyber crime.pptx..........................
cyber crime.pptx..........................
GNAMBIKARAO
 
怎么办理(umiami毕业证书)美国迈阿密大学毕业证文凭证书实拍图原版一模一样
怎么办理(umiami毕业证书)美国迈阿密大学毕业证文凭证书实拍图原版一模一样怎么办理(umiami毕业证书)美国迈阿密大学毕业证文凭证书实拍图原版一模一样
怎么办理(umiami毕业证书)美国迈阿密大学毕业证文凭证书实拍图原版一模一样
rtunex8r
 
快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样
快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样
快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样
3a0sd7z3
 
HijackLoader Evolution: Interactive Process Hollowing
HijackLoader Evolution: Interactive Process HollowingHijackLoader Evolution: Interactive Process Hollowing
HijackLoader Evolution: Interactive Process Hollowing
Donato Onofri
 
How to make a complaint to the police for Social Media Fraud.pdf
How to make a complaint to the police for Social Media Fraud.pdfHow to make a complaint to the police for Social Media Fraud.pdf
How to make a complaint to the police for Social Media Fraud.pdf
Infosec train
 
Securing BGP: Operational Strategies and Best Practices for Network Defenders...
Securing BGP: Operational Strategies and Best Practices for Network Defenders...Securing BGP: Operational Strategies and Best Practices for Network Defenders...
Securing BGP: Operational Strategies and Best Practices for Network Defenders...
APNIC
 
一比一原版(uc毕业证书)加拿大卡尔加里大学毕业证如何办理
一比一原版(uc毕业证书)加拿大卡尔加里大学毕业证如何办理一比一原版(uc毕业证书)加拿大卡尔加里大学毕业证如何办理
一比一原版(uc毕业证书)加拿大卡尔加里大学毕业证如何办理
dtagbe
 

Recently uploaded (12)

KubeCon & CloudNative Con 2024 Artificial Intelligent
KubeCon & CloudNative Con 2024 Artificial IntelligentKubeCon & CloudNative Con 2024 Artificial Intelligent
KubeCon & CloudNative Con 2024 Artificial Intelligent
 
Honeypots Unveiled: Proactive Defense Tactics for Cyber Security, Phoenix Sum...
Honeypots Unveiled: Proactive Defense Tactics for Cyber Security, Phoenix Sum...Honeypots Unveiled: Proactive Defense Tactics for Cyber Security, Phoenix Sum...
Honeypots Unveiled: Proactive Defense Tactics for Cyber Security, Phoenix Sum...
 
快速办理(Vic毕业证书)惠灵顿维多利亚大学毕业证完成信一模一样
快速办理(Vic毕业证书)惠灵顿维多利亚大学毕业证完成信一模一样快速办理(Vic毕业证书)惠灵顿维多利亚大学毕业证完成信一模一样
快速办理(Vic毕业证书)惠灵顿维多利亚大学毕业证完成信一模一样
 
Bengaluru Dreamin' 24 - Personal Branding
Bengaluru Dreamin' 24 - Personal BrandingBengaluru Dreamin' 24 - Personal Branding
Bengaluru Dreamin' 24 - Personal Branding
 
一比一原版新西兰林肯大学毕业证(Lincoln毕业证书)学历如何办理
一比一原版新西兰林肯大学毕业证(Lincoln毕业证书)学历如何办理一比一原版新西兰林肯大学毕业证(Lincoln毕业证书)学历如何办理
一比一原版新西兰林肯大学毕业证(Lincoln毕业证书)学历如何办理
 
cyber crime.pptx..........................
cyber crime.pptx..........................cyber crime.pptx..........................
cyber crime.pptx..........................
 
怎么办理(umiami毕业证书)美国迈阿密大学毕业证文凭证书实拍图原版一模一样
怎么办理(umiami毕业证书)美国迈阿密大学毕业证文凭证书实拍图原版一模一样怎么办理(umiami毕业证书)美国迈阿密大学毕业证文凭证书实拍图原版一模一样
怎么办理(umiami毕业证书)美国迈阿密大学毕业证文凭证书实拍图原版一模一样
 
快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样
快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样
快速办理(新加坡SMU毕业证书)新加坡管理大学毕业证文凭证书一模一样
 
HijackLoader Evolution: Interactive Process Hollowing
HijackLoader Evolution: Interactive Process HollowingHijackLoader Evolution: Interactive Process Hollowing
HijackLoader Evolution: Interactive Process Hollowing
 
How to make a complaint to the police for Social Media Fraud.pdf
How to make a complaint to the police for Social Media Fraud.pdfHow to make a complaint to the police for Social Media Fraud.pdf
How to make a complaint to the police for Social Media Fraud.pdf
 
Securing BGP: Operational Strategies and Best Practices for Network Defenders...
Securing BGP: Operational Strategies and Best Practices for Network Defenders...Securing BGP: Operational Strategies and Best Practices for Network Defenders...
Securing BGP: Operational Strategies and Best Practices for Network Defenders...
 
一比一原版(uc毕业证书)加拿大卡尔加里大学毕业证如何办理
一比一原版(uc毕业证书)加拿大卡尔加里大学毕业证如何办理一比一原版(uc毕业证书)加拿大卡尔加里大学毕业证如何办理
一比一原版(uc毕业证书)加拿大卡尔加里大学毕业证如何办理
 

Mood analyzer-ng poland

Editor's Notes

  1. Demo http://bit.ly/mood-analyzer #devconmu
  2. You use Machine learning to analyze the data
  3. Normally we have some data
  4. Which contains a pattern. Like Dog’s pictures
  5. You analyze this data with Machine learning algorithm
  6. To find patterns
  7. The result is called model. So, machine knows how a dog look like
  8. Model is the thing to recognizes the patterns
  9. Now application can enter data to see if it can recognize a pattern.
  10. Now application can enter data to see if it can recognize a pattern.
  11. You use Machine learning to analyze the data
  12. Preparing a set of data with diversity and covers the edge cases
  13. Creating the algorithms and choosing the techniques can be challenging. Also testing the outcome and making sure we get the right result is also super challenging.
  14. This is not the most difficult way, but still it’s challenging to find a secure way with having the performance in mind
  15. Cognitive Services are RESTful APIs that exposes ML models to the outside world.
  16. Cognitive Services are RESTful APIs that exposes ML models to the outside world.
  17. Computer vision -> Analyze the data and return information like 4 storm troopers standing and sky is blue Video Indexer -> Analyze the video and extract the text and recognizes things that are in the video Face -> Detect faces and extract information about the face Form -> Extract text, key-value pairs, and tables from documents. Custom vision -> Customize image recognition to fit your business needs. Custom Vision -> Upload different pictures of Princess Lea for training, so it can recognizes princess Lea
  18. Detect one or more human faces along with attributes such as: age, emotion, pose, smile and facial hair, including 27 landmarks for each face in the image.
  19. You can even create a guest account to try it without providing Credit card info and no data will be saved after trial is over (7 days)
  20. https://github.com/sazimi/ng-mood-analyzer
  21. https://github.com/sazimi/ng-mood-analyzer
  22. https://github.com/sazimi/ng-mood-analyzer
  23. https://github.com/sazimi/ng-mood-analyzer
  24. https://github.com/sazimi/ng-mood-analyzer
  25. https://github.com/sazimi/ng-mood-analyzer
  26. https://github.com/sazimi/ng-mood-analyzer
  27. add a listener to store the video’s height and width when the video starts.  And update the native element
  28. Set the with and height of canvas element
  29. Draw the video element content to canvas element
  30. Create a png file from the canvas content
  31. Convert it to blob since Face API only accept octet stream
  32. https://beam.enjin.io/claim/a912505fb950f3739999a8eb62686c4e
  33. https://aka.ms/mood-analyzer
  34. https://docs.microsoft.com/en-us/learn/modules/replace-faces-with-emojis-matching-emotion https://dev.to/stratiteq/where-s-chewie-object-detection-with-azure-custom-vision-lne https://dev.to/azure/getting-started-with-azure-cognitive-services-cma https://docs.microsoft.com/en-us/learn/modules/classify-user-feedback-with-the-text-analytics-api/?wt.mc_id=cognitiveservices-nativescriptdeveloperdays-shlist
  35. Devices that can remember, learn, understand and recognize things
  36. ML is all about the ability to learn. Applications that can learn without hardcoding different scenarios.
  37. ML is used in many applications to detect the patterns, Is this a cat or a dog. In order to detect these patterns, you need to use different techniques. ANN: Mimics the way that human brain works DL: Learn from many layers of analysis where each layer has the input from the previous layer
  38. AI is the overall concept to make computers intelligent
  39. Speaker recognition -> Identify people based on their speech Speech Translation -> Listen and translate to text
  40. Speaker recognition -> Identify people based on their speech Speech Translation -> Listen and translate to text
  41. Language Understanding -> You feeding it with the command and train it to what it means and after that it understands Text Analytics: Analyze a text in order to get the sentiment of a text (Positive/Negative), detect the language, extract the key phrase from a piece of text and retrieve the topics
  42. Language Understanding -> You feeding it with the command and train it to what it means and after that it understands Text Analytics: Analyze a text in order to get the sentiment of a text (Positive/Negative), detect the language, extract the key phrase from a piece of text and retrieve the topics
  43. Bing Custom Search -> Corporate search engine Bing Entity Search -> Detects pictures or persons to enrich the result