SthPhoenix / InsightFace-REST

InsightFace REST API for easy deployment of face recognition services with TensorRT in Docker.
Apache License 2.0
503 stars 117 forks source link

人脸检测、对齐、识别 #96

Closed leruge closed 2 years ago

leruge commented 2 years ago

restapi中没有直接提供检测、对齐和识别的三个接口吗?我应该这么实现这些接口?

SthPhoenix commented 2 years ago

I'm not sure I understand you correctly.

You can use rest API to run:

  1. Detection only
  2. Embedding previously cropped faces
  3. Returning aligned faces

It all works out of the box without modifying anything, you should just adjust request parameters to fit your use case.

leruge commented 2 years ago

人脸识别如何实现呢? recognition

SthPhoenix commented 2 years ago

This API is intended for detection of faces and extraction of face embeddings, which can be further used for recognition. Recognition must be implemented on you side, you can look at FAISS or Milvus for indexing and searching embeddings, or just compare embeddings using cosine similarity or inner product.

leruge commented 2 years ago

谢谢,明白了,那我试着实现一下。