We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
main js code
import CameraPhoto, { FACING_MODES, IMAGE_TYPES } from 'jslib-html5-camera-photo' import * as faceapi from 'face-api.js' import weight from "../weights/face_landmark_68_model-shard1?url" let videoElement = document.getElementById('videoId') let imgElement = document.getElementById('imgId') let toggleVideoBtn = document.getElementById('toggleVideo') let takePictureBtn = document.getElementById('takePicture') console.log(weight) await faceapi.nets.faceLandmark68Net.loadFromUri(weight) // ... takePictureBtn.addEventListener('click', async () => { const config = {} let dataUri = cameraPhoto.getDataUri(config) imgElement.src = dataUri const result = await faceapi.detectSingleFace(imgElement).withFaceLandmarks().withFaceDescriptor() console.log(result.descriptor) })
then I got this error how do I fix it?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
main js code
then I got this error
how do I fix it?
The text was updated successfully, but these errors were encountered: