CN105025229B - Adjust the method and relevant apparatus of lightness - Google Patents

Adjust the method and relevant apparatus of lightness Download PDF

Info

Publication number
CN105025229B
CN105025229B CN201510469495.7A CN201510469495A CN105025229B CN 105025229 B CN105025229 B CN 105025229B CN 201510469495 A CN201510469495 A CN 201510469495A CN 105025229 B CN105025229 B CN 105025229B
Authority
CN
China
Prior art keywords
sensitivity
photo
mobile terminal
camera
reference value
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.)
Expired - Fee Related
Application number
CN201510469495.7A
Other languages
Chinese (zh)
Other versions
CN105025229A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510469495.7A priority Critical patent/CN105025229B/en
Publication of CN105025229A publication Critical patent/CN105025229A/en
Application granted granted Critical
Publication of CN105025229B publication Critical patent/CN105025229B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a kind of methods and relevant apparatus for adjusting lightness.A kind of method for adjusting lightness includes:Mobile terminal measures the distance between the mobile terminal and photographic subjects S;The photographic subjects are shot using the camera of the mobile terminal to obtain photo;Intensity deviation value L relative to luminance reference value is calculated according to the distance S;The present intensity of the photo is adjusted so that the present intensity of the photo is equal to the sum of the luminance reference value and the intensity deviation value L.Technical solution provided in an embodiment of the present invention is conducive to originally obtain the photo of the brightness of preferable visual experience.

Description

