5 顔検知クイックスタートガイド
Mercury Cloudの顔検出機能を素早く着手するためのガイドが提供されています。
5.1 準備
5.2 顔検知リクエスト送信
表:属性
Last updated
Was this helpful?
Mercury Cloudの顔検出機能を素早く着手するためのガイドが提供されています。
Last updated
Was this helpful?
Was this helpful?
# Common parameters. Used for all API calls.
# Base URL for Mercury Open API.
api_url = "https://mercury.japancv.co.jp/openapi/face/v1"
# Provision App Id for API calls.
app_id = "aabbccdd-eeff-0011-2233-445566778899"
# Provision access key to authentication.
access_key = '00112233-4455-6677-8899-aabbccddeeff'
# Provision secret key to authentication.
secret_key = '13579acegijmoqsuwyACEGIJMOPSUWY'python {python_path}\detect_faces.py "{image_path}\image.jpg"Detect image: {image_path}\image.jpg
Http status code: 200
Detect face. rectangle: {'top': 625, 'left': 350, 'width': 793, 'height': 818} angle: {'yaw': -0.42474133, 'pitch': 9.596367, 'roll': 0.07245465}
Predicted attributes:
Age: 29 ~ 39
Gender: MALE
Cap: HAT_STYLE_TYPE_NONE
Glasses: TRANSPARENT_GLASSES
Mask: COLOR_TYPE_NONE