Excerpt from
https://pastebin.com/KSfJrdWR
https://www.reddit.com/r/coolgithubprojects/comments/n6zek1/compreface_version_05_is_live_heres_whats_new/gxf6uq9?utm_source=share&utm_medium=web2x&context=3
To try it out you need to create a detection service and replace the API key. It will work out of the box, just open it in a browser.
Please send subject as query param: "http://localhost:8000/api/v1/recognition/faces/?subject=" + name
x-api-key should be in header:
headers: {
"x-api-key": "f5e06ab3-ef59-495e-9731-82cd52f28aa1"
}
Do not forget:
processData: false,
contentType: false
Other examples that could be useful: Our JS SDK webcam demo: https://github.com/exadel-inc/compreface-javascript-sdk/tree/sdk-0.5.1/webcam_demo A third-party project that uses CompreFace: https://github.com/jakowenko/double-take/blob/eeb34c6008b38aa5bb347d3940a9ffa84052b915/api/src/util/detectors/compreface.js