example for face-api.js
this system detect your face and register your arrival at work.
const meLabeled = await loadLabeledFaceDescriptors("me", ['photos/me/1.png']);
This is a code loading your face.
If you have a lot of your face photos, you should put photos into the folder.
and change the code.
like this.
photos/me/hoge.png
photos/me/fuga.jpg
photos/me/piyo.jpg
const meLabeled = await loadLabeledFaceDescriptors("me", [
'photos/me/hoge.png',
'photos/me/fuga.jpg',
'photos/me/piyo.jpg',
]);
This is because a diligence and indolence system varies according to companies.
This is because my company OSS activity is bad when it comes out.
I am very sorry.
async function stampAttendance() {
const url = `your company api url?`;
const popup = window.open(url, "popup", "width=800,height=640");
setTimeout(() => popup.close(), 3000);
}
- run
npm install
- install live-server
- run live-server
tobe soon...
you must allow access the video