Skip to content

Commit

Permalink
Document algorithm container interface
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w committed Aug 8, 2018
1 parent f7690b0 commit bf390d2
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions algorithms/README.md
@@ -0,0 +1,33 @@
# Face vectorization algorithm container interface

This directory contains a number of face vectorization implementations, each
exposing a unified interface so that the algorithms can be used interchangeably
in the faceanalysis app and in evaluation scripts.

The algorithm container will be called like so:

```bash
docker run -v /path/to/images:/data the_algorithm_container /data/image1.jpg ... /data/imageN.jpg
```

The container is expected output the following JSON structure to stdout:

```json
{
"faceVectors": {
"/data/image1.jpg": [
[0, 1, 2, 3], // face vector for the first person in the first image
// ...
[4, 5, 6, 7] // face vector for the last person in the first image
],
//
// ...
//
"/data/imageN.jpg": [
[3, 2, 1, 0], // face vector for the first person in the Nth image
// ...
[7, 6, 5, 4] // face vector for the last person in the Nth image
]
}
}
```

0 comments on commit bf390d2

Please sign in to comment.