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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
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