I am getting desperate about this topic. Unfortunately I am a beginner with Javascript, but my goal is to convert a Python script I have into a working web application, which should detect a face and draw points for 68 facial landmarks.
The crux is that opencv 4.8.0 does not work properly.
Its hard for me to find information about it (help is welcome) but i try to run the following in my javascript:
// Load the face landmark detector model
const landmarkDetector = new cv.FacemarkLBF();
landmarkDetector.loadModel("lbfmodel.yaml");
I get the following error:
‘TypeError: cv.FacemarkLBF is not a constructor’.
Thank you for your answer!
Unfortunately I was sensing something like this already. Do you maybe have some resource on how you would add the modules manually? or do you think there will be an official release containing it soon?
As for my actual goal: I want to build a webssite that uses the client webcam to track a human face and detect facial landmarks, so I can later implement smile and/or blink detection. It is inspired by this program: https://tastenkunst.github.io/brfv5-browser/
and to archieve that I only wanted to uses openCV without additional dependencies.
it hasnt changed in the last 2 or so years, also it’s already ‘fat enough’, no ? i guess, devs are pretty reluctant to add more,
or even, for ‘face’ making the contrib modules mandatory
shame, example browser not working here…
and the most interesting code parts are probably hidden here: