The Azure Code Samples are currently available in English

Use an ONNX file exported from the Custom Vision Service with Windows ML

This example demonstrates how to take an ONNX file that was exported from the Cognitive Services Custom Vision service, and use it in a UWP application. Specifically, this example demonstrates how to use the camera on a Windows 10 device as the image source for the model.

IMPORTANT: This example requires Windows 10 build 17738 or higher, along with the matching Windows 10 SDK.


  • Displays a preview of what the camera sees.
  • Displays the tags and score returned from the model.

Getting Started



(Add steps to get up and running quickly)

  1. git clone
  2. Open the VisionApp.sln file using Visual Studio.
  3. Use F5 to build and run the application.
  4. Point the camera at a dog or cat (or a picture of one). The score below the preview shows whether the model thinks that a dog or cat is in the scene. A label of "Negative" indicates that no dog or cat is in the image.

See also