How to fix the computer vision bugs

Trey 0 Reputation points
2025-04-23T06:52:05.2033333+00:00

I always meet the error :

2025-04-23T14:36:59.899+08:00 ERROR 15744 --- [pool-6-thread-5] com.hkaa.sfrs.fault.oss.AzureConfig : Error reason: {"errorCode":"410","message":"Gone: Computer Vision 2023-02-01-preview has been deprecated. Please upgrade to the latest Computer Vision GA service - https://azure.microsoft.com/en-us/updates?id=475779 ","reason":"RUNTIME_ERROR"}

But I have change the yaml to this url. And it sometimes show 2023-02-01-preview this package and sometimes not have this bugs. How can I fix this bugs.

url: /computervision/imageanalysis:analyze?api-version=2024-02-01&features=objects,tags&language=en&gender-neutral-caption=False

Computer Vision
Computer Vision
An Azure artificial intelligence service that analyzes content in images and video.
{count} votes

1 answer

Sort by: Most helpful
  1. Manas Mohanty 11,690 Reputation points Microsoft External Staff Moderator
    2025-04-23T11:07:33.5266667+00:00

    Hi Trey

    As per error trace, you might have used Computer Vision 2023-02-01-preview version in your Api calls which has been retired on March 31 as per this document

    https://azure.microsoft.com/en-us/updates?id=475779

    It should not mention about 2023-02-01-preview version if we are using image anlaysis urls correctly.

    POST /imageanalysis:analyze?features={features}&language={language}&model-version={model-version}&smartcrops-aspect-ratios={smartcrops-aspect-ratios}&gender-neutral-caption={gender-neutral-caption}&api-version=2024-02-01
    
    
    

    Reference on image analysis image rest api

    Below were tested commands test for my trial in CMD

    Supported Region :East US, West US, France Central, North Europe, West Europe, Southeast Asia, East Asia, Korea Central

    curl.exe -H "Ocp-Apim-Subscription-Key: <apikey>" -H "Content-Type: application/json" "https://<yourcomputervisionresource>.cognitiveservices.azure.com/computervision/imageanalysis:analyze?features=caption,read&model-version=latest&language=en&api-version=2024-02-01" -d "{'url':'https://free.blessedness.top/azure/ai-services/computer-vision/media/quickstarts/presentation.png'}"
    

    Hope it helps.

    Thank you.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.