Search processing method, device, electronic device and storage medium

By determining the search sentence type and displaying the preset controls, the target image is obtained for recognition, and combining the search sentence and image recognition solves the problem of inaccurate search results in the existing technology, improves search efficiency and accuracy, and meets user needs.

CN113111248BActive Publication Date: 2024-10-25BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110280742.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-16
Publication Date
2024-10-25
Estimated Expiration
2041-03-16

AI Technical Summary

Technical Problem

It is difficult for the existing technology to accurately meet user needs in information search, especially when the search sentence type is a preset type, and simple text search cannot provide satisfactory results.

Method used

By obtaining the type of the search statement and displaying the preset control under the preset type, the target image to be recognized is obtained, and the search statement and image are combined for recognition, and more accurate search results are returned.

Benefits of technology

It improves the efficiency and accuracy of search processing, can better meet users' search needs, and provides a better user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113111248B_ABST
    Figure CN113111248B_ABST
Patent Text Reader

Abstract

The present disclosure discloses a search processing method, device, electronic device and storage medium, and particularly relates to artificial intelligence technology fields such as natural language processing, computer vision, and intelligent search. The specific implementation scheme is as follows: according to the obtained search statement, a first search result is obtained; the type of the search statement is determined; when the search statement is of a preset type, a preset control is displayed in the first search result display interface; a target image to be identified is obtained; based on the search statement and the target image, a second search result display interface is obtained and returned. In this way, the system search function can be improved, and the search results can be determined more accurately, so that the user's search needs can be met as much as possible, the search processing efficiency and accuracy are improved, and the user can also be given a better sense of use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, specifically to the field of artificial intelligence technology such as natural language processing, computer vision, intelligent search, and more particularly to a search processing method, device, electronic device, and storage medium. Background Art

[0002] With the development of computer technology, people are accustomed to obtaining information through mobile Internet. When searching for information, sometimes a single text search cannot get the desired search results. Therefore, how to improve the system search function to better meet user needs has become a problem that needs to be solved urgently. Summary of the invention

[0003] The present disclosure provides a search processing method, device, electronic device and storage medium.

[0004] In one aspect, the present disclosure provides a search processing method, comprising:

[0005] According to the obtained search statement, obtain the first search result;

[0006] determining a type of the search statement;

[0007] In the case where the search statement is of a preset type, displaying a preset control in the first search result display interface;

[0008] Acquire a target image to be identified;

[0009] Based on the search statement and the target image, a second search result display interface is obtained and returned.

[0010] Another aspect of the present disclosure provides a search processing device, including:

[0011] A first acquisition module, used to acquire a first search result according to the acquired search statement;

[0012] A determination module, used to determine the type of the search statement;

[0013] A display module, configured to display a preset control in the first search result display interface when the search statement is of a preset type;

[0014] A second acquisition module is used to acquire a target image to be identified;

[0015] The third acquisition module is used to acquire and return a second search result display interface based on the search statement and the target image.

[0016] Another aspect of the present disclosure provides an electronic device, including:

[0017] at least one processor; and

[0018] a memory communicatively connected to the at least one processor; wherein,

[0019] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the search processing method described in the above-mentioned embodiment.

[0020] Another aspect of the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions, on which a computer program is stored, wherein the computer instructions are used to enable the computer to execute the search processing method described in the above-mentioned embodiment.

[0021] Another aspect of the present disclosure provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the search processing method described in the above-mentioned first embodiment is implemented.

[0022] The search processing method, device, electronic device and storage medium provided by the present disclosure can obtain the first search result according to the obtained search sentence, and then determine the type of the search sentence. When the search sentence is of a preset type, a preset control can be displayed in the first search result display interface, and then the target image to be identified can be obtained, so that the second search result display interface can be obtained and returned based on the search sentence and the target image. In this way, the system search function can be improved, the search results can be determined more accurately, so that the user's search needs can be met as much as possible, the search processing efficiency and accuracy can be improved, and the user can also be given a better sense of use.

[0023] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0025] Figure 1 A flowchart of a search processing method provided by an embodiment of the present disclosure;

[0026] Figure 2 A flowchart of a search processing method provided by another embodiment of the present disclosure;

[0027] Figure 3 A flowchart of a search processing method provided by another embodiment of the present disclosure;

[0028] Figure 4 A schematic diagram of the structure of a search processing device provided by an embodiment of the present disclosure;

[0029] Figure 5 The present invention is a block diagram of an electronic device for implementing the search processing method according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0030] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0031] Data processing is the collection, storage, retrieval, processing, transformation and transmission of data. There are different ways to process data according to the structure and working mode of the processing equipment and the time and space distribution of data. Different processing methods require different hardware and software support. Each processing method has its own characteristics, and the appropriate processing method should be selected according to the actual environment of the application problem.

[0032] Artificial intelligence is a discipline that studies how to use computers to simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.). It includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning, deep learning, big data processing technology, knowledge graph technology, and other major directions.

[0033] Natural language processing is the use of computers to process, understand and apply human languages ​​(such as Chinese, English, etc.). It is an interdisciplinary subject between computer science and linguistics, and is often referred to as computational linguistics. Since natural language is the fundamental mark that distinguishes humans from other animals, without language, human thinking would be out of the question. Therefore, natural language processing embodies the highest task and realm of artificial intelligence. In other words, only when computers have the ability to process natural language can machines achieve true intelligence.

[0034] Computer vision is an interdisciplinary scientific field that studies how to get computers to gain a high level of understanding from digital images or videos. From an engineering perspective, it seeks to automate tasks that the human visual system can accomplish. Computer vision tasks include methods for acquiring, processing, analyzing, and understanding digital images, as well as methods for extracting high-dimensional data from the real world in order to produce digital or symbolic information, for example in the form of decisions.

[0035] Intelligent search is a new generation of search engine that combines artificial intelligence technology. In addition to providing traditional functions such as fast retrieval and relevance sorting, it can also provide functions such as user role registration, automatic identification of user interests, semantic understanding of content, intelligent information filtering and push, etc. The content retrieved by intelligent search should be knowledge rather than information. Its intelligent analysis of query conditions mainly includes the following two aspects: extracting effective components in query conditions, including vocabulary and logical relationships; establishing an e-commerce knowledge base to obtain synonyms, antonyms and related words of keywords.

[0036] The following describes the search processing method, device, electronic device, and storage medium according to the embodiments of the present disclosure with reference to the accompanying drawings.

[0037] The search processing method of the embodiment of the present disclosure may be executed by the search processing device provided by the embodiment of the present disclosure, and the device may be configured in an electronic device. It is understandable that the electronic device may be configured on the server side.

[0038] Figure 1 A flowchart of a search processing method provided in an embodiment of the present disclosure.

[0039] like Figure 1 As shown, the search processing method may include the following steps:

[0040] Step 101, obtaining a first search result according to the obtained search statement.

[0041] The search statement may be text information or voice information, which may be processed to obtain corresponding text information, and the present disclosure does not limit this.

[0042] In addition, the search statement can be any statement, such as: "Today's weather", "What type of dog is a Husky", "What kind of flower is this", "Is there a difference between these two flowers", etc., and the present disclosure does not limit this.

[0043] It is understandable that, for different search statements, the corresponding first search results may be the same or different.

[0044] For example, the search statement obtained by the server may be "today's weather", and then it may be determined that the first search result is: sunny, 3-12 degrees.

[0045] Alternatively, the search statement obtained by the server may be "What kind of flower is this", and the first search result may be: flower, often referred to as flower, belonging to the plant kingdom, and flower picture 1, flower picture 2, and the like.

[0046] It should be noted that the above examples are merely illustrative and cannot be used as limitations on the search statements, first search results, etc. in the embodiments of the present disclosure.

[0047] Step 102, determining the type of the search statement.

[0048] The type of the search statement may be a preset type, a non-preset type, etc.

[0049] It is understandable that the preset type can be any type pre-specified as needed. For example, for a search sentence of a preset type, it can be any sentence containing at least one "pronoun", such as "what is this", "what flower is this", "are those two dogs the same breed", etc., and the present disclosure does not limit this.

[0050] In addition, the non-preset type may be any type other than the preset type, and the search statement of the non-preset type may be any search statement other than the preset type, which is not limited in the present disclosure.

[0051] It is understandable that a preset type of search statement may contain specific pronouns, or the search statement may have unclear references, or no specific reference content, etc., and other auxiliary information is needed to determine the specific reference content, etc. This disclosure does not limit this.

[0052] In addition, there are multiple ways to determine the type of the search statement.

[0053] For example, the search statement may be matched with each preset template statement, and the type of the search statement may be determined according to the matching degree between the search statement and each preset template statement.

[0054] The preset template sentence may be any template sentence set in advance, such as: "What is this", "Who is A", "What is X", "Are these two XX the same YY", where A may be any pronoun, such as this, that, she, he, etc., and X, XX and YY may be any noun, such as animals, plants, objects, etc., which are not limited in the present disclosure.

[0055] In addition, when determining the matching degree between the search sentence and each preset template sentence, the matching degree can be determined according to the component structure of the sentence, or the matching degree can be determined by using methods such as semantic similarity, which is not limited in this disclosure.

[0056] For example, a threshold may be set in advance, and after matching the search statement with various preset template statements, the one with the greatest matching degree is selected, and the greatest matching degree is compared with the threshold. When the matching degree is greater than the threshold, the search statement may be determined to be of the preset type.

[0057] For example, the search sentence is "what kind of dog is this", and it is matched with each preset template sentence. The search sentence has the highest matching degree with the template sentence "what is X", and is greater than the set threshold, so it can be determined that the search sentence is of the preset type.

[0058] It should be noted that the above examples are merely illustrative and cannot be used as limitations on the preset template statements and the like in the embodiments of the present disclosure.

[0059] Alternatively, the type of the search statement may be determined based on keywords contained in the search statement and / or corresponding search intent.

[0060] Among them, the keywords can be any words that are important for semantic understanding, such as nouns, pronouns, verbs, etc., and the present disclosure does not limit this.

[0061] For example, the search statement is "What brand is this?", which contains the keywords "this", "is", and "brand", and the pronoun "this" has an unclear reference, so it can be determined that the search statement is a preset type.

[0062] Alternatively, the search statement is "how much is this", and its corresponding search intent is: asking about the price. This search statement does not refer to a specific object, so the type of the search statement can be determined to be a preset type.

[0063] Alternatively, the search statement is "What kind of dog is this", which contains the keywords "this", "is", and "dog", and the corresponding search intent is: asking about the breed of the dog, so that the search statement can be determined to be a preset type based on the keywords and search intent.

[0064] It should be noted that the above examples are merely illustrative and cannot be used as limitations on the search statements, keywords contained therein, search intents, types of search statements, etc. in the embodiments of the present disclosure.

[0065] Step 103: When the search statement is of a preset type, a preset control is displayed in the first search result display interface.

[0066] Among them, sentences of preset types have unclear references and ambiguous contents, so text search alone cannot give correct search results. Other search methods such as image recognition are needed to accurately determine the correct search results.

[0067] In addition, the preset controls may be any controls that are set in advance, such as an image upload control, a confirmation control, a cancel control, etc., and the present disclosure does not limit this.

[0068] It is understandable that the first search result display interface can display the first search result and can also display other content, such as an image upload control, a confirmation control, a cancel control, etc., and the present disclosure does not limit this.

[0069] For example, the search statement is "What kind of flower is this?", and the first search result is: flower, often called flowers, belonging to the plant kingdom, and flower picture 1, flower picture 2, etc. It has been determined that the search statement is a preset type, and the first search result does not clearly solve the user's problem. At this time, a preset image upload control can be displayed in the first search result display interface, so that the type of flower can be further determined with the help of image information, thereby solving the user's problem.

[0070] It should be noted that the above examples are merely illustrative and cannot be used as limitations on search statements, types, etc. in the embodiments of the present disclosure.

[0071] Step 104: Acquire a target image to be identified.

[0072] The user can upload the target image to be identified by triggering a preset control, and then the server can obtain the target image to be identified.

[0073] Alternatively, after triggering the preset control, the user can also use related controls such as "take photo and upload" to take a picture first and then upload the target image to be identified, after which the server can obtain the target image to be identified, and so on.

[0074] It should be noted that the above examples are merely illustrative and cannot be used as limitations on uploading target images to be identified in the embodiments of the present disclosure.

[0075] Step 105: Based on the search sentence and the target image, obtain and return a second search result display interface.

[0076] Among them, the second search result display interface can display the second search result, and can also display other content, such as displaying controls such as "OK" and "Return", which is not limited in the present disclosure.

[0077] In addition, the search sentence and the target image may be combined to perform search identification, thereby determining a second search result.

[0078] For example, the search statement obtained is "How much is this dog?", and it has been determined that the search statement belongs to a preset type. The obtained target image can then be identified to determine the relevant information of the "dog" in the target image. Then, the relevant information of the dog can be searched and found, such as using various databases for search, or using search engines for search, etc., to determine the type of dog, such as a golden retriever. Then, "How much is this golden retriever?" can be searched, and the search result is the second search result. The second search result display interface can then be returned to the client, and the user can obtain the corresponding second search result.

[0079] Alternatively, the search statement is "find flowers similar to this flower", and it has been determined that the search statement belongs to a preset type. After acquiring the target image, the image can be segmented first to determine the image segment corresponding to the "flower" in the target image. Then, only the image segment corresponding to the "flower" is further identified. For example, according to the features of the petals, calyx, etc. in the image segment, a search can be performed in the image knowledge base related to the flower, so that other flowers similar to it can be determined, which are the second search results. Then, the second search result display interface can be returned to the client.

[0080] It should be noted that the above examples are merely illustrative and cannot be used as limitations on obtaining and returning search results, etc. in the embodiments of the present disclosure.

[0081] In the disclosed embodiment, the first search result can be obtained according to the obtained search sentence, and then the type of the search sentence can be determined. If the search sentence is of a preset type, a preset control can be displayed in the first search result display interface, and then the target image to be identified can be obtained, so that the second search result display interface can be obtained and returned based on the search sentence and the target image. In this way, the system search function can be improved, the search results can be determined more accurately, so that the user's search needs can be met as much as possible, the search processing efficiency and accuracy can be improved, and the user can also be given a better sense of use.

[0082] In the above embodiment, when the search sentence is of a preset type, the target image to be identified is further obtained, and then an accurate second search result can be determined based on the search sentence and the target image. It is understandable that when obtaining the second search result, the search sentence can be parsed first, and then the target image can be identified and processed accordingly based on whether the search sentence contains keywords, so as to determine a more accurate second search result. Figure 2 The above process is further explained.

[0083] Figure 2 A flowchart of a search processing method provided by an embodiment of the present disclosure is shown in FIG. Figure 2 As shown, the search processing method may include the following steps:

[0084] Step 201: Obtain a first search result according to the obtained search statement.

[0085] Step 202, determine the type of the search statement.

[0086] Step 203: When the search statement is of a preset type, a preset control is displayed on the search interface.

[0087] Step 204: Acquire a target image to be identified.

[0088] Step 205: parse the search statement to determine the keywords contained in the search statement.

[0089] Among them, the keywords can be any words that are important for semantic understanding, such as nouns, pronouns, adjectives, verbs, etc., and the present disclosure does not limit this.

[0090] In addition, there are multiple ways to determine the keywords included in the search sentence.

[0091] For example, after parsing the search sentence, the part of speech of each word therein may be determined first, and then the nouns, pronouns, verbs, etc. therein may be determined as keywords.

[0092] For example, the search sentence is "What kind of dog is this?", "this" is a pronoun, "is" is a verb, and "dog" is a noun, so "this," "is," and "dog" can be determined as keywords.

[0093] Alternatively, after parsing the search sentence, keywords may be determined based on sentence components. For example, words such as "subject" or "object" that have clear referential meanings may be determined as keywords.

[0094] For example, the search sentence is "What kind of flower is this?", "this" is the subject, "is" is the predicate, and "flower" is a word with a clear referential meaning in the sentence, so "this" and "flower" can be determined as keywords.

[0095] It should be noted that the above examples are merely illustrative and cannot be used as limitations on the keywords and determined keywords in the embodiments of the present disclosure.

[0096] Step 206: When the search statement contains at least one keyword of a specified type, segment the target image to obtain image segments containing objects matching the at least one keyword of the specified type.

[0097] Among them, the keywords of the specified type can be nouns, etc., which have specific meanings, such as representing a type of specific object, etc., and the present disclosure does not limit this.

[0098] In addition, the search statement may include one keyword of a specified type, or may include multiple keywords of a specified type, which is not limited in the present disclosure.

[0099] For example, if the search sentence is "What breeds are these dogs and cats?", after parsing it, the keywords are determined to be "this," "dog," "cat," "is," and "breed." Keywords of a specified type are nouns that can represent a specific type of object. "Dog" and "cat" are both keywords of a specified type. Then, the target image is segmented, so that the image segment where "dog" is located and the image segment where "cat" is located in the target image can be determined.

[0100] It should be noted that the above examples are merely illustrative and cannot be used as limitations on the search statements, keywords, and image segments where keyword-matched objects are located in the embodiments of the present disclosure.

[0101] Step 207: Based on the image segment and the search statement, obtain and return a second search result.

[0102] For example, the search statement is "what kind of dog is this", the specified type of keyword is a noun, and the specified type of keyword "dog" is included. After segmenting the target image, the image segment where the "dog" is located can be determined. Then, according to the search statement, the image segment where the "dog" is located can be further searched and identified to determine the breed of the dog, and then the breed of the dog can be returned to the user as the second search result.

[0103] It should be noted that the above examples are merely illustrative and cannot be used as limitations on the search statements, keywords, and image segments where keyword-matched objects are located in the embodiments of the present disclosure.

[0104] Step 208: When the search statement does not contain any keyword of a specified type, the target image is identified to determine each object contained in the target image, the image segment where each object is located, and the position information of each object in the image.

[0105] The search statement may be any statement, and after parsing the search statement, it may not contain keywords of a specified type. In order to ensure the accuracy of the search results, the target image may be recognized first.

[0106] For example, the search statement is "What breeds are these?", and the keywords of the specified type are nouns that can represent a specific type of object, such as cats, dogs, cars, etc., and the search statement does not contain keywords of this specified type. At this time, the target image is recognized, so that the various objects contained in the target image can be determined: "dog", "cat", and the image segments of "dog" and "cat" in the target image and their respective position information in the image can also be determined.

[0107] It should be noted that the above examples are merely illustrative and cannot be used as limitations on search statements, target images, etc. in the implementation of the present disclosure.

[0108] Step 209 , obtaining each candidate search result based on the image segment where each object is located and the search statement.

[0109] The image segments where each object is located may be further identified. For example, information on the image segments where each object is located may be searched and identified according to a search statement.

[0110] Alternatively, according to each search statement, the image segment where each object is located may be selected to be searched and matched with other image knowledge bases, so as to determine the candidate search results corresponding to each image segment.

[0111] For example, the search statement is "What species are these?", which does not contain keywords of a specified type. Then, the target image is identified to determine the various objects in the target image: "dog," "cat," "book," and their respective image segments in the target image and their respective position information in the image. According to the search statement "What species are these?", animals, plants, etc. can be divided by species, but books do not have species distinctions. Therefore, the image segments where "dog" and "cat" are located can be further identified and processed, and the obtained results can be determined as candidate search results.

