/202107-face-detector

Primary LanguageJavaScriptMIT LicenseMIT

202107-face-detector

InsightFaceを使った顔検出サーバの実装例です。 詳しくは以下の記事をご覧ください。

実行手順

実行手順は以下の通りです。

docker-compose build
docker-compose up -d

curl -X POST \
  --header "Content-Type: multipart/form-data" \
  --form "file=@pakutaso_43730.jpg;type=image/jpeg" \
  http://localhost:8000/detect

curl -X POST \
  --header "Content-Type: multipart/form-data" \
  --form "file=@pakutaso_43730.npy;type=application/octet-stream" \
  http://localhost:8000/detect

curl -X POST \
  --header "Content-Type: application/json" \
  --data-binary @embeddings.json \
  http://localhost:8000/compare

open http://localhost:8001/

動作確認用の画像ファイル

動作確認用の画像ファイルは「ぱくたそ」からダウンロードしました。