justadudewhohacks/face-api.js
Auf GitHub ansehenSaving and Loading Descriptors for future use
Open
#231 geöffnet am 1. März 2019
enhancementgood first issuehelp wanted
Repository-Metriken
- Stars
- (15.839 Stars)
- PR-Merge-Metriken
- (Keine gemergten PRs in 30 T)
Beschreibung
With ref https://github.com/justadudewhohacks/face-api.js#face-recognition-by-matching-descriptors
I've managed to train the faces and and saving the dataset with JSON.stringify(labelledDescriptors) to a static JSON.
Is there a way to quickly load this dataset, or do I have to load the raw JSON and reinit the dataset with each new faceapi.LabeledFaceDescriptors(name, descriptors)?
Is there method such as
const labelledDescriptors = await faceapi.fetchDescriptors('/files/labeledDescriptors.json');
const faceMatcher = new faceapi.FaceMatcher(labelledDescriptors);
Pardon, if I didn't explain myself well. But the objective is to quickly loaded a saved labeledDescriptors for usage.