CN112581899A - Control method and electronic device - Google Patents

Control method and electronic device Download PDF

Info

Publication number
CN112581899A
CN112581899A CN202011585980.8A CN202011585980A CN112581899A CN 112581899 A CN112581899 A CN 112581899A CN 202011585980 A CN202011585980 A CN 202011585980A CN 112581899 A CN112581899 A CN 112581899A
Authority
CN
China
Prior art keywords
target
screen brightness
graphic identifier
density
grade
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
Application number
CN202011585980.8A
Other languages
Chinese (zh)
Other versions
CN112581899B (en
Inventor
陈苔嫣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011585980.8A priority Critical patent/CN112581899B/en
Publication of CN112581899A publication Critical patent/CN112581899A/en
Application granted granted Critical
Publication of CN112581899B publication Critical patent/CN112581899B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness

Abstract

The application discloses a control method and electronic equipment, belongs to the technical field of electronics, and aims to solve the problem that when image identifications such as two-dimensional codes are displayed, due to the fact that screen brightness is instantly exploded, comfort of eyes of a user is poor, and even serious injury can be caused to the eyes of the user. Wherein the control method comprises the following steps: under the condition that a target graphic identifier is displayed on a target interface, target characteristic information of the target graphic identifier is acquired; acquiring first screen brightness corresponding to the target characteristic information according to the target characteristic information; acquiring the target screen brightness of the target interface; and controlling the target interface to keep the target screen brightness under the condition that the target screen brightness is greater than or equal to the first screen brightness. The control method is applied to the electronic equipment.

Description

Control method and electronic device
Technical Field
The application belongs to the technical field of electronics, and particularly relates to a control method and electronic equipment.
Background
At present, image identification such as two-dimensional codes is gradually generalized in daily life. For example, a user may use a ride code to perform a sweep-code ride on a bus, a subway, or the like.
Usually, when the user opens image identification such as two-dimensional code on equipment, the screen brightness of equipment can explode in the twinkling of an eye to make user's eyes's comfort level relatively poor, can cause serious injury to user's eyes even.
Therefore, in the process of implementing the present application, the inventors found that at least the following problems exist in the prior art: when displaying image identification such as two-dimensional code, because of the screen brightness explodes bright in the twinkling of an eye for user's eyes's comfort level is relatively poor, can cause serious injury to user's eyes even.
Disclosure of Invention
The embodiment of the application aims to provide a control method, which can solve the problem that when image identifications such as two-dimensional codes are displayed, due to instantaneous explosion of screen brightness, comfort of eyes of a user is poor, and even serious damage can be caused to the eyes of the user.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a control method, where the method includes: under the condition that a target graphic identifier is displayed on a target interface, target characteristic information of the target graphic identifier is acquired; acquiring first screen brightness corresponding to the target characteristic information according to the target characteristic information; acquiring the target screen brightness of the target interface; and controlling the target interface to keep the target screen brightness under the condition that the target screen brightness is greater than or equal to the first screen brightness.
In a second aspect, an embodiment of the present application provides a control apparatus, including: the first acquisition module is used for acquiring target characteristic information of a target graphic identifier under the condition that the target graphic identifier is displayed on a target interface; the second acquisition module is used for acquiring first screen brightness corresponding to the target characteristic information according to the target characteristic information; the third acquisition module is used for acquiring the target screen brightness of the target interface; and the first control module is used for controlling the target interface to keep the target screen brightness under the condition that the target screen brightness is greater than or equal to the first screen brightness.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In this way, in the embodiment of the present application, in the case of displaying the target graphic identifier, the target feature information of the target graphic identifier is first acquired. Then, in a preset corresponding relation, first screen brightness corresponding to the target characteristic information is obtained. Wherein the first screen brightness is the lowest screen brightness required for successfully scanning the target graphic identifier, and the target characteristic information may be a necessary characteristic associated with the scanning success rate. Further, the current target screen brightness of a target interface displaying the target image identifier is obtained to judge whether the target screen brightness supports successful scanning of the target image identifier, and when the target screen brightness is larger than or equal to the first screen brightness, the target screen brightness is considered to support successful scanning of the target image identifier, and the screen brightness does not need to be increased, and the current target screen brightness is kept. Therefore, the phenomenon that the screen is exploded and bright in the prior art can be effectively reduced, discomfort of eyes of a user is relieved, and harm to the eyes of the user is reduced.
Drawings
FIG. 1 is a flow chart of a control method of an embodiment of the present application;
FIG. 2 is a block diagram of a control device according to an embodiment of the present application;
fig. 3 is a hardware configuration diagram of an electronic device according to an embodiment of the present application.
Fig. 4 is a second schematic diagram of a hardware structure of the electronic device according to the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes the control method provided by the embodiments of the present application in detail through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
Fig. 1 shows a flowchart of a control method according to an embodiment of the present application, the method including:
step S1: and under the condition that the target graphic identification is displayed on the target interface, acquiring the target characteristic information of the target graphic identification.
Optionally, the target graphic identification comprises any one of a two-dimensional code, a bar code, and the like.
Optionally, identifying whether the current situation is a situation of displaying the target graphic identifier, the method includes: detecting whether the user input is used for calling out the target graphic identification. And if so, identifying the target graphic identifier in the called display interface. And if the target graphic identifier is recognized, judging that the target graphic identifier is displayed.
Otherwise, if the user input for calling out the target graphic identifier is not detected; or the target graphic identifier is not recognized in the called display interface; it is determined not to be the above-described case, thereby maintaining the current screen brightness.
Optionally, the target interface is a current display interface. The target interface, by reference, identifies the interface of the program in which the target graphic resides.
Optionally, after the target graphic identifier is identified, the area where the target graphic identifier is located on the target interface, so as to obtain the target feature information of the target graphic identifier.
Optionally, the target feature information includes, but is not limited to: pattern density, fault tolerance, etc., characteristic information that has an effect on the success rate of scanning the target pattern identifier.
Step S2: and acquiring first screen brightness corresponding to the target characteristic information according to the target characteristic information.
The first screen brightness is the lowest screen brightness which meets the requirement of successfully scanning the target graphic identifier.
The first screen brightness is preset screen brightness according to the target characteristic information.
Step S3: and acquiring the target screen brightness of the target interface.
The target screen brightness is the current screen brightness of the target interface.
The purpose of this step is to determine whether the current screen brightness supports successful scanning of the target graphic identifier.
Step S4: and controlling the target interface to keep the target screen brightness under the condition that the target screen brightness is greater than or equal to the first screen brightness.
In this step, based on the logic, when the target screen brightness is greater than or equal to the first screen brightness, which indicates that the current screen brightness supports successful scanning of the target graphic identifier, the current screen brightness is maintained.
In this way, in the embodiment of the present application, in the case of displaying the target graphic identifier, the target feature information of the target graphic identifier is first acquired. Then, in a preset corresponding relation, first screen brightness corresponding to the target characteristic information is obtained. Wherein the first screen brightness is the lowest screen brightness required for successfully scanning the target graphic identifier, and the target characteristic information may be a necessary characteristic associated with the scanning success rate. Further, the current target screen brightness of a target interface displaying the target image identifier is obtained to judge whether the target screen brightness supports successful scanning of the target image identifier, and when the target screen brightness is larger than or equal to the first screen brightness, the target screen brightness is considered to support successful scanning of the target image identifier, and the screen brightness does not need to be increased, and the current target screen brightness is kept. Therefore, the phenomenon that the screen is exploded and bright in the prior art can be effectively reduced, discomfort of eyes of a user is relieved, and harm to the eyes of the user is reduced.
In the flow of the control method according to another embodiment of the present application, step S1 includes:
substep A1: and obtaining the density and the fault tolerance rate of the target graphic identifier.
In this step, the target characteristic information includes density and fault tolerance.
Optionally, after the area where the target graphic identifier is located on the target interface, the density and the fault tolerance rate of the target graphic identifier are analyzed.
Step S2, including:
substep A2: and acquiring first screen brightness corresponding to the first target grade and the second target grade according to the first target grade corresponding to the density and the second target grade corresponding to the fault tolerance.
On one hand, the graphical identification in the embodiment has a fault tolerance function, and can still be scanned after the graphical identification is partially shielded. Therefore, the fault tolerance rate refers to the ability of the graphic identifier to be scanned after being blocked. The higher the fault tolerance, the more parts of the graphical identification can be occluded. The fault tolerance rate is represented by letters, and the fault tolerance capability grades are divided into: l, M, Q, H grades, and L, M, Q, H grades, increasing in order. Further, in L, M, Q, H, the maximum values of the fault tolerance rates corresponding to each level are 7%, 15%, 25%, and 30%, respectively.
On the other hand, the density of the graphic symbols in the present embodiment refers to the image content per unit area in the graphic symbols. The more image content per unit area, the greater the density of graphical indicia.
The value range is divided into at least two sub-ranges according to the value range of the density of the graphic identifier, each sub-range corresponds to one grade, and the corresponding grade is gradually increased along with the increase of the density of the graphic identifier in each sub-range.
Optionally, the density of graphical indicia is divided into a plurality of levels, e.g., high, medium, and low. The highest values of the densities corresponding to each grade are sequentially increased.
Therefore, by analyzing the density and the fault tolerance of the target graphic identifier, a first target level corresponding to the density of the target graphic identifier and a second target level corresponding to the fault tolerance can be obtained.
Further, a plurality of density levels and a plurality of fault tolerance levels can be combined in a cross mode, and the required lowest screen brightness is obtained by combining the density levels and the fault tolerance levels in each group and serves as the preset screen brightness of the corresponding group.
Therefore, in this step, a first screen brightness corresponding to both the first target level and the second target level is acquired.
In this embodiment, the density and the fault-tolerant rate of the target graphic identifier are combined, and the two factors affecting the scanning success rate obtain the corresponding first screen brightness according to the levels to which the target graphic identifier and the fault-tolerant rate belong, that is, the lowest screen brightness of the image identifier corresponding to the density level and the fault-tolerant rate level are scanned successfully, so that the discomfort phenomenon caused by the screen explosion to the user is avoided on the basis of ensuring that the target image identifier is scanned successfully.
In this embodiment, the obtained target feature information is related to the scanning success rate. For example, the scan success rate is associated with the complexity of the graphical identification, and thus, the target feature information includes a density that determines the complexity. In further embodiments, the target characteristic information may also include other factors associated with the scan success rate.
In the flow of the control method according to another embodiment of the present application, before step a2, the method further includes:
step B1: and determining the corresponding preset screen brightness based on any one of the at least two levels of the graphic identifier density and any one of the at least two levels of the graphic identifier fault tolerance.
And the corresponding preset screen brightness is increased along with the increase of the density grade. As the level of the fault tolerance increases, the corresponding preset screen brightness decreases.
Density/fault tolerance ratio L:7% M:15% Q:25% H:30%
Is low in 70 55 25 25
In 120 70 55 25
Height of 250 120 70 55
TABLE 1
Referring to table 1, any one of the plurality of fault tolerance levels is crossed with each density level to obtain a lowest screen brightness corresponding to the lowest fault tolerance level, which is used as a corresponding preset screen brightness.
Wherein, the lower the density, the higher the fault tolerance rate, the higher the success rate of scanning, the faster the scanning, the lower the required minimum screen brightness. And so on.
Optionally, a value range of 25-250 of the screen brightness value is referred to, the obtained combination of the density level and the fault tolerance level is combined, and a plurality of lowest screen brightness values corresponding to different combinations in one-to-one correspondence are selected from the value range of the screen brightness value according to the scanning success rate corresponding to all the combinations.
In this embodiment, according to the density and the fault tolerance of different graphic identifiers, the corresponding scanning difficulty level can be obtained, and thus the required minimum screen brightness can be obtained. For example, the harder it is to scan, the higher the minimum screen brightness required. Further, according to the difficulty degree of scanning, in the value range of the screen brightness value, the minimum screen brightness required by different difficulty degrees of scanning is determined. Therefore, the density grade, the fault tolerance grade and the preset screen brightness in the table 1 can be obtained, so that in practical application, the corresponding preset screen brightness is directly determined and then compared with the current target screen brightness, further, the situation that the graphic identification is successfully scanned frequently in a mode of exploding the screen is avoided, and discomfort and harm to a user are reduced.
In the flow of the control method according to another embodiment of the present application, after step S3, the method further includes:
step C1: and under the condition that the target screen brightness is smaller than the first screen brightness, controlling the target interface to change from the target screen brightness to the first screen brightness within a preset time according to a preset linear relation.
Optionally, the linear relationship in this embodiment may refer to the formula: and y is ax + b.
Wherein y is the first screen brightness, a is the screen brightness increase per second, x is the preset time, and b is the current target screen brightness.
Optionally, it is recommended that x is set within 2s, so that the brightness of the screen can be finished in a short time for the user to scan, and meanwhile, the phenomenon of screen explosion can be avoided.
In this embodiment, if the current target screen brightness is not enough to support successful scanning of the target graphic identifier, the screen brightness is increased to the first screen brightness in a linear adjustment manner, so that discomfort and injury to the user are effectively reduced by giving more light adaptation time to the eyes of the user on the basis of ensuring successful scanning of the graphic identifier.
In the flow of the control method according to another embodiment of the present application, after the step C3, the method further includes:
step D1: and under the condition that the brightness of the target screen is less than the first screen brightness, identifying a target area corresponding to the target graphic identifier in the target interface.
The target area is used for displaying a target graphic identification.
Step D2: the brightness of the control target area is changed from the target screen brightness to the first screen brightness.
Optionally, a linear adjustment mode is adopted to brighten the target area displaying the target graphic identifier.
In this embodiment, if the current target screen brightness is not enough to support successful scanning of the target graphic identifier, only the target area displaying the target graphic identifier is brightened, and other areas of the target interface still maintain the target screen brightness, so that discomfort and injury to the user are further reduced by reducing the screen brightness area on the basis of ensuring successful scanning of the graphic identifier.
In a flow of the control method according to another embodiment of the present application, in a case where the target screen brightness is smaller than the first screen brightness, the current target screen brightness is saved before the screen brightness is adjusted. And if the user exits the target interface, namely exits the display interface of the graphic identifier, restoring to the target screen brightness according to the linear relation of y ═ ax + b. Therefore, the screen brightness can not be continuously kept in a brighter state, and discomfort and harm to the user are further reduced.
In summary, the present disclosure is directed to determining a minimum screen brightness required by a user according to a difficulty level of scanning a graphic identifier when the user opens the graphic identifier such as a two-dimensional code, and maintaining the current screen brightness when the current screen brightness satisfies the minimum screen brightness, so as to reduce the occurrence of a screen explosion phenomenon and solve a problem of dazzling the user due to sudden strong light when the user opens the two-dimensional code. In addition, when the current screen brightness does not meet the lowest screen brightness, the screen linear gradual brightening is only carried out on the area where the graphic identification is located, the screen brightness area is reduced, certain brightness adapting time is given to human eyes, and the problem that a user is dazzling due to sudden strong light when the two-dimensional code is opened is solved. The typical scene of this application is if, sit public transit or cinema at night and open the two-dimensional code carelessly, and the cell-phone screen is very bright suddenly, causes discomfort such as dazzling, not good user experience, and this problem is effectively solved to this embodiment, brings better use for the user and experiences.
Fig. 2 shows a block diagram of a control device according to another embodiment of the present application, including:
the first obtaining module 10 is configured to obtain target feature information of a target graphic identifier when the target graphic identifier is displayed on a target interface;
the second obtaining module 20 is configured to obtain, according to the target feature information, first screen brightness corresponding to the target feature information;
a third obtaining module 30, configured to obtain a target screen brightness of a target interface;
and the first control module 40 is used for controlling the target interface to keep the target screen brightness under the condition that the target screen brightness is greater than or equal to the first screen brightness.
In this way, in the embodiment of the present application, in the case of displaying the target graphic identifier, the target feature information of the target graphic identifier is first acquired. Then, in a preset corresponding relation, first screen brightness corresponding to the target characteristic information is obtained. Wherein the first screen brightness is the lowest screen brightness required for successfully scanning the target graphic identifier, and the target characteristic information may be a necessary characteristic associated with the scanning success rate. Further, the current target screen brightness of a target interface displaying the target image identifier is obtained to judge whether the target screen brightness supports successful scanning of the target image identifier, and when the target screen brightness is larger than or equal to the first screen brightness, the target screen brightness is considered to support successful scanning of the target image identifier, and the screen brightness does not need to be increased, and the current target screen brightness is kept. Therefore, the phenomenon that the screen is exploded and bright in the prior art can be effectively reduced, discomfort of eyes of a user is relieved, and harm to the eyes of the user is reduced.
Optionally, the first obtaining module 10 includes:
the information acquisition unit is used for acquiring the density and the fault tolerance of the target graphic identifier;
a second acquisition module 20 comprising:
the first screen brightness obtaining unit is used for obtaining first screen brightness corresponding to a first target grade and a second target grade according to the first target grade corresponding to the density and the second target grade corresponding to the fault tolerance rate;
the value range is divided into at least two sub-ranges according to the value range of the density of the graphic identifier, each sub-range corresponds to one grade, and the corresponding grade is gradually increased along with the increase of the density of the graphic identifier in each sub-range.
Optionally, the apparatus further comprises:
the determining module is used for determining corresponding preset screen brightness based on any one of at least two levels of the graphic identifier density and any one of at least two levels of the graphic identifier fault tolerance;
the corresponding preset screen brightness is increased along with the increase of the density grade; as the level of the fault tolerance increases, the corresponding preset screen brightness decreases.
Optionally, the apparatus further comprises:
and the second control module is used for controlling the target interface to change from the target screen brightness to the first screen brightness within the preset time according to the preset linear relation under the condition that the target screen brightness is smaller than the first screen brightness.
Optionally, the apparatus further comprises:
the identification module is used for identifying a target area corresponding to the target graphic identifier in the target interface under the condition that the brightness of the target screen is less than the first screen brightness;
and the third control module is used for controlling the brightness of the target area to be changed from the target screen brightness to the first screen brightness.
The control device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The control device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The control device provided in the embodiment of the present application can implement each process implemented by the above method embodiment, and is not described here again to avoid repetition.
Optionally, as shown in fig. 3, an electronic device 100 is further provided in this embodiment of the present application, and includes a processor 101, a memory 102, and a program or an instruction stored in the memory 102 and executable on the processor 101, where the program or the instruction is executed by the processor 101 to implement each process of any one of the above embodiments of the control method, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, a processor 1010, and the like.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 4 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 1010 is configured to obtain target feature information of a target graphic identifier when the target graphic identifier is displayed on a target interface; acquiring first screen brightness corresponding to the target characteristic information according to the target characteristic information; acquiring the target screen brightness of the target interface; and controlling the target interface to keep the target screen brightness under the condition that the target screen brightness is greater than or equal to the first screen brightness.
In this way, in the embodiment of the present application, in the case of displaying the target graphic identifier, the target feature information of the target graphic identifier is first acquired. Then, in a preset corresponding relation, first screen brightness corresponding to the target characteristic information is obtained. Wherein the first screen brightness is the lowest screen brightness required for successfully scanning the target graphic identifier, and the target characteristic information may be a necessary characteristic associated with the scanning success rate. Further, the current target screen brightness of a target interface displaying the target image identifier is obtained to judge whether the target screen brightness supports successful scanning of the target image identifier, and when the target screen brightness is larger than or equal to the first screen brightness, the target screen brightness is considered to support successful scanning of the target image identifier, and the screen brightness does not need to be increased, and the current target screen brightness is kept. Therefore, the phenomenon that the screen is exploded and bright in the prior art can be effectively reduced, discomfort of eyes of a user is relieved, and harm to the eyes of the user is reduced.
Optionally, the processor 1010 is further configured to obtain a density and a fault tolerance of the target graphic identifier; acquiring first screen brightness corresponding to the first target grade and the second target grade according to the first target grade corresponding to the density and the second target grade corresponding to the fault tolerance; the method comprises the steps of dividing a value range into at least two sub-ranges according to the value range of the density of the graphic identifier, wherein each sub-range corresponds to one grade, and the corresponding grade is gradually increased along with the increase of the density of the graphic identifier in each sub-range.
Optionally, the processor 1010 is further configured to determine a corresponding preset screen brightness based on any one of the at least two levels of the graphical identifier density and any one of the at least two levels of the graphical identifier fault tolerance; the corresponding preset screen brightness is increased along with the increase of the density grade; as the level of the fault tolerance increases, the corresponding preset screen brightness decreases.
Optionally, the processor 1010 is further configured to control the target interface to change from the target screen brightness to the first screen brightness within a preset time duration according to a preset linear relationship when the target screen brightness is smaller than the first screen brightness.
Optionally, the processor 1010 is further configured to identify a target area in the target interface corresponding to the target graphic identifier, when the target screen brightness is less than the first screen brightness; and controlling the brightness of the target area to be changed from the target screen brightness to the first screen brightness.
In summary, the present disclosure is directed to determining a minimum screen brightness required by a user according to a difficulty level of scanning a graphic identifier when the user opens the graphic identifier such as a two-dimensional code, and maintaining the current screen brightness when the current screen brightness satisfies the minimum screen brightness, so as to reduce the occurrence of a screen explosion phenomenon and solve a problem of dazzling the user due to sudden strong light when the user opens the two-dimensional code. In addition, when the current screen brightness does not meet the lowest screen brightness, the screen linear gradual brightening is only carried out on the area where the graphic identification is located, the screen brightness area is reduced, certain brightness adapting time is given to human eyes, and the problem that a user is dazzling due to sudden strong light when the two-dimensional code is opened is solved. The typical scene of this application is if, sit public transit or cinema at night and open the two-dimensional code carelessly, and the cell-phone screen is very bright suddenly, causes discomfort such as dazzling, not good user experience, and this problem is effectively solved to this embodiment, brings better use for the user and experiences.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of any of the above control method embodiments, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of any of the above control method embodiments, and can achieve the same technical effect, and is not described herein again to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, 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 like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A control method, characterized in that the method comprises:
under the condition that a target graphic identifier is displayed on a target interface, target characteristic information of the target graphic identifier is acquired;
acquiring first screen brightness corresponding to the target characteristic information according to the target characteristic information;
acquiring the target screen brightness of the target interface;
and controlling the target interface to keep the target screen brightness under the condition that the target screen brightness is greater than or equal to the first screen brightness.
2. The method according to claim 1, wherein the obtaining of the target feature information of the target graphic identifier comprises:
acquiring the density and fault tolerance rate of the target graphic identifier;
the acquiring, according to the target feature information, first screen brightness corresponding to the target feature information includes:
acquiring first screen brightness corresponding to the first target grade and the second target grade according to the first target grade corresponding to the density and the second target grade corresponding to the fault tolerance;
the method comprises the steps of dividing a value range into at least two sub-ranges according to the value range of the density of the graphic identifier, wherein each sub-range corresponds to one grade, and the corresponding grade is gradually increased along with the increase of the density of the graphic identifier in each sub-range.
3. The method according to claim 2, wherein before obtaining a first screen brightness corresponding to both the first target level and the second target level according to the first target level corresponding to the density and the second target level corresponding to the fault tolerance, the method further comprises:
determining corresponding preset screen brightness based on any one of at least two levels of the graphic identifier density and any one of at least two levels of the graphic identifier fault tolerance;
the corresponding preset screen brightness is increased along with the increase of the density grade; as the level of the fault tolerance increases, the corresponding preset screen brightness decreases.
4. The method of claim 1, wherein after obtaining the target screen brightness of the target interface, further comprising:
and under the condition that the target screen brightness is smaller than the first screen brightness, controlling the target interface to change from the target screen brightness to the first screen brightness within a preset time according to a preset linear relation.
5. The method of claim 1, wherein after obtaining the target screen brightness of the target interface, further comprising:
under the condition that the target screen brightness is smaller than the first screen brightness, identifying a target area corresponding to the target graphic identifier in the target interface;
and controlling the brightness of the target area to be changed from the target screen brightness to the first screen brightness.
6. A control device, characterized in that the device comprises:
the first acquisition module is used for acquiring target characteristic information of a target graphic identifier under the condition that the target graphic identifier is displayed on a target interface;
the second acquisition module is used for acquiring first screen brightness corresponding to the target characteristic information according to the target characteristic information;
the third acquisition module is used for acquiring the target screen brightness of the target interface;
and the first control module is used for controlling the target interface to keep the target screen brightness under the condition that the target screen brightness is greater than or equal to the first screen brightness.
7. The apparatus of claim 6, wherein the first obtaining module comprises:
the information acquisition unit is used for acquiring the density and the fault tolerance rate of the target graphic identifier;
the second obtaining module includes:
the first screen brightness obtaining unit is used for obtaining first screen brightness corresponding to a first target grade and a second target grade according to the first target grade corresponding to the density and the second target grade corresponding to the fault tolerance rate;
the method comprises the steps of dividing a value range into at least two sub-ranges according to the value range of the density of the graphic identifier, wherein each sub-range corresponds to one grade, and the corresponding grade is gradually increased along with the increase of the density of the graphic identifier in each sub-range.
8. The apparatus of claim 7, further comprising:
the determining module is used for determining corresponding preset screen brightness based on any one of at least two levels of the graphic identifier density and any one of at least two levels of the graphic identifier fault tolerance;
the corresponding preset screen brightness is increased along with the increase of the density grade; as the level of the fault tolerance increases, the corresponding preset screen brightness decreases.
9. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the control method according to any one of claims 1 to 5.
10. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the control method according to any one of claims 1-5.
CN202011585980.8A 2020-12-28 2020-12-28 Control method and electronic device Active CN112581899B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011585980.8A CN112581899B (en) 2020-12-28 2020-12-28 Control method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011585980.8A CN112581899B (en) 2020-12-28 2020-12-28 Control method and electronic device

Publications (2)

Publication Number Publication Date
CN112581899A true CN112581899A (en) 2021-03-30
CN112581899B CN112581899B (en) 2022-12-27

Family

ID=75140757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011585980.8A Active CN112581899B (en) 2020-12-28 2020-12-28 Control method and electronic device

Country Status (1)

Country Link
CN (1) CN112581899B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113641431A (en) * 2021-08-04 2021-11-12 青岛海信移动通信技术股份有限公司 Method and terminal equipment for enhancing display of two-dimensional code

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007156215A (en) * 2005-12-07 2007-06-21 Matsushita Electric Ind Co Ltd Display device
JP2015219560A (en) * 2014-05-14 2015-12-07 凸版印刷株式会社 Terminal device, display control method and program
CN106791169A (en) * 2017-01-13 2017-05-31 北京小米移动软件有限公司 Screen control method and device
CN109067995A (en) * 2018-08-28 2018-12-21 努比亚技术有限公司 A kind of brightness adjusting method, mobile terminal and computer readable storage medium
CN111261129A (en) * 2020-03-23 2020-06-09 北京奇艺世纪科技有限公司 Screen brightness control method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007156215A (en) * 2005-12-07 2007-06-21 Matsushita Electric Ind Co Ltd Display device
JP2015219560A (en) * 2014-05-14 2015-12-07 凸版印刷株式会社 Terminal device, display control method and program
CN106791169A (en) * 2017-01-13 2017-05-31 北京小米移动软件有限公司 Screen control method and device
CN109067995A (en) * 2018-08-28 2018-12-21 努比亚技术有限公司 A kind of brightness adjusting method, mobile terminal and computer readable storage medium
CN111261129A (en) * 2020-03-23 2020-06-09 北京奇艺世纪科技有限公司 Screen brightness control method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113641431A (en) * 2021-08-04 2021-11-12 青岛海信移动通信技术股份有限公司 Method and terminal equipment for enhancing display of two-dimensional code

Also Published As

Publication number Publication date
CN112581899B (en) 2022-12-27

Similar Documents

Publication Publication Date Title
CN111816139B (en) Screen refresh rate switching method and electronic equipment
CN111338838A (en) Method for controlling frequency of central processing unit and related device
CN107959965B (en) Frame dropping method and device of application program, mobile terminal and readable storage medium
CN110727561A (en) Abnormal heat dissipation detection method and device, terminal and storage medium
CN110443171B (en) Video file classification method and device, storage medium and terminal
CN112947824A (en) Display parameter adjusting method and device, electronic equipment and medium
CN112581899B (en) Control method and electronic device
CN106200936A (en) Sight protectio method based on terminal unit, device and terminal unit
CN112083988A (en) Screen refresh rate control method, mobile terminal and computer readable storage medium
CN111885408A (en) Bullet screen display method and device and electronic equipment
US10152214B2 (en) Method and mobile terminal for displaying visual prompt
CN112333329B (en) Unread information reminding method and device and electronic equipment
US10438377B2 (en) Method and device for processing a page
CN111865763A (en) Message display method and device, electronic equipment and storage medium
CN111835937A (en) Image processing method and device and electronic equipment
CN108681531B (en) Document input control method and device
CN112199149A (en) Interface rendering method and device and electronic equipment
CN109657441B (en) Application opening method and related device
CN104917969B (en) The method and mobile terminal of a kind of image procossing
CN113806000A (en) Display method and device and electronic equipment
CN108665871B (en) Screen display control method and related product
CN112511890A (en) Video image processing method and device and electronic equipment
CN113141296A (en) Message display method and device and electronic equipment
CN112102765A (en) Display parameter adjusting method and device and electronic equipment
CN112565909A (en) Video playing method and device, electronic equipment and readable storage medium

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