CN108845779A - The method of electronic device and its adjustment brightness based on image gray scale adjustment brightness - Google Patents
The method of electronic device and its adjustment brightness based on image gray scale adjustment brightness Download PDFInfo
- Publication number
- CN108845779A CN108845779A CN201810630918.2A CN201810630918A CN108845779A CN 108845779 A CN108845779 A CN 108845779A CN 201810630918 A CN201810630918 A CN 201810630918A CN 108845779 A CN108845779 A CN 108845779A
- Authority
- CN
- China
- Prior art keywords
- image file
- display brightness
- gray scale
- display
- described image
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1407—General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Abstract
The present invention discloses a kind of method for being adjusted the electronic device of brightness based on image gray scale and its being adjusted brightness.Electronic device includes storage element, display unit and processing unit.Storage element stores database and multiple images file, and image file and the display brightness table of comparisons are stored in database, and image file and the display brightness table of comparisons store the multiple display brightness values for corresponding respectively to multiple images file.Display unit is to show corresponding display picture according to each image file.Processing unit and storage element and display unit are electrically connected.Processing unit reads and according to display brightness value corresponding in image file and the display brightness table of comparisons, shows the display picture for corresponding to image file with corresponding screen brightness value with driving display unit.Whereby, according to the grayscale value of each image file of energy, image frame is shown with preset display brightness value respectively, to provide the comfortable operating experience of user.
Description
Technical field
The present invention relates to a kind of electronic device of adjust automatically brightness and its methods for adjusting brightness, more particularly to one kind
The method of electronic device and its adjustment brightness based on image gray scale adjustment brightness.
Background technique
With the rapid progress of electronic industry and various software application technologies, the life and smartphone, pen of modern
Remember the combination of the electronic products such as this computer or tablet computer, it is closer and closer inseparable, especially with the intelligence of camera function
Type mobile phone can not only be used to browse the various graph text information accessed in mobile phone and work as life also because of its portable characteristic
Have that image notes down in upper or work when needing, mobile phone can also be picked up at any time and be shot, and browse shooting achievement or into one
Stepping edlin.
In order to cosily browse the display picture on various electronic product under varying environment light source, it is general and
Say can all have the function of adjustment screen display brightness in aforementioned electronic product.Typically, for (the example under strong light environment
Such as the outdoor of bright spring day) it can also see the information of display, it is necessary to the backlight illumination for showing screen is lightened;Conversely, dark
When place waits electronic products using this, then the backlight illumination for showing screen must be dimmed, enter pupil to avoid too strong light, made
At the discomfort of user, or even cause the damage in eyesight.
With the progress of light sensing technology, many electronic products are conceived to the starting point of convenient user, most likely carrying ring
Photoinduction unit in border automatically carries out the adjustment of screen display brightness will pass through environment photoinduction unit detecting ambient light illumination.
This practice, solve really to a certain extent must frequently be manually adjusted when user is in different light and shade environment screen show it is bright
The problem of spending, however, in practical application, it can be found that the aforementioned practice still can not be supplied to the sufficiently comfortable operating body of user
It tests.
Specifically, the image file there are many may being stored in the equal electronic devices, and each image file is bright
Darkness drop is very big.It, may be manually by screen display brightness when user wants to browse the lower picture detail of a shading value
It is turned up, at this point, if user is switched to next image file, and it is very high according to the picture brightness that the image file is shown, it uses
Family will feel very dazzling, and must turn down the display brightness of screen manually again, this does not very relax not only in use
It is suitable and inconvenient.However, existing technology can only adjust the display brightness of screen according to ambient light illumination, entirely without
Method solves foregoing problems, whether opens auto brightness adjustment modes, can not all bring user good operating experience.
Summary of the invention
Technical problem to be solved by the present invention lies in provide a kind of based on image gray scale tune in view of the deficiencies of the prior art
The electronic device of whole brightness and its method for adjusting brightness, to be set separately suitable according to the grayscale value of each image file
User watches the display brightness value of display picture, and can bring that user is good and comfortable operating experience.
In order to solve the above technical problems, a wherein technical solution of the present invention is to provide a kind of based on shadow
As the electronic device of grayscale adjustment brightness comprising a storage element, a display unit and a processing unit.The storage is single
Member stores a database and multiple images file, stores an image file in the database and compares with display brightness
Table, described image file and the display brightness table of comparisons store the multiple display brightness for corresponding respectively to multiple described image files
Value.The display unit is to show corresponding display picture according to each described image file.The processing is single
It is first to be electrically connected with the storage element and the display unit.The processing unit, which can be read, is stored in the storage element
Described image file, and it is according to corresponding in described image file and described image file and the display brightness table of comparisons
The display brightness value of image file, to drive the display unit to show with a corresponding screen brightness value corresponding to described
The display picture of image file.
Preferably, the storage element also stores an image gray scale and display brightness respective function.The processing unit
Described image file the storage element can be written, and when described image file is written in the processing unit, the processing
Unit executes an image gray scale to described image file and analyzes program, in the hope of corresponding to the image gray scale of described image file
Value.The processing unit is corresponded to according to the image gray scale value and the image gray scale and display brightness respective function
It establishes in the display brightness value of described image file, and by described image file and the display brightness Value Data in institute
It states in image file and the display brightness table of comparisons.
Preferably, the storage element also stores the different multiple standard image files of grayscale value.The electronic device
It further include an input unit, the input unit and the processing unit are electrically connected, and the input unit is to the place
It manages unit and sends display brightness setting instruction.The processing unit according to the grayscale values of multiple standard image files, with
And respectively correspond multiple display brightness setting instructions of multiple standard image files, with establish the image gray scale with
Display brightness respective function.
Preferably, after the processing unit establishes the image gray scale and display brightness respective function, the processing unit
The described image file having been stored in the storage element is read, and executes the image gray scale analysis program, to ask respectively
Multiple image gray scale values corresponding to multiple described image files are obtained, and according to image gray scale letter corresponding with display brightness
Number, obtains the multiple display brightness values for corresponding respectively to multiple described image files, and by multiple described image files with
And corresponding multiple display brightness Value Datas are established in described image file and the display brightness table of comparisons.
Preferably, when described image file is written to the storage element in the processing unit, the processing unit point
Safety pin establishes the address information for corresponding to described image file to each described image file.The processing unit is according to right
It should be in the address information of described image file, to decide whether to execute the image gray scale analysis program.
In order to solve the above technical problems, an other technical solution of the present invention is to provide a kind of based on shadow
As the method for grayscale adjustment brightness, it is applied to an electronic device for having display unit, wherein the method includes following
Step:An image file and the display brightness table of comparisons, institute are established for the multiple images file being stored in the electronic device
It states image file and the display brightness table of comparisons stores the multiple display brightness values for corresponding respectively to multiple described image files.Root
According to the display brightness value for corresponding to described image file in described image file and the display brightness table of comparisons, to determine to correspond to
In a screen brightness value of a display picture of described image file.The display unit is according to the screen brightness value to show
The display picture corresponding to described image file.
Preferably, the method also includes the following steps:When the electronic device stores described image file, triggering one
Image gray scale analyzes program, in the hope of corresponding to the image gray scale value of described image file.According to the image gray scale value and
The image gray scale and display brightness respective function, to obtain the display brightness value corresponding to described image file, and will
Described image file and the display brightness Value Data are established in described image file and the display brightness table of comparisons.
Preferably, the method also includes the following steps:The display unit shows multiple standard drawings of different grayscale values
As file.Receive the multiple display brightness setting instruction for respectively corresponding multiple standard image files.According to multiple marks
The grayscale value of quasi- image file and the multiple display brightness setting instruction for respectively corresponding multiple standard image files, to build
Found the image gray scale and display brightness respective function.
Preferably, the method also includes the following steps:It is right after establishing the image gray scale and display brightness respective function
The described image file being stored in the electronic device executes the image gray scale analysis program.It is multiple according to corresponding respectively to
Multiple image gray scale values of described image file and the image gray scale and display brightness respective function, to be respectively corresponded
In multiple display brightness values of multiple described image files.By multiple described image files and corresponding multiple described aobvious
Show that luminance data is established in described image file and the display brightness table of comparisons.
Preferably, the method also includes the following steps:It is established respectively for each described image file and corresponds to institute
State an address information of image file.According to the address information for corresponding to described image file, to decide whether to execute institute
State image gray scale analysis program.
A wherein beneficial effect of the invention is that the electronics provided by the present invention based on image gray scale adjustment brightness fills
The method for setting and its adjusting brightness, can be by the way that " image file and the display brightness table of comparisons store and correspond respectively to multiple institutes
State multiple display brightness values of image file " and " display unit is shown with a corresponding screen brightness value corresponding to described
The technical solution of the display picture of image file ", with according to the grayscale value of each image file, respectively to preset
Good display brightness value shows image frame, and to provide, user is most good and comfortable operating experience.
Be further understood that feature and technology contents of the invention to be enabled, please refer to below in connection with it is of the invention specifically
Bright and attached drawing, however provided attached drawing is merely provided for reference and description, is not intended to limit the present invention.
Detailed description of the invention
Fig. 1 is the component framework block diagram of the electronic device of present pre-ferred embodiments.
Fig. 2 is the schematic diagram of the electronic device viewing display picture of user through the invention.
Fig. 3 is the image gray scale and display brightness function curve schematic diagram of present pre-ferred embodiments.
Fig. 4 is the display brightness value that user adjusts electronic device, so that the schematic diagram of display picture to brighten.
Fig. 5 is the display brightness value that user adjusts electronic device, so that the dimmed schematic diagram of display picture.
Fig. 6 is that the method that present pre-ferred embodiments adjust brightness sets phase flow figure.
Fig. 7 is the method output stage flow chart that present pre-ferred embodiments adjust brightness.
Specific embodiment
It is to illustrate presently disclosed related " to adjust brightness based on image gray scale by specific specific example below
The embodiment of electronic device and its method for adjusting brightness ", those skilled in the art can be by content disclosed in this specification
Understand advantages of the present invention and effect.The present invention can be implemented or be applied, this explanation by other different specific embodiments
Every details in book may be based on different viewpoints and application, carry out various modifications and becomes in the case where not departing from design of the invention
More.In addition, attached drawing of the invention is only simple schematically illustrate, not according to the description of actual size, state in advance.Implementation below
The relevant technologies content of the invention, but the guarantor that disclosure of that is not intended to limit the invention will be explained in further detail in mode
Protect range.
It should be understood that although various assemblies or signal may be described using term first, second, third, etc. herein,
But these components or signal should not be limited by these terms.These terms are mainly to distinguish a component and another group
Part or a signal and another signal.In addition, term "or" used herein, should may include correlation depending on actual conditions
Connection lists any of project or multiple combinations.
It please refers to shown in Fig. 1 to Fig. 7, Fig. 1 is the component framework block diagram of the electronic device of present pre-ferred embodiments.Figure
The schematic diagram of the 2 electronic device viewing display picture for user through the invention.Fig. 3 is the image ash of present pre-ferred embodiments
Rank and display brightness function curve schematic diagram.Fig. 4 is the display brightness value that user adjusts electronic device, so that display picture
The schematic diagram to brighten.Fig. 5 is the display brightness value that user adjusts electronic device, so that the dimmed schematic diagram of display picture.
Fig. 6 is that the method that present pre-ferred embodiments adjust brightness sets phase flow figure.Fig. 7 is that present pre-ferred embodiments adjustment is bright
The method output stage flow chart of degree.By in above-mentioned figure it is found that first embodiment of the invention provide it is a kind of based on image gray scale tune
The electronic device D of whole screen intensity comprising storage element 1, display unit 2 and processing unit 3.
Please referring initially to shown in Fig. 1 and Fig. 2, storage element 1 stores multiple images file 11, and image file 11 respectively stores up
The information about shown picture is deposited, such as the parameters such as color-values (rgb value) of each pixel.Processing unit 3 and storage element 1
And display unit 2 is electrically connected, and the image file 11 for being stored in storage element 1 can be read, and driving display unit 2 is aobvious
Show the display picture 21 corresponding to image file 11, for user's browsing.
In the preferred embodiment, storage element 1 also stores database 12, stores image in database 12
File and the display brightness table of comparisons 121, image file and the display brightness table of comparisons 121, which store, corresponds respectively to multiple images text
Multiple display brightness values of part 11, storing mode can be such as IMG001 and correspond to display brightness, the IMG002 that numerical value is 42
It corresponds to display brightness, IMG003 that numerical value is 87 and corresponds to display brightness ... that numerical value is 50 etc., but the present invention is not limited thereto,
As long as its specific record mode can automatically be tabled look-up convenient for processing unit 3.When processing unit 3 reads image text
When part 11 and driving display unit 2 show corresponding display picture 21, processing unit 3 can read together image file and show
Correspond to the display brightness value of image file in brightness comparison table 121.It is somebody's turn to do according to reading specific image file 11 and corresponding to
The display brightness value of image file 11 as a result, processing unit 3 can driving display unit 2 with correspond to the display brightness value screen
Curtain brightness value, to show the image file 11.In other words, in section Example of the invention, electronic device D is according to each
When corresponding display picture 21 is presented in a image file 11, all display brightness values according to corresponding to image file 11, respectively
Screen intensity is adjusted to optimal numerical value.
In simple terms, the present invention is that the pass mutually compareed is established with display brightness by being directed to image file 11 in advance
System, and the display brightness for being most suitable for each image file 11 can be obtained in real time when showing each image file 11.With
Under, for foundation (the i.e. image file and the display brightness table of comparisons 121 of corresponding relationship between image file 11 and display brightness
Establish), do further detailed description.
In the preferred embodiment, storage element 1 also stores image gray scale and display brightness respective function 13,
For the image file 11 known to the image gray scale value, as long as it is corresponding with display brightness that image gray scale value is substituted into image gray scale
Function 13 can acquire corresponding display brightness.For backward, for the image file 11 for having no knowledge about grayscale value,
It then must first go through image gray scale analysis program further to acquire in the hope of corresponding to the image gray scale value of image file 11
Corresponding display brightness.After acquiring aforementioned display brightness, just by image file 11 and corresponding to the aobvious of the image file 11
Show that brightness is stored in image file and the display brightness table of comparisons 121.
More specifically, the electronic device D of the invention when user's operation makes electronic device D pass through wired or wireless side
Formula obtains a new image file 11, alternatively, (such as camera lens, icon are not shown by the image acquisition unit of electronic device D
Show) a new image file 11 is generated, image file 11 can be written in storage element 1 for the processing unit 3 of electronic device D.
In the preferred embodiment, processing unit 3 can also execute image for image file 11 when image file 11 is written
Grayscale analyzes program, in the hope of corresponding to the image gray scale value of image file 11.With the intelligent hand of Android (Android) system
For machine, among applications exchange data when, can by content supplier (ContentProvider, abbreviation CP) to
External application shows data with one or more parts of tables.In practical application, when electronic device D receives a stroke numeral information,
Image file 11 can be stored into the private room of application-specific, and build by CP after judging it for image file 11
Found corresponding storage address information;In addition, CP, which can also call image gray scale analysis program, executes analysis to the image file 11,
In the hope of corresponding to the image gray scale value of image file 11, and by the record of image gray scale value in list data.
Program is analyzed about image gray scale, the shadow for corresponding to image file 11 can be obtained using gray-scale intensity statistical chart
As grayscale value, alternatively, can also turn grayscale principle (RGB To Grey) under the premise of obtaining rgb value according to colour, pass through
Gray=(R × 30+G × 59+B × 11+50)/100 or other similar formula calculate grayscale value.Specifically
It is that the mode of the aforementioned image gray scale value for seeking image file 11, only feasible several embodiments, the present invention do not have
Body, which limits, to carry out operation using aforementioned formula, be also not necessarily limited to acquire image ash using the lookup mode of gray-scale intensity statistical chart
Rank value.
After acquiring image gray scale value by abovementioned steps, as long as image gray scale value to be substituted into the image gray scale pre-established
With display brightness respective function 13 (as shown in figure 3, it, which establishes mode, to be described in detail later), corresponding display can be acquired
Brightness.At this point, passing through CP for image file 11, the storage address of the image file 11 and the corresponding display of image file 11
Brightness is stored in table.Accordingly, processing unit 3 just can be according to image gray scale value and image gray scale and display brightness pair
Function 13 is answered, obtains the display brightness value corresponding to image file, and image file and display brightness Value Data are established
In image file and the display brightness table of comparisons 121.
Herein it should be strongly noted that one of important spiritual of the invention, is that electronic device D can be according to each
A image file 11 adjusts separately screen intensity to optimal numerical value respectively with the display brightness value corresponding to it.Therefore,
If just executing image gray scale when browsing the display picture 21 of each image file 11 and analyzing program, arithmetic speed be I'm afraid
It is unable to satisfy and uses upper demand.In order to avoid foregoing problems, the present invention is stored to electronic device D in each image file 11
When, just execute aforementioned image gray scale analysis program, and stored image file and the display brightness table of comparisons 121 in advance, so as to
When user continuously browses plurality of pictures (when continuously displaying the display picture 21 of corresponding multiple images file 11), processing unit 3
Additional more reading display brightness values are needed, the purpose to be reached can be realized.It so, it is possible to greatly reduce real-time operation
Resource burden, and help to provide more smoothly operating experience for user.
Next shown in cooperation Fig. 3, illustrate image gray scale and display brightness respective function 13 establishes mode.Different
In embodiment, image gray scale and display brightness respective function 13 can be stored directly in electronic device D, or by it is wired,
Wireless even storage medium (memory card etc.) dumps in electronic device D from other devices.In presently preferred embodiments of the present invention
In, it, can also be in the following manner if there is no the image gray scale stored in advance and display brightness respective function 13 in electronic device D
It establishes.
Firstly, in the preferred embodiment, grayscale value difference is also stored in the storage element 1 of electronic device D
Multiple standard image files 111.As described above, processing unit 3 can read the image file for being stored in storage element 1
11, and driving display unit 2 shows display picture 21 accordingly.Similarly, 3 energy driving display unit 2 of processing unit is shown accordingly
Display picture 21 corresponding to standard image files 111 is shown.
By taking the second point P2 of Fig. 3 as an example, please refer to Fig. 4, when processing unit 3 has read the lower (example of grayscale value
Such as:Grayscale value is standard image files 111 50), and at this time under the display brightness of standard, display unit 2 is showed aobvious
Show picture 21 for a user and might have the excessively dark situation of picture, user is caused to be difficult to see picture detail.
At this point, user is shown in the brightness adjustment bar 211 on display picture 21 by electronic device D, (example is turned up in brightness
Such as:Adjust to display brightness be 165) after, user think be at this time be most suitable for browse this picture best screen intensity, just press
Acknowledgement key 212.Pass through aforementioned setting process, so that it may obtain one group " grayscale values of standard image files 111 " and " display is bright
Corresponding relationship between degree ", i.e. the second point P2 of Fig. 3, and the instruction sent during setting to processing unit 3, that is, it can be considered
The so-called display brightness setting instruction of the present invention.It should be strongly noted that brightness settings mode of the invention be not limited to
The mode of brightness adjustment bar 211 and acknowledgement key 212 carries out, and preset several brightness value settings are either become virtual key
For user's selection or other any virtual key forms even through entity volume key adjustment brightness etc., as long as this can be reached
Invention corresponds to the purpose that show of brightness of standard image files 111 to set, and to the instruction of the transmission of processing unit 3, all
Display brightness setting instruction referred to herein can be considered as.And aforementioned Touch Screen (to show virtual key) or entity are pressed
Key can be seen as input unit 4 of the invention, available since input unit 4 and processing unit 3 are electrically connected
This input passes through the various operational orders including display brightness setting instruction.
Next, by taking the 5th point P5 of Fig. 3 as an example, please refer to Fig. 5, when processing unit 3 has read a grayscale value
Higher (such as:Grayscale value is standard image files 111 185), and at this time under the display brightness of standard, display unit 2 is in
The display picture 21 revealed might have picture for a user and cross too bright situation, it is equally possible to user be caused to be difficult to see
Picture detail, in some instances it may even be possible to user be allowed to feel dazzling, uncomfortable.
At this point, user brightness is turned down (such as:Adjust to display brightness be 50) after, user think be at this time be most suitable for it is clear
It lookes at the best screen intensity of this picture, the best image brightness of the standard image files 111 is just set it to, in this way, just again
Obtain the corresponding relationship between one group " grayscale values of standard image files 111 " and " display brightness " again, i.e. the 5th point of Fig. 3
P2.According to actual demand, user can be allowed to carry out multi-pass operation, and (embodiment as shown in Figure 3 is 6 times, i.e., the first point P1 is arrived
6th point P6), after obtaining the corresponding relationship between multiple groups " grayscale values of standard image files 111 " and " display brightness ", processing
Unit 3 just can be according to the grayscale value of multiple standard image files 111, and respectively corresponds multiple standard image files 111
Multiple display brightness setting instructions, to establish image gray scale and display brightness respective function 13.
After the first setting for completing image gray scale and display brightness respective function 13 will be illustrated next, image text how is established
Part and the display brightness table of comparisons 121.It previously mentions, has there is storage image gray scale and display brightness pair in electronic device D
Under the premise of answering function 13, the grayscale value of image file 11 need to only be brought into, so that it may acquire corresponding display brightness automatically.But
In practical application, a large amount of image file 11 may be originally stored in the Central Plains electronic device D, and image gray scale and display are bright
Spending respective function 13 is then just to establish afterwards.In this case, in the preferred embodiment, processing unit 3 exists
After establishing image gray scale and display brightness respective function 13, single pass program can be executed, reading has been stored in storage element 1
In image file, and execute image gray scale analysis program, with acquire respectively corresponding to multiple images file multiple images ash
Rank value, and according to image gray scale and display brightness respective function 13, obtain the multiple displays for corresponding respectively to multiple images file
Brightness value, and multiple images file and corresponding multiple display brightness Value Datas are established in image file and display brightness pair
According in table 121.As for the new image file 11 of subsequent deposit, then according to previously being analyzed and built in a manner of introducing
The vertical table of comparisons, does not repeat to repeat herein.
It deserves particular mention, it in the preferred embodiment, can also be only for specific data catalogue (such as spy
Determine the file of application program access) in image file 11 establish image file and the display brightness table of comparisons 121, and lead to accordingly
Method provided by the present invention is crossed to adjust the display brightness for the image file 11 for being stored in the specific data catalogue, and not necessarily
All image files 11 stored by entire electronic device D are built in image file and the display brightness table of comparisons 121.
Specifically, various files (including but not limited to image file 11) is written to storage element 1 in processing unit 3
When, processing unit 3 can be according to program default or the file storage position of user's selection, respectively for the foundation pair of each file
The address information answered.For user terminal, it is meant that permitted file is stored in specific data directory.When user's operation electronics
Device D, when so that processing unit 3 reading the file in particular file folder, processing unit 3 being capable of address of the interpretation corresponding to file
Information.In the present invention, if user wishes just to execute brightness adjustment only when browsing the image file 11 in particular file folder
Function, then user can be set by input unit 4, to this document folder be marked;Alternatively, in electronic device D
Particular file folder is established automatically during corresponding application program is installed.It is stored when image file 11 is written processing unit 3
Unit 1, processing unit 3 also can establish corresponding address information to image file 11.If image file 11 is stored in aforementioned
File, then institute creator is the address information for corresponding to aforementioned document folder.Accordingly, when processing unit 3 is according to address information
Judge that image file 11 is stored in aforementioned document folder, processing unit 3 executes the image gray scale analysis program;If conversely,
Processing unit 3 judges that image file 11 is stored in alternative document folder according to address information, then does not execute the image gray scale point
Analyse program.As aforementioned, when user is intended to the display picture 21 of image browsing file 11, processing unit 3 can driving display unit 2
To correspond to the screen brightness value (obtaining by reading image file and the display brightness table of comparisons 121) of the display brightness value,
Show the image file 11, therefore, when can browse the image file 11 of specific grey-scale value with individual subscriber, the screen of the most comfortable
Curtain brightness is browsed.
Electronic device D based on image gray scale adjustment brightness provided by through the invention, can bring more preferably for user
Viewing experience.Although the embodiment of this specification is mainly illustrated by example of picture file, in hardware technology
And software computing is enough under the premise of prevaricating grayscale analytic operation, spirit of the invention can also be applied in film text
Part, its application field of concrete restriction is not merely able to screen intensity when adjustment shows picture file to the present invention.
It is as follows that reference flowchart stage by stage of the invention is arranged below, it, can be easily so as to after refering to this specification
The method provided by the present invention based on image gray scale adjustment screen intensity is solved, the electronics dress for having display unit 2 is applied to
When setting D, the step of may taking.It must illustrate, set forth below is only a kind of present invention preferably embodiment,
Therefore, not each step is to realize the steps necessary of core spirit of the present invention;In addition, the sequence between some steps
Actual conditions can be regarded, are adjusted before and after being carried out under the premise of logical, this specification is not intended to limit in its concrete application
Embodiment.
Firstly, illustrate the setting stage of the invention, also referring to Fig. 1 and component numerals shown in Fig. 3, and arrange in pairs or groups refering to
Shown in Fig. 6:
S100:Whether setting of image grayscale and display brightness respective function 13;
S102:The display of display unit 2 corresponds to the display picture 21 of standard image files 111;
S104:Processing unit 3 receives display brightness setting instruction;
S106:Processing unit 3 establishes image gray scale and display brightness respective function 13;
S108:Scan the image file 11 in storage element 1;
S110:Establish image file and the display brightness table of comparisons 121.
In the step s 100, it is stored in the application-specific of electronic device D when user opens for the first time, or enables answer for the first time
With the specific function (image brilliance automatic regulating function) of program, display unit 2 can first show a confirmation message, inquire user
Whether image gray scale and display brightness respective function 13 are established.In practical application, can be direct access inquiry, whether to enable image bright
Automatic regulating function is spent, and next informing can first carry out a series of setting process.After user agrees to set, in step
In rapid S102, display unit 2 just shows multiple standard image files 111 of different grayscale values one by one, so that user chooses suitably
Brightness.As described in previously, the setting of this side can be display brightness adjustment bar 211, be also possible to show that several options supply
The brightness value that 0~255 connects first can be cut into several sections, e.g. show 20% brightness by user's selection when showing option
Value, the mode of 40% brightness value, 60% brightness value, 80% brightness value and 100% brightness value, set interval are selected to user,
So as to sharp user's operation.In step S104, when user has chosen corresponding brightness value, processing unit 3 just can receive aobvious
Show that brightness settings instruct.Next, in step s 106, obtaining " standard image files by multiple groups standard image files 111
After corresponding relationship between 111 grayscale value " and " display brightness ", just basis respectively corresponds multiple standard image files 111
Multiple display brightness setting instructions, to establish image gray scale and display brightness respective function 13.
After establishing image gray scale and display brightness respective function 13, in step S108, application program can provide one
Whether the interface of a inquiry, confirmation user will execute image gray scale for image file 11 existing in electronic device D and analyze journey
Sequence.If user determines to execute image gray scale analysis program, in step s 110, then analyze in storage element 1 (as ditto
State, it is possible to specify particular category) image file 11 execute image gray scale analysis program, and obtaining individual image files 11
After grayscale value, brings the grayscale value of image file 11 into image gray scale and display brightness respective function 13, find out corresponding display
Brightness, and establish image file and the display brightness table of comparisons 121.
Next, adjustment is shielded by means of the present invention when illustrating that user is intended to the display picture 21 of image browsing file 11
The output stage of curtain brightness also referring to Fig. 1 and component numerals shown in Fig. 3, and is arranged in pairs or groups refering to shown in Fig. 7:
S112:Whether the file for judging storage is image file 11;
S114:It executes image gray scale and analyzes program;
S116:Corresponding display brightness value is obtained with display brightness respective function 13 by image gray scale;
S118:User chooses image file 11;
S120:Read image file 11 and corresponding display brightness value;
S122:Output display picture 21.
When electronic device D one new file of acquirement, firstly, in step S112,3 meeting of processing unit of electronic device D
Judge whether this document is image file 11, to decide whether the analysis program of triggering following.Deserve particular mention, with
Family has in the embodiment for the catalogue that first setting will execute brightness adjustment, can also carry out only for the file for being stored into the catalogue
Down-stream, the file without being stored into electronic device D to each judge.Next, in step S114, if
Processing unit 3 judges this document for image file 11, will execute image gray scale analysis program and obtain grayscale value, and in step
In S116, corresponding display brightness value is further obtained with display brightness respective function by image gray scale.
When the display picture 21 of user's specific image file 11 to be browsed, and image file is had chosen according to step S118
11, in the step s 120, processing unit 3 reads the image file 11 in storage element 1, and reads image file and display together
Corresponding display brightness value in brightness comparison table 121.Next, the processing unit 3 of electronic device D just drives in step S122
Display unit 2 is moved to correspond respectively to the display brightness value of image file 11, output corresponds to the aobvious of each image file 11
Show picture 21.
The beneficial effect of embodiment
A wherein beneficial effect of the invention is that the electronics provided by the present invention based on image gray scale adjustment brightness fills
The method set D and its adjust brightness, can by " image file and the display brightness table of comparisons 121 store correspond respectively to it is more
Multiple display brightness values of a image file 11 " and " display unit 2 with corresponding screen brightness value show correspond to image file
The technical solution of 11 display picture 21 ", to be shown respectively with pre-set according to the grayscale value of each image file 12
Show that brightness value shows image frame 21, user is most good and comfortable operating experience to provide.
It is different from the prior art according to the weak adjustment mode for changing screen intensity of environmental light intensity, the present invention is that basis " is wanted
The shading value (grayscale value) of the image file 11 of display " changes screen intensity, so each figure all each can have a correspondence by oneself
Display brightness value.
Content disclosed above is only preferred possible embodiments of the invention, not thereby limits to right of the invention and wants
The protection scope of book is sought, so all equivalence techniques variations done with description of the invention and accompanying drawing content, are both contained in
In the protection scope of claims of the present invention.
Claims (10)
1. a kind of electronic device based on image gray scale adjustment brightness, which is characterized in that described to adjust brightness based on image gray scale
Electronic device include:
One storage element stores a database and multiple images file, stores an image file in the database
With the display brightness table of comparisons, described image file and the display brightness table of comparisons store and correspond respectively to multiple described image files
Multiple display brightness values;
One display unit, to show corresponding display picture according to each described image file;And
One processing unit is electrically connected with the storage element and the display unit;
Wherein, the processing unit can read the described image file for being stored in the storage element, and according to described image text
Correspond to the display brightness value of described image file in part and described image file and the display brightness table of comparisons, with driving
The display unit shows the display picture corresponding to described image file with a corresponding screen brightness value.
2. electronic device according to claim 1, which is characterized in that the storage element also store an image gray scale with
Display brightness respective function;
Wherein, the processing unit storage element can be written described image file, and institute is written in the processing unit
When stating image file, the processing unit executes an image gray scale to described image file and analyzes program, in the hope of corresponding to institute
State the image gray scale value of image file;
Wherein, the processing unit is obtained according to the image gray scale value and the image gray scale and display brightness respective function
To the display brightness value corresponding to described image file, and described image file and the display brightness Value Data are built
It stands in described image file and the display brightness table of comparisons.
3. electronic device according to claim 2, which is characterized in that it is different that the storage element also stores grayscale value
Multiple standard image files, wherein the electronic device further includes:
One input unit is electrically connected with the processing unit, and the input unit is to send one to the processing unit
Display brightness setting instruction;
Wherein, the processing unit is according to the grayscale values of multiple standard image files, and respectively corresponds multiple marks
Multiple display brightness setting instructions of quasi- image file, to establish the image gray scale and display brightness respective function.
4. electronic device according to claim 3, which is characterized in that the processing unit is established the image gray scale and shown
After showing brightness respective function, the processing unit reads the described image file having been stored in the storage element, and executes
The image gray scale analyzes program, to acquire multiple image gray scale values corresponding to multiple described image files respectively, and according to
The image gray scale and display brightness respective function, the multiple displays for obtaining corresponding respectively to multiple described image files are bright
Angle value, and by multiple described image files and corresponding multiple display brightness Value Datas establish described image file with
In the display brightness table of comparisons.
5. electronic device according to claim 2, which is characterized in that the storage element is written in the processing unit
When described image file, the processing unit, which is directed to each described image file respectively and establishes, corresponds to described image file
One address information;
Wherein, the processing unit is according to the address information for corresponding to described image file, to decide whether described in execution
Image gray scale analyzes program.
6. a kind of method based on image gray scale adjustment brightness, is applied to the electronic device for having a display unit, special
Sign is that the method based on image gray scale adjustment brightness includes the following steps:
An image file and the display brightness table of comparisons are established for the multiple images file being stored in the electronic device, it is described
Image file and the display brightness table of comparisons store the multiple display brightness values for corresponding respectively to multiple described image files;
According to the display brightness value for corresponding to described image file in described image file and the display brightness table of comparisons, with certainly
Surely the screen brightness value corresponding to a display picture of described image file;And
The display unit shows the display picture corresponding to described image file according to the screen brightness value.
7. according to the method described in claim 6, it is characterized in that, the method also includes the following steps:
When the electronic device stores described image file, one image gray scale of triggering analyzes program, described in the hope of corresponding to
The image gray scale value of image file;And
According to the image gray scale value and the image gray scale and display brightness respective function, to obtain corresponding to described image
The display brightness value of file, and described image file and the display brightness Value Data are established in described image file
In the display brightness table of comparisons.
8. the method according to the description of claim 7 is characterized in that the method also includes the following steps:
The display unit shows multiple standard image files of different grayscale values;
Receive the multiple display brightness setting instruction for respectively corresponding multiple standard image files;
According to the grayscale value of multiple standard image files and respectively correspond the multiple aobvious of multiple standard image files
Show that brightness settings instruct, to establish the image gray scale and display brightness respective function.
9. according to the method described in claim 8, it is characterized in that, the method also includes the following steps:
After establishing the image gray scale and display brightness respective function, to the described image file being stored in the electronic device
Execute the image gray scale analysis program;
According to the multiple image gray scale values and the image gray scale and display brightness for corresponding respectively to multiple described image files
Respective function, to obtain corresponding respectively to multiple display brightness values of multiple described image files;And
Multiple described image files and corresponding multiple display brightness Value Datas are established in described image file and shown
Show in brightness comparison table.
10. the method according to the description of claim 7 is characterized in that the method also includes the following steps:
The address information for corresponding to described image file is established for each described image file respectively;And
According to the address information for corresponding to described image file, to decide whether to execute the image gray scale analysis program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810630918.2A CN108845779B (en) | 2018-06-19 | 2018-06-19 | Electronic device for adjusting brightness based on image gray scale and brightness adjusting method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810630918.2A CN108845779B (en) | 2018-06-19 | 2018-06-19 | Electronic device for adjusting brightness based on image gray scale and brightness adjusting method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108845779A true CN108845779A (en) | 2018-11-20 |
CN108845779B CN108845779B (en) | 2021-08-20 |
Family
ID=64203233
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810630918.2A Active CN108845779B (en) | 2018-06-19 | 2018-06-19 | Electronic device for adjusting brightness based on image gray scale and brightness adjusting method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108845779B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111276089A (en) * | 2020-04-13 | 2020-06-12 | 昆山国显光电有限公司 | Gray scale compensation calculation method and device and display device |
CN114420071A (en) * | 2022-01-28 | 2022-04-29 | Oppo广东移动通信有限公司 | Brightness calibration method, brightness calibration device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101042841A (en) * | 2006-03-20 | 2007-09-26 | 广达电脑股份有限公司 | Lighteness adjusting apparatus and method thereof |
CN101340510A (en) * | 2008-08-07 | 2009-01-07 | 中兴通讯股份有限公司 | Method for video enhancement and apparatus thereof |
CN103778894A (en) * | 2012-10-23 | 2014-05-07 | 联想(北京)有限公司 | Display brightness adjusting method and device thereof |
CN104700786A (en) * | 2014-12-26 | 2015-06-10 | 小米科技有限责任公司 | Display brightness adjustment method and device |
CN105976760A (en) * | 2016-06-30 | 2016-09-28 | 维沃移动通信有限公司 | Brightness adjusting method for terminal screen and mobile terminal |
-
2018
- 2018-06-19 CN CN201810630918.2A patent/CN108845779B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101042841A (en) * | 2006-03-20 | 2007-09-26 | 广达电脑股份有限公司 | Lighteness adjusting apparatus and method thereof |
CN101340510A (en) * | 2008-08-07 | 2009-01-07 | 中兴通讯股份有限公司 | Method for video enhancement and apparatus thereof |
CN103778894A (en) * | 2012-10-23 | 2014-05-07 | 联想(北京)有限公司 | Display brightness adjusting method and device thereof |
CN104700786A (en) * | 2014-12-26 | 2015-06-10 | 小米科技有限责任公司 | Display brightness adjustment method and device |
CN105976760A (en) * | 2016-06-30 | 2016-09-28 | 维沃移动通信有限公司 | Brightness adjusting method for terminal screen and mobile terminal |
Non-Patent Citations (1)
Title |
---|
王海宏等: "《平板显示释疑手册》", 31 December 2016, 东南大学出版社 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111276089A (en) * | 2020-04-13 | 2020-06-12 | 昆山国显光电有限公司 | Gray scale compensation calculation method and device and display device |
CN114420071A (en) * | 2022-01-28 | 2022-04-29 | Oppo广东移动通信有限公司 | Brightness calibration method, brightness calibration device, electronic equipment and storage medium |
CN114420071B (en) * | 2022-01-28 | 2023-08-25 | Oppo广东移动通信有限公司 | Brightness calibration method, brightness calibration device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108845779B (en) | 2021-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11289053B2 (en) | Method for correcting brightness of display panel and apparatus for correcting brightness of display panel | |
JP7090210B2 (en) | User interface for simulated depth effects | |
US9729780B2 (en) | Imaging apparatus and controller for photographing products | |
US8564597B2 (en) | Automatic zoom for a display | |
US7532191B2 (en) | Apparatus, method and computer program product for controlling screen brightness of mobile terminal | |
US7859543B2 (en) | Displaying images | |
CN110100251A (en) | For handling the equipment, method and graphic user interface of document | |
CN106412457B (en) | A kind of image processing method and mobile terminal | |
US20150002700A1 (en) | Image display device, photography device, image display system and method | |
JP2011070651A (en) | Display device and image display method | |
CN108845779A (en) | The method of electronic device and its adjustment brightness based on image gray scale adjustment brightness | |
CN112492106A (en) | Page theme switching method and device, computer equipment and storage medium | |
CN106803896B (en) | A kind of photographic method and mobile terminal of mobile terminal | |
CN109410813A (en) | A kind of method of adjustment and device of touch-control blank | |
US20090029740A1 (en) | Mobile telephone terminal, screen display control method used for the same, and program thereof | |
JP3339052B2 (en) | Information processing apparatus, display environment changing method, and recording medium recording the method | |
CN106331346A (en) | Contrast adjustment method and apparatus, display screen with apparatus, and portable device | |
JP5785663B2 (en) | Liquid crystal display | |
CN106791013B (en) | display screen response processing method and system based on mobile terminal | |
CN107578753A (en) | Mobile terminal and brightness of display screen regulation processing method and storage medium | |
JP6315026B2 (en) | Control device and program | |
CN107613277B (en) | A kind of digitalized processing method and terminal of egative film | |
CN107562395B (en) | Mobile terminal, display data transmission processing method and storage medium | |
KR101603573B1 (en) | Apparatus and Method for Determining User Customized Color, Lighting Apparatus and Lighting System | |
US7034965B2 (en) | Method and system for automatic scanning system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |