CN106250047B - Touch-based search starting method and user terminal - Google Patents
Touch-based search starting method and user terminal Download PDFInfo
- Publication number
- CN106250047B CN106250047B CN201610657393.2A CN201610657393A CN106250047B CN 106250047 B CN106250047 B CN 106250047B CN 201610657393 A CN201610657393 A CN 201610657393A CN 106250047 B CN106250047 B CN 106250047B
- Authority
- CN
- China
- Prior art keywords
- user terminal
- state
- pressing
- pressed
- duration
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 80
- 238000003825 pressing Methods 0.000 claims abstract description 119
- 230000015654 memory Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 10
- 238000009434 installation Methods 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 230000002155 anti-virotic effect Effects 0.000 description 1
- 229910052799 carbon Inorganic materials 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/951—Indexing; Web crawling techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention relates to the technical field of Internet, and discloses a search starting method based on touch and a user terminal, wherein the method comprises the following steps: acquiring a pressing parameter when a user presses a screen of a user terminal, wherein the pressing parameter at least comprises pressing duration; judging whether the pressing time length exceeds a specified time length, and if the pressing time length exceeds the specified time length, judging whether the state of the screen of the user terminal when being pressed is a black screen state; if the screen of the user terminal is pressed to be in a black screen state, starting a camera of the user terminal to shoot to obtain a shot image; and searching for a content resource matching the photographed image. The embodiment of the invention can improve the efficiency of search starting.
Description
Technical field
The present embodiments relate to Internet technical field more particularly to a kind of search starting methods and use based on touch-control
Family terminal.
Background technique
Currently, can all pacify on smart phone, tablet computer and education class of electronic devices (such as private tutor's machine) user terminal
Equipped with search client (also referred to as search software), user by search client can from the content resource of magnanimity removal search
Oneself desired content resource.For example, student can use the search client removal search of tablet computer or the installation of private tutor's machine
Oneself desired examination question, learns anywhere or anytime so as to realize.In practice discovery, user is installed using user terminal
Search client removal search oneself desired content resource when, search could be started by needing to be introduced into search client, this
Mode can reduce the efficiency of search starting.
Summary of the invention
The embodiment of the invention discloses a kind of search starting method and user terminal based on touch-control, can be improved search and open
Dynamic efficiency.
First aspect of the embodiment of the present invention discloses a kind of search starting method based on touch-control, comprising:
Pressing parameter when user presses user terminal screen is obtained, the pressing parameter includes at least pressing duration;
Judge whether the pressing duration is more than specified duration, if the pressing duration is more than the specified duration, judgement
Whether the state when user terminal screen is pressed is black state;
If the state when user terminal screen is pressed is black state, the camera for opening user terminal is clapped
It takes the photograph, obtains shooting image;
And the content resource that search matches with the shooting image.
As an alternative embodiment, in first aspect of the embodiment of the present invention, the pressing parameter further include by
Pressure value, the judgement pressing duration are more than after the specified duration and described to judge the user terminal screen
Before whether state when being pressed is black state, the method also includes:
Judge whether the pressing force value is more than specified pressure value, if the pressing force value is more than the specified pressure value,
The step of whether state judged when the user terminal screen is pressed is black state executed.
As an alternative embodiment, in first aspect of the embodiment of the present invention, the pressing parameter further include by
Press fingerprint, the judgement pressing force value is more than after the specified pressure value and described to judge the user terminal screen
Before whether state when curtain is pressed is black state, the method also includes:
Judge the pressing fingerprint with preset whether legal fingerprint matches, if the pressing fingerprint and described presetting legal finger
Line matching, executes the step of whether state judged when the user terminal screen is pressed is black state.
As an alternative embodiment, the search starting method is also in first aspect of the embodiment of the present invention
Include:
If the state when user terminal screen is pressed is non-black state, judge that the user terminal screen is pressed
Whether state when pressure is main screen state, if the state when user terminal screen is pressed is the main screen state, judgement
Whether the pressing position when user terminal screen is pressed is located at non-application icon region, if the user terminal screen quilt
Pressing position when pressing is located in non-application icon region, and the camera for executing the unlatching user terminal is shot,
The step of obtaining shooting image;If the pressing position when user terminal screen is pressed is located in application icon region, control
Make the operation corresponding with the pressing of application execution belonging to the application icon in the application icon region.
As an alternative embodiment, the search starting method is also in first aspect of the embodiment of the present invention
Include:
If the state when user terminal screen is pressed is non-main screen state, it is determined that the user terminal screen quilt
State when pressing is the display state of application interface;
Screenshot is carried out to the application interface, obtains application interface screenshot;
And the content resource that search matches with the application interface screenshot.
As an alternative embodiment, in first aspect of the embodiment of the present invention, it is described to open taking the photograph for user terminal
As head is shot, shooting image is obtained, comprising:
The camera for opening user terminal carries out preview, obtains preview image;
Cursor of the load for focusing on the preview image;
The partial region being located in the cursor in the pre-set image is shot, shooting image is obtained.
Second aspect of the embodiment of the present invention discloses a kind of user terminal, comprising:
Acquiring unit, for obtaining pressing parameter when user presses user terminal screen, the pressing parameter is at least wrapped
Include pressing duration;
Duration judging unit, for judging whether the pressing duration is more than specified duration;
First state judging unit is more than the specified duration for the judging result in the duration judging unit
When, judge whether the state when user terminal screen is pressed is black state;
When shooting unit for the judging result in the first state judging unit is black state, it is whole to open user
The camera at end is shot, and shooting image is obtained;
Search unit, for searching for the content resource to match with the shooting image.
As an alternative embodiment, in second aspect of the embodiment of the present invention, the pressing parameter further include by
Pressure value, the user terminal further include:
Force value judging unit, for the judging result in the duration judging unit be more than the specified duration after,
Judge whether the pressing force value is more than specified pressure value;
The first state judging unit, for the judging result in the duration judging unit be more than it is described specified when
When long and when the judging result of the force value judging unit is more than the specified pressure value, the user terminal screen is judged
Whether state when curtain is pressed is black state.
As an alternative embodiment, in second aspect of the embodiment of the present invention, the pressing parameter further include by
Press fingerprint, the user terminal further include:
Fingerprint matching unit, for the judging result in the force value judging unit be more than the specified pressure value it
Afterwards, judge the pressing fingerprint with preset whether legal fingerprint matches;
The first state judging unit, for the judging result in the duration judging unit be more than it is described specified when
When long and the judging result of the force value judging unit be more than the specified pressure value when and the fingerprint matching list
When the judging result of member is matching, judge whether the state when user terminal screen is pressed is black state.
As an alternative embodiment, in second aspect of the embodiment of the present invention, the user terminal further include:
Second state judging unit, be also used to the first state judging unit judge the user terminal screen by by
State when pressure is non-black state, judges whether the state when user terminal screen is pressed is main screen state;
Position judging unit, for when the second state judging unit judges that the user terminal screen is pressed
When state is the main screen state, judge whether the pressing position when user terminal screen is pressed is located at non-application icon
Region;
The shooting unit is also used in the judging result of the position judging unit be in non-application icon region
When, the camera for executing the unlatching user terminal is shot, and the step of shooting image is obtained;
Control unit, when for the judging result in the position judging unit in application icon region, control
The operation corresponding with the pressing of application execution belonging to application icon in the application icon region.
As an alternative embodiment, in second aspect of the embodiment of the present invention, the user terminal further include:
Screenshot unit, for the state when the second state judging unit judges that the user terminal screen is pressed
When for non-main screen state, the state when user terminal screen is pressed that determines is the display state of application interface;And it is right
The application interface carries out screenshot, obtains application interface screenshot;
Described search unit is also used to search for the content resource to match with the application interface screenshot.
As an alternative embodiment, the shooting unit opens user in second aspect of the embodiment of the present invention
The camera of terminal is shot, and the mode of shooting image is obtained specifically:
The camera that the shooting unit is used to open user terminal carries out preview, obtains preview image;And described
Cursor of the load for focusing on preview image;And to the partial region being located in the cursor in the pre-set image
It is shot, obtains shooting image.
Compared with prior art, the embodiment of the present invention has the advantages that
In the embodiment of the present invention, when user terminal judges that user presses the pressing duration of user terminal screen more than specifying
When long, and when user terminal judges state when user terminal screen is pressed for black state, user terminal can be automatic
The camera for opening user terminal is shot, and shooting image is obtained;And the content that search matches with shooting image provides
Source.As it can be seen that implementing the embodiment of the present invention, user is when needing to search for content resource, it is only necessary to be in blank screen in user terminal screen
It is more than that specified duration can start search that user terminal screen is pressed when state, restarts without being introduced into search client and searches
Rope improves the efficiency and experience sense of search starting so as to realize quickly starting search.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ability
For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is a kind of flow diagram of search starting method based on touch-control disclosed by the embodiments of the present invention;
Fig. 2 is the flow diagram of another search starting method based on touch-control disclosed by the embodiments of the present invention;
Fig. 3 is the flow diagram of another search starting method based on touch-control disclosed by the embodiments of the present invention;
Fig. 4 is the flow diagram of another search starting method based on touch-control disclosed by the embodiments of the present invention;
Fig. 5 is the flow diagram of another search starting method based on touch-control disclosed by the embodiments of the present invention;
Fig. 6 is the flow diagram of another search starting method based on touch-control disclosed by the embodiments of the present invention;
Fig. 7 is a kind of structural schematic diagram of user terminal disclosed by the embodiments of the present invention;
Fig. 8 is the structural schematic diagram of another user terminal disclosed by the embodiments of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that the described embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on this
Embodiment in invention, every other reality obtained by those of ordinary skill in the art without making creative efforts
Example is applied, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of search starting method and user terminal based on touch-control, can be improved search and open
Dynamic efficiency.Attached drawing is combined below to be described in detail.
Embodiment one
Referring to Fig. 1, Fig. 1 is a kind of process signal of search starting method based on touch-control disclosed by the embodiments of the present invention
Figure.As shown in Figure 1, this method may comprise steps of:
101, user terminal obtains pressing parameter when user presses user terminal screen, which includes at least and press
Press duration.
In the embodiment of the present invention, user terminal may include smart phone, tablet computer and educate class of electronic devices (such as
Private tutor's machine) etc. user terminals, the embodiment of the present invention be not construed as limiting.
102, user terminal judges whether the pressing duration is more than specified duration, if so, executing step 103;If not, knot
This process of beam.
In the embodiment of the present invention, for example, whether user terminal may determine that the pressing duration more than 2S (when i.e. specified
It is long), if so, executing step 103;If not, terminating this process.
103, user terminal judges whether state when user terminal screen is pressed is black state, if so, executing
Step 104~step 105;If not, terminating this process.
104, the camera that user terminal opens user terminal is shot, and obtains shooting image.
In the embodiment of the present invention, the camera that user terminal opens user terminal is shot, and obtains the side of shooting image
Formula can be with are as follows:
The camera that user terminal opens user terminal carries out preview, obtains preview image;And add on preview image
Carry the cursor for focusing;And the partial region being located in cursor in pre-set image is shot, obtain shooting image.
For example, the camera that user terminal can open user terminal carries out preview to student's examination question, obtains preview
Image;On this basis, user terminal can further load the cursor for being used for focusing block examination question region on preview image,
And user terminal can shoot part examination question region being located in the cursor in pre-set image, obtain shooting figure
Picture.
105, the content resource that user terminal search shooting image matches.
In the embodiment of the present invention, shooting image can be reported to server-side by user terminal, and receive server-side return
The content resource to match with the shooting image.As an example it is assumed that the shooting figure seems the part examination question that student's examination question includes
Region, then server-side can return to the content resource to match with the part examination question in part examination question region to user terminal.
Wherein, the content resource that part examination question matches may include the definition parsing of part examination question, answer etc., and the embodiment of the present invention is not
It limits.
Wherein, implement method described in Fig. 1, user is when needing to search for content resource, it is only necessary in user terminal screen
It is more than that specified duration can start search that user terminal screen is pressed when in black state, without being introduced into search client
Restart search, so as to realize quickly starting search, improves the efficiency and experience sense of search starting.
Embodiment two
Referring to Fig. 2, the process that Fig. 2 is another search starting method based on touch-control disclosed by the embodiments of the present invention is shown
It is intended to.As shown in Fig. 2, this method may comprise steps of:
201, user terminal obtains pressing parameter when user presses user terminal screen, which includes at least and press
Press duration and pressing force value.
202, user terminal judges whether the pressing duration is more than specified duration, if so, executing step 203;If not, knot
This process of beam.
In the embodiment of the present invention, for example, whether user terminal may determine that the pressing duration more than 2S (when i.e. specified
It is long), if so, executing step 203;If not, terminating this process.
203, user terminal judges whether the pressing force value is more than specified pressure value, if so, executing step 204;If it is not, knot
This process of beam.
In the embodiment of the present invention, for example, whether user terminal judges the pressing force value more than 0.5N (i.e. specified pressure
Value), if so, executing step 204;If it is not, terminating this process.
In the embodiment of the present invention, implementation above-mentioned steps 203, which can be effectively prevented, causes search starting because missing touch screen.
204, user terminal judges whether state when user terminal screen is pressed is black state, if so, executing
Step 205~step 206;If not, terminating this process.
205, the camera that user terminal opens user terminal is shot, and obtains shooting image.
In the embodiment of the present invention, the camera that user terminal opens user terminal is shot, and obtains the side of shooting image
Formula can be with are as follows:
The camera that user terminal opens user terminal carries out preview, obtains preview image;And add on preview image
Carry the cursor for focusing;And the partial region being located in cursor in pre-set image is shot, obtain shooting image.
For example, the camera that user terminal can open user terminal carries out preview to student's examination question, obtains preview
Image;On this basis, user terminal can further load the cursor for being used for focusing block examination question region on preview image,
And user terminal can shoot part examination question region being located in the cursor in pre-set image, obtain shooting figure
Picture.
206, the content resource that user terminal search shooting image matches.
Wherein, implement method described in Fig. 2, user is when needing to search for content resource, it is only necessary in user terminal screen
It is more than that specified duration and pressing force value can start more than specified pressure value that user terminal screen is pressed when in black state
Search, restarts search without being introduced into search client, so as to realize reliable, quick starting search, improves
Search for the efficiency and experience sense of starting.
Embodiment three
Referring to Fig. 3, the process that Fig. 3 is another search starting method based on touch-control disclosed by the embodiments of the present invention is shown
It is intended to.As shown in figure 3, this method may comprise steps of:
301, user terminal obtains pressing parameter when user presses user terminal screen, which includes at least and press
Press duration, pressing force value and pressing fingerprint.
302, user terminal judges whether the pressing duration is more than specified duration, if so, executing step 303;If not, knot
This process of beam.
In the embodiment of the present invention, for example, whether user terminal may determine that the pressing duration more than 2S (when i.e. specified
It is long), if so, executing step 303;If not, terminating this process.
303, user terminal judges whether the pressing force value is more than specified pressure value, if so, executing step 304;If it is not, knot
This process of beam.
In the embodiment of the present invention, for example, whether user terminal judges the pressing force value more than 0.5N (i.e. specified pressure
Value), if so, executing step 304;If it is not, terminating this process.
304, user terminal judge the pressing fingerprint with preset whether legal fingerprint matches, if so, execute step 305;If
It is no, terminate this process.
In the embodiment of the present invention, implement 303~step 304 of above-mentioned steps can be effectively prevented the random touch screen of illegal user and
Cause search starting.
305, user terminal judges whether state when user terminal screen is pressed is black state, if so, executing
Step 306~step 307;If not, terminating this process.
306, the camera that user terminal opens user terminal is shot, and obtains shooting image.
In the embodiment of the present invention, the camera that user terminal opens user terminal is shot, and obtains the side of shooting image
Formula can be with are as follows:
The camera that user terminal opens user terminal carries out preview, obtains preview image;And add on preview image
Carry the cursor for focusing;And the partial region being located in cursor in pre-set image is shot, obtain shooting image.
For example, the camera that user terminal can open user terminal carries out preview to student's examination question, obtains preview
Image;On this basis, user terminal can further load the cursor for being used for focusing block examination question region on preview image,
And user terminal can shoot part examination question region being located in the cursor in pre-set image, obtain shooting figure
Picture.
307, the content resource that user terminal search shooting image matches.
Wherein, method described in implementing Fig. 3, user is when needing to search for content resource, it is only necessary in user terminal screen
It is more than specified duration, pressing force value more than specified pressure value and pressing fingerprint that user terminal screen is pressed when in black state
Search can be started with legal fingerprint matching is preset, restart search without being introduced into search client, so as to realize
More reliable, quickly starting search, improves the efficiency and experience sense of search starting.
Example IV
Referring to Fig. 4, the process that Fig. 4 is another search starting method based on touch-control disclosed by the embodiments of the present invention is shown
It is intended to.As shown in figure 4, this method may comprise steps of:
401, user terminal obtains pressing parameter when user presses user terminal screen, which includes at least and press
Press duration.
402, user terminal judges whether the pressing duration is more than specified duration, if so, executing step 403;If not, knot
This process of beam.
403, user terminal judges whether state when user terminal screen is pressed is black state, if it is not, executing step
Rapid 404;If so, executing step 409~step 410.
404, user terminal judges whether state when user terminal screen is pressed is main screen state, if so, executing step
Rapid 405;If it is not, executing step 407~step 408.
Wherein, main screen state is also referred to as main screen state, refers to that user terminal screen only shows user terminal installation
The state when application icon of each application.Under main screen state, user can click any one application icon, so as to
Trigger the operation of application execution belonging to the application icon (as opened).
405, user terminal judges whether pressing position when user terminal screen is pressed is located at non-application icon region,
If so, executing step 409~step 410;If it is not, executing step 406.
406, pressing position when user terminal identification user terminal screen is pressed is located in application icon region, and controls
The operation corresponding with pressing of application execution belonging to application icon in application icon region processed, and terminate this process.
Wherein, controlling application execution operation corresponding with pressing belonging to the application icon in application icon region can be with
Including the various operations such as unlatching, closing, payment, antivirus, networking.
407, user terminal determines that state when user terminal screen is pressed is the display state of application interface.
Wherein, the display state of application interface refers to the display shape using any one interface in each interface for including
State.
408, user terminal carries out screenshot to the application interface, obtains application interface screenshot;And search and application interface
The content resource that screenshot matches, and terminate this process.
409, the camera that user terminal opens user terminal is shot, and obtains shooting image.
In the embodiment of the present invention, the camera that user terminal opens user terminal is shot, and obtains the side of shooting image
Formula can be with are as follows:
The camera that user terminal opens user terminal carries out preview, obtains preview image;And add on preview image
Carry the cursor for focusing;And the partial region being located in cursor in pre-set image is shot, obtain shooting image.
For example, the camera that user terminal can open user terminal carries out preview to student's examination question, obtains preview
Image;On this basis, user terminal can further load the cursor for being used for focusing block examination question region on preview image,
And user terminal can shoot part examination question region being located in the cursor in pre-set image, obtain shooting figure
Picture.
410, the content resource that user terminal search shooting image matches.
In the embodiment of the present invention, shooting image can be reported to server-side by user terminal, and receive server-side return
The content resource to match with the shooting image.As an example it is assumed that the shooting figure seems the part examination question that student's examination question includes
Region, then server-side can return to the content resource to match with the part examination question in part examination question region to user terminal.
Wherein, the content resource that part examination question matches may include the definition parsing of part examination question, answer etc., and the embodiment of the present invention is not
It limits.
Wherein, implement method described in Fig. 4, user is when needing to search for content resource, without being introduced into search client
Search is restarted at end, so as to realize quickly starting search, improves the efficiency and experience sense of search starting.
Embodiment five
Referring to Fig. 5, the process that Fig. 5 is another search starting method based on touch-control disclosed by the embodiments of the present invention is shown
It is intended to.As shown in figure 5, this method may comprise steps of:
501, user terminal obtains pressing parameter when user presses user terminal screen, which includes at least and press
Press duration and pressing force value.
502, user terminal judges whether the pressing duration is more than specified duration, if so, executing step 503;If not, knot
This process of beam.
503, user terminal judges whether the pressing force value is more than specified pressure value, if so, executing step 504;If it is not, knot
This process of beam.
504, user terminal judges whether state when user terminal screen is pressed is black state, if it is not, executing step
Rapid 505;If so, executing step 510~step 511.
505, user terminal judges whether state when user terminal screen is pressed is main screen state, if so, executing step
Rapid 506;If it is not, executing step 508~step 509.
506, user terminal judges whether pressing position when user terminal screen is pressed is located at non-application icon region,
If so, executing step 510~step 511;If it is not, executing step 507.
507, pressing position when user terminal identification user terminal screen is pressed is located in application icon region, and controls
The operation corresponding with pressing of application execution belonging to application icon in application icon region processed, and terminate this process.
508, user terminal determines that state when user terminal screen is pressed is the display state of application interface.
509, user terminal carries out screenshot to the application interface, obtains application interface screenshot;And search and application interface
The content resource that screenshot matches, and terminate this process.
510, the camera that user terminal opens user terminal is shot, and obtains shooting image.
In the embodiment of the present invention, the camera that user terminal opens user terminal is shot, and obtains the side of shooting image
Formula can be with are as follows:
The camera that user terminal opens user terminal carries out preview, obtains preview image;And add on preview image
Carry the cursor for focusing;And the partial region being located in cursor in pre-set image is shot, obtain shooting image.
For example, the camera that user terminal can open user terminal carries out preview to student's examination question, obtains preview
Image;On this basis, user terminal can further load the cursor for being used for focusing block examination question region on preview image,
And user terminal can shoot part examination question region being located in the cursor in pre-set image, obtain shooting figure
Picture.
511, the content resource that user terminal search shooting image matches.
In the embodiment of the present invention, shooting image can be reported to server-side by user terminal, and receive server-side return
The content resource to match with the shooting image.As an example it is assumed that the shooting figure seems the part examination question that student's examination question includes
Region, then server-side can return to the content resource to match with the part examination question in part examination question region to user terminal.
Wherein, the content resource that part examination question matches may include the definition parsing of part examination question, answer etc., and the embodiment of the present invention is not
It limits.
Wherein, implement method described in Fig. 5, user is when needing to search for content resource, without being introduced into search client
Search is restarted at end, so as to realize reliability, quickly starting search, improves the efficiency and experience sense of search starting.
Embodiment six
Referring to Fig. 6, the process that Fig. 6 is another search starting method based on touch-control disclosed by the embodiments of the present invention is shown
It is intended to.As shown in fig. 6, this method may comprise steps of:
601, user terminal obtains pressing parameter when user presses user terminal screen, which includes at least and press
Press duration, pressing force value and pressing fingerprint.
602, user terminal judges whether the pressing duration is more than specified duration, if so, executing step 603;If not, knot
This process of beam.
603, user terminal judges whether the pressing force value is more than specified pressure value, if so, executing step 604;If it is not, knot
This process of beam.
604, user terminal judge the pressing fingerprint with preset whether legal fingerprint matches, if so, execute step 605;If
It is no, terminate this process.
605, user terminal judges whether state when user terminal screen is pressed is black state, if it is not, executing step
Rapid 606;If so, executing step 611~step 612.
606, user terminal judges whether state when user terminal screen is pressed is main screen state, if so, executing step
Rapid 607;If it is not, executing step 609~step 610.
607, user terminal judges whether pressing position when user terminal screen is pressed is located at non-application icon region,
If so, executing step 611~step 612;If it is not, executing step 608.
608, pressing position when user terminal identification user terminal screen is pressed is located in application icon region, and controls
The operation corresponding with pressing of application execution belonging to application icon in application icon region processed, and terminate this process.
609, user terminal determines that state when user terminal screen is pressed is the display state of application interface.
610, user terminal carries out screenshot to the application interface, obtains application interface screenshot;And search and application interface
The content resource that screenshot matches, and terminate this process.
611, the camera that user terminal opens user terminal is shot, and obtains shooting image.
In the embodiment of the present invention, the camera that user terminal opens user terminal is shot, and obtains the side of shooting image
Formula can be with are as follows:
The camera that user terminal opens user terminal carries out preview, obtains preview image;And add on preview image
Carry the cursor for focusing;And the partial region being located in cursor in pre-set image is shot, obtain shooting image.
For example, the camera that user terminal can open user terminal carries out preview to student's examination question, obtains preview
Image;On this basis, user terminal can further load the cursor for being used for focusing block examination question region on preview image,
And user terminal can shoot part examination question region being located in the cursor in pre-set image, obtain shooting figure
Picture.
612, the content resource that user terminal search shooting image matches.
In the embodiment of the present invention, shooting image can be reported to server-side by user terminal, and receive server-side return
The content resource to match with the shooting image.As an example it is assumed that the shooting figure seems the part examination question that student's examination question includes
Region, then server-side can return to the content resource to match with the part examination question in part examination question region to user terminal.
Wherein, the content resource that part examination question matches may include the definition parsing of part examination question, answer etc., and the embodiment of the present invention is not
It limits.
Wherein, implement method described in Fig. 6, user is when needing to search for content resource, without being introduced into search client
Search is restarted at end, so as to realize high reliability, quickly starting search, improves the efficiency and experience of search starting
Sense.
Embodiment seven
Referring to Fig. 7, Fig. 7 is a kind of structural schematic diagram of user terminal disclosed by the embodiments of the present invention.As shown in fig. 7,
The user terminal may include:
Acquiring unit 701, for obtaining pressing parameter when user presses user terminal screen, which is at least wrapped
Include pressing duration;
Duration judging unit 702, for judging whether the pressing duration is more than specified duration;
First state judging unit 703, when for the judging result in duration judging unit 702 for more than specified duration,
Judge whether state when user terminal screen is pressed is black state;
Shooting unit 704, for the judging result in first state judging unit 703 be black state when, open user
The camera of terminal is shot, and shooting image is obtained;
Search unit 705, the content resource to match for searching for and shooting image.
Wherein, implement user terminal described in Fig. 7, user is when needing to search for content resource, it is only necessary in user terminal
It is more than that specified duration can start search that user terminal screen is pressed when screen is in black state, without being introduced into searcher
Search is restarted at family end, so as to realize quickly starting search, improves the efficiency and experience sense of search starting.
Embodiment eight
Referring to Fig. 8, Fig. 8 is the structural schematic diagram of another user terminal disclosed by the embodiments of the present invention.Wherein, Fig. 8
Shown in user terminal be that user terminal as shown in Figure 7 optimizes.
As an alternative embodiment, above-mentioned pressing parameter further includes pressing force value;Correspondingly, and shown in Fig. 7
User terminal compare, user terminal shown in Fig. 8 can also include:
Force value judging unit 706, for the judging result in duration judging unit 702 be more than specified duration after, sentence
Whether disconnected pressing force value is more than specified pressure value;
Correspondingly, first state judging unit 703 be used for duration judging unit 702 judging result be more than it is specified when
When long and when the judging result of force value judging unit 704 is more than specified pressure value, when judging that user terminal screen is pressed
State whether be black state.
As another optional embodiment, above-mentioned pressing parameter in addition to include pressing duration, pressing force value other than,
It can also include pressing fingerprint, correspondingly user terminal shown in Fig. 8 can also include:
Fingerprint matching unit 707, for the judging result in force value judging unit 706 be more than specified pressure value after,
Judge press fingerprint with preset whether legal fingerprint matches;
Correspondingly, first state judging unit 703 be used for duration judging unit 702 judging result be more than it is specified when
When long and when the judging result of force value judging unit 706 is more than specified pressure value and fingerprint matching unit 707 is sentenced
When disconnected result is matching, judge whether state when user terminal screen is pressed is black state.
As another optional embodiment, user terminal shown in Fig. 8 can also include:
Second state judging unit 708 is also used to judge that user terminal screen is pressed in first state judging unit 702
When state be non-black state, judge whether state when user terminal screen is pressed is main screen state;
Position judging unit 709, for the shape when the second state judging unit 708 judges that user terminal screen is pressed
When state is main screen state, judge whether pressing position when user terminal screen is pressed is located at non-application icon region;
Correspondingly, shooting unit 704 is also used in the judging result of position judging unit 709 be positioned at non-application icon area
The step of when in domain, the camera for executing unlatching user terminal is shot, and obtains shooting image;
Control unit 710, when for the judging result in position judging unit 709 in application icon region, control
The operation corresponding with pressing of application execution belonging to application icon in application icon region processed.
As another optional embodiment, user terminal shown in Fig. 8 can also include:
Screenshot unit 711 is for the state when the second state judging unit 708 judges that user terminal screen is pressed
When non-main screen state, state when user terminal screen is pressed that determines is the display state of application interface;And to using boundary
Face carries out screenshot, obtains application interface screenshot;
Correspondingly, search unit 705 is also used to search for the content resource to match with application interface screenshot.
In the embodiment of the present invention, the camera that shooting unit 704 opens user terminal is shot, and obtains shooting image
Mode can be with are as follows:
The camera that shooting unit 704 is used to open user terminal carries out preview, obtains preview image;And in preview
Cursor of the load for focusing on image;And the partial region being located in cursor in pre-set image is shot, it obtains
Shoot image.
Wherein, implement user terminal described in Fig. 8, user is when needing to search for content resource, without being introduced into search
Client restarts search, so as to realize high reliability, quickly starting search, improves the efficiency and body of search starting
Test sense.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium include read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory,
RAM), programmable read only memory (Programmable Read-only Memory, PROM), erasable programmable is read-only deposits
Reservoir (Erasable Programmable Read Only Memory, EPROM), disposable programmable read-only memory (One-
Time Programmable Read-Only Memory, OTPROM), the electronics formula of erasing can make carbon copies read-only memory
(Electrically-Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact
Disc Read-Only Memory, CD-ROM) or other disc memories, magnetic disk storage, magnetic tape storage or can
For carrying or any other computer-readable medium of storing data.
Above to it is disclosed by the embodiments of the present invention it is a kind of based on touch-control search starting method and user terminal carried out in detail
Thin to introduce, used herein a specific example illustrates the principle and implementation of the invention, and above embodiments are said
It is bright to be merely used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, foundation
Thought of the invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification is not
It is interpreted as limitation of the present invention.
Claims (10)
1. a kind of search based on touch-control starts method characterized by comprising
Pressing parameter when user presses user terminal screen is obtained, the pressing parameter includes at least pressing duration;
Judge whether the pressing duration is more than specified duration, if the pressing duration is more than the specified duration, described in judgement
Whether state when user terminal screen is pressed is black state;
If the state when user terminal screen is pressed is black state, the camera for opening user terminal is shot,
Obtain shooting image;
And the content resource that search matches with the shooting image;
Described search starts method further include:
If the state when user terminal screen is pressed is non-black state, when judging that the user terminal screen is pressed
State whether be main screen state, if the state when user terminal screen is pressed is the main screen state, described in judgement
Whether pressing position when user terminal screen is pressed is located at non-application icon region, if the user terminal screen is pressed
When pressing position be located in non-application icon region, the camera for executing the unlatchings user terminal is shot, acquisition
The step of shooting image;If the pressing position when user terminal screen is pressed is located in application icon region, institute is controlled
State the operation corresponding with the pressing of application execution belonging to the application icon in application icon region.
2. search starting method according to claim 1, which is characterized in that the pressing parameter further includes pressing force value,
The judgement pressing duration is more than after the specified duration and when the judgement user terminal screen is pressed
State whether be black state before, the method also includes:
Judge whether the pressing force value is more than specified pressure value, if the pressing force value is more than the specified pressure value, executes
The step of whether state judged when the user terminal screen is pressed is black state.
3. search starting method according to claim 2, which is characterized in that the pressing parameter further includes pressing fingerprint,
The judgement pressing force value is more than after the specified pressure value and described to judge that the user terminal screen is pressed
When state whether be black state before, the method also includes:
Judge the pressing fingerprint with preset whether legal fingerprint matches, if the pressing fingerprint and described presetting legal fingerprint
Match, the step of whether state judged when the user terminal screen is pressed is black state executed.
4. search starting method according to claim 1,2 or 3, which is characterized in that further include:
If the state when user terminal screen is pressed is non-main screen state, it is determined that the user terminal screen is pressed
When state be application interface display state;
Screenshot is carried out to the application interface, obtains application interface screenshot;
And the content resource that search matches with the application interface screenshot.
5. search starting method according to claim 4, which is characterized in that the camera for opening user terminal carries out
Shooting obtains shooting image, comprising:
The camera for opening user terminal carries out preview, obtains preview image;
Cursor of the load for focusing on the preview image;
The partial region being located in the cursor in the preview image is shot, shooting image is obtained.
6. a kind of user terminal characterized by comprising
Acquiring unit, for obtaining pressing parameter when user presses user terminal screen, the pressing parameter is included at least and is pressed
Press duration;
Duration judging unit, for judging whether the pressing duration is more than specified duration;
First state judging unit is sentenced when for the judging result in the duration judging unit for more than the specified duration
Whether the state when user terminal screen of breaking is pressed is black state;
Shooting unit, for the judging result in the first state judging unit be black state when, open user terminal
Camera is shot, and shooting image is obtained;
Search unit, for searching for the content resource to match with the shooting image;
The user terminal further include:
Second state judging unit is also used to when the first state judging unit judges that the user terminal screen is pressed
State be non-black state, judge whether the state when user terminal screen is pressed is main screen state;
Position judging unit, for the state when the second state judging unit judges that the user terminal screen is pressed
When for the main screen state, judge whether the pressing position when user terminal screen is pressed is located at non-application icon area
Domain;
The shooting unit is also used to when the judging result of the position judging unit is in non-application icon region,
The step of camera for executing the unlatching user terminal is shot, and shooting image is obtained;
Control unit, when for the judging result in the position judging unit in application icon region, described in control
The operation corresponding with the pressing of application execution belonging to application icon in application icon region.
7. user terminal according to claim 6, which is characterized in that the pressing parameter further includes pressing force value, described
User terminal further include:
Force value judging unit, for the judging result in the duration judging unit be more than the specified duration after, judgement
Whether the pressing force value is more than specified pressure value;
The first state judging unit is more than the specified duration for the judging result in the duration judging unit
When and the force value judging unit judging result be more than the specified pressure value when, judge the user terminal screen
Whether state when being pressed is black state.
8. user terminal according to claim 7, which is characterized in that the pressing parameter further includes pressing fingerprint, described
User terminal further include:
Fingerprint matching unit, for the judging result in the force value judging unit be more than the specified pressure value after, sentence
Break the pressing fingerprint with preset whether legal fingerprint matches;
The first state judging unit is more than the specified duration for the judging result in the duration judging unit
When and the force value judging unit judging result be more than the specified pressure value when and the fingerprint matching unit
Judging result be matching when, judge whether the state when user terminal screen is pressed is black state.
9. according to user terminal described in claim 6,7 or 8, which is characterized in that the user terminal further include:
Screenshot unit, for the state when the second state judging unit judges that the user terminal screen is pressed to be non-
When main screen state, the state when user terminal screen is pressed that determines is the display state of application interface;And to described
Application interface carries out screenshot, obtains application interface screenshot;
Described search unit is also used to search for the content resource to match with the application interface screenshot.
10. user terminal according to claim 9, which is characterized in that the shooting unit opens the camera shooting of user terminal
Head is shot, and the mode of shooting image is obtained specifically:
The camera that the shooting unit is used to open user terminal carries out preview, obtains preview image;And in the preview
Cursor of the load for focusing on image;And the partial region being located in the cursor in the preview image is carried out
Shooting obtains shooting image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610657393.2A CN106250047B (en) | 2016-08-11 | 2016-08-11 | Touch-based search starting method and user terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610657393.2A CN106250047B (en) | 2016-08-11 | 2016-08-11 | Touch-based search starting method and user terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106250047A CN106250047A (en) | 2016-12-21 |
CN106250047B true CN106250047B (en) | 2019-03-15 |
Family
ID=58078979
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610657393.2A Active CN106250047B (en) | 2016-08-11 | 2016-08-11 | Touch-based search starting method and user terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106250047B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106598468B (en) * | 2016-12-23 | 2020-03-31 | 广东小天才科技有限公司 | Starting method and device of photographing search application |
CN106648245B (en) * | 2016-12-27 | 2020-04-24 | 珠海市魅族科技有限公司 | Control command generation method and information input device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105100481A (en) * | 2015-07-30 | 2015-11-25 | 努比亚技术有限公司 | Shooting method and apparatus, and mobile terminal |
CN105323341A (en) * | 2015-11-26 | 2016-02-10 | 努比亚技术有限公司 | Interactive device and interactive method for mobile terminal |
CN105718560A (en) * | 2016-01-20 | 2016-06-29 | 广东小天才科技有限公司 | Method and system for rapidly searching learning resources |
-
2016
- 2016-08-11 CN CN201610657393.2A patent/CN106250047B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105100481A (en) * | 2015-07-30 | 2015-11-25 | 努比亚技术有限公司 | Shooting method and apparatus, and mobile terminal |
CN105323341A (en) * | 2015-11-26 | 2016-02-10 | 努比亚技术有限公司 | Interactive device and interactive method for mobile terminal |
CN105718560A (en) * | 2016-01-20 | 2016-06-29 | 广东小天才科技有限公司 | Method and system for rapidly searching learning resources |
Also Published As
Publication number | Publication date |
---|---|
CN106250047A (en) | 2016-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105550554B (en) | A kind of glance prevention method and mobile terminal | |
TWI544366B (en) | Voice input command | |
CN104951208B (en) | A kind of control method and mobile terminal of application program | |
CN106492461A (en) | Method and device for realizing Augmented Reality (AR) game and user terminal | |
CN104572175B (en) | A kind of method and device for quickly starting non-privacy type application | |
CN105139470A (en) | Checking-in method, device and system based on face recognition | |
CN106982368B (en) | Video response speed detection method and system | |
CN105205379A (en) | Control method and device for terminal application and terminal | |
TW201003539A (en) | Method, apparatus and computer program product for providing gesture analysis | |
CN106210836A (en) | Interactive learning method and device in video playing process and terminal equipment | |
CN112286070B (en) | Equipment control method and device and electronic equipment | |
CN105045495B (en) | A kind of control method and mobile terminal of mobile terminal | |
CN111324352A (en) | Code generation method of application page and related equipment | |
CN110348193A (en) | Verification method, device, equipment and storage medium | |
CN106254915A (en) | Exchange method based on television terminal, Apparatus and system | |
CN107908801A (en) | Question searching method based on voice and electronic equipment | |
CN106250047B (en) | Touch-based search starting method and user terminal | |
CN110557564A (en) | Quick starting method and device of camera | |
CN105138881A (en) | Screen locking method and device | |
WO2017067507A1 (en) | Method and device for determining a use permission of an apparatus | |
CN105491282B (en) | Camera control method and mobile terminal under a kind of black state | |
CN105279498B (en) | A kind of eyeball recognition methods, device and terminal | |
CN111803960B (en) | Method and device for starting preset flow | |
CN109086431A (en) | Knowledge point consolidation learning method and electronic equipment | |
CN109359482B (en) | Webpage browsing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |