Building apps that use Visual Recognition

To use IBM Watson Visual Recognition custom models in Core ML apps, you need to download an ML model (.mlmodel) file. To use Visual Recognition in other applications that you develop, you need to collect your API key as well as the model ID of any custom models you want to use. This topic describes how to perform these tasks in IBM Watson Studio .

 

Core ML

After creating a custom model in Watson Studio, you can find instructions in the Visual Recognition model builder for downloading the ML model (.mlmodel) file for your custom model:

  1. From the Assets page of your project, click a Visual Recognition custom model to open that model in the model builder.
  2. In the Implementation area of the model builder, select Core ML to see .mlmodel file instructions.

 

API key

You can find your API key in the Visual Recognition service credentials:

  1. Select "Watson Services" from the Services drop-down list in Watson Studio. This shows all your Visual Recognition service instances.
  2. Click the Visual Recognition service instance you want to use.
  3. View the credentials in the Credentials tab, and then copy the API key.

 

Model ID

After creating a custom model in Watson Studio, you can find the model ID for your custom model in the Visual Recognition model builder:

  1. From the Assets page of your project, click a Visual Recognition custom model to open that model in the model builder.
  2. In the Overview area of the model builder, you can find the model ID.

 

Sample code

After creating a custom model in Watson Studio, you can find sample code for using your custom model in the Visual Recognition model builder:

  1. From the Assets page of your project, click a Visual Recognition custom model to open that model in the model builder.
  2. In the Implementation area of the model builder, you can find sample code.