mediapipe的face_mesh实现摄像头人脸识别跟踪效果代码
代码语言:html
所属分类:其他
代码描述:mediapipe的face_mesh实现摄像头人脸识别跟踪效果代码
代码标签: mediapipe face_mesh 摄像头 人脸 识别 跟踪 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <meta charset="utf-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/control_utils.css"> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/camera_utils.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/control_utils.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/drawing_utils.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/face_mesh.js"></script> <style> @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .abs { position: absolute; } a { color: white; text-decoration: none; } a:hover { color: lightblue; } body { bottom: 0; font-family: "Titillium Web", sans-serif; color: white; left: 0; margin: 0; position: absolute; right: 0; top: 0; transform-origin: 0px 0px; overflow: hidden; } .container { position: absolute; background-color: #596e73; width: 100%; max-height: 100%; } .input_video { display: none; position: absolute; top: 0; left: 0; right: 0; bottom: 0; } .input_video.selfie { transform: scale(-1, 1); } .input_image { position: absolute; } .canvas-container { display: flex; height: 100%; width: 100%; justify-content: center; align-items: center; } .........完整代码请登录后点击上方下载按钮下载查看
网友评论0