Composite retrieval method and device, electronic equipment, medium and product

By obtaining the characteristic information of the images to be retrieved, filtering the data in the entire retrieval range, and retrieving in combination with the attributes to be retrieved, the problem of the inability of the existing technology to perform image and attribute retrieval at the same time is solved, and an efficient composite retrieval effect is achieved.

CN118690041APending Publication Date: 2024-09-24CHENGDU TD TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310287211.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-22
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing information retrieval methods cannot combine images and attributes for retrieval at the same time, and cannot meet the needs of users who need to use images and attributes at the same time for composite retrieval in practical applications.

Method used

By obtaining the characteristic information of the image to be retrieved, filtering the full retrieval range data based on the characteristic information and the preset filtering number, obtaining the attribute retrieval range data with a significantly reduced amount of data, and then retrieving the attribute retrieval range data based on the attributes to be retrieved. Implement composite retrieval of images and attributes.

Benefits of technology

It realizes the composite retrieval of pictures and attributes, improves the retrieval efficiency, can quickly obtain the retrieval results, and improves the user's retrieval experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690041A
    Figure CN118690041A
Patent Text Reader

Abstract

The invention provides a composite retrieval method and device, electronic equipment, a medium and a product. The method comprises the steps that retrieval condition data are obtained, and the retrieval condition data comprise a to-be-retrieved picture and to-be-retrieved attributes; performing target feature extraction on the to-be-retrieved picture, and determining feature information of the to-be-retrieved picture; determining attribute retrieval range data according to the feature information, a preset screening number and pre-stored full retrieval range data; and retrieving the attribute retrieval range data according to the to-be-retrieved attribute, and outputting a retrieval result. Therefore, the target feature extraction is performed on the to-be-retrieved picture, the feature information of the to-be-retrieved picture is determined, then the full-retrieval-range data is screened based on the feature information of the to-be-retrieved picture and the preset screening number, the attribute retrieval range data with the data size greatly reduced is obtained, and finally the attribute retrieval range data is retrieved according to the to-be-retrieved attribute. According to the method, composite retrieval of the pictures and the attributes can be realized, the retrieval result can be quickly obtained, and the retrieval efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information retrieval technology, and in particular to a composite retrieval method, device, electronic device, medium and product. Background Art

[0002] With the continuous development of computer technology, the function of information retrieval has been continuously improved to meet the retrieval needs of various groups of people.

[0003] In the prior art, information retrieval methods include image retrieval and attribute retrieval. Image retrieval only outputs corresponding retrieval information based on the image to be retrieved input by the user, and attribute retrieval only outputs corresponding retrieval information based on the attribute to be retrieved input by the user. In other words, the existing information retrieval method can only search for a single type of condition.

[0004] However, in the actual retrieval process, there are situations where users need to search by combining both images and attributes at the same time, while existing information retrieval methods cannot search by combining both images and attributes at the same time. Therefore, how to realize the composite retrieval of images and attributes is crucial. Summary of the invention

[0005] The present application provides a composite search method, device, electronic device, medium and product to solve the problem that it is impossible to simultaneously combine images and attributes for composite search.

[0006] In a first aspect, an embodiment of the present application provides a composite search method, the method comprising:

[0007] Acquire search condition data, wherein the search condition data includes the image to be searched and the attribute to be searched;

[0008] Extract target features from the image to be retrieved to determine feature information of the image to be retrieved;

[0009] Determining attribute search range data according to the characteristic information, a preset screening quantity and pre-stored full search range data;

[0010] The attribute search range data is searched according to the attribute to be searched, and the search result is output.

[0011] Optionally, extracting target features from the image to be retrieved includes:

[0012] The image to be retrieved is input into a pre-stored target feature extraction model, and the target feature extraction model is used to extract the target feature.

[0013] Optionally, inputting the to-be-retrieved picture into a pre-stored target feature extraction model includes:

[0014] Performing image enhancement processing and / or image correction processing on the image to be retrieved;

[0015] The processed image to be retrieved is input into the pre-stored target feature extraction model.

[0016] Optionally, determining the attribute search range data according to the feature information, a preset screening quantity and pre-stored full search range data includes:

[0017] respectively calculating the similarity between the characteristic information and preset characteristic information of at least one retrieval object stored in advance;

[0018] Sorting the similarities, and determining a preset number of feature information with a larger similarity in the sorting result as target feature information;

[0019] The corresponding data in the full search range data is determined as the attribute search range data according to the target feature information.

[0020] Optionally, the preset vector database includes preset feature information of the at least one search object and feature storage identification information corresponding to the preset feature information; the full search range data includes full attribute information, picture storage information and corresponding feature storage identification information of at least one search object;

[0021] The step of determining corresponding data in the full search range data as the attribute search range data according to the target feature information includes:

[0022] Determine target feature storage identification information corresponding to the target feature information;

[0023] The data corresponding to the target feature storage identification information in the full search range data is determined as the attribute search range data.

[0024] Optionally, searching the attribute search range data according to the attribute to be searched includes:

[0025] Matching the attribute to be retrieved with the full attribute information of at least one retrieval object in the attribute retrieval range data to determine the full attribute information of the target retrieval object and the image storage information of the target retrieval object;

[0026] Acquire a target search object image according to the image storage information of the target search object;

[0027] The target retrieval object image and all attribute information of the target retrieval object are determined as the retrieval result.

[0028] Optionally, the target retrieval object picture is stored in a preset picture storage system;

[0029] The step of acquiring the target search object image according to the image storage information of the target search object comprises:

[0030] The preset picture storage system is queried according to the picture storage information of the target retrieval object to obtain the target retrieval object picture.

[0031] Optionally, the target search object includes at least one;

[0032] The output search results include:

[0033] Arrange the pictures and all attribute information corresponding to the same target retrieval object into a display group;

[0034] The search results are output according to the display group.

[0035] Optionally, before obtaining the search condition data, the method further includes:

[0036] Receiving a search request sent by a terminal device, wherein the search request includes the identity authentication information of the terminal device and the search condition data;

[0037] It is determined that the identity authentication of the terminal device is passed according to the identity authentication information.

[0038] In a second aspect, an embodiment of the present application provides a composite search device, the device comprising:

[0039] An acquisition module, used to acquire search condition data, wherein the search condition data includes the image to be searched and the attribute to be searched;

[0040] An extraction module is used to extract target features from the image to be retrieved and determine feature information of the image to be retrieved;

[0041] A determination module, used to determine the attribute search range data according to the characteristic information, the preset screening quantity and the pre-stored full search range data;

[0042] The retrieval module is used to search the attribute retrieval range data according to the attribute to be searched, and output the retrieval result.

[0043] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a processor, and a memory communicatively connected to the processor;

[0044] The memory stores computer-executable instructions;

[0045] The processor executes the computer-executable instructions stored in the memory to implement the compound search method described in any one of the above embodiments.

[0046] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the compound retrieval method described in any one of the above embodiments.

[0047] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the composite search method described in any one of the above embodiments is implemented.

[0048] The composite search method, device, electronic device, medium and product provided by the present application, the composite search method includes: obtaining search condition data, wherein the search condition data includes the image to be searched and the attribute to be searched; performing target feature extraction on the image to be searched and determining the feature information of the image to be searched; determining the attribute search range data according to the feature information, the preset screening number and the pre-stored full search range data; searching the attribute search range data according to the attribute to be searched, and outputting the search result. Through the above scheme, the target feature extraction is first performed on the image to be searched to determine the feature information of the image to be searched, and then the full search range data is screened based on the feature information of the image to be searched and the preset screening number to obtain the attribute search range data with a greatly reduced data volume, and finally the attribute search range data is searched according to the attribute to be searched, which can not only realize the composite search of images and attributes, but also quickly obtain the search results, thereby improving the search efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0050] Figure 1 A schematic diagram of a scenario of a composite search method provided in an embodiment of the present application;

[0051] Figure 2 A logical architecture diagram of a compound retrieval system in a compound retrieval method provided in an embodiment of the present application;

[0052] Figure 3 A schematic diagram of the process flow of the composite search method provided in the embodiment of the present application;

[0053] Figure 4 Another schematic diagram of the process flow of the composite search method provided in the embodiment of the present application;

[0054] Figure 5 A schematic diagram of the structure of a composite search device provided in an embodiment of the present application;

[0055] Figure 6A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0056] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0057] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0058] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0059] In order to clearly understand the technical solution of the present application, the solution of the prior art is first introduced in detail.

[0060] In the prior art, when performing image retrieval, the user inputs the image to be retrieved into the retrieval system, and the retrieval system automatically retrieves data in a preset database based on the image to be retrieved, thereby outputting the retrieval results matching the image to be retrieved to the user; when performing attribute retrieval, the user inputs the attribute to be retrieved, such as a text, into the retrieval system, and the retrieval system automatically retrieves data in a preset database based on the attribute to be retrieved, thereby outputting the retrieval results matching the attribute to be retrieved to the user. Since image retrieval and attribute retrieval are independent of each other, attribute retrieval cannot be performed when performing image retrieval, image retrieval cannot be performed when performing attribute retrieval, attribute retrieval results cannot be displayed when displaying image retrieval results, and image retrieval results cannot be displayed when displaying attribute retrieval results. Therefore, the user cannot search in combination with the image to be retrieved and the attribute to be retrieved at the same time, and thus cannot obtain the retrieval results combining the image to be retrieved and the attribute to be retrieved.

