SlideShare a Scribd company logo
1 of 28
Azure Machine Learning In
Xamarin.Forms
Juan R. Martí Mercado
Juan R. Martí Mercado
Google Developers Group Lead Organiz
Polybits Co-Organizer
PRPass… Try to help
Pastries Junky!
Women Techmakers Organizer
Woman Tech Makers – Telling Our Story
Machine Learning & AI
Machine Learning & AI is on a rising!
Azure Cognitive Services
Vision API
Demo
Time!
What are we going to create?
Picture Analyzer
• Select a picture from our phone
• Connect to Azure Cognitive Services
• Obtain and Display The Tags
1. Create API Key In Azure
DON’T SHARE YOUR KEYS!!!!!!
2. Create Project
Create a Xamarin Project
Create Our Initial Interface
Include Packages
• Xam.Plugin.Media
• By James Montemagno
• Project.Oxford.Vision
• By Microsoft
Create Image Description Function
Create Select Picture Function
Connect the Button Handler
Tadddaaa!!!
Thank You!
Where to find me?
Twitter - /jmarti326
Meetup - /gdgpuertorico
New Blog – juanmarti.io
E-Mail - jmarti.dev@gmail.com
Resources
• GitHub - /jmarti326/Picture-Analyzer
• Computer Vision API - http://bit.ly/2sBtryy

More Related Content

Similar to Azure Machine Learning In Xamarin.Forms: Build a Picture Analyzer App

Brainstorming Interactive - Who are we ?
Brainstorming Interactive - Who are we ?Brainstorming Interactive - Who are we ?
Brainstorming Interactive - Who are we ?Laurent Assouad
 
Webinar on AI in IoT applications KCG Connect Alumni Digital Series by Rajkumar
Webinar on AI in IoT applications KCG Connect Alumni Digital Series by RajkumarWebinar on AI in IoT applications KCG Connect Alumni Digital Series by Rajkumar
Webinar on AI in IoT applications KCG Connect Alumni Digital Series by RajkumarRajkumar R
 
How to create a smart Photobooth
How to create a smart PhotoboothHow to create a smart Photobooth
How to create a smart PhotoboothHao Luo
 
[DevRelCon Tokyo 2017] Creative Technical Content for Better Developer Experi...
[DevRelCon Tokyo 2017] Creative Technical Content for Better Developer Experi...[DevRelCon Tokyo 2017] Creative Technical Content for Better Developer Experi...
[DevRelCon Tokyo 2017] Creative Technical Content for Better Developer Experi...Tomomi Imura
 
AI tools in Scholarly Research and Publishing
AI tools in Scholarly Research and PublishingAI tools in Scholarly Research and Publishing
AI tools in Scholarly Research and PublishingBrian Pichman
 
Ria Sankar on Building AI Products
Ria Sankar on Building AI ProductsRia Sankar on Building AI Products
Ria Sankar on Building AI ProductsRia Sankar
 
Getting Started With Dato - August 2015
Getting Started With Dato - August 2015Getting Started With Dato - August 2015
Getting Started With Dato - August 2015Turi, Inc.
 
Magic Leap Pitch (Development, Manufacturing and Launch Plans)
Magic Leap Pitch (Development, Manufacturing and Launch Plans)Magic Leap Pitch (Development, Manufacturing and Launch Plans)
Magic Leap Pitch (Development, Manufacturing and Launch Plans)Nicholas Ng
 
From Concept to Reality _ How to Make AI Avatar.pdf
From Concept to Reality _ How to Make AI Avatar.pdfFrom Concept to Reality _ How to Make AI Avatar.pdf
From Concept to Reality _ How to Make AI Avatar.pdfFlyWly
 
AI-Volution: WordPress Developer’s Guide to Evolve in the Age of AI by Abhish...
AI-Volution: WordPress Developer’s Guide to Evolve in the Age of AI by Abhish...AI-Volution: WordPress Developer’s Guide to Evolve in the Age of AI by Abhish...
AI-Volution: WordPress Developer’s Guide to Evolve in the Age of AI by Abhish...WordCamp Kathmandu
 
JAM23-24 session 2 .pptx
JAM23-24 session 2 .pptxJAM23-24 session 2 .pptx
JAM23-24 session 2 .pptxAbrarSharif2
 
Improving your vision with Azure Cognitive Services - MixUG
Improving your vision with Azure Cognitive Services - MixUGImproving your vision with Azure Cognitive Services - MixUG
Improving your vision with Azure Cognitive Services - MixUGMarc Duiker
 