Adjust the method and relevant apparatus of lightness
Technical field
The present invention relates to technical field of mobile terminals, and in particular to a kind of method and relevant apparatus for adjusting lightness.
Background technology
As the popularization and application of mobile terminal, such as mobile phone mobile terminal are indispensable in life, mobile terminal is attached The various functions added are also increasingly paid close attention to by everybody.Such as shooting function, distance measurement function etc., user experience and entertaining are increased Property.
Existing mobile terminal is when photo is shot, can be by improving sensitivity or beating if brightness of finding a view is inadequate The method for opening flash lamp improves exposure to increase brightness of finding a view, but is sometimes still being difficult to shoot using the prior art The photo for going out the brightness for having preferable visual experience comes.
Invention content
The embodiment of the present invention provides a kind of method and relevant apparatus for adjusting lightness, has been desirably to obtain and has more preferably regarded Feel the photo of the brightness of experience.
First aspect of the embodiment of the present invention provides a kind of method for adjusting lightness, including:
Mobile terminal measures the distance between the mobile terminal and photographic subjects S;
The photographic subjects are shot using the camera of the mobile terminal to obtain photo;
Intensity deviation value L relative to luminance reference value is calculated according to the distance S;
The present intensity of the photo is adjusted so that the present intensity of the photo is equal to the luminance reference value and institute State the sum of intensity deviation value L.
With reference to first aspect, it is described to be calculated according to the distance S in the first possible embodiment of first aspect Include relative to the intensity deviation value L of luminance reference value:Based on equation below, calculated according to the distance S relative to brightness base Intensity deviation value L, L=f (S, the S of quasi- valueref,Lref), between the mobile terminal and photographic subjects that the S expressions measure Distance, wherein, the SrefRepresent supplement brightness references distance, the LrefRepresent supplement brightness reference value.
The possible embodiment of with reference to first aspect the first, in second of possible embodiment of first aspect In,
Alternatively,
With reference to first aspect or second of the first possible embodiment of first aspect or first aspect possible Embodiment, in the third possible embodiment of first aspect, the camera using the mobile terminal is to institute Photographic subjects are stated to be shot to obtain further including before photo:Automatic adjustment sensitivity pattern is started in the mobile terminal In the case of, when the current sensitivity of the camera higher than first with reference to sensitivity when by the current sensitivity of the camera First is adjusted to reference to sensitivity;When the current sensitivity of the camera less than second with reference to sensitivity when by the camera Current sensitivity is adjusted to second with reference to sensitivity, wherein, described first is more than described second with reference to photosensitive with reference to sensitivity Degree.
With reference to first aspect or second of the first possible embodiment of first aspect or first aspect possible The possible embodiment of the third of embodiment or first aspect, in the 4th kind of possible embodiment of first aspect, The present intensity of the adjustment photo so that the present intensity of the photo be equal to the luminance reference value with it is described bright The sum of deviant L is spent, including:
By the current brightness adjustment of the photo to a reference value;By the current brightness of the photo a reference value base Increase the intensity deviation value L on plinth, so that the present intensity of the photo is equal to the luminance reference value and the brightness The sum of deviant L.
The third possible embodiment with reference to first aspect, in the 4th kind of possible embodiment of first aspect In, the brightness adjustment that the photo is current includes to a reference value:It is photosensitive that automatic adjustment is started in the mobile terminal In the case of degree pattern, sensitivity is referred to when the current sensitivity of the camera reaches first, by the current bright of the photo Degree increases by the first given luminance difference so that the current brightness of the photo is adjusted to a reference value, when the camera is current Sensitivity reach second with reference to sensitivity, the present intensity of the photo is reduced by the second given luminance difference so that described The current brightness of photo is adjusted to a reference value, wherein, described first is more than described second with reference to sensitivity refers to sensitivity.
Second aspect of the present invention provides a kind of mobile terminal, including:
Measuring unit, for measuring the distance between the mobile terminal and photographic subjects S;
Shooting unit, for being shot to be shone to the photographic subjects using the camera of the mobile terminal Piece;
Computing unit, for calculating the intensity deviation value L relative to luminance reference value according to the distance S;
Adjustment unit, for adjusting the present intensity of the photo so that the present intensity of the photo is equal to described bright Spend the sum of a reference value and the intensity deviation value L.
With reference to first aspect, in the first possible embodiment of second aspect,
The computing unit is specifically used for, based on equation below, being calculated relative to luminance reference value according to the distance S Intensity deviation value L, L=f (S, Sref,Lref), wherein, between the mobile terminal and photographic subjects that the S expressions measure Distance, the SrefRepresent supplement brightness references distance, the LrefRepresent supplement brightness reference value.
The possible embodiment of with reference to first aspect the first, in second of possible embodiment of second aspect In,
Alternatively,
Wherein, the x is for positive number and not equal to 1.
With reference to first aspect or second of the first possible embodiment of first aspect or first aspect possible Embodiment, in the third possible embodiment of first aspect,
The adjustment unit is additionally operable to:Shooting unit using the mobile terminal camera to the photographic subjects into Row shoots before obtaining photo, in the case where the mobile terminal starts automatic adjustment sensitivity pattern, to take the photograph when described As the current sensitivity of the camera is adjusted to first with reference to sense when the current sensitivity of head is higher than the first reference sensitivity Luminosity;When the current sensitivity of the camera less than second with reference to sensitivity when the current sensitivity of the camera adjusted For second with reference to sensitivity, wherein, described first is greater than or equal to described second with reference to sensitivity refers to sensitivity.
With reference to first aspect or second of the first possible embodiment of first aspect or first aspect possible The possible embodiment of the third of embodiment or first aspect, in the 4th kind of possible embodiment of first aspect, The adjustment unit is specifically used for,
By the current brightness adjustment of the photo to a reference value;By the current brightness of the photo a reference value base Increase the intensity deviation value L on plinth, so that the present intensity of the photo is equal to the luminance reference value and the brightness The sum of deviant L.
The third possible embodiment with reference to first aspect, in the 4th kind of possible embodiment of first aspect In, the aspect adjustment unit of the brightness adjustment that the photo is current to a reference value is specifically used for described mobile whole In the case that end starts automatic adjustment sensitivity pattern, when the current sensitivity of the camera reaches first with reference to photosensitive The present intensity of the photo is increased by the first given luminance difference so that the current brightness of the photo is adjusted to base by degree Quasi- value refers to sensitivity when the current sensitivity of the camera reaches second, the present intensity of the photo is reduced second Given luminance difference so that the current brightness of the photo is adjusted to a reference value, wherein, described first is big with reference to sensitivity Sensitivity is referred in described second.
As can be seen that the embodiment of the present invention technical solution in, measure between the mobile terminal and photographic subjects away from From S;After being shot the photographic subjects to obtain photo using the camera of the mobile terminal, according to it is described away from The intensity deviation value L relative to luminance reference value is calculated from S;Adjust the present intensity of the photo so that the photo it is current Brightness is equal to the sum of the luminance reference value and the intensity deviation value L, due to being that reference distance S is calculated relative to luminance reference The intensity deviation value L of value, and lightness is adjusted based on intensity deviation value L, this be advantageously implemented lightness and shooting away from From directly more accurate adaptation, and then it is advantageously implemented the relatively accurate of lightness and adjusts, and then be conducive to obtain more The photo of the brightness of preferable visual experience.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, for For those of ordinary skill in the art, others are can also be obtained according to these attached drawings without creative efforts Attached drawing.
Fig. 1 is a kind of flow diagram of method for adjusting lightness provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another method for adjusting lightness provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another method for adjusting lightness provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram for mobile terminal that an alternative embodiment of the invention provides;
Fig. 5 is the schematic diagram for another mobile terminal that an alternative embodiment of the invention provides.
Specific embodiment
The embodiment of the present invention provides a kind of method and relevant apparatus for adjusting lightness, has been desirably to obtain and has more preferably regarded Feel the photo of the brightness of experience.
In order to which those skilled in the art is made to more fully understand the present invention program, below in conjunction in the embodiment of the present invention The technical solution in the embodiment of the present invention is clearly and completely described in attached drawing, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people Member's all other embodiments obtained without making creative work should all belong to the model that the present invention protects It encloses.
It is described in detail separately below.
Term " first ", " second ", " third " in description and claims of this specification and above-mentioned attached drawing and " Four " etc. be for distinguishing different objects rather than for describing particular order.In addition, term " comprising " and " having " and it Any deformation, it is intended that cover non-exclusive include.Such as it contains the process of series of steps or unit, method, be The step of system, product or equipment are not limited to list or unit, but optionally further include the step of not listing or list Member is optionally further included for the intrinsic other steps of these processes, method, product or equipment or unit.
A kind of one embodiment for the method for adjusting lightness of the present invention, wherein, a kind of method for adjusting lightness It may include:Mobile terminal measures the distance between the mobile terminal and photographic subjects S;Utilize the camera of the mobile terminal The photographic subjects are shot to obtain photo;Intensity deviation relative to luminance reference value is calculated according to the distance S Value L;Adjust the present intensity of the photo so that the photo present intensity be equal to the luminance reference value with it is described bright Spend the sum of deviant L.
Referring to Fig. 1, Fig. 1 is the flow signal for a kind of method of adjusting lightness that one embodiment of the present of invention provides Figure.Wherein, as shown in Figure 1, a kind of method for adjusting lightness that one embodiment of the present of invention provides can include:
101st, mobile terminal measures the distance between the mobile terminal and photographic subjects S.
Wherein, mobile terminal can be mobile phone, tablet computer, laptop, palm PC, mobile internet device or its His mobile terminal.
Wherein, dual camera ranging or ultrasonic ranging or other modes for example can be used to carry out ranging in mobile terminal.
102nd, mobile terminal shoots the photographic subjects using the camera of the mobile terminal to obtain photo.
103rd, mobile terminal calculates the intensity deviation value L relative to luminance reference value according to the distance S.
104th, mobile terminal adjust the photo present intensity so that the present intensity of the photo be equal to it is described bright Spend the sum of a reference value and the intensity deviation value L.
As can be seen that in the scheme of the present embodiment, mobile terminal measure between the mobile terminal and photographic subjects away from From S;After being shot the photographic subjects to obtain photo using the camera of the mobile terminal, according to it is described away from The intensity deviation value L relative to luminance reference value is calculated from S;Adjust the present intensity of the photo so that the photo it is current Brightness is equal to the sum of the luminance reference value and the intensity deviation value L, due to being that reference distance S is calculated relative to luminance reference The intensity deviation value L of value, and lightness is adjusted based on intensity deviation value L, this be advantageously implemented lightness and shooting away from From directly more accurate adaptation, and then it is advantageously implemented the relatively accurate of lightness and adjusts, and then be conducive to obtain more The photo of the brightness of preferable visual experience.
Optionally, it is described to be calculated according to the distance S relative to brightness in some possible embodiments of the present invention The intensity deviation value L of a reference value may include:Based on equation below, calculated according to the distance S relative to the bright of luminance reference value Spend deviant L, L=f (S, Sref,Lref), the S represents the distance between the mobile terminal measured and photographic subjects, Wherein, the SrefRepresent supplement brightness references distance, the LrefRepresent supplement brightness reference value.
A feasible thinking for calculating L is to utilize the distance between mobile terminal and photographic subjects S and SrefBetween ratio Value is to LrefIt is weighted.Because the distance between mobile terminal and photographic subjects are bigger, photographic subjects are reflected into the light of camera Line is fewer, so the brightness required supplementation with is bigger.
Such as the n can be equal to 1,2,10,5 or other values.
Such as the x can be equal to 1,2,3,0.6,5 or other values.
Optionally, in some possible embodiments of the present invention, the camera pair using the mobile terminal The photographic subjects are shot to obtain further including before photo:Automatic adjustment sensitivity mould is started in the mobile terminal In the case of formula, when the current sensitivity of the camera higher than first with reference to sensitivity when by current photosensitive of the camera Degree is adjusted to first with reference to sensitivity;When the current sensitivity of the camera less than second with reference to sensitivity when by the camera shooting Current sensitivity is adjusted to second with reference to sensitivity, wherein, described first is more than described second with reference to feeling with reference to sensitivity Luminosity.
Optionally, in some possible embodiments of the present invention, the present intensity of the adjustment photo so that Obtaining the present intensity of the photo can include equal to the sum of the luminance reference value and the intensity deviation value L:
By the current brightness adjustment of the photo to a reference value;By the current brightness of the photo a reference value base Increase the intensity deviation value L on plinth, so that the present intensity of the photo is equal to the luminance reference value and the brightness The sum of deviant L.
Optionally, in some possible embodiments of the invention, the brightness adjustment that the photo is current to base Quasi- value includes:In the case where the mobile terminal starts automatic adjustment sensitivity pattern, when the current sense of the camera Luminosity reaches first with reference to sensitivity, and the present intensity of the photo is increased the first given luminance difference so that the photo Current brightness is adjusted to a reference value, sensitivity is referred to when the current sensitivity of the camera reaches second, by the photograph The present intensity of piece reduces by the second given luminance difference so that the current brightness of the photo is adjusted to a reference value, wherein, Described first is more than described second with reference to sensitivity refers to sensitivity.
For ease of being better understood from and implementing the said program of the embodiment of the present invention, with reference to some specific applied fields Scape illustrates into row distance.
Referring to Fig. 2, Fig. 2 is the flow signal for a kind of method of adjusting lightness that one embodiment of the present of invention provides Figure.Wherein, as shown in Fig. 2, a kind of method for adjusting lightness that one embodiment of the present of invention provides can include:
201st, mobile terminal measures the distance between the mobile terminal and photographic subjects using the dual camera of mobile terminal S。
Wherein, mobile terminal can be mobile phone, tablet computer, laptop, palm PC, mobile internet device or its His mobile terminal.
Wherein, when using dual camera ranging, mobile terminal can obtain shooting simultaneously by two cameras thereon The image of target, range measurement principle are similar with the principle of people's eyes ranging.Mobile terminal is in a camera for receiving input During target point on the image of acquisition, the position of the imaging point of the target point is determined on the image that is obtained in another camera It puts, calculates photographic subjects to the distance of mobile terminal, can accurately measure mobile terminal to the distance S of photographic subjects.Two are taken the photograph As the visual angle of head is there are overlapping region, that is, the picture shot has the part of overlapping.If necessary to test photographic subjects away from From when, open the measurement distance function on mobile terminal, and obtain image simultaneously by two cameras on mobile terminal. In order to easy to operate during specific implementation, the image of photographic subjects is included by a camera acquisition.For another camera shooting Whether the image comprising photographic subjects can be indifferent to the image that head obtains.Of course for once can successfully measuring the shooting Target can directly adjust the angle of mobile terminal, make two cameras that can capture comprising bat to the distance of mobile terminal Take the photograph the image of target.
202nd, mobile terminal shoots the photographic subjects using the camera of the mobile terminal to obtain photo.
The S represents the distance between the mobile terminal measured and photographic subjects, wherein, the SrefIt represents to mend Fill brightness references distance, the LrefRepresent supplement brightness reference value.
Wherein, the n is positive integer.Such as the n can be equal to 1,2,10,5 or other values.
204th, mobile terminal is by the current brightness adjustment of the photo to a reference value.
Optionally, in some possible embodiments of the invention, by the current brightness adjustment of the photo to a reference value Including:In the case where the mobile terminal starts automatic adjustment sensitivity pattern, when the current sensitivity of the camera Reach first with reference to sensitivity, the present intensity of the photo is increased by the first given luminance difference so that the photo is current Brightness be adjusted to a reference value, when the current sensitivity of the camera reaches second with reference to sensitivity, by the photo Present intensity reduces by the second given luminance difference so that the current brightness of the photo is adjusted to a reference value, wherein, it is described First is more than described second with reference to sensitivity refers to sensitivity.
205th, the current brightness of the photo is increased the intensity deviation by mobile terminal on the basis of a reference value Value L, so that the present intensity of the photo is equal to the sum of the luminance reference value and the intensity deviation value L.
As can be seen that in the scheme of the present embodiment, mobile terminal measure between the mobile terminal and photographic subjects away from From S;After being shot the photographic subjects to obtain photo using the camera of the mobile terminal, according to it is described away from The intensity deviation value L relative to luminance reference value is calculated from S;Adjust the present intensity of the photo so that the photo it is current Brightness is equal to the sum of the luminance reference value and the intensity deviation value L, due to being that reference distance S is calculated relative to luminance reference The intensity deviation value L of value, and lightness is adjusted based on intensity deviation value L, this be advantageously implemented lightness and shooting away from From directly more accurate adaptation, and then it is advantageously implemented the relatively accurate of lightness and adjusts, and then be conducive to obtain more The photo of the brightness of preferable visual experience.
Referring to Fig. 3, Fig. 3 is that the flow of a kind of method of adjusting lightness that an alternative embodiment of the invention provides is shown It is intended to.Wherein, as shown in figure 3, a kind of method for adjusting lightness that an alternative embodiment of the invention provides can include:
301st, mobile terminal measures the distance between the mobile terminal and photographic subjects using the dual camera of mobile terminal S。
Wherein, mobile terminal can be mobile phone, tablet computer, laptop, palm PC, mobile internet device or its His mobile terminal.
Wherein, when using dual camera ranging, mobile terminal can obtain shooting simultaneously by two cameras thereon The image of target, range measurement principle are similar with the principle of people's eyes ranging.Mobile terminal is in a camera for receiving input During target point on the image of acquisition, the position of the imaging point of the target point is determined on the image that is obtained in another camera It puts, calculates photographic subjects to the distance of mobile terminal, can accurately measure mobile terminal to the distance S of photographic subjects.Two are taken the photograph As the visual angle of head is there are overlapping region, that is, the picture shot has the part of overlapping.If necessary to test photographic subjects away from From when, open the measurement distance function on mobile terminal, and obtain image simultaneously by two cameras on mobile terminal. In order to easy to operate during specific implementation, the image of photographic subjects is included by a camera acquisition.For another camera shooting Whether the image comprising photographic subjects can be indifferent to the image that head obtains.Of course for once can successfully measuring the shooting Target can directly adjust the angle of mobile terminal, make two cameras that can capture comprising bat to the distance of mobile terminal Take the photograph the image of target.
302nd, in the case where the mobile terminal starts automatic adjustment sensitivity pattern, to adjust the camera photosensitive Degree.
For example, when the current sensitivity of the camera higher than first with reference to sensitivity when by the current sense of the camera Luminosity is adjusted to first with reference to sensitivity;When the current sensitivity of the camera less than second with reference to sensitivity when take the photograph described Sensitivity is referred to as the current sensitivity of head is adjusted to second, wherein, described first is more than the described second reference with reference to sensitivity Sensitivity.
303rd, mobile terminal shoots the photographic subjects using the camera of the mobile terminal to obtain photo.
The S represents the distance between the mobile terminal measured and photographic subjects, wherein, the SrefIt represents to mend Fill brightness references distance, the LrefRepresent supplement brightness reference value.
Wherein, the n is positive integer.Such as the n can be equal to 1,2,10,5 or other values.
The x is for positive number and not equal to 1.Such as the x can be equal to 1,2,3,0.6,5 or other values
305th, mobile terminal is by the current brightness adjustment of the photo to a reference value.
Optionally, in some possible embodiments of the invention, by the current brightness adjustment of the photo to a reference value Including:In the case where the mobile terminal starts automatic adjustment sensitivity pattern, when the current sensitivity of the camera Reach first with reference to sensitivity, the present intensity of the photo is increased by the first given luminance difference so that the photo is current Brightness be adjusted to a reference value, when the current sensitivity of the camera reaches second with reference to sensitivity, by the photo Present intensity reduces by the second given luminance difference so that the current brightness of the photo is adjusted to a reference value, wherein, it is described First is more than described second with reference to sensitivity refers to sensitivity.
306th, the current brightness of the photo is increased the intensity deviation by mobile terminal on the basis of a reference value Value L, so that the present intensity of the photo is equal to the sum of the luminance reference value and the intensity deviation value L.
As can be seen that in the scheme of the present embodiment, mobile terminal measure between the mobile terminal and photographic subjects away from From S;After being shot the photographic subjects to obtain photo using the camera of the mobile terminal, according to it is described away from The intensity deviation value L relative to luminance reference value is calculated from S;Adjust the present intensity of the photo so that the photo it is current Brightness is equal to the sum of the luminance reference value and the intensity deviation value L, due to being that reference distance S is calculated relative to luminance reference The intensity deviation value L of value, and lightness is adjusted based on intensity deviation value L, this be advantageously implemented lightness and shooting away from From directly more accurate adaptation, and then it is advantageously implemented the relatively accurate of lightness and adjusts, and then be conducive to obtain more The photo of the brightness of preferable visual experience.
Referring to Fig. 4, the embodiment of the present invention provides a kind of mobile terminal 400, it may include:
Measuring unit 410, for measuring the distance between the mobile terminal and photographic subjects S;
Shooting unit 420, for being shot to obtain to the photographic subjects using the camera of the mobile terminal Photo;
Wherein, computing unit 430, for calculating the intensity deviation value L relative to luminance reference value according to the distance S;
Adjustment unit 440, for adjusting the present intensity of the photo so that the present intensity of the photo is equal to institute State the sum of luminance reference value and the intensity deviation value L.
Optionally, in some possible embodiments of the invention,
The computing unit is specifically used for, based on equation below, being calculated relative to luminance reference value according to the distance S Intensity deviation value L, L=f (S, Sref,Lref), wherein, between the mobile terminal and photographic subjects that the S expressions measure Distance, the SrefRepresent supplement brightness references distance, the LrefRepresent supplement brightness reference value.
A feasible thinking for calculating L is to utilize the distance between mobile terminal and photographic subjects S and SrefBetween ratio Value is to LrefIt is weighted.Because the distance between mobile terminal and photographic subjects are bigger, photographic subjects are reflected into the light of camera Line is fewer, so the brightness required supplementation with is bigger.
Such as the n can be equal to 1,2,10,5 or other values.
Such as the x can be equal to 1,2,3,0.6,5 or other values.
Optionally, in some possible embodiments of the invention, adjustment unit 440 is additionally operable to described in shooting unit utilization The camera of mobile terminal shoots the photographic subjects before obtaining photo, to start automatically in the mobile terminal In the case of adjusting sensitivity pattern, when the current sensitivity of the camera higher than first with reference to sensitivity when by the camera shooting Current sensitivity is adjusted to first with reference to sensitivity;When the current sensitivity of the camera refers to sensitivity less than second When the current sensitivity of the camera is adjusted to second with reference to sensitivity, wherein, described first be more than with reference to sensitivity or Sensitivity is referred to equal to described second.
Optionally, in some possible embodiments of the invention, the adjustment unit 440 is specifically used for working as in the photo Preceding brightness adjustment is to a reference value;The current brightness of the photo is increased into the intensity deviation on the basis of a reference value Value L, so that the present intensity of the photo is equal to the sum of the luminance reference value and the intensity deviation value L.
Optionally, in some possible embodiments of the invention, the brightness adjustment that the photo is current to benchmark The aspect of value, the adjustment unit 440 are specifically used for starting the situation of automatic adjustment sensitivity pattern in the mobile terminal Under, sensitivity is referred to when the current sensitivity of the camera reaches first, the present intensity of the photo is increased by first refers to Luminance difference is determined so that the current brightness of the photo is adjusted to a reference value, when the current sensitivity of the camera reaches Second refers to sensitivity, and the present intensity of the photo is reduced the second given luminance difference so that current bright of the photo Degree is adjusted to a reference value, wherein, described first is more than described second with reference to sensitivity refers to sensitivity.
It is understood that the function of each function module of the mobile terminal 400 of the present embodiment can be according to above method reality The method specific implementation in example is applied, specific implementation process is referred to the associated description of above method embodiment, herein no longer It repeats.
As can be seen that in the scheme of the embodiment of the present invention, mobile terminal 400 is measured between mobile terminal and photographic subjects Distance S;After being shot the photographic subjects to obtain photo using the camera of mobile terminal, according to the distance S calculates the intensity deviation value L relative to luminance reference value;Adjust the present intensity of the photo so that the photo it is current bright Degree is equal to the sum of the luminance reference value and the intensity deviation value L, due to being that reference distance S is calculated relative to luminance reference value Intensity deviation value L, and lightness is adjusted based on intensity deviation value L, this is advantageously implemented lightness and shooting distance Directly more accurate adaptation, and then be advantageously implemented the relatively accurate of lightness and adjust, so be conducive to obtain more compared with The photo of the brightness of good visual experience.
Referring to Fig. 5, Fig. 5 is the schematic diagram of mobile terminal 500 provided in an embodiment of the present invention, and mobile terminal 500 may include At least one bus 501, at least one processor 502 being connected with bus 501 and at least one being connected with bus 501 storage Device 503.
Wherein, processor 502 can be called by bus 501 in memory 503 code that stores or instruction for Measure the distance between the mobile terminal and photographic subjects S;Using the camera of the mobile terminal to the photographic subjects It is shot to obtain photo;Intensity deviation value L relative to luminance reference value is calculated according to the distance S;Adjust the photograph The present intensity of piece is so that the present intensity of the photo is equal to the sum of the luminance reference value and the intensity deviation value L.
Wherein, mobile terminal can be mobile phone, tablet computer, laptop, palm PC, mobile internet device or its His mobile terminal.
Wherein, dual camera ranging or ultrasonic ranging or other modes for example can be used to carry out ranging in mobile terminal.
Optionally, in some possible embodiments of the present invention, processor 502 calculates opposite according to the distance S It may include in the intensity deviation value L of luminance reference value:Based on equation below, calculated according to the distance S relative to luminance reference Intensity deviation value L, L=f (S, the S of valueref,Lref), between the mobile terminal and photographic subjects that the S expressions measure Distance, wherein, the SrefRepresent supplement brightness references distance, the LrefRepresent supplement brightness reference value.
A feasible thinking for calculating L is to utilize the distance between mobile terminal and photographic subjects S and SrefBetween ratio Value is to LrefIt is weighted.Because the distance between mobile terminal and photographic subjects are bigger, photographic subjects are reflected into the light of camera Line is fewer, so the brightness required supplementation with is bigger.
Such as the n can be equal to 1,2,10,5 or other values.
Such as the x can be equal to 1,2,3,0.6,5 or other values.
Optionally, in some possible embodiments of the present invention, processor 502 utilizes the camera shooting of the mobile terminal Head shoots the photographic subjects before obtaining photo, automatic adjustment sensitivity pattern is started in the mobile terminal In the case of, when the current sensitivity of the camera higher than first with reference to sensitivity when by the current sensitivity of the camera First is adjusted to reference to sensitivity;When the current sensitivity of the camera less than second with reference to sensitivity when by the camera Current sensitivity is adjusted to second with reference to sensitivity, wherein, described first is more than described second with reference to photosensitive with reference to sensitivity Degree.
Optionally, in some possible embodiments of the present invention, processor 502 adjusts the present intensity of the photo It can include so that the present intensity of the photo is equal to the sum of the luminance reference value and the intensity deviation value L:
By the current brightness adjustment of the photo to a reference value;By the current brightness of the photo a reference value base Increase the intensity deviation value L on plinth, so that the present intensity of the photo is equal to the luminance reference value and the brightness The sum of deviant L.
Optionally, in some of the invention possible embodiments, processor 502 is by the current brightness adjustment of the photo Include to a reference value:In the case where the mobile terminal starts automatic adjustment sensitivity pattern, when the camera is current Sensitivity reach first with reference to sensitivity, the present intensity of the photo is increased by the first given luminance difference so that described The current brightness of photo is adjusted to a reference value, sensitivity is referred to when the current sensitivity of the camera reaches second, by institute The present intensity for stating photo reduces by the second given luminance difference so that the current brightness of the photo is adjusted to a reference value, In, described first is more than described second with reference to sensitivity refers to sensitivity.
It is understood that the function of each function module of the mobile terminal 500 of the present embodiment can be according to above method reality The method specific implementation in example is applied, specific implementation process is referred to the associated description of above method embodiment, herein no longer It repeats.
As can be seen that in the scheme of the present embodiment, mobile terminal 500 is measured between the mobile terminal and photographic subjects Distance S;After being shot the photographic subjects to obtain photo using the camera of the mobile terminal, according to described Distance S calculates the intensity deviation value L relative to luminance reference value;The present intensity of the photo is adjusted so that the photo is worked as Preceding brightness is equal to the sum of the luminance reference value and the intensity deviation value L, due to being that reference distance S is calculated relative to brightness base The intensity deviation value L of quasi- value, and lightness is adjusted based on intensity deviation value L, this is advantageously implemented lightness and shooting Distance directly more accurate adaptation, and then be advantageously implemented the relatively accurate of lightness and adjust, and then be conducive to The photo of the brightness of preferable visual experience.
It should be noted that for aforementioned each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of the unit, it is only a kind of Division of logic function can have other dividing mode, such as either component can combine or can multiple units in actual implementation To be integrated into another system, either some features can also be ignored or not perform.Another point, shown or discussed phase Coupling, direct-coupling or communication connection between mutually can be by some interfaces, the INDIRECT COUPLING or communication of device or unit Connection, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in various embodiments of the present invention can be integrated in same processing unit, Can also be that each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned collection Into unit both may be used hardware form realize, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is independent product sale or uses When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products It embodies, which is stored in a storage medium, is used including some instructions so that a computer Equipment (can be personal computer, server or network equipment etc.) perform each embodiment the method for the present invention whole or Part steps.And aforementioned storage medium includes:USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Various Jie that can store program code such as reservoir (RAM, RandomAccess Memory), mobile hard disk, magnetic disc or CD Matter.
The above, above example are only to illustrate technical solution of the present invention, rather than its limitations;Although with reference to aforementioned The present invention is described in detail in embodiment, wherein, it will be understood by those of ordinary skill in the art that:It still can be right Technical solution recorded in foregoing embodiments modifies or carries out equivalent replacement to which part technical characteristic;And this A little modifications are replaced, the range for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution.

