其他分享
首页 > 其他分享> > 纯js实现人脸识别眨眨眼张张嘴案例——index.html

纯js实现人脸识别眨眨眼张张嘴案例——index.html

作者:互联网

<!DOCTYPE html>
<html>
    <meta charset="GBK">
    <style>
        #container {
            position: relative;
        }

        #canvas {
            position: absolute;
            left: 0;
            top: 0;
        }
    </style>
    <script src="js/utils.js"></script>
    <script src="js/clmtrackr.js"></script>
    <script src="js/model_pca_20_svm.js"></script>
    <script src="js/numeric.js"></script>
    <script src="js/ccv.js"></script>
    <script src="js/jquery-1.8.3.js" type="text/javascript" charset="utf-8"></script>
    <div id="container">
        <video id="video" width="400" height="200" autoplay>
            您的浏览器不支持video标签
        </video>
        <canvas id="canvas" width="300" height="200"></canvas>
    </div>

    <button id="mouse">张嘴验证</button>
    <button id="head">摇头验证</button>
    <button id="eye">眨眼验证</button>

    <div id="tip" style="display: none;">
    </div>
    <input type="hidden" id="result" />
    <div id="msg" style="display: none;">
    </div>

    <div id="positions">
    </div>

    <script src="js/alive_face.js" type="text/javascript" charset="utf-8"></script>

</html>

标签:index,canvas,人脸识别,眨眼,验证,js,张嘴,position
来源: https://blog.51cto.com/u_12718584/2843826