An Azure artificial intelligence service that analyzes content in images and video.
Read OCR container doesn't work correctly when using "vision" in the hostname
When using the self-hosted OCR read docker container, you can't have the word "vision" in the host, as this will cause URL parsing to fail.
For example, when you give the container the hostname "azure-vision", doing a call on http://azure-vision:5000/vision/v3.2/read/analyze will result in the following "Operation-Location":
http://azure-vision/v3.2/read/analyzeResults/****ba7e
As you can see, it removed the port part (:5000), but it also removed the "vision" part from the URL. The correct Operation-Location should have been:
http://azure-vision:5000/vision/v3.2/read/analyzeResults/****ba7e
This happens basically with any "vision" in the host, for example:
http://read-service.azure-vision.svc.cluster.local:5000/vision/v3.2/read/analyze => http://read-service.azure-vision/v3.2/read/analyzeResults/b6fdbe2f-43b0-475d-8008-f0a48c176307
http://visionazure:5000/vision/v3.2/read/analyze => http://vision/v3.2/read/analyzeResults/****64b7
We are using the docker image "mcr.microsoft.com/azure-cognitive-services/vision/read:3.2-model-2022-04-30".