CN106303271B - Picture exposure method and terminal - Google Patents

Picture exposure method and terminal Download PDF

Info

Publication number
CN106303271B
CN106303271B CN201610609126.8A CN201610609126A CN106303271B CN 106303271 B CN106303271 B CN 106303271B CN 201610609126 A CN201610609126 A CN 201610609126A CN 106303271 B CN106303271 B CN 106303271B
Authority
CN
China
Prior art keywords
pixel
current
exposure value
electronic signal
exposure
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201610609126.8A
Other languages
Chinese (zh)
Other versions
CN106303271A (en
Inventor
马亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo Shangshan Brand Creativity Co.,Ltd.
Original Assignee
Wenzhou Qingmiao Film And Television Media Co Ltd
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 Wenzhou Qingmiao Film And Television Media Co Ltd filed Critical Wenzhou Qingmiao Film And Television Media Co Ltd
Priority to CN201610609126.8A priority Critical patent/CN106303271B/en
Publication of CN106303271A publication Critical patent/CN106303271A/en
Application granted granted Critical
Publication of CN106303271B publication Critical patent/CN106303271B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/73Circuitry for compensating brightness variation in the scene by influencing the exposure time

Abstract

The embodiment of the invention discloses a picture exposure method, which comprises the following steps: previewing a current exposure value of a current pixel of a picture, wherein the current exposure value is used for representing the pixel brightness of the current pixel; adjusting the next exposure time and the next electronic signal amplification gain of a next pixel according to the current exposure value, wherein the next pixel is the next pixel of the current pixel; and determining the next exposure value of the next pixel according to the adjusted next exposure time and the adjusted next electronic signal amplification gain. The embodiment of the invention also discloses a terminal.

Description

Picture exposure method and terminal
Technical Field
The invention relates to the technical field of photographing, in particular to a picture exposure method and a terminal.
Background
With the development of science and technology, the use of terminals, especially mobile phones, has reached a state of popularization, and in order to meet the living needs of users, the functions of mobile phones are more and more abundant, especially the entertainment functions of mobile phones, such as taking pictures, games, music, and the like. With continuous optimization of the components of the camera of the mobile phone and convenience of capturing scenes of daily life, the mobile phone photographing has gradually replaced digital cameras in certain scenes. Therefore, the quality of the pictures taken by the mobile phone is a great concern for users.
In the prior art, in order to improve the quality of pictures photographed by a mobile phone, the whole picture is subjected to uniform exposure processing, so that the quality of the pictures after uniform exposure is improved compared with the quality of the pictures before uniform exposure.
In the actual process of taking a picture by a mobile phone, the exposure value of the taken picture depends on the current scene, and in general, different areas in the picture need different exposure values from the aesthetic point of view, so that the unified exposure of the picture does not take the actual problem that different areas in the picture need different exposure values into consideration, thereby affecting the aesthetic feeling of the picture taken by the mobile phone.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present invention are expected to provide a picture exposure processing method and a terminal, which can perform different exposure processing on different areas in a picture according to the actual situation of the picture when the picture is exposed, so as to enhance the aesthetic feeling of the picture photographed by a mobile phone.
The technical scheme of the invention is realized as follows:
in one aspect, a method for exposing a picture is provided, including:
previewing a current exposure value of a current pixel of a picture, wherein the current exposure value is used for representing the pixel brightness of the current pixel;
adjusting the next exposure time and the next electronic signal amplification gain of a next pixel according to the current exposure value, wherein the next pixel is the next pixel of the current pixel;
and determining the next exposure value of the next pixel according to the adjusted next exposure time and the adjusted next electronic signal amplification gain.
Optionally, the adjusting the next exposure time and the next electronic signal amplification gain of the next pixel according to the current exposure value includes:
judging whether the current pixel is over-exposed or not according to the current exposure value;
shortening the next exposure time and/or reducing the next electronic signal amplification gain when the current pixel is overexposed.
Optionally, the method further includes:
judging whether the current pixel is under-exposed or not according to the current exposure value;
and when the current pixel is under-exposed, prolonging the next exposure time and/or increasing the next electronic signal amplification gain.
Optionally, the exposure value increases with an increase in exposure time and/or an increase in gain of amplification of the electronic signal;
alternatively, the exposure value decreases with a decrease in exposure time and/or a decrease in electronic signal amplification gain.
Optionally, before the current exposure value of the current pixel of the preview picture, the method further includes:
previewing a first exposure value of a first pixel of the picture, the first pixel being a first pixel returned by the picture.
In a second aspect, a terminal is provided, which includes:
the preview module is used for previewing a current exposure value of a current pixel of a picture, and the current exposure value is used for representing the pixel brightness of the current pixel;
the adjusting module is used for adjusting the next exposure time and the next electronic signal amplification gain of a next pixel according to the current exposure value, wherein the next pixel is the next pixel of the current pixel;
and the determining module is used for determining the next exposure value of the next pixel according to the adjusted next exposure time and the adjusted next electronic signal amplification gain.
Optionally, the adjusting module is specifically configured to:
judging whether the current pixel is over-exposed or not according to the current exposure value;
shortening the next exposure time and/or reducing the next electronic signal amplification gain when the current pixel is overexposed.
Optionally, the adjusting module is further specifically configured to:
judging whether the current pixel is under-exposed or not according to the current exposure value;
and when the current pixel is under-exposed, prolonging the next exposure time and/or increasing the next electronic signal amplification gain.
Optionally, the exposure value increases with an increase in exposure time and/or an increase in gain of amplification of the electronic signal;
alternatively, the exposure value decreases with a decrease in exposure time and/or a decrease in electronic signal amplification gain.
Optionally, the preview module is further configured to preview a first exposure value of a first pixel of the picture, where the first pixel is a first pixel returned by the picture.
The embodiment of the invention provides a picture exposure method and a terminal, firstly, previewing a current exposure value of a current pixel of a picture, wherein the current exposure value is used for representing the pixel brightness of the current pixel; then, according to the current exposure value, adjusting the next exposure time and the next electronic signal amplification gain of the next pixel, wherein the next pixel is the next pixel of the current pixel; and then, determining the next exposure value of the next pixel according to the adjusted next exposure time and the adjusted next electronic signal amplification gain. Therefore, whether the current pixel is over-exposed or under-exposed can be analyzed by previewing the current exposure value, and then the next exposure time and the next electronic signal amplification gain of the next pixel can be correspondingly adjusted, so that the purpose of improving the next exposure value of the next pixel is achieved.
Drawings
Fig. 1 is a schematic hardware configuration diagram of an alternative mobile terminal implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
FIG. 3 is a flowchart of a method for exposing a picture according to an embodiment of the present invention;
FIG. 4 is a flowchart of another method for exposing a picture according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as 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, etc., and a stationary terminal such as a digital TV, a desktop computer, etc. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a terminal of a fixed property in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic diagram of a hardware structure of an alternative mobile terminal for implementing various embodiments of the present invention.
The mobile terminal 100 may include an audio/video (a/V) input unit 120, a user input unit 130, an output unit 150, a memory 160, a controller 180, a power supply unit 190, and the like. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.
The a/V input unit 120 is used to receive an audio or video signal. The a/V input unit 120 may include a camera 121, and the camera 121 processes image data of still pictures or video obtained by an image capturing apparatus in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 151. The image frames processed by the cameras 121 may be stored in the memory 160 (or other storage medium), and two or more cameras 121 may be provided according to the construction of the mobile terminal.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal. The user input unit 130 allows a user to input information of various attributes, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects a change in resistance, pressure, capacitance, etc. due to being touched), scroll wheel, joystick, etc. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
In addition, the output unit 150 is configured to provide output signals (e.g., audio signals, video signals, alarm signals, vibration signals, etc.) in a visual, audio, and/or tactile manner when the mobile terminal 100 is connected with an external cradle.
The output unit 150 may include a display unit 151.
The display unit 151 may 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 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, 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 an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may serve 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. Some of these displays may be configured to be transparent to allow a user to see from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a Transparent Organic Light Emitting Diode (TOLED) display or the like. Depending on the particular desired implementation, 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 may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The memory 160 may store software programs and the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one attribute of a storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and so forth. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, and the multimedia module 181 may be constructed within the controller 180 or may be constructed separately 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 and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Up to this point, mobile terminals have been described in terms of their functionality. Hereinafter, a slide-type mobile terminal among mobile terminals of various attributes, such as a folder-type, bar-type, swing-type, slide-type mobile terminal, and the like, will be described as an example for the sake of brevity. Therefore, the present invention can be applied to a mobile terminal of any attribute, and is not limited to a slide type mobile terminal.
The mobile terminal 100 as shown in fig. 1 may be configured to operate with communication systems such as wired and wireless communication systems and satellite-based communication systems that transmit data via frames or packets.
A communication system in which a mobile terminal according to the present invention is operable will now be described with reference to fig. 2.
Such communication systems may use different air interfaces and/or physical layers. For example, the air interface used by the communication system includes, 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), and the like. By way of non-limiting example, the following description relates to a CDMA communications system, but such teachings are equally applicable to systems of other nature.
Referring to fig. 2, the CDMA wireless communication system may include a plurality of mobile terminals 100, a plurality of Base Stations (BSs) 270, Base Station Controllers (BSCs) 275, and a Mobile Switching Center (MSC) 280. The MSC280 is configured to interface with a Public Switched Telephone Network (PSTN) 290. The MSC280 is also configured to interface with a BSC275, which may be coupled to the base station 270 via a backhaul. The backhaul may be constructed according to any of several known interfaces including, for example, E1/T1, ATM, IP, PPP, frame Relay, HDSL, ADSL, or xDSL. It will be understood that a system as shown in fig. 2 may include multiple BSCs 275.
Each BS270 may serve one or more sectors (or regions), each sector covered by a multi-directional antenna or an antenna pointing in a particular direction being radially distant from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS270 may be configured to support multiple frequency allocations, with each frequency allocation having a particular frequency spectrum (e.g., 1.25MHz,5MHz, etc.).
The intersection of partitions with frequency allocations may be referred to as a CDMA channel. The BS270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology. In such a case, the term "base station" may be used to generically refer to a single BSC275 and at least one BS 270. The base stations may also be referred to as "cells". Alternatively, each sector of a particular BS270 may be referred to as a plurality of cell sites.
As shown in fig. 2, a Broadcast Transmitter (BT)295 transmits a broadcast signal to the mobile terminal 100 operating within the system. The broadcast receiving module 111 is provided at the mobile terminal 100 to receive a broadcast signal transmitted by the BT 295. In fig. 2, several Global Positioning System (GPS) satellites 300 are shown. The satellite 300 assists in locating at least one of the plurality of mobile terminals 100.
In fig. 2, a plurality of satellites 300 are depicted, but it is understood that useful positioning information may be obtained with any number of satellites. The GPS module 115 is generally configured to cooperate with the satellites 300 to obtain desired positioning information. Other techniques that can track the location of the mobile terminal may be used instead of or in addition to GPS tracking techniques. In addition, at least one GPS satellite 300 may selectively or additionally process satellite DMB transmissions.
As a typical operation of the wireless communication system, the BS270 receives reverse link signals from various mobile terminals 100. The mobile terminal 100 is typically engaged in communications for telephony, messaging, and other attributes. Each reverse link signal received by a particular base station 270 is processed within the particular BS 270. The obtained data is forwarded to the associated BSC 275. The BSC provides call resource allocation and mobility management functions including coordination of soft handoff procedures between BSs 270. The BSCs 275 also route the received data to the MSC280, which provides additional routing services for interfacing with the PSTN 290. Similarly, the PSTN290 interfaces with the MSC280, the MSC interfaces with the BSCs 275, and the BSCs 275 accordingly control the BS270 to transmit forward link signals to the mobile terminal 100.
Example one
The embodiment of the invention provides a picture exposure method, which is applied to terminals, wherein the terminals comprise mobile phones, digital cameras and other terminals with a photographing function, and as shown in figure 3, the method comprises the following steps:
step 101, previewing the current exposure value of the current pixel of the picture.
Here, the current exposure value is used to represent the pixel brightness of the current pixel.
The sensitivity (ISO) is a measure of the sensitivity of the film to light, and is determined by sensitivity measurement and several measurements, and the ISO standard is ISO 6. For a film that is less sensitive to light, it takes longer to expose to achieve the same image as a more sensitive film, and is therefore commonly referred to as a slow film. Highly sensitive negatives are thus referred to as fast negatives. An ISO system closely related to sensitivity is used to measure the sensitivity of digital imaging systems. Whether digital or film photography, the relatively higher sensitivity used to reduce exposure time often results in reduced image quality (due to coarser film particles or higher image noise or other factors). Basically, the quality of the photograph is poor with a higher sensitivity.
ISO is the term of the film at the earliest, but with the rapid development of mobile phones, especially the photographing technology of mobile phones, ISO is also applied to mobile phones, and in the application of mobile phones, ISO is higher and more sensitive to light, the feeling of photographing is brighter, but more noise is generated, and the imaging quality is poorer, namely blurred. Generally, the lower the ISO value is, the higher the quality of the photo is, the finer the detail expression of the photo is, the higher the ISO value is, the higher the brightness of the photo is, and the quality of the photo is reduced along with the increase of the ISO value, so that the noise point becomes more and more serious, but the high ISO value can make up for the deficiency of light.
For example, in a dark environment, the higher the ISO, the brighter the image, the brighter the photograph taken, and if the ISO value is low, the darker the photograph taken.
The exposure value is proportional to ISO, where the case of pumping tap water from a bucket is used to make a comparison, the exposure value corresponds to the amount of tap water in the bucket, and ISO corresponds to the rate at which the water bucket is filled with tap water. I.e. the exposure value increases with increasing ISO in the same time.
The terminal receives the picture by taking the pixel as a unit, can acquire the current exposure value of the current pixel, and previews the current exposure value for judging whether the current exposure value is proper or not.
Specifically, the exposure value increases with the extension of the exposure time and/or the increase of the gain of amplification of the electronic signal; or, the exposure value is reduced along with the shortening of the exposure time and/or the reduction of the electronic signal amplification gain, namely, when the exposure time is prolonged and/or the electronic signal amplification gain is increased, the exposure value is increased; when the exposure time is shortened and/or the electronic signal amplification gain is reduced, the exposure value is reduced.
For example, in a mobile phone, the exposure value of each pixel in a picture can be controlled by controlling a sensor, and specifically, the exposure time and the electronic signal amplification gain of the sensor are controlled to control the corresponding exposure value. It is worth noting that increasing the exposure time and/or increasing the gain of the electronic signal amplification will increase the exposure value. Here, the sensor refers to a camera component in the mobile phone, and preferably, the camera component is a photodiode.
And 102, adjusting the next exposure time of the next pixel and the next electronic signal amplification gain according to the current exposure value.
Here, the next pixel refers to a pixel next to the current pixel, and may be a pixel next to the current pixel, or a pixel next to the current pixel, which is determined according to a preset rule and conforms to the preset rule.
The current exposure value obtained in step 101 is analyzed, and there may be three cases as the analysis result:
in case one, the current exposure value is too high, i.e. the current pixel is over-exposed;
in case two, the current exposure value is too low, that is, the current pixel is underexposed;
and in the third case, the current exposure value is just right, which indicates that the two parameters of the exposure time and the electronic signal amplification gain transmitted by the sensor are appropriate at the moment, the modification is not needed, and the sensor works normally.
Specifically, whether the current pixel is over-exposed is judged according to the current exposure value; when the current pixel is overexposed, the next exposure time is shortened and/or the next electronic signal amplification gain is reduced.
This is equivalent to guiding the next exposure time and the next electronic signal amplification gain of the next pixel according to the current exposure condition of the current pixel. When the received current exposure value is judged to be too high, that is, the current pixel is over-exposed, because the two parameters of the exposure time and the electronic signal amplification gain of all the sensors are the same in the initial condition, the situation that the next pixel is over-exposed is also indicated, and in order to correct the over-exposure situation, the next exposure time and the next electronic signal amplification gain need to be adjusted. The exposure value is in direct proportion to the exposure time, and meanwhile, the exposure value is in direct proportion to the electronic signal amplification gain. At this time, the next exposure value of the next pixel can be reduced by shortening the next exposure time and/or reducing the next electronic signal amplification gain, thereby solving the problem of overexposure of the next pixel. Making the next pixel more aesthetically pleasing to the user.
Specifically, whether the current pixel is under-exposed is judged according to the current exposure value; when the current pixel is underexposed, the next exposure time is extended and/or the next electronic signal amplification gain is increased.
When the received current exposure value is judged to be too low, that is, the current pixel is underexposed, because the two parameters of the exposure time and the electronic signal amplification gain of all the sensors are the same in the initial condition, the next pixel is also underexposed, and in order to correct the underexposure condition, the next exposure time and the next electronic signal amplification gain need to be adjusted. The exposure value is in direct proportion to the exposure time, and meanwhile, the exposure value is in direct proportion to the electronic signal amplification gain. At this time, the next exposure value of the next pixel can be increased by prolonging the next exposure time and/or increasing the next electronic signal amplification gain, thereby solving the problem of underexposure of the next pixel. Making the next pixel more aesthetically pleasing to the user.
It should be noted that the values of the two parameters of the next exposure time and the next electronic signal amplification gain determined in this embodiment are not unique, because only one parameter of the next exposure time, one parameter of the next electronic signal amplification gain, and both the next exposure time and the next electronic signal amplification gain can be adjusted as long as the next exposure value determined by the two parameters is kept to be appropriate.
And 103, determining the next exposure value of the next pixel according to the next exposure time after the next adjustment and the amplification gain of the next electronic signal after the adjustment.
As mentioned in step 102, the exposure value is proportional to the exposure time, and the exposure value is proportional to the amplification gain of the electronic signal, and the adjusted next exposure time and the adjusted next amplification gain of the electronic signal can be obtained in step 102. Preferably, the exposure value is equal to the product of the exposure time and the gain of amplification of the electronic signal.
Prior to step 101, the method further comprises previewing a first exposure value for a first pixel of the picture, the first pixel being the first pixel returned by the picture.
This is the case when the terminal receives the first pixel of the picture, where the process of determining the exposure value of each pixel and the exposure value of the next pixel is a loop. In this embodiment, the determination process is described by taking only one cycle as an example, and the determination process of the exposure value of other pixels is completely the same as the determination process of the exposure value of the illustrated pixel, and therefore, the detailed description thereof is omitted.
It should be noted that in this embodiment, the picture is independently exposed by taking the pixel as the exposure unit, but the exposure unit is not limited in this embodiment, for example, the size of the exposure unit may be determined according to the actual scene and the size of the picture, for example, the exposure unit may be a block or an area of the picture, and the exposure unit may be customized by the user.
Therefore, whether the current pixel is over-exposed or under-exposed can be analyzed by previewing the current exposure value, and then the next exposure time and the next electronic signal amplification gain of the next pixel can be correspondingly adjusted, so that the purpose of improving the next exposure value of the next pixel is achieved.
Example two
The picture exposure method provided by the embodiment of the invention is applied to a terminal, and supposing that in the afternoon of a certain bright sunshine, a certain company employee S wants to use a mobile phone P to take a picture T of a tree in backlight, in the embodiment, pixel-based independent exposure is adopted, as shown in fig. 4, the method includes:
step 201, receiving the ith pixel of T.
When S takes a picture T by P, T returns to P in pixel units, wherein the ith pixel received by P is taken as the ith pixel, i is 1,2,3 … … n, and n is the total number of pixels contained in T. It should be noted that when i takes 1, the ith exposure value of the ith pixel can be directly received.
Step 202, previewing the ith exposure value of the ith pixel.
Step 203, judging whether the ith pixel is over-exposed according to the ith exposure value, if so, executing step 204; otherwise step 205 is performed.
When the ith exposure value is larger, the ith pixel is judged to be over-exposed.
In connection with the present embodiment, these overexposed pixels are basically pixels other than the subject tree to be photographed.
And step 204, shortening the exposure time of the (i + 1) th pixel and/or reducing the electronic signal amplification gain of the (i + 1) th pixel.
When the ith pixel is over-exposed, the exposure time of the (i + 1) th pixel and/or the electronic signal amplification gain of the (i + 1) th pixel are/is immediately adjusted, and specifically, the exposure time of the (i + 1) th pixel is shortened and/or the electronic signal amplification gain of the (i + 1) th pixel is/are reduced. This reduces the exposure value.
Step 205, determining whether the ith pixel is under-exposed according to the ith exposure value, if so, executing step 206; otherwise, step 207 is performed.
When the ith exposure value is smaller, it can be determined that the ith pixel is under-exposed.
In connection with the present embodiment, these underexposed pixels are basically the pixels where the subject tree is located.
And step 206, prolonging the exposure time of the (i + 1) th pixel and/or increasing the electronic signal amplification gain of the (i + 1) th pixel.
When the ith pixel is under-exposed, the exposure time of the (i + 1) th pixel and/or the electronic signal amplification gain of the (i + 1) th pixel are/is immediately adjusted, and specifically, the exposure time of the (i + 1) th pixel is prolonged and/or the electronic signal amplification gain of the (i + 1) th pixel is increased. This increases the exposure value.
It should be noted that the two determinations of step 203 and step 205 are not in sequential order.
Step 207, determining whether all pixels of T have been received, if yes, performing step 208, otherwise, performing step 201.
This embodiment processes each pixel in the picture independently, so that all pixels of T are received in sequence. And the same processing will be performed for all pixels except the first pixel.
And step 208, outputting T.
And when all the pixels in the T are received, outputting the T subjected to independent exposure by pixels. Here, the output T causes the photographic subject (here specifically the tree) to be bright, clear and prominent, with the rest darkened. This results in a more beautiful picture than a uniform exposure.
Therefore, whether the current pixel is over-exposed or under-exposed can be analyzed by previewing the current exposure value, and then the next exposure time and the next electronic signal amplification gain of the next pixel can be correspondingly adjusted, so that the purpose of improving the next exposure value of the next pixel is achieved.
EXAMPLE III
An embodiment of the present invention provides a terminal 30, as shown in fig. 5, where the terminal 30 includes:
a preview module 301, configured to preview a current exposure value of a current pixel of a picture, where the current exposure value is used to represent a pixel brightness of the current pixel;
an adjusting module 302, configured to adjust a next exposure time and a next electronic signal amplification gain of a next pixel according to the current exposure value, where the next pixel is a next pixel of the current pixel;
the determining module 303 is configured to determine a next exposure value of a next pixel according to the adjusted next exposure time and the adjusted next electronic signal amplification gain.
Therefore, whether the current pixel is over-exposed or under-exposed can be analyzed by previewing the current exposure value, and then the next exposure time and the next electronic signal amplification gain of the next pixel can be correspondingly adjusted, so that the purpose of improving the next exposure value of the next pixel is achieved.
Specifically, the adjusting module 302 is specifically configured to:
judging whether the current pixel is over-exposed or not according to the current exposure value;
when the current pixel is overexposed, the next exposure time is shortened and/or the next electronic signal amplification gain is reduced.
The adjusting module 302 is further specifically configured to:
judging whether the current pixel is under-exposed or not according to the current exposure value;
when the current pixel is underexposed, the next exposure time is extended and/or the next electronic signal amplification gain is increased.
Specifically, the exposure value increases as the exposure time increases and/or the gain of amplification of the electronic signal increases; alternatively, the exposure value decreases with a decrease in exposure time and/or a decrease in electronic signal amplification gain.
Specifically, the preview module 301 is further configured to preview a first exposure value of a first pixel of the picture, where the first pixel is the first pixel returned from the picture.
In practical applications, the preview module 301, the adjusting module 302 and the determining module 303 can be implemented by a Central Processing Unit (CPU), a microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like in the terminal 30.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (10)