[0061] For example, with the continuous improvement of the monitoring network, most of the social monitoring is fixed monitoring, and work departments often need to carry terminal equipment (such as work recorders) to patrol on the road. The staff uses the terminal device to record video and / or take photos of the target scene or personnel, and then uploads the captured video and / or pictures to the cloud through the terminal device to perform image retrieval of the faces in the video and / or photos. Alternatively, the staff enters the personnel attribute information (such as name, age, etc.) on the terminal device, and uploads the personnel attribute information to the cloud through the terminal device for attribute retrieval. However, in the actual work process, it is necessary not only to directly retrieve the face picture, but also to perform a compound retrieval in combination with the personnel attribute information. How to achieve compound retrieval is crucial.

[0062] In response to the above-mentioned problem that it is impossible to simultaneously combine images and attributes for compound retrieval, the inventors discovered in their research that in order to solve this problem, the target features of the images to be retrieved can be first extracted to determine the feature information of the images to be retrieved, and then the full search range data can be screened based on the feature information of the images to be retrieved and the preset number of filters to obtain attribute retrieval range data with a greatly reduced data volume. Finally, the attribute retrieval range data can be retrieved according to the attributes to be retrieved, which can not only realize the compound retrieval of images and attributes, but also quickly obtain the retrieval results, thereby improving the retrieval efficiency.

[0063] It is understandable that if the method of first searching the full attribute search range data based on the image to be searched and obtaining the first search result data is adopted, then searching the full attribute search range data for the second time based on the attribute to be searched and obtaining the second search result data, and finally merging the first search result data and the second search result data to obtain the search result, it is necessary to match each data in the full attribute search range data twice, and the search efficiency is low. However, this method only needs to perform a second match on the preset filtered number of data corresponding to the image to be searched in the full attribute search range data, and only needs to perform a single match on the data outside the preset filtered number in the full attribute search range data (that is, matching the feature information of the image to be searched), and the search efficiency is high.

[0064] Based on the above creative findings, the inventor proposed the technical solution of the present application.

[0065] The following is an introduction to the application scenarios of the composite search method provided in the embodiments of the present application.

[0066] like Figure 1As shown, the composite retrieval system includes a work management client 100, a work recorder 200 and a server 300, wherein the work management client 100 is used to collect the full search range data entered by the management personnel and the identity authentication information of the trusted work recorder, and send the full search range data and the identity authentication information of the trusted work recorder to the server 300; the work recorder 200 is used to collect the retrieval condition data, and send the retrieval condition data and the identity authentication information to the server 300, and the retrieval condition data includes the image to be retrieved and the attribute to be retrieved; the server 300 is used to store the full search range data sent by the work management client 100, and to authenticate the work recorder 200, and after the identity authentication of the work recorder 200 is passed, a composite search is performed on the pre-stored full search range data according to the retrieval condition data sent by the work recorder 200.

[0067] Specifically, after obtaining the image to be retrieved and the attribute to be retrieved, the server 300 first extracts target features of the image to be retrieved and determines the feature information of the image to be retrieved, then determines the attribute retrieval range data according to the feature information, a preset screening quantity and the pre-stored full retrieval range data, and finally retrieves the attribute retrieval range data according to the attribute to be retrieved, and sends the retrieval results to the work recorder 200, so that the work recorder 200 displays the retrieval results.

[0068] In one example, the logical architecture diagram of the composite search system is as follows: Figure 2 As shown, the compound retrieval system is built based on cloud-native Docker technology. The middleware of the compound retrieval system includes relational databases, distributed vector databases, distributed file systems and search engines. The basic data management services of the compound retrieval system include full-search range data management and work recorder identity authentication management. The data storage services of the compound retrieval system include unstructured data storage for retrieval object images, semi-structured data storage for feature information of retrieval object images, and structured data storage for attribute information of retrieval objects. The business processing system of the compound retrieval system includes view access service, view parsing service and view retrieval service. The work management client and the work recorder communicate with the business processing system of the compound retrieval system through the gateway interface (API Gateway in English), and then call other services and middleware through the services in the business processing system of the compound retrieval system to realize compound retrieval.

[0069] The technical solutions shown in the present application are described in detail below through specific embodiments. Optionally, the following embodiments may exist alone or in combination with each other, and the same or similar contents will not be described repeatedly in different embodiments.

[0070] Figure 3A flow chart of the composite search method provided in the embodiment of the present application, such as Figure 3 As shown, the composite search method provided in the embodiment of the present application includes:

[0071] S10: Acquire search condition data, wherein the search condition data includes the image to be searched and the attribute to be searched.

[0072] The search condition data can be obtained through the data uploaded by the terminal device. The terminal device includes but is not limited to work recorders, smart phones, smart wearable devices, tablet computers and laptops.

[0073] In one example, a staff member uses a work recorder to take a photo of a person to obtain at least one pre-processed image, and the work recorder uses a preset face detection algorithm (such as Yolo V3 algorithm, Yolo V5 algorithm) to perform face detection and deduplication on at least one pre-processed image to generate a to-be-searched image, and finally sends the to-be-searched image to the server; or a staff member uses a work recorder to record a video of a person, and the work recorder periodically extracts frames from the recorded video at a preset frequency to obtain at least one pre-processed image, and then the work recorder uses a preset face detection algorithm (such as YoloV3 algorithm, Yolo V5 algorithm) to perform face detection and deduplication on at least one pre-processed image to generate a to-be-searched image, and finally sends the to-be-searched image to the server. It should be pointed out that in this example, the pre-processed image may include a face and a background, and the to-be-searched image may be understood as a pre-processed image after removing the background and retaining the face. In other examples, the pre-processed image and the to-be-searched image may also include other content, which is not limited here.

[0074] The attribute to be retrieved is in a non-image form, for example, it can be in a text form. In one example, a staff member uses a work recorder to input personnel attribute information, and the personnel attribute information may include one or more of name, age, address, and contact information. The work recorder sends the received personnel attribute information to the server as the attribute to be retrieved. It should be pointed out that in this example, the attribute to be retrieved is personnel attribute information. In other examples, the attribute to be retrieved may also be other attributes, which are not limited here.

[0075] S20: Extract target features from the image to be retrieved, and determine feature information of the image to be retrieved.

[0076] The target feature is a pre-set feature. It is understandable that if the target feature is a face, then after receiving the image to be searched, the face in the image to be searched will be feature extracted; if the target feature is a face and a body, then after receiving the image to be searched, the face and a body in the image to be searched will be feature extracted; if the target feature is a fingerprint, a house or a vehicle, then after receiving the image to be searched, the fingerprint, the house or the vehicle in the image to be searched will be feature extracted, and this is not limited here.

[0077] The feature information of the image to be retrieved may be a feature value or a feature vector of a target feature in the image to be retrieved.

[0078] S30: Determine attribute search range data according to the feature information, the preset screening quantity and the pre-stored full search range data.

[0079] Full search range data can be generated based on data entered by managers with relevant permissions.

[0080] Please combine Figure 4 For example, the full attribute information of the search object is structured data, so the full attribute information of the search object entered by the administrator is stored in the relational database Mysql; the search object image is unstructured data, and the image storage information of the search object is structured data, so the search object image entered by the administrator is stored in the distributed file system Minio, and the storage path of the search object image in the distributed file system Minio is stored as the image storage information in the relational database Mysql; the feature vector of the target feature is vector data, and the feature storage identifier of the feature vector is structured data, so the search object image entered by the administrator is subjected to image enhancement processing and image correction. After processing, target feature extraction is performed, and the extracted feature vector is stored in the distributed vector database Milvus, and the feature storage identifier of the feature vector in the distributed vector database Milvus is stored in the relational database Mysql; in the relational database Mysql, an association relationship is established between the full attribute information of the same search object, the image storage information of the search object image, and the feature storage identifier information of the search object target feature information, so that when any of the full attribute information, image storage information, and feature storage identifier information of a certain search object is obtained, the remaining two information of the full attribute information, image storage information, and feature storage identifier information corresponding to the search object can be determined. Finally, the full search range data is generated according to the full attribute information of each search object, that is, the full search range data includes the full attribute information, image storage information, and corresponding feature storage identifier information of at least one search object.

[0081] The attribute search range data can be understood as the data that is selected from the full search range data, matches the feature information of the image to be searched, and has only a preset number of data. The attribute search range data may include the full attribute information of the preset number of search objects, the image storage information, and the corresponding feature storage identification information.

[0082] S40: Search the attribute search range data according to the attribute to be searched, and output the search result.

[0083] It is understandable that a search object may include at least one kind of attribute information, the full attribute information may be all attribute information of the search object, and the attribute to be searched may be any one or more of the full attribute information. Since the attribute search range data includes the full attribute information of the search objects of the preset screening number, the attribute search range data may be searched according to the attribute to be searched.

[0084] In some embodiments, the full search range data is only stored in the relational database Mysql, so the attribute search range data is searched in the relational database Mysql according to the attribute to be searched. Since the full search range data is structured data, searching in the relational database Mysql can obtain more accurate search results.

[0085] Please continue to combine Figure 4 In some embodiments, the full search range data stored in the relational database Mysql is synchronously stored in the distributed search engine Solr, and then the attribute search range data is searched in the distributed search engine Solr according to the attributes to be searched, so that the search results can be obtained more quickly. In actual tests, the composite search method of this embodiment takes an average of 200 milliseconds to search in millions of data.

[0086] The composite retrieval method of the embodiment of the present application includes: obtaining retrieval condition data, wherein the retrieval condition data includes the image to be retrieved and the attribute to be retrieved; performing target feature extraction on the image to be retrieved to determine the feature information of the image to be retrieved; determining the attribute retrieval range data according to the feature information, the preset screening number and the pre-stored full retrieval range data; searching the attribute retrieval range data according to the attribute to be retrieved, and outputting the retrieval result. Through the above scheme, the target feature extraction is first performed on the image to be retrieved to determine the feature information of the image to be retrieved, and then the full retrieval range data is screened based on the feature information of the image to be retrieved and the preset screening number to obtain the attribute retrieval range data with a greatly reduced data volume, and finally the attribute retrieval range data is searched according to the attribute to be retrieved, which can not only realize the composite retrieval of images and attributes, but also quickly obtain retrieval results, thereby improving retrieval efficiency.

[0087] Optionally, step S20 includes:

[0088] S21: Input the image to be retrieved into a pre-stored target feature extraction model, and use the target feature extraction model to extract target features.

[0089] Specifically, a feature extraction model to be trained can be built first, and then a large number of pictures containing target features can be used to train the feature extraction model to be trained until the training results of the feature extraction model to be trained meet the preset conditions. The parameters of the feature extraction model to be trained at this time are determined as the parameters of the target feature extraction model and saved.

[0090] The composite retrieval method of the above embodiment inputs the image to be retrieved into a pre-stored target feature extraction model, and uses the target feature extraction model to extract the target feature. In this way, the target feature extraction model can accurately and quickly automatically extract the feature information of the target feature in the image to be retrieved.

[0091] Optionally, step S21 includes:

[0092] S211: Perform image enhancement processing and / or image correction processing on the image to be retrieved.

[0093] In some embodiments, only image enhancement processing is performed on the image to be retrieved; in some embodiments, only image correction processing is performed on the image to be retrieved; in some embodiments, image enhancement processing is first performed on the image to be retrieved, and then image correction processing is performed on the image after image enhancement processing, which is not limited here.

[0094] Image enhancement processing can be implemented based on a pre-stored image enhancement model or algorithm. Image enhancement processing can enhance the detail information in the image to be retrieved.

[0095] The image correction process can be implemented based on a pre-stored image correction model or algorithm. The image correction process can restore the distorted information in the image to be retrieved. For example, when the image to be retrieved is a face image, the image correction process can convert a tilted face in the image to a relatively non-tilted face.

[0096] S212: Input the processed image to be retrieved into a pre-stored target feature extraction model.

[0097] The composite retrieval method of the above embodiment performs image enhancement processing and / or image correction processing on the image to be retrieved; and inputs the processed image to be retrieved into a pre-stored target feature extraction model. In this way, the image to be retrieved is first pre-processed by image enhancement processing and / or image correction processing to ensure the quality of the image input into the target feature extraction model, and then the processed image to be retrieved is input into the target feature extraction model for target feature extraction, thereby improving the accuracy and efficiency of target feature extraction.

[0098] Optionally, step S30 includes:

[0099] S31: Calculate the similarity between the feature information and the preset feature information of at least one pre-stored search object.

[0100] In one example, the characteristic information is an eigenvalue in matrix form, and the matrix corresponding to each eigenvalue includes multiple elements. By comparing the elements at the same position in the matrix corresponding to the characteristic information and the matrix corresponding to the preset characteristic information, the similarity between the characteristic information and the preset characteristic information can be determined.

[0101] S32: Sort the similarities, and determine a preset number of preset feature information with greater similarities in the sorting results as target feature information.

[0102] In one example, the preset screening number is 5, and after the similarities are sorted in descending order, the preset feature information with the top 5 similarities is determined as the target feature information.

[0103] It should be noted that the specific numerical values ​​mentioned above are only used as examples to illustrate the implementation of the present application in detail, and should not be understood as limiting the present application. In other examples or implementations or embodiments, other numerical values ​​can be selected according to the present application, and are not specifically limited here.

[0104] S33: Determine corresponding data in the full search range data as attribute search range data according to the target feature information.

[0105] The compound search method of the above embodiment respectively calculates the similarity between the feature information and the preset feature information of at least one pre-stored search object; sorts the similarity, and determines the preset feature information of the preset screening number with greater similarity in the sorting result as the target feature information; and determines the corresponding data in the full search range data as the attribute search range data according to the target feature information. In this way, the preset screening number of target feature information is determined based on the similarity, and the data corresponding to the preset screening number of target feature information in the full search range data is determined as the attribute search range data, thereby greatly reducing the data volume of the attribute search range data and improving the efficiency of subsequent retrieval based on the attributes to be retrieved.

[0106] Optionally, the preset vector database includes preset feature information of at least one search object and feature storage identification information corresponding to the preset feature information; the full search range data includes full attribute information, image storage information and corresponding feature storage identification information of at least one search object.

[0107] Step S33 includes:

[0108] S331: Determine target feature storage identification information corresponding to the target feature information;

[0109] S332: Determine the data corresponding to the target feature storage identification information in the full search range data as the attribute search range data.

[0110] Exemplarily, the preset vector database is a distributed vector database Milvus. It is understandable that when a preset feature (such as a feature vector) of a search object is stored in a distributed vector database, the preset feature of the search object will correspond to a unique feature storage identifier, and the preset feature stored in the distributed vector database can be quickly found based on the unique feature storage identifier. In addition, since the feature storage identifier has a simpler data structure than the feature vector, the full search range data is generated according to the feature storage identifier information. During the search process, the matching difficulty is reduced, which can improve the search efficiency.

[0111] In the compound retrieval method of the above embodiment, the preset vector database includes preset feature information of at least one retrieval object and feature storage identification information corresponding to the preset feature information, the full retrieval range data includes full attribute information, image storage information and corresponding feature storage identification information of at least one retrieval object, and the target feature storage identification information corresponding to the target feature information is determined; the data corresponding to the target feature storage identification information in the full retrieval range data is determined as the attribute retrieval range data. In this way, the preset feature information of at least one retrieval object is stored in the preset vector database, and then the data corresponding to the target feature information in the full retrieval range data is matched based on the target feature storage identification information, which can improve the matching efficiency and thus improve the overall efficiency of the compound retrieval.

[0112] Optionally, step S40 includes:

[0113] S41: Matching the attribute to be retrieved with the full attribute information of at least one retrieval object in the attribute retrieval range data to determine the full attribute information of the target retrieval object and the image storage information of the target retrieval object;

[0114] S42: Acquire a target search object image according to the image storage information of the target search object;

[0115] S43: Determine the target retrieval object image and all attribute information of the target retrieval object as the retrieval result.

[0116] After obtaining the attribute to be retrieved, the full attribute information of the target retrieval object with the same attribute to be retrieved in the attribute retrieval range data can be determined. Furthermore, since the full attribute information in the attribute retrieval range data is associated with the image storage information, the image storage information of the target retrieval object can also be determined.

[0117] The composite retrieval method of the above embodiment matches the attribute to be retrieved with the full attribute information of at least one retrieval object in the attribute retrieval range data, determines the full attribute information of the target retrieval object and the image storage information of the target retrieval object; obtains the target retrieval object image according to the image storage information of the target retrieval object; and determines the target retrieval object image and the full attribute information of the target retrieval object as the retrieval result. In this way, the attribute retrieval range data is further screened using the attribute to be retrieved, and a retrieval result that meets both the image to be retrieved and the attribute to be retrieved can be obtained. In addition, since the image storage information of the target retrieval object is stored in the attribute retrieval range data, rather than the image of the target retrieval object, the attribute retrieval range data is more concise, which can improve the efficiency of retrieving the attribute retrieval range data using the attribute to be retrieved.

[0118] Optionally, the target retrieval object image is stored in a preset image storage system.

[0119] Step S42 includes:

[0120] The preset image storage system is queried according to the image storage information of the target retrieval object to obtain the target retrieval object image.

[0121] Exemplarily, the preset image storage system is the distributed file system Minio, and the image storage information is the storage path of the search object image in the distributed file system.

[0122] It is understandable that there are a large number of retrieval object images. Storing the retrieval object images in the distributed file system Minio facilitates the subsequent addition or deletion of retrieval object images and has strong scalability.

[0123] In the composite search method of the above embodiment, the target search object picture is stored in a preset picture storage system, and the preset picture storage system is queried according to the picture storage information of the target search object to obtain the target search object picture. In this way, the target search object picture can be automatically obtained based on the picture storage information of the target search object.

[0124] Optionally, the target retrieval object includes at least one.

[0125] Step S40 also includes:

[0126] S44: Arranging the pictures and all attribute information corresponding to the same target search object into a display group;

[0127] S45: Output the search results according to the display group.

[0128] In some implementations, the images to be retrieved, the images corresponding to the same target retrieval object, and the full attribute information are organized into a display group, thereby facilitating the user to compare and view the retrieval results and the images to be retrieved.

[0129] In the compound search method of the above embodiment, the target search object includes at least one, and the pictures and full attribute information corresponding to the same target search object are arranged into a display group; and the search results are output according to the display group. In this way, the pictures and full attribute information corresponding to the same target search object can be displayed together, which is convenient for viewing the search results.

[0130] Optionally, before step S10, the method further includes:

[0131] S50: receiving a search request sent by a terminal device, wherein the search request includes identity authentication information of the terminal device and search condition data;

[0132] S60: Determine, based on the identity authentication information, whether the terminal device identity authentication is successful.

[0133] Specifically, the electronic device may pre-store the identity authentication information of a trusted terminal device. When the electronic device receives a retrieval request sent by the terminal device, it parses the retrieval request, obtains the identity authentication information of the terminal device, and then matches the identity authentication information of the terminal device that sends the retrieval request with the identity authentication information of the trusted terminal device. If there is matching identity authentication information, it is determined that the terminal device identity authentication is successful.

[0134] The identity verification information may include the unique identification of the terminal device, such as the device number, digital signature, etc.

[0135] In some implementations, the retrieval request also includes location information of the terminal device.

[0136] In some embodiments, a use request sent by a terminal device is received, wherein the login request includes user identity authentication information of a current holder of the terminal device, and a determination is made as to whether the current holder is eligible to use the terminal device based on the user identity authentication information of the current holder and pre-stored user identity authentication information of a legitimate holder, and the determination result is returned to the terminal device so that the terminal device can deny or allow the current holder to use the terminal device.

[0137] The compound search method of the above embodiment receives a search request sent by a terminal device before obtaining the search condition data, wherein the search request includes the identity authentication information of the terminal device and the search condition data; and determines whether the identity authentication of the terminal device is passed according to the identity authentication information. In this way, after receiving the search request sent by the terminal device, the terminal device is first authenticated. Only after the terminal device passes the identity authentication, a compound search is performed according to the search condition data sent by the terminal device. If the terminal device fails to pass the identity authentication, a compound search is not performed according to the search condition data sent by the terminal device, thereby ensuring the security of the information and preventing the full search range data from being obtained by illegal devices.

[0138] Figure 5 A schematic diagram of the structure of a composite search device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the composite search device 400 provided in the embodiment of the present application includes an acquisition module 401 , an extraction module 402 , a determination module 403 and a search module 404 .

[0139] The acquisition module 401 is used to acquire the search condition data, wherein the search condition data includes the image to be searched and the attribute to be searched. The extraction module 402 is used to extract the target feature of the image to be searched and determine the feature information of the image to be searched. The determination module 403 is used to determine the attribute search range data according to the feature information, the preset screening quantity and the pre-stored full search range data. The search module 404 is used to search the attribute search range data according to the attribute to be searched and output the search result.

[0140] Optionally, the extraction module 402 is specifically configured to:

[0141] The image to be retrieved is input into a pre-stored target feature extraction model, and the target feature extraction model is used to extract the target features.

[0142] Optionally, the extraction module 402 is further configured to:

[0143] Perform image enhancement and / or image correction processing on the image to be retrieved;

[0144] The processed image to be retrieved is input into the pre-stored target feature extraction model.

[0145] Optionally, the determination module 403 is specifically configured to:

[0146] respectively calculating the similarity between the characteristic information and the preset characteristic information of at least one retrieval object stored in advance;

[0147] Sorting the similarities, and determining a preset number of feature information with a larger similarity in the sorting results as target feature information;

[0148] According to the target feature information, corresponding data in the entire search range data is determined as attribute search range data.

[0149] Optionally, the preset vector database includes preset feature information of at least one search object and feature storage identification information corresponding to the preset feature information; the full search range data includes full attribute information, image storage information and corresponding feature storage identification information of at least one search object.

[0150] The determination module 403 is further specifically used for:

[0151] Determine target feature storage identification information corresponding to the target feature information;

[0152] The data corresponding to the target feature storage identification information in the full search range data is determined as the attribute search range data.

[0153] Optionally, the retrieval module 404 is specifically configured to:

[0154] Matching the attribute to be retrieved with the full attribute information of at least one retrieval object in the attribute retrieval range data to determine the full attribute information of the target retrieval object and the image storage information of the target retrieval object;

[0155] Acquire the target retrieval object image according to the image storage information of the target retrieval object;

[0156] The target retrieval object image and all attribute information of the target retrieval object are determined as the retrieval results.

[0157] Optionally, the target retrieval object image is stored in a preset image storage system.

[0158] The search module 404 is further configured to:

[0159] The preset image storage system is queried according to the image storage information of the target retrieval object to obtain the target retrieval object image.

[0160] Optionally, the target retrieval object includes at least one.

[0161] The search module 404 is further configured to:

[0162] Arrange the pictures and all attribute information corresponding to the same target retrieval object into a display group;

[0163] Output search results by display group.

[0164] Optionally, the compound search device 400 further includes a verification module. The verification module is used to:

[0165] Receiving a search request sent by a terminal device, wherein the search request includes identity authentication information of the terminal device and search condition data;

[0166] Determine that the terminal device identity authentication is passed based on the identity authentication information.

[0167] The compound search device 400 provided in the embodiment of the present application can execute the technical solution shown in the above-mentioned compound search method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0168] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 6As shown, the electronic device 500 provided in the embodiment of the present application includes: a processor 501, and a memory 502 communicatively connected to the processor 501; the memory 502 stores computer execution instructions; the processor 501 executes the computer execution instructions stored in the memory 502 to implement the composite retrieval method of any of the above embodiments.

[0169] For example, when the processor 501 executes the computer-executable instructions stored in the memory 502, the following steps of the composite search method are implemented:

[0170] S10: Acquire search condition data, wherein the search condition data includes the image to be searched and the attribute to be searched;

[0171] S20: extracting target features of the image to be retrieved and determining feature information of the image to be retrieved;

[0172] S30: determining attribute search range data according to the characteristic information, the preset screening quantity and the pre-stored full search range data;

[0173] S40: Search the attribute search range data according to the attribute to be searched, and output the search result.

[0174] exist Figure 6 In a corresponding embodiment, the program may include program code, and the program code includes computer-executable instructions. The memory 502 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0175] The memory 502 and the processor 501 are connected via a bus. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0176] In one example, electronic device 500 is a server.

[0177] The electronic device 500 provided in the embodiment of the present application can execute the technical solution shown in the above-mentioned composite search method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0178] An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the composite retrieval method of any of the above embodiments.

[0179] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the composite search method of any of the above embodiments is implemented.

[0180] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0181] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A composite search method, It is characterized in that include: Acquire search condition data, wherein the search condition data includes the image to be searched and the attribute to be searched; Extract target features from the image to be retrieved to determine feature information of the image to be retrieved; Determining attribute search range data according to the characteristic information, a preset screening quantity and pre-stored full search range data; The attribute search range data is searched according to the attribute to be searched, and the search result is output.

2. The method according to claim 1, It is characterized in that The step of extracting target features from the image to be retrieved includes: The image to be retrieved is input into a pre-stored target feature extraction model, and the target feature extraction model is used to extract the target feature.

3. The method according to claim 2, It is characterized in that The step of inputting the image to be retrieved into a pre-stored target feature extraction model comprises: Performing image enhancement processing and / or image correction processing on the image to be retrieved; The processed image to be retrieved is input into the pre-stored target feature extraction model.

4. The method according to claim 1, It is characterized in that The determining of the attribute search range data according to the characteristic information, the preset screening quantity and the pre-stored full search range data includes: respectively calculating the similarity between the characteristic information and preset characteristic information of at least one retrieval object stored in advance; Sorting the similarities, and determining a preset number of feature information with a larger similarity in the sorting result as target feature information; The corresponding data in the full search range data is determined as the attribute search range data according to the target feature information.

5. The method according to claim 4, It is characterized in that The preset vector database includes preset feature information of at least one search object and feature storage identification information corresponding to the preset feature information; the full search range data includes full attribute information, picture storage information and corresponding feature storage identification information of at least one search object; The step of determining corresponding data in the full search range data as the attribute search range data according to the target feature information includes: Determine target feature storage identification information corresponding to the target feature information; The data corresponding to the target feature storage identification information in the full search range data is determined as the attribute search range data.

6. The method according to claim 5, It is characterized in that The step of searching the attribute search range data according to the attribute to be searched includes: Matching the attribute to be retrieved with the full attribute information of at least one retrieval object in the attribute retrieval range data to determine the full attribute information of the target retrieval object and the image storage information of the target retrieval object; Acquire a target search object image according to the image storage information of the target search object; The target retrieval object image and all attribute information of the target retrieval object are determined as the retrieval result.

7. The method according to claim 6, It is characterized in that The target retrieval object image is stored in a preset image storage system; The step of acquiring the target search object image according to the image storage information of the target search object comprises: The preset picture storage system is queried according to the picture storage information of the target retrieval object to obtain the target retrieval object picture.

8. The method according to claim 6, It is characterized in that The target search object includes at least one; The output search results include: Arrange the pictures and all attribute information corresponding to the same target retrieval object into a display group; The search results are output according to the display group.

9. The method according to any one of claims 1 to 8, It is characterized in that Before obtaining the search condition data, the method further includes: Receiving a search request sent by a terminal device, wherein the search request includes the identity authentication information of the terminal device and the search condition data; It is determined that the identity authentication of the terminal device is passed according to the identity authentication information.

10. A composite search device, It is characterized in that include: An acquisition module, used to acquire search condition data, wherein the search condition data includes the image to be searched and the attribute to be searched; An extraction module is used to extract target features from the image to be retrieved and determine feature information of the image to be retrieved; A determination module, used to determine the attribute search range data according to the characteristic information, the preset screening quantity and the pre-stored full search range data; The retrieval module is used to search the attribute retrieval range data according to the attribute to be searched, and output the retrieval result.

11. An electronic device, It is characterized in that include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the composite search method according to any one of claims 1 to 9.

12. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the composite search method according to any one of claims 1 to 9 when executed by a processor.

13. A computer program product, It is characterized in that It comprises a computer program, which, when executed by a processor, implements the composite search method according to any one of claims 1 to 9.