This tutorial demonstrates how you can use a Custom Vision Model in a Web App using JavaScript (XMLHttpRequest).
In the first step you create a Custom Vision Model [1]. After that we integrate our Model into an Azure Web Service [2].
At the end we can take/upload an image in our Web App to use our Custom Vision Model to execute a prediction.
[1] Custom Vision
[2] Azure Web App
How to build a classifier with Custom Vision
Go to the Azure Portal and "Create a resource". You can see the field on the left side.
After clicking the button "Create a resource" you will see the following screen.
In the search box enter "Web App" and you get the all results. Select the first result "Web App" by clicking.
After that you will see the following screen. Click the "Create" button to create the Web App.
You have to define the following fields:
After that click "Create" to finish your creation. By clicking the bell on the top right corner you will see the progress of the creation.
You will receive a notification if the deployement is succeeded!
Copy the link in the GitHub Repository and follow the steps in the video below.
You will get these two infromation from the Custom Vision Portal.
Go to the "App Service Editor (Preview)" and click "Go".
Open the "script.js" file and insert the "Prediction URL" and the "Prediction Keys".
Go to your Web App, select an image and click the "Prediction" button. Or use your Phone to select an image with your camera.