Search processing method, device, electronic device and storage medium

By determining the search sentence type and displaying preset controls on the search interface, and combining image recognition technology to obtain search results, the problem of inaccurate search results in the existing technology when the search sentence is of a preset type is solved, and the accuracy and accuracy of information search are improved. efficiency.

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

Patent Information

Application Number
CN202110280922.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-16
Publication Date
2024-10-15
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 statement is of a preset type, and a simple text search cannot provide correct search results.

Method used

By obtaining the search statement, determining its type, and displaying preset controls on the search interface, obtaining the target image to be recognized, obtaining and returning search results based on the search statement and image, and combining image recognition technology to determine the search results.

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 CN113111249B_ABST
    Figure CN113111249B_ABST
Patent Text Reader

Abstract

The present disclosure discloses a search processing method, device, electronic device and storage medium, and particularly relates to the fields of artificial intelligence technology such as natural language processing, computer vision, and intelligent search. The specific implementation scheme is as follows: obtaining a search statement; determining the type of the search statement; displaying a preset control on the search interface when the search statement is of a preset type; obtaining a target image to be identified; and obtaining and returning search results based on the search statement and the target image. In this way, the system search function can be improved, and the search results can be determined more accurately, so as to meet the user's search needs as much as possible, improve the search processing efficiency and accuracy, and also provide the user with 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] Get the search statement;

[0006] determining a type of the search statement;

[0007] When the search statement is of a preset type, displaying a preset control on the search interface;

[0008] Acquire a target image to be identified;

[0009] Based on the search statement and the target image, search results are 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 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 on the search 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 search results based on the search sentence 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 first obtain a search statement, then determine the type of the search statement, and when the search statement is of a preset type, a preset control can be displayed on the search interface, and then a target image to be identified can be obtained, and then search results can be obtained and returned based on the search statement and the target image. In this way, the system search function can be improved, and 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 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] Step 102, determining the type of the search statement.

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

[0044] In addition, the type of the search statement may be a preset type, a non-preset type, etc., which is not limited in the present disclosure.

[0045] The preset type may be any type pre-specified as needed. For example, a preset type search statement may be any statement 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.

[0046] 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.

[0047] 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.

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

[0049] 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.

[0050] 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.

[0051] In addition, when determining the matching degree between the search statement and each preset template statement, the matching degree can be determined based on the component structure of the sentence, or the matching degree can be determined using methods such as semantic similarity, which is not limited in the present disclosure.

[0052] 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.

[0053] 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.

[0054] 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.

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

[0056] 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.

[0057] For example, the search sentence 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 sentence is a preset type.

[0058] 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.

[0059] 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.

[0060] 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.

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

[0062] 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.

[0063] In addition, the preset controls may be any controls that are set in advance, such as: image upload controls, photo upload controls, etc., which are not limited in the present disclosure.

[0064] For example, the search sentence is "What kind of flower is this?" It has been determined that the search sentence is of a preset type. If a text search is performed directly on it, the type and name of the flower cannot be accurately determined because there is no information related to "flower". At this time, a preset image upload control can be displayed on the search interface, so that the type of flower can be determined with the help of image information, which can solve the user's problem.

[0065] 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.

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

[0067] The user may upload the target image to be identified by triggering a preset control displayed on the search interface, and then the server may obtain the target image to be identified.

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

[0069] 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.

[0070] Step 105: based on the search statement and the target image, obtain and return search results.

[0071] The search sentence and the target image may be combined to perform search identification, thereby determining the search results.

[0072] For example, the search sentence is "what kind of flower is this", and it has been determined that the search sentence belongs to the preset type. After acquiring the target image, the entire target image can be recognized. The features of the flower are determined based on the recognition result, and then the flower is searched and found based on the features of the flower, such as using various databases for search, or using search engines for search, etc., so that the search results can be returned to the user.

[0073] 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 first 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 flowers, so that other flowers similar to it can be determined.

[0074] 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.

[0075] In the disclosed embodiment, the search statement can be obtained first, and then the type of the search statement can be determined. When the search statement is of a preset type, a preset control can be displayed on the search interface, and then the target image to be identified can be obtained. Then, based on the search statement and the target image, the search results can be 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 can be improved, and the user can also be given a better sense of use.

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

[0077] 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:

[0078] Step 201, obtaining a search statement.

[0079] Step 202: Determine the type of the search statement.

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

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

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

[0083] 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.

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

[0085] 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.

[0086] 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.

[0087] 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.

[0088] 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.

[0089] 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.

[0090] 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.

[0091] Among them, the keyword of the specified type can be a noun, etc., which can represent a type of specific object, etc., and the present disclosure does not limit this.

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

[0093] 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.

[0094] 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.

[0095] Step 207: based on the image segment and the search statement, obtain and return search results.

[0096] 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 the target image is segmented, the image segment where the "dog" is located in the target image 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 search result.

[0097] 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.

[0098] 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.

[0099] 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.

[0100] 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.

[0101] 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.

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

[0103] The image segments where each object is located can be further identified, for example, information of the image segments where each object is located can be searched and identified according to a search statement. Alternatively, the image segments where each object is located can be searched and matched with other image knowledge bases according to each search statement, so as to determine the candidate search results corresponding to each image segment.

[0104] For example, the search statement is "What breeds are these?", which does not contain keywords of the 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 breeds are these?", "dog" and "cat" have different breed categories, while "schoolbag" has no different breed categories. 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.

[0105] 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.

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

[0107] 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.

[0108] 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 fused, 5 candidate search results corresponding to object A and 2 candidate search results corresponding to object B can be displayed, that is, the search results to be returned. The search results generated after the fusion are highly accurate, correct, and comprehensive, which can well meet the user's search needs and solve search problems.

