Identification camera capable of automatically carrying out portrait cutout and method thereof
A camera and portrait technology, used in image enhancement, image analysis, image data processing, etc., can solve the problems of not meeting the requirements of portrait matting accuracy, mistakenly treating the background as a portrait, and consuming manpower and material resources.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0069] The ID camera is an APP (Application, application program) installed on the smart terminal. It can have an Android version and an iOS version. The image data obtained by real-time shooting, the useful area of the image is cropped according to the license standard, and the image information such as color, brightness, background, and biological characteristics of people has not been processed in any way.
[0070] However, the ID camera of the present embodiment is aimed at the original image of the photographed ID card, and performs matting processing on the original ID image to realize the separation of the foreground and the background (generally, the foreground refers to the portrait, and the background refers to the image other than the portrait. part), which includes a portrait contour search module, an initial foreground and initial background setting module, an initial foreground and expected portrait contour similarity detection module, an initial foreground and ...
Embodiment 2
[0098] Such as Figure 4 As shown, the present embodiment provides a method for automatically matting portraits, which is applied to ID cameras and includes the following steps:
[0099] S1. Use contour detection technology to quickly find the contour of the portrait in the original image of the license, including:
[0100] S11. Convert the original image of the certificate into a grayscale image;
[0101] S12. Perform upper body feature data area detection on the grayscale image, when the upper body feature data area is detected, save the area pixel information as an upper body area rectangle data structure, and set the upper body ROI area for the grayscale image, which is recorded as ROIB;
[0102] S13, ROIB is carried out face profile feature data area detection, when detecting the face profile feature data area, this area pixel information is saved as the face profile area rectangle data structure, and the face profile ROI area is set to the grayscale image, Recorded as ...
Embodiment 3
[0119] Such as Figure 5 As shown, the difference between the method for automatically matting portraits in this embodiment and embodiment 2 lies in step S8, as follows:
[0120] S8. Erase the pixel data on the original image mapped to the background area of the final mask bitmap, and fill in a transparent color to obtain a foreground image.
[0121] To sum up, the ID camera and method of the present invention use the contour detection technology to quickly find the profile of the portrait in the original image of the license, and set the initial foreground area and the initial background area according to the profile of the found portrait, and use the mask bit of the initial foreground The mask bitmap of the image and the initial background, the mixed Gaussian model is established through the GrabCut function, and then the final mask bitmap of the foreground area and the background area is obtained through iterative adjustment. On the one hand, the speed of operation is imp...
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