question

AdeyeyeGeorge-0731 avatar image
0 Votes"
AdeyeyeGeorge-0731 asked romungi-MSFT commented

Azure Bing API Visual Image search implementation in PHP

I have some list of image url on my system and i want to use each image url to search for similar images using PHP on Bing but there seems to be no example of PHP use case in the docs. I can only see JavaScript implementations through uploading image.

I don't want to use JavaScript because everything is to run from the server side without client interactions.

I can also see the PHP text search implementations here https://docs.microsoft.com/en-us/azure/cognitive-services/bing-image-search/quickstarts/php but this is using text to search for images.

What am looking for is to use image url to search for similar images on the api.

Please if help me... with the PHP implementations. Thanks.

azure-bing-image
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

romungi-MSFT avatar image
1 Vote"
romungi-MSFT answered romungi-MSFT commented

@AdeyeyeGeorge-0731 The doc link mentioned seems to point to the bing image search API which uses text in the query string to get the results. Bing visual search along with other bing search API's migrated to bing from cognitive services and the appropriate doc link for all services is the following.

I am not an expert on PHP but the following SO thread could help to perform a PHP visual search operation. I hope this helps.

P.S: SO thread referenced

If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.



· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Yeah thank you very much i got it working but count is not working on visual search. It returns all the result even when i used the count parameters on it.

Please do you have an idea to this?



0 Votes 0 ·

Or is there a way to limit search response?

0 Votes 0 ·

@AdeyeyeGeorge-8129 As per the reference for query parameters supported for visual search count is not supported. You can refer the same from this page and use the appropriate parameter to limit your search responses.


0 Votes 0 ·
Show more comments