Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for photo search application, so as to solve the problem of low starting efficiency of the existing photo search application.
In a first aspect, a method for starting a photo search application is provided, including:
in a black screen standby state of the terminal, monitoring touch screen operation is kept;
when the occurrence of a touch screen operation is monitored, judging whether the touch screen operation is a preset operation for starting a photographing search application;
and if the touch screen operation is the preset operation for starting the photographing search application, lightening a screen and activating the photographing search application in the foreground.
Optionally, if the touch screen operation is the preset operation for starting the photographing search application, lighting a screen and activating the photographing search application in a foreground includes:
if the touch screen operation is the preset operation for starting the photographing search application, detecting a gesture type corresponding to the touch screen operation;
determining a corresponding search type according to the detected gesture type;
and lightening a screen, activating the photographing search application in the foreground, and calling a function page corresponding to the search type.
Optionally, the method further comprises:
and establishing the connection of the remote database corresponding to the search type.
Optionally, the search type includes:
word/word paraphrase search, text passage translation search, topic search, or tutorial content search.
Optionally, the lighting up the screen and activating the photo search application in the foreground includes:
and lightening a screen, activating the photographing search application in the foreground, and jumping to a photographing preview interface of the photographing search application.
In a second aspect, an apparatus for starting a photo search application is provided, the apparatus comprising:
the monitoring unit is used for keeping monitoring of touch screen operation in a black screen standby state of the terminal;
the device comprises a judging unit and a judging unit, wherein the judging unit is used for judging whether a touch screen operation is a preset operation for starting a photographing search application or not when the occurrence of the touch screen operation is monitored;
and the starting unit is used for lighting a screen and activating the photographing search application in the foreground if the touch screen operation is the preset operation for starting the photographing search application.
Optionally, the starting unit includes:
the detection subunit is configured to detect a gesture type corresponding to the touch screen operation if the touch screen operation is the preset operation for starting the photographing search application;
the determining subunit is used for determining a corresponding search type according to the detected gesture type;
and the calling subunit is used for lighting a screen, activating the photographing search application in the foreground, and calling the functional page corresponding to the search type.
Optionally, the apparatus further comprises:
and the connection unit is used for establishing the connection of the remote database corresponding to the search type.
Optionally, the search type includes:
word/word paraphrase search, text passage translation search, topic search, or tutorial content search.
Optionally, the starting unit is specifically configured to:
and lightening a screen, activating the photographing search application in the foreground, and jumping to a photographing preview interface of the photographing search application.
In the embodiment of the invention, the shooting search application is awakened directly through touch screen operation in the black screen standby state of the terminal so as to execute the shooting search operation, and the shooting search application is started without the processes of pressing a start key, sliding screen unlocking, selecting a shooting search question application, starting the application, starting a camera and the like, so that the starting efficiency of the shooting search application is improved.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In the embodiment of the invention, the monitoring of the touch screen operation is kept in the black screen standby state of the terminal; when the occurrence of a touch screen operation is monitored, judging whether the touch screen operation is a preset operation for starting a photographing search application; and if the touch screen operation is the preset operation for starting the photographing search application, lightening a screen and activating the photographing search application in the foreground.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Fig. 1 shows an implementation flow of a method for starting a photo search application according to an embodiment of the present invention, which is detailed as follows:
in S101, in a black screen standby state of the terminal, listening to a touch screen operation is maintained.
In the embodiment of the invention, when the terminal is in the black screen standby state, the touch screen sensor in the screen module is still in the awakening state, the weak current is kept on the surface of the screen, and once the touch screen operation is performed, the touch screen operation can be responded. Therefore, in the embodiment of the invention, the monitoring of the touch screen operation is still kept in the black screen standby state of the terminal.
In S102, when it is monitored that a touch screen operation occurs, it is determined whether the touch screen operation is a preset operation for starting a photo search application.
If the touch screen operation is monitored to occur in the black screen standby state of the terminal, judging the gesture type of the touch screen operation to determine whether the touch screen operation is a preset operation for starting a photographing search application.
In the embodiment of the present invention, a gesture type of a touch screen operation for starting a photo search application may be set in advance, for example, gesture types such as a double-click screen, a triple-click screen, a multi-point grab and the like are set as the touch screen operation for starting the photo search application, and when it is detected that the touch screen operation occurs, it is detected whether a gesture type corresponding to the occurred touch screen operation event is one of preset gesture types, and if so, the touch screen operation is considered as a preset operation for starting the photo search application.
In S103, if the touch screen operation is the preset operation for starting the photographing search application, the screen is lit up and the photographing search application is activated in the foreground.
In the embodiment of the invention, once the monitored touch screen operation is determined to be the preset operation for starting the photo search application, the terminal screen is lightened, and the photo search application is activated to the foreground. Specifically, if the photographing search application is in a closed state before, the photographing search application is started in the foreground; if the shooting search application runs in the background of the terminal before, the shooting search application is adjusted to the foreground to run; and if the shooting search application runs in the foreground of the terminal before, directly unlocking the terminal.
In addition, as an embodiment of the invention, when the screen is lighted and the photo search application is activated in the foreground, the user can directly jump to the photo preview interface of the photo search application, so that the user can directly shoot the search content through the photo preview interface after the terminal is unlocked, and the operation efficiency of the photo search is further improved.
Further, as an embodiment of the present invention, as shown in fig. 2, S103 may be specifically implemented by:
and S104, if the touch screen operation is the preset operation for starting the photographing search application, detecting a gesture type corresponding to the touch screen operation.
And S105, determining a corresponding search type according to the detected gesture type.
S106, lighting up a screen, activating the photographing search application in the foreground, and calling a function page corresponding to the search type.
In an embodiment of the present invention, the search type includes, but is not limited to, a word/word paraphrase search, a text passage translation search, a topic search, or a tutorial content search. When the gesture type of the touch screen operation for starting the photographing search application is set in advance, the search types corresponding to different gesture types can be set simultaneously, for example, the search type corresponding to the gesture type of the double-click screen is word/word paraphrase search, the search type corresponding to the gesture type of the three-click screen is text paragraph translation search, and the search type corresponding to the gesture type of the multi-point grabbing is topic search or teaching tutor content search.
Meanwhile, further, on the basis of the implementation example corresponding to fig. 2, when the function page corresponding to the search type is called, the connection with the remote database corresponding to the search type may be established in advance, for example, if the search type is word/word paraphrase search, the connection with the word/word paraphrase database may be established in advance, it is not necessary to confirm the search content after the photographing is completed and the search content is extracted, and then the connection with the database corresponding to the search type is established, so that the search efficiency is improved.
In the embodiment of the invention, the shooting search application is awakened directly through touch screen operation in the black screen standby state of the terminal so as to execute the shooting search operation, and the shooting search application is started without the processes of pressing a start key, sliding screen unlocking, selecting a shooting search question application, starting the application, starting a camera and the like, so that the starting efficiency of the shooting search application is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Corresponding to the method for starting the photo search application described in the foregoing embodiment, fig. 3 shows a block diagram of a starting apparatus of the photo search application provided in the embodiment of the present invention, where the starting apparatus of the photo search application may be a software unit, a hardware unit or a combination of software and hardware that is built in a terminal device or an application system of the terminal device. For convenience of explanation, only the portions related to the present embodiment are shown.
Referring to fig. 3, the apparatus includes:
themonitoring unit 31 keeps monitoring touch screen operation in a black screen standby state of the terminal;
the judgingunit 32 is configured to, when it is monitored that a touch screen operation occurs, judge whether the touch screen operation is a preset operation for starting a photographing search application;
and astarting unit 33, if the touch screen operation is the preset operation for starting the photographing search application, lighting up a screen and activating the photographing search application in the foreground.
Optionally, thestarting unit 33 includes:
the detection subunit detects a gesture type corresponding to the touch screen operation if the touch screen operation is the preset operation for starting the photographing search application;
a determining subunit, for determining a corresponding search type according to the detected gesture type;
and the calling subunit is used for lightening the screen, activating the photographing search application in the foreground and calling the functional page corresponding to the search type.
Optionally, the apparatus further comprises:
and the connection unit is used for establishing the connection of the remote database corresponding to the search type.
Optionally, the search type includes:
word/word paraphrase search, text passage translation search, topic search, or tutorial content search.
Optionally, thestarting unit 33 is specifically configured to:
and lightening a screen, activating the photographing search application in the foreground, and jumping to a photographing preview interface of the photographing search application.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention may be implemented in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.