CN106210330B - A kind of image processing method and terminal - Google Patents

A kind of image processing method and terminal Download PDF

Info

Publication number
CN106210330B
CN106210330B CN201610571714.7A CN201610571714A CN106210330B CN 106210330 B CN106210330 B CN 106210330B CN 201610571714 A CN201610571714 A CN 201610571714A CN 106210330 B CN106210330 B CN 106210330B
Authority
CN
China
Prior art keywords
brightness value
screen
screen intensity
current
brightness
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
CN201610571714.7A
Other languages
Chinese (zh)
Other versions
CN106210330A (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 CN201610571714.7A priority Critical patent/CN106210330B/en
Publication of CN106210330A publication Critical patent/CN106210330A/en
Application granted granted Critical
Publication of CN106210330B publication Critical patent/CN106210330B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/3406Control of illumination source

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

An embodiment of the present invention provides a kind of image processing method, the described method includes:When starting camera, current environment brightness value is obtained;Judge whether the current environment brightness value matches with current screen brightness degree;If it is not, screen intensity is adjusted using brightness gradual manner so that the corresponding screen intensity grade of screen intensity after adjusting is matched with the current environment brightness value.The embodiment of the present invention additionally provides a kind of terminal.Screen intensity can be adjusted under exposal model by the embodiment of the present invention so that for user when against screen, eyes can preferably adapt to brightness change process.

Description

A kind of image processing method and terminal
Technical field
The present invention relates to terminal device technical fields, and in particular to a kind of image processing method and terminal.
Background technology
In the prior art, camera function is all carried terminal (such as mobile phone, tablet computer etc.), in application of taking pictures, especially It is in the environment of dark, under the exposal model of the environment, will change entire terminal screen and be shown as a certain color Temperature, and light filling is carried out to photographed scene using the colour temperature, the interface that the problem of this mode is to show, which can generate once, " jumps Become ", i.e., screen will entirely dodge once, thus, user may bring unconformable reflection when self-timer to eyes of user.
The content of the invention
It, can be under exposal model, to screen intensity an embodiment of the present invention provides a kind of image processing method and terminal It is adjusted so that for user when against screen, eyes can preferably adapt to brightness change process.
First aspect of the embodiment of the present invention provides a kind of image processing method, including:
When starting camera, current environment brightness value is obtained;
Judge whether the current environment brightness value matches with current screen brightness degree;
If it is not, screen intensity is adjusted using brightness gradual manner so that the corresponding screen intensity of screen intensity after adjusting Grade is matched with the current environment brightness value.
Second aspect of the embodiment of the present invention provides a kind of terminal, including:
Acquiring unit, for when starting camera, obtaining current environment brightness value;
Judging unit, for judging the current environment brightness value of the acquiring unit acquisition and current screen brightness etc. Whether grade matches;
Adjustment unit, if being no for the judging result of the judging unit, it is bright to adjust screen using brightness gradual manner Degree so that the corresponding screen intensity grade of screen intensity after adjusting is matched with the current environment brightness value.
The third aspect of the embodiment of the present invention provides a kind of terminal, including:
Processor and memory;
Wherein, the processor is used to call the executable program code in the memory, performs first aspect Some or all of step.
Implement the embodiment of the present invention, have the advantages that:
By the embodiment of the present invention when starting camera, current environment brightness value is obtained, judges current environment brightness value Whether matched with current screen brightness degree, if it is not, adjusting screen intensity using brightness gradual manner so that the screen after adjusting The corresponding screen intensity grade of brightness is matched with current environment brightness value.Thus, it can be in current environment brightness value and current screen When brightness degree mismatches, screen intensity is adjusted using brightness gradual manner so that screen intensity grade and current environment brightness Value matching, it is ensured that for user when observing preview image, eyes can preferably adapt to brightness change process.
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 some embodiments of the present invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of first embodiment flow diagram of image processing method provided in an embodiment of the present invention;
Fig. 2 is a kind of second embodiment flow diagram of image processing method provided in an embodiment of the present invention;
Fig. 3 is a kind of 3rd embodiment flow diagram of image processing method provided in an embodiment of the present invention;
Fig. 4 a are a kind of first embodiment structure diagrams of terminal provided in an embodiment of the present invention;
Fig. 4 b are the structure diagrams of the adjustment unit of the terminal described in Fig. 4 a provided in an embodiment of the present invention;
Fig. 4 c are the structure diagrams of the adjustment unit of the terminal described in Fig. 4 a provided in an embodiment of the present invention;
Fig. 4 d are the structure diagrams of the judging unit of the terminal described in Fig. 4 a provided in an embodiment of the present invention;
Fig. 4 e are the structure diagrams of the judging unit of the terminal described in Fig. 4 a provided in an embodiment of the present invention;
Fig. 5 is a kind of second embodiment structure diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, belongs to the scope of protection of the invention.
Term " first ", " second ", " the 3rd " in description and claims of this specification and the 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.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments Containing at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
The described terminal of the embodiment of the present invention can include smart mobile phone (such as Android phone, iOS mobile phones, Windows Phone mobile phones etc.), tablet computer, palm PC, laptop, mobile internet device (MID, Mobile Internet Devices) or Wearable etc., above-mentioned terminal is only citing, and non exhaustive, including but not limited to above-mentioned end End.
It should be noted that in the embodiment of the present invention, screen intensity is adjusted, and using the screen intensity after adjusting as preview Brightness of image, i.e. whole process, be equivalent to adjusting is the brightness for starting the preview image under camera, thus bright to screen When degree is adjusted, i.e. the brightness of preview image is adjusted.After being adjusted to screen intensity, user can intuitively see very much Effect after preview image adjusting, you can predict effect of taking pictures.When starting camera, terminal can enter exposal model, at this Under exposal model, a corresponding screen intensity (current screen brightness), it is (current which corresponds to a screen intensity grade Screen intensity grade), i.e. current screen brightness corresponds to current screen brightness degree.Thus, the current environment brightness that user obtains Value may be inconsistent with current screen brightness value.When screen intensity is adjusted, it is also assumed that a certain extent may be used The color of preview image is adjusted, thus, the contrast of the preview image after adjusting is suitable with environment, if color, Seem the color and luster and environments match of preview image.
Further, in the embodiment of the present invention, adjusting screen intensity can arrange to adjust whole screen intensity Local screen intensity can also be adjusted in section, if for example, comprising facial image in preview image, it can be to face figure As carrying out brightness regulation, alternatively, carrying out brightness regulation to the region beyond facial image.
Referring to Fig. 1, the first embodiment flow diagram for a kind of image processing method provided in an embodiment of the present invention. Image processing method described in the present embodiment, comprises the following steps:
101st, when starting camera, current environment brightness value is obtained.
Optionally, the described terminal of the embodiment of the present invention can be equipped with ambient light sensor, utilize the ambient light sensing Device can obtain current environment brightness value.
Optionally, can be after the camera of terminal be started when performing step 101, terminal enters exposal model, available The camera of terminal shoots any preview image, using the average brightness value of the preview image as current environment brightness value.Alternatively, Face datection can be carried out to preview image, using the average brightness value of the facial image detected as current environment brightness value.
Still optionally further, can be after the average brightness value of definite above-mentioned preview image, it can be according to default brightness Mapping relations between value and standard environment brightness value determine the corresponding standard environment brightness value of above-mentioned average brightness value, and will The corresponding standard environment brightness value of the average brightness value is as current environment brightness value.Wherein, default brightness value and standard ring Mapping relations between the brightness value of border can be determined by carrying out many experiments under different lightness environment in advance, for example, a certain Under environment, it may be determined that the average brightness value of preview image and the standard environment brightness value detected using ambient light sensor, such as This, under different lightness environments, can obtain multigroup average brightness value and the standard environment detected using ambient light sensor Brightness value, the mapping relations for establishing average brightness value between the standard environment brightness value that detects using ambient light sensor.
Certainly, above-mentioned camera can be the front camera that carries of terminal or by the external camera shooting of terminal control Head.
102nd, judge whether the current environment brightness value matches with current screen brightness degree.
Wherein, for step 102, can be implemented comprising the following two kinds mode.
Optionally, the first embodiment:
21), according to the mapping relations between default ambient brightness value and screen intensity grade, the current environment is determined The corresponding target screen brightness degree of brightness value;
22), judge whether current screen brightness degree is consistent with the target screen brightness degree, if it is not, then confirming institute Current environment brightness value is stated to mismatch with current screen brightness degree.
Wherein, the mapping relations between default ambient brightness value and screen intensity grade can carry out before step 101 It realizes, which can voluntarily be set by user, alternatively, terminal manufacturer is configured before terminal is produced.Wherein, often One screen intensity grade corresponds to multiple ambient brightness values or each screen intensity grade corresponds to one by continuous multiple environment The brightness section scope of brightness value composition.For example, 3 screen intensity grades:The corresponding ambient brightness value of A, B, C, A is 0~88, The corresponding ambient brightness values of B are that the corresponding ambient brightness values of 88~180, C are 180~255.Thus, it can be closed according to above-mentioned mapping System determines the corresponding target screen brightness degree of ambient brightness value, if the target screen brightness degree and current screen brightness degree It is inconsistent, then illustrate that current environment brightness value is mismatched with current screen brightness degree, if the target screen brightness degree is with working as Forth screen brightness degree is consistent, then illustrates that current environment brightness value is matched with current screen brightness degree.
Optionally, second of embodiment:
23) the ambient brightness value scope corresponding to current screen brightness degree, is obtained;
24) whether the current environment brightness value, is judged in the ambient brightness value scope, if it is not, described in then confirming Current environment brightness value is mismatched with current screen brightness degree.
Wherein, under current state, screen corresponds to a screen intensity, the naturally corresponding screen intensity of the screen intensity etc. Grade, still, it can be seen from the above, screen intensity grade can correspond to an ambient brightness value scope, then can determine whether the ambient brightness value Whether comprising current environment brightness value in scope, if not including, illustrate current environment brightness value and current screen brightness degree It mismatches, if comprising illustrating that current environment brightness value is matched with current screen brightness degree.
Optionally, if so, screen intensity need not be adjusted, i.e., step 103 is not performed.
103rd, if it is not, adjusting screen intensity using brightness gradual manner so that the corresponding screen of screen intensity after adjusting Brightness degree is matched with the current environment brightness value.
Optionally, screen intensity can be adjusted, after adjusting, the corresponding screen intensity grade of screen intensity with it is described Current environment brightness value matches.Optionally, it is current environment brightness value by current screen brightness regulation.
Optionally, if the exposal model that user selects is self-timer mode, that is, what is started is front camera, then, preview Facial image can be included in image, since the light of terminal screen is beaten on face, thus, facial image is brighter, and terminal can adopt Screen intensity is adjusted in fashion described above, you can improve the facial image effect in preview image, shoot take pictures In effect, facial image effect is more preferable, meanwhile, user can predict face effect.
Optionally, between step 101 and step 102, can also comprise the following steps:
Obtain current screen brightness value;
Whether absolute value between the current environment brightness value and the current screen brightness value is judged in preset range, If so, step 102 is not performed, if it is not, then performing step 102.
Wherein, above-mentioned preset range can voluntarily be set by system default or user.In this way, in ambient brightness value and screen When brightness value is not much different, whether screen intensity is adjusted, if effect of taking pictures, visually it is difficult to differentiate between, thus, it may not be necessary to adjust screen Curtain brightness, to a certain extent, can also reduce the power consumption of terminal.
Optionally, between step 101 and step 102, can also comprise the following steps:
Judge whether the current environment brightness value is in less than the first predetermined threshold value or more than the second predetermined threshold value;
If so, step 102 is performed, if it is not, not performing step 102.
Wherein, the first predetermined threshold value and the second predetermined threshold value can voluntarily be set by system default or user.First is default Threshold value can be regarded as the definition threshold value (environment of i.e. above-mentioned dark) of dark situation, and the second predetermined threshold value can be determining for bright ring border Adopted threshold value (the brighter environment of light can be interpreted as).In this way, then can under dark situation and bright ring border just to screen intensity into Row is adjusted, and under home (environment in addition to above-mentioned dark situation and bright ring border), then screen intensity can not be adjusted Section, because in normal circumstances, whether screen intensity is adjusted, if effect of taking pictures, being visually difficult to differentiate between, thus, it may not be necessary to it adjusts Screen intensity is saved, to a certain extent, can also reduce the power consumption of terminal.And under dark situation and bright ring border just to screen intensity into Row is adjusted, and can improve the effect of taking pictures of preview image to a certain extent, and user can predict effect of taking pictures.
Optionally, it is above-mentioned that screen intensity is adjusted using brightness gradual manner, it may include following steps:
Determine the human face region in the preview image of camera shooting;
The screen intensity of screen area where adjusting the human face region using brightness gradual manner, alternatively, using brightness Gradual manner adjusts the screen intensity of the screen area beyond the human face region.
Aforesaid way is used, if human face region is clear, the screen intensity of human face region can need not be adjusted, if human face region It is unintelligible, the screen intensity of human face region is adjusted.
By the embodiment of the present invention when starting camera, current environment brightness value is obtained, judges current environment brightness value Whether matched with current screen brightness degree, if it is not, adjusting screen intensity using brightness gradual manner so that the screen after adjusting The corresponding screen intensity grade of brightness is matched with current environment brightness value.Thus, it can be in current environment brightness value and current screen When brightness degree mismatches, screen intensity is adjusted using brightness gradual manner so that screen intensity grade and current environment brightness Value matching, it is ensured that for user when observing preview image, eyes can preferably adapt to brightness change process.It meanwhile can will be after adjusting Brightness of the screen intensity as preview image, be equivalent to the brightness to preview image and be adjusted, therefore, user can predict bat According to effect.
With above-described embodiment conformably, referring to Fig. 2, for a kind of image processing method provided in an embodiment of the present invention Two embodiment flow diagrams.Image processing method described in the present embodiment, comprises the following steps:
201st, when starting camera, current environment brightness value is obtained.
202nd, judge whether the current environment brightness value matches with current screen brightness degree.
203rd, if it is not, obtaining the corresponding any brightness value of the corresponding screen intensity grade of the current environment brightness value.
204th, current screen brightness value is obtained.
205th, the absolute value between the current screen brightness value and any brightness value is determined.
206th, screen intensity regulations speed is determined with the absolute value according to the first default regulating time.
207th, screen intensity is adjusted according to the screen intensity regulations speed, so that the screen intensity after adjusting For any brightness value.
Wherein, in step 203, from the embodiment in embodiment one, current environment brightness value also corresponds to a screen Curtain brightness degree, still, which can correspond to multiple brightness values, thus, appointing in the plurality of brightness value may be selected One brightness value, optionally, any brightness value can be minimum with the absolute value between current screen brightness value.In step 205, may be used Calculate the absolute value between current screen brightness value and any brightness value.In step 206, the first default regulating time can by with Family is voluntarily set, alternatively, can be a certain default value.Assuming that the first preset time is t, absolute value divided by t can be shielded Curtain brightness regulation rate, in step 207, at the uniform velocity adjusts screen intensity so that after adjusting with the screen intensity regulations speed Screen intensity is any brightness value.
Optionally, in above-mentioned steps 207, can also otherwise screen intensity regulations speed, for example, first is preset Regulating time is divided into multiple small periods, and the screen intensity regulations speed of each period is different.Assuming that 3 periods, 3 A period be respectively the screen intensity regulations speed of t1, t2, t3, the first time period ts 1 for v1, second time period t 2 Screen intensity regulations speed is v2, and the screen intensity regulations speed of the 3rd time period t 3 is v3, then, it is as follows:
T1v1+t2v2+t3v3=K
Wherein, absolute values of the K between above-mentioned current screen brightness value and any of the above-described brightness value.Certainly, above-mentioned first Default regulating time is further divided into more time section, and the screen intensity regulations speed of each period is different.Certainly, it is each The screen intensity regulations speed of period can also voluntarily be set by user.
Thus, using aforesaid way, it can realize and screen intensity is adjusted under gradual brightness change of screen, after adjusting Screen intensity grade is matched with current environment brightness value.If the screen intensity after adjusting is bright for the corresponding screen of current environment brightness value A value immediate with current screen brightness value in the corresponding brightness value of grade is spent, it is so, it can be achieved that quick and preferably allow The eyes of user are adapted to.
With above-described embodiment conformably, referring to Fig. 3, for a kind of image processing method provided in an embodiment of the present invention Three embodiment flow diagrams.Image processing method described in the present embodiment, comprises the following steps:
301st, when starting camera, current environment brightness value is obtained.
302nd, judge whether the current environment brightness value matches with current screen brightness degree.
303rd, if it is not, obtaining current screen brightness value.
304th, the absolute value between the current environment brightness value and the current screen brightness value is determined.
305th, screen intensity regulations speed is determined with the absolute value according to the second default regulating time.
306th, screen intensity is adjusted according to the screen intensity regulations speed, so that the screen intensity after adjusting For the current environment brightness value.
Wherein, in step 303, current screen brightness value can directly acquire, thus, each user is when waking up terminal, There are one screen brightness values.In step 305, can calculate absolute between current environment brightness value and current screen brightness value Value.In step 305, the second default regulating time can voluntarily be set by user, alternatively, can be a certain default value.Assuming that second is pre- If the time is T, absolute value divided by T can be can obtain screen intensity regulations speed, within step 306, with the screen intensity tune Section rate at the uniform velocity adjusts screen intensity so that the screen intensity after adjusting is current environment brightness value.
Optionally, in above-mentioned steps 306, can also otherwise screen intensity regulations speed, for example, first is preset Regulating time is divided into multiple small periods, and the screen intensity regulations speed of each period is different.Assuming that 3 periods, 3 A period be respectively the screen intensity regulations speed of T1, T2, T3, the first period T1 for V1, second period T2's Screen intensity regulations speed is V2, and the screen intensity regulations speed of the 3rd period T3 is V3, then, it is as follows:
T1V1+T2V2+T3V3=X
Wherein, absolute values of the X between above-mentioned current screen brightness value and above-mentioned current environment brightness value.Certainly, it is above-mentioned Second default regulating time is further divided into more time section, and the screen intensity regulations speed of each period is different.Certainly, The screen intensity regulations speed of each period can also voluntarily be set by user.
As can be seen that using aforesaid way, it can realize and screen intensity is adjusted under gradual brightness change of screen, adjust Screen intensity grade afterwards is matched with current environment brightness value.Screen intensity after adjusting is current environment brightness value, so as to, In this way, when user observes preview image, eyes can be adapted to preferably.
It is specific as follows below to implement the device of the described image processing method of the embodiments of the present invention:
Fig. 4 a are referred to, are a kind of first embodiment structure diagram of terminal provided in an embodiment of the present invention.This implementation Terminal described in example, including:Acquiring unit 401, judging unit 402 and adjustment unit 403, it is specific as follows:
Acquiring unit 401, for when starting camera, obtaining current environment brightness value;
Judging unit 402, for judging the current environment brightness value and current screen of the acquisition of acquiring unit 401 Whether brightness degree matches;
Adjustment unit 403 if being no for the judging result of the judging unit 402, adjusts screen intensity so that adjust The corresponding screen intensity grade of screen intensity afterwards is matched with the current environment brightness value.
Optionally, enter shown in Fig. 4 b, the adjustment unit 403 of the terminal described in Fig. 4 a includes:
First acquisition module 4031, for obtaining corresponding of the corresponding screen intensity grade of the current environment brightness value One brightness value;
First acquisition module 4031, is additionally operable to:
Obtain current screen brightness value;
First determining module 4032, it is absolute between the current screen brightness value and any brightness value for determining Value;
First determining module 4032, is additionally operable to:
Screen intensity regulations speed is determined with the absolute value according to the first default regulating time;
First adjustment module 4033, for screen intensity to be adjusted according to the screen intensity regulations speed, so that Screen intensity after must adjusting is any brightness value.
Optionally, as illustrated in fig. 4 c, the adjustment unit 403 of the terminal described in Fig. 4 a includes:
Second acquisition module 4034, for obtaining current screen brightness value;
Second determining module 4035, for determining between the current environment brightness value and the current screen brightness value Absolute value;
Second determining module 4035, is additionally operable to:
Screen intensity regulations speed is determined with the absolute value according to the second default regulating time;
Second adjustment module 4036, for screen intensity to be adjusted according to the screen intensity regulations speed, so that Screen intensity after must adjusting is the current environment brightness value.
Optionally, as shown in figure 4d, the judging unit 402 of the terminal described in Fig. 4 a includes:
3rd determining module 4021, for being closed according to the mapping between default ambient brightness value and screen intensity grade System, determines the corresponding target screen brightness degree of the current environment brightness value;
First judgment module 4022, for judge current screen brightness degree whether with the target screen brightness degree one It causes, if it is not, then confirming that the current environment brightness value is mismatched with current screen brightness degree.
Optionally, as shown in fig 4e, the judging unit 402 of the terminal described in Fig. 4 a includes:
3rd acquisition module 4023, for obtaining the ambient brightness value scope corresponding to current screen brightness degree;
Second judgment module 4024, for judging the current environment brightness value whether in the ambient brightness value model It encloses, if it is not, then confirming that the current environment brightness value is mismatched with current screen brightness degree.
Optionally, above-mentioned acquiring unit 401 is specifically used for:
Current environment brightness value is obtained using ambient light sensor;
Alternatively,
The average brightness value of the preview image shot according to the camera determines current environment brightness value.
By the described terminal of the embodiment of the present invention, current environment brightness value can be obtained when starting camera, judged Whether current environment brightness value matches with current screen brightness degree, if it is not, adjusting screen intensity using brightness gradual manner, makes The corresponding screen intensity grade of screen intensity after must adjusting is matched with current environment brightness value.Thus, it can be bright in current environment When angle value is mismatched with current screen brightness degree, screen intensity is adjusted using brightness gradual manner so that screen intensity grade It is matched with current environment brightness value, it is ensured that for user when observing preview image, eyes can preferably adapt to brightness change process.Together When, it can be equivalent to the brightness to preview image using the screen intensity after adjusting as the brightness of preview image and be adjusted, because This, user can predict effect of taking pictures.
Referring to Fig. 5, the second embodiment structure diagram for a kind of terminal provided in an embodiment of the present invention.The present embodiment Described in terminal, including:At least one input equipment 1000;At least one output equipment 2000;At least one processor 3000, such as CPU;With memory 4000, above-mentioned input equipment 1000, output equipment 2000, processor 3000 and memory 4000 are connected by bus 5000.
Wherein, above-mentioned input equipment 1000 concretely touch panel or physical button.
Above-mentioned output equipment 2000 concretely display screen.
Above-mentioned memory 4000 can be high-speed RAM memory or non-labile memory (non-volatile ), such as magnetic disk storage memory.Above-mentioned memory 4000 is above-mentioned input equipment 1000, defeated for storing batch processing code Go out equipment 2000 and processor 3000 is used to call the program code stored in memory 4000, perform following operation:
Above-mentioned processor 3000, is used for:
When starting camera, current environment brightness value is obtained;
Judge whether the current environment brightness value matches with current screen brightness degree;
If it is not, screen intensity is adjusted using brightness gradual manner so that the corresponding screen intensity of screen intensity after adjusting Grade is matched with the current environment brightness value.
Optionally, above-mentioned processor 3000 adjusts screen intensity using brightness gradual manner, including:
Obtain the corresponding any brightness value of the corresponding screen intensity grade of the current environment brightness value;
Determine the absolute value between the current environment brightness value and any brightness value;
Screen intensity regulations speed is determined with the absolute value according to the first default regulating time;
Screen intensity is adjusted according to the screen intensity regulations speed, so that the screen intensity after adjusting is institute State any brightness value.
Optionally, above-mentioned processor 3000 adjusts screen intensity using brightness gradual manner, including:
Obtain current screen brightness value;
Determine the absolute value between the current environment brightness value and the current screen brightness value;
Screen intensity regulations speed is determined with the absolute value according to the second default regulating time;
Screen intensity is adjusted according to the screen intensity regulations speed, so that the screen intensity after adjusting is institute State current environment brightness value.
Optionally, above-mentioned processor 3000 judge the current environment brightness value and current screen brightness degree whether Match somebody with somebody, including:
According to the mapping relations between default ambient brightness value and screen intensity grade, the current environment brightness is determined It is worth corresponding target screen brightness degree;
Judge whether current screen brightness degree is consistent with the target screen brightness degree, if it is not, then confirming described work as Preceding ambient brightness value is mismatched with current screen brightness degree.
Optionally, above-mentioned processor 3000 judge the current environment brightness value and current screen brightness degree whether Match somebody with somebody, including:
Obtain the ambient brightness value scope corresponding to current screen brightness degree;
Whether the current environment brightness value is judged in the ambient brightness value scope, if it is not, then confirming described current Ambient brightness value is mismatched with current screen brightness degree.
Optionally, above-mentioned processor 3000 obtains current environment brightness value, including:
Current environment brightness value is obtained using ambient light sensor;
Alternatively,
The average brightness value of the preview image shot according to the camera determines current environment brightness value.
The embodiment of the present invention also provides a kind of computer storage media, wherein, which can be stored with journey Sequence, the part or all of step of any image processing method when which performs described in including above method embodiment Suddenly.
Although combining each embodiment herein, invention has been described, however, implementing the present invention for required protection In the process, those skilled in the art are by checking the attached drawing, disclosure and the appended claims, it will be appreciated that and it is real Other variations of the existing open embodiment.In the claims, " comprising " (comprising) word is not excluded for other compositions Part or step, "a" or "an" are not excluded for multiple situations.Single processor or other units can realize claim In several functions enumerating.Mutually different has been recited in mutually different dependent some measures, it is not intended that these are arranged It applies to combine and generates good effect.
It will be understood by those skilled in the art that the embodiment of the present invention can be provided as method, apparatus (equipment) or computer journey Sequence product.Therefore, in terms of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and hardware The form of embodiment.Moreover, the calculating for wherein including computer usable program code in one or more can be used in the present invention The computer program that machine usable storage medium is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.Computer program is stored/distributed in suitable medium, is provided together with other hardware or one as hardware Part can also use other distribution forms, such as pass through the wired or wireless telecommunication systems of Internet or other.
The present invention be with reference to the embodiment of the present invention method, apparatus (equipment) and computer program product flow chart with/ Or block diagram describes.It should be understood that can by computer program instructions realize flowchart and/or the block diagram in each flow and/ Or the flow in box and flowchart and/or the block diagram and/or the combination of box.These computer program instructions can be provided To the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to generate one A machine so that the instruction generation performed by computer or the processor of other programmable data processing devices is used to implement The device for the function of being specified in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although with reference to specific features and embodiment, invention has been described, it is clear that, do not departing from this hair In the case of bright spirit and scope, it can be carry out various modifications and combined.Correspondingly, the specification and drawings are only institute The exemplary illustration for the present invention that attached claim is defined, and be considered as covered in the scope of the invention arbitrary and all and repair Change, change, combining or equivalent.Obviously, those skilled in the art various changes and modifications can be made to the invention without Depart from the spirit and scope of the present invention.If in this way, these modifications and changes of the present invention belong to the claims in the present invention and its Within the scope of equivalent technologies, then the present invention is also intended to comprising including these modification and variations.

Claims (7)

1. a kind of image processing method, which is characterized in that including:
When starting camera, current environment brightness value is obtained;Face datection, the face figure that will be detected are carried out to preview image The average brightness value of picture determines the average brightness according to the mapping relations between default brightness value and standard environment brightness value It is worth corresponding standard environment brightness value, and using the corresponding standard environment brightness value of the average brightness value as current environment brightness Value, wherein, the mapping relations between the default brightness value and standard environment brightness value can be by advance in different brightness rings Many experiments are carried out under border to determine;
Judge whether the current environment brightness value matches with current screen brightness degree;
If it is not, screen intensity is adjusted using brightness gradual manner so that the corresponding screen intensity grade of screen intensity after adjusting It is matched with the current environment brightness value;
It is described that screen intensity is adjusted using brightness gradual manner, including:
Obtain the corresponding any brightness value of the corresponding screen intensity grade of the current environment brightness value;
Obtain current screen brightness value;
Determine the absolute value between the current screen brightness value and any brightness value;
Screen intensity regulations speed is determined with the absolute value according to the first default regulating time;
Screen intensity is adjusted according to the screen intensity regulations speed, so that the screen intensity after adjusting is appointed to be described One brightness value;Screen intensity regulations speed is divided into the time that screen intensity is adjusted 3 periods, each period Screen intensity regulations speed is different, and 3 periods are respectively that the screen intensity of t1, t2, t3, the first time period ts 1 adjusts speed Rate is v1, and the screen intensity regulations speed of second time period t 2 is v2, the screen intensity regulations speed of the 3rd time period t 3 For v3, then, t1v1+t2v2+t3v3=K;
Wherein, absolute values of the K between the current screen brightness value and any brightness value.
2. according to the method described in claim 1, it is characterized in that, described judge the current environment brightness value and current screen Whether brightness degree matches, including:
According to the mapping relations between default ambient brightness value and screen intensity grade, the current environment brightness value pair is determined The target screen brightness degree answered;
Judge whether current screen brightness degree is consistent with the target screen brightness degree, if it is not, working as front ring described in then confirming Border brightness value is mismatched with current screen brightness degree.
3. according to the method described in claim 1, it is characterized in that, described judge the current environment brightness value and current screen Whether brightness degree matches, including:
Obtain the ambient brightness value scope corresponding to current screen brightness degree;
Whether the current environment brightness value is judged in the ambient brightness value scope, if it is not, then confirming the current environment Brightness value is mismatched with current screen brightness degree.
4. a kind of terminal, which is characterized in that including:
Acquiring unit, for when starting camera, obtaining current environment brightness value;Face datection is carried out to preview image, it will The average brightness value of the facial image detected is according to the mapping relations between default brightness value and standard environment brightness value, really Determine the corresponding standard environment brightness value of the average brightness value, and the corresponding standard environment brightness value of the average brightness value is made For current environment brightness value, wherein, the mapping relations between the default brightness value and standard environment brightness value can be by pre- First many experiments are carried out under different lightness environment to determine;
Judging unit, the current environment brightness value for judging the acquiring unit acquisition are with current screen brightness degree No matching;
Adjustment unit if being no for the judging result of the judging unit, adjusts screen intensity using brightness gradual manner, makes The corresponding screen intensity grade of screen intensity after must adjusting is matched with the current environment brightness value;
The adjustment unit includes:
First acquisition module, for obtaining the corresponding any brightness of the corresponding screen intensity grade of the current environment brightness value Value;
First acquisition module, is additionally operable to:
Obtain current screen brightness value;
First determining module, for determining the absolute value between the current screen brightness value and any brightness value;
First determining module, is additionally operable to:
Screen intensity regulations speed is determined with the absolute value according to the first default regulating time;
The terminal, for screen intensity to be adjusted according to the screen intensity regulations speed, so that the screen after adjusting Curtain brightness is any brightness value;It is described according to the screen intensity regulations speed screen intensity is adjusted including:It will Screen intensity regulations speed is divided into the time that screen intensity is adjusted 3 periods, the screen intensity tune of each period Section rate is different, and the screen intensity regulations speed that 3 periods are respectively t1, t2, t3, the first time period ts 1 is v1, the The screen intensity regulations speed of two time period ts 2 is v2, and the screen intensity regulations speed of the 3rd time period t 3 is v3, then, T1v1+t2v2+t3v3=K;
Wherein, absolute values of the K between the current screen brightness value and any brightness value.
5. terminal according to claim 4, which is characterized in that the judging unit includes:
3rd determining module, for according to the mapping relations between default ambient brightness value and screen intensity grade, determining institute State the corresponding target screen brightness degree of current environment brightness value;
First judgment module, for judging whether current screen brightness degree is consistent with the target screen brightness degree, if it is not, Then confirm that the current environment brightness value is mismatched with current screen brightness degree.
6. terminal according to claim 4, which is characterized in that the judging unit includes:
3rd acquisition module, for obtaining the ambient brightness value scope corresponding to current screen brightness degree;
Second judgment module, for whether judging the current environment brightness value in the ambient brightness value scope, if it is not, then Confirm that the current environment brightness value is mismatched with current screen brightness degree.
7. a kind of terminal, which is characterized in that including:
Processor and memory;Wherein, the processor is by calling the code in the memory or instructing to perform such as power Profit requires the method described in 1 to 3 any one.
CN201610571714.7A 2016-07-18 2016-07-18 A kind of image processing method and terminal Active CN106210330B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610571714.7A CN106210330B (en) 2016-07-18 2016-07-18 A kind of image processing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610571714.7A CN106210330B (en) 2016-07-18 2016-07-18 A kind of image processing method and terminal

Publications (2)

Publication Number Publication Date
CN106210330A CN106210330A (en) 2016-12-07
CN106210330B true CN106210330B (en) 2018-05-29

Family

ID=57493641

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610571714.7A Active CN106210330B (en) 2016-07-18 2016-07-18 A kind of image processing method and terminal

Country Status (1)

Country Link
CN (1) CN106210330B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10347213B2 (en) * 2016-08-18 2019-07-09 Mediatek Inc. Methods for adjusting panel brightness and brightness adjustment system
CN106603856A (en) * 2016-12-26 2017-04-26 努比亚技术有限公司 Screen brightness adjusting method and terminal
CN106646925A (en) * 2017-01-03 2017-05-10 京东方科技集团股份有限公司 Glasses
CN106847150B (en) * 2017-01-04 2020-11-13 捷开通讯(深圳)有限公司 Device and method for adjusting brightness of display screen
CN108447432B (en) * 2017-02-16 2021-09-03 联咏科技股份有限公司 Display system, electronic device and display adjusting method thereof
CN107146581A (en) * 2017-04-07 2017-09-08 广东欧珀移动通信有限公司 Adjust method, mobile terminal and the storage medium of backlight illumination grade
CN107833568B (en) * 2017-10-30 2020-04-17 青岛海信电器股份有限公司 Screen brightness adjusting method and device and display terminal
CN107911585B (en) * 2017-11-28 2020-06-09 维沃移动通信有限公司 Image processing method and device of mobile terminal and mobile terminal
CN107919105A (en) * 2017-12-21 2018-04-17 北京奇艺世纪科技有限公司 The method, apparatus and electronic equipment of a kind of adjusting brightness of display
CN108831410A (en) * 2018-07-04 2018-11-16 青岛海信移动通信技术股份有限公司 Screen light compensation method and device
CN108986053B (en) * 2018-08-21 2021-03-16 北京小米移动软件有限公司 Screen display method and device
CN115514845A (en) * 2022-09-14 2022-12-23 盛泰光电科技股份有限公司 Mobile phone ambient brightness induction adjusting method and ambient light induction mobile phone

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101527137A (en) * 2008-03-06 2009-09-09 海尔集团公司 Method and device for adjusting screen display
JP5538549B2 (en) * 2010-09-17 2014-07-02 富士フイルム株式会社 Display control method and apparatus for viewfinder device
CN104754134B (en) * 2015-03-31 2018-03-16 酷派软件技术(深圳)有限公司 A kind of screen luminance adjustment method and system
CN105577935B (en) * 2016-01-04 2019-07-23 Oppo广东移动通信有限公司 Screen luminance adjustment method and device

Also Published As

Publication number Publication date
CN106210330A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
CN106210330B (en) A kind of image processing method and terminal
US11311195B2 (en) Electronic device, and method for analyzing face information in electronic device
US11302283B2 (en) Screen color conversion method, storage medium, and electronic device
CN106060417B (en) A kind of flash lamp control method and terminal
CN104754239B (en) Photographic method and device
EP3179711B1 (en) Method and apparatus for preventing photograph from being shielded
CN104754219B (en) A kind of terminal
KR102424986B1 (en) Electronic device and method for analysis of face information in electronic device
CN112767285A (en) Image processing method and device, electronic equipment and storage medium
CN108833781B (en) Image preview method, device, terminal and computer readable storage medium
CN113160094A (en) Image processing method and device, electronic equipment and storage medium
CN106941588B (en) Data processing method and electronic equipment
CN104934016A (en) Screen display method and device
CN107677377B (en) Method and device for determining color temperature
CN110211030A (en) Image generating method and device
CN110618852B (en) View processing method, view processing device and terminal equipment
CN111901459A (en) Color temperature adjusting method, device, terminal and storage medium
EP3327718B1 (en) Method and device for processing a page
CN105549927B (en) A kind of display methods and terminal
KR101550493B1 (en) Portable terminal with a function of eye protection
CN111275648B (en) Face image processing method, device, equipment and computer readable storage medium
CN107507601A (en) A kind of method and system of the camera supervised interface display effect of adjust automatically
CN106200939B (en) Sight protectio method, apparatus and terminal device based on terminal device
CN113962840A (en) Image processing method, image processing device, electronic equipment and storage medium
CN112312021B (en) Shooting parameter adjusting 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: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Patentee after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Patentee before: Guangdong OPPO Mobile Communications Co., Ltd.

CP01 Change in the name or title of a patent holder