A method for obtaining skin brightness in a camera data stream and adjusting exposure

A technology of data flow and exposure, applied in the field of exposure adjustment and human face skin, can solve the problems of not being able to present the effect of people or animals, and unable to adjust the exposure of frame data, so as to avoid underexposure or overexposure and provide a good photo experience. , good effect

Inactive Publication Date: 2019-05-03
CHENDU PINGUO TECH CO LTD
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In order to solve the above problems, the present invention firstly provides a method for obtaining the skin brightness in the camera data stream, so as to accurately and efficiently obtain the skin brightness in the frame data in the camera data stream, and secondly, provides a method for adjusting the exposure by using the obtained skin brightness A method to solve the problem that the existing technology cannot present the best effect of the person or animal in the photo by performing local accurate exposure adjustment on the frame data in the camera data stream

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method for obtaining skin brightness in a camera data stream and adjusting exposure
  • A method for obtaining skin brightness in a camera data stream and adjusting exposure
  • A method for obtaining skin brightness in a camera data stream and adjusting exposure

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0045] In this example, if figure 1 As shown, a method for obtaining skin brightness in a camera data stream includes the following steps:

[0046] S1. Obtain frames in the camera data stream;

[0047] The step S1 specifically includes the following steps: calling the API provided by the system where the camera is located to obtain frames in the camera data stream, and obtaining the image data of each frame into a bitmap, the format of which is as follows:

[0048] pixel={R, G, B, A} Each pixel is saved as four bytes, which respectively represent the red, green, blue and transparency values ​​of this pixel, and each pixel continuously forms image data.

[0049] S2. Obtain the pixel points in each frame;

[0050] S3. Traverse the pixels obtained in step S2 to obtain the RGB values ​​of the pixels;

[0051] In the step S3, the RGB value of the pixel is obtained by traversing all the row numbers and pixel points in a manner of sampling once every other row and sampling once ev...

Embodiment 2

[0070] Such as figure 2 and 4 As shown, a method for adjusting exposure, comprising the following steps:

[0071] This embodiment is realized in the ios system of the mobile device, and a fox is photographed;

[0072] Step (1): Obtain the data collected by the camera, and obtain the skin brightness at a fixed frame rate;

[0073] Step (2): judging whether the skin brightness is within the threshold range, and adjusting the exposure according to the judging result.

[0074] In the step (2), if it is detected that the skin brightness is within the threshold range, no exposure adjustment is performed; if it is detected that the skin brightness is not within the threshold range, the exposure gain boundary and exposure Gain range to perform exposure gain operation to complete exposure adjustment.

[0075] The steps of adjusting the exposure include:

[0076] Step (21): Determine the brightness of the desired effect for the normal light source;

[0077] Step (22): Determine t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for acquiring skin brightness in a camera data stream and adjusting exposure degree, which belongs to the technical field of image processing and comprises the following steps of: S1, acquiring frames in the camera data stream; S2, acquiring pixel points in each frame; S3, traversing the pixel points obtained in the step S2 to obtain RGB values of the pixel points;S4, converting the RGB value of the pixel point obtained in the step S3 into a YCbCr value; S5, performing screening to obtain skin data according to the YCbCr value obtained in the step S4; S6, according to the skin data, calculating to obtain an average brightness value of the skin data, and obtaining skin brightness; On the basis, the method comprises the following steps: (1) obtaining video stream data collected by a camera, and obtaining the skin brightness every other fixed frame rate; And (2) judging whether the skin brightness is within a threshold range or not, and adjusting the exposure degree according to a judgment result, so that the problem that the local accurate exposure adjustment cannot be carried out on the frame data in the camera data flow in the prior art is solved.

Description

technical field [0001] The present invention relates to the technical field of image processing, in particular to a method for acquiring the brightness of skin data according to skin appearing in a camera data stream, especially human face skin, and a method for adjusting exposure according to the brightness of the acquired skin data. Background technique [0002] The operating system of the mobile electronic device itself provides a large number of APIs (Application Programming Interface, Application Programming Interface), so that software developers can call APIs when programming to obtain various required parameter values. Existing system cameras or other third-party cameras may be underexposed or overexposed in complex environments (low light / dark light / high light), resulting in poor photos. [0003] In existing system cameras, according to the frame data in the camera data stream and the overall brightness of the frame data, the brightness can be automatically determin...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04N5/235H04N5/243H04N5/232G06T5/00
Inventor 张橙徐滢
Owner CHENDU PINGUO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products