LoginSignup
1
2

More than 5 years have passed since last update.

curlを使ってface++のREST API叩いて人物画像の類似度算出

Posted at

これを画像を変更して2回発行し、レスポンス中のface_idを記録。ファイルはローカルのものをアップロードしている。
curl -v -X POST "https://apius.faceplusplus.com/v2/detection/detect?api_secret=YOUR_API_SECRET&api_key=YOUR_API_KEY" -F 'img=@japanese_bijin.png'

上で得たface_idを2つ指定。
curl -v -X GET "https://apius.faceplusplus.com/v2/recognition/compare?api_secret=YOUR_API_SECRET&api_key=YOUR_API_KEY&face_id1=11a1e91ec584d76266d4e3905bad7847&face_id2=7d2e5d0dbafbc0fb557a99b23decde7d"

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2