[0109] 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.

[0110] 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 fusing the candidate search results, the search results obtained may be: XX is located at the center of the image, and YY is located at the lower left of the image.

[0111] 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.

[0112] 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.

[0113] 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.

[0114] 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.

[0115] In the disclosed embodiment, the type of search statement can be determined first. When the search statement is of a preset type, a preset control is displayed on the search interface, and then the target image to be identified is obtained, and 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 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 search result to be returned is generated based on the obtained candidate search results. Thus, when the search statement is of a preset type, the search statement can be parsed, 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 efficiency and accuracy of information search processing can be improved, and the user can also be given a better sense of use.

[0116] 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.

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

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

[0119] Step 301, obtaining a search statement.

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

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

[0122] Step 304: Acquire a target image to be identified.

[0123] Step 305: determine the keywords contained in the search statement and the corresponding search intent.

[0124] 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, part-of-speech tagging, etc. can be used to determine the keywords included in the search statement, and this disclosure does not limit this.

[0125] In addition, relevant technologies can be used to determine the search intent corresponding to the search sentence. For example, the sentence can be parsed first, and then the search intent corresponding to the search sentence can be determined using a named entity recognizer, etc., which is not limited in this disclosure.

[0126] 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.

[0127] Step 306: 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.

[0128] 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.

[0129] 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.

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

[0131] The target image may be segmented first, and then the image segment where the object matching the target object is located may be determined according to the target type of the target object to be acquired, thereby reducing the amount of data to be processed and improving efficiency.

[0132] 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.

[0133] 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.

[0134] Step 308: Obtain and return search results based on the image segment and the search statement.

[0135] The acquired image segments may be further processed to determine more accurate search results.

[0136] 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 the vehicle according to its logo, specifications, etc., so as to determine the price of the vehicle, which can then be returned to the user as a search result.

[0137] 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.

[0138] 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 to further determine the search results.

[0139] 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 search results may be obtained and returned based on the feature information and the search intent.

[0140] 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.

[0141] 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.

[0142] 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 search results.

[0143] 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.

[0144] In the disclosed embodiment, the type of search statement can be determined first. When the search statement is of a preset type, a preset control is displayed on the search interface. Then, the target image to be identified is obtained, and then the search statement is 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. Then, the target image is segmented to obtain the image fragment where the object matching the target type is located, so that the search results can be obtained and returned based on the image fragment and the search statement. Therefore, when the search statement is of a preset type, the corresponding image fragment can be determined according to the search intent corresponding to the search statement, so as to determine more accurate search results, making the search function of the system more complete and the search information obtained more accurate.

[0145] 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.

[0146] 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.

[0147] The first acquisition module 410 is used to acquire a search statement.

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

[0149] The display module 430 is used to display preset controls on the search interface when the search statement is of a preset type.

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

[0151] The third acquisition module 450 is used to acquire and return search results based on the search sentence and the target image.

[0152] 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; and obtain and return search results based on the image segment and the search statement.

[0153] 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 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; obtain each candidate search result based on the image segment where each object is located and the search statement; and merge the candidate search results according to the size of the image segment where each object is located and / or the position information of each object in the image to generate a search result to be returned.

[0154] 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 obtain and return search results based on the image segment and the search statement.

[0155] 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; perform feature extraction on the target image based on the search intent to determine feature information of the target image; and obtain and return search results based on the feature information and the search intent.

[0156] 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.

[0157] 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.

[0158] 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.

[0159] The search processing device of the disclosed embodiment can first obtain a search statement, then determine the type of the search statement, and when the search statement is of a preset type, a preset control can be displayed on the search interface, and then a target image to be identified can be obtained, and then search results can be obtained and returned based on the search statement and the target image. In this way, the system search function can be improved, and 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.

[0160] 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.

[0161] 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.

[0162] 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.

[0163] 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.

[0164] 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).

[0165] 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.

[0166] 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, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. 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.

[0167] 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.

[0168] 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).

[0169] 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.

[0170] 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.

[0171] The technical solution disclosed in the present invention can first obtain a search statement, then determine the type of the search statement, and when the search statement is of a preset type, a preset control can be displayed on the search interface, and then a target image to be identified can be obtained, and then search results can be obtained and returned based on the search statement and the target image. In this way, the system search function can be improved, and 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.

[0172] 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.

[0173] 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: Get the search statement; determining a type of the search statement; When the search statement is of a preset type, displaying a preset control on the search 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 search results; The obtaining and returning search results 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 search results; 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 / or the position information of each of the objects in the image, the candidate search results are merged to generate a search result to be returned; Wherein, obtaining and returning search results 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, search results are obtained and returned.

2. The method of claim 1, wherein: The obtaining and returning search results 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 feature information and the search intent, search results are obtained and returned.

3. 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.

4. The method of claim 1, 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.

5. A search processing device, comprising: A first acquisition module, used to acquire a search statement; A determination module, used to determine the type of the search statement; A display module, configured to display a preset control on the search 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, used to acquire and return search results based on the search sentence 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 search results; 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 / or the position information of each of the objects in the image, the candidate search results are merged to generate a 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, search results are obtained and returned.

6. The device according to claim 5, 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 feature information and the search intent, search results are obtained and returned.

7. The device according to claim 5, wherein: The determining 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.

8. The device according to claim 5, 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.

9. 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 4.

10. 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-4.

11. 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 4.

Citation Information

Patent Citations

  • Commodity price comparing method based on picture interactive type multiple-target extraction

    CN103412938A

  • Providing method and system of translating information

    CN104731776A

  • Information query method and device, equipment and medium

    CN107480236A

  • Image retrieval method based on target local regions

    CN107766582A

  • Image processing method and device, mobile terminal, image recognition method and server

    CN108090126A