Terminal control method and deviceTechnical Field
The embodiment of the invention relates to the technical field of communication, in particular to an image acquisition method and device for a terminal.
Background
Unlocking is an indispensable step for entering a terminal home screen, and optimization of terminal unlocking and quick entry of a designated application from a locked screen are necessary so as to improve user experience.
In the prior art, a power-on/off button is pressed in a black screen state, and after a screen is lighted, further operation is performed to enter a main interface. The operation is troublesome, the operation of entering the main interface can be carried out only after the screen needs to be lightened, and the on-off key is easily damaged by frequently pressing the on-off key. In addition, in the prior art, the step of opening the terminal application is complex, and the use efficiency of the terminal application is reduced.
Disclosure of Invention
The embodiment of the invention provides a terminal control method and a terminal control device, which are used for realizing quick access to a main interface, reducing the operation on entity keys, prolonging the service life of a terminal, quickly accessing common applications of a user, reducing tedious operations, reducing the operation on the entity keys and saving time.
The embodiment of the invention provides a terminal control method, which comprises the following steps:
detecting gesture information of a user on a virtual key area of the terminal when the terminal is in a black screen state;
performing an operation matched with the gesture on the terminal;
the operations include: performing an unlocking operation on the terminal, or the operation includes: the terminal is controlled to enter a screen locking interface, and at least one trigger element is displayed on the screen locking interface, wherein each trigger element is used for indicating an application.
The embodiment of the invention also provides a terminal control device, which comprises:
the first detection module is used for detecting gesture information of a user on a virtual key area of the terminal when the terminal is in a black screen state;
the execution module is used for executing the operation matched with the gesture on the terminal; the operations include: performing an unlocking operation on the terminal, or the operation includes: the terminal is controlled to enter a screen locking interface, and at least one trigger element is displayed on the screen locking interface, wherein each trigger element is used for indicating an application.
Compared with the prior art, the embodiment of the invention at least has the following advantages: according to the embodiment of the invention, by detecting the gesture information of the user on the virtual key area of the terminal and executing the operation matched with the gesture on the terminal when the terminal is in the black screen state, the quick access to the main interface is realized, the operation on the entity key is reduced, the service life of the terminal is prolonged, the user can quickly access to the common application, the complicated operation is reduced, and the time is saved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a terminal control method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another terminal control method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a terminal control method according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal control device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention.
Example one
As shown in fig. 1, which is a schematic flow chart of a terminal control method provided in an embodiment of the present invention, the method includes the following steps:
s101, detecting gesture information of a user on a virtual key area of the terminal when the terminal is in a black screen state.
In a specific implementation process, the gesture information of the user on the virtual key area of the terminal includes:
swipe gesture information on the virtual key region; or,
and clicking operation aiming at the virtual key on the virtual key area.
Wherein the swipe gesture information includes: the starting position of the slide and the slide distance.
And S102, executing operation matched with the gesture on the terminal.
The operations include: performing an unlocking operation on the terminal, or the operation includes: the terminal is controlled to enter a screen locking interface, and at least one trigger element is displayed on the screen locking interface, wherein each trigger element is used for indicating an application.
In a specific implementation process, the performing, on the terminal, an operation matched with the gesture includes:
judging whether the sliding gesture information is consistent with the designated sliding gesture information;
and if the sliding gesture information is consistent with the designated sliding gesture information, executing operation matched with the gesture on the terminal.
Wherein, the judging whether the sliding gesture information is consistent with the appointed sliding gesture information comprises:
and the starting point position of the sliding is positioned in the designated area, the sliding distance exceeds the designated length, and the sliding gesture information is determined to be consistent with the designated sliding gesture information.
After S102, a drag operation for the trigger element may also be detected; and if the detected dragging operation is consistent with the specified dragging operation, starting the application indicated by the dragged trigger element.
Or after S103, a start instruction may also be received, where the start instruction is triggered by clicking one of the trigger elements; and starting the application indicated by the clicked triggering element according to the starting instruction.
In summary, compared with the prior art, the embodiment of the invention realizes fast access to the main interface, reduces the operation on the entity key, prolongs the service life of the terminal, can fast access to the common application of the user, reduces the complicated operation and saves the time.
Example two
To further illustrate the technical solution of the embodiment of the present invention, the technical solution of the embodiment of the present invention is now described with reference to a specific application scenario, as shown in fig. 2, which is a schematic flow chart of another terminal control method proposed in the embodiment of the present invention, and the method includes the following steps:
s201, detecting gesture information of a user on a virtual key area of the terminal when the terminal is in a black screen state; when detecting that the gesture information of the user on the virtual key area of the terminal is the sliding gesture information, executing S202, and when detecting that the gesture information of the user on the virtual key area of the terminal is the clicking operation aiming at the virtual key, executing S205.
In a specific implementation process, firstly, whether the position of an operation gesture of a user is located in a virtual key area is detected through a touch screen of the terminal, and if the position of the operation gesture of the user is located in the virtual key area, gesture information of the user on the virtual key area of the terminal is further detected.
The gesture information of the user on the virtual key area of the terminal comprises:
swipe gesture information on the virtual key region; or,
and clicking operation aiming at the virtual key on the virtual key area.
In a specific implementation process, the swipe gesture information includes: the starting position of the slide and the slide distance.
S202, judging whether the sliding gesture information is consistent with the designated sliding gesture information; if the slide gesture information is consistent with the designated slide gesture information, executing S203, otherwise, executing S204.
In a specific implementation process, the determining whether the swipe gesture information is consistent with the designated swipe gesture information includes:
and if the sliding starting point position is judged to be located in the designated area and the sliding distance exceeds the designated length, determining that the sliding gesture information is consistent with the designated sliding gesture information.
S203, unlocking the terminal.
And S204, not executing any operation and keeping the locking state of the terminal.
S205, controlling the terminal to enter a screen locking interface, and displaying at least one trigger element on the screen locking interface, wherein each trigger element is used for indicating an application.
S206, detecting the dragging operation aiming at the trigger element. If the detected drag operation is consistent with the specified drag operation, executing S207, otherwise executing S204.
And S207, starting the application indicated by the dragged trigger element.
In summary, compared with the prior art, the embodiment of the invention realizes fast access to the main interface, reduces the operation on the entity key, prolongs the service life of the terminal, can fast access to the common application of the user, reduces the complicated operation and saves the time.
EXAMPLE III
To further illustrate the technical solution of the embodiment of the present invention, the technical solution of the embodiment of the present invention is now described with reference to a specific application scenario, as shown in fig. 3, which is a schematic flow chart of another terminal control method proposed in the embodiment of the present invention, and the method includes the following steps:
s301, detecting gesture information of a user on a virtual key area of the terminal when the terminal is in a black screen state; when detecting that the gesture information of the user on the virtual key area of the terminal is the sliding gesture information, executing S302, and when detecting that the gesture information of the user on the virtual key area of the terminal is the clicking operation for the virtual key, executing S305.
In a specific implementation process, firstly, whether the position of an operation gesture of a user is located in a virtual key area is detected through a touch screen of the terminal, and if the position of the operation gesture of the user is located in the virtual key area, gesture information of the user on the virtual key area of the terminal is further detected.
The gesture information of the user on the virtual key area of the terminal comprises:
swipe gesture information on the virtual key region; or,
and clicking operation aiming at the virtual key on the virtual key area.
In a specific implementation process, the swipe gesture information includes: the starting position of the slide and the slide distance.
S302, judging whether the sliding gesture information is consistent with the designated sliding gesture information; if the slide gesture information is consistent with the designated slide gesture information, executing S303, otherwise, executing S304.
In a specific implementation process, the determining whether the swipe gesture information is consistent with the designated swipe gesture information includes:
and the starting point position of the sliding is positioned in the designated area, the sliding distance exceeds the designated length, and the sliding gesture information is determined to be consistent with the designated sliding gesture information.
And S303, unlocking the terminal.
And S304, not executing any operation.
S305, receiving a starting instruction, wherein the starting instruction is triggered by clicking one trigger element.
S306, starting the application indicated by the clicked triggering element according to the starting instruction.
In summary, compared with the prior art, the embodiment of the invention realizes fast access to the main interface, reduces the operation on the entity key, prolongs the service life of the terminal, can fast access to the common application of the user, reduces the complicated operation and saves the time.
Example four
Based on the same concept of the embodiment of the present invention as the flow of the control method of the terminal, a terminal control device is further provided in the embodiment of the present invention, and as shown in fig. 4, a schematic structural diagram of a terminal control device provided in the embodiment of the present invention is shown. The apparatus of this embodiment includes:
the first detection module 401 is configured to detect gesture information of a user on a virtual key area of the terminal when the terminal is in a black screen state;
an executing module 402, configured to execute an operation matched with the gesture on the terminal, where the operation includes: performing an unlocking operation on the terminal, or the operation includes: the terminal is controlled to enter a screen locking interface, and at least one trigger element is displayed on the screen locking interface, wherein each trigger element is used for indicating an application.
In a specific implementation process, the first detecting module 401 is specifically configured to:
detecting sliding gesture information of a user on a virtual key area of the terminal when the terminal is in a black screen state; or,
and detecting clicking operation of a user on the virtual key area aiming at the virtual key.
In a specific implementation process, the swipe gesture information includes: the starting position of the slide and the slide distance.
In a specific implementation process, the executing module 402 is specifically configured to:
judging whether the sliding gesture information is consistent with the designated sliding gesture information;
and if the sliding gesture information is consistent with the designated sliding gesture information, executing operation matched with the gesture on the terminal.
In a specific implementation process, the determining whether the swipe gesture information is consistent with the designated swipe gesture information includes:
and the starting point position of the sliding is positioned in the designated area, the sliding distance exceeds the designated length, and the sliding gesture information is determined to be consistent with the designated sliding gesture information.
Further, the apparatus further comprises:
a second detecting module 403, configured to detect a dragging operation for the trigger element;
a first starting module 404, configured to start the application indicated by the dragged trigger element if the detected dragging operation is consistent with a specified dragging operation.
Further, the apparatus further comprises:
a receiving module 405, configured to receive a start instruction, where the start instruction is triggered by clicking one of the trigger elements.
A second starting module 406, configured to start, according to the starting instruction, the application indicated by the clicked trigger element.
In summary, compared with the prior art, the embodiment of the invention realizes fast access to the main interface, reduces the operation on the entity key, prolongs the service life of the terminal, can fast access to the common application of the user, reduces the complicated operation and saves the time.
The modules of the device of the embodiment of the invention can be integrated into a whole or can be separately deployed. The modules can be combined into one module, and can also be further split into a plurality of sub-modules.
Through the above description of the embodiments, those skilled in the art will clearly understand that the embodiments of the present invention may be implemented by software plus a necessary general hardware platform, and certainly may 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 embodiments of the present invention may be substantially implemented or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the methods described in the embodiments of the present invention. Those skilled in the art will appreciate that the drawings are merely schematic representations of one preferred embodiment and that the blocks or flow diagrams in the drawings are not necessarily required to practice embodiments of the present invention.
Those skilled in the art will appreciate that the modules in the devices in the embodiments may be distributed in the devices in the embodiments according to the description of the embodiments, and may be correspondingly changed in one or more devices different from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules. The sequence numbers of the embodiments of the present invention are merely for description and do not represent the advantages or disadvantages of the embodiments. The embodiments of the present invention are disclosed only in the following embodiments, but the embodiments of the present invention are not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the embodiments of the present invention.