CN111741166A - Screen brightness adjusting system, method and device - Google Patents
Screen brightness adjusting system, method and device Download PDFInfo
- Publication number
- CN111741166A CN111741166A CN202010619768.2A CN202010619768A CN111741166A CN 111741166 A CN111741166 A CN 111741166A CN 202010619768 A CN202010619768 A CN 202010619768A CN 111741166 A CN111741166 A CN 111741166A
- Authority
- CN
- China
- Prior art keywords
- screen brightness
- brightness
- adjusting
- electronic device
- time
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
- G06K7/1417—2D bar codes
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/10—Intensity circuits
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/06—Adjustment of display parameters
- G09G2320/0626—Adjustment of display parameters for control of overall brightness
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Health & Medical Sciences (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The embodiment of the invention provides a system, a method and a device for adjusting screen brightness, which relate to the technical field of screen display, wherein the system comprises a first electronic device and a second electronic device: the first electronic equipment is used for determining the current time of a time zone to which the geographical position of the first electronic equipment belongs when the two-dimensional code needs to be displayed for the second electronic equipment; determining a target proportion for adjusting the screen brightness of the first electronic device according to the information of the ambient brightness reflected by the current time; and according to the target proportion, adjusting the screen brightness on the basis of the current screen brightness of the first electronic equipment, displaying the two-dimensional code to be scanned after adjusting the screen brightness, and scanning and identifying the two-dimensional code to be scanned displayed by the first electronic equipment by using the second electronic equipment. By applying the scheme provided by the embodiment of the invention to adjust the screen brightness, the display effect of the two-dimensional code is improved.
Description
Technical Field
The invention relates to the technical field of screen display, in particular to a screen brightness adjusting system, method and device.
Background
When a user uses electronic equipment such as a mobile phone and a tablet personal computer, the two-dimensional code displayed on the screen can be clearer by increasing the screen brightness, so that the definition of the two-dimensional code displayed on the screen is improved, and the two-dimensional code can be more easily identified or successfully scanned by other electronic equipment.
Whether the two-dimensional code displayed on the screen is clear or not is relative to the ambient brightness, for example, under the condition that the screen brightness is the same, the first definition is lower than the second definition, wherein the first definition is: when the ambient brightness is higher, the definition of the two-dimensional code displayed on the screen relative to the ambient brightness is as follows: and when the ambient brightness is low, the definition of the two-dimensional code displayed on the screen relative to the ambient brightness is high. Therefore, the two-dimensional code displayed on the screen can be clearer by adjusting the screen brightness, and in the prior art, when the screen brightness is adjusted, a user generally manually adjusts the screen brightness of the screen according to the ambient brightness.
Therefore, when the two-dimensional code is displayed on the screen, the operation of the user is more, the process is complicated, and the display effect of the two-dimensional code is not good in the process of adjusting the screen brightness.
Disclosure of Invention
The embodiment of the invention aims to provide a system, a method and a device for adjusting screen brightness so as to improve the display effect of a two-dimensional code. The specific technical scheme is as follows:
in a first aspect of the embodiments of the present invention, a screen brightness adjusting system is provided first, where the system includes a first electronic device and a second electronic device;
the first electronic equipment is used for determining the current time of a time zone to which the geographical position of the first electronic equipment belongs when the two-dimensional code needs to be displayed for the second electronic equipment; determining a target proportion for adjusting the screen brightness of the first electronic device according to the information of the ambient brightness reflected by the current time; according to the target proportion, adjusting the screen brightness on the basis of the current screen brightness of the first electronic device, and displaying the two-dimensional code to be scanned after adjusting the screen brightness;
and the second electronic equipment is used for scanning and identifying the two-dimensional code to be scanned displayed by the first electronic equipment.
In a second aspect of the embodiments of the present invention, there is provided a screen brightness adjusting method applied to a first electronic device, where the first electronic device is configured to display a two-dimensional code to be scanned for another second electronic device, and the method includes:
determining the current time of a time zone to which the geographical position of the first electronic equipment belongs;
determining a target proportion for adjusting the screen brightness of the first electronic device according to the information of the ambient brightness reflected by the current time;
and adjusting the screen brightness on the basis of the current screen brightness of the first electronic device according to the target proportion, and displaying the two-dimensional code to be scanned after the screen brightness is adjusted.
In an embodiment of the present invention, the determining, according to the information about the ambient brightness level reflected by the current time, a target ratio for adjusting the screen brightness of the first electronic device includes:
and determining a target proportion for adjusting the screen brightness of the first electronic equipment according to the time difference between the current time and a preset reference time.
In an embodiment of the present invention, the determining a target ratio for adjusting the screen brightness of the first electronic device according to a time difference between the current time and a preset reference time includes:
determining a target ratio for adjusting the screen brightness of the first electronic device according to the following formula:
wherein f (t) represents the target proportion, t represents the current time, b represents the preset reference time, and a and c are preset parameters.
In an embodiment of the invention, the preset reference time is a time when the ambient brightness is highest within a preset statistical time period.
In an embodiment of the present invention, the adjusting the screen brightness based on the current screen brightness of the first electronic device according to the target ratio includes:
the target brightness is calculated according to the following formula:
bd=bc+(x-bc)*f(t)
wherein, b isdRepresenting the target brightness, bcRepresenting a current screen brightness of the first electronic device, x representing a highest screen brightness of the first electronic device, and f (t) representing the target ratio;
and adjusting the screen brightness of the first electronic equipment to the target brightness.
In a second aspect of the present invention, there is also provided a screen brightness adjusting apparatus applied to a first electronic device, where the first electronic device is configured to display a two-dimensional code to be scanned for another second electronic device, and the apparatus includes:
the time determining module is used for determining the current time of a time zone to which the geographical position of the first electronic equipment belongs;
the proportion determining module is used for determining a target proportion for adjusting the screen brightness of the first electronic equipment according to the information of the ambient brightness reflected by the current time;
and the brightness adjusting module is used for adjusting the screen brightness on the basis of the current screen brightness of the first electronic device according to the target proportion and displaying the two-dimensional code to be scanned after the screen brightness is adjusted.
In an embodiment of the invention, the ratio determining module is specifically configured to determine a target ratio for adjusting the screen brightness of the first electronic device according to a time difference between the current time and a preset reference time.
In an embodiment of the present invention, the ratio determining module is specifically configured to determine a target ratio for adjusting the screen brightness of the first electronic device according to the following formula:
wherein f (t) represents the target proportion, t represents the current time, b represents the preset reference time, and a and c are preset parameters.
In an embodiment of the invention, the preset reference time is a time when the ambient brightness is highest within a preset statistical time period.
In an embodiment of the present invention, the brightness adjusting module is specifically configured to:
the target brightness is calculated according to the following formula:
bd=bc+(x-bc)*f(t)
wherein, b isdRepresenting the target brightness, bcRepresenting a current screen brightness of the first electronic device, x representing a highest screen brightness of the first electronic device, and f (t) representing the target ratio;
and adjusting the screen brightness of the first electronic device to the target brightness, and displaying the two-dimensional code to be scanned after adjusting the screen brightness.
In a third aspect of the present invention, there is provided an electronic device, as a first electronic device, including a processor, a communication interface, a memory and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of the second aspect when executing the program stored in the memory.
In yet another aspect of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, which when executed by a processor implements the method steps of any one of the above-mentioned second aspects.
In a further aspect of the present invention, there is also provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method steps of any of the second aspects described above.
As can be seen from the above, when the screen brightness is adjusted by applying the scheme provided by the embodiment of the present invention, the target ratio for adjusting the screen brightness of the first electronic device is determined according to the information about the ambient brightness reflected by the current time, the screen brightness is adjusted on the basis of the current brightness of the screen of the first electronic device according to the target ratio, and the two-dimensional code to be scanned is displayed after the screen brightness is adjusted. Because the current time is the current time of the time zone to which the geographical position of the first electronic device belongs, and the time is different, and the ambient brightness is different, the current time can reflect the ambient brightness of the environment in which the first electronic device is located, so the screen brightness is adjusted according to the current time, the adjusted screen brightness can accord with the ambient brightness, and the two-dimensional code to be scanned can be clearly displayed. The screen brightness does not need to be manually increased by a user, the efficiency of adjusting the screen brightness is improved, and the display effect of the two-dimensional code is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1A is a schematic structural diagram of a screen brightness adjusting system according to an embodiment of the present invention;
fig. 1B is a schematic flowchart of a first method for adjusting screen brightness according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a second method for adjusting screen brightness according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a relationship between time and a target ratio according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a screen brightness adjusting device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
Because the two-dimensional code has a poor display effect, in order to solve the problem, embodiments of the present invention provide a system, a method, and a device for adjusting screen brightness.
In an embodiment of the present invention, referring to fig. 1A, a schematic structural diagram of a screen brightness adjusting system is provided, where the system includes a first electronic device 101 and a second electronic device 102.
The first electronic device 101 is configured to determine the current time of a time zone to which a geographical location of the first electronic device 101 belongs when the two-dimensional code needs to be displayed for the second electronic device 102; determining a target ratio for adjusting the screen brightness of the first electronic device 101 according to the information of the ambient brightness reflected by the current time; according to the target ratio, the screen brightness is adjusted on the basis of the current screen brightness of the first electronic device 101, and the two-dimensional code to be scanned is displayed after the screen brightness is adjusted.
A detailed description of the method for adjusting the screen brightness and displaying the two-dimensional code to be scanned by the first electronic device 101 is presented in the following steps S101 to S103, and will not be detailed here.
And the second electronic device 102 is configured to scan and identify the two-dimensional code to be scanned, which is displayed by the first electronic device 101.
Data is not directly transmitted between the first electronic device 101 and the second electronic device 102 in a wired or wireless signal manner, but the second electronic device 102 can acquire information by scanning the two-dimensional code to be scanned displayed by the first electronic device 101.
Therefore, the screen brightness is adjusted according to the current time, the adjusted screen brightness can accord with the ambient brightness, and the two-dimensional code to be scanned can be clearly displayed, so that the second electronic device can scan the two-dimensional code to be scanned conveniently. The screen brightness does not need to be manually increased by a user, the efficiency of adjusting the screen brightness is improved, and the display effect of the two-dimensional code is improved.
Corresponding to the above system, in another embodiment of the present invention, a screen brightness adjusting method applied to a first electronic device is provided, where the first electronic device is configured to display a two-dimensional code to be scanned for another second electronic device, and the method includes:
determining the current time of a time zone to which the geographical position of the first electronic equipment belongs;
and determining a target proportion for adjusting the screen brightness of the first electronic equipment according to the information of the ambient brightness reflected by the current time.
And adjusting the screen brightness on the basis of the current screen brightness of the first electronic equipment according to the target proportion, and displaying the two-dimensional code to be scanned after the screen brightness is adjusted.
The following describes a method and an apparatus for adjusting screen brightness according to an embodiment of the present invention with specific embodiments. Referring to fig. 1B, an embodiment of the present invention provides a flowchart of a first method for adjusting screen brightness, which is applied to a first electronic device, where the first electronic device is configured to display a two-dimensional code to be scanned for another second electronic device. Specifically, the method includes the following steps S101-S103.
S101: and determining the current time of the time zone to which the geographical position of the first electronic equipment belongs.
In view of the above, in an embodiment of the present invention, the current time of the time zone to which the geographical location of the first electronic device belongs may be obtained by obtaining the system time of the first electronic device.
In another embodiment of the present invention, the time zone to which the first electronic device belongs may also be determined according to the geographic location to which the first electronic device is located, and then the current time of the time zone to which the first electronic device belongs may be determined from the network side through the network.
S102: and determining a target proportion for adjusting the screen brightness of the first electronic equipment according to the information of the ambient brightness reflected by the current time.
Because the time in different time zones at the same time is different, that is, the relative time in different time zones is different for the same absolute time, for example, the time in time zone a is 12:00 at the same time, the time in time zone B is 13:00 at the same time, and the ambient brightness of the environment where the first electronic device located in different time zones is located is also different. For example, at the same time, time zone a is day time, time zone B is night time, and the ambient brightness in time zone a is greater than the ambient brightness in time zone B under normal circumstances. In addition, the ambient brightness in the same time zone is different at different times, for example, in general, the ambient brightness in the daytime in time zone a is greater than the ambient brightness at night. Therefore, the current time of the time zone to which the geographical position of the first electronic device belongs can reflect the ambient brightness of the geographical position of the first electronic device.
Specifically, the ambient brightness at different times may be counted in advance, and then the level of the ambient brightness reflected at different times is determined according to the statistical result. For example, in 24 hours, by counting the ambient brightness at different times per 24 hours, the ambient brightness of 12:00 may be the highest, the ambient brightness of 0:00 may be the lowest, the ambient brightness of 0:00-12:00 gradually increases, and the ambient brightness of 12:00-0:00 gradually decreases for the time of day.
In addition, the ambient brightness reflected at the same time may be different according to the difference of the month, the season, and the like, so that the first corresponding relationship may be adjusted according to the current month or the season, and thus, in different months or seasons, different brightness adjustments may be performed on the screen of the first electronic device, so that the ambient brightness conditions of different months or seasons match.
Moreover, according to the different geographic locations of the first electronic device, the ambient brightness reflected at the same time may also be different, for example, at the same time, the closer the geographic location of the first electronic device is to the equator, the higher the ambient brightness is, so that the first corresponding relationship may be adjusted according to the geographic location of the first electronic device, so that the first electronic devices located at different locations may perform different brightness adjustments on the screen, thereby matching the ambient brightness conditions at different geographic locations.
In an embodiment of the present invention, the adjusting of the screen brightness of the first electronic device may be adjusting the screen brightness to be higher or lower. The higher the ambient brightness reflected by the current time, the higher the target ratio.
When the target proportion is a positive value, the screen brightness of the first electronic device is increased, and when the target proportion is a negative value, the screen brightness of the first electronic device is decreased.
For example, a target ratio of 30% for 8:00, 50% for 12:00, 35% for 15:00, 20% for 0:00, etc.
Further, the target ratio may be: the ratio of the luminance difference divided by the current luminance is: and adjusting the difference value between the brightness of the first electronic equipment before and after the screen brightness.
The target ratio may be: the ratio of the luminance difference divided by the maximum difference is: and the difference value between the highest screen brightness and the current brightness of the first electronic device.
In an embodiment of the present invention, the target ratio may be determined according to a preset first corresponding relationship between time and the target ratio. The first correspondence may be a one-to-one correspondence between time and a target proportion, for example, the target proportion corresponding to 8:00 is 30%, the target proportion corresponding to 12:00 is 50%, and the like, or the first correspondence may be a correspondence between time periods and target proportions, and the target proportions corresponding to time in the same time period are the same, for example, the target proportion corresponding to 8:00-9:00 is 30%, and the target proportion corresponding to 12:00-13:00 is 50%, and the like.
In another embodiment of the present invention, the target ratio may also be determined according to step S102A, which will not be described in detail herein.
S103: and adjusting the screen brightness on the basis of the current screen brightness of the first electronic equipment according to the target proportion, and displaying the two-dimensional code to be scanned after the screen brightness is adjusted.
In an embodiment of the present invention, the target ratio may be multiplied by the current luminance, and the multiplied value may be added to the current luminance to obtain the target luminance. And when the target brightness is larger than the highest screen brightness, determining the target brightness as the highest screen brightness, and adjusting the screen brightness of the first electronic device to the target brightness.
In another embodiment of the present invention, the target ratio may be multiplied by the maximum difference value, and the obtained result is added to the current brightness to obtain a target brightness, and the screen brightness of the first electronic device may be adjusted to the target brightness.
Specifically, the target luminance may be calculated according to the following formula:
bd=bc+(x-bc)*f(t)
wherein, the above bdRepresenting the above target brightness, bcThe current screen brightness of the first electronic device is represented, x represents the highest screen brightness of the first electronic device, and f (t) represents the target ratio.
Specifically, the current screen brightness may be represented by a number between 0 and 1, where a current screen brightness of 0 indicates that the screen brightness of the first electronic device is the highest screen brightness, and a current screen brightness of 1 indicates that the screen brightness of the first electronic device is the lowest screen brightness. In the above case, X is 1, and b is calculateddAgain with a number between 0 and 1.
The current screen brightness and the maximum screen brightness may be normalized to other ranges such as 0-5, 0-10, etc.
The current screen brightness may be expressed by a specific value of brightness.
As can be seen from the above, since the current time is the current time of the time zone to which the geographical location of the first electronic device belongs, and the time is different and the ambient brightness is different, the current time can reflect the ambient brightness of the environment in which the first electronic device is located, and therefore, the screen brightness is adjusted according to the current time, so that the adjusted screen brightness can be matched with the ambient brightness. The screen brightness does not need to be manually increased by a user, the efficiency of adjusting the screen brightness is improved, and the display effect of the two-dimensional code is improved.
Referring to fig. 2, a flow chart of a second screen brightness adjustment method is provided, and compared with the foregoing embodiment shown in fig. 1B, the step S102 can be implemented by S102A.
S102A: and determining a target ratio for adjusting the screen brightness of the first electronic device according to the time difference between the current time and a preset reference time.
The preset reference time is the time with the highest ambient brightness within a preset statistical time period.
Specifically, the time when the ambient brightness is the highest may be determined after statistics of ambient brightness at different times are performed. The preset statistical time period can be 0:00-12:00, 0: 00-the next day 0:00 and the like.
For example, in the case that the preset statistical time period is 0: 00-0:00 of the next day, the preset reference time may be 12:00 or 14: 00.
Since the reference time is the time at which the ambient brightness is highest within the preset statistical time period, according to the change rule of the ambient brightness, the larger the time difference between the current time and the reference time is, the lower the ambient brightness is, that is, the lower the target proportion is.
In an embodiment of the present invention, the target ratio may be determined according to a preset second corresponding relationship between the time difference and the target ratio. The second correspondence may be a one-to-one correspondence between the time difference and the target ratio, for example, when the time difference is 0, the target ratio is 40%, when the time difference is 3 hours, the target ratio is 20%, when the time difference is 8 hours, the target ratio is-10%, and the like. The second correspondence relationship may be a correspondence relationship between the time difference interval and the target ratio, for example, when the time difference is between 0 and 1 hour, the target ratio is 40%, and when the time difference is between 8 and 9 hours, the target ratio is 20%.
In addition, according to the difference of months, seasons and the like, the ambient brightness reflected at the same time may be different, and the reference time corresponding to the time when the ambient brightness is the highest may also be different, so that the reference time and the second corresponding relation may be adjusted according to the current month or season, and therefore, in different months or seasons, different brightness adjustments may be performed on the screen of the first electronic device, so that the ambient brightness conditions in different months or seasons are matched.
Moreover, according to the different geographic locations of the first electronic device, the ambient brightness reflected at the same time may also be different, and the second corresponding relationship may be adjusted according to the geographic location of the first electronic device, so that the first electronic devices located at different locations can perform different brightness adjustments on the screen, thereby matching the ambient brightness conditions at different geographic locations. In another embodiment of the present invention, the target ratio for adjusting the screen brightness of the first electronic device may also be determined according to the following formula:
wherein f (t) represents the target ratio, t represents the current time, b represents the preset reference time, i.e. t-b is the time difference, and a and c are preset parameters.
Specifically, t and b may be represented by decimal numbers, for example, t is 12 in the case of current time being 12:00, and t is 14.5 in the case of current time being 14: 30.
Because the ambient brightness reflected at the same time may be different according to the difference of months, seasons, geographical positions and the like, and the corresponding reference time when the ambient brightness is the highest may also be different, the values of a, b and c can be adjusted to meet different screen brightness adjustment requirements.
In one embodiment of the present invention, when a is 1, b is 12, and c is 3, the above formula is:
referring to fig. 3, a schematic diagram of the time versus target ratio relationship is provided.
In fig. 3, the abscissa represents time, and the ordinate represents the target ratio. As can be seen from the figure, the target ratio is normally distributed in a time range of 0 to 24, and since a is 1 and b is 12, the target ratio is the highest and 1 when the current time is 12, and since c is 3, the target ratio is largely changed in a time range of 12 ± 3.
The target proportion calculated according to the formula is larger than 0, so that the target proportion is determined according to the formula, and only the screen brightness can be increased according to the target proportion.
As can be seen from the above, at the reference time, the ambient brightness is the largest, and as can be seen from the change rule of the ambient brightness, the larger the time difference between the current time and the reference time is, the lower the ambient brightness is, and the lower the screen brightness, that is, the lower the target ratio is, which is required to clearly display the two-dimensional code in the screen. The target ratio can be determined based on the time difference.
Referring to fig. 4, a schematic structural diagram of a screen brightness adjusting apparatus is provided, which is applied to a first electronic device, where the first electronic device is configured to display a two-dimensional code to be scanned for another second electronic device, and the apparatus includes:
a time determining module 401, configured to determine a current time of a time zone to which a geographical location of the first electronic device belongs;
a ratio determining module 402, configured to determine, according to the information about the ambient brightness reflected by the current time, a target ratio for adjusting the screen brightness of the first electronic device;
and a brightness adjusting module 403, configured to adjust screen brightness based on current screen brightness of the first electronic device according to the target ratio, and display the two-dimensional code to be scanned after the screen brightness is adjusted.
As can be seen from the above, since the current time is the current time of the time zone to which the geographical location of the first electronic device belongs, and the time is different and the ambient brightness is different, the current time can reflect the ambient brightness of the environment in which the first electronic device is located, so that the screen brightness is adjusted according to the current time, and the adjusted screen brightness can be matched with the ambient brightness, so that the two-dimensional code to be scanned can be clearly displayed. The screen brightness does not need to be manually increased by a user, the efficiency of adjusting the screen brightness is improved, and the display effect of the two-dimensional code is improved.
In an embodiment of the invention, the ratio determining module 402 is specifically configured to determine a target ratio for adjusting the screen brightness of the first electronic device according to a time difference between the current time and a preset reference time.
As can be seen from the above, at the reference time, the ambient brightness is the largest, and as can be seen from the change rule of the ambient brightness, the larger the time difference between the current time and the reference time is, the lower the ambient brightness is, and the lower the screen brightness, that is, the lower the target ratio is, which is required to clearly display the two-dimensional code in the screen. The target ratio can be determined based on the time difference.
In an embodiment of the present invention, the ratio determining module 402 is specifically configured to determine a target ratio for adjusting the screen brightness of the first electronic device according to the following formula:
wherein f (t) represents the target proportion, t represents the current time, b represents the preset reference time, and a and c are preset parameters.
In an embodiment of the invention, the preset reference time is a time when the ambient brightness is highest within a preset statistical time period.
In an embodiment of the present invention, the brightness adjusting module 403 is specifically configured to:
the target brightness is calculated according to the following formula:
bd=bc+(x-bc)*f(t)
wherein, b isdRepresenting the target brightness, bcRepresenting a current screen brightness of the first electronic device, x representing a highest screen brightness of the first electronic device, and f (t) representing the target ratio;
and adjusting the screen brightness of the first electronic device to the target brightness, and displaying the two-dimensional code to be scanned after adjusting the screen brightness.
An embodiment of the present invention further provides an electronic device, which is taken as a first electronic device, as shown in fig. 5, and includes a processor 501, a communication interface 502, a memory 503 and a communication bus 504, where the processor 501, the communication interface 502 and the memory 503 complete mutual communication through the communication bus 504,
a memory 503 for storing a computer program;
the processor 501 is configured to implement the method steps described in any of the embodiments of the screen brightness adjusting method when executing the program stored in the memory 503.
When the electronic equipment provided by the embodiment of the invention is applied to adjust the screen brightness, the current time is the current time of the time zone to which the geographical position of the first electronic equipment belongs, and the time is different, and the environment brightness is different, so that the current time can reflect the environment brightness of the environment where the first electronic equipment is located, the screen brightness is adjusted according to the current time, the adjusted screen brightness can accord with the environment brightness, and the two-dimensional code to be scanned can be clearly displayed. The screen brightness does not need to be manually increased by a user, the efficiency of adjusting the screen brightness is improved, and the display effect of the two-dimensional code is improved.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In still another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the screen brightness adjusting method in any of the above embodiments.
When the screen brightness is adjusted by applying the computer program stored in the computer-readable storage medium provided in this embodiment, because the current time is the current time of the time zone to which the geographical location of the first electronic device belongs, and the time is different and the ambient brightness is different, the current time can reflect the ambient brightness of the environment where the first electronic device is located, so the screen brightness is adjusted according to the current time, the adjusted screen brightness can be made to coincide with the ambient brightness, and the two-dimensional code to be scanned can be clearly displayed. The screen brightness does not need to be manually increased by a user, the efficiency of adjusting the screen brightness is improved, and the display effect of the two-dimensional code is improved.
In another embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the screen brightness adjustment method described in any of the above embodiments.
When the computer program product provided by this embodiment is executed to adjust the screen brightness, because the current time is the current time of the time zone to which the geographical location of the first electronic device belongs, and the time is different and the ambient brightness is different, the current time can reflect the ambient brightness of the environment where the first electronic device is located, so the screen brightness is adjusted according to the current time, the adjusted screen brightness can be matched with the ambient brightness, and the two-dimensional code to be scanned can be clearly displayed. The screen brightness does not need to be manually increased by a user, the efficiency of adjusting the screen brightness is improved, and the display effect of the two-dimensional code is improved.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the system, the apparatus, the first electronic device, the second electronic device, the computer readable storage medium and the computer program product, since they are substantially similar to the method embodiments, the description is relatively simple, and it suffices to refer to the partial description of the method embodiments in relation thereto.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (10)
1. A screen brightness adjusting system is characterized by comprising a first electronic device and a second electronic device;
the first electronic equipment is used for determining the current time of a time zone to which the geographical position of the first electronic equipment belongs when the two-dimensional code needs to be displayed for the second electronic equipment; determining a target proportion for adjusting the screen brightness of the first electronic device according to the information of the ambient brightness reflected by the current time; according to the target proportion, adjusting the screen brightness on the basis of the current screen brightness of the first electronic device, and displaying the two-dimensional code to be scanned after adjusting the screen brightness;
and the second electronic equipment is used for scanning and identifying the two-dimensional code to be scanned displayed by the first electronic equipment.
2. The screen brightness adjusting method is applied to first electronic equipment, wherein the first electronic equipment is used for displaying a two-dimensional code to be scanned for other second electronic equipment, and the method comprises the following steps:
determining the current time of a time zone to which the geographical position of the first electronic equipment belongs;
determining a target proportion for adjusting the screen brightness of the first electronic device according to the information of the ambient brightness reflected by the current time;
and adjusting the screen brightness on the basis of the current screen brightness of the first electronic device according to the target proportion, and displaying the two-dimensional code to be scanned after the screen brightness is adjusted.
3. The method according to claim 2, wherein the determining a target ratio for adjusting the screen brightness of the first electronic device according to the information about the ambient brightness level reflected by the current time comprises:
and determining a target proportion for adjusting the screen brightness of the first electronic equipment according to the time difference between the current time and a preset reference time.
4. The method of claim 3, wherein the determining a target ratio for adjusting the screen brightness of the first electronic device according to the time difference between the current time and a preset reference time comprises:
determining a target ratio for adjusting the screen brightness of the first electronic device according to the following formula:
wherein f (t) represents the target proportion, t represents the current time, b represents the preset reference time, and a and c are preset parameters.
5. The method of claim 3, wherein the predetermined reference time is a time at which the ambient brightness is highest within a predetermined statistical time period.
6. The method according to any one of claims 2-5, wherein the adjusting the screen brightness based on the current screen brightness of the first electronic device according to the target ratio comprises:
the target brightness is calculated according to the following formula:
bd=bc+(x-bc)*f(t)
wherein, b isdRepresenting the target brightness, bcRepresenting a current screen brightness of the first electronic device, x representing a highest screen brightness of the first electronic device, and f (t) representing the target ratio;
and adjusting the screen brightness of the first electronic equipment to the target brightness.
7. The screen brightness adjusting device is applied to first electronic equipment, wherein the first electronic equipment is used for displaying a two-dimensional code to be scanned for other second electronic equipment, and the device comprises:
the time determining module is used for determining the current time of a time zone to which the geographical position of the first electronic equipment belongs;
the proportion determining module is used for determining a target proportion for adjusting the screen brightness of the first electronic equipment according to the information of the ambient brightness reflected by the current time;
and the brightness adjusting module is used for adjusting the screen brightness on the basis of the current screen brightness of the first electronic device according to the target proportion and displaying the two-dimensional code to be scanned after the screen brightness is adjusted.
8. The apparatus of claim 7,
the ratio determining module is specifically configured to determine a target ratio for adjusting the screen brightness of the first electronic device according to a time difference between the current time and a preset reference time.
9. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are used as first electronic equipment to finish mutual communication through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 2 to 6 when executing a program stored in the memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 2-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010619768.2A CN111741166A (en) | 2020-06-30 | 2020-06-30 | Screen brightness adjusting system, method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010619768.2A CN111741166A (en) | 2020-06-30 | 2020-06-30 | Screen brightness adjusting system, method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111741166A true CN111741166A (en) | 2020-10-02 |
Family
ID=72654035
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010619768.2A Pending CN111741166A (en) | 2020-06-30 | 2020-06-30 | Screen brightness adjusting system, method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111741166A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113436576A (en) * | 2021-05-28 | 2021-09-24 | 荣耀终端有限公司 | OLED display screen dimming method and device applied to two-dimensional code scanning |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7088343B2 (en) * | 2001-04-30 | 2006-08-08 | Lenovo (Singapore) Pte., Ltd. | Edge touchpad input device |
CN104851414A (en) * | 2015-05-05 | 2015-08-19 | 成都上生活网络科技有限公司 | Screen brightness adjustment method |
CN105187626A (en) * | 2015-07-14 | 2015-12-23 | 小米科技有限责任公司 | Adjustment method of backlight brightness and device |
CN105810152A (en) * | 2014-12-29 | 2016-07-27 | Tcl海外电子(惠州)有限公司 | Backlight control method and device for display terminal, and television |
US20160349868A1 (en) * | 2015-05-27 | 2016-12-01 | Samsung Electronics Co., Ltd. | Electronic apparatus and method of controlling electronic apparatus |
CN106657676A (en) * | 2017-02-16 | 2017-05-10 | 广东小天才科技有限公司 | Screen brightness adjusting method and device |
CN106855934A (en) * | 2015-12-09 | 2017-06-16 | 阿里巴巴集团控股有限公司 | The display methods and device of the barcode scanning page |
CN108646908A (en) * | 2018-04-28 | 2018-10-12 | 上海与德科技有限公司 | A kind of terminal screen control method, device, terminal and storage medium |
CN109040457A (en) * | 2018-08-23 | 2018-12-18 | 维沃移动通信有限公司 | A kind of screen luminance adjustment method and mobile terminal |
CN109067995A (en) * | 2018-08-28 | 2018-12-21 | 努比亚技术有限公司 | A kind of brightness adjusting method, mobile terminal and computer readable storage medium |
CN110332944A (en) * | 2019-07-18 | 2019-10-15 | 百度国际科技(深圳)有限公司 | Navigation equipment control method, device, equipment and storage medium |
-
2020
- 2020-06-30 CN CN202010619768.2A patent/CN111741166A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7088343B2 (en) * | 2001-04-30 | 2006-08-08 | Lenovo (Singapore) Pte., Ltd. | Edge touchpad input device |
CN105810152A (en) * | 2014-12-29 | 2016-07-27 | Tcl海外电子(惠州)有限公司 | Backlight control method and device for display terminal, and television |
CN104851414A (en) * | 2015-05-05 | 2015-08-19 | 成都上生活网络科技有限公司 | Screen brightness adjustment method |
US20160349868A1 (en) * | 2015-05-27 | 2016-12-01 | Samsung Electronics Co., Ltd. | Electronic apparatus and method of controlling electronic apparatus |
CN105187626A (en) * | 2015-07-14 | 2015-12-23 | 小米科技有限责任公司 | Adjustment method of backlight brightness and device |
CN106855934A (en) * | 2015-12-09 | 2017-06-16 | 阿里巴巴集团控股有限公司 | The display methods and device of the barcode scanning page |
CN106657676A (en) * | 2017-02-16 | 2017-05-10 | 广东小天才科技有限公司 | Screen brightness adjusting method and device |
CN108646908A (en) * | 2018-04-28 | 2018-10-12 | 上海与德科技有限公司 | A kind of terminal screen control method, device, terminal and storage medium |
CN109040457A (en) * | 2018-08-23 | 2018-12-18 | 维沃移动通信有限公司 | A kind of screen luminance adjustment method and mobile terminal |
CN109067995A (en) * | 2018-08-28 | 2018-12-21 | 努比亚技术有限公司 | A kind of brightness adjusting method, mobile terminal and computer readable storage medium |
CN110332944A (en) * | 2019-07-18 | 2019-10-15 | 百度国际科技(深圳)有限公司 | Navigation equipment control method, device, equipment and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113436576A (en) * | 2021-05-28 | 2021-09-24 | 荣耀终端有限公司 | OLED display screen dimming method and device applied to two-dimensional code scanning |
CN113436576B (en) * | 2021-05-28 | 2022-05-06 | 荣耀终端有限公司 | OLED display screen dimming method and device applied to two-dimensional code scanning |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109299387B (en) | Message pushing method and device based on intelligent recommendation and terminal equipment | |
CN110377667B (en) | Correlation map display method, device, computer equipment and storage medium | |
US20200334279A1 (en) | Flexible real estate search | |
CN109257507B (en) | Method for adjusting screen brightness, mobile terminal and storage medium | |
CN109166156B (en) | Camera calibration image generation method, mobile terminal and storage medium | |
CN109145210A (en) | A kind of method, apparatus and storage medium of information recommendation | |
CN109359217B (en) | User interest degree calculation method, server and readable storage medium | |
CN106777226B (en) | Information analysis method and electronic equipment | |
CN110111062B (en) | Camouflage attendance scene identification method and device based on big data | |
US20170243285A1 (en) | System and method for providing information about assets during a live auction | |
CN109714393A (en) | A kind of method and device that application program is recommended | |
CN111741166A (en) | Screen brightness adjusting system, method and device | |
CN108055387B (en) | Recommendation information display method and device, electronic equipment and readable storage medium | |
CN108922478B (en) | Backlight brightness adjusting method and system and display device | |
CN112954271B (en) | Video monitoring and defense deployment method and system, storable medium and computer equipment | |
CN112929625A (en) | Display material rendering method and device | |
CN113870800B (en) | Backlight adjusting method and device, terminal equipment and storage medium | |
US11663651B2 (en) | Providing information of assets for transaction to a user based on the user profile | |
CN113033584A (en) | Data processing method and related equipment | |
CN108932704B (en) | Picture processing method, picture processing device and terminal equipment | |
CN111861965A (en) | Image backlight detection method, image backlight detection device and terminal equipment | |
CN114170091A (en) | Image scaling method and device, electronic equipment and storage medium | |
CN113822704A (en) | Method and device for calculating discount cost, electronic equipment and readable storage medium | |
CN108021648B (en) | Question searching method and device and intelligent terminal | |
CN108399606B (en) | Image adjusting method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201002 |
|
RJ01 | Rejection of invention patent application after publication |