6 顔比較クイックスタートガイド
Mercury Cloudの顔比較機能を素早く着手するためのガイドが提供されています。
6.1 準備
6.2 顔比較リクエスト送信
6.3 しきい値と精度
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}\compare_images.py "{image_path}\image1.jpg" "{image_path}\image2.jpg"Compare image: {image_path}\image1.jpg {image_path}\image2.jpg
https://mercury.japancv.co.jp/openapi/face/v1/aabbccdd-eeff-0011-2233-445566778899/detect
Http status code: 200
Similarity: 0.9915448
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
Detect face. rectangle: {'top': 637, 'left': 276, 'width': 844, 'height': 834} angle: {'yaw': 4.691873, 'pitch': 10.485169, 'roll': 1.0859865}
Predicted attributes:
Age: 28 ~ 38
Gender: MALE
Cap: HAT_STYLE_TYPE_NONE
Glasses: TRANSPARENT_GLASSES
Mask: COLOR_TYPE_NONE