Claims (8)

  1. A kind of 1. method for adjusting lightness, which is characterized in that including:
    Mobile terminal measures the distance between the mobile terminal and photographic subjects S;
    The photographic subjects are shot using the camera of the mobile terminal to obtain photo;
    Intensity deviation value L relative to luminance reference value is calculated according to the distance S;
    Adjust the present intensity of the photo so that the photo present intensity be equal to the luminance reference value with it is described bright Spend the sum of deviant L;
    Wherein, described calculated according to the distance S includes relative to the intensity deviation value L of luminance reference value:Based on equation below, Intensity deviation value L, L=f (S, S relative to luminance reference value is calculated according to the distance Sref,Lref), wherein, the S is represented The distance between the mobile terminal measured and photographic subjects, wherein, the SrefRepresent supplement brightness references distance, institute State LrefRepresent supplement brightness reference value;
    Wherein,
    The n is positive integer;
    Alternatively,
    The n is positive integer, the x for positive number and Not equal to 1.
  2. 2. according to the method described in claim 1, it is characterized in that,
    The camera using the mobile terminal shoots the photographic subjects to obtain further including before photo: In the case that the mobile terminal starts automatic adjustment sensitivity pattern, when the current sensitivity of the camera is higher than first The current sensitivity of the camera is adjusted to first with reference to sensitivity during with reference to sensitivity;When the current sense of the camera The current sensitivity of the camera is adjusted to second with reference to sensitivity when luminosity is less than the second reference sensitivity, wherein, institute It states first and is more than described second with reference to sensitivity with reference to sensitivity.
  3. 3. according to the method described in claim 1 to 2 any one, which is characterized in that
    The present intensity of the adjustment photo is so that the present intensity of the photo is equal to the luminance reference value and institute The sum of intensity deviation value L is stated, including:
    By the current brightness adjustment of the photo to a reference value;By the current brightness of the photo on the basis of a reference value Increase the intensity deviation value L, so that the present intensity of the photo is equal to the luminance reference value and the intensity deviation The sum of value L.
  4. 4. according to the method described in claim 3, it is characterized in that, the brightness adjustment that the photo is current is to a reference value Including:
    In the case where the mobile terminal starts automatic adjustment sensitivity pattern, when the current sensitivity of the camera reaches To first with reference to sensitivity, the present intensity of the photo increased by the first given luminance difference so that the photo is current Brightness is adjusted to a reference value, sensitivity is referred to when the current sensitivity of the camera reaches second, by working as the photo Preceding brightness reduces by the second given luminance difference so that the current brightness of the photo is adjusted to a reference value, wherein, described the One is more than described second with reference to sensitivity refers to sensitivity.
  5. 5. a kind of mobile terminal, which is characterized in that including:
    Measuring unit, for measuring the distance between the mobile terminal and photographic subjects S;
    Shooting unit, for being shot to obtain photo to the photographic subjects using the camera of the mobile terminal;
    Computing unit, for calculating the intensity deviation value L relative to luminance reference value according to the distance S;
    Adjustment unit, for adjusting the present intensity of the photo so that the present intensity of the photo is equal to the brightness base The sum of quasi- value and the intensity deviation value L;
    Wherein,
    The computing unit is specifically used for based on equation below, and the brightness relative to luminance reference value is calculated according to the distance S Deviant L, L=f (S, Sref,Lref), wherein, between the mobile terminal and photographic subjects that S expression measures away from From the SrefRepresent supplement brightness references distance, the LrefRepresent supplement brightness reference value;
    Wherein,
    The n is positive integer;
    Alternatively,
    The n is positive integer, the x for positive number and Not equal to 1.
  6. 6. mobile terminal according to claim 5, which is characterized in that
    The adjustment unit is additionally operable to:The photographic subjects are clapped using the camera of the mobile terminal in shooting unit It takes the photograph with before obtaining photo, in the case where the mobile terminal starts automatic adjustment sensitivity pattern, when the camera The current sensitivity of the camera is adjusted to first with reference to sensitivity when current sensitivity is higher than the first reference sensitivity; When the current sensitivity of the camera less than second with reference to sensitivity when the current sensitivity of the camera is adjusted to the Two refer to sensitivity, wherein, described first is greater than or equal to described second with reference to sensitivity refers to sensitivity.
  7. 7. a kind of storage medium, which is characterized in that
    The storage medium is stored with software for calculation product, and some instructions that the software for calculation product includes are used so that one Computer equipment perform claim requires the method described in 1 to 4 any one.
  8. 8. a kind of mobile terminal, which is characterized in that including at least one bus, at least one processor being connected with bus and with At least one memory that bus is connected;
    Wherein, processor calls the code stored in memory or instruction by bus, for perform claim requirement 1 to 4 Method described in any one.
