call the API with image and tag, system will find face and associate with tag you have given.
Call the API with image,system will try to find face and look for simillar face in already stored faces,will return with tag.
GET https://hms.devanshu.xyz/faceai/api/add.php?key={YOUR_API_KEY}&img={URL_IMAGE}
Responses-
SUCCESS:
{"status":"ok","path":"images\/pathtoimage.jpg"}
Errors:
{"status":"error","msg":"image not found"}
{"status":"error","msg":"face not found"}
{"status":"error","msg":"authentication failed"}
{"status":"error","msg":"Key not found"}
{"status":"error","msg":"Your qouta exhausted"}
GET https://hms.devanshu.xyz/faceai/api/find.php?key={YOUR_API_KEY}&img={URL_IMAGE}
Responses-
SUCCESS:
{"status":"ok","msg":"found","accuracy":"100","tag":"YOUR_SUBMITTED_TAG","path":"images\/pathtoimage.jpg"}
Errors:
{"status":"error","msg":"image not found"}
{"status":"error","msg":"face not found"}
{"status":"error","msg":"authentication failed"}
{"status":"error","msg":"Key not found"}
{"status":"error","msg":"Your qouta exhausted"}