{"info":{"_postman_id":"68d26570-451a-4afd-77c8-e955776bdc4b","name":"FaceX","description":"<html><head></head><body><p><b>Overview</b><br>\nWelcome to the FaceX API Documentation v1.0.</p>\n<p>If you’re new to FaceX, create a free account and follow this guide to get started.</p>\n<p>The FaceX API is built on REST principles. Authenticated users can interact with any of our URIs by using the specified HTTP request method. We recommend and also enforces our users to use SSL encryption by issuing requests through HTTPS. Our global endpoint for all APIs:</p>\n<p><em><a href=\"http://106.51.58.118:5000\">http://106.51.58.118:5000</a></em><br>\n<b>FaceX do provide  to help it’s customer meeting the local legal and compliance.</b><br><br>\n<b>Prerequisites</b><br>\nWhile we have PHP, NodeJS, Python, Java, C#, Perl and Ruby Sample Codes for our APIs, but it is always good to test the API before going into integration with your application. For testing, we recommend using cURL.</p>\n<p>Note:Curl comes standard on Mac operating systems. On other OS, you might have to install the same.</p>\n<p>Before you can start using the API, you need to do the following:</p>\n<ol>\n<li>Create a FaceX Account.</li>\n<li>Configure your APIs to access the User ID and User Key.</li>\n<li>You will be unable to make requests if your account is deactivated or has reached the API Call limit.\n<br><br></li>\n</ol>\n<p>With FaceX API's you can now add Face Recognition capabilities to your App using our simple API Calls. Our services are implemented through state of the art Deep learning techniques trained over millions of images to offer you the Highest Accuracy with the quickest turn-around time. Our services are perfect fit for you if you plan to have Face ID, Gender and Age Detection or even for face transformations (Masking/Swapping etc).</p>\n<p>All our services are currently hosted under our own secure cloud, processing with the latest rack of GeForce GPUs, promising you a result within 0.02sec and an up-time of 99.99%.</p>\n<p>The three APIs that we currently support are:</p>\n<ol>\n<li><p>get_image_attr : For detecting faces , gender detection , age range prediction and facial landmark</p>\n</li>\n<li><p>compare_faces  : For comaparing two faces to check if it belongs to the same person</p>\n</li>\n<li><p>get_face_vec   :  Get 128 dimensional feature vector describing a face for recognition and identification purpose.</p>\n</li>\n</ol>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"5211511","collectionId":"68d26570-451a-4afd-77c8-e955776bdc4b","publishedId":"RWaDYCUN","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2018-09-04T13:44:23.000Z"},"item":[{"name":" Endpoint: 106.51.58.118:5000/get_image_attr","id":"009ef004-5b5b-a72f-d476-6dbc168d589f","request":{"method":"POST","header":[{"key":"user_id","value":"c884995e2ffdc8467558","description":"<p>User Id</p>\n"},{"key":"user_key","value":"98e739ec2c949fd43085","description":"<p>User Password</p>\n"}],"body":{"mode":"formdata","formdata":[{"key":"image_attr","value":"","description":"<p>multipart/base64 encoded image or remote url of image</p>\n","type":"text"}]},"url":"http://106.51.58.118:5000/get_image_attr?face_det=0&bboxes=120,150,200,250","description":"<p><b>Get Image Attributes<b></b></b></p>\n<ol>\n<li><p>Use facial attributes api to detect faces, facial landmark, gender and age.</p>\n</li>\n<li><p>In example request code generated by postman the payload should be changed as:\n<br /></p><pre>payload = {\"image_attr\":\"multipart/base64 encoded image or remote url of image\"}</pre><p></p>\n</li>\n<li><p>We recommend an image resolution no higher than 1024x, since it could slow down the request process. Supported image formats are JPEG/PNG format.</p>\n</li>\n</ol>\n","urlObject":{"protocol":"http","port":"5000","path":["get_image_attr"],"host":["106","51","58","118"],"query":[{"description":{"content":"<p>For enabling face detection set value as 1 else 0</p>\n","type":"text/plain"},"key":"face_det","value":"0"},{"description":{"content":"<p><i>This parameter is optional.</i> <br />If bounding box coordinates  are available set 'face_det' to '0' and set values for key 'bboxes' in  format x1,y1,x2,y2  .\n'bboxes' values should be passed as string seperated by '&amp;' \nex:\"120,150,200,250&amp;130,180,240,300\" or for just one face pass as \"120,150,200,250\"</p>\n","type":"text/plain"},"key":"bboxes","value":"120,150,200,250"}],"variable":[]}},"response":[{"id":"f2a49afb-28a8-fa49-2403-577b97c5340e","name":"106.51.58.118:5000/get_image_attr","originalRequest":{"method":"POST","header":[{"key":"user_id","value":"c884995e2ffdc8467558","description":"User Id","warning":""},{"key":"user_key","value":"98e739ec2c949fd43085","description":"User Password","warning":""}],"body":{"mode":"formdata","formdata":[{"key":"image_attr","value":"","description":"Image should be  uploaded  from local system or  an URL of image can be passed ","type":"file"}]},"url":{"raw":"http://106.51.58.118:5000/get_image_attr?bboxes=286,118,403,246&face_det=0","protocol":"http","host":["106","51","58","118"],"port":"5000","path":["get_image_attr"],"query":[{"key":"bboxes","value":"286,118,403,246","description":"If bounding box coordinates  is available set 'face_det' to '0' and set values for key 'bboxes' in  format (x1,y1,x2,y2) .'bbosex'should be passed as string seperated by '&'ex:\"120,150,200,250&130,180,240,300\" or for just one face pass as \"120,150,200,250\""},{"key":"face_det","value":"0","description":"For face detection in image pass the single parameter 'face_det' as 1 or pass it as 0 with other parameters"}]}},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"name":"content-length","key":"content-length","value":"3342","description":""},{"name":"content-type","key":"content-type","value":"text/html; charset=utf-8","description":""},{"name":"date","key":"date","value":"Tue, 04 Sep 2018 12:50:12 GMT","description":""},{"name":"server","key":"server","value":"Werkzeug/0.14.1 Python/2.7.12","description":""}],"cookie":[],"responseTime":"1154","body":"{\n    \"face_id_0\": {\n        \"age\": \"20-40\", \n        \"face_rectangle\": [\n            116, \n            69, \n            245, \n            262\n        ], \n        \"gender\": \"female\", \n        \"gender_confidence\": \"0.9999\", \n        \"landmarks\": {\n            \"faceLandMark\": {\n                \"eyeLeftBottom\": {\n                    \"x\": 138, \n                    \"y\": 148\n                }, \n                \"eyeLeftInner\": {\n                    \"x\": 146, \n                    \"y\": 148\n                }, \n                \"eyeLeftOuter\": {\n                    \"x\": 138, \n                    \"y\": 139\n                }, \n                \"eyeLeftTop\": {\n                    \"x\": 155, \n                    \"y\": 146\n                }, \n                \"eyeLeftupTop\": {\n                    \"x\": 147, \n                    \"y\": 138\n                }, \n                \"eyeRightBottom\": {\n                    \"x\": 143, \n                    \"y\": 211\n                }, \n                \"eyeRightInner\": {\n                    \"x\": 198, \n                    \"y\": 136\n                }, \n                \"eyeRightOuter\": {\n                    \"x\": 208, \n                    \"y\": 146\n                }, \n                \"eyeRightTop\": {\n                    \"x\": 207, \n                    \"y\": 137\n                }, \n                \"eyeRightupTop\": {\n                    \"x\": 216, \n                    \"y\": 142\n                }, \n                \"eyebrowLeftInner\": {\n                    \"x\": 178, \n                    \"y\": 126\n                }, \n                \"eyebrowLeftOuter\": {\n                    \"x\": 127, \n                    \"y\": 122\n                }, \n                \"eyebrowRightInner\": {\n                    \"x\": 192, \n                    \"y\": 120\n                }, \n                \"eyebrowRightOuter\": {\n                    \"x\": 166, \n                    \"y\": 139\n                }, \n                \"mouthLeft\": {\n                    \"x\": 150, \n                    \"y\": 204\n                }, \n                \"mouthRight\": {\n                    \"x\": 182, \n                    \"y\": 218\n                }, \n                \"noseLeft2Top\": {\n                    \"x\": 161, \n                    \"y\": 162\n                }, \n                \"noseLineLower\": {\n                    \"x\": 153, \n                    \"y\": 186\n                }, \n                \"noseLineUpper\": {\n                    \"x\": 164, \n                    \"y\": 187\n                }, \n                \"noseRight2Top\": {\n                    \"x\": 158, \n                    \"y\": 173\n                }, \n                \"noseRootLeft\": {\n                    \"x\": 157, \n                    \"y\": 188\n                }, \n                \"noseRootRight\": {\n                    \"x\": 131, \n                    \"y\": 145\n                }, \n                \"noseTip\": {\n                    \"x\": 169, \n                    \"y\": 187\n                }, \n                \"underLipBottom\": {\n                    \"x\": 158, \n                    \"y\": 222\n                }, \n                \"upperLipBottom\": {\n                    \"x\": 171, \n                    \"y\": 210\n                }, \n                \"upperLipTop\": {\n                    \"x\": 158, \n                    \"y\": 210\n                }\n            }\n        }\n    }, \n    \"image_size\": [\n        400, \n        568\n    ]\n}"}],"_postman_id":"009ef004-5b5b-a72f-d476-6dbc168d589f"},{"name":"Endpoint: 106.51.58.118:5000/compare_faces","id":"49003cb5-55d7-d363-bb64-d202fd8d9cd7","request":{"method":"POST","header":[{"key":"user_id","value":"c884995e2ffdc8467558","description":"<p>User Id</p>\n"},{"key":"user_key","value":"98e739ec2c949fd43085","description":"<p>User Password</p>\n"}],"body":{"mode":"formdata","formdata":[{"key":"img_1","value":null,"description":"<p>multipart/base64 encoded image or remote url of image</p>\n","type":"file"},{"key":"img_2","value":null,"description":"<p>multipart/base64 encoded image or remote url of image</p>\n","type":"file"}]},"url":"http://106.51.58.118:5000/compare_faces?face_det=0&bboxes=120,150,200,250","description":"<p><b>Compare if two faces belong to same person and gives confidence score</b></p>\n<ol>\n<li><p>Returns a confidence value which is greater than 0.4 then it is a match</p>\n</li>\n<li><p>For better results,face standard such as 90 pixels from eye to eye is required.</p>\n</li>\n<li><p>In example request code generated by postman the payload should be changed as:</p>\n<pre>payload = {\"img_1\":\"multipart/base64 encoded image or remote url of image\",\"img_2\":\"multipart/base64 encoded image or remote url of image\"}</pre>\n</li>\n<li><p>We recommend an image resolution no higher than 1024x1024, as it could slow down the request process. Supported image formats are JPEG/PNG format.</p>\n</li>\n</ol>\n","urlObject":{"protocol":"http","port":"5000","path":["compare_faces"],"host":["106","51","58","118"],"query":[{"description":{"content":"<p>For enabling face detection set value as 1 else 0</p>\n","type":"text/plain"},"key":"face_det","value":"0"},{"description":{"content":"<p><i>This parameter is optional.</i> <br />If bounding box coordinates  are available set 'face_det' to '0' and set values for key 'bboxes' in  format x1,y1,x2,y2  .\n'bboxes' values should be passed as string seperated by '&amp;' \nex:\"120,150,200,250&amp;130,180,240,300\" or for just one face pass as \"120,150,200,250\"</p>\n","type":"text/plain"},"key":"bboxes","value":"120,150,200,250"}],"variable":[]}},"response":[{"id":"0a9dfd8d-e0b9-179b-e9ef-c60fb9404fc0","name":"Endpoint:106.51.58.118:5000/compare_faces","originalRequest":{"method":"POST","header":[{"key":"user_id","value":"c884995e2ffdc8467558","description":"User Id"},{"key":"user_key","value":"98e739ec2c949fd43085","description":"User Password"}],"body":{"mode":"formdata","formdata":[{"key":"img_1","value":"https://cdn.dnaindia.com/sites/default/files/styles/full/public/2018/03/08/658858-577200-katrina-kaif-052217.jpg","description":"multipart/base64 encoded image or remote url of image","type":"text"},{"key":"img_2","value":"https://cdn.somethinghaute.com/wp-content/uploads/2018/07/katrina-kaif.jpg","description":"multipart/base64 encoded image or remote url of image","type":"text"}]},"url":{"raw":"http://106.51.58.118:5000/compare_faces?face_det=1","protocol":"http","host":["106","51","58","118"],"port":"5000","path":["compare_faces"],"query":[{"key":"face_det","value":"1","description":"For enabling face detection set value as 1 else 0"},{"key":"bboxes","value":null,"description":"If bounding box coordinates  are available set 'face_det' to '0' and set values for key 'bboxes' in  format x1,y1,x2,y2  .\n'bboxes' values should be passed as string seperated by '&' \nex:\"120,150,200,250&130,180,240,300\" or for just one face pass as \"120,150,200,250\"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"name":"content-length","key":"content-length","value":"34","description":""},{"name":"content-type","key":"content-type","value":"text/html; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 05 Sep 2018 07:42:55 GMT","description":""},{"name":"server","key":"server","value":"Werkzeug/0.14.1 Python/2.7.12","description":""}],"cookie":[],"responseTime":"4325","body":"{\"confidence\": 0.5609326898262272}"}],"_postman_id":"49003cb5-55d7-d363-bb64-d202fd8d9cd7"},{"name":"Endpoint: 106.51.58.118:5000/get_face_vec","id":"0cf820a8-bbfa-f830-ea42-a086676e5196","request":{"method":"POST","header":[{"key":"user_id","value":"c884995e2ffdc8467558","description":"<p>Uer Id</p>\n"},{"key":"user_key","value":"98e739ec2c949fd43085","description":"<p>User Password</p>\n"}],"body":{"mode":"formdata","formdata":[{"key":"img","value":null,"description":"<p>multipart/base64 encoded image or remote url of image</p>\n","type":"file"}]},"url":"http://106.51.58.118:5000/get_face_vec?face_det=0&bboxes=130,180,240,300","description":"<p><b>Get 128-D feature vector extracted from the face.</b></p>\n<ol>\n<li><p>Upload a image containing face</p>\n</li>\n<li><p>Feature vector of one person can be compared with feature vector of another person using euclidean distance:If F1 and F2 are feature vector corresponding to two faces then:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>     if euclidean(F1,F2)&gt;Threshold(=0.6):\n            Same Person\n   \n</code></pre></li>\n<li><p>Example:</p>\n</li>\n</ol>\n<p>  Feature vector = [-0.133286, 0.0671902, 0.0648706, ............., -0.0325235, -0.0260845, 0.0237684, -0.0272609, -0.106857]</p>\n<ol>\n<li>In example request code generated by postman the payload should be changed as:<br /><pre>payload = {\"img\":\"multipart/base64 encoded image or remote url of image\"}</pre></li>\n<li>We recommend an image resolution no higher than 1024x, since it could slow down the request process. Supported image formats are JPEG/PNG format.</li>\n</ol>\n","urlObject":{"protocol":"http","port":"5000","path":["get_face_vec"],"host":["106","51","58","118"],"query":[{"description":{"content":"<p>For enabling face detection set value as 1 else 0</p>\n","type":"text/plain"},"key":"face_det","value":"0"},{"description":{"content":"<p><i>This parameter is optional.</i> <br /> If bounding box coordinates  are available set 'face_det' to '0' and set values for key 'bboxes' in  format x1,y1,x2,y2  .\n'bboxes' values should be passed as string seperated by '&amp;' \nex:\"120,150,200,250&amp;130,180,240,300\" or for just one face pass as \"120,150,200,250\"</p>\n","type":"text/plain"},"key":"bboxes","value":"130,180,240,300"}],"variable":[]}},"response":[{"id":"b556f2b6-c60f-f26b-cabb-f45a823c1817","name":"get_face_vec1","originalRequest":{"method":"POST","header":[{"key":"user_id","value":"c884995e2ffdc8467558"},{"key":"user_key","value":"98e739ec2c949fd43085"}],"body":{"mode":"formdata","formdata":[{"key":"img","value":"https://130513-375933-1-raikfcquaxqncofqfm.stackpathdns.com/wp-content/uploads/2014/05/Katrina-Kaif.jpg","type":"text"}]},"url":{"raw":"http://106.51.58.118:5000/get_face_vec?face_det=1&bboxes=286,118,403,246","protocol":"http","host":["106","51","58","118"],"port":"5000","path":["get_face_vec"],"query":[{"key":"face_det","value":"1","description":"For face detection in image pass the single parameter 'face_det' as 1 or pass it as 0 with other parameters"},{"key":"bboxes","value":"286,118,403,246"}]}},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"name":"content-length","key":"content-length","value":"1413","description":""},{"name":"content-type","key":"content-type","value":"text/html; charset=utf-8","description":""},{"name":"date","key":"date","value":"Tue, 04 Sep 2018 14:04:33 GMT","description":""},{"name":"server","key":"server","value":"Werkzeug/0.14.1 Python/2.7.12","description":""}],"cookie":[],"responseTime":"7279","body":"{\"vector\": \"-0.174513\\n0.0357576\\n0.0891633\\n-0.0748391\\n-0.161052\\n-0.0602352\\n-0.0806279\\n-0.127835\\n0.125941\\n-0.205093\\n0.109022\\n-0.0732647\\n-0.214782\\n0.101616\\n-0.0200924\\n0.126297\\n-0.125674\\n-0.163655\\n-0.152444\\n-0.116488\\n-0.0263221\\n-0.0118199\\n-0.0426951\\n0.146987\\n-0.125166\\n-0.32288\\n-0.0251308\\n-0.0358518\\n0.0210131\\n-0.0233405\\n-0.0196493\\n0.0294269\\n-0.249876\\n0.00264139\\n-0.0349266\\n0.133204\\n0.0289106\\n-0.101061\\n0.137762\\n-0.0649429\\n-0.240021\\n0.016656\\n0.114967\\n0.153935\\n0.20963\\n-0.0149997\\n0.0585026\\n-0.105278\\n0.160031\\n-0.301569\\n0.0577458\\n0.142034\\n0.00111633\\n0.0413167\\n0.151803\\n-0.183833\\n0.0144786\\n0.0904306\\n-0.131528\\n0.0820299\\n0.0617647\\n0.062419\\n-0.0366517\\n-0.0843282\\n0.228567\\n0.155405\\n-0.100562\\n-0.19019\\n0.214124\\n-0.243674\\n-0.0478682\\n0.106143\\n-0.0809492\\n-0.170788\\n-0.283864\\n0.0741872\\n0.389058\\n0.19237\\n-0.147062\\n0.105774\\n-0.0411562\\n-0.0826391\\n0.0546675\\n0.11745\\n-0.00986597\\n0.0072577\\n-0.0443459\\n0.114112\\n0.255375\\n0.079754\\n0.00835838\\n0.256425\\n0.0579418\\n-0.0912291\\n0.0277006\\n0.142228\\n-0.196162\\n-0.0577926\\n-0.18887\\n-0.0225385\\n0.111869\\n0.0540544\\n-0.0170697\\n0.119963\\n-0.161132\\n0.158443\\n-0.130056\\n-0.0511425\\n-0.0413769\\n0.0282652\\n-0.0806215\\n-0.0131257\\n0.120253\\n-0.204257\\n0.139534\\n0.10019\\n0.0277301\\n0.0945722\\n0.0449696\\n0.0370128\\n0.105227\\n0.023733\\n-0.134659\\n-0.122173\\n0.0242016\\n-0.107939\\n0.00717491\\n0.0764562\"}"}],"_postman_id":"0cf820a8-bbfa-f830-ea42-a086676e5196"}]}