Closed afogel closed 3 years ago
Adding a while loop before drawing the landmarks to check if the data is empty or not might prevent the bug from occurring.
After some more experiments, I think the key attribute that causes this bug is faceLandmarks within props parameter in Pose.js. In order to successfully start the app, this attribute must not be empty. A few cases:
Thus, I guess faceLandmarks is the one that causes the error.
On booting up the app, if the camera does not have a person's image in the webcam image, the application will error out. We need to gracefully handle this case until a person's image is shown in the camera.