-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.osx
executable file
·23 lines (17 loc) · 998 Bytes
/
README.osx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Mlface compares an image (containing a face) and compares it to a list of
known 'people' and returns the name of the person or 'None'.
mlface can be run as a Docker container or as a standalone, systemd managed
application. It listens on a websocket on port 4785. A base64 encoded jpg is sent to '/' path.
A json response is returned which contains the name if matched. A face enclosing
rectangle is returned, assume there is a face.
{'details': {'plug': 'face', 'name': 'face', 'reason': 'face',
'matrices': [{'x': 64, 'y': 333, 'width': 132, 'height': 265,
'tag': 'cecil', 'confidence': 1.0}],
'imgWidth': 640, 'imgHeight': 480, 'time': 0.041136}
}
Docker required the ccoupe:dlib image with requires the
$ docker build -t fcrecog-arm64 .
$ docker run -dp 4785:4785 -v /Volumes/Projects/known_faces:/known_faces --name=mlface fcrecog-arm64
known_faces/<name1>/<pic1>.jpg, known_faces/<name1>/<pic2>.jpg,,,
known_faces/<name2>/<pic1>.jpg,,,
known_faces/<name3>/<pic1>.jpg,,,