You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+[Recognition and verification using embedding](#recognition-and-verification-using-embedding)
26
27
27
28
To know more about face services and face plugins visit [this page](Face-services-and-plugins.md).
28
29
@@ -833,33 +834,35 @@ curl -X POST "http://localhost:8000/api/v1/verification/verify?limit=<limit>&pre
833
834
834
835
835
836
836
-
## Embedding Support
837
+
## Recognition and verification using embedding
837
838
`since 1.2.0 version`
838
839
839
-
If you already have a computed embedding, you can use it to perform recognition and verification.
840
+
You can use computed embedding to perform recognition and verification. To obtain embedding, you can
841
+
use [calculator plugin](https://github.com/exadel-inc/CompreFace/blob/EFRS-1333_ability_to_send_embeddings_instead_of_the_image_for_recognition/docs/Face-services-and-plugins.md#face-plugins)
842
+
in each Face service.
840
843
The base rule is to use `Content-Type: application/json` header and send JSON in the body.
841
844
842
-
### Embedding Recognition Service
843
-
The service is used to determine similarities between input embeddings and embeddings within the database. An example:
845
+
### Recognize Faces from a Given Image, Embedding
846
+
The service is used to determine similarities between input embeddings and embeddings within the Face Collection. An example:
844
847
845
848
```shell
846
849
curl -X POST "http://localhost:8000/api/v1/recognition/embeddings/recognize?prediction_count=<prediction_count>" \
847
850
-H "Content-Type: application/json" \
848
851
-H "x-api-key: <service_api_key>" \
849
-
-d {"embeddings": "<array_of_embeddings>"}
852
+
-d {"embeddings": [[<array_of_embedding>], ...]}
850
853
```
851
854
852
855
| Element | Description | Type | Required | Notes |
| x-api-key | header | string | required | an api key of the Embedding recognition service, created by the user |
856
-
| embeddings | body | array | required | an input embeddings. The length must be 512 for each of them |
858
+
| x-api-key | header | string | required | an api key of the Face recognition service, created by the user|
859
+
| embeddings | body | array | required | an input embeddings. The length depends on the model (e.g. 512 or 128)|
857
860
| prediction_count | param | integer | optional | the maximum number of subject predictions per embedding. It returns the most similar subjects. Default value: 1 |
Copy file name to clipboardExpand all lines: java/api/src/test/java/com/exadel/frs/core/trainservice/service/EmbeddingsRecognizeProcessServiceImplTest.java
0 commit comments