WO2017185870A1 - 一种拍摄补光的装置、方法及存储介质 - Google Patents

一种拍摄补光的装置、方法及存储介质 Download PDF

Info

Publication number
WO2017185870A1
WO2017185870A1 PCT/CN2017/074758 CN2017074758W WO2017185870A1 WO 2017185870 A1 WO2017185870 A1 WO 2017185870A1 CN 2017074758 W CN2017074758 W CN 2017074758W WO 2017185870 A1 WO2017185870 A1 WO 2017185870A1
Authority
WO
WIPO (PCT)
Prior art keywords
color temperature
correlated color
light
correlated
fill light
Prior art date
Application number
PCT/CN2017/074758
Other languages
English (en)
French (fr)
Inventor
姬向东
付一鹏
Original Assignee
努比亚技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 努比亚技术有限公司 filed Critical 努比亚技术有限公司
Publication of WO2017185870A1 publication Critical patent/WO2017185870A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means

Definitions

  • the present invention relates to the field of image processing technologies, and more particularly to an apparatus, method, and storage medium for capturing fill light.
  • a separate LCD or other light source is usually used as a fill light in a dim environment, and the maximum fill light effect is obtained by increasing the brightness of the LCD.
  • an embodiment of the present invention provides a device, a method, and a storage medium for capturing fill light, which can adjust the corresponding three color values according to the correlated color temperature of the current environment, thereby making the effect after the fill light
  • the ambient light is close, which is convenient for color reproduction and improves the user experience.
  • the first aspect of the present invention provides an apparatus for photographing fill light, the apparatus comprising:
  • a detection module a matching module, and a fill light module
  • the detecting module is configured to detect a condition for triggering fill light when shooting
  • the matching module is configured to determine a three-color value corresponding to a correlated color temperature in the current environment when the condition for triggering the fill light is determined;
  • the fill light module is configured to fill light of the light brightness in the current environment according to the matched three color values.
  • the matching module when the matching module is set to determine the condition of triggering the fill light, it means:
  • the matching module is configured to detect a condition that triggers the fill light when detecting an operation command for triggering the fill light or detecting that the brightness of the light in the current environment is lower than a preset threshold.
  • the apparatus further includes: a table building module
  • the setting table module is configured to match the three color values corresponding to the correlated color temperature in the current environment, measuring the three color values corresponding to the color temperature of each frame of the image, and establishing the correlated color temperature and the three color values. Corresponding relationship table.
  • the apparatus further includes: a cache module
  • the cache module is configured to acquire each frame of data of the current image and cache a predetermined color temperature of the acquired frame data.
  • matching the corresponding three color values according to the correlated color temperature in the current environment means:
  • the matching module When the matching module is configured to determine the condition of the triggering fill light, the correlated color temperature of the frame data that meets the predetermined condition is selected from all the frame data after the buffer according to the correlated color temperature of the last frame data after the current buffering.
  • the correlated color temperature of the last frame of data is averaged, and the correlated color temperature after averaging is matched to the corresponding three-color value according to a predetermined matching rule.
  • the predetermined matching rule comprises:
  • the correlated color temperature after averaging is greater than the maximum value of the correlated color temperature in the relationship table, then The three color values corresponding to the maximum value of the correlated color temperature in the relationship table are assigned.
  • the predetermined matching rule comprises:
  • the three color values corresponding to the minimum value of the correlated color temperature in the relation table are matched.
  • the predetermined matching rule comprises:
  • the correlated color temperature after averaging is equal to the correlated color temperature in the relationship table, the three color values corresponding to the correlated color temperatures in the relationship table are matched.
  • the predetermined matching rule comprises:
  • the correlated color temperature after averaging is between the first correlated color temperature and the second correlated color temperature in the relationship table, the corresponding three color values are obtained according to the following formula:
  • G Ga+(Gb–Ga)*(CCT–CCTa)/(CCTb–CCTa)
  • R is the red value of the correlated color temperature after averaging
  • G is the green value of the correlated color temperature after averaging
  • B is the blue value needed to match the correlated color temperature after averaging.
  • the color temperature (CCT, Correlated Color Temperature) is the correlated color temperature after averaging
  • Ra is the red value corresponding to the first correlated color temperature
  • Ga is the green value corresponding to the first correlated color temperature
  • Ba is the blue value corresponding to the first correlated color temperature.
  • CCTa is the first correlated color temperature
  • CCTb is the second correlated color temperature.
  • an embodiment of the present invention provides a method for photographing fill light, including:
  • determining conditions that meet the trigger fill light includes:
  • the method before matching the three color values corresponding to the correlated color temperature in the current environment, the method further includes:
  • a three-color value corresponding to a color temperature of each frame of the image is measured, and a relationship table in which the correlated color temperature and the three color values are in one-to-one correspondence is established.
  • the method further includes:
  • Each frame of the current image is acquired in real time, and a predetermined color temperature of the acquired frame data is buffered.
  • the corresponding color temperature is matched according to the current color temperature in the current environment, including:
  • the correlated color temperature of the frame data that meets the predetermined condition is selected from all the frame data after the buffer and the last one according to the correlated color temperature of the currently buffered last frame data.
  • the correlated color temperature of the frame data is averaged, and the correlated color temperature after the averaging is matched to the corresponding three-color value according to a predetermined matching rule.
  • the predetermined matching rule comprises:
  • the three color values corresponding to the maximum value of the correlated color temperature in the relationship table are matched.
  • the predetermined matching rule comprises:
  • the three color values corresponding to the minimum value of the correlated color temperature in the relation table are matched.
  • the predetermined matching rule comprises:
  • the correlated color temperature after averaging is equal to the correlated color temperature in the relationship table, the three color values corresponding to the correlated color temperatures in the relationship table are matched.
  • the predetermined matching rule comprises:
  • G Ga+(Gb–Ga)*(CCT–CCTa)/(CCTb–CCTa)
  • R is the red value of the correlated color temperature after averaging
  • G is the green value of the correlated color temperature after averaging
  • B is the blue value of the correlated color temperature after averaging
  • CCT For the correlated color temperature after averaging, Ra is the red value corresponding to the first correlated color temperature, Ga is the green value corresponding to the first correlated color temperature, Ba is the blue value corresponding to the first correlated color temperature, and CCTa is the first correlated color temperature, CCTb is the second correlated color temperature.
  • an apparatus for capturing fill light including:
  • a camera that is set to detect a condition that triggers fill light when shooting
  • the controller is configured to determine a condition corresponding to the trigger fill light, and then match a three-color value corresponding to the correlated color temperature in the current environment;
  • the processor is configured to fill the brightness of the light in the current environment according to the matched three color values.
  • an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores a computer program, and the computer program is used to perform the method of photographing fill light described above.
  • An embodiment of the present invention provides an apparatus, a method, and a storage medium for buffering a video frame, including: a detection module, a matching module, and a fill light module, detecting a condition for triggering fill light during shooting, and determining a condition that meets the trigger fill light, Matching the three color values corresponding to the correlated color temperature in the current environment, and supplementing the light brightness in the current environment according to the matched three color values, and adjusting the corresponding three color values according to the current color temperature of the current environment when the shooting is started.
  • Fill light so that the effect after the fill light is close to the ambient light, which is convenient for color reproduction and improves the user experience.
  • FIG. 1 is a schematic structural diagram of hardware of an optional mobile terminal embodying various embodiments of the present invention
  • FIG. 2 is a schematic diagram of a wireless communication system of the mobile terminal shown in FIG. 1;
  • FIG. 3 is a schematic structural diagram of Embodiment 1 of a device for capturing fill light according to the present invention
  • FIG. 4 is a schematic structural view of a second embodiment of a device for capturing fill light according to the present invention.
  • FIG. 5 is a schematic flow chart of Embodiment 1 of a method for photographing fill light according to the present invention.
  • the mobile terminal can be implemented in various forms.
  • the terminal described in the embodiments of the present invention may include, for example, a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a personal digital assistant (PDA), a tablet computer (PAD), a portable multimedia player (PMP), a navigation device.
  • PDA personal digital assistant
  • PAD tablet computer
  • PMP portable multimedia player
  • Mobile terminals of the like and fixed terminals such as digital TVs, desktop computers, and the like.
  • the terminal is a mobile terminal.
  • those skilled in the art will appreciate that configurations in accordance with embodiments of the present invention can be applied to fixed type terminals in addition to components that are specifically for mobile purposes.
  • FIG. 1 is a schematic diagram showing the hardware structure of a mobile terminal embodying various embodiments of the present invention.
  • the mobile terminal 100 may include an audio/video (A/V) input unit 120, a user input unit, a sensing unit 140, an output unit 150, a memory 160, a controller 180, a power supply unit 190, and the like.
  • A/V audio/video
  • Figure 1 illustrates a mobile terminal having various components, but it should be understood that not all illustrated components are required to be implemented. More or fewer components can be implemented instead. The elements of the mobile terminal will be described in detail below.
  • the A/V input unit 120 is for receiving an audio or video signal.
  • the A/V input unit 120 may include a camera 121 that processes image data of still pictures or video obtained by an image capturing device in a video capturing mode or an image capturing mode.
  • the processed image frame can be displayed on the display unit 151.
  • the image frames processed by the camera 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit, and two or more cameras 121 may be provided according to the configuration of the mobile terminal.
  • the user input unit 130 may generate key input data according to a command input by the user to control various operations of the mobile terminal.
  • the user input unit 130 allows the user to input various types of information, and may include a keyboard, a pot, a touch pad (eg, a touch sensitive component that detects changes in resistance, pressure, capacitance, etc. due to contact), a scroll wheel , rocker, etc.
  • a touch screen can be formed.
  • the sensing unit 140 detects the current state of the mobile terminal 100 (eg, the open or closed state of the mobile terminal 100), the location of the mobile terminal 100, the presence or absence of contact (ie, touch input) by the user with the mobile terminal 100, and the mobile terminal.
  • the sensing unit 140 can sense the sliding type Whether the phone is on or off.
  • the sensing unit 140 can detect whether the power supply unit 190 provides power coupling.
  • Sensing unit 140 may include proximity sensor 141 which will be described below in connection with a touch screen.
  • the output unit 150 may include a display unit 151, an alarm unit 153, and the like.
  • the display unit 151 can display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 can display a user interface (UI) or a graphical user interface (GUI) related to a call or other communication (eg, text messaging, multimedia file download, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or image and related functions, and the like.
  • UI user interface
  • GUI graphical user interface
  • the display unit 151 can function as an input device and an output device.
  • the display unit 151 may include at least one of a liquid crystal display (LCD), a thin film transistor LCD (TFT-LCD), an organic light emitting diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like.
  • LCD liquid crystal display
  • TFT-LCD thin film transistor LCD
  • OLED organic light emitting diode
  • a flexible display a three-dimensional (3D) display, and the like.
  • 3D three-dimensional
  • Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as a transparent display, and a typical transparent display may be, for example, a transparent organic light emitting diode (TOLED) display or the like.
  • TOLED transparent organic light emitting diode
  • the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown) .
  • the touch screen can be used to detect touch input pressure as well as touch input position and touch input area.
  • the memory 160 may store a software program or the like that performs processing and control operations performed by the controller 180, or may temporarily store data (for example, a phone book, a message, a still image, a video, and the like) that has been output or is to be output. Moreover, the memory 160 can store data regarding vibrations and audio signals of various manners that are output when a touch is applied to the touch screen.
  • the memory 160 may include at least one type of storage medium including a flash Memory, hard disk, multimedia card, card type memory (eg SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read only memory (ROM), electrically erasable programmable only Read memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like.
  • the mobile terminal 100 can cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
  • the controller 180 typically controls the overall operation of the mobile terminal. For example, the controller 180 performs the control and processing associated with voice calls, data communications, video calls, and the like.
  • the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, which may be constructed within the controller 180 or may be configured to be separate from the controller 180.
  • the controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
  • the power supply unit 190 receives external power or internal power under the control of the controller 180 and provides appropriate power required to operate the various components and components.
  • the various embodiments described herein can be implemented in a computer readable medium using, for example, computer software, hardware, or any combination thereof.
  • the embodiments described herein may be through the use of application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays ( An FPGA, a processor, a controller, a microcontroller, a microprocessor, at least one of the electronic units designed to perform the functions described herein, in some cases, such an embodiment may be at the controller 180 Implemented in the middle.
  • implementations such as procedures or functions may be implemented with separate software modules that permit the execution of at least one function or operation.
  • the software code can be implemented by a software application (or program) written in any suitable programming language, which can be stored in memory 160 and executed by
  • the mobile terminal has been described in terms of its function.
  • various types of movement such as a folding type, a bar type, a swing type, a slide type mobile terminal, and the like will be described.
  • a sliding type mobile terminal in the terminal is taken as an example. Therefore, the embodiment of the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
  • the mobile terminal 100 as shown in FIG. 1 may be configured to operate using a communication system such as a wired and wireless communication system and a satellite-based communication system that transmits data via frames or packets.
  • a communication system such as a wired and wireless communication system and a satellite-based communication system that transmits data via frames or packets.
  • Such communication systems may use different air interfaces and/or physical layers.
  • air interfaces used by communication systems include, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunications System (UMTS) (in particular, Long Term Evolution (LTE)). ), Global System for Mobile Communications (GSM), etc.
  • FDMA Frequency Division Multiple Access
  • TDMA Time Division Multiple Access
  • CDMA Code Division Multiple Access
  • UMTS Universal Mobile Telecommunications System
  • LTE Long Term Evolution
  • GSM Global System for Mobile Communications
  • the following description relates to a CDMA communication system, but such teachings are equally applicable to other types of systems.
  • a CDMA wireless communication system can include a plurality of mobile terminals 100, a plurality of base stations (BS) 270, a base station controller (BSC) 275, and a mobile switching center (MSC) 280.
  • the MSC 280 is configured to interface with a public switched telephone network (PSTN) 290.
  • PSTN public switched telephone network
  • the MSC 280 is also configured to interface with a BSC 275 that can be coupled to the base station 270 via a backhaul line.
  • the backhaul line can be constructed in accordance with any of a number of known interfaces including, for example, E1/T1, ATM, IP, PPP, Frame Relay, HDSL, ADSL, or xDSL. It will be appreciated that the system as shown in FIG. 2 can include multiple BSCs 275.
  • Each BS 270 can serve one or more partitions (or regions), each of which is covered by a multi-directional antenna or an antenna directed to a particular direction radially away from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS 270 can be configured to support multiple frequency allocations, and each frequency allocation has a particular frequency spectrum (eg, 1.25 MHz, 5 MHz, etc.).
  • BS 270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology.
  • BTS Base Transceiver Subsystem
  • the term "base station” can be used to generally refer to a single BSC 275 and at least one BS 270.
  • a base station can also be referred to as a "cell station.”
  • each partition of a particular BS 270 may be referred to as a plurality of cellular stations.
  • a broadcast transmitter (BT) 295 transmits a broadcast signal to the mobile terminal 100 operating within the system.
  • a broadcast receiving module 111 as shown in FIG. 1 is provided at the mobile terminal 100 to receive a broadcast signal transmitted by the BT 295.
  • GPS Global Positioning System
  • the satellite 300 helps locate at least one of the plurality of mobile terminals 100.
  • a plurality of satellites 300 are depicted, but it is understood that useful positioning information can be obtained using any number of satellites.
  • the GPS module as shown in Figure 1 is typically configured to cooperate with satellite 300 to obtain desired positioning information. Instead of GPS tracking technology or in addition to GPS tracking technology, other techniques that can track the location of the mobile terminal can be used. Additionally, at least one GPS satellite 300 can selectively or additionally process satellite DMB transmissions.
  • BS 270 receives reverse link signals from various mobile terminals 100.
  • Mobile terminal 100 typically participates in calls, messaging, and other types of communications.
  • Each reverse link signal received by a particular base station 270 is processed within a particular BS 270.
  • the obtained data is forwarded to the relevant BSC 275.
  • the BSC provides call resource allocation and coordinated mobility management functions including a soft handoff procedure between the BSs 270.
  • the BSC 275 also routes the received data to the MSC 280, which provides additional routing services for interfacing with the PSTN 290.
  • PSTN 290 interfaces with MSC 280, which forms an interface with BSC 275, and BSC 275 controls BS 270 accordingly to transmit forward link signals to mobile terminal 100.
  • the embodiment of the present invention is mainly applied to a mobile terminal with a camera device, which may be a smart phone, a smart watch, a camera, a tablet computer, etc., but is not limited thereto.
  • a camera device which may be a smart phone, a smart watch, a camera, a tablet computer, etc., but is not limited thereto.
  • the device and method according to the embodiments of the present invention are directed to solving the technical problem of using the LCD light-filling effect, not being color-reducing, and reducing the user's experience when shooting in a relatively dim environment in the prior art.
  • FIG. 3 is a schematic structural diagram of Embodiment 1 of a device for capturing fill light according to the present invention. As shown in FIG. 3, the method includes: a detecting module 10, a matching module 20, and a fill light module 30.
  • the detecting module 10 is configured to detect a condition for triggering a fill light when photographing.
  • the detecting module 10 can select to open the front camera and trigger the shooting command to be turned on.
  • the smart phone when the user clicks the camera to open the button, the system directly opens by default.
  • Rear camera when you need to use the front camera, the user triggers the switch button, the system will open the front camera, depending on the actual situation, or when the user clicks the camera to open the button, the system directly turns on the front camera directly, waiting for the camera
  • the detecting module 10 can detect a condition for triggering the fill light during shooting, and the condition can receive the fill light operation instruction given by the user, so that the fill light operation can be forcibly turned on according to the user's demand, or the camera captures the captured light.
  • the brightness of the light in the current environment of the real-time image data is lower than a preset threshold, so that the fill light operation can be automatically turned on according to the current environment, which is convenient for the user to use, but is not limited thereto.
  • the matching module 20 is configured to determine a three-color value corresponding to the correlated color temperature in the current environment when the condition for triggering the fill light is determined.
  • the matching module 20 may receive the light-filling operation instruction given by the user when the condition is met, or the current environment of detecting the real-time image data captured by the camera, according to the condition that the condition for triggering the light filling is detected at the time of shooting.
  • the current environment at the time of shooting is filled with light. For example, the user is now at the seaside at dusk, the light is dark, and the shooting in the current environment can be directly set to fill light, and the light is directly activated.
  • the matching module 20 if it is in the afternoon sunlight, has sufficient light, can set the shooting in the current environment without filling light, directly closes the matching module 20, and if it is in the automatic gear, can directly set the current environment according to the detecting module 10 Under the light brightness, when the brightness of the current environment is lower than the preset threshold, the matching module 20 can be triggered, and the matching module 20 matches the three colors corresponding to the CCT in the current environment.
  • the (R/G/B) value is the red value, the green value and the blue value of the three primary colors.
  • the fill light module 30 is configured to fill light of the light brightness in the current environment according to the matched three color values.
  • the fill light module 30 compares the matched three-color (R/G/B) value obtained by the matching module 20 to the brightness of the current environment according to the matched three-color (R/G/B) value.
  • Fill light for example: under a yellow street light at night, if white light is used to fill light, at this time, white light hits the human face, and the background behind is yellow. If you use the yellow background, the face will It looks very bluish. If you fill the face according to the face, the background will be very yellow.
  • the fill light color changes according to the ambient light color. To be as close as possible to the ambient light, you can optimize the color reproduction of such scenes and improve the user experience.
  • An embodiment of the present invention provides a device for capturing fill light, comprising: a detecting module, a matching module, and a fill light module, wherein the detecting module is configured to detect a condition for triggering fill light when shooting, and the matching module is configured to determine that the trigger is met.
  • the condition of the fill light is matched, the three color values corresponding to the correlated color temperature in the current environment are matched, and the search module is set to fill the light brightness of the current environment according to the matched three color values, and when the shooting is started, according to The current environment's correlated color temperature adjusts the corresponding three-color value to fill the light, so that the effect after the fill light is close to the ambient light, which is convenient for color reproduction and improves the user experience.
  • the matching module 20 when the matching module 20 is configured to determine the condition that the trigger fill light is met, it means:
  • the matching module 20 is configured to detect a condition that triggers the fill light when detecting an operation command for triggering the fill light or detecting that the brightness of the light in the current environment is lower than a preset threshold.
  • the matching module 20 determines that the condition of triggering the fill light is met, that is, the user is given
  • the fill light operation can be forcibly turned on according to the user's demand, or whether the brightness of the current environment under the real-time image data captured by the camera is lower than a preset threshold, which can automatically according to the current environment.
  • the situation is to turn on the fill light operation, which is convenient for the user to use and improves the user experience.
  • FIG. 4 is a schematic structural diagram of a second embodiment of a device for photographing light filling according to the present invention, as shown in FIG. 4, based on the above embodiment, the device further includes: a table building module 40;
  • the table construction module 40 is configured to match the three color values corresponding to the correlated color temperature in the current environment, measure the three color values corresponding to the data correlation color temperature of each frame of the image, and establish the correlated color temperature and the three color values.
  • a corresponding relationship table is configured to match the three color values corresponding to the correlated color temperature in the current environment, measure the three color values corresponding to the data correlation color temperature of each frame of the image, and establish the correlated color temperature and the three color values.
  • the table building module 40 pre-measures the three color values corresponding to the correlated color temperatures in the common scene, for example, the corresponding three color values from the correlated color temperature 2000 to the correlated color temperature 5000 are recorded, and may be 500 measures a set of corresponding three color values, the specific sampling interval can be determined according to the actual situation, establish a relationship table of the correlation color temperature and the three color values one by one, generally speaking, the more dense the sampling interval, the subsequent matching with the relationship table The more accurate the ground, the more application scenarios that can be covered, but it is not limited to this.
  • the table construction module 40 obtains a three-color value corresponding to the color temperature of each frame of the image in each environment according to a common application scenario, and establishes a relationship table in which the correlated color temperature and the three color values are in one-to-one correspondence, thereby facilitating Subsequently matching the corresponding three-color values of the fill light required for shooting, the color restoration is completed as soon as possible, and the user's satisfaction is improved.
  • the device further includes: a cache module 50;
  • the cache module 50 is configured to acquire each frame of data of the current image in real time, and buffer a predetermined color temperature of the acquired frame data.
  • the cache module 50 is configured to acquire the cache module in real time when shooting is started. Taking each frame of the current image and buffering a predetermined color temperature of the acquired frame data, for example, the cache module can store frame data of 30 frames, and when each frame data of the image is acquired, The algorithm calculates the correlated color temperature of the current environment, but the cache module only buffers the correlated color temperature of the 30 most recently saved frame data, which may be determined according to actual conditions, but is not limited thereto.
  • the frame module 50 obtains each frame data of the current image in real time, and caches a predetermined color temperature of the acquired frame data, so as to facilitate understanding of the correlated color temperature of the current environment, which facilitates subsequent matching of the correlated color temperature of the current environment.
  • the matching module 20 when configured to determine the condition of the triggering fill light, the corresponding color temperature according to the current color temperature in the current environment matches the corresponding three color values, which means:
  • the matching module 20 When the matching module 20 is configured to determine the condition that the triggering fill light is met, the correlated color temperature of the frame data that meets the predetermined condition is selected from all the frame data after the buffer according to the correlated color temperature of the last framed data after the current buffering. The correlated color temperature of the last frame of data is averaged, and the correlated color temperature after the averaging is matched to the corresponding three-color value according to a predetermined matching rule.
  • the correlated color temperature according to the predetermined condition color frame data is selected from all the frame data after the buffer according to the correlated color temperature of the last frame data after the current buffering. For example, if the correlated color temperature of the last frame of data is 2500, the correlated color temperature of the frame data close to 2500 is selected among all the frame data after the buffer, for example, 2400, 2550, 2600, 2450, etc., which are in accordance with the predetermined difference.
  • the average color temperature is averaged together with the correlated color temperature of the last frame, that is, the average value is 2500, and the average value of the correlated color temperature is matched with the corresponding three-color value in the above relationship table according to a predetermined matching rule. But it is not limited to this.
  • the matching module 20 determines the condition of the triggering fill light
  • the correlated color temperature of the frame data that meets the predetermined condition is selected from all the frame data after the buffer according to the correlated color temperature of the last frame data after the current buffering.
  • the correlation color temperature of the last frame of data is averaged and will be sought
  • the correlated color temperature after the average is matched with the corresponding three-color value according to a predetermined matching rule, and the three-color value of the required fill light can be more realistically matched according to the current environment, so that the effect after the fill light is close to the ambient light, and is convenient. Color reproduction improves user experience.
  • the predetermined matching rule includes:
  • the correlated color temperature after the averaging is greater than the maximum value of the correlated color temperature in the relationship table, matching the three color values corresponding to the maximum value of the correlated color temperature in the relationship table;
  • the correlated color temperature after the averaging is less than the minimum value of the correlated color temperature in the relationship table, matching the three color values corresponding to the minimum value of the correlated color temperature in the relationship table;
  • the correlated color temperature after averaging is between the first correlated color temperature and the second correlated color temperature in the relationship table, the corresponding three color values are obtained according to the following formula:
  • G Ga+(Gb–Ga)*(CCT–CCTa)/(CCTb–CCTa)
  • R is the red value of the correlated color temperature after averaging
  • G is the green value of the correlated color temperature after averaging
  • B is the blue value of the correlated color temperature after averaging
  • CCT For the correlated color temperature after averaging, Ra is the red value corresponding to the first correlated color temperature, Ga is the green value corresponding to the first correlated color temperature, Ba is the blue value corresponding to the first correlated color temperature, and CCTa is the first correlated color temperature, CCTb is the second correlated color temperature.
  • the predetermined matching rule gives a specific operation method when the correlated color temperature after averaging in the current environment is matched with the relational table, so that the relevant color temperature in the current environment may be in the relational table. Matches to the corresponding tri-color value, but is not limited to this.
  • These matching rules are used to match the three-color value of the required fill light, so that the effect after the fill light is close to the ambient light, which is convenient for color reproduction, but is not limited thereto.
  • the detecting module 10 can be set in the device provided by the embodiment of the present invention.
  • the matching module 20 may be disposed in the controller 180 in FIG.
  • FIG. 5 is a schematic flowchart of Embodiment 1 of a method for photographing fill light according to the present invention. As shown in FIG. 5, the method includes:
  • the user can select to open the front camera and trigger the shooting command to be turned on.
  • the smart phone when the user clicks the camera to open the button, the system directly turns on the rear camera directly. Need to use the front camera is, the user triggers the switch button, the system will open the front camera, depending on the actual situation, or when the user clicks the camera to open the button, the system directly turns on the front camera directly, after the camera is turned on, it can detect The brightness of the current environment of the real-time image data captured by the camera, so as to facilitate subsequent determination of whether the brightness of the current environment needs to fill light, but is not limited thereto.
  • the shooting can be supplemented according to the user's choice.
  • the user is now at the seaside at dusk, the light is dark, and the shooting in the current environment can be directly set to fill the light, and the matching is directly turned on, if the sun is in the afternoon.
  • the matching can be started, and the three colors (R/G/B) corresponding to the CCT in the current environment can be matched, which are the red value, the green value, and the blue value of the three primary colors, respectively, by matching the current environment.
  • the tristimulus value can make the brightness of the captured light close to the surrounding environment, but is not limited thereto.
  • the brightness of the current environment is performed according to the matched three color (R/G/B) values.
  • Fill light for example: under a yellow street light at night, if white light is used to fill light, at this time, white light hits the human face, and the background behind is yellow. If you use the yellow background, the face will be very It appears bluish. If you fill the face according to the face, the background will be very yellow.
  • R/G/B matched three-color
  • An embodiment of the present invention provides a method for capturing fill light, including: detecting a condition for triggering fill light during shooting, and determining a condition corresponding to trigger fill light, matching a three-color value corresponding to a correlated color temperature in a current environment, according to matching The latter three color values complement the light brightness in the current environment.
  • the corresponding three color values are adjusted according to the current color temperature of the current environment to make up the light, so that the effect after the fill light is close to the ambient light, which is convenient. Color reproduction improves user experience.
  • determining conditions that meet the trigger fill light including:
  • the matching module is configured to detect a condition that triggers the fill light when detecting an operation command for triggering the fill light or detecting that the brightness of the light in the current environment is lower than a preset threshold.
  • the condition for triggering the fill light when the condition for triggering the fill light is determined, it may be that when the fill light operation instruction given by the user is received, the fill light operation may be forcibly turned on according to the user's requirement, or the real-time image data captured by the camera may be detected. Whether the brightness of the light in the current environment is lower than the preset threshold, so that the fill light operation can be automatically started according to the current environment, thereby facilitating the use of the user and improving the user experience.
  • the method before matching the three color values corresponding to the correlated color temperature in the current environment, the method further includes:
  • a three-color value corresponding to a color temperature of each frame of the image is measured, and a relationship table in which the correlated color temperature and the three color values are in one-to-one correspondence is established.
  • the three color values corresponding to the correlated color temperatures in the common scene may be measured in advance, for example: The corresponding three color values from the correlated color temperature 2000 to the correlated color temperature 5000 are recorded, and a corresponding set of three color values can be measured every 500.
  • the specific sampling interval can be determined according to the actual situation, and the correlated color temperature is established.
  • the relation table of the three-color value one-to-one correspondence generally has a denser sampling interval, and the more accurate the subsequent matching with the relational table, the more application scenarios that can be covered, but it is not limited thereto.
  • the three color values corresponding to the color temperature of each frame of the image in each environment are obtained according to a common application scenario, and a relationship table between the correlated color temperature and the three color values is established, thereby facilitating subsequent accurate matching of the shooting time. Need to fill the corresponding three-color value, complete the color reproduction as soon as possible, and improve user satisfaction.
  • the method further includes:
  • the cache module acquires each frame data of the current image in real time, and buffers a predetermined color temperature of the acquired frame data.
  • the cache module can store frame data of 30 frames.
  • the correlated color temperature of the current environment is calculated according to a certain algorithm, but the cache module only buffers the correlated color temperature of the 30 most recently saved frame data, which may be determined according to actual conditions, but Not limited to this.
  • the correlated color temperature of the predetermined number of acquired frame data is buffered, so that it is convenient to know the relevant color temperature of the current environment, which is convenient for subsequent matching of the relevant color temperature of the current environment.
  • the corresponding color temperature is matched according to the current color temperature in the current environment, including:
  • the frame data that meets the predetermined condition is selected from all the frame data after the buffer according to the correlated color temperature of the last framed data after the current buffer.
  • the correlated color temperature is averaged with the correlated color temperature of the last frame of data, and the averaged correlated color temperature is matched to the corresponding three-color value according to a predetermined matching rule.
  • the correlated color temperature corresponding to the predetermined condition color frame data is selected from all the frame data after the buffer according to the correlated color temperature of the currently buffered last frame data, for example, the last frame.
  • the correlated color temperature of the data is 2500
  • the correlated color temperature of the frame data close to 2500 is selected among all the frame data after the buffer, for example, 2400, 2550, 2600, 2450, etc., the correlated color temperature corresponding to the predetermined difference, and these are correlated.
  • the color temperature is averaged together with the correlated color temperature of the last frame, that is, the average value is 2500, and the average value of the correlated color temperature is matched with the corresponding three-color value in the above-described relationship table according to a predetermined matching rule, but is not limited thereto. .
  • the correlated color temperature of the frame data that meets the predetermined condition is selected from all the frame data after the buffer and the data of the last frame according to the correlated color temperature of the last frame data after the current buffering.
  • the correlation color temperature is averaged, and the correlated color temperature after the averaging is matched according to a predetermined matching rule to match the corresponding three color values, so that the three colors of the required fill light can be more realistically matched according to the current environment, thereby making up
  • the post-light effect is close to the ambient light, which is convenient for color reproduction and improves the user experience.
  • the predetermined matching rule includes:
  • the three color values corresponding to the maximum value of the correlated color temperature in the relationship table are matched.
  • the predetermined matching rule includes:
  • the three color values corresponding to the minimum value of the correlated color temperature in the relation table are matched.
  • the predetermined matching rule includes:
  • the three color values corresponding to the minimum value of the correlated color temperature in the relation table are matched.
  • the predetermined matching rule includes:
  • the correlated color temperature after averaging is between the first correlated color temperature and the second correlated color temperature in the relationship table, the corresponding three color values are obtained according to the following formula:
  • G Ga+(Gb–Ga)*(CCT–CCTa)/(CCTb–CCTa)
  • R is the red value of the correlated color temperature after averaging
  • G is the green value of the correlated color temperature after averaging
  • B is the blue value of the correlated color temperature after averaging
  • CCT For the correlated color temperature after averaging, Ra is the red value corresponding to the first correlated color temperature, Ga is the green value corresponding to the first correlated color temperature, Ba is the blue value corresponding to the first correlated color temperature, and CCTa is the first correlated color temperature, CCTb is the second correlated color temperature.
  • the predetermined matching rule gives a specific operation method when the correlated color temperature after averaging in the current environment is matched with the relational table, so that the relevant color temperature in the current environment can be matched in the relational table.
  • the three-color value but not limited to this.
  • These matching rules are used to match the three-color value of the required fill light, so that the effect after the fill light is close to the ambient light, which is convenient for color reproduction, but is not limited thereto.
  • the technical solution of the present invention may be a software product in essence or in part contributing to the prior art.
  • a computer software product stored in a storage medium (such as ROM / RAM, disk, CD), including a number of instructions to make a terminal device (can be a mobile phone, computer, server, air conditioner, or Network devices, etc.) perform the methods described in various embodiments of the present invention.
  • the embodiment of the present invention further describes a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is used to execute the method for capturing fill light according to the embodiment of the present invention.
  • the condition corresponding to the trigger fill light when detecting the condition of triggering the fill light during shooting, determining the condition corresponding to the trigger fill light, matching the three color values corresponding to the correlated color temperature in the current environment, and comparing the light color brightness in the current environment according to the matched three color values.
  • the light is turned on, the light is adjusted according to the current color temperature of the current environment to adjust the corresponding three color values, so that the effect after the light filling is close to the ambient light, which is convenient for color reproduction and improves the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

本发明实施例公开了一种拍摄补光的装置、方法及存储介质,包括:检测模块、匹配模块和补光模块,检测拍摄时触发补光的条件,确定符合触发补光的条件时,则匹配当前环境下的相关色温对应的三色值,根据匹配后的三色值对当前环境下的光线亮度进行补光,通过开启拍摄时,根据当前环境的相关色温调节对应的三色值来进行补光,从而使得补光后效果与环境光接近,便于色彩还原,提高了用户的体验度。

Description

一种拍摄补光的装置、方法及存储介质 技术领域
本发明涉及图像处理技术领域,尤指一种拍摄补光的装置、方法及存储介质。
背景技术
目前,随着移动终端的发展,现在的手机不仅可以满足日常的通信功能,还可以进行摄影记录人们的生活,越来越多的人们喜欢通过便携的手机来进行拍照,当用户在比较昏暗的环境下进行拍摄时,容易由于曝光不足,导致拍摄的效果不理想。
现有技术中,通常在昏暗的环境下会采用独立的LCD或者其他光源作为补光,通过提高LCD亮度来获得最大的补光效果。
但是,采用现有技术,当LCD上填充的颜色和环境光的光色差异较大的情况下,白平衡只能按照环境、LCD或者两者的插值来做,但无论哪种方式,遇到这种情况,画面上肯定有一部分是偏色的,给色彩还原造成了很大难度。
发明内容
为了解决上述技术问题,本发明实施例提供了一种拍摄补光的装置、方法及存储介质,能够根据当前环境的相关色温调节对应的三色值来进行补光,从而使得补光后效果与环境光接近,便于色彩还原,提高了用户的体验度。
为了达到本发明实施例目的,第一方面,本发明实施例提供了一种拍摄补光的装置,该装置包括:
检测模块、匹配模块和补光模块;
所述检测模块,设置为检测拍摄时触发补光的条件;
所述匹配模块,设置为确定符合触发补光的条件时,则匹配当前环境下的相关色温对应的三色值;
所述补光模块,设置为根据匹配后的三色值对当前环境下的光线亮度进行补光。
在一个实施例中,所述匹配模块设置为确定符合触发补光的条件时,是指:
所述匹配模块设置为检测接收到触发补光的操作指令时或者检测到当前环境下的光线亮度低于预设阈值时符合触发补光的条件。
在一个实施例中,该装置还包括:建表模块;
所述建表模块设置为匹配当前环境下的相关色温对应的三色值之前,测量图像的每一帧数据相关色温对应的三色值,并建立所述相关色温与所述三色值一一对应的关系表。
在一个实施例中,该装置还包括:缓存模块;
所述缓存模块设置为获取当前的图像的每一帧数据,缓存预定数量的所获取的帧数据的相关色温。
在一个实施例中,所述匹配模块设置为确定符合触发补光的条件时,则根据当前环境下的相关色温匹配对应的三色值,是指:
所述匹配模块设置为确定符合触发补光的条件时,则根据当前缓存后的最后一帧数据的相关色温,从缓存后的所有帧数据中选择符合预定条件的帧数据的相关色温与所述最后一帧数据的相关色温进行求平均值,将求平均值后的相关色温按照预定的匹配规则匹配对应的三色值。
在一个实施例中,所述预定的匹配规则包括:
若求平均值后的相关色温大于所述关系表中相关色温的最大值,则匹 配所述关系表中相关色温的最大值对应的三色值。
在一个实施例中,所述预定的匹配规则包括:
若求平均值后的相关色温小于所述关系表中相关色温的最小值,则匹配所述关系表中相关色温的最小值对应的三色值。
在一个实施例中,所述预定的匹配规则包括:
若求平均值后的相关色温等于所述关系表中的相关色温,则匹配所述关系表中相关色温对应的三色值。
在一个实施例中,所述预定的匹配规则包括:
若求平均值后的相关色温处于所述关系表中第一相关色温和第二相关色温之间,则根据下面的公式获得对应的三色值:
R=Ra+(Rb–Ra)*(CCT–CCTa)/(CCTb–CCTa)
G=Ga+(Gb–Ga)*(CCT–CCTa)/(CCTb–CCTa)
B=Ba+(Bb–Ba)*(CCT–CCTa)/(CCTb–CCTa)
其中:R为求平均值后的相关色温需要匹配的红色值,G为求平均值后的相关色温需要匹配的绿色值,B为为求平均值后的相关色温需要匹配的蓝色值,相关色温(CCT,Correlated Color Temperature)为求平均值后的相关色温,Ra为第一相关色温对应的红色值,Ga为第一相关色温对应的绿色值,Ba为第一相关色温对应的蓝色值,CCTa为第一相关色温,CCTb为第二相关色温。
第二方面,本发明实施例提供了一种拍摄补光的方法,包括:
检测拍摄时触发补光的条件;
确定符合触发补光的条件时,则匹配当前环境下的相关色温对应的三色值;
根据匹配后的三色值对当前环境下的光线亮度进行补光。
在一个实施例中,确定符合触发补光的条件,包括:
检测接收到触发补光的操作指令时或者检测到当前环境下的光线亮度 低于预设阈值时符合触发补光的条件。
在一个实施例中,匹配当前环境下的相关色温对应的三色值之前,还包括:
测量图像的每一帧数据相关色温对应的三色值,并建立所述相关色温与所述三色值一一对应的关系表。
在一个实施例中,检测当前环境下的光线亮度之后,还包括:
实时获取当前图像的每一帧数据,缓存预定数量的所获取的帧数据的相关色温。
在一个实施例中,当前环境下的光线亮度低于预设阈值时,则根据当前环境下的相关色温匹配对应的三色值,包括:
当前环境下的光线亮度低于预设阈值时,则根据当前缓存后的最后一帧数据的相关色温,从缓存后的所有帧数据中选择符合预定条件的帧数据的相关色温与所述最后一帧数据的相关色温进行求平均值,将求平均值后的相关色温按照预定的匹配规则匹配对应的三色值。
在一个实施例中,所述预定的匹配规则包括:
若求平均值后的相关色温大于所述关系表中相关色温的最大值,则匹配所述关系表中相关色温的最大值对应的三色值。
在一个实施例中,所述预定的匹配规则包括:
若求平均值后的相关色温小于所述关系表中相关色温的最小值,则匹配所述关系表中相关色温的最小值对应的三色值。
在一个实施例中,所述预定的匹配规则包括:
若求平均值后的相关色温等于所述关系表中的相关色温,则匹配所述关系表中相关色温对应的三色值。
在一个实施例中,所述预定的匹配规则包括:
若求平均值后的相关色温处于所述关系表中第一相关色温和第二相关 色温之间,则根据下面的公式获得对应的三色值:
R=Ra+(Rb–Ra)*(CCT–CCTa)/(CCTb–CCTa)
G=Ga+(Gb–Ga)*(CCT–CCTa)/(CCTb–CCTa)
B=Ba+(Bb–Ba)*(CCT–CCTa)/(CCTb–CCTa)
其中:R为求平均值后的相关色温需要匹配的红色值,G为求平均值后的相关色温需要匹配的绿色值,B为为求平均值后的相关色温需要匹配的蓝色值,CCT为求平均值后的相关色温,Ra为第一相关色温对应的红色值,Ga为第一相关色温对应的绿色值,Ba为第一相关色温对应的蓝色值,CCTa为第一相关色温,CCTb为第二相关色温。
第三方面,本发明实施例提供了一种拍摄补光的装置,包括:
照相机,设置为检测拍摄时触发补光的条件;
控制器,设置为确定符合触发补光的条件时,则匹配当前环境下的相关色温对应的三色值;
处理器,设置为根据匹配后的三色值对当前环境下的光线亮度进行补光。
第四方面,本发明实施例提供了一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行以上所述的拍摄补光的方法。
本发明实施例提供了一种缓存视频帧的装置、方法及存储介质,包括:检测模块、匹配模块和补光模块,检测拍摄时触发补光的条件,确定符合触发补光的条件时,则匹配当前环境下的相关色温对应的三色值,根据匹配后的三色值对当前环境下的光线亮度进行补光,通过开启拍摄时,根据当前环境的相关色温调节对应的三色值来进行补光,从而使得补光后效果与环境光接近,便于色彩还原,提高了用户的体验度。
本发明实施例的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明实施例而了解。本发 明实施例的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。
附图说明
附图用来提供对本发明技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本发明的技术方案,并不构成对本发明技术方案的限制。
图1为实现本发明各个实施例一个可选的移动终端的硬件结构示意图;
图2为如图1所示的移动终端的无线通信系统示意图;
图3为本发明提供的一种拍摄补光的装置实施例一的结构示意图;
图4为本发明提供的一种拍摄补光的装置实施例二的结构示意图;
图5为本发明提供的一种拍摄补光的方法实施例一的流程示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
现在将参考附图描述实现本发明各个实施例的移动终端。在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身并没有特定的意义。因此,"模块"与"部件"可以混合地使用。
移动终端可以以各种形式来实施。例如,本发明实施例中描述的终端可以包括诸如移动电话、智能电话、笔记本电脑、数字广播接收器、个人数字助理(PDA)、平板电脑(PAD)、便携式多媒体播放器(PMP)、导航装置等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。下面, 假设终端是移动终端。然而,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本发明的实施方式的构造也能够应用于固定类型的终端。
图1为实现本发明各个实施例的移动终端的硬件结构示意。
移动终端100可以包括音频/视频(A/V)输入单元120、用户输入单元、感测单元140、输出单元150、存储器160、控制器180和电源单元190等等。图1示出了具有各种组件的移动终端,但是应理解的是,并不要求实施所有示出的组件。可以替代地实施更多或更少的组件。将在下面详细描述移动终端的元件。
A/V输入单元120用于接收音频或视频信号。A/V输入单元120可以包括相机121,相机121对在视频捕获模式或图像捕获模式中由图像捕获装置获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元151上。经相机121处理后的图像帧可以存储在存储器160(或其它存储介质)中或者经由无线通信单元进行发送,可以根据移动终端的构造提供两个或更多相机121。
用户输入单元130可以根据用户输入的命令生成键输入数据以控制移动终端的各种操作。用户输入单元130允许用户输入各种类型的信息,并且可以包括键盘、锅仔片、触摸板(例如,检测由于被接触而导致的电阻、压力、电容等等的变化的触敏组件)、滚轮、摇杆等等。特别地,当触摸板以层的形式叠加在显示单元151上时,可以形成触摸屏。
感测单元140检测移动终端100的当前状态,(例如,移动终端100的打开或关闭状态)、移动终端100的位置、用户对于移动终端100的接触(即,触摸输入)的有无、移动终端100的取向、移动终端100的加速或减速移动和方向等等,并且生成用于控制移动终端100的操作的命令或信号。例如,当移动终端100实施为滑动型移动电话时,感测单元140可以感测该滑动型 电话是打开还是关闭。另外,感测单元140能够检测电源单元190是否提供电力耦接。感测单元140可以包括接近传感器141将在下面结合触摸屏来对此进行描述。
输出单元150可以包括显示单元151、警报单元153等等。
显示单元151可以显示在移动终端100中处理的信息。例如,当移动终端100处于电话通话模式时,显示单元151可以显示与通话或其它通信(例如,文本消息收发、多媒体文件下载等等)相关的用户界面(UI)或图形用户界面(GUI)。当移动终端100处于视频通话模式或者图像捕获模式时,显示单元151可以显示捕获的图像和/或接收的图像、示出视频或图像以及相关功能的UI或GUI等等。
同时,当显示单元151和触摸板以层的形式彼此叠加以形成触摸屏时,显示单元151可以用作输入装置和输出装置。显示单元151可以包括液晶显示器(LCD)、薄膜晶体管LCD(TFT-LCD)、有机发光二极管(OLED)显示器、柔性显示器、三维(3D)显示器等等中的至少一种。这些显示器中的一些可以被构造为透明状以允许用户从外部观看,这可以称为透明显示器,典型的透明显示器可以例如为透明有机发光二极管(TOLED)显示器等等。根据特定想要的实施方式,移动终端100可以包括两个或更多显示单元(或其它显示装置),例如,移动终端可以包括外部显示单元(未示出)和内部显示单元(未示出)。触摸屏可用于检测触摸输入压力以及触摸输入位置和触摸输入面积。
存储器160可以存储由控制器180执行的处理和控制操作的软件程序等等,或者可以暂时地存储已经输出或将要输出的数据(例如,电话簿、消息、静态图像、视频等等)。而且,存储器160可以存储关于当触摸施加到触摸屏时输出的各种方式的振动和音频信号的数据。
存储器160可以包括至少一种类型的存储介质,所述存储介质包括闪 存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等等。而且,移动终端100可以与通过网络连接执行存储器160的存储功能的网络存储装置协作。
控制器180通常控制移动终端的总体操作。例如,控制器180执行与语音通话、数据通信、视频通话等等相关的控制和处理。另外,控制器180可以包括用于再现(或回放)多媒体数据的多媒体模块181,多媒体模块181可以构造在控制器180内,或者可以构造为与控制器180分离。控制器180可以执行模式识别处理,以将在触摸屏上执行的手写输入或者图片绘制输入识别为字符或图像。
电源单元190在控制器180的控制下接收外部电力或内部电力并且提供操作各元件和组件所需的适当的电力。
这里描述的各种实施方式可以以使用例如计算机软件、硬件或其任何组合的计算机可读介质来实施。对于硬件实施,这里描述的实施方式可以通过使用特定用途集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理装置(DSPD)、可编程逻辑装置(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器、被设计为执行这里描述的功能的电子单元中的至少一种来实施,在一些情况下,这样的实施方式可以在控制器180中实施。对于软件实施,诸如过程或功能的实施方式可以与允许执行至少一种功能或操作的单独的软件模块来实施。软件代码可以由以任何适当的编程语言编写的软件应用程序(或程序)来实施,软件代码可以存储在存储器160中并且由控制器180执行。
至此,已经按照其功能描述了移动终端。下面,为了简要起见,将描述诸如折叠型、直板型、摆动型、滑动型移动终端等等的各种类型的移动 终端中的滑动型移动终端作为示例。因此,本发明实施例能够应用于任何类型的移动终端,并且不限于滑动型移动终端。
如图1中所示的移动终端100可以被构造为利用经由帧或分组发送数据的诸如有线和无线通信系统以及基于卫星的通信系统来操作。现在将参考图2描述其中根据本发明实施例的移动终端能够操作的通信系统。
这样的通信系统可以使用不同的空中接口和/或物理层。例如,由通信系统使用的空中接口包括例如频分多址(FDMA)、时分多址(TDMA)、码分多址(CDMA)和通用移动通信系统(UMTS)(特别地,长期演进(LTE))、全球移动通信系统(GSM)等等。作为非限制性示例,下面的描述涉及CDMA通信系统,但是这样的教导同样适用于其它类型的系统。
参考图2,CDMA无线通信系统可以包括多个移动终端100、多个基站(BS)270、基站控制器(BSC)275和移动交换中心(MSC)280。MSC280被构造为与公共电话交换网络(PSTN)290形成接口。MSC280还被构造为与可以经由回程线路耦接到基站270的BSC275形成接口。回程线路可以根据若干已知的接口中的任一种来构造,所述接口包括例如E1/T1、ATM,IP、PPP、帧中继、HDSL、ADSL或xDSL。将理解的是,如图2中所示的系统可以包括多个BSC275。
每个BS270可以服务一个或多个分区(或区域),由多向天线或指向特定方向的天线覆盖的每个分区放射状地远离BS270。或者,每个分区可以由用于分集接收的两个或更多天线覆盖。每个BS270可以被构造为支持多个频率分配,并且每个频率分配具有特定频谱(例如,1.25MHz,5MHz等等)。
分区与频率分配的交叉可以被称为CDMA信道。BS270也可以被称为基站收发器子系统(BTS)或者其它等效术语。在这样的情况下,术语"基站"可以用于笼统地表示单个BSC275和至少一个BS270。基站也可以被称为"蜂窝站"。或者,特定BS270的各分区可以被称为多个蜂窝站。
如图2中所示,广播发射器(BT)295将广播信号发送给在系统内操作的移动终端100。如图1中所示的广播接收模块111被设置在移动终端100处以接收由BT295发送的广播信号。在图2中,示出了几个全球定位系统(GPS)卫星300。卫星300帮助定位多个移动终端100中的至少一个。
在图2中,描绘了多个卫星300,但是理解的是,可以利用任何数目的卫星获得有用的定位信息。如图1中所示的GPS模块通常被构造为与卫星300配合以获得想要的定位信息。替代GPS跟踪技术或者在GPS跟踪技术之外,可以使用可以跟踪移动终端的位置的其它技术。另外,至少一个GPS卫星300可以选择性地或者额外地处理卫星DMB传输。
作为无线通信系统的一个典型操作,BS270接收来自各种移动终端100的反向链路信号。移动终端100通常参与通话、消息收发和其它类型的通信。特定基站270接收的每个反向链路信号被在特定BS270内进行处理。获得的数据被转发给相关的BSC275。BSC提供通话资源分配和包括BS270之间的软切换过程的协调的移动管理功能。BSC275还将接收到的数据路由到MSC280,其提供用于与PSTN290形成接口的额外的路由服务。类似地,PSTN290与MSC280形成接口,MSC与BSC275形成接口,并且BSC275相应地控制BS270以将正向链路信号发送到移动终端100。
基于上述移动终端硬件结构以及通信系统,本发明实施例主要应用于带有摄像设备的移动终端,该移动终端可以是智能手机、智能手表、照相机、平板电脑等,但并不以此为限。
本发明实施例涉及的装置和方法,旨在解决现有技术中在比较昏暗的环境下进行拍摄时,采用LCD补光效果不佳,不易色彩还原,降低了用户的体验度的技术问题。
下面以具体地实施例对本发明的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实 施例不再赘述。
图3为本发明提供的一种拍摄补光的装置实施例一的结构示意图,如图3所示,包括:检测模块10、匹配模块20和补光模块30。
所述检测模块10,设置为检测拍摄时触发补光的条件。
具体的,所述检测模块10可以在用户使用带有拍摄功能的移动终端时,可以选择开启前置摄像头而触发开启拍摄命令,例如:智能手机,当用户点击摄像头开启按键时,系统默认直接开启后置摄像头,当需要使用前置摄像头是,用户触发切换按键,系统即开启前置摄像头,具体可以根据实际情况来,也可以用户点击摄像头开启按键时,系统默认直接开启前置摄像头,待摄像头开启后,检测模块10可以检测拍摄时触发补光的条件,该条件可以是否接收到用户给出的补光操作指令,这样可以根据用户的需求来强制开启补光操作,或者是检测摄像头捕捉的实时图像数据的当前环境下的光线亮度是否低于预设阈值,这样可以自动根据当前环境的情况来开启补光操作,从而方便用户使用,但并不限于此。
所述匹配模块20,设置为确定符合触发补光的条件时,则匹配当前环境下的相关色温对应的三色值。
具体的,该匹配模块20可以根据检测到拍摄时触发补光的条件的情况,当符合条件时,即接收到用户给出的补光操作指令,或者是检测摄像头捕捉的实时图像数据的当前环境下的光线亮度低于预设阈值时,则对拍摄时的当前环境进行补光,例如:用户现在处于黄昏的海边,光线较暗,可以直接设置当前环境下的拍摄需要进行补光,直接启动匹配模块20,如果处于午后的阳光下,光线充足,可以设置当前环境下的拍摄不需要进行补光,直接关闭匹配模块20,如果是在自动挡时,可以直接设置根据检测模块10检测当前环境下的光线亮度,当前环境下的光线亮度低于预设阈值时,可以触发匹配模块20,该匹配模块20会匹配当前环境下的CCT对应的三色 (R/G/B)值,分别是三原色的红色值、绿色值和蓝色值,通过匹配当前环境下的三色值,即可以使得拍摄的光线亮度与周围的环境相接近,但并不限于此。
所述补光模块30,设置为根据匹配后的三色值对当前环境下的光线亮度进行补光。
具体的,该补光模块30根据上述匹配模块20得到的匹配后的三色(R/G/B)值,根据匹配后的三色(R/G/B)值对当前环境下的光线亮度进行补光,例如:在夜晚的一个黄色路灯下,如果采用白光进行补光,此时,白色光打在了人脸上,而后面的背景是黄色,如果采用按照黄色背景做,人脸会非常显得偏蓝,如果按照人脸补光,背景又会非常黄,而现在通过根据匹配后的三色(R/G/B)值来进行补光,补光的光色根据环境光色变化,做到与环境光尽量接近,可以优化此类场景的色彩还原度,提高了用户体验度。
本发明实施例提供了一种拍摄补光的装置,包括:检测模块、匹配模块和补光模块,所述检测模块设置为检测拍摄时触发补光的条件,所述匹配模块设置为确定符合触发补光的条件时,则匹配当前环境下的相关色温对应的三色值,所述查找模块设置为根据匹配后的三色值对当前环境下的光线亮度进行补光,通过开启拍摄时,根据当前环境的相关色温调节对应的三色值来进行补光,从而使得补光后效果与环境光接近,便于色彩还原,提高了用户的体验度。
进一步地,在上述实施例的基础上,所述匹配模块20设置为确定符合触发补光的条件时,是指:
所述匹配模块20设置为检测接收到触发补光的操作指令时或者检测到当前环境下的光线亮度低于预设阈值时符合触发补光的条件。
具体的,匹配模块20确定符合触发补光的条件时,即接收到用户给出 的补光操作指令时,这样可以根据用户的需求来强制开启补光操作,或者是检测摄像头捕捉的实时图像数据的当前环境下的光线亮度是否低于预设阈值,这样可以自动根据当前环境的情况来开启补光操作,从而方便用户的使用,提高了用户的体验度。
进一步地,图4为本发明提供的一种拍摄补光的装置实施例二的结构示意图,如图4所示,在上述实施例的基础上,该装置还包括:建表模块40;
所述建表模块40设置为匹配当前环境下的相关色温对应的三色值之前,测量图像的每一帧数据相关色温对应的三色值,并建立所述相关色温与所述三色值一一对应的关系表。
具体的,所述建表模块40会预先测量常用场景下的相关色温对应的三色值,比如:从相关色温2000到相关色温5000之间的所对应的三色值都记录下来,可以每隔500测量一组对应的三色值,具体的采样间隔可以根据实际情况来定,建立起相关色温与三色值一一对应的关系表,一般来说采样间隔越密集,后续与该关系表匹配地越精确,可以覆盖的应用场景也就越多,但并不限于此。
通过将所述建表模块40根据常用的应用场景获取各环境下图像的每一帧数据相关色温对应的三色值,并建立所述相关色温与三色值一一对应的关系表,从而便于后续精确地匹配拍摄时所需要补光的对应的三色值,尽快完成色彩还原,提高了用户的满意度。
进一步地,如图4所示,在上述实施例的基础上,该装置还包括:缓存模块50;
所述缓存模块50设置为实时获取当前的图像的每一帧数据,缓存预定数量的所获取的帧数据的相关色温。
具体的,该缓存模块50设置为当启动拍摄时,该缓存模块就会实时获 取当前图像的每一帧数据,并缓存预定数量的所获取的帧数据的相关色温,例如:该缓存模块可以存储30帧的帧数据,当获取到图像的每个帧数据时,会按照一定的算法计算出当前环境的相关色温,但缓存模块只缓存30个最近保存的帧数据的相关色温,具体可以根据实际情况来定,但并不限于此。
通过缓存模块50实时获取当前图像的每一帧数据,缓存预定数量的所获取的帧数据的相关色温,便于了解拍摄当前环境的相关色温,为后续匹配当前环境的相关色温提供了便利。
进一步地,在上述实施例的基础上,所述匹配模块20设置为确定符合触发补光的条件时,则根据当前环境下的相关色温匹配对应的三色值,是指:
所述匹配模块20设置为确定符合触发补光的条件时,则根据当前缓存后的最后一帧数据的相关色温,从缓存后的所有帧数据中选择符合预定条件的帧数据的相关色温与所述最后一帧数据的相关色温进行求平均值,将求平均值后的相关色温按照预定的匹配规则匹配对应的三色值。
具体的,所述匹配模块20确定符合触发补光的条件时,则根据当前缓存后的最后一帧数据的相关色温,从缓存后的所有帧数据中选择符合预定条件色帧数据的相关色温,例如:最后一帧数据的相关色温是2500,则在缓存后的所有帧数据中选择与2500接近的帧数据的相关色温,例如:2400、2550、2600、2450等等符合预定的差值的相关色温,将这些相关色温与最后一帧的相关色温一起求平均值,即平均值为2500,将该相关色温的平均值与按照预定的匹配规则匹配与上述的关系表中对应的三色值,但并不限于此。
通过所述匹配模块20确定符合触发补光的条件时,则根据当前缓存后的最后一帧数据的相关色温,从缓存后的所有帧数据中选择符合预定条件的帧数据的相关色温与所述最后一帧数据的相关色温进行求平均值,将求 平均值后的相关色温按照预定的匹配规则匹配对应的三色值,可以更加真实地根据当前环境来匹配到所需要进行补光的三色值,从而使得补光后效果与环境光接近,便于色彩还原,提高了用户的体验度。
进一步地,在上述实施例的基础上,所述预定的匹配规则包括:
若求平均值后的相关色温大于所述关系表中相关色温的最大值,则匹配所述关系表中相关色温的最大值对应的三色值;
若求平均值后的相关色温小于所述关系表中相关色温的最小值,则匹配所述关系表中相关色温的最小值对应的三色值;
若求平均值后的相关色温等于所述关系表中的相关色温,则匹配所述关系表中相关色温对应的三色值;
若求平均值后的相关色温处于所述关系表中第一相关色温和第二相关色温之间,则根据下面的公式获得对应的三色值:
R=Ra+(Rb–Ra)*(CCT–CCTa)/(CCTb–CCTa)
G=Ga+(Gb–Ga)*(CCT–CCTa)/(CCTb–CCTa)
B=Ba+(Bb–Ba)*(CCT–CCTa)/(CCTb–CCTa)
其中:R为求平均值后的相关色温需要匹配的红色值,G为求平均值后的相关色温需要匹配的绿色值,B为为求平均值后的相关色温需要匹配的蓝色值,CCT为求平均值后的相关色温,Ra为第一相关色温对应的红色值,Ga为第一相关色温对应的绿色值,Ba为第一相关色温对应的蓝色值,CCTa为第一相关色温,CCTb为第二相关色温。
具体的,所述预定的匹配规则给出了当前环境中求平均值后的相关色温来与关系表进行匹配时的具体操作方法,从而不论当前环境中的相关色温有没有在关系表里都可以匹配到对应的三色值,但并不限于此。
通过这些匹配规则来匹配到所需要进行补光的三色值,从而使得补光后效果与环境光接近,便于色彩还原,但并不限于此。
需要说明的是,本发明实施例提供的装置中检测模块10可以设置在感 测单元140或者相机121中,匹配模块20可以设置在图1中的控制器180中,补光模块30可以设置在输出单元150中,建表模块40、缓存模块50可以设置在存储器160中。
图5为本发明提供的一种拍摄补光的方法实施例一的流程示意图,如图5所示,该方法包括:
S101、检测拍摄时触发补光的条件。
具体的,可以在用户使用带有拍摄功能的移动终端时,可以选择开启前置摄像头而触发开启拍摄命令,例如:智能手机,当用户点击摄像头开启按键时,系统默认直接开启后置摄像头,当需要使用前置摄像头是,用户触发切换按键,系统即开启前置摄像头,具体可以根据实际情况来,也可以用户点击摄像头开启按键时,系统默认直接开启前置摄像头,待摄像头开启后,可以检测到摄像头捕捉的实时图像数据的当前环境的光线亮度,从而便于后续判断当前环境的光线亮度是否需要补光,但并不限于此。
S102、确定符合触发补光的条件时,则匹配当前环境下的相关色温对应的三色值。
具体的,可以根据用户的选择来对拍摄进行补光,例如:用户现在处于黄昏的海边,光线较暗,可以直接设置当前环境下的拍摄需要进行补光,直接开启匹配,如果处于午后的阳光下,光线充足,可以设置当前环境下的拍摄不需要进行补光,直接关闭匹配,如果是在自动挡时,可以直接设置根据检测当前环境下的光线亮度的情况,当前环境下的光线亮度低于预设阈值时,可以启动匹配,可以匹配当前环境下的CCT对应的三色(R/G/B)值,分别是三原色的红色值、绿色值和蓝色值,通过匹配当前环境下的三色值,即可以使得拍摄的光线亮度与周围的环境相接近,但并不限于此。
S103、根据匹配后的三色值对当前环境下的光线亮度进行补光。
具体的,根据匹配后的三色(R/G/B)值对当前环境下的光线亮度进行 补光,例如:在夜晚的一个黄色路灯下,如果采用白光进行补光,此时,白色光打在了人脸上,而后面的背景是黄色,如果采用按照黄色背景做,人脸会非常显得偏蓝,如果按照人脸补光,背景又会非常黄,而现在通过根据匹配后的三色(R/G/B)值来进行补光,补光的光色根据环境光色变化,做到与环境光尽量接近,可以优化此类场景的色彩还原度,提高了用户体验度。
本发明实施例提供了一种拍摄补光的方法,包括:检测拍摄时触发补光的条件,确定符合触发补光的条件时,则匹配当前环境下的相关色温对应的三色值,根据匹配后的三色值对当前环境下的光线亮度进行补光,通过开启拍摄时,根据当前环境的相关色温调节对应的三色值来进行补光,从而使得补光后效果与环境光接近,便于色彩还原,提高了用户的体验度。
进一步地,在上述实施例的基础上,确定符合触发补光的条件,包括:
所述匹配模块设置为检测接收到触发补光的操作指令时或者检测到当前环境下的光线亮度低于预设阈值时符合触发补光的条件。
具体的,确定符合触发补光的条件时,可以是检测接收到用户给出的补光操作指令时,这样可以根据用户的需求来强制开启补光操作,或者是检测摄像头捕捉的实时图像数据的当前环境下的光线亮度是否低于预设阈值,这样可以自动根据当前环境的情况来开启补光操作,从而方便用户的使用,提高了用户的体验度。
进一步地,在上述实施例的基础上,匹配当前环境下的相关色温对应的三色值之前,还包括:
测量图像的每一帧数据相关色温对应的三色值,并建立所述相关色温与所述三色值一一对应的关系表。
具体的,可以预先测量常用场景下的相关色温对应的三色值,比如: 从相关色温2000到相关色温5000之间的所对应的三色值都记录下来,可以每隔500测量一组对应的三色值,具体的采样间隔可以根据实际情况来定,建立起相关色温与三色值一一对应的关系表,一般来说采样间隔越密集,后续与该关系表匹配地越精确,可以覆盖的应用场景也就越多,但并不限于此。
通过根据常用的应用场景获取各环境下图像的每一帧数据相关色温对应的三色值,并建立所述相关色温与三色值一一对应的关系表,从而便于后续精确地匹配拍摄时所需要补光的对应的三色值,尽快完成色彩还原,提高了用户的满意度。
进一步地,在上述实施例的基础上,检测当前环境下的光线亮度之后,还包括:
获取当前图像的每一帧数据,缓存预定数量的所获取的帧数据的相关色温。
具体的,当启动拍摄时,该缓存模块就会实时获取当前图像的每一帧数据,并缓存预定数量的所获取的帧数据的相关色温,例如:该缓存模块可以存储30帧的帧数据,当获取到图像的每个帧数据时,会按照一定的算法计算出当前环境的相关色温,但缓存模块只缓存30个最近保存的帧数据的相关色温,具体可以根据实际情况来定,但并不限于此。
通过实时获取当前图像的每一帧数据,缓存预定数量的所获取的帧数据的相关色温,便于了解拍摄当前环境的相关色温,为后续匹配当前环境的相关色温提供了便利。
进一步地,在上述实施例的基础上,当前环境下的光线亮度低于预设阈值时,则根据当前环境下的相关色温匹配对应的三色值,包括:
当前环境下的光线亮度低于预设阈值时,则根据当前缓存后的最后一帧数据的相关色温,从缓存后的所有帧数据中选择符合预定条件的帧数据 的相关色温与所述最后一帧数据的相关色温进行求平均值,将求平均值后的相关色温按照预定的匹配规则匹配对应的三色值。
具体的,确定符合触发补光的条件时,则根据当前缓存后的最后一帧数据的相关色温,从缓存后的所有帧数据中选择符合预定条件色帧数据的相关色温,例如:最后一帧数据的相关色温是2500,则在缓存后的所有帧数据中选择与2500接近的帧数据的相关色温,例如:2400、2550、2600、2450等等符合预定的差值的相关色温,将这些相关色温与最后一帧的相关色温一起求平均值,即平均值为2500,将该相关色温的平均值与按照预定的匹配规则匹配与上述的关系表中对应的三色值,但并不限于此。
通过确定符合触发补光的条件时,则根据当前缓存后的最后一帧数据的相关色温,从缓存后的所有帧数据中选择符合预定条件的帧数据的相关色温与所述最后一帧数据的相关色温进行求平均值,将求平均值后的相关色温按照预定的匹配规则匹配对应的三色值,可以更加真实地根据当前环境来匹配到所需要进行补光的三色值,从而使得补光后效果与环境光接近,便于色彩还原,提高了用户的体验度。
进一步地,在上述实施例的基础上,所述预定的匹配规则包括:
若求平均值后的相关色温大于所述关系表中相关色温的最大值,则匹配所述关系表中相关色温的最大值对应的三色值。
进一步地,在上述实施例的基础上,所述预定的匹配规则包括:
若求平均值后的相关色温小于所述关系表中相关色温的最小值,则匹配所述关系表中相关色温的最小值对应的三色值。
进一步地,在上述实施例的基础上,所述预定的匹配规则包括:
若求平均值后的相关色温小于所述关系表中相关色温的最小值,则匹配所述关系表中相关色温的最小值对应的三色值。
进一步地,在上述实施例的基础上,所述预定的匹配规则包括:
若求平均值后的相关色温处于所述关系表中第一相关色温和第二相关色温之间,则根据下面的公式获得对应的三色值:
R=Ra+(Rb–Ra)*(CCT–CCTa)/(CCTb–CCTa)
G=Ga+(Gb–Ga)*(CCT–CCTa)/(CCTb–CCTa)
B=Ba+(Bb–Ba)*(CCT–CCTa)/(CCTb–CCTa)
其中:R为求平均值后的相关色温需要匹配的红色值,G为求平均值后的相关色温需要匹配的绿色值,B为为求平均值后的相关色温需要匹配的蓝色值,CCT为求平均值后的相关色温,Ra为第一相关色温对应的红色值,Ga为第一相关色温对应的绿色值,Ba为第一相关色温对应的蓝色值,CCTa为第一相关色温,CCTb为第二相关色温。
所述预定的匹配规则给出了当前环境中求平均值后的相关色温来与关系表进行匹配时的具体操作方法,从而不论当前环境中的相关色温有没有在关系表里都可以匹配到对应的三色值,但并不限于此。
通过这些匹配规则来匹配到所需要进行补光的三色值,从而使得补光后效果与环境光接近,便于色彩还原,但并不限于此。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品 的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。也即,本发明实施例还记载了一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行本发明实施例所述拍摄补光的方法。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。
工业实用性
本发明实施例通过检测拍摄时触发补光的条件,确定符合触发补光的条件时,匹配当前环境下的相关色温对应的三色值,根据匹配后的三色值对当前环境下的光线亮度进行补光,通过开启拍摄时,根据当前环境的相关色温调节对应的三色值来进行补光,从而使得补光后效果与环境光接近,便于色彩还原,提高了用户的体验度。

Claims (20)

  1. 一种拍摄补光的装置,包括:检测模块、匹配模块和补光模块;
    所述检测模块,设置为检测拍摄时触发补光的条件;
    所述匹配模块,设置为确定符合触发补光的条件时,则匹配当前环境下的相关色温对应的三色值;
    所述补光模块,设置为根据匹配后的三色值对当前环境下的光线亮度进行补光。
  2. 根据权利要求1所述的装置,其中,所述匹配模块设置为确定符合触发补光的条件时,是指:
    所述匹配模块设置为检测接收到触发补光的操作指令时或者检测到当前环境下的光线亮度低于预设阈值时符合触发补光的条件。
  3. 根据权利要求2所述的装置,其中,还包括:建表模块;
    所述建表模块设置为匹配当前环境下的相关色温对应的三色值之前,测量图像的每一帧数据相关色温对应的三色值,并建立所述相关色温与所述三色值一一对应的关系表。
  4. 根据权利要求1所述的装置,其中,还包括:缓存模块;
    所述缓存模块设置为获取当前的图像的每一帧数据,缓存预定数量的所获取的帧数据的相关色温。
  5. 根据权利要求3所述的装置,其中,所述匹配模块设置为确定符合触发补光的条件时,则根据当前环境下的相关色温匹配对应的三色值,是指:
    所述匹配模块设置为确定符合触发补光的条件时,则根据当前缓存后的最后一帧数据的相关色温,从缓存后的所有帧数据中选择符合预定条件的帧数据的相关色温与所述最后一帧数据的相关色温进行求平均值,将求 平均值后的相关色温按照预定的匹配规则匹配对应的三色值。
  6. 根据权利要求5所述的装置,其中,所述预定的匹配规则包括:
    若求平均值后的相关色温大于所述关系表中相关色温的最大值,则匹配所述关系表中相关色温的最大值对应的三色值。
  7. 根据权利要求5所述的装置,其中,所述预定的匹配规则包括:
    若求平均值后的相关色温小于所述关系表中相关色温的最小值,则匹配所述关系表中相关色温的最小值对应的三色值。
  8. 根据权利要求5所述的装置,其中,所述预定的匹配规则包括:
    若求平均值后的相关色温等于所述关系表中的相关色温,则匹配所述关系表中相关色温对应的三色值。
  9. 根据权利要求5所述的装置,其中,所述预定的匹配规则包括:
    若求平均值后的相关色温处于所述关系表中第一相关色温和第二相关色温之间,则根据下面的公式获得对应的三色值:
    R=Ra+(Rb–Ra)*(CCT–CCTa)/(CCTb–CCTa)
    G=Ga+(Gb–Ga)*(CCT–CCTa)/(CCTb–CCTa)
    B=Ba+(Bb–Ba)*(CCT–CCTa)/(CCTb–CCTa)
    其中:R为求平均值后的相关色温需要匹配的红色值,G为求平均值后的相关色温需要匹配的绿色值,B为为求平均值后的相关色温需要匹配的蓝色值,CCT为求平均值后的相关色温,Ra为第一相关色温对应的红色值,Ga为第一相关色温对应的绿色值,Ba为第一相关色温对应的蓝色值,CCTa为第一相关色温,CCTb为第二相关色温。
  10. 一种拍摄补光的方法,包括:
    检测拍摄时触发补光的条件;
    确定符合触发补光的条件时,则匹配当前环境下的相关色温对应的三色值;
    根据匹配后的三色值对当前环境下的光线亮度进行补光。
  11. 根据权利要求10所述的方法,其中,确定符合触发补光的条件,包括:
    检测接收到触发补光的操作指令时或者检测到当前环境下的光线亮度低于预设阈值时符合触发补光的条件。
  12. 根据权利要求11所述的方法,其中,匹配当前环境下的相关色温对应的三色值之前,还包括:
    测量图像的每一帧数据相关色温对应的三色值,并建立所述相关色温与所述三色值一一对应的关系表。
  13. 根据权利要求10所述的方法,其中,检测当前环境下的光线亮度之后,还包括:
    实时获取当前图像的每一帧数据,缓存预定数量的所获取的帧数据的相关色温。
  14. 根据权利要求12所述的方法,其中,当前环境下的光线亮度低于预设阈值时,则根据当前环境下的相关色温匹配对应的三色值,包括:
    当前环境下的光线亮度低于预设阈值时,则根据当前缓存后的最后一帧数据的相关色温,从缓存后的所有帧数据中选择符合预定条件的帧数据的相关色温与所述最后一帧数据的相关色温进行求平均值,将求平均值后的相关色温按照预定的匹配规则匹配对应的三色值。
  15. 根据权利要求14所述的方法,其中,所述预定的匹配规则包括:
    若求平均值后的相关色温大于所述关系表中相关色温的最大值,则匹配所述关系表中相关色温的最大值对应的三色值。
  16. 根据权利要求14所述的方法,其中,所述预定的匹配规则包括:
    若求平均值后的相关色温小于所述关系表中相关色温的最小值,则匹配所述关系表中相关色温的最小值对应的三色值。
  17. 根据权利要求14所述的方法,其中,所述预定的匹配规则包括:
    若求平均值后的相关色温等于所述关系表中的相关色温,则匹配所述关系表中相关色温对应的三色值。
  18. 根据权利要求14所述的方法,其中,所述预定的匹配规则包括:
    若求平均值后的相关色温处于所述关系表中第一相关色温和第二相关色温之间,则根据下面的公式获得对应的三色值:
    R=Ra+(Rb–Ra)*(CCT–CCTa)/(CCTb–CCTa)
    G=Ga+(Gb–Ga)*(CCT–CCTa)/(CCTb–CCTa)
    B=Ba+(Bb–Ba)*(CCT–CCTa)/(CCTb–CCTa)
    其中:R为求平均值后的相关色温需要匹配的红色值,G为求平均值后的相关色温需要匹配的绿色值,B为为求平均值后的相关色温需要匹配的蓝色值,CCT为求平均值后的相关色温,Ra为第一相关色温对应的红色值,Ga为第一相关色温对应的绿色值,Ba为第一相关色温对应的蓝色值,CCTa为第一相关色温,CCTb为第二相关色温。
  19. 一种拍摄补光的装置,包括:
    照相机,设置为检测拍摄时触发补光的条件;
    控制器,设置为确定符合触发补光的条件时,则匹配当前环境下的相关色温对应的三色值;
    处理器,设置为根据匹配后的三色值对当前环境下的光线亮度进行补光。
  20. 一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行前述权利要求10至18任一项所述的拍摄补光的方法。
PCT/CN2017/074758 2016-04-29 2017-02-24 一种拍摄补光的装置、方法及存储介质 WO2017185870A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610283520.7A CN105791711A (zh) 2016-04-29 2016-04-29 一种拍摄补光的装置和方法
CN201610283520.7 2016-04-29

Publications (1)

Publication Number Publication Date
WO2017185870A1 true WO2017185870A1 (zh) 2017-11-02

Family

ID=56401461

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/074758 WO2017185870A1 (zh) 2016-04-29 2017-02-24 一种拍摄补光的装置、方法及存储介质

Country Status (2)

Country Link
CN (1) CN105791711A (zh)
WO (1) WO2017185870A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110808002A (zh) * 2019-11-28 2020-02-18 北京迈格威科技有限公司 屏幕的显示补偿方法、装置及电子设备
CN114359473A (zh) * 2021-11-30 2022-04-15 长沙宏达威爱信息科技有限公司 一种文创产品vr虚拟展示系统

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791711A (zh) * 2016-04-29 2016-07-20 努比亚技术有限公司 一种拍摄补光的装置和方法
CN106254788A (zh) * 2016-07-21 2016-12-21 努比亚技术有限公司 一种移动终端及控制方法
CN106470319B (zh) * 2016-09-13 2019-06-21 努比亚技术有限公司 一种信息处理方法及设备
CN106973225A (zh) * 2017-03-17 2017-07-21 惠州Tcl移动通信有限公司 一种移动终端基于屏幕补光的拍照方法及系统
CN111726542A (zh) * 2020-06-12 2020-09-29 Oppo广东移动通信有限公司 一种摄像头补光方法及终端、存储介质
CN111800568B (zh) * 2020-08-06 2021-11-05 珠海格力电器股份有限公司 补光方法及装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102955326A (zh) * 2011-08-25 2013-03-06 宏碁股份有限公司 提供可调式补光的电子装置
GB2494537A (en) * 2011-09-08 2013-03-13 Rotolight Ltd Lighting system
CN103312986A (zh) * 2013-06-08 2013-09-18 康佳集团股份有限公司 一种基于移动终端的前置拍照补光方法及移动终端
CN103686100A (zh) * 2012-09-24 2014-03-26 宏达国际电子股份有限公司 移动通讯装置及闪光控制方法
CN105049742A (zh) * 2015-08-21 2015-11-11 上海与德通讯技术有限公司 一种移动终端及双色温补偿方法
CN105791711A (zh) * 2016-04-29 2016-07-20 努比亚技术有限公司 一种拍摄补光的装置和方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104349149B (zh) * 2013-08-07 2018-03-23 联想(北京)有限公司 一种图像成像效果调整方法及电子设备
CN108111772B (zh) * 2014-12-04 2020-12-22 Oppo广东移动通信有限公司 一种拍摄方法及终端
CN104506772A (zh) * 2014-12-22 2015-04-08 小米科技有限责任公司 拍摄参数调节方法和装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102955326A (zh) * 2011-08-25 2013-03-06 宏碁股份有限公司 提供可调式补光的电子装置
GB2494537A (en) * 2011-09-08 2013-03-13 Rotolight Ltd Lighting system
CN103686100A (zh) * 2012-09-24 2014-03-26 宏达国际电子股份有限公司 移动通讯装置及闪光控制方法
CN103312986A (zh) * 2013-06-08 2013-09-18 康佳集团股份有限公司 一种基于移动终端的前置拍照补光方法及移动终端
CN105049742A (zh) * 2015-08-21 2015-11-11 上海与德通讯技术有限公司 一种移动终端及双色温补偿方法
CN105791711A (zh) * 2016-04-29 2016-07-20 努比亚技术有限公司 一种拍摄补光的装置和方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110808002A (zh) * 2019-11-28 2020-02-18 北京迈格威科技有限公司 屏幕的显示补偿方法、装置及电子设备
CN114359473A (zh) * 2021-11-30 2022-04-15 长沙宏达威爱信息科技有限公司 一种文创产品vr虚拟展示系统

Also Published As

Publication number Publication date
CN105791711A (zh) 2016-07-20

Similar Documents

Publication Publication Date Title
WO2017185870A1 (zh) 一种拍摄补光的装置、方法及存储介质
CN106791472B (zh) 一种曝光方法及终端
WO2018019124A1 (zh) 一种图像处理方法及电子设备、存储介质
CN106454121B (zh) 双摄像头拍照方法及装置
CN106502693B (zh) 一种图像显示方法和装置
WO2017045650A1 (zh) 一种图片处理方法及终端
WO2017050115A1 (zh) 一种图像合成方法和装置
CN105704282B (zh) 摄像头检测方法及装置
CN111586282B (zh) 拍摄方法、装置、终端及可读存储介质
WO2017071476A1 (zh) 一种图像合成方法和装置、存储介质
WO2017071599A1 (zh) 一种分屏大小实时调整方法、分屏装置及计算机存储介质
WO2016107308A1 (zh) 显示装置、显示终端及其显示控制方法、计算机存储介质
WO2018019128A1 (zh) 一种夜景图像的处理方法和移动终端
WO2017206657A1 (zh) 一种图像处理方法、装置、移动终端及计算机存储介质
WO2018045961A1 (zh) 一种图片处理方法及终端、存储介质
WO2017152748A1 (zh) 一种截屏方法及终端、计算机存储介质
CN106534552B (zh) 移动终端及其拍照方法
CN108810422B (zh) 拍摄环境的补光方法、装置及计算机可读存储介质
CN105959551A (zh) 一种拍摄装置及方法、移动终端
WO2017071542A1 (zh) 图像处理方法及装置
WO2017071469A1 (zh) 一种移动终端和图像拍摄方法、计算机存储介质
WO2017067523A1 (zh) 图像处理方法、装置及移动终端
WO2016070681A1 (zh) 调节屏幕色温的方法、装置和计算机存储介质
WO2017071532A1 (zh) 一种自拍合影的方法和装置
CN106973227A (zh) 基于双摄像头的智能拍照方法及装置

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17788526

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 26.03.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17788526

Country of ref document: EP

Kind code of ref document: A1