CN107301061B - Screen saver starting method used in mobile terminal and mobile terminal - Google Patents

Screen saver starting method used in mobile terminal and mobile terminal Download PDF

Info

Publication number
CN107301061B
CN107301061B CN201710299408.7A CN201710299408A CN107301061B CN 107301061 B CN107301061 B CN 107301061B CN 201710299408 A CN201710299408 A CN 201710299408A CN 107301061 B CN107301061 B CN 107301061B
Authority
CN
China
Prior art keywords
dimensional code
screen
display interface
layer
code exists
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710299408.7A
Other languages
Chinese (zh)
Other versions
CN107301061A (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.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology 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 Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN201710299408.7A priority Critical patent/CN107301061B/en
Publication of CN107301061A publication Critical patent/CN107301061A/en
Application granted granted Critical
Publication of CN107301061B publication Critical patent/CN107301061B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods 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/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods 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/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • G06K7/1447Methods for optical code recognition including a method step for retrieval of the optical code extracting optical codes from image or text carrying said optical code
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (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)
  • Telephone Function (AREA)

Abstract

The invention provides a screen saver starting method used in a mobile terminal and the mobile terminal, wherein the method comprises the following steps: when the mobile terminal is in a non-operation state and the screen is in a bright screen state, starting timing; the timing duration is smaller than or equal to the preset waiting duration of the screen saver; judging whether a two-dimensional code exists in a display interface of the screen or not when the timing is finished; if the two-dimensional code exists, canceling to start a screen saver on the screen; otherwise, a screen saver is started on the screen. When the two-dimensional code exists in the display interface, the screen saver is canceled from being started on the screen, so that the normal operation of scanning the two-dimensional code is ensured.

Description

Screen saver starting method used in mobile terminal and mobile terminal
Technical Field
The present invention relates to the field of information processing, and in particular, to a screen saver starting method for a mobile terminal and a mobile terminal.
Background
Along with the development of smart phones, scenes of scanning two-dimensional codes are visible everywhere; however, many two-dimensional code display devices, such as smart phones, can protect a display screen and reduce energy consumption through screen protection.
Therefore, screen savers appear in the process of scanning the two-dimension code by the user, so that the operation of scanning the two-dimension code cannot be finished finally, the subsequent user operation (such as payment, account addition and the like) based on the two-dimension code is further influenced, and further the user experience is poor.
Thus, a solution is needed to ensure the normal use of the operation of scanning two-dimensional codes.
Disclosure of Invention
Based on the method, the screen saver starting method for the mobile terminal and the mobile terminal are provided, so that the mobile device can scan the two-dimension code normally, and the operation of scanning the two-dimension code is prevented from being influenced.
Specifically, the present invention proposes the following specific embodiments:
the embodiment of the invention discloses a screen saver starting method for a mobile terminal, which comprises the following steps:
when the mobile terminal is in a non-operation state and the screen is in a bright screen state, starting timing; the timing duration is smaller than or equal to the preset waiting duration of the screen saver of the screen;
judging whether a two-dimensional code exists in a display interface of the screen or not when the timing is finished;
if the two-dimensional code exists, canceling to start a screen saver on the screen;
otherwise, a screen saver is started on the screen.
In a specific embodiment, the determining whether the two-dimensional code exists in the display interface of the screen specifically includes:
intercepting a first layer positioned at the topmost layer of a display interface in the screen;
judging whether a two-dimensional code exists in a first screenshot generated based on the first layer interception;
if the two-dimensional code exists on the first screenshot, determining that the two-dimensional code exists in the display interface.
In a specific embodiment, if the two-dimensional code does not exist on the first screenshot, judging whether a window of a second layer in the screen is visible, wherein the second layer is the next layer of the first layer;
and if the second layer window is invisible, determining that the two-dimensional code does not exist in the display interface.
In a specific embodiment, if the second layer window is visible, the method steps described above are performed on the second layer until it is determined that a two-dimensional code exists on a screenshot generated based on the current layer interception, or it is determined that a window of a next layer of the current layer is not visible.
In a specific embodiment, determining whether a two-dimensional code exists in a display interface of the screen specifically further includes:
judging the proportion of the determined two-dimensional code to the display interface if the two-dimensional code exists in the screenshot generated based on the current layer interception;
if the proportion is smaller than a preset threshold value, determining that the two-dimensional code is invalid, and determining that the two-dimensional code does not exist in the display interface;
and if the proportion is not smaller than a preset threshold value, determining that the two-dimensional code exists in the display interface.
In a specific embodiment, the judging whether the two-dimensional code exists in the screenshot generated based on any layer interception specifically includes:
identifying a screenshot generated based on any layer interception to determine whether a two-dimensional code exists in the screenshot;
if the two-dimensional code exists in the screenshot, identifying the determined two-dimensional code;
if the determined two-dimensional code cannot be identified, setting the determined two-dimensional code as an invalid two-dimensional code, and determining that the two-dimensional code does not exist;
and if the information of the determined two-dimensional code is identified, determining that the two-dimensional code exists.
In a specific embodiment, if there are multiple two-dimensional codes in the display interface of the screen, the determining whether there are two-dimensional codes in the display interface of the screen specifically includes:
carrying out two-dimensional code identification on a display interface of the screen;
and stopping the identification operation when the first two-dimensional code is identified, and determining that the two-dimensional code exists in the display interface of the screen.
In a specific embodiment, when it is determined that the two-dimensional code exists in the display interface of the screen, the method further includes:
determining a display area of the two-dimensional code in the display interface based on square positioning points in the vertexes of the two-dimensional code;
and reducing the brightness of other areas except the two-dimensional code display area in the display interface.
The embodiment of the invention also provides a screen saver starting method for the mobile terminal, which comprises the following steps:
when the mobile terminal is in a non-operation state and the screen is in a bright screen state, judging whether a two-dimensional code exists in a display interface of the screen;
if the two-dimensional code does not exist, starting timing, and starting a screen saver when the timing is finished; the timing duration is smaller than or equal to the preset waiting duration of the screen saver;
if the two-dimensional code exists, the timing is not started, and the starting of the screen saver on the screen is canceled.
The embodiment of the invention also provides a mobile terminal, which comprises:
the timing module is used for starting timing when the mobile terminal is in a non-operation state and the screen is in a bright screen state; the timing duration is smaller than or equal to the preset waiting duration of the screen saver;
the judging module is used for judging whether a two-dimensional code exists in a display interface of the screen or not when the timing is finished;
the cancellation module is used for canceling the start of the screen saver on the screen when the two-dimensional code is judged to exist;
and the starting module is used for starting the screen saver on the screen when judging that the two-dimensional code does not exist.
The embodiment of the invention also provides a mobile terminal, which comprises:
the judging module is used for judging whether a two-dimensional code exists in a display interface of the screen or not when the mobile terminal is in a non-operation state and the screen is in a bright screen state;
the starting module is used for starting timing when the two-dimensional code does not exist, and starting the screen saver when the timing is finished; the timing duration is smaller than or equal to the preset waiting duration of the screen saver;
and the cancellation module is used for not starting the timing and canceling the start of the screen saver on the screen when the two-dimensional code exists.
Accordingly, an embodiment of the present invention provides a screen saver starting method for a mobile terminal and a mobile terminal, wherein in one embodiment, the method includes: when the mobile terminal is in a non-operation state and the screen is in a bright screen state, starting timing; the timing duration is smaller than or equal to the preset waiting duration of the screen saver; judging whether a two-dimensional code exists in a display interface of the screen or not when the timing is finished; if the two-dimensional code exists, canceling to start a screen saver on the screen; otherwise, a screen saver is started on the screen. When the two-dimension code exists in the display interface, the screen saver is canceled from being started on the screen, so that the scanning of the two-dimension code is ensured to be normally carried out.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a screen saver starting method for a mobile terminal according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a method for judging whether a two-dimensional code exists in a screen saver starting method in a mobile terminal according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a two-dimensional code according to an embodiment of the present invention;
fig. 4 is a flowchart of a screen saver starting method for a mobile terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The terminology used in the various embodiments of the disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the various embodiments of the disclosure. As used herein, the singular is intended to include the plural as well, unless the context clearly indicates otherwise. Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of this disclosure belong. The terms (such as those defined in commonly used dictionaries) will be interpreted as having a meaning that is the same as the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in the various embodiments of the disclosure.
The embodiment 1 of the invention discloses a screen saver starting method for a mobile terminal, which is applied to the mobile terminal, as shown in fig. 1, and comprises the following steps:
step 101, when the mobile terminal is in a non-operation state and a screen is in a bright screen state, starting timing; the timing duration is smaller than or equal to the preset waiting duration of the screen saver;
specifically, the mobile terminal may be a smart phone, a tablet, etc.; whether the screen of the mobile terminal is in a bright screen state or not is considered to be in a bright screen state on the premise that the two-dimensional code is displayed; specifically, whether the screen is changed to the bright screen state may be determined by whether an instruction to unlock the screen is received (e.g., pressing a power key, or double-clicking the screen).
The no-operation state is specifically a state that the mobile terminal does not receive any operation instruction, that is, a state that the preset waiting time of the screen saver is not restarted.
The mobile terminal is in a non-operation and screen is in a bright screen state (simply called a non-operation bright screen state), namely, the screen is being lightened and no operation instruction is received, which is in consideration of the fact that when an operation exists, the preset waiting time of the screen saver on the screen is from the time of ending the operation as a starting point, for example, the preset waiting time of the screen saver is 5 minutes, namely, if the screen is lightened for 5 minutes under the condition of no operation, the screen saver is started; when the screen is not operated and is in a bright screen state, starting timing, wherein the timing duration is smaller than or equal to the preset waiting duration of the screen saver, and the timing duration can be understood as the time length from the starting timing to the ending timing; for example, the preset waiting time of the screen saver is 5 minutes, in this case, the timing time may be set to 4 minutes 59 seconds, or 5 minutes, or may be 4 minutes 58 seconds, 4 minutes 57 seconds, or the like, and the specific timing time may be less than or equal to the preset waiting time of the screen saver.
Here, a specific example is described, for example, the mobile terminal is a television, the timing is started after the last button is finished, and if an operation instruction is received in the timing process (that is, the mobile terminal is no longer in a non-operation state), the timing is stopped or the count of the timing is reset to zero; specifically, any operation instruction is not allowed to be received in the timing process, which considers that after the operation instruction is received, the starting point of the preset waiting time of the screen saver is continuously pushed backwards, so that the screen saver is not started in the subsequent preset waiting time, and therefore, the time is started when the mobile terminal is in a non-operation and the screen is in a bright screen state under the consideration of saving resources.
102, judging whether a two-dimensional code exists in a display interface of the screen when timing is finished;
specifically, the judging whether the two-dimensional code exists in the display interface of the screen includes:
step A, intercepting a first layer positioned at the topmost layer of a display interface in the screen;
b, judging whether a two-dimensional code exists in a first screenshot generated based on the first layer interception;
and C, if the two-dimensional code exists on the first screenshot, determining that the two-dimensional code exists in the display interface.
If the two-dimensional code is judged to exist based on the steps, stopping subsequent operation, and if the two-dimensional code is judged not to exist on the first screenshot, continuing the subsequent steps; specifically, the steps D to E are performed.
Step D, if the two-dimensional code does not exist on the first screenshot, judging whether a window of a second layer in the screen is visible, wherein the second layer is the next layer of the first layer;
and E, if the second layer window is invisible, determining that the two-dimensional code does not exist in the display interface.
According to the steps, if the two-dimensional code does not exist in the display interface, the subsequent steps are stopped, and if the second layer window is visible, the judgment needs to be continued, wherein the specific subsequent steps refer to the step F.
And F, if the window of the second layer is visible, executing the method steps in the steps A-E on the second layer until the two-dimensional code exists on the screenshot generated based on the current layer interception or the window of the next layer of the current layer is invisible.
Specifically, for the display interface of the whole screen, a screenshot can be generated based on interception of the whole display interface to judge whether a two-dimensional code exists in the screenshot; however, since the two-dimensional code may have a problem of being partially blocked, if a mode of intercepting the whole screen is adopted, the two-dimensional code is detected incorrectly, and further, the user experience is poor, so that in a specific embodiment, a layered screenshot method can be adopted.
Specific, a specific example is used for illustration, for example, the situation that a popup window shields a two-dimensional code exists; in this case, firstly, the layer displayed on the topmost layer (for example, named layer 1), that is, the layer displayed with the popup window is intercepted, whether the two-dimensional code exists in the screenshot at this time is judged, if the two-dimensional code does not exist, whether the window of the layer (for example, the window corresponding to layer 2) behind the current layer (layer 1) is visible is further judged, if the judging result is visible, the layer (for example, layer 2) is continuously intercepted, and whether the two-dimensional code exists in the layer (layer 2) is judged; if the two-dimensional code is not available, whether the window of the later layer (for example, the corresponding layer 3) is visible or not is continuously judged, and if so, screen capturing judgment processing is carried out, so that the processing is circulated.
If the two-dimensional code or the window of the layer is not visible, the loop is exited. If the two-dimensional code does not exist, the screen saver is allowed to be displayed, otherwise, the screen saver is not allowed to be triggered, so that the problem that whether the two-dimensional code exists in the current screen cannot be judged due to the fact that the two-dimensional code is partially shielded due to popup windows and the like can be effectively solved.
Further, considering that the present scenario is directed to a scenario in which a two-dimensional code needs to be scanned, in fact, the two-dimensional code cannot be effectively identified due to multiple reasons, and in this case, whether a two-dimensional code exists in a display interface of the screen may be specifically:
judging the proportion of the determined two-dimensional code to the display interface if the two-dimensional code exists in the screenshot generated based on the current layer interception;
if the proportion is smaller than a preset threshold value, determining that the two-dimensional code is invalid, and determining that the two-dimensional code does not exist in the display interface;
and if the proportion is not smaller than a preset threshold value, determining that the two-dimensional code exists in the display interface.
Specifically, too small a two-dimensional code is an important cause of failing to be recognized, and in this case, the two-dimensional code can be considered as an invalid two-dimensional code, and therefore, although the two-dimensional code exists, the two-dimensional code cannot be recognized, and can be considered as nonexistent.
In addition, in a specific embodiment, in the step a to the step F, determining whether the two-dimensional code exists in the screenshot generated based on any layer interception specifically includes:
identifying a screenshot generated based on any layer interception to determine whether a two-dimensional code exists in the screenshot;
if the two-dimensional code exists in the screenshot, identifying the determined two-dimensional code;
if the determined two-dimensional code cannot be identified, setting the determined two-dimensional code as an invalid two-dimensional code, and determining that the two-dimensional code does not exist;
and if the information of the determined two-dimensional code is identified, determining that the two-dimensional code exists.
Specifically, whether the two-dimensional code can be identified or not can also be judged by whether the information can be identified or not, the specific identification can be performed by various identification modes, for example, identification is performed by WeChat or panned treasured or any application program capable of identifying the two-dimensional code such as a browser, the specific two-dimensional code can be considered to be effective only by identifying the information by one identification mode, namely, the two-dimensional code exists, and the specific identified information can be any character or character string; if all the identification modes cannot identify the two-dimensional code, the two-dimensional code is considered invalid, namely the two-dimensional code is considered to be absent.
In addition, considering that a display interface of a screen may have a plurality of two-dimensional codes, the display interface can be considered to have a two-dimensional code as long as one effective two-dimensional code exists, so that the display interface can be considered to have a two-dimensional code as long as one two-dimensional code is identified; therefore, in view of improving efficiency, if there are multiple two-dimensional codes in the display interface of the screen (certainly if there is only one two-dimensional code in the display interface of the screen, the determining whether there is a two-dimensional code in the display interface of the screen specifically includes:
carrying out two-dimensional code identification on a display interface of the screen;
and stopping the identification operation when the first two-dimensional code is identified, and determining that the two-dimensional code exists in the display interface of the screen.
The two-dimensional code may be a recognized two-dimensional code (whether or not it is normally recognized), or may be a valid two-dimensional code (a two-dimensional code corresponding to an invalid two-dimensional code, i.e., a two-dimensional code that can recognize information).
Step 103, if the two-dimensional code exists, canceling to start a screen saver on the screen;
specifically, step 101 may be performed again after the screen saver is started on the screen, that is, the timing may be performed again, so that a new time (for example, a case of changing the preset waiting duration of the screen saver) may be set, and when the new time is reached (of course, the new time must also be less than or equal to the preset waiting duration of the screen saver), the operation of whether the two-dimensional code is identified is performed again, where the specific identification operation is the same as or similar to the above process, and no redundant description is performed.
Meanwhile, a display area of the two-dimensional code in the display interface can be determined based on square positioning points in the vertexes of the two-dimensional code;
and reducing the brightness of other areas except the two-dimensional code display area in the display interface.
Specifically, as shown in fig. 3, a schematic diagram of a two-dimensional code is shown, wherein four vertices of the two-dimensional code include square positioning points, and the positions of the display areas of the two-dimensional code in the display interface can be determined through the three square positioning points.
Considering that the planar space occupied by the two-dimensional code (i.e. the display area in the display interface) is limited, when the two-dimensional code is determined, although the screen saver cannot be executed on the full screen, the brightness reduction process can be performed in other areas except the area where the two-dimensional code is located in the display interface due to the requirement of energy saving, and the specifically reduced brightness value can be set according to the actual application environment, so long as the scanning of the two-dimensional code is not affected after the brightness reduction can be ensured.
And 104, if the two-dimensional code does not exist, starting a screen saver on the screen.
The embodiment 1 of the invention provides a screen saver starting method for a mobile terminal and the mobile terminal, wherein the method comprises the following steps: when the mobile terminal is in a non-operation state and the screen is in a bright screen state, starting timing; the timing duration is smaller than or equal to the preset waiting duration of the screen saver; judging whether a two-dimensional code exists in a display interface of the screen or not when the timing is finished; if the two-dimensional code exists, canceling to start a screen saver on the screen; otherwise, a screen saver is started on the screen. When the two-dimension code exists in the display interface, the screen saver is canceled from being started on the screen, so that the scanning of the two-dimension code is ensured to be normally carried out.
In order to further explain the present invention, embodiment 2 of the present invention further proposes a screen saver starting method for a mobile terminal, as shown in fig. 4, where the method includes:
step 201, when the mobile terminal is in a non-operation state and a screen is in a bright screen state, judging whether a two-dimensional code exists in a display interface of the screen;
step 202, if the two-dimensional code does not exist, starting timing, and starting a screen saver when the timing is finished; the timing duration is smaller than or equal to the preset waiting duration of the screen saver;
and 203, if the two-dimensional code exists, not starting the timing, and canceling to start the screen saver on the screen.
Specifically, in embodiment 2, when the mobile terminal is in the no-operation and the screen is in the bright screen state, whether the two-dimensional code exists on the display interface is detected (the specific detection mode may be, for example, periodic detection or real-time detection), if so, the timer is not started and the screen saver is canceled to be started on the screen; the timing is started only when the two-dimensional code does not exist on the screen, and the steps after timing and the specific mode of judging whether the two-dimensional code exists are consistent with the mode of starting the screen saver in the prior art, so that a person skilled in the art obtains clear understanding according to the prior art, and the details are not repeated.
In order to further explain the present invention, embodiment 3 of the present invention further proposes a mobile terminal, as shown in fig. 5, including:
a timing module 301, configured to start timing when the screen is in a non-operational bright screen state; the timing duration is smaller than or equal to the preset waiting duration of the screen saver of the screen;
the judging module 302 is configured to judge whether a two-dimensional code exists in a display interface of the screen when the timing is finished;
a cancellation module 303, configured to cancel starting a screen saver on the screen when it is determined that the two-dimensional code exists;
and the starting module 304 is used for starting the screen saver on the screen when the two-dimensional code is judged not to exist.
In a specific embodiment, the determining module 302 determines whether a two-dimensional code exists in the display interface of the screen, and specifically includes:
intercepting a first layer positioned at the topmost layer of a display interface in the screen;
judging whether a two-dimensional code exists in a first screenshot generated based on the first layer interception;
if the two-dimensional code exists on the first screenshot, determining that the two-dimensional code exists in the display interface.
In a specific embodiment, the determining module 302 is further configured to determine whether a window of a second layer in the screen is visible when the two-dimensional code does not exist on the first screenshot, where the second layer is a layer next to the first layer;
and if the second layer window is invisible, determining that the two-dimensional code does not exist in the display interface.
In a specific embodiment, the determining module 302 is further configured to, when the window of the second layer is visible, perform the method steps performed by the determining module 302 on the second layer until it is determined that the two-dimensional code exists on the screenshot generated based on the current layer interception, or it is determined that the window of the next layer of the current layer is not visible.
In a specific embodiment, the determining module 302 determines whether a two-dimensional code exists in the display interface of the screen, and specifically further includes:
judging the proportion of the determined two-dimensional code to the display interface if the two-dimensional code exists in the screenshot generated based on the current layer interception;
if the proportion is smaller than a preset threshold value, determining that the two-dimensional code is invalid, and determining that the two-dimensional code does not exist in the display interface;
and if the proportion is not smaller than a preset threshold value, determining that the two-dimensional code exists in the display interface.
In a specific embodiment, the determining module 302 determines whether the two-dimensional code exists in the screenshot generated based on any layer interception, and specifically includes:
identifying a screenshot generated based on any layer interception to determine whether a two-dimensional code exists in the screenshot;
if the two-dimensional code exists in the screenshot, identifying the determined two-dimensional code;
if the determined two-dimensional code cannot be identified, setting the determined two-dimensional code as an invalid two-dimensional code, and determining that the two-dimensional code does not exist;
and if the information of the determined two-dimensional code is identified, determining that the two-dimensional code exists.
In a specific embodiment, if there are multiple two-dimensional codes in the display interface of the screen, the determining module 302 determines whether there are two-dimensional codes in the display interface of the screen, which specifically includes:
carrying out two-dimensional code identification on a display interface of the screen;
and stopping the identification operation when the first two-dimensional code is identified, and determining that the two-dimensional code exists in the display interface of the screen.
In a specific embodiment, the mobile terminal further comprises:
the processing module is used for determining the display area of the two-dimensional code in the display interface based on square positioning points in the vertexes of the two-dimensional code when the two-dimensional code exists in the display interface of the screen;
and reducing the brightness of other areas except the two-dimensional code display area in the display interface.
In order to further explain the present invention, embodiment 4 of the present invention also proposes a mobile terminal, as shown in fig. 6, including:
a judging module 401, configured to judge whether a two-dimensional code exists in a display interface of a screen when the mobile terminal is in a non-operation state and the screen is in a bright screen state;
the starting module 402 is used for starting timing when the two-dimensional code does not exist, and starting a screen saver when the timing is finished; the timing duration is smaller than or equal to the preset waiting duration of the screen saver of the screen;
and the cancellation module 403 is configured to, when the two-dimensional code exists, not start the timer, and cancel starting the screen saver on the screen.
In the embodiment 4 of the invention, when the mobile terminal is in a non-operation state and the screen is in a bright screen state, judging whether a two-dimensional code exists in a display interface of the screen, and when the two-dimensional code exists, if the two-dimensional code exists, even if the mobile terminal is still in the non-operation state and the screen is in the bright screen state, timing can not be started, and meanwhile, a screen saver can not be started, so that normal scanning of the two-dimensional code on the screen is ensured; when the two-dimensional code is determined to be absent, starting timing, and starting a screen saver when the timing is finished; in this way, the judging result of the judging module 401 (for example, the judging module 401 may be periodically started to perform the judgment, or the judging module 401 is kept in a mode of being always started to perform the judgment) is that the two-dimensional code exists, and the screen saver is not started in the period of time when the judging result is kept unchanged, so that the scanning of the two-dimensional code is not influenced, the timing is not started, and the system resource is saved; specifically, when the two-dimensional code exists on the display interface of the screen, the scanning of the two-dimensional code can be normally performed.
In this way, the embodiment of the invention provides a screen saver starting method for a mobile terminal and the mobile terminal. Specifically, when the mobile terminal is in a non-operation state and the screen is in a bright screen state, judging whether a two-dimensional code exists on a display interface of the screen, and when the two-dimensional code exists in the display interface, canceling to start a screen saver on the screen, so that normal operation of scanning the two-dimensional code is ensured.
Those skilled in the art will appreciate that the drawing is merely a schematic illustration of a preferred implementation scenario and that the modules or flows in the drawing are not necessarily required to practice the invention.
Those skilled in the art will appreciate that modules in an apparatus in an implementation scenario may be distributed in an apparatus in an implementation scenario according to an implementation scenario description, or that corresponding changes may be located in one or more apparatuses different from the implementation scenario. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above-mentioned inventive sequence numbers are merely for description and do not represent advantages or disadvantages of the implementation scenario.
The foregoing disclosure is merely illustrative of some embodiments of the invention, and the invention is not limited thereto, as modifications may be made by those skilled in the art without departing from the scope of the invention.

Claims (8)

1. A screen saver starting method for use in a mobile terminal, the method comprising:
when the mobile terminal is in a non-operation state and the screen is in a bright screen state, starting timing; the timing duration is smaller than or equal to the preset waiting duration of the screen saver;
judging whether a two-dimensional code exists in a display interface of the screen or not when the timing is finished;
if the two-dimensional code exists, starting a screen saver on the screen is canceled;
otherwise, starting a screen saver on the screen;
the judging whether the two-dimensional code exists in the display interface of the screen specifically comprises the following steps:
intercepting a first layer positioned at the topmost layer of a display interface in the screen;
judging whether a two-dimensional code exists in a first screenshot generated based on the first layer interception;
if the two-dimensional code exists on the first screenshot, determining that the two-dimensional code exists in the display interface;
if the two-dimensional code does not exist on the first screenshot, judging whether a window of a second layer in the screen is visible, wherein the second layer is the next layer of the first layer;
and if the second layer window is invisible, determining that the two-dimensional code does not exist in the display interface.
2. The method of claim 1, wherein,
if the second layer window is visible, the method steps of claim 1 are performed on the second layer until it is determined that a two-dimensional code exists on a screenshot generated based on current layer interception, or it is determined that a window of a next layer of the current layer is not visible.
3. The method of claim 2, wherein determining whether a two-dimensional code exists in a display interface of the screen, specifically further comprises:
judging the proportion of the determined two-dimensional code to the display interface if the two-dimensional code exists in the screenshot generated based on the current layer interception;
if the proportion is smaller than a preset threshold value, determining that the two-dimensional code is invalid, and determining that the two-dimensional code does not exist in the display interface;
and if the proportion is not smaller than a preset threshold value, determining that the two-dimensional code exists in the display interface.
4. The method of claim 2, wherein determining whether the two-dimensional code exists in the screenshot generated based on any layer interception, specifically comprises:
identifying a screenshot generated based on any layer interception to determine whether a two-dimensional code exists in the screenshot;
if the two-dimensional code exists in the screenshot, identifying the determined two-dimensional code;
if the determined two-dimensional code cannot be identified, setting the determined two-dimensional code as an invalid two-dimensional code, and determining that the two-dimensional code does not exist;
and if the information of the determined two-dimensional code is identified, determining that the two-dimensional code exists.
5. The method of claim 1, wherein if there are a plurality of two-dimensional codes in the display interface of the screen, the determining whether there are two-dimensional codes in the display interface of the screen specifically includes:
carrying out two-dimensional code identification on a display interface of the screen;
and stopping the identification operation when the first two-dimensional code is identified, and determining that the two-dimensional code exists in the display interface of the screen.
6. The method of claim 1, wherein when it is determined that a two-dimensional code exists in the display interface of the screen, the method further comprises:
determining a display area of the two-dimensional code in the display interface based on square positioning points in the vertexes of the two-dimensional code;
and reducing the brightness of other areas except the two-dimensional code display area in the display interface.
7. A screen saver starting method for use in a mobile terminal, the method comprising:
when the mobile terminal is in a non-operation state and the screen is in a bright screen state, judging whether a two-dimensional code exists in a display interface of the screen;
if the two-dimensional code does not exist, starting timing, and starting a screen saver when the timing is finished; the timing duration is smaller than or equal to the preset waiting duration of the screen saver;
if the two-dimensional code exists, the timing is not started, and the starting of the screen saver on the screen is canceled;
the judging whether the two-dimensional code exists in the display interface of the screen specifically comprises the following steps:
intercepting a first layer positioned at the topmost layer of a display interface in the screen;
judging whether a two-dimensional code exists in a first screenshot generated based on the first layer interception;
if the two-dimensional code exists on the first screenshot, determining that the two-dimensional code exists in the display interface;
if the two-dimensional code does not exist on the first screenshot, judging whether a window of a second layer in the screen is visible, wherein the second layer is the next layer of the first layer;
and if the second layer window is invisible, determining that the two-dimensional code does not exist in the display interface.
8. A mobile terminal, comprising:
the timing module is used for starting timing when the mobile terminal is in a non-operation state and the screen is in a bright screen state; the timing duration is smaller than or equal to the preset waiting duration of the screen saver of the screen;
the judging module is used for judging whether a two-dimensional code exists in a display interface of the screen or not when the timing is finished;
the judging whether the two-dimensional code exists in the display interface of the screen specifically comprises the following steps:
intercepting a first layer positioned at the topmost layer of a display interface in the screen;
judging whether a two-dimensional code exists in a first screenshot generated based on the first layer interception;
if the two-dimensional code exists on the first screenshot, determining that the two-dimensional code exists in the display interface;
if the two-dimensional code does not exist on the first screenshot, judging whether a window of a second layer in the screen is visible, wherein the second layer is the next layer of the first layer;
if the second layer window is invisible, determining that the two-dimensional code does not exist in the display interface;
the cancellation module is used for canceling the start of the screen saver on the screen when the two-dimensional code is judged to exist;
and the starting module is used for starting the screen saver on the screen when judging that the two-dimensional code does not exist.
CN201710299408.7A 2017-05-02 2017-05-02 Screen saver starting method used in mobile terminal and mobile terminal Active CN107301061B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710299408.7A CN107301061B (en) 2017-05-02 2017-05-02 Screen saver starting method used in mobile terminal and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710299408.7A CN107301061B (en) 2017-05-02 2017-05-02 Screen saver starting method used in mobile terminal and mobile terminal

Publications (2)

Publication Number Publication Date
CN107301061A CN107301061A (en) 2017-10-27
CN107301061B true CN107301061B (en) 2023-07-18

Family

ID=60137046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710299408.7A Active CN107301061B (en) 2017-05-02 2017-05-02 Screen saver starting method used in mobile terminal and mobile terminal

Country Status (1)

Country Link
CN (1) CN107301061B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108257227A (en) * 2018-02-12 2018-07-06 上海与德科技有限公司 A kind of Quick Response Code settlement method, terminal and system
CN112463267B (en) * 2019-09-06 2023-04-14 海信视像科技股份有限公司 Method for presenting screen saver information on display device screen and display device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102768829A (en) * 2011-05-03 2012-11-07 三星电子株式会社 Apparatus and method for controlling brightness of portable terminal
CN103745186A (en) * 2013-12-30 2014-04-23 宇龙计算机通信科技(深圳)有限公司 Processing method for two-dimensional code information and communication terminal
CN104281827A (en) * 2013-07-02 2015-01-14 腾讯科技(深圳)有限公司 Method and device for recognizing two-dimensional code
CN104965640A (en) * 2015-07-07 2015-10-07 广东欧珀移动通信有限公司 Mobile terminal screen display method and device
CN105607834A (en) * 2015-12-22 2016-05-25 小米科技有限责任公司 Screen control method and apparatus as well as terminal
CN106020760A (en) * 2016-05-31 2016-10-12 珠海市魅族科技有限公司 Multi-display-brightness data display method and device
CN106297734A (en) * 2016-10-20 2017-01-04 广州三星通信技术研究有限公司 Screen luminance adjustment method and equipment for electric terminal
CN106569586A (en) * 2016-11-11 2017-04-19 奇酷互联网络科技(深圳)有限公司 Terminal device and method and apparatus thereof for turning off screen

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102768829A (en) * 2011-05-03 2012-11-07 三星电子株式会社 Apparatus and method for controlling brightness of portable terminal
CN104281827A (en) * 2013-07-02 2015-01-14 腾讯科技(深圳)有限公司 Method and device for recognizing two-dimensional code
CN103745186A (en) * 2013-12-30 2014-04-23 宇龙计算机通信科技(深圳)有限公司 Processing method for two-dimensional code information and communication terminal
CN104965640A (en) * 2015-07-07 2015-10-07 广东欧珀移动通信有限公司 Mobile terminal screen display method and device
CN105607834A (en) * 2015-12-22 2016-05-25 小米科技有限责任公司 Screen control method and apparatus as well as terminal
CN106020760A (en) * 2016-05-31 2016-10-12 珠海市魅族科技有限公司 Multi-display-brightness data display method and device
CN106297734A (en) * 2016-10-20 2017-01-04 广州三星通信技术研究有限公司 Screen luminance adjustment method and equipment for electric terminal
CN106569586A (en) * 2016-11-11 2017-04-19 奇酷互联网络科技(深圳)有限公司 Terminal device and method and apparatus thereof for turning off screen

Also Published As

Publication number Publication date
CN107301061A (en) 2017-10-27

Similar Documents

Publication Publication Date Title
CN106156619B (en) Application security protection method and device
US10853102B2 (en) Android-based pop-up prompt method and device
US8006099B2 (en) Security management method, program, and information device
US10409635B2 (en) Switching method, switching system and terminal for system and/or application program
CN102521020A (en) Application screen capture method and application screen capture device for mobile terminals
CN112417421B (en) Scanning method, scanning device, electronic equipment and readable storage medium
CN107301061B (en) Screen saver starting method used in mobile terminal and mobile terminal
US20180084420A1 (en) Method and device for switching user mode of intelligent terminal, and intelligent terminal
CN105160217A (en) Application control method for intelligent watch and intelligent watch
CN111641677A (en) Message reminding method, message reminding device and electronic equipment
CN106933427A (en) Display screen condition control method and electronic equipment
CN105930119A (en) Display control method and device of intelligent terminal
US20190102063A1 (en) Method for displaying icon and related terminal
CN110704131B (en) Method and device for calling native application by HTML5 application
US10440283B2 (en) Electronic device and method for controlling the same
CN106453900A (en) Calling processing method and apparatus, called processing method and apparatus, and terminal
CN113542256B (en) Method, device, equipment and storage medium for updating login credentials in client
CN106709337A (en) Malicious bundled software processing method and apparatus
CN112287713A (en) Two-dimensional code identification method and device
CN107346197B (en) Information display method and device
CN112100672A (en) Application program unloading method and device
CN104424198A (en) Method and device for acquiring page display speed
CN106569933A (en) Task prompting method and apparatus
CN107783825A (en) The more background process of mobile terminal start method, device and mobile terminal
CN106055392B (en) Using processing method, test method and the terminal behind entrance backstage

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information

Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant after: Hisense Visual Technology Co., Ltd.

Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant before: QINGDAO HISENSE ELECTRONICS Co.,Ltd.

CB02 Change of applicant information
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant