jQuery image face recognition code
js代码
<script src="js/jquery-3.1.1.min.js"></script> <script src="js/jquery.facedetection.js"></script> <script> /* global $ */ $(function () { "use strict"; $('#try-it').click(function (e) { e.preventDefault(); $('.face').remove(); $('#picture').faceDetection({ complete: function (faces) { for (var i = 0; i < faces.length; i++) { $('<div>', { 'class':'face', 'css': { 'position': 'absolute', 'left': faces[i].x * faces[i].scaleX + 'px', 'top': faces[i].y * faces[i].scaleY + 'px', 'width': faces[i].width * faces[i].scaleX + 'px', 'height': faces[i].height * faces[i].scaleY + 'px' } }) .insertAfter(this); } }, error:function (code, message) { alert('Error: ' + message); } }); }); }); </script>
All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn
Related Article
12 Apr 2023
This article is reprinted from the WeChat public account "Living in the Information Age". The author lives in the information age. To reprint this article, please contact the Living in the Information Age public account. For image recognition, the most popular application area is face recognition. It is the large-scale application of facial recognition technology that gives our country's Sky Eye Project and Xueliang Project, which are spread in every corner, a greater application space, and also makes our country safer. Next, let’s take a look at the development history of face recognition applications. September 2017. Apple held its autumn conference and launched the iPhone Face recognition is essentially a type of image recognition
16 May 2016
This article mainly introduces jQuery to implement image carousel effects. The image carousel effect is particularly suitable for product display. Interested friends can refer to it.
16 May 2016
This article mainly introduces the jquery code to implement horizontal image carousel special effects. The effect is very exquisite and the implementation method is very simple. I recommend it to everyone. I hope you will like it.
01 Mar 2017
WeChat public platform messaging interface develops image recognition and face recognition
05 Jul 2023
UniApp Integration and Usage Guide for Image Recognition and Face Recognition Summary: This article introduces how to use UniApp to integrate image recognition and face recognition functions, and provides relevant code examples to help developers quickly implement these functions. 1. Introduction With the continuous development of artificial intelligence, image recognition and face recognition have become important functions in modern applications. In order to meet user needs, we need to integrate these functions in UniApp. This article will lead readers step by step through the integration and use of image recognition and face recognition.
04 Jul 2023
Face recognition and image recognition technology in PHP and mini programs With the development and popularization of artificial intelligence technology, face recognition and image recognition have penetrated into every aspect of our daily lives. As a server scripting language widely used in web development, PHP, combined with mobile applications of small programs, provides convenience and flexibility for the implementation of face recognition and image recognition technology. This article will introduce how to use face recognition and image recognition technology in PHP and mini program development platforms, and provide corresponding code examples. Implementing face recognition technology using PHP
15 Jun 2023
With the continuous development and popularization of artificial intelligence technology, face recognition and image recognition have become popular research and application directions. In the field of JavaScript, we can also use some open source libraries and APIs to implement face recognition and image recognition application scenarios. Let's take a look at their specific applications. 1. Application scenarios of face recognition. Face recognition login. The traditional login method of account and password has become increasingly difficult to meet people's needs. It is not only easy to be cracked, but also requires users to remember their account and password. And through facial recognition technology,
20 Jan 2017
This article mainly introduces the function of jQuery to realize the long press recognition of QR codes on WeChat. It is very good and has reference value. Friends who are interested in the relevant knowledge of jquery long press recognition of QR codes should learn together.
11 May 2023
As a widely used programming language, PHP can not only realize conventional back-end development functions, but also use its rich image processing library and face recognition library to realize many functions. This article will introduce face recognition and image processing technologies commonly used in PHP. 1. Face recognition technology OpenCV OpenCV is a classic open source computer vision library. It not only includes many image processing and machine learning algorithms, but also supports multiple programming language interfaces, including PHP. The face recognition function in OpenCV can recognize pictures
Hot Tools
jQuery2019 Valentine's Day Confession Fireworks Animation Special Effects
A very popular jQuery Valentine's Day confession fireworks animation special effect on Douyin, suitable for programmers and technical geeks to express their love to the girl they love. No matter you choose to be willing or not, you have to agree in the end.
layui responsive animated login interface template
layui responsive animated login interface template
520 Valentine's Day confession web animation special effects
jQuery Valentine's Day Confession Animation, 520 Confession Background Animation
Cool system login page
Cool system login page
HTML5 tape music player-CASSETTE PLAYER
HTML5 tape music player-CASSETTE PLAYER