圖片或視頻人臉檢測的jQuery插件:jQuery Face Detection Plugin
這個jQuery/Zepto能夠檢測圖像,視頻和畫布的人臉,然后取得它們的坐標。
<script> $('#picture').faceDetection({ complete: function (faces) { console.log(faces); } }); </script>
返回找到的人臉組成的數組對象:
- x — Y coord of the face in the picture
- y — Y coord of the face in the picture
- width — Width of the face
- height — Height of the face
- positionX — X position relative to the document
- positionY — Y position relative to the document
- offsetX — X position relative to the offset parent
- offsetY — Y position relative to the offset parent
- scaleX — Ratio between original image width and displayed width
- scaleY — Ratio between original image height and displayed height
- confidence — Level of confidence </ul>
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!