You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, FaceMatcher requires an initial set of labeled descriptors when it is created. However, it would be more flexible if we could create an empty FaceMatcher instance (without any labeled descriptors) and later add labeled descriptors dynamically using a method like addLabeledDescriptors.
I propose the following two changes:
Support for Empty Initialization: Allow new faceapi.FaceMatcher() to be called without any initial labeled descriptors. This would enable users to instantiate a FaceMatcher without needing to provide labels upfront.
addLabeledDescriptors Method: Add a method that allows new labeled descriptors to be appended to an existing FaceMatcher instance after it has been initialized, enabling the dynamic addition of labels.
// Create an empty FaceMatcher instanceconstfaceMatcher=newfaceapi.FaceMatcher();// Add labeled descriptors dynamicallyfaceMatcher.addLabeledDescriptors('newPerson',newFaceDescriptor);
The text was updated successfully, but these errors were encountered:
Currently, FaceMatcher requires an initial set of labeled descriptors when it is created. However, it would be more flexible if we could create an empty FaceMatcher instance (without any labeled descriptors) and later add labeled descriptors dynamically using a method like addLabeledDescriptors.
I propose the following two changes:
Support for Empty Initialization: Allow new faceapi.FaceMatcher() to be called without any initial labeled descriptors. This would enable users to instantiate a FaceMatcher without needing to provide labels upfront.
addLabeledDescriptors Method: Add a method that allows new labeled descriptors to be appended to an existing FaceMatcher instance after it has been initialized, enabling the dynamic addition of labels.
The text was updated successfully, but these errors were encountered: