Unable to create project for custom vision image classification using Java SDK

151 Views Asked by At

I am unable to create the project for the custom vision image classification using Java SDK. It is giving an error in the following line in the main method of CustomVisionQuickstart.java Project project = createProject(trainClient);

I am following the Java SDK quickstart guide for custom vision

https://learn.microsoft.com/en-us/azure/cognitive-services/custom-vision-service/quickstarts/image-classification?tabs=visual-studio&pivots=programming-language-java#prerequisites

1

There are 1 best solutions below

0
Sairam Tadepalli On

The following the code block used in the current scenario:

CustomVisionQuickstart.java 
Project project = createProject(trainClient);

Replace the above code block with the below code block

Trainings trainings = client.trainings();
Project project = trainings.createProject().withName("Dog Breeds").execute();

This will solve the error.

For complete project creation and implementation in Java. Checkout the link

Document Credits: Ruth Yakubu