CN201510469495.7A 2015-07-30 2015-07-30 Adjust the method and relevant apparatus of lightness Expired - Fee Related CN105025229B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510469495.7A CN105025229B (en) 2015-07-30 2015-07-30 Adjust the method and relevant apparatus of lightness

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510469495.7A CN105025229B (en) 2015-07-30 2015-07-30 Adjust the method and relevant apparatus of lightness

Publications (2)

Publication Number Publication Date
CN105025229A CN105025229A (en) 2015-11-04
CN105025229B true CN105025229B (en) 2018-06-29

Family

ID=54414901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510469495.7A Expired - Fee Related CN105025229B (en) 2015-07-30 2015-07-30 Adjust the method and relevant apparatus of lightness

Country Status (1)

Country Link
CN (1) CN105025229B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108024057B (en) * 2017-11-30 2020-01-10 Oppo广东移动通信有限公司 Background blurring processing method, device and equipment
CN109685746B (en) * 2019-01-04 2021-03-05 Oppo广东移动通信有限公司 Image brightness adjusting method and device, storage medium and terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188665A (en) * 2007-11-05 2008-05-28 康佳集团股份有限公司 An intelligent adjusting method and device for TV set image
WO2011127825A1 (en) * 2010-04-16 2011-10-20 杭州海康威视软件有限公司 Processing method and device of image contrast
CN103546675A (en) * 2012-07-16 2014-01-29 联想(北京)有限公司 Brightness adjustment method and electronic equipment
CN103795864A (en) * 2014-01-29 2014-05-14 华为技术有限公司 Method for selecting front camera and back camera of mobile terminal and mobile terminal
CN103973983A (en) * 2014-05-29 2014-08-06 成都品果科技有限公司 Method for intelligently adjusting brightness of picture on basis of detection of environmental brightness in photographing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6034740B2 (en) * 2013-04-18 2016-11-30 オリンパス株式会社 Imaging apparatus and imaging method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188665A (en) * 2007-11-05 2008-05-28 康佳集团股份有限公司 An intelligent adjusting method and device for TV set image
WO2011127825A1 (en) * 2010-04-16 2011-10-20 杭州海康威视软件有限公司 Processing method and device of image contrast
CN103546675A (en) * 2012-07-16 2014-01-29 联想(北京)有限公司 Brightness adjustment method and electronic equipment
CN103795864A (en) * 2014-01-29 2014-05-14 华为技术有限公司 Method for selecting front camera and back camera of mobile terminal and mobile terminal
CN103973983A (en) * 2014-05-29 2014-08-06 成都品果科技有限公司 Method for intelligently adjusting brightness of picture on basis of detection of environmental brightness in photographing

Also Published As

Publication number Publication date
CN105025229A (en) 2015-11-04

Similar Documents

Publication Publication Date Title
US11948282B2 (en) Image processing apparatus, image processing method, and storage medium for lighting processing on image using model data
EP4199529A1 (en) Electronic device for providing shooting mode based on virtual character and operation method thereof
CN108777767A (en) Photographic method, device, terminal and computer readable storage medium
CN104580922B (en) A kind of control method and device for shooting light filling
CN104243842B (en) A kind of flash light intensity control method and picture pick-up device
CN108234858B (en) Image blurring processing method and device, storage medium and electronic equipment
CN105933589A (en) Image processing method and terminal
CN112005548B (en) Method of generating depth information and electronic device supporting the same
CN108200351A (en) Image pickup method, terminal and computer-readable medium
CN108288044A (en) Electronic device, face identification method and Related product
EP3642673B1 (en) Electronic device for controlling focus of lens and method for controlling the same
CN106101540B (en) Focus point determines method and device
EP3301906A1 (en) Method for processing image and electronic device supporting the same
CN108270967A (en) Atomatic focusing method and the electronic equipment for performing this method
CN110708463B (en) Focusing method, focusing device, storage medium and electronic equipment
CN110035218A (en) A kind of image processing method, image processing apparatus and photographing device
CN107909569B (en) Screen-patterned detection method, screen-patterned detection device and electronic equipment
CN109167922A (en) Image processing method, device and electronic equipment
CN109714539B (en) Image acquisition method and device based on gesture recognition and electronic equipment
CN105025229B (en) Adjust the method and relevant apparatus of lightness
KR102524982B1 (en) Apparatus and method for applying noise pattern to image processed bokeh
CN110677557B (en) Image processing method, image processing device, storage medium and electronic equipment
CN104092954B (en) Flash control method and control device, image-pickup method and harvester
CN105678696B (en) A kind of information processing method and electronic equipment
CN105120153B (en) A kind of image capturing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180629

CF01 Termination of patent right due to non-payment of annual fee