[0112] It should be noted that the above examples are merely illustrative and cannot be used as limitations on how to obtain search results in the implementation of the present disclosure.

[0113] Step 210 , according to the size of the image segment where each object is located and the position information of each object in the image, the candidate search results are merged to generate the search results to be returned.

[0114] The sizes of the image segments where the objects are located may be the same or different, so the candidate search results may be merged according to the sizes of the image segments corresponding to the objects.

[0115] For example, the size of the image segment where object A is located is 50*50, and the size of the image segment where object B is located is 10*5. It can be seen that the size of the image segment where object A is located is larger, and object A is the main object to be searched by the user. The size of the image segment where object B is located is smaller, and object B is a secondary object or not an object to be searched. Objects A and B correspond to 5 candidate search results respectively, so when the candidate search results are merged, 5 candidate search results corresponding to object A and 2 candidate search results corresponding to object B can be displayed, which are the second search results to be returned. The second search result has high accuracy, correctness, and comprehensiveness, which can well meet the user's search needs and solve the search problem.

[0116] It should be noted that the sizes of the above-mentioned objects A, B and their respective image segments and the number of candidate search results are only schematic illustrations and cannot be used as limitations on the sizes of the various objects and their respective image segments and the candidate search results in the embodiments of the present disclosure.

[0117] Alternatively, the candidate search results may be fused according to the position information of each object in the target image. For example, if object A is at the center of the target image, there are 6 corresponding candidate search results, and object B is at the lower left of the target image, there are 6 corresponding candidate search results. After the candidate search results are fused, the second search result obtained may be: XX is located at the center of the image, and YY is located at the lower left of the image.

[0118] It should be noted that the above-mentioned objects A, B and their respective position information in the target image and the number of candidate search results are only schematic illustrations and cannot be used as limitations on the various objects and their respective position information in the target image and the candidate search results in the embodiments of the present disclosure.

[0119] Alternatively, the candidate search results may be fused according to the size of the image segment where each object is located and the position information of each object in the target image.

[0120] For example, object A is located on the left side of the target image, and the size of the corresponding image segment is 43*35, corresponding to 7 candidate search results, and object B is located on the right side of the target image, and the size of the image segment is 3*3, corresponding to 3 candidate search results. Then, the candidate search results corresponding to objects 1 and 3 are merged, and we can get: XX is located on the left side of the image, and YY is located on the right side of the image.

[0121] It should be noted that the size, position information and number of candidate search results of the above-mentioned objects A, B and their respective image fragments are only schematic illustrations and cannot be used as a limitation on the size, position information and number of candidate search results of each object and their respective image fragments in the embodiments of the present disclosure.

[0122] In the disclosed embodiment, the first search result can be obtained according to the obtained search statement, and then the type of the search statement is determined. When the search statement is of a preset type, the preset control is displayed in the first search result interface, and then the target image to be identified is obtained. Then the search statement is parsed. When the search statement contains a keyword of a specified type, the target image can be segmented to obtain the image segment where the object matching the keyword of the specified type is located, and then the second search result is obtained and returned based on the image segment and the search statement. Alternatively, when the search statement does not contain a keyword of a specified type, the target image can be identified first to determine the various objects contained in the target image, the image segment where each object is located, and the position information of each object in the image, and then the second search result to be returned is generated according to the obtained candidate search results. Therefore, when the search statement is of a preset type, the search statement can be parsed first, and the search result can be generated in a corresponding manner according to whether the search statement contains a keyword of a specified type, so that the search function of the system can be more perfect, the search information obtained can be more accurate, the search needs of the user can be met as much as possible, the information search processing efficiency and accuracy are improved, and the user can also be given a better sense of use.

[0123] In the above embodiment, when the search statement is of a preset type, the search statement is parsed, and the search results are generated in a corresponding manner according to whether the search statement contains a keyword of a specified type. In a possible implementation, when obtaining the search results, the search intent corresponding to the search statement can be determined first, and then the target image is processed according to the search intent to generate the search results. Figure 3 The above process is described in detail.

[0124] Figure 3 A flowchart of a search processing method provided in an embodiment of the present disclosure.

[0125] like Figure 3 As shown, the search processing method may include the following steps:

[0126] Step 301: Obtain a first search result according to the obtained search statement.

[0127] Step 302, determine the type of the search statement.

[0128] Step 303: Add a preset control to a designated area of ​​the first search result display interface.

[0129] The designated area may be any pre-set area in the first search result display interface.

[0130] In addition, the server may add the first search result in the first search result display interface, and may also add a preset control in a designated area therein, etc., which is not limited in the present disclosure.

[0131] It is understandable that the preset controls may be any controls set in advance, such as an image upload control, a confirmation control, a cancel control, etc., and the present disclosure does not limit this.

[0132] For example, the first search result is currently displayed at the top of the first search result display interface, and the designated area may be the center of the first search display interface, so that a preset control may be added to the center of the first search result display interface.

[0133] It should be noted that the above examples are merely illustrative and cannot be used as a limitation on adding preset controls or the like in a designated area of ​​the first search result display interface in the embodiments of the present disclosure.

