0

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

  • [Status code 404, {"error":{"code":"404","message": "Resource not found"}}](https://github.com/MicrosoftDocs/azure-docs/issues/47698) and [Cognitive Services - Computer Vision - Analize Image always returns error 404](https://github.com/Azure/azure-sdk-for-java/issues/21253) – Ecstasy Jun 27 '22 at 03:39
  • Does this answer your question? [Cognitive Services Custom Vision SDK NotFound Error](https://stackoverflow.com/questions/55959026/cognitive-services-custom-vision-sdk-notfound-error) – Ecstasy Jun 27 '22 at 03:44
  • Please provide enough code so others can better understand or reproduce the problem. – Community Jun 27 '22 at 13:04

1 Answers1

0

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

Sairam Tadepalli
  • 1,563
  • 1
  • 3
  • 11