Monocular image-based glasses detection method and device, storage medium and equipment
A glasses detection, single-purpose technology, applied in the field of pattern recognition, can solve the problems of image gradient mutation, unfavorable glasses detection, judgment instability, etc., to achieve the effect of accelerating calculation, ensuring accuracy, and judging stability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] The implementation of the present invention provides a method for detecting glasses based on monocular images. It should be noted that the detection of glasses in the present invention refers to the detection of transparent glasses, including nearsighted glasses, farsighted glasses, transparent plain glasses, etc. Sunglasses do not belong to The detection scope of the present invention.
[0041] Such as figure 1 As shown, the method includes:
[0042] Step S100: Obtain the left eye area or the right eye area from the face image to obtain a monocular image.
[0043] In this step, various face detection and positioning methods can be used to obtain the left eye area or the right eye area from the face image.
[0044] Step S200: Input the monocular image into the trained convolutional neural network to obtain the probability of wearing glasses and not wearing glasses, where:
[0045] In order to reduce the time complexity of the algorithm, the lightweight convolutional ...
Embodiment 2
[0066] An embodiment of the present invention provides a device for detecting glasses based on a monocular image, such as Figure 4 As shown, the device includes:
[0067] The preprocessing module 10 is used to obtain the left eye area or the right eye area from the face image to obtain a monocular image.
[0068] The detection module 20 is used to input the monocular image into the trained convolutional neural network to obtain the probability of wearing glasses and not wearing glasses, wherein:
[0069] The convolutional neural network includes the first convolutional layer, the first pooling layer, the second convolutional layer, the second pooling layer, the third convolutional layer, the third pooling layer, the first fully connected layer, The second fully connected layer, the third fully connected layer and the Softmax layer.
[0070] The convolutional neural network is trained through a training set, and the samples in the training set include left-eye image samples ...
Embodiment 3
[0087] The methods described in the above-mentioned embodiments provided in this specification can implement business logic through computer programs and record them on a storage medium, and the storage medium can be read and executed by a computer to achieve the effect of the solution described in Embodiment 1 of this specification. Therefore, the present invention also provides a computer-readable storage medium for glasses detection, including a memory for storing processor-executable instructions. When the instructions are executed by the processor, the method for glasses detection based on a monocular image in Embodiment 1 is implemented. step.
[0088]The present invention combines the monocular image with a deep convolutional neural network for glasses detection, and uses a lightweight convolutional neural network to perform binary classification on the acquired area of one eye to determine whether a portrait wears glasses, which can be effective and fast It solves th...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com