[0134] Step 304: Return the first search result display interface including the preset controls to the client, so that the client displays the first search result display interface.

[0135] The first search result display interface may include: the first search result and preset controls, and may also include other content, which is not limited in the present disclosure. The server may return the first search result display interface to the client, so that the first search result and preset controls may be displayed on the client.

[0136] It is understandable that the user can obtain the first search result on the first search result display interface of the client, and can also trigger the preset control and select "Upload Image" to upload the target image to be identified, or can also select "Take Photo and Upload" after triggering the preset control to upload the target image to be identified.

[0137] It should be noted that the above-mentioned uploading of pictures, uploading of photos, etc. are only exemplary descriptions and cannot be used as a limitation on uploading images, etc. in the embodiments of the present disclosure.

[0138] Step 305: Acquire the target image to be identified.

[0139] Step 306: Determine the keywords contained in the search statement and the corresponding search intent.

[0140] There are many ways to determine the keywords included in the search statement. For example, a pre-set template can be used to determine the keywords included in the search statement, or entity relationship extraction, magnetic labeling, etc. can be used to determine the keywords included in the search statement, and this disclosure does not limit this.

[0141] In addition, relevant technologies may also be used to determine the search intent corresponding to the search sentence. For example, the sentence may be parsed first, and then a named entity recognizer may be used to determine the search intent corresponding to the search sentence, etc., which is not limited in the present disclosure.

[0142] It should be noted that the above examples are merely illustrative and cannot be used as limitations on the manner in which the search statements are parsed in the embodiments of the present disclosure.

[0143] Step 307: When the search statement does not contain any keyword of a specified type, determine the target type of the object to be acquired according to the search intent.

[0144] For example, the search statement is "how much is this?". After parsing it, it can be determined that the search statement does not contain keywords of the specified type, and the search intent of the search statement is to ask about the price. Based on the search intent, it can be determined that the target type of the object to be obtained can be any object that can be measured by money, such as items, animals, plants, etc.

[0145] It should be noted that the above examples are merely illustrative and cannot be used as limitations on the search statements, target types of objects to be acquired, etc. in the embodiments of the present disclosure.

[0146] Step 308: segment the target image to obtain image segments where objects matching the target type are located.

[0147] The target image may be segmented first, and then the image segments where the objects matching the target type of the object to be acquired are located may be determined in the image segments obtained after segmentation, thereby reducing the amount of data to be processed and improving efficiency.

[0148] For example, the search sentence is "how much is this", and its search intent is: asking for the price. The target type of the object to be obtained can be objects, animals, plants, etc. The target image includes vehicles and pedestrians. Vehicles can be labeled with prices, but pedestrians cannot be measured by prices. Therefore, it can be determined that the object matching the target type is a vehicle, and then the image segment where the vehicle is located can be obtained.

[0149] It should be noted that the above examples are merely illustrative and cannot be used as limitations on the search statements, target types of objects to be acquired, etc. in the embodiments of the present disclosure.

[0150] Step 309: Based on the image segment and the search statement, obtain and return a second search result.

[0151] The acquired image fragments may be further processed to determine a more accurate second search result.

[0152] For example, if the search statement is "how much is this", the image segment obtained is the image segment where the vehicle is located. The image segment can then be further processed, such as searching, finding, and identifying according to the vehicle's logo, specifications, etc., so as to determine the price of the vehicle, and then the price can be returned to the user as the second search result.

[0153] It should be noted that the above examples are merely illustrative and cannot be used as limitations on the search statements, target types of objects to be acquired, etc. in the embodiments of the present disclosure.

[0154] It is understandable that after the intent of the search statement is determined, features of the target image may be extracted according to the search intent, thereby determining an accurate second search result.

[0155] Specifically, the search statement may be firstly identified for intent to determine the search intent, and then feature extraction may be performed on the target image based on the search intent to determine feature information of the target image, and then based on the feature information and the search intent, a second search result may be obtained and returned.

[0156] Among them, after the search statement is recognized and the search intent is determined, when the target image is extracted for features, the feature information that is related to the search intent and has a greater impact on the search intent can be purposefully extracted first, without extracting information that has a smaller impact on the search intent and is irrelevant to the search intent, thereby reducing the processing of redundant data and improving efficiency.

[0157] For example, the search statement is "how much is this", and its search intent is to ask about the price. Then, features of the target image can be extracted based on the search intent.

[0158] For example, the target image includes a vehicle and a dog, and the search intention is to inquire about the price. When extracting features of the vehicle in the target image, features related to the vehicle price can be purposefully extracted, such as the vehicle brand logo, vehicle model logo, vehicle dimensions, etc. When extracting features of the dog in the target image, features related to the dog price can be purposefully extracted, such as the dog's body shape, hair, and other features. Afterwards, the extracted feature information of the vehicle and the feature information of the dog can be searched and processed separately, so as to determine the price of the vehicle, the price and type of the dog, and then the price of the vehicle, the price and type of the dog, etc. can be returned to the user as the second search result.

[0159] It should be noted that the above examples are merely illustrative and cannot be used as limitations on the search statements, search intents, search results, etc. in the embodiments of the present disclosure.

[0160] In the disclosed embodiment, the first search result can be obtained according to the obtained search statement, and then the type of the search statement is determined. When the search statement is of a preset type, a preset control is displayed in the first search result display interface, and then the target image to be identified can be obtained. The search statement is then parsed, so that the target type of the object to be obtained can be determined according to the search intent corresponding to the search statement, and then the target image can be segmented to obtain the image segment where the object matching the target type is located, so that the second search result can be obtained and returned based on the image segment and the search statement. Therefore, when the search statement is of a preset type, the corresponding image segment can be determined according to the search intent corresponding to the search statement, so as to determine a more accurate second search result, so that the search function of the system is more complete and the search information obtained is more accurate.

[0161] In order to implement the above embodiment, the present disclosure also proposes a search processing device. Figure 4 A schematic diagram of the structure of a search processing device provided in an embodiment of the present disclosure.

[0162] like Figure 4 As shown, the search processing device 400 includes: a first acquisition module 410, a determination module 420, a display module 430, a second acquisition module 440, and a third acquisition module 450.

[0163] The first acquisition module 410 is used to acquire a first search result according to the acquired search statement.

[0164] The determination module 420 is used to determine the type of the search statement.

[0165] The display module 430 is configured to display a preset control in the first search result display interface when the search statement is of a preset type.

[0166] The second acquisition module 440 is used to acquire the target image to be identified.

[0167] The third acquisition module 450 is used to acquire and return a second search result display interface based on the search sentence and the target image.

[0168] In one possible implementation, the third acquisition module 450 is specifically used to parse the search statement to determine the keywords contained in the search statement; when the search statement contains at least one keyword of a specified type, segment the target image to obtain an image segment containing an object matching the at least one keyword of the specified type; based on the image segment and the search statement, obtain and return a second search result.

[0169] In a possible implementation, the third acquisition module 450 is further specifically used to identify the target image when the search statement does not contain any specified type of keywords, so as to determine the objects contained in the target image, the image segment where each object is located, and the position information of each object in the image; based on the image segment where each object is located and the search statement, obtain each candidate search result; according to the size of the image segment where each object is located and the position information of each object in the image, merge the candidate search results to generate a second search result to be returned.

[0170] In a possible implementation, the third acquisition module 450 is further specifically used to determine the keywords contained in the search statement and the corresponding search intent; when the search statement does not contain any keywords of any specified type, determine the target type of the object to be acquired according to the search intent; segment the target image to obtain an image segment containing an object matching the target type; and based on the image segment and the search statement, obtain and return a second search result.

[0171] In a possible implementation, the third acquisition module 450 is further specifically used to perform intent recognition on the search statement to determine the search intent; based on the search intent, perform feature extraction on the target image to determine feature information of the target image; based on the feature information and the search intent, obtain and return a second search result.

[0172] In a possible implementation, the display module 430 is specifically configured to add the preset control in a designated area of ​​the first search result display interface; and return the first search result display interface including the preset control to the client, so that the client displays the first search result display interface.

[0173] In a possible implementation, the determination module 420 is specifically configured to match the search statement with each preset template statement, and determine the type of the search statement according to the matching degree between the search statement and each preset template statement.

[0174] In a possible implementation, the determination module 420 is further specifically configured to determine the type of the search statement according to keywords and / or corresponding search intents contained in the search statement.

[0175] The functions and specific implementation principles of the above modules in the embodiments of the present disclosure can be referred to the above method embodiments, and will not be repeated here.

[0176] The search processing device of the disclosed embodiment can obtain the first search result according to the obtained search sentence, and then determine the type of the search sentence. When the search sentence is of a preset type, a preset control can be displayed in the first search result display interface, and then the target image to be identified can be obtained, so that the second search result display interface can be obtained and returned based on the search sentence and the target image. In this way, the system search function can be improved, the search results can be determined more accurately, so that the user's search needs can be met as much as possible, the search processing efficiency and accuracy can be improved, and the user can also be given a better sense of use.

[0177] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0178] Figure 5 A schematic block diagram of an example electronic device 500 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0179] like Figure 5 As shown, the device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0180] A number of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0181] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 501 performs the various methods and processes described above, such as the search processing method. For example, in some embodiments, the search processing method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the search processing method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the search processing method in any other appropriate manner (e.g., by means of firmware).

[0182] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0183] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0184] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0185] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0186] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.

[0187] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0188] The technical solution disclosed in the present invention can obtain the first search result according to the obtained search sentence, and then determine the type of the search sentence. When the search sentence is of a preset type, a preset control can be displayed in the first search result display interface, and then the target image to be identified can be obtained, so that the second search result display interface can be obtained and returned based on the search sentence and the target image. In this way, the system search function can be improved, the search results can be determined more accurately, so that the user's search needs can be met as much as possible, the search processing efficiency and accuracy can be improved, and the user can also be given a better sense of use.

