FaceAPI help you to create awesome things

V 1.16 Stable

Face detection

with gender & age estimation

Click to choose a file to upload :)

Face recognition

also known as face matches, detect if person of photo 1 (reference photo, must contain only the person's face -one face-) presents in photo 2 (query photo, not neccessary to be only one face)

Photo 1

Click to choose a file to upload :)

Photo 2

Click to choose a file to upload :)

API Usage:

1- Face detection: upload & get results in one request: perform POST request to https://faceapi.hirak.site/?photo=YOUR-BASE64-PHOTO&token=YOUR-TOKEN, you will get result like this:

[
  {
    "detection": {
      "_imageDims": {
        "_width": 1962,
        "_height": 2800
      },
      "_score": 0.9926775097846985,
      "_classScore": 0.9926775097846985,
      "_className": "",
      "_box": {
        "_x": 473.2473533864141,
        "_y": 888.0765676498413,
        "_width": 522.395622572195,
        "_height": 629.5653104782104
      }
    },
    "gender": "male",
    "genderProbability": 0.8355745077133179,
    "age": 22.40056800842285
  }
]

2- Face recognition: upload & get results in one request: perform POST request to https://faceapi.hirak.site/?photo=REFERENCE-PHOTO-BASE-64-ENCODED&photo2=QUERY-PHOTO-BASE-64-ENCODED&token=YOUR-TOKEN, we have to compare query image with reference image, no person name is required, you will get result like this -on success-:

{"_label":"person 1","_distance":0.5313379513453699}

or -on failure-:

{"_label":"unknown","_distance":0.755621314654567}

How to encode & send POST request in php?

    
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL,'https://faceapi.hirak.site/');
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, 'photo='.base64_encode(file_get_contents('path/to/image/img.jpg')));
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    $server_output = curl_exec($ch);
    curl_close($ch);

Usage & statistics: from your browser go to: https://faceapi.hirak.site/stat/?token=YOUR-TOKEN

Please note requests without token stop on 10 requests

Our plans:

We've awesome various plans with instant access, no sign up required, choose the sweetable plan that satisfy your needs, moneyback garanteed

Trial

10

req/month

FREE

Basic

225K

req/month

1$

Mega

500K

req/month

2$

Yota

1M

req/month

5$

Did you do your first call? Or still looking for help or already did but have problems email us on: contact@hirak.site