From the course: Machine Learning in Mobile Applications

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Client tie to Custom Vision model

Client tie to Custom Vision model - Xamarin Tutorial

From the course: Machine Learning in Mobile Applications

Start my 1-month free trial

Client tie to Custom Vision model

- [Narrator] Now we're going to tie in our custom vision model. So we're going to close the main view model, and open up visual recognition view model. And we'll scroll down. And the method that we want to implement is GetTreeTypeAsync. And right now it's just returning back a string that's "well I'm not sure". So to tie in the new service, we're going to create a new prediction endpoint. So it's var client, and that equals new prediction endpoint. Now, we're going to have to right click on it, go to Quick Fix, and add in a using statement. And we're going to set one property in it. And the property is the ApiKey. And that's going to be equal to a string. Now, to get the ApiKey, we can receive it from the custom vision portal. So here we are in the custom vision portal, we see our trees model, we're going to open that up, and we're going to go over to the little gear and click on that. Now, you see there is a message here that says this project can be moved to Azure. And the reason…

Contents