Повернутися до всіх обговорень

Does the match endpoint not return the id of the registered image it matched?

Rapid account: Jameskleinschnitz
jameskleinschnitz
9 years ago

Looking for an api where I can register a bunch of images & an id and then query it with other images to see if it matches and get the id of the registered image it matched.

Rapid account: Fashionbase
fashionbase Commented 9 years ago

Hi,

Thank you for your interest in our API.

You can register an image this way :
curl -X PUT --include “https://fashionbase-image-server.p.mashape.com/api/img/testkey” -H “X-Mashape-Key:yourkey” -H “Content-Type: application/x-www-form-urlencoded” -H “Accept: text/plain” -d “img=http://myimage.jpg”

Calling this endpoint with a similar image will return the key : “testkey”:
curl -X POST --include “https://fashionbase-image-server.p.mashape.com/api/match” -H “X-Mashape-Key: yourkey” -F “img=@myimage.jpg”

Let us know if you manage to do what you wanted, we can always implement a batch endpoint if it’s a feature you need.

Приєднуйтесь до обговорення — додайте повідомлення нижче:

Вхід / Реєстрація, щоб публікувати нові повідомлення