This is an api which has been written by using symfony framework which is one of the greatest and most powerful framework since 2005.
it's not up yet but when it uploads on server some strict api_tokens will be added.
- Fast execution âš¡
- Compare your face images by posting urls ✅
- Post original images if you don't have urls 👥
- Respond clearly and fast (cuz time is impotatnt) 🕘
- Get useful information about the comparison performed (presentage & ...) 〽
- Get clear errors if there is one, with solution âš
-
Set
Content-Type
toapplication/json
in header if you want to post images by url -
If you have image urls For body we need a
sourceFace
andtargetFace
so it must look like this:{ "sourceFace": "https://amirshamsi.ir/u/86337623?v=4/amir-1.jpg", "targetFace": "https://amirshamsi.ir/u/86337623?v=4/amir-1.jpg" }
-
If you don't have image urls and you want to send images For body
sourceFace
andtargetFace
with typeFile
must be defined, like this: -
The response and result will looks like this
- Image must be under 5MB or you get a validation error from server this limitation is just for getting fast response for you; nothing more
-
- you can use LiipImagineBundle