[英]How to use an image present in the same folder as script.js for face recognition using face-api.js?
The entire project environment is in replit.整个项目环境都在replit中。 The link provides the source code: https://replit.com/@dnabanita7/Face-Recog#script.js .
该链接提供了源代码: https://replit.com/@dnabanita7/Face-Recog#script.js 。 I am sending in the code:
我正在发送代码:
const imgUrl = '/leonard.png'
const img = await faceapi.fetchImage(imgUrl)
and passing img.src
value to the detectSingleFace()
function but I am getting an error:并将
img.src
值传递给detectSingleFace()
function 但出现错误:
string passed but couldn't resolve HTMLElement id
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.