Searching method and device, electronic equipment and computer readable storage medium
By performing the start-up operation on any page of the terminal and detecting the target operation, and directly obtaining and searching the content, the cumbersome search process in the existing technology is solved, and a fast and convenient search experience is achieved.
Patent Information
- Application Number
- CN202510069952.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-15
- Publication Date
- 2025-05-13
AI Technical Summary
When using terminals such as mobile phones, users want to search for content that they are interested in but do not understand. The prior art requires copying content to a search application, which is cumbersome and inconvenient.
By performing the start-up operation on any page of the terminal, directly enable the search function, and detect the target operations on the page (such as circle selection or marking), obtain the corresponding content for searching, and obtain the search results.
It realizes quick search for content on any page of the terminal without copying the content to other search applications, improving the convenience and efficiency of search.
Smart Images

Figure CN119988712A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a search method, device, electronic device, and computer-readable storage medium. Background Art
[0002] When a user sees content that he is interested in but does not understand when using a mobile phone or other terminal, and wants to search for the content, he needs to copy the content, then open an application with a search function, and paste the copied content into the search box of the application to search for the content. The entire search process is not convenient and is rather cumbersome. Summary of the invention
[0003] The embodiments of the present application provide a search method, device, electronic device and computer-readable storage medium, which can realize fast search.
[0004] In a first aspect, an embodiment of the present application provides a search method, including:
[0005] In response to the start action, start the search function;
[0006] After the search function is enabled, detecting a first target operation on a first page;
[0007] Acquire the first content on the first page corresponding to the first target operation; and
[0008] The first content is searched to obtain search results.
[0009] In one embodiment, the first target operation includes a circle operation; the circle operation includes a clockwise circle operation and a counterclockwise circle operation;
[0010] The acquiring the first content on the first page corresponding to the first target operation includes:
[0011] Determine a circle selection box corresponding to the circle selection operation;
[0012] Acquire the first content in the circled selection box on the first page;
[0013] The step of searching the first content to obtain search results includes:
[0014] Determine a search mode corresponding to the circle selection operation; the search mode includes a common search and a shopping search, the clockwise circle selection operation corresponds to one of the common search and the shopping search, and the counterclockwise circle selection operation corresponds to the other of the common search and the shopping search;
[0015] The first content is searched according to the search method corresponding to the circle selection operation to obtain the search result.
[0016] In one of the embodiments, the first target operation includes a line drawing operation;
[0017] The acquiring the first content on the first page corresponding to the first target operation includes:
[0018] Determine the line position corresponding to the line drawing operation;
[0019] Determine the text content corresponding to the line position;
[0020] The step of searching the first content to obtain search results includes:
[0021] The text content corresponding to the line position is translated and searched to obtain a translation result.
[0022] In one of the embodiments, after acquiring the first content on the first page corresponding to the first target operation, the method further includes:
[0023] Display search method options;
[0024] In response to an operation on the search mode option, determining a search mode;
[0025] The step of searching the first content to obtain search results includes:
[0026] The first content is searched according to the search method to obtain the search result.
[0027] In one embodiment, the search method is a comparative search; after determining that the search method is the comparative search, the method further includes:
[0028] detecting a second target operation on a second page;
[0029] Acquire second content on the second page corresponding to the second target operation;
[0030] The step of searching the first content to obtain search results includes:
[0031] A comparative search is performed on the first content and the second content to obtain a comparative result of the search result of the first content and the search result of the second content.
[0032] In one embodiment, the search method includes synchronous search; after determining that the search method is the synchronous search, the method further includes:
[0033] detecting a third target operation on a third page;
[0034] Acquire third content on the third page corresponding to the third target operation;
[0035] The step of searching the first content to obtain search results includes:
[0036] The first content and the third content are searched synchronously to obtain search results of the first content and search results of the third content.
[0037] In one of the embodiments, the first target operation includes a plurality of consecutive circle operations;
[0038] The acquiring the first content on the first page corresponding to the first target operation includes:
[0039] Obtaining the circle selection boxes corresponding to the plurality of consecutive circle selection operations;
[0040] Obtaining sub-contents in each of the circled boxes on the first page;
[0041] The step of searching the first content to obtain search results includes:
[0042] A synchronous search or a comparative search is performed on the plurality of sub-contents to obtain the search result.
[0043] In a second aspect, an embodiment of the present application provides a search device, including:
[0044] An opening module, used for opening the search function in response to an opening action;
[0045] A detection module, configured to detect a first target operation on a first page after the search function is enabled;
[0046] An acquisition module, configured to acquire the first content on the first page corresponding to the first target operation;
[0047] The search module is used to search the first content to obtain search results.
[0048] In one embodiment, the first target operation includes a circle operation; the circle operation includes a clockwise circle operation and a counterclockwise circle operation; and the acquisition module includes:
[0049] A circle selection box determining unit, used to determine a circle selection box corresponding to the circle selection operation;
[0050] A first acquisition unit, configured to acquire the first content in the circled selection box on the first page;
[0051] The search module includes:
[0052] a search mode determining unit, configured to determine a search mode corresponding to the circle selection operation; the search mode includes a common search and a shopping search, the clockwise circle selection operation corresponds to one of the common search and the shopping search, and the counterclockwise circle selection operation corresponds to the other of the common search and the shopping search;
[0053] The first search unit is used to search the first content according to the search method corresponding to the circle selection operation to obtain the search result.
[0054] In one embodiment, the first target operation includes a line drawing operation; and the acquisition module includes:
[0055] A position determination unit, used to determine the line position corresponding to the line drawing operation;
[0056] A content unit, used to determine the text content corresponding to the line position;
[0057] The search module includes:
[0058] The second search unit is used to translate and search the text content corresponding to the line position to obtain a translation result.
[0059] In one of the embodiments, after acquiring the first content on the first page corresponding to the first target operation, the apparatus further includes:
[0060] Display module, used to display search method options;
[0061] A search mode determination module, configured to determine a search mode in response to an operation on the search mode option;
[0062] The search module includes:
[0063] The third search unit is used to search the first content according to the search method to obtain the search result.
[0064] In one embodiment, the search method is a comparative search; after determining that the search method is the comparative search, the device further includes:
[0065] A second target operation detection module, used to detect a second target operation on the second page;
[0066] A second content acquisition module, used to acquire second content on the second page corresponding to the second target operation;
[0067] The search module includes:
[0068] The fourth search unit is used to perform a comparative search on the first content and the second content to obtain a comparative result of the search result of the first content and the search result of the second content.
[0069] In one embodiment, the search method includes synchronous search; after determining that the search method is the synchronous search, the device further includes:
[0070] A third target operation detection module, used to detect a third target operation on a third page;
[0071] A third content acquisition module, used to acquire the third content on the third page corresponding to the third target operation;
[0072] The search module includes:
[0073] The fifth search unit is configured to synchronously search the first content and the third content to obtain search results of the first content and the third content.
[0074] In one embodiment, the first target operation includes a plurality of consecutive circle operations; and the acquisition module includes:
[0075] A frame acquisition unit, used to acquire the circle selection frames corresponding to the plurality of consecutive circle selection operations;
[0076] A sub-content acquisition unit, used for acquiring the sub-content in each of the circled boxes in the first page;
[0077] The search module includes:
[0078] The sixth search unit is used to perform a synchronous search or a comparative search on the plurality of sub-contents to obtain the search result.
[0079] In a third aspect, an embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps in the above-mentioned search method when executed by the processor.
[0080] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above-mentioned search method are implemented.
[0081] In a fifth aspect, the embodiments of the present application further provide a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in various optional implementations described in the embodiments of the present application.
[0082] In summary, in the embodiment of the present application, as long as the opening action is performed on any page of the terminal, the terminal can directly open the search function in response to the opening action; after the search function is turned on, the first target operation is performed on the first page, the first content on the first page can be obtained, and the first content can be directly searched to obtain the search results. In this way, there is no need to copy the first content to other applications with search functions, but the first content corresponding to the first target operation on the first page can be directly searched for the first content, which has the advantages of being fast and convenient. BRIEF DESCRIPTION OF THE DRAWINGS
[0083] In order to more clearly illustrate the technical solutions in the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0084] Figure 1 It is a schematic diagram of the steps of a search method provided by an embodiment of the present application;
[0085] Figure 2 is a schematic diagram of search mode options provided in an embodiment of the present application;
[0086] Figure 3 is a schematic diagram of the structure of a search device provided by an embodiment of the present application;
[0087] Figure 4 It is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0088] The following will be combined with the drawings in this application to clearly and completely describe the technical solutions in this application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments in the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0089] In one embodiment, Figure 1As shown, a search method is provided. Although a logical order is shown in the step diagram, in some cases, the steps shown or described may be performed in an order different from that shown in the figure. Specifically, the search method may be applied to a terminal, wherein the terminal may include but is not limited to one or more of a smart phone, a tablet computer, a portable computer, a desktop computer, and a vehicle-mounted computer.
[0090] It should be noted that the order of description of the following embodiments is not intended to limit the priority order of the embodiments.
[0091] according to Figure 1 The search method shown in the figure includes at least steps S110 to S140, which are described in detail as follows:
[0092] In step S110 , in response to the start action, the search function is started.
[0093] The start action is an action for starting the search function. The start action can be any preset action and can be executed on any interface of the terminal. For example, the start action can be sliding down with three fingers on the terminal screen, or opening the terminal's shortcut panel and then clicking the button corresponding to the search function in the shortcut panel.
[0094] In one embodiment, the start-up is performed by swiping down with three fingers on the screen of the terminal; when the user is browsing the first page of an application and wants to search for a picture displayed on the first page, the user can directly swipe down with three fingers on the first page. When the terminal detects the start-up action of swiping down with three fingers, the search function is directly started.
[0095] In step S120, after the search function is turned on, a first target operation on the first page is detected.
[0096] After the search function is turned on, the operation of each application in the terminal is not affected until the first target operation is detected, or the operation of exiting the search function is detected.
[0097] The first target operation is an operation for determining the first content to be searched. The first target operation is a preset operation, and the first target operation can be one or more operations. The first page can be any page in the terminal, can be a page when the search function is turned on, or can be other pages. If the first target operation is performed on any page, then the any page is the first page.
[0098] In one embodiment, when the user is browsing page A1 in application A, the user performs an opening action, and the terminal turns on the search function; at this time, the user can browse page A1 in application A normally, or open other pages A2 in application A, or switch to other application B and browse page B1 in application B, and so on; if the user performs the first target operation on page A1 while the search function is turned on, page A1 is the first page; if the user performs the first target operation on page A2 while the search function is turned on, page A2 is the first page; if the user performs the first target operation on page B1 while the search function is turned on, page B1 is the first page.
[0099] In step S130, the first content on the first page corresponding to the first target operation is obtained.
[0100] After detecting the first target operation on the first page, the area on the first page corresponding to the first target operation can be identified, and the content of the first page in the area is determined as the first content. The first content can be any content on the first page, such as a picture or text.
[0101] In one embodiment, the first target operation is a circle selection operation. When the user performs a circle selection operation on page A1 while the search function is turned on, the content in the area circled by the circle selection operation on page A1 is the first content.
[0102] Optionally, after detecting the first target operation on the first page and identifying the area on the first page corresponding to the first target operation, the area on the first page may be adjusted, and the content in the adjusted area on the first page may be determined as the first content.
[0103] In step S140, the first content is searched to obtain search results.
[0104] The terminal may directly send the first content to the server, and the server searches the first content, obtains search results, and returns the search results to the terminal, and the terminal may directly display the search results.
[0105] In one embodiment, the terminal may directly divide the screen into two areas, display the first page in one area, and display the search results in another area. Optionally, when displaying the search results in one area, a zoom display control may be provided to the user, and in response to a user operation (e.g., clicking) on the zoom display control, the display area of the search results is zoomed to the entire screen for display.
[0106] In another embodiment, the terminal may open a search result display page and display the search results on the search result display page.
[0107] By adopting the technical solution of the embodiment of the present application, as long as the opening action is performed on any page of the terminal, the terminal can directly open the search function in response to the opening action; after the search function is turned on, the first target operation is performed on the first page, the first content on the first page can be obtained, and the first content can be directly searched to obtain the search results. In this way, there is no need to copy the first content to other applications with search functions, but the first content corresponding to the first target operation on the first page can be directly searched for the first content, which has the advantages of being fast and convenient.
[0108] Based on the above technical solution, as an embodiment, the first target operation includes a circle selection operation; the circle selection operation includes a clockwise circle selection operation and a counterclockwise circle selection operation. The obtaining of the first content on the first page corresponding to the first target operation may include: determining a circle selection box corresponding to the circle selection operation; obtaining the first content in the circle selection box on the first page. The searching of the first content to obtain search results may include: determining a search method corresponding to the circle selection operation; the search method includes a normal search and a shopping search, the clockwise circle selection operation corresponds to one of the normal search and the shopping search, and the counterclockwise circle selection operation corresponds to the other of the normal search and the shopping search; searching the first content according to the search method corresponding to the circle selection operation to obtain the search results.
[0109] The first target operation may be a circle selection operation, which refers to drawing a circle on the screen, wherein the drawn circle may not be standard, for example, it may be just a 3 / 4 circle, or an ellipse, etc. Even if the drawn circle is not standard, the terminal may automatically determine the circle selection box according to the circle selection operation. The terminal may screenshot the page area corresponding to the circle selection box in the first page, and analyze and identify the screenshot to obtain the first content in the screenshot.
[0110] Optionally, after determining the circle selection box, the user may adjust the circle selection box (for example, drag the edge of the circle selection box), and take a screenshot of the page area corresponding to the adjusted circle selection box, thereby obtaining the first content.
[0111] The circling operation has a circling direction, specifically including a clockwise direction and a counterclockwise direction, so the circling operation may include a clockwise circling operation and a counterclockwise circling operation. The circling direction of the circling operation may represent different search methods. The search methods may include a normal search and a shopping search, wherein a normal search refers to a direct search for various information that is highly relevant to the content being searched, and a shopping search refers to a search for product information that is highly relevant to the content being searched. Search methods corresponding to circling operations of different directions may be preset, wherein the clockwise circling operation and the counterclockwise circling operation each correspond to a different one of the normal search and the shopping search.
[0112] After the first content is circled, the search method corresponding to the circle operation can be determined according to the direction of the circle operation, and the first content can be searched according to the corresponding search method to obtain search results.
[0113] For example, a clockwise circle operation corresponds to a normal search, and a counterclockwise circle operation corresponds to a shopping search; after the search function is turned on, when a clockwise circle operation is performed on the text "Red Fuji Apple" on the first page, the search results obtained may be related introduction information about Red Fuji Apples, and when a counterclockwise circle operation is performed on the text "Red Fuji Apple" on the first page, the search results obtained may be product links for various Red Fuji Apples.
[0114] By adopting the technical solution of the embodiment of the present application, on the one hand, the first content can be determined according to the circle selection operation, and on the other hand, the search method corresponding to the circle selection operation can be determined according to the direction of the circle selection operation, so that not only the first content can be quickly searched, but also the first content can be quickly searched according to different search methods. In the related art, ordinary search and shopping search need to be performed in different search software. The technical solution of the embodiment of the present application does not need to open the corresponding search software, and can directly implement search in different search methods, which greatly simplifies the search process, thereby improving the user experience.
[0115] Based on the above technical solution, as an embodiment, the first target operation includes a stroke operation; the obtaining of the first content on the first page corresponding to the first target operation may include: determining the line position corresponding to the stroke operation; and determining the text content corresponding to the line position. The searching of the first content to obtain the search result may include: performing a translation search on the text content corresponding to the line position to obtain the translation result.
[0116] When the first target operation is a line drawing operation, the line position corresponding to the line drawing operation can be determined. According to the line position, a screenshot is taken of the area above the line in the first page, and text recognition is performed on the screenshot to obtain text content corresponding to the line position, and the text content is determined as the first content.
[0117] It is understandable that translating text online is actually a search operation. When searching the first content, the text content corresponding to the line position can be translated and searched to obtain the translation result of the text content.
[0118] In another embodiment, after determining the text content corresponding to the line position, a general search may be performed directly on the text content. General search refers to directly searching for information that is highly relevant to the searched content.
[0119] Optionally, a translation language option may be provided so that the text is translated into the text of the corresponding language. Optionally, a copy option may also be provided so that the user can choose to copy the text content corresponding to the line position.
[0120] By adopting the technical solution of the embodiment of the present application, when the first target operation is a stroke operation, the text content corresponding to the stroke operation can be quickly identified and translated. There is no need to copy the text content to the translation software, but the text content can be directly translated according to the text content corresponding to the first target operation on the first page.
[0121] Based on the above technical solution, as an embodiment, after obtaining the first content on the first page corresponding to the first target operation, the method may further include: displaying a search method option; and determining a search method in response to an operation on the search method option. The searching the first content to obtain the search result may include: searching the first content according to the search method to obtain the search result.
[0122] In this embodiment, the first target operation may include various operations that can determine the first content, such as a line operation or a circle operation, but the first target operation does not correspond to a search method. Figure 2 As shown, the search method in this embodiment is to display search method options to the user after determining the first content. The search method options may include but are not limited to: translation search, general search, shopping search, comparison search and / or synchronous search. Among them, comparative search refers to searching multiple contents separately, and comparing and analyzing the search results of multiple contents to obtain comparison results. Synchronous search refers to searching multiple contents at the same time and obtaining search results corresponding to each of the multiple contents.
[0123] In response to the operation on the search mode option, the selected search mode is determined. When searching the first content, the search is performed according to the selected search mode to obtain search results.
[0124] By adopting the technical solution of the embodiment of the present application, multiple search methods can be provided to the user, and the first content can be searched according to the search method selected by the user to obtain search results, thereby meeting the user's various search needs and achieving fast search.
[0125] Based on the above technical solution, as an embodiment, the search method is a comparative search; after determining that the search method is the comparative search, the method may further include: detecting a second target operation on the second page; obtaining a second content on the second page corresponding to the second target operation. The searching of the first content to obtain the search result may include: performing a comparative search on the first content and the second content to obtain a comparative result of the search result of the first content and the search result of the second content.
[0126] Because the comparative search is to search multiple contents separately, and compare and analyze the search results of the multiple contents to obtain the comparative results; therefore, when determining that the search method is the comparative search, it is also necessary to obtain other contents to be searched.
[0127] When the selected search mode option is comparative search, the search mode is determined to be comparative search, and a second target operation on the second page is detected. The second page may be the same as or different from the first page. The second target operation is an operation for determining the second content to be searched, and the second target operation may be the same as or different from the first target operation. The second target operation may include various operations that can determine the second content, such as a line operation or a circle operation.
[0128] Optionally, when the search mode option is selected as comparative search, a prompt such as "Please confirm the content that needs to be compared and searched" may be popped up to prompt the user to perform the second target operation.
[0129] After the second target operation is detected on the second page, the second content on the second page corresponding to the second target operation can be determined. The method for determining the second content can refer to the method for determining the first content mentioned above.
[0130] After determining the second content on the second page, a comparative search may be performed on the first content and the second content. Specifically, the first content may be searched to obtain search results of the first content, and the second content may be searched to obtain search results of the second content, and the search results of the first content and the search results of the second content may be compared and analyzed to obtain a comparative result, and the comparative result may be displayed.
[0131] In one embodiment, multiple contents can be searched comparatively. When the selected search method option is comparative search, a prompt "Please confirm the content to be searched comparatively" may pop up, and an option to switch to another search may be provided. If the user selects to switch to another search, there is no need to confirm the second content, and another search may be directly performed on the confirmed first content.
[0132] When the user does not choose to switch to other searches and performs the second operation, the second content is determined and options of "perform comparative search" and "add search content" are provided. In response to the option of performing comparative search being triggered, a comparative search is directly performed on the first content and the second content.
[0133] In response to the option of adding search content, it continues to detect whether there is a new second target operation, and when another second target operation is detected, another second content corresponding to the second target operation is obtained, and the options of "perform comparative search" and "add search content" are provided again until the user selects the option of performing comparative search. In response to the option of performing comparative search being triggered, a comparative search is performed on the first content and each of the determined second contents.
[0134] In the related art, usually only each content can be searched separately to obtain search results, and then the user needs to compare and analyze the search results to obtain the comparison results, which is cumbersome and unintelligent.
[0135] By adopting the technical solution of the embodiment of the present application, a comparative search can be performed on multiple contents, and the search results of each content can be automatically compared to obtain a comparative result. The operation is simple and fast, and the efficiency of the comparative search can be improved.
[0136] Based on the above technical solution, as an embodiment, the search method includes synchronous search; after determining that the search method is the synchronous search, the method may further include: detecting a third target operation on a third page; obtaining a third content on the third page corresponding to the third target operation. The searching of the first content to obtain search results may include: synchronously searching the first content and the third content to obtain search results of the first content and the third content.
[0137] Because synchronous search searches multiple contents at the same time and obtains search results corresponding to the multiple contents respectively; therefore, when the search method is determined to be synchronous search, other contents to be searched also need to be obtained.
[0138] When the selected search mode option is synchronous search, the search mode is determined to be synchronous search, and a third target operation on the third page is detected. The third page may be the same as or different from the first page. The third target operation is an operation for determining the third content to be searched, and the third target operation may be the same as or different from the first target operation. The third target operation may include various operations that can determine the third content, such as a line operation or a circle operation.
[0139] Optionally, when the search mode option is selected as synchronous search, a prompt such as "Please confirm the content that needs to be searched synchronously" may be popped up to prompt the user to perform the third target operation.
[0140] After the third target operation is detected on the third page, the third content on the third page corresponding to the third target operation can be determined. The method for determining the third content can refer to the method for determining the first content mentioned above.
[0141] After determining the third content on the third page, the first content and the third content may be searched synchronously. Specifically, the first content may be searched to obtain search results of the first content, and the third content may be searched to obtain search results of the third content, and the search results of the first content and the search results of the third content may be displayed separately.
[0142] In one embodiment, multiple contents can be searched simultaneously. When the selected search mode option is the simultaneous search, a prompt "Please confirm the content to be searched simultaneously" can be popped up, and an option to switch to another search can be provided. If the user selects to switch to another search, there is no need to determine the third content, and other searches can be directly performed on the determined first content.
[0143] When the user does not choose to switch to other searches and performs the third operation, the third content is determined and options of "perform synchronous search" and "add search content" are provided. In response to the option of performing synchronous search being triggered, the first content and the third content are directly synchronously searched.
[0144] In response to the option to add search content, the detection continues to determine whether there is a new third target operation. When another third target operation is detected, another third content corresponding to the third target operation is obtained, and the options of "perform synchronous search" and "add search content" are provided again until the user selects the option to perform synchronous search. In response to the option to perform synchronous search being triggered, a synchronous search is performed on the first content and each of the determined third contents to obtain the search results of the first content and the search results of the third content, and the search results of the first content and the search results of the third content are displayed separately.
[0145] By adopting the technical solution of the embodiment of the present application, multiple contents can be searched at the same time, realizing synchronous search of multiple contents, which is simple and fast to operate and can improve the efficiency of synchronous search.
[0146] Based on the above technical solution, as an embodiment, the first target operation includes multiple continuous circle selection operations; the obtaining of the first content on the first page corresponding to the first target operation may include: obtaining circle selection boxes corresponding to the multiple continuous circle selection operations; obtaining sub-contents in each circle selection box on the first page. The searching of the first content to obtain search results may include: performing a synchronous search or a comparative search on the multiple sub-contents to obtain the search results.
[0147] Multiple continuous circle selection operations refer to operations of drawing multiple circles in one stroke, for example, a circle selection operation of drawing two circles in the shape of an "8". The circle drawn may not be standard, for example, it may be just a 3 / 4 circle, or an ellipse, etc. Even if the circle drawn is not standard, the terminal may automatically determine multiple circle selection boxes according to the multiple continuous circle selection operations.
[0148] The terminal may take screenshots of the page areas corresponding to the multiple circled boxes in the first page respectively, and analyze and identify each screenshot respectively to obtain the sub-content in each screenshot.
[0149] The search mode corresponding to the continuous circle selection operation may be pre-configured, and the search mode corresponding to the continuous circle selection operation may include but is not limited to comparative search and synchronous search.
[0150] When searching for the first content, it is actually searching for multiple sub-contents. Search results can be obtained for multiple sub-contents according to the pre-configured search method corresponding to the continuous circle selection operation.
[0151] By adopting the technical solution of the embodiment of the present application, when comparative search or synchronous search is needed, there is no need to select comparative search or synchronous search through the search mode option. The comparative search or synchronous search can be quickly implemented directly according to multiple continuous circle operations, thereby improving the search efficiency of comparative search or synchronous search.
[0152] By adopting the technical solution of the embodiment of the present application, when a user browses to the first content on the first page and wants to search for the first content, there is no need to switch to an application with a search function, but the search for the first content can be directly performed on the first page, thereby avoiding interrupting the original browsing of the first page.
[0153] In one embodiment, a user is provided with a custom gesture and a setting of a search method corresponding to the custom gesture, so that the user can customize the search method corresponding to different gestures.
[0154] In order to better implement the search method of the present application, the present application also provides a search device based on the above search method. The meanings of the terms are the same as those in the above search method, and the specific implementation details can refer to the description in the method embodiment.
[0155] See also Figure 3 , Figure 3 : is a schematic diagram of the structure of a search device provided in an embodiment of the present application, the search device comprising:
[0156] The opening module 301 is used to open the search function in response to the opening action;
[0157] A detection module 302, configured to detect a first target operation on a first page after the search function is enabled;
[0158] An acquisition module 303 is used to acquire the first content on the first page corresponding to the first target operation;
[0159] The search module 304 is used to search the first content to obtain search results.
[0160] In one embodiment, the first target operation includes a circle operation; the circle operation includes a clockwise circle operation and a counterclockwise circle operation; the acquisition module 303 includes:
[0161] A circle selection box determining unit, used to determine a circle selection box corresponding to the circle selection operation;
[0162] A first acquisition unit, configured to acquire the first content in the circled selection box on the first page;
[0163] The search module 304 includes:
[0164] a search mode determining unit, configured to determine a search mode corresponding to the circle selection operation; the search mode includes a common search and a shopping search, the clockwise circle selection operation corresponds to one of the common search and the shopping search, and the counterclockwise circle selection operation corresponds to the other of the common search and the shopping search;
[0165] The first search unit is used to search the first content according to the search method corresponding to the circle selection operation to obtain the search result.
[0166] In one embodiment, the first target operation includes a line drawing operation; the acquisition module 303 includes:
[0167] A position determination unit, used to determine the line position corresponding to the line drawing operation;
[0168] A content unit, used to determine the text content corresponding to the line position;
[0169] The search module 304 includes:
[0170] The second search unit is used to translate and search the text content corresponding to the line position to obtain a translation result.
[0171] In one of the embodiments, after acquiring the first content on the first page corresponding to the first target operation, the apparatus further includes:
[0172] Display module, used to display search method options;
[0173] A search mode determination module, configured to determine a search mode in response to an operation on the search mode option;
[0174] The search module 304 includes:
[0175] The third search unit is used to search the first content according to the search method to obtain the search result.
[0176] In one embodiment, the search method is a comparative search; after determining that the search method is the comparative search, the device further includes:
[0177] A second target operation detection module, used to detect a second target operation on the second page;
[0178] A second content acquisition module, used to acquire second content on the second page corresponding to the second target operation;
[0179] The search module 304 includes:
[0180] The fourth search unit is used to perform a comparative search on the first content and the second content to obtain a comparative result of the search result of the first content and the search result of the second content.
[0181] In one embodiment, the search method includes synchronous search; after determining that the search method is the synchronous search, the device further includes:
[0182] A third target operation detection module, used to detect a third target operation on a third page;
[0183] A third content acquisition module, used to acquire the third content on the third page corresponding to the third target operation;
[0184] The search module 304 includes:
[0185] The fifth search unit is configured to synchronously search the first content and the third content to obtain search results of the first content and the third content.
[0186] In one embodiment, the first target operation includes a plurality of continuous circle operations; the acquisition module 303 includes:
[0187] A frame acquisition unit, used to acquire the circle selection frames corresponding to the plurality of consecutive circle selection operations;
[0188] A sub-content acquisition unit, used for acquiring the sub-content in each of the circled boxes in the first page;
[0189] The search module 304 includes:
[0190] The sixth search unit is used to perform a synchronous search or a comparative search on the plurality of sub-contents to obtain the search result.
[0191] By adopting the technical solution of the embodiment of the present application, as long as the opening action is performed on any page of the terminal, the terminal can directly open the search function in response to the opening action; after the search function is turned on, the first target operation is performed on the first page, the first content on the first page can be obtained, and the first content can be directly searched to obtain the search results. In this way, there is no need to copy the first content to other applications with search functions, but the first content corresponding to the first target operation on the first page can be directly searched for the first content, which has the advantages of being fast and convenient.
[0192] For the specific definition of the search device, please refer to the definition of the search method above, which will not be repeated here. Each module in the above-mentioned search device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0193] In addition, the present application also provides an electronic device, such as Figure 4 As shown, it shows a schematic diagram of the structure of the electronic device involved in this application, specifically:
[0194] The electronic device may include one or more processors 401 of processing cores and one or more computer-readable storage media memories 402 and other components. Those skilled in the art will appreciate that Figure 4 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0195] The processor 401 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, the processor 401 performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.
[0196] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0197] In one embodiment, the electronic device further includes a power supply 403 for supplying power to various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to manage charging, discharging, power consumption management and other functions through the power management system. The power supply 403 can also include any components such as one or more DC or AC power supplies, recharging systems, power supply device debugging circuits, power converters or inverters, and power status indicators.
[0198] In one embodiment, the electronic device may further include an input unit 404, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0199] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 401 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application programs stored in the memory 402, thereby implementing the steps in any one of the search methods provided in the embodiments of the present application.
[0200] Those skilled in the art will understand that Figure 4 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0201] In one embodiment, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method described in any embodiment of the present application is implemented.
[0202] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in any embodiment of the present application is implemented.
[0203] In some embodiments, a computer program product is also proposed, including a computer program or instructions, which implement the method described in any embodiment of the present application when executed by a processor.
[0204] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0205] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0206] To this end, the present application provides a computer-readable storage medium, on which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any search method provided in the present application.
[0207] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0208] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0209] Since the instructions stored in the computer-readable storage medium can execute the steps in any search method provided in the present application, the beneficial effects that can be achieved by any search method provided in the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0210] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0211] The above is a detailed introduction to a search method, device, electronic device and computer-readable storage medium provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A search method, characterized in that: include: In response to the start action, start the search function; After the search function is enabled, detecting a first target operation on a first page; Acquire the first content on the first page corresponding to the first target operation; as well as The first content is searched to obtain search results.
2. The method according to claim 1, characterized in that The first target operation includes a circle selection operation; the circle selection operation includes a clockwise circle selection operation and a counterclockwise circle selection operation; The acquiring the first content on the first page corresponding to the first target operation includes: Determine a circle selection box corresponding to the circle selection operation; Acquire the first content in the circled selection box on the first page; The step of searching the first content to obtain search results includes: Determine a search mode corresponding to the circle selection operation; the search mode includes a common search and a shopping search, the clockwise circle selection operation corresponds to one of the common search and the shopping search, and the counterclockwise circle selection operation corresponds to the other of the common search and the shopping search; The first content is searched according to the search method corresponding to the circle selection operation to obtain the search result.
3. The method according to claim 1, characterized in that The first target operation includes a line drawing operation; The acquiring the first content on the first page corresponding to the first target operation includes: Determine the line position corresponding to the line drawing operation; Determine the text content corresponding to the line position; The step of searching the first content to obtain search results includes: The text content corresponding to the line position is translated and searched to obtain a translation result.
4. The method according to claim 1, characterized in that After acquiring the first content on the first page corresponding to the first target operation, the method further includes: Display search method options; In response to an operation on the search mode option, determining a search mode; The step of searching the first content to obtain search results includes: The first content is searched according to the search method to obtain the search result.
5. The method according to claim 4, characterized in that The search method is a comparative search; after determining that the search method is the comparative search, the method further includes: detecting a second target operation on a second page; Acquire second content on the second page corresponding to the second target operation; The step of searching the first content to obtain search results includes: A comparative search is performed on the first content and the second content to obtain a comparative result of the search result of the first content and the search result of the second content.
6. The method according to claim 4, characterized in that The search mode includes synchronous search; after determining that the search mode is the synchronous search, the method further includes: detecting a third target operation on a third page; Acquire third content on the third page corresponding to the third target operation; The step of searching the first content to obtain search results includes: The first content and the third content are searched synchronously to obtain search results of the first content and search results of the third content.
7. The method according to claim 1, characterized in that The first target operation includes a plurality of consecutive circle operations; The acquiring the first content on the first page corresponding to the first target operation includes: Obtaining the circle selection boxes corresponding to the plurality of consecutive circle selection operations; Obtaining sub-contents in each of the circled boxes on the first page; The step of searching the first content to obtain search results includes: A synchronous search or a comparative search is performed on the plurality of sub-contents to obtain the search result.
8. A search device, characterized in that: include: An opening module, used for opening the search function in response to an opening action; A detection module, configured to detect a first target operation on a first page after the search function is enabled; An acquisition module, configured to acquire the first content on the first page corresponding to the first target operation; The search module is used to search the first content to obtain search results.
9. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the search method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the search method according to any one of claims 1 to 7 are implemented.