1. A method for exposing a picture, the method comprising:
previewing a current exposure value of a current pixel of a picture, wherein the current exposure value is used for representing the pixel brightness of the current pixel;
adjusting the next exposure time and the next electronic signal amplification gain of a next pixel according to the current exposure value, wherein the next pixel is the next pixel adjacent to the current pixel;
and determining the next exposure value of the next pixel according to the adjusted next exposure time and the adjusted next electronic signal amplification gain.
2. The method of claim 1, wherein said adjusting a next exposure time and a next electronic signal amplification gain for a next pixel based on said current exposure value comprises:
judging whether the current pixel is over-exposed or not according to the current exposure value;
shortening the next exposure time and/or reducing the next electronic signal amplification gain when the current pixel is overexposed.
3. The method of claim 2, further comprising:
judging whether the current pixel is under-exposed or not according to the current exposure value;
and when the current pixel is under-exposed, prolonging the next exposure time and/or increasing the next electronic signal amplification gain.
4. The method according to claim 1, characterized in that the exposure value increases with increasing exposure time and/or increasing gain of electronic signal amplification;
alternatively, the exposure value decreases with a decrease in exposure time and/or a decrease in electronic signal amplification gain.
5. The method of any of claims 1 to 4, wherein prior to the current exposure value of the current pixel of the preview picture, the method further comprises:
previewing a first exposure value of a first pixel of the picture, the first pixel being a first pixel returned by the picture.
6. A terminal, characterized in that the terminal comprises:
the preview module is used for previewing a current exposure value of a current pixel of a picture, and the current exposure value is used for representing the pixel brightness of the current pixel;
an adjusting module, configured to adjust a next exposure time and a next electronic signal amplification gain of a next pixel according to the current exposure value, where the next pixel is a next pixel adjacent to the current pixel;
and the determining module is used for determining the next exposure value of the next pixel according to the adjusted next exposure time and the adjusted next electronic signal amplification gain.
7. The terminal of claim 6, wherein the adjusting module is specifically configured to:
judging whether the current pixel is over-exposed or not according to the current exposure value;
shortening the next exposure time and/or reducing the next electronic signal amplification gain when the current pixel is overexposed.
8. The terminal of claim 7, wherein the adjusting module is further specifically configured to:
judging whether the current pixel is under-exposed or not according to the current exposure value;
and when the current pixel is under-exposed, prolonging the next exposure time and/or increasing the next electronic signal amplification gain.
9. A terminal as claimed in claim 6, characterised in that the exposure value increases with increasing exposure time and/or increasing gain of amplification of the electronic signal;
alternatively, the exposure value decreases with a decrease in exposure time and/or a decrease in electronic signal amplification gain.
10. The terminal of any of claims 6 to 9, wherein the preview module is further configured to preview a first exposure value of a first pixel of the picture, the first pixel being a first pixel returned by the picture.
CN201610609126.8A 2016-07-29 2016-07-29 Picture exposure method and terminal Active CN106303271B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610609126.8A CN106303271B (en) 2016-07-29 2016-07-29 Picture exposure method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610609126.8A CN106303271B (en) 2016-07-29 2016-07-29 Picture exposure method and terminal

Publications (2)

Publication Number Publication Date
CN106303271A CN106303271A (en) 2017-01-04
CN106303271B true CN106303271B (en) 2020-05-08

Family

ID=57662973

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610609126.8A Active CN106303271B (en) 2016-07-29 2016-07-29 Picture exposure method and terminal

Country Status (1)

Country Link
CN (1) CN106303271B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769542B (en) * 2018-05-30 2021-06-01 北京图森智途科技有限公司 Exposure parameter determination method and device and readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1303978A2 (en) * 2000-07-05 2003-04-23 Vision-Sciences Inc. Dynamic range compression method
JP2005117388A (en) * 2003-10-08 2005-04-28 Konica Minolta Holdings Inc Imaging device
CN102148936A (en) * 2011-05-04 2011-08-10 展讯通信(上海)有限公司 High dynamic range imaging optimization method and device
JP2015154153A (en) * 2014-02-12 2015-08-24 リコーイメージング株式会社 Camera with imaging apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1303978A2 (en) * 2000-07-05 2003-04-23 Vision-Sciences Inc. Dynamic range compression method
JP2005117388A (en) * 2003-10-08 2005-04-28 Konica Minolta Holdings Inc Imaging device
CN102148936A (en) * 2011-05-04 2011-08-10 展讯通信(上海)有限公司 High dynamic range imaging optimization method and device
JP2015154153A (en) * 2014-02-12 2015-08-24 リコーイメージング株式会社 Camera with imaging apparatus

Also Published As

Publication number Publication date
CN106303271A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN106791472B (en) A kind of exposure method and terminal
CN106454121B (en) Double-camera shooting method and device
US8780258B2 (en) Mobile terminal and method for generating an out-of-focus image
US8817160B2 (en) Mobile terminal and method of controlling the same
CN106909274B (en) Image display method and device
WO2017050115A1 (en) Image synthesis method
CN106507173B (en) Mobile terminal and split-screen display control method
EP2053587A2 (en) Mobile terminal and apparatus for controlling illumination backlight thereof
US10771691B2 (en) Mobile terminal and controlling method thereof
CN106097952B (en) Terminal display screen resolution adjusting method and terminal
CN105141833A (en) Terminal photographing method and device
US9665764B2 (en) Mobile terminal and controlling method thereof
CN105072351A (en) Photographing device and method based on front-facing camera
CN106851125B (en) Mobile terminal and multiple exposure shooting method
CN107016639A (en) A kind of image processing method and device
CN106534552B (en) Mobile terminal and its photographic method
CN106375679A (en) Exposure method and device
CN105827866A (en) Mobile terminal and control method
CN106385573A (en) Picture processing method and terminal
CN106851113A (en) A kind of photographic method and mobile terminal based on dual camera
CN106060415A (en) Mobile terminal and photographing method thereof
CN106568468A (en) Automatic test calibration system based on light sensor and method thereof
CN106375602B (en) Terminal photographic method and device
CN105959588A (en) Mobile terminal, light-painted photograph shooting device and method
CN106303271B (en) Picture exposure method and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200413

Address after: 325000 urban and rural distribution center, Yunzhou street, Ruian City, Wenzhou City, Zhejiang Province 522 (Qiaomao town)

Applicant after: Wenzhou Qingmiao film and television media Co.,Ltd.

Address before: 518000 Guangdong Province, Shenzhen high tech Zone of Nanshan District City, No. 9018 North Central Avenue's innovation building A, 6-8 layer, 10-11 layer, B layer, C District 6-10 District 6 floor

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221124

Address after: Room 1203-11, No. 2, Ningchuang Technology Center, Panhuo Street, Yinzhou District, Ningbo City, Zhejiang Province 315000

Patentee after: Ningbo Shangshan Brand Creativity Co.,Ltd.

Address before: 325000 urban and rural distribution center 522, Yunzhou street, Rui'an City, Wenzhou City, Zhejiang Province (Qiaomao town)

Patentee before: Wenzhou Qingmiao film and television media Co.,Ltd.