Flashfoto API Overview
Flashfoto API OverviewFlashfoto API Overview
Flashfoto API OverviewAaron Markham
 
AI Workshops at Computers In Libraries 2024
AI Workshops at Computers In Libraries 2024AI Workshops at Computers In Libraries 2024
AI Workshops at Computers In Libraries 2024Brian Pichman
 
STEM Programming Ideas at the Library.pdf
STEM Programming Ideas at the Library.pdfSTEM Programming Ideas at the Library.pdf
STEM Programming Ideas at the Library.pdfBrian Pichman
 
全港第一屆 Makeblock ai 人工智能 stem 大賽 (簡介會)
全港第一屆 Makeblock ai 人工智能 stem 大賽 (簡介會)全港第一屆 Makeblock ai 人工智能 stem 大賽 (簡介會)
全港第一屆 Makeblock ai 人工智能 stem 大賽 (簡介會)Coding101
 
Machine learning. Artificial intelligence's influence on marketing.
Machine learning. Artificial intelligence's influence on marketing.Machine learning. Artificial intelligence's influence on marketing.
Machine learning. Artificial intelligence's influence on marketing.Alina Hueckelkamp
 
Notice Me, Senpai! Get Discovered with Creative Technical Content
Notice Me, Senpai! Get Discovered with Creative Technical ContentNotice Me, Senpai! Get Discovered with Creative Technical Content
Notice Me, Senpai! Get Discovered with Creative Technical ContentTomomi Imura
 
AI, The Enterprise, and You
AI, The Enterprise, and YouAI, The Enterprise, and You
AI, The Enterprise, and YouDavid Wesst
 

Similar to Azure Machine Learning In Xamarin.Forms: Build a Picture Analyzer App (20)

Brainstorming Interactive - Who are we ?
Brainstorming Interactive - Who are we ?Brainstorming Interactive - Who are we ?
Brainstorming Interactive - Who are we ?
 
Webinar on AI in IoT applications KCG Connect Alumni Digital Series by Rajkumar
Webinar on AI in IoT applications KCG Connect Alumni Digital Series by RajkumarWebinar on AI in IoT applications KCG Connect Alumni Digital Series by Rajkumar
Webinar on AI in IoT applications KCG Connect Alumni Digital Series by Rajkumar
 
How to create a smart Photobooth
How to create a smart PhotoboothHow to create a smart Photobooth
How to create a smart Photobooth
 
[DevRelCon Tokyo 2017] Creative Technical Content for Better Developer Experi...
[DevRelCon Tokyo 2017] Creative Technical Content for Better Developer Experi...[DevRelCon Tokyo 2017] Creative Technical Content for Better Developer Experi...
[DevRelCon Tokyo 2017] Creative Technical Content for Better Developer Experi...
 
AI tools in Scholarly Research and Publishing
AI tools in Scholarly Research and PublishingAI tools in Scholarly Research and Publishing
AI tools in Scholarly Research and Publishing
 
Ria Sankar on Building AI Products
Ria Sankar on Building AI ProductsRia Sankar on Building AI Products
Ria Sankar on Building AI Products
 
Powerful sourcing tips
Powerful sourcing tipsPowerful sourcing tips
Powerful sourcing tips
 
Getting Started With Dato - August 2015
Getting Started With Dato - August 2015Getting Started With Dato - August 2015
Getting Started With Dato - August 2015
 
Magic Leap Pitch (Development, Manufacturing and Launch Plans)
Magic Leap Pitch (Development, Manufacturing and Launch Plans)Magic Leap Pitch (Development, Manufacturing and Launch Plans)
Magic Leap Pitch (Development, Manufacturing and Launch Plans)
 
From Concept to Reality _ How to Make AI Avatar.pdf
From Concept to Reality _ How to Make AI Avatar.pdfFrom Concept to Reality _ How to Make AI Avatar.pdf
From Concept to Reality _ How to Make AI Avatar.pdf
 
AI-Volution: WordPress Developer’s Guide to Evolve in the Age of AI by Abhish...
AI-Volution: WordPress Developer’s Guide to Evolve in the Age of AI by Abhish...AI-Volution: WordPress Developer’s Guide to Evolve in the Age of AI by Abhish...
AI-Volution: WordPress Developer’s Guide to Evolve in the Age of AI by Abhish...
 
JAM23-24 session 2 .pptx
JAM23-24 session 2 .pptxJAM23-24 session 2 .pptx
JAM23-24 session 2 .pptx
 
Improving your vision with Azure Cognitive Services - MixUG
Improving your vision with Azure Cognitive Services - MixUGImproving your vision with Azure Cognitive Services - MixUG
Improving your vision with Azure Cognitive Services - MixUG
 
Flashfoto API Overview
Flashfoto API OverviewFlashfoto API Overview
Flashfoto API Overview
 
AI Workshops at Computers In Libraries 2024
AI Workshops at Computers In Libraries 2024AI Workshops at Computers In Libraries 2024
AI Workshops at Computers In Libraries 2024
 
STEM Programming Ideas at the Library.pdf
STEM Programming Ideas at the Library.pdfSTEM Programming Ideas at the Library.pdf
STEM Programming Ideas at the Library.pdf
 
全港第一屆 Makeblock ai 人工智能 stem 大賽 (簡介會)
全港第一屆 Makeblock ai 人工智能 stem 大賽 (簡介會)全港第一屆 Makeblock ai 人工智能 stem 大賽 (簡介會)
全港第一屆 Makeblock ai 人工智能 stem 大賽 (簡介會)
 
Machine learning. Artificial intelligence's influence on marketing.
Machine learning. Artificial intelligence's influence on marketing.Machine learning. Artificial intelligence's influence on marketing.
Machine learning. Artificial intelligence's influence on marketing.
 
Notice Me, Senpai! Get Discovered with Creative Technical Content
Notice Me, Senpai! Get Discovered with Creative Technical ContentNotice Me, Senpai! Get Discovered with Creative Technical Content
Notice Me, Senpai! Get Discovered with Creative Technical Content
 
AI, The Enterprise, and You
AI, The Enterprise, and YouAI, The Enterprise, and You
AI, The Enterprise, and You
 

Recently uploaded

FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Hyundai Motor Group
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 

Recently uploaded (20)

FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 

Azure Machine Learning In Xamarin.Forms: Build a Picture Analyzer App

Editor's Notes

  1. Platforms such as Slack, Facebook Messenger, Pandorabots, Telegram, Botkit, Wit.ai and Microsoft’s Bot Framework 
  2.     <ContentPage.Content>         <Grid>             <Grid.RowDefinitions>                 <RowDefinition/>                 <RowDefinition/>                 <RowDefinition/>                 <RowDefinition/>             </Grid.RowDefinitions>             <Image x:Name="MyImage" Grid.Row="0" Margin="24"/>             <ActivityIndicator x:Name="MyActivityIndicator" Grid.Row="1"/>             <ScrollView Grid.Row="2">                 <Label x:Name="MyLabel" FontSize="20"/>             </ScrollView>             <Button x:Name="MyButton" Grid.Row="3" Text="Select a Picutre"/>         </Grid>     </ContentPage.Content>
  3.         private async Task<AnalysisResult> GetImageDescription(Stream imageStream)         {             VisionServiceClient visionClient = new VisionServiceClient(                 "ee8f52426e87468cbff5ab0f4c19bc8f",                  "https://eastus2.api.cognitive.microsoft.com/vision/v1.0");             VisualFeature[] features = { VisualFeature.Tags };             return await visionClient.AnalyzeImageAsync(imageStream, features.ToList(), null);         } using System.IO; using System.Threading.Tasks; using Microsoft.ProjectOxford.Vision.Contract; using Xamarin.Forms; using Microsoft.ProjectOxford.Vision; using System.Linq;
  4.         private async Task SelectPicture()         {             if (CrossMedia.Current.IsPickPhotoSupported)             {                 var image = await CrossMedia.Current.PickPhotoAsync();                 MyImage.Source = ImageSource.FromStream(() =>                 {                     return image.GetStream();                 });                 MyActivityIndicator.IsRunning = true;                 try                 {                     var result = await GetImageDescription(image.GetStream());                     MyLabel.Text = "";                     foreach (var tag in result.Tags)                     {                         MyLabel.Text += tag.Name + "\n";                     }                 }                 catch (ClientException ex)                 {                     MyLabel.Text = ex.Message;                 }                 MyActivityIndicator.IsRunning = false;             }         }
  5.         async void Handle_Clicked(object sender, System.EventArgs e)         {             await SelectPicture();         }