[0189] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0190] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A search processing method, comprising: According to the obtained search statement, obtain the first search result; determining a type of the search statement; In the case where the search statement is of a preset type, displaying a preset control in the first search result display interface; Acquire a target image to be identified, where the target image is an image to be identified uploaded by the user after the control is triggered; Based on the search statement and the target image, obtaining and returning a second search result display interface; Wherein, acquiring and returning a second search result based on the search statement and the target image includes: Parsing the search statement to determine keywords included in the search statement; In a case where the search statement contains at least one keyword of a specified type, segmenting the target image to obtain image segments where objects matching the at least one keyword of the specified type are located, wherein the keyword of the specified type is a noun representing a specific type of object; Based on the image segment and the search statement, obtaining and returning a second search result; After determining the keywords included in the search statement, the method further includes: In the case that the search statement does not contain any keyword of a specified type, identifying the target image to determine each object contained in the target image, the image segment where each object is located, and the position information of each object in the image; Based on the image segment where each object is located and the search statement, obtaining each candidate search result; According to the size of the image segment where each of the objects is located and the position information of each of the objects in the image, the candidate search results are merged to generate a second search result to be returned; Wherein, acquiring and returning a second search result based on the search statement and the target image includes: Determine the keywords contained in the search statement and the corresponding search intent; In the case that the search statement does not contain any keyword of a specified type, determining the target type of the object to be acquired according to the search intent; Segmenting the target image to obtain image segments where objects matching the target type are located; Based on the image segment and the search statement, a second search result is obtained and returned.

2. The method of claim 1, wherein: The acquiring and returning a second search result based on the search statement and the target image includes: Performing intent recognition on the search sentence to determine the search intent; According to the search intent, feature extraction is performed on the target image to determine feature information of the target image; Based on the characteristic information and the search intent, a second search result is obtained and returned.

3. The method according to any one of claims 1 to 2, wherein: The displaying of a preset control in the first search result display interface includes: Adding the preset control in a designated area of ​​the first search result display interface; The first search result display interface including the preset control is returned to the client, so that the client displays the first search result display interface.

4. The method of claim 1, wherein: Determining the type of the search statement includes: The search statement is matched with each preset template statement, and the type of the search statement is determined according to the matching degree between the search statement and each preset template statement.

5. The method according to any one of claims 1 to 2, wherein: Determining the type of the search statement includes: The type of the search statement is determined according to the keywords and / or the corresponding search intent contained in the search statement.

6. A search processing device, comprising: A first acquisition module, used to acquire a first search result according to the acquired search statement; A determination module, used to determine the type of the search statement; A display module, configured to display a preset control in the first search result display interface when the search statement is of a preset type; A second acquisition module is used to acquire a target image to be identified, where the target image is an image to be identified uploaded by the user after the control is triggered; A third acquisition module, configured to acquire and return a second search result display interface based on the search statement and the target image; Wherein, the third acquisition module is specifically used for: Parsing the search statement to determine keywords included in the search statement; In a case where the search statement contains at least one keyword of a specified type, segmenting the target image to obtain image segments where objects matching the at least one keyword of the specified type are located, wherein the keyword of the specified type is a noun representing a specific type of object; Based on the image segment and the search statement, obtaining and returning a second search result; Wherein, the third acquisition module is further specifically used for: In the case that the search statement does not contain any keyword of a specified type, identifying the target image to determine each object contained in the target image, the image segment where each object is located, and the position information of each object in the image; Based on the image segment where each object is located and the search statement, obtaining each candidate search result; According to the size of the image segment where each of the objects is located and the position information of each of the objects in the image, the candidate search results are merged to generate a second search result to be returned; Wherein, the third acquisition module is further specifically used for: Determine the keywords contained in the search statement and the corresponding search intent; In the case that the search statement does not contain any keyword of a specified type, determining the target type of the object to be acquired according to the search intent; Segmenting the target image to obtain image segments where objects matching the target type are located; Based on the image segment and the search statement, a second search result is obtained and returned.

7. The device according to claim 6, wherein: The third acquisition module is further specifically used for: Performing intent recognition on the search sentence to determine the search intent; According to the search intent, feature extraction is performed on the target image to determine feature information of the target image; Based on the characteristic information and the search intent, a second search result is obtained and returned.

8. The device according to any one of claims 6 to 7, wherein: The display module is specifically used for: Adding the preset control in a designated area of ​​the first search result display interface; The first search result display interface including the preset control is returned to the client, so that the client displays the first search result display interface.

9. The device according to claim 6, wherein: The determination module is specifically used for: The search statement is matched with each preset template statement, and the type of the search statement is determined according to the matching degree between the search statement and each preset template statement.

10. The device of claim 6, wherein: The determining module is specifically used for: The type of the search statement is determined according to the keywords and / or the corresponding search intent contained in the search statement.

11. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.

12. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-5.

13. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 5.