does the Stitching API work?

Yurii Khovzun 20 Reputation points
2023-08-04T08:50:17.01+00:00

https://learn.microsoft.com/en-us/azure/ai-services/computer-vision/how-to/shelf-modify-images#use-the-stitching-api

I keep getting an error : {"error":{"code":"InvalidRequest","message":"Value for images[0].url.0 is invalid."}}

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

Accepted answer
  1. romungi-MSFT 47,026 Reputation points Microsoft Employee
    2023-08-07T06:35:24.63+00:00

    @Yurii Khovzun I can confirm that the format used in the request needs to use the body as images: [url1, url2, url3] instead of the key pair tags as mentioned in the current document. The document change is also being done to reflect the correct format. Here, is an example that worked for me.

    curl -H "Ocp-Apim-Subscription-Key: <your_key>" -H "Content-Type: application/json" "https://<your_resource>.cognitiveservices.azure.com/computervision/imagecomposition:stitch?api-version=2023-04-01-preview" --output stiched2.jpg -d "{     'images': ['https://example.com/Azure-Samples/cognitive-services-sample-data-files/master/ComputerVision/shelf-analysis/unstitched-1.png', 'https://example.com/Azure-Samples/cognitive-services-sample-data-files/master/ComputerVision/shelf-analysis/unstitched-2.png', 'https://example.com/Azure-Samples/cognitive-services-sample-data-files/master/ComputerVision/shelf-analysis/unstitched-3.png'              ] }"
    
    

    Here is the response of my run:
    User's image

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Mohan Vinukonda 0 Reputation points
    2024-11-09T13:13:37.0566667+00:00

    i am able to use the remove background url and it is working but stitching api is not working, giving 404 not found. I have question where both the api's end points with starting url are same or not

    https://{your-serivce}.cognitiveservices.azure.com
    
    0 comments No comments

Your answer

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