mirror of
https://github.com/wassname/IndicoIo-python.git
synced 2026-07-08 00:11:02 +08:00
14 lines
335 B
Python
14 lines
335 B
Python
import json
|
|
|
|
import requests
|
|
import numpy as np
|
|
|
|
from IndicoIo import JSON_HEADERS
|
|
|
|
base_url = lambda c: "http://indico.io/api/features/%s" % c
|
|
|
|
def facial(face):
|
|
data_dict = json.dumps({"datums": face})
|
|
response = requests.post(base_url("facial"), data=data_dict, headers=JSON_HEADERS)
|
|
return json.loads(response.content)
|