A photo cropping method and system based on face recognition
A face recognition and photo technology, applied in character and pattern recognition, TV system parts, color TV parts and other directions, can solve the problem of high cost of use, complicated cutting operations, and no better optimization and help on the mobile terminal. and other problems to achieve the effect of improving the accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] Such as figure 1 , the first photo cropping method based on face recognition provided by the present invention, comprising:
[0043] Step 1: Perform face detection on the captured image to obtain the face detection frame 1; in this embodiment, the face detection frame is obtained by using an existing third-party face detection application.
[0044] Step 2: Take the center point of the face detection frame 1 as the origin, and generate a rectangular cropping frame 2 with an aspect ratio of 4:3 according to the ratio of the area to the area of the face detection frame 10:7, such as figure 1 shown.
[0045] Step 3: Cut out the part of the image other than the rectangular cropping frame 2.
Embodiment 2
[0047] When the aspect ratio of the image required by the user is greater than 4:3, the cropping process is as follows figure 1 and figure 2 :
[0048] Step 1: Perform face detection on the captured image to obtain face detection frame 1;
[0049] Step 2: Take the center point of the face detection frame 1 as the origin, and generate a rectangular cropping frame 2 with an aspect ratio of 4:3 according to the ratio of the area to the area of the face detection frame 10:7;
[0050] Step 3: take the center point of the face detection frame as the origin of the rectangular cropping frame with an aspect ratio greater than 4:3, and take the length of the rectangular cropping frame with the aspect ratio as 4:3 as the origin of the rectangular cropping frame with an aspect ratio greater than 4:3 The length of the rectangular cropping frame is calculated according to the image aspect ratio required by the user to calculate the wide length of the rectangular cropping frame with an ...
Embodiment 3
[0055] When the aspect ratio of the image required by the user is less than 4:3, the cropping process is, continue to refer to figure 1 and figure 2 :
[0056] Step 1: Perform face detection on the captured image to obtain face detection frame 1;
[0057] Step 2: Take the center point of the face detection frame as the origin, and generate a rectangular cropping frame 2 with an aspect ratio of 4:3 according to the ratio of the area to the area of the face detection frame: 10:7;
[0058] Step 3: Take the center point of the face detection frame as the origin of the rectangular cropping frame with an aspect ratio of less than 4:3, and take the width of the rectangular cropping frame with an aspect ratio of 4:3 as the aspect ratio of less than 4:3 The width of the rectangular cropping frame is calculated according to the image aspect ratio required by the user to calculate the long length of the rectangular cropping frame with an aspect ratio less than 4:3, thereby obtaining...
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