Image search method, device, search platform and storage medium

By matching the device resource library between the search platform and the intelligent IPC, the target IPC is determined for feature extraction, which solves the problem of back-end search platform resource limitations and inconsistent feature types of IPCs from different manufacturers, and realizes image processing without increasing hardware resources. Search function improves retrieval efficiency and accuracy.

CN114491132BActive Publication Date: 2024-10-11CHONGQING UNISINSIGHT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210134722.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-14
Publication Date
2024-10-11
Estimated Expiration
2042-02-14

AI Technical Summary

Technical Problem

Due to resource limitations, existing back-end search platforms cannot implement intelligent image search functions without adding additional hardware resources. Especially when the image feature types generated by IPCs from different manufacturers are inconsistent, effective retrieval cannot be performed.

Method used

By establishing a device resource library between the search platform and the intelligent IPC, the target intelligent IPC is determined to match the data type and resource capabilities of the images to be searched, and the images to be searched are sent to the target IPC for feature extraction, and the features are returned from the resource library. Filter matching information for display.

Benefits of technology

It realizes the image search function without increasing hardware resources, overcomes the problem that features generated by different algorithms cannot be fused for search, and improves retrieval efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114491132B_ABST
    Figure CN114491132B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention provide a method, device, electronic device and storage medium for image search, which relate to the field of intelligent security. The method includes: responding to an image search request, determining a target intelligent IPC from a number of intelligent IPCs; then, sending the image to be searched to the target intelligent IPC, so that the target intelligent IPC extracts features of the image to be searched to obtain target features; finally, obtaining the first information of a reference intelligent IPC that is consistent with the device type and algorithm type of the target intelligent IPC from a device resource library, and determining target information that matches the target features from all the first information, the target information includes images and image features, and displaying the target information as a search result. Since the feature extraction of the image to be searched is performed on the target intelligent IPC, for a search platform that does not have intelligent parsing capabilities, the function of searching by image can be realized without adding additional hardware resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent security, and in particular to an image search method, device, search platform and storage medium. Background Art

[0002] With the development of security technology, the demand for image search function is gradually increasing in the intelligent AI security scenario of edge computing. To match the data that users want from the data generated by the front-end IPC (IP Camera), the back-end search platform needs to have intelligent parsing capabilities to provide intelligent structured retrieval services.

[0003] However, many current backend search platforms lack intelligent parsing capabilities or have limited parsing capabilities due to limited product resources. The backend search platforms need to add additional hardware resources to realize the image search function. Summary of the invention

[0004] The purpose of the present invention includes, for example, providing a picture search method, device, electronic device and storage medium, which can realize the function of searching pictures by pictures without adding additional hardware resources for search platforms that do not have intelligent analysis capabilities.

[0005] In order to achieve the above purpose, the technical solution adopted by the embodiment of the present invention is as follows:

[0006] In a first aspect, an embodiment of the present invention provides an image search method, which is applied to a search platform, wherein the search platform is communicatively connected to a plurality of intelligent network camera IPCs, and each intelligent IPC is pre-deployed with an algorithm; the search platform pre-stores a device resource library, and the device resource library includes first information corresponding to each of the intelligent IPCs, wherein the first information includes images collected by the intelligent IPCs and image features obtained by extracting features from the images;

[0007] The method comprises:

[0008] In response to the image search request, a target intelligent IPC is determined from the plurality of intelligent IPCs, wherein the image search request includes the image to be searched, the algorithm deployed by the target intelligent IPC matches the data type of the image to be searched, and the target intelligent IPC has the largest number of remaining resources;

[0009] Sending the image to be searched to the target intelligent IPC, so that the target intelligent IPC extracts features from the image to be searched to obtain target features, and returns the target features to the search platform;

[0010] Acquire the first information of each reference smart IPC from the updated device resource library, and determine the target information matching the target feature from all the first information, wherein the reference smart IPC has the same device type as the target smart IPC and the algorithm type of the deployed algorithm is the same;

[0011] The target information is displayed as a search result.

[0012] In a possible implementation, the device resource library includes: a device type field, an identification field, an algorithm type field, and an information field; the device type field is used to store the device type of the smart IPC, the identification field is used to store the identification of the smart IPC, the algorithm type field is used to store the algorithm type of the algorithm deployed by the smart IPC, and the information field is used to store the first information corresponding to the smart IPC;

[0013] The device resource library is updated in the following ways:

[0014] Obtaining the device type and identification of each of the intelligent IPCs;

[0015] According to the device type and identification of each of the intelligent IPCs, the device type field and the identification field of the device resource library are updated;

[0016] When receiving the subscription request, obtaining the first information corresponding to each of the smart IPCs and the algorithm type of the algorithm deployed by each of the smart IPCs according to the subscription request;

[0017] According to the first information and the algorithm type corresponding to each of the intelligent IPCs, the algorithm type field and the information field are updated to obtain the updated device resource library.

[0018] In a possible implementation, the device type field includes at least one initial device type; and the step of updating the device type field and the identification field of the device resource library according to the device type and identification of each of the intelligent IPCs includes:

[0019] For each of the smart IPCs, determining whether there is a target device type matching the device type of the smart IPC in the at least one initial device type;

[0020] If so, the identification of the intelligent IPC is stored in the identification field and associated with the target device type;

[0021] If not, the device type of the smart IPC is stored in the device type field, the identifier of the smart IPC is stored in the identifier field, and the device type of the smart IPC is associated with the identifier;

[0022] All the intelligent IPCs are traversed to complete the update of the device resource library.

[0023] In a possible implementation, the search platform further pre-stores a data type table and an algorithm table, the data type table including at least one data type and an algorithm type corresponding to each data type; the algorithm table including an identifier of each of the intelligent IPCs, at least one algorithm type corresponding to each of the identifiers, and an algorithm corresponding to each of the algorithm types; the subscription request includes a subscription data type;

[0024] The step of obtaining, according to the subscription request, the first information corresponding to each of the smart IPCs and the algorithm type of the algorithm deployed by each of the smart IPCs; and updating the algorithm type field and the information field according to the first information and the algorithm type corresponding to each of the smart IPCs to obtain the updated device resource library includes:

[0025] Determining a first target algorithm type corresponding to the subscription data type from the data type table;

[0026] For each of the intelligent IPCs, determining a first target algorithm corresponding to the first target algorithm type from the algorithm type table;

[0027] Sending a deployment instruction to each of the intelligent IPCs, the deployment instruction is used to instruct the intelligent IPC to determine a first target algorithm from at least one pre-stored algorithm for deployment, and after the deployment is completed, to extract features from the collected image using the first target algorithm to obtain the image features, and to send the image and the image features as first information to the search platform, and to send the algorithm type of the first target algorithm to the search platform;

[0028] According to the algorithm type of the first target algorithm deployed by each of the smart IPCs and the first information, the algorithm type field and the information field are updated, and the algorithm type of the first target algorithm is associated with the device type of the smart IPC, and the first information is associated with the algorithm type of the first target algorithm to obtain the updated device resource library.

[0029] In a possible implementation, the search platform further pre-stores a data type table, wherein the data type relationship table includes at least one data type and an intelligent algorithm type corresponding to each data type;

[0030] The step of responding to the image search request and determining a target smart IPC from the plurality of smart IPCs includes:

[0031] Preprocessing the image to be searched to obtain the data type of the image to be searched;

[0032] Determine a second target algorithm type corresponding to the data type from the data type table;

[0033] Obtaining the number of remaining resources of each of the intelligent IPCs and the algorithm type corresponding to the deployed algorithm, wherein the number of remaining resources represents the feature extraction capability of the intelligent IPC;

[0034] If the second target algorithm type exists in all the algorithm types, all the intelligent IPCs whose deployed algorithms are the second target algorithm type are used as the initial intelligent IPCs, and the initial intelligent IPC with the largest number of remaining resources is obtained as the target intelligent IPC.

[0035] In a possible implementation manner, after the step of obtaining the number of remaining resources of each of the intelligent IPCs and the algorithm type corresponding to the deployed algorithm, the method further includes:

[0036] Determine whether the second target algorithm type exists among all the algorithm types;

[0037] If it does not exist, the intelligent IPC with the largest number of remaining resources is obtained, and the intelligent algorithm deployed by the intelligent IPC is switched to an algorithm corresponding to the second target algorithm type as the target intelligent IPC.

[0038] In a possible implementation manner, the step of determining target information matching the target feature from all the first information includes:

[0039] Performing feature comparison between the image feature in each of the first information and the target feature to obtain a comparison value corresponding to each of the first information;

[0040] If there is a target comparison value greater than a preset threshold, the first information corresponding to the target comparison value is used as the target information.

[0041] In a second aspect, an embodiment of the present invention further provides an image search device, which is applied to a search platform, wherein the search platform is communicatively connected to a plurality of intelligent network camera IPCs, and each intelligent IPC is pre-deployed with an algorithm; the search platform pre-stores a device resource library, and the device resource library includes first information corresponding to each of the intelligent IPCs, wherein the first information includes images collected by the intelligent IPCs and image features obtained by extracting features from the images;

[0042] The device comprises:

[0043] A determination module, configured to respond to an image search request and determine a target intelligent IPC from the plurality of intelligent IPCs, wherein the image search request includes an image to be searched, an algorithm deployed by the target intelligent IPC matches a data type of the image to be searched, and the target intelligent IPC has the largest number of remaining resources;

[0044] A collaboration module, used for sending the image to be searched to the target intelligent IPC, so that the target intelligent IPC extracts features from the image to be searched to obtain target features, and returns the target features to the search platform;

[0045] A determination module, configured to obtain the first information of each reference smart IPC from the updated device resource library, and determine target information matching the target feature from all the first information, wherein the reference smart IPC has the same device type as the target smart IPC and the algorithm type of the deployed algorithm is the same;

[0046] The display module is used to display the target information as a search result.

[0047] In a third aspect, an embodiment of the present invention further provides a search platform, the search platform comprising:

[0048] one or more processors;

[0049] The memory is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned image search method.

[0050] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the above-mentioned image search method when executed by a processor.

[0051] Compared with the prior art, an embodiment of the present invention provides an image search method, device, electronic device and storage medium, the method comprising: responding to an image search request, determining a target intelligent IPC from a number of intelligent IPCs; then, sending the image to be searched to the target intelligent IPC, so that the target intelligent IPC extracts features of the image to be searched to obtain target features; finally, obtaining the first information of the reference intelligent IPC that is consistent with the device type and algorithm type of the target intelligent IPC from the device resource library, and determining target information that matches the target features from all the first information, the target information includes the image and the image features, and displaying the target information as the search result. Since the feature extraction of the image to be searched is performed on the target intelligent IPC, for a search platform that does not have intelligent parsing capabilities, the function of searching by image can be realized without adding additional hardware resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0053] Figure 1 A schematic diagram of an application scenario of the image search method provided in an embodiment of the present invention.

[0054] Figure 2 A block diagram of an electronic device provided by an embodiment of the present invention.

[0055] Figure 3 A schematic diagram of a flow chart of a picture search method provided by an embodiment of the present invention.

[0056] Figure 4 An intelligent IPC information table provided by an embodiment of the present invention.

[0057] Figure 5 This is one of the information interaction diagrams provided in the embodiments of the present invention.

[0058] Figure 6 The second information interaction diagram provided for the embodiment of the present invention.

[0059] Figure 7 A schematic diagram of a device resource library update process provided by an embodiment of the present invention.

[0060] Figure 8 This is one of the device resource libraries provided in the embodiments of the present invention.

[0061] Fig. 9This is the second device resource library provided in the embodiment of the present invention.

[0062] Fig.10 This is a table of algorithm types provided by the embodiments of the present invention.

[0063] Fig.11 This is the third device resource library provided by the embodiment of the present invention.

[0064] Fig.12 for Figure 3 The flowchart of step S110 in the picture search method is shown.

[0065] Fig.13 The third information interaction diagram provided for the embodiment of the present invention.

[0066] Fig.14 A block diagram of a picture search device provided by an embodiment of the present invention.

[0067] Icons: 100 - search platform; 101 - memory; 102 - processor; 103 - bus; 200 - image search device; 201 - update module; 202 - determination module; 203 - collaboration module; 204 - retrieval module; 205 - display module. DETAILED DESCRIPTION

[0068] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0069] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0070] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0071] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.

[0072] It should be noted that, in the absence of conflict, the features in the embodiments of the present invention may be combined with each other.

[0073] In the actual image search scenario, multiple front-end IPCs are connected to the back-end search platform for unified management and control. The types of front-end IPCs can include ordinary IPCs without intelligent analysis capabilities and intelligent IPCs with intelligent analysis capabilities. The front-end IPCs are installed with algorithms for extracting features from the collected images to obtain image features. The front-end search platform needs to have intelligent analysis capabilities to extract features from the images to be searched to obtain the features of the images to be searched, and perform retrieval and comparison with the image features to determine the image features that match the features of the images to be searched and the corresponding images.

[0074] When the backend search platform does not have intelligent analysis capabilities, it is necessary to add smart card hardware and software parameters to extract features from the search images.

[0075] In addition, since the manufacturers of the front-end IPC may be different and the algorithms installed are different, the feature types of the image features generated by them may also be inconsistent. Therefore, when the back-end platform has weak intelligent parsing capabilities, it can only retrieve the image features in the resource library of the algorithm package installed on the back-end search platform, and cannot retrieve the image features generated by other manufacturers. Or it is necessary to conduct a secondary analysis of the image features generated by all front-end IPCs to form a unified and parseable image feature for the back-end search platform, but this method has very high performance requirements. Ordinary intelligent hardware cannot meet the parsing requirements, so it is necessary to add new intelligent hardware to increase costs.

[0076] In response to the above problems, this implementation provides an image search method, which can realize the image search function without adding additional hardware resources for search platforms that do not have intelligent analysis capabilities.

[0077] Please refer to Figure 1 , Figure 1 The schematic diagram of the application scenario of the image search method provided by this embodiment shows a search platform 100 and several intelligent IPCs, each of which is connected to the search platform 100 through a network, and the image search method in this embodiment is implemented based on a target intelligent IPC determined from the several intelligent IPCs.

[0078] The block diagram of the search platform 100 is shown in FIG. Figure 2 As shown, the search platform 100 can be, but is not limited to, a recorder device such as a digital video recorder (DVR), a network video recorder, or other electronic devices with storage functions. The search platform 100 includes a memory 101, a processor 102, and a bus 103. The memory 101 and the processor 102 are connected via the bus 103.

[0079] The memory 101 is used to store programs, such as the image search device 200. The image search device 200 includes at least one software function module that can be stored in the memory 101 in the form of software or firmware. After receiving the execution instruction, the processor 102 executes the program to implement the image search method in this embodiment.

[0080] Among them, the memory 101 can be, but is not limited to, random access memory (Random Access Memory, RAM), read only memory (Read Only Memory, ROM), programmable read-only memory (Programmable Read-Only Memory, PROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable read-only memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.

[0081] The processor 102 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the image search method in this embodiment can be completed by an integrated logic circuit of hardware in the processor 102 or an instruction in the form of software. The above-mentioned processor 102 can be a general-purpose processor, including a central processing unit (CPU), a microcontroller unit (MCU), a complex programmable logic device (CPLD), a field programmable gate array (FPGA), an embedded ARM and other chips.

[0082] Smart IPC is a network camera with intelligent analysis capabilities.

[0083] exist Figure 1 Based on the search platform 100 shown in FIG. 1 , the image search method provided by this embodiment is introduced. Figure 3 , Figure 3 The following is a flow chart of the image search method provided by this embodiment, which includes the following steps:

[0084] S110, responding to the image search request, determining a target smart IPC from a plurality of smart IPCs, wherein the image search request includes the image to be searched, the algorithm deployed by the target smart IPC matches the data type of the image to be searched, and the target smart IPC has the largest number of remaining resources.

[0085] In this embodiment, the image search request is a request triggered by a user uploading a picture to be searched on the search interface of the search platform 100 .

[0086] Each smart IPC is pre-deployed with an algorithm, which is used to extract features from images collected by the smart IPC to obtain image features.

[0087] The data type of the image to be searched refers to the type of the image to be searched, for example, the data type corresponding to a face image is a face data type.

[0088] The matching of the algorithm deployed by the target intelligent IPC and the data type of the image to be searched means that the algorithm type of the algorithm deployed by the target intelligent IPC matches the data type of the image to be searched. For example, the algorithm type corresponding to the face data type is the face recognition algorithm type.

[0089] The number of remaining resources is used to characterize the capability of intelligent IPC feature extraction.

[0090] S120, sending the image to be searched to the target intelligent IPC, so that the target intelligent IPC extracts features from the image to be searched to obtain target features, and returns the target features to the search platform.

[0091] In this embodiment, the target feature refers to the feature of the image to be searched. For example, the target intelligent IPC is used to extract the features of the face image to obtain the target feature. The target feature may include gender, age, etc.

[0092] S130, obtaining the first information of each reference smart IPC from the updated device resource library, and determining the target information matching the target feature from all the first information, wherein the device type of the reference smart IPC is consistent with that of the target smart IPC and the algorithm type of the deployed algorithm is consistent.

[0093] In this embodiment, the search platform 100 pre-stores a device resource library, which includes first information corresponding to each smart IPC. The first information includes pictures collected by the smart IPC and picture features obtained by extracting features from the pictures.

[0094] The device type can be the manufacturer of the smart IPC. For the same algorithm type, the algorithms supporting the smart IPCs produced by different manufacturers may be different. The formats of the image features obtained by extracting features from images using the algorithms corresponding to different manufacturers may also be different. In this way, when the first information stored in the device resource library comes from different manufacturers, a general search cannot be performed. It is necessary to filter out the first information generated by the same algorithm type deployed by the smart IPC of the same manufacturer, and then perform feature comparison with the target features to determine the target information.

[0095] For example, there are 4 smart IPCs connected to the search platform, and their corresponding information is as follows: Figure 4 The intelligent IPC information table in is shown. The image to be searched uploaded by the user is a face image, and its corresponding data feature is a face feature. The algorithm type matching the face feature is a face recognition algorithm. According to the device type and the number of remaining resources in Table 1, it can be determined that the target intelligent IPC is intelligent IPC1. The image to be searched is sent to intelligent IPC1 for feature extraction to obtain the target features, which include gender and age.

[0096] According to Figure 4 From the smart IPC information table in, we can see that the reference smart IPCs with the same device type and the same algorithm type as the target smart IPC1 are smart IPC1 and smart IPC2. Since the algorithm deployed by the target smart IPC is the same as that deployed by the reference smart IPC, the format of the features of the pictures they generate is also the same. For example, the gender features obtained by extracting features from face pictures using face recognition algorithm a, male gender is represented by 0, and female gender is represented by 1. Then, when searching the first data generated by the reference smart IPC, the target information that matches the target features can be matched.

[0097] S140: Display the target information as search results.

[0098] In this embodiment, the displayed search results include pictures matching the picture to be searched and picture features corresponding to the pictures.

[0099] For easier understanding, please refer to Figure 5 , Figure 5 A schematic diagram of information interaction between the user, the search platform and the target intelligent IPC during the specific implementation of the above steps S110-S140 is shown.

[0100] First, the user uploads the image to be searched to the search platform 100. The search platform 100 determines a target smart IPC from a number of smart IPCs according to the data type of the image to be searched, and sends the image to be searched to the target smart IPC.

[0101] Then, the target intelligent IPC extracts the features of the searched image to obtain the target features, and returns the target features to the search platform 100. The search platform 100 selects the first information corresponding to the reference intelligent IPC from the device resource library, determines the target information matching the target features from the selected first information, and finally returns the target information to the user as the search result.

[0102] Compared with the prior art, the image search method provided in this embodiment determines the target intelligent IPC from a number of intelligent IPCs, sends the image to be searched to the target intelligent IPC for feature extraction to obtain the target feature, and then returns the target feature to the search platform. The search platform determines the target information that matches the target feature from the device resource library and displays it as the search result. Since the feature extraction of the image to be searched is performed on the target intelligent IPC, the search platform does not need to have the feature extraction function. In this way, the function of searching by image can be realized without adding additional hardware resources to the search platform.

[0103] In one possible scenario, when several intelligent IPCs access the search platform 100 for the first time, they need to register and authenticate. Figure 6 The registration and certification process may include:

[0104] First, the user configures the information and authentication password of the search platform 100 for each smart IPC. The information of the search platform 100 may be the device model of the search platform. Then, the user configures the manufacturer, model, identification and authentication password of each smart IPC into the search platform 100.

[0105] Then, the smart IPC sends registration information to the search platform 100, including: manufacturer, device model and identification. The search platform 100 receives the registration information and verifies it. After the verification is completed, it sends a request to the smart IPC, and the smart IPC sends an authentication message again. After the search platform 100 receives the authentication message and verifies successfully, the registration and authentication are completed.

[0106] It should be noted that Figure 6 The smart IPC in the above is any one of several smart IPCs. Each smart IPC needs to be configured according to Figure 6 The registration and authentication are completed by the steps in the embodiment. This embodiment is just for the convenience of explanation and takes any smart IPC as an example for explanation.

[0107] After the authentication is completed, the search platform 100 will update the device resource library to improve the information stored in the device resource library.

[0108] The device resource library includes a device type field, an identification field, an algorithm type field and an information field; the device type field is used to store the device type of the smart IPC, the identification field is used to store the identification of the smart IPC, the algorithm type field is used to store the algorithm type of the algorithm deployed by the smart IPC, and the information field is used to store the first information corresponding to the smart IPC.

[0109] Please refer to Figure 7 , the device resource library can be updated in the following ways, including:

[0110] S210, obtaining the device type and identification of each intelligent IPC.

[0111] In this embodiment, the identifier of the smart IPC is used to uniquely identify each smart IPC, for example, the serial number of the smart IPC.

[0112] S220: Update the device type field and identification field of the device resource library according to the device type and identification of each intelligent IPC.

[0113] In this embodiment, step S220 may include the following detailed steps:

[0114] In the first step, for each smart IPC, it is determined whether there is a target device type matching the device type of the smart IPC in at least one initial device type.

[0115] In this embodiment, the device type field includes at least one initial device type.

[0116] In the second step, if it exists, the identification of the smart IPC is stored in the identification field and associated with the target device type.

[0117] The third step is to store the device type of the smart IPC in the device type field, store the identifier of the smart IPC in the identifier field, and associate the device type and identifier of the smart IPC.

[0118] The fourth step is to traverse all intelligent IPCs to complete the update of the device resource library.

[0119] For example, the device resource library before the update is Figure 8 As shown, the device type field includes at least one initial device type, and the identification field includes at least one identification.

[0120] Assume that two connected smart IPCs have a device type of manufacturer A and an identifier of IPC-4, and a device type of manufacturer C and an identifier of IPC-5. For the first smart IPC, manufacturer A exists in the initial device type, so the identifier is stored in the identifier field and associated with manufacturer A.

[0121] For the second intelligent IPC, the manufacturer C does not exist in the initial device type, so the manufacturer C is stored in the device type field, the identifier IPC-5 is stored in the identifier field, and the manufacturer C and the identifier IPC-5 are associated. The updated device resource library is as follows Fig. 9 shown.

[0122] It should be noted that Figure 8 and Fig. 9 The device resource library in shows only the device type field and the identification field.

[0123] S230: When a subscription request is received, first information corresponding to each smart IPC and an algorithm type of an algorithm deployed by each smart IPC are obtained according to the subscription request.

[0124] In this embodiment, the subscription request is a request initiated by a user for obtaining the first information and the algorithm type.

[0125] S240, updating the algorithm type field and the information field according to the first information and algorithm type corresponding to each intelligent IPC to obtain an updated device resource library.

[0126] In this embodiment, the search platform 100 also pre-stores a data type table and an algorithm table, the data type table includes at least one data type and an algorithm type corresponding to each data type; the algorithm table includes an identifier of each intelligent IPC, at least one algorithm type corresponding to each identifier, and an algorithm corresponding to each algorithm type; the subscription request includes a subscription data type.

[0127] For easier understanding, please continue to refer to Figure 6 , the following will combine Figure 6 Step S230 and step S240 are described in detail.

[0128] The first step is to determine the first target algorithm type corresponding to the subscription data type from the data type table.

[0129] In this embodiment, the subscription data type may be, for example, a face type, and its corresponding first target algorithm type is a face recognition algorithm.

[0130] In the second step, for each intelligent IPC, a first target algorithm corresponding to the first target algorithm type is determined from the algorithm type table.

[0131] In this embodiment, the algorithm type table can be as follows: Fig.10 For example, if the determined first target algorithm type is a face recognition algorithm, the first target algorithm corresponding to the smart IPC-4 is face recognition algorithm a, and the first target algorithm corresponding to the smart IPC-5 is face recognition algorithm b.

[0132] In the third step, a deployment instruction is sent to each intelligent IPC, where the deployment instruction is used to instruct the intelligent IPC to determine a first target algorithm from at least one pre-stored algorithm for deployment, and to use the first target algorithm to extract features of the collected images to obtain image features after the deployment is completed, and to send the images and image features as first information to the search platform, and to send the algorithm type of the first target algorithm to the search platform.

[0133] In this embodiment, the smart IPC may shoot a video or a picture. If a video is shot, the video may be extracted in advance to obtain the picture.

[0134] According to the algorithm type and first information of the first target algorithm deployed by each intelligent IPC, the algorithm type field and the information field are updated, and the algorithm type of the first target algorithm is associated with the device type of the intelligent IPC, and the first information is associated with the algorithm type of the first target algorithm to obtain an updated device resource library.

[0135] In this embodiment, the device resource library after the device type field is updated can be as follows: Fig.11 As shown, the two connected smart IPCs are IPC-4 and IPC-5. The algorithm types corresponding to IPC-4 and IPC-5 are both face recognition algorithms. They are stored in the algorithm type field and associated with their respective corresponding device types, or associated with their respective corresponding identifiers. The first information of IPC-4 -4 and the first information of IPC-5 -5 are stored in the information field and associated with their respective corresponding algorithm types.

[0136] It should be noted that a user can subscribe to subscription data of multiple data types at the same time, and accordingly, each smart IPC also has multiple algorithms installed. In addition, this embodiment is written based on the example of a user subscribing to the data of each smart IPC. A user can also subscribe to the data of several specific smart IPCs and store the corresponding algorithm type and information in the device type table.

[0137] It should be noted that Figure 6 The smart IPC in the above is any one of several smart IPCs. Each smart IPC needs to be configured according to Figure 6 The steps in are performed to complete the update of the device resource library. This embodiment is just for the convenience of explanation and takes any smart IPC as an example for explanation.

[0138] Compared with the prior art, the image search method provided in this embodiment stores the first information of each smart IPC in a device resource library according to the device type of the smart IPC and the type of algorithm deployed before retrieving the first information of each smart IPC. When retrieving the first information according to the target features of the image to be searched, the first information of the reference smart IPC that matches the device type and algorithm type of the target smart IPC is screened according to the device resource library, and then the target information is determined from the screened first information. This can overcome the defect that the search platform cannot integrate the features generated by different algorithms for search.

[0139] The following describes step S110 in detail. Figure 3 Please refer to the basis Fig.12 , step S110 may include the following detailed steps:

[0140] S1101, pre-processing the image to be searched to obtain the data type of the image to be searched.

[0141] In this embodiment, the data type of the image to be searched may be, for example, face data.

[0142] S1102, determining a second target algorithm type corresponding to the data type from the data type table.

[0143] In this embodiment, if the data type is face data, the determined second target algorithm is a face recognition algorithm.

[0144] S1103, obtaining the number of remaining resources of each intelligent IPC and the algorithm type corresponding to the deployed algorithm, where the number of remaining resources represents the feature extraction capability of the intelligent IPC.

[0145] S1104, if there is a second target algorithm type among all algorithm types, all the smart IPCs whose deployed algorithms are the second target algorithm type are used as initial smart IPCs, and the initial smart IPC with the largest number of remaining resources is obtained as the target smart IPC.

[0146] Please continue to refer to Fig.12 After step S1103, the following steps may also be included:

[0147] S110-a, determine whether there is a second target algorithm type among all algorithm types.

[0148] S110-b, if the second target algorithm type does not exist among all algorithm types, obtain the intelligent IPC with the largest number of remaining resources, and switch the intelligent algorithm deployed by the intelligent IPC to the algorithm corresponding to the second target algorithm type as the target intelligent IPC.

[0149] Combine the following Fig.13 , the entire process of steps S1101-S1104 is explained to facilitate understanding.

[0150] When a user uploads a picture to be searched to the search platform 100, the search platform 100 determines the data type of the picture to be searched and determines the second target algorithm type that matches the data type. Then, the search platform 100 sends an acquisition instruction to each smart IPC to obtain the remaining resource count of each smart IPC and the algorithm type corresponding to the deployed algorithm.

[0151] After receiving the information, the search platform 100 determines whether there is a second target algorithm type in the algorithm type. If so, all smart IPCs with the second target algorithm type as the initial smart IPC are used as the initial smart IPC, and the smart IPC with the largest number of remaining resources in the initial smart IPC is used as the target smart IPC.

[0152] If the second target algorithm type does not exist in the algorithm type, the intelligent IPC with the largest number of remaining resources is determined, and the algorithm belonging to the second target algorithm type among the algorithms stored in the intelligent IPC is determined, and the search platform 100 sends a switching instruction to the intelligent IPC, so that the intelligent IPC switches the deployed algorithm to the algorithm corresponding to the second target algorithm type. The intelligent IPC after the algorithm is switched is used as the target intelligent IPC.

[0153] It should be noted that Fig.13 The smart IPCA in the figure is any one of several smart IPCs. Each smart IPC needs to perform the operations performed by the smart IPCA. This is just for the convenience of drawing. Fig.13 It is drawn by taking any intelligent IPC as an example.

[0154] The intelligent IPCB is an intelligent IPC determined from a number of intelligent IPCs, and it may be any one of the several intelligent IPCs. Therefore, the intelligent IPCB and the intelligent IPCA may be the same intelligent IPC.

[0155] After determining the target intelligent IPC, proceed to steps S120-S140. For the specific steps, please refer to the aforementioned content and will not be repeated here.

[0156] for Figure 3 The step of determining the target information matching the target feature from all the first information in step S130 may include the following detailed steps:

[0157] The image features in each first information are compared with the target features to obtain a comparison value corresponding to each first information.

[0158] In this embodiment, the feature comparison may be a calculation of similarity, and the comparison value corresponding to each first information may be the similarity between the image feature and the target feature in each first information.

[0159] If there is a target comparison value greater than a preset threshold, the first information corresponding to the target comparison value is used as the target information.

[0160] In this embodiment, the determined target information may be a plurality of first information. When the target information is a plurality of first information, all of the plurality of first information are displayed as search results.

[0161] Compared with the prior art, this embodiment has the following beneficial effects:

[0162] First, the image search method provided in this embodiment needs to determine the target intelligent IPC before extracting features from the image to be searched, and send the image to be searched to the target IPC for feature extraction. Since the feature extraction of the image to be searched is performed on the target intelligent IPC, the image search function can be realized for search platforms that do not have intelligent parsing capabilities without adding additional hardware resources.

[0163] Secondly, when searching the device resource library, the first information of the reference IPC that is consistent with the device type of the target intelligent IPC and the algorithm type of the deployed algorithm is first screened out, and then the target information is determined from the screened first information, overcoming the defect that the search platform cannot integrate the features generated by different algorithms.

[0164] Finally, when each intelligent IPC is connected to the search platform for the first time, the device type, algorithm type and first information of the intelligent IPC are stored in the device resource library and managed, thereby improving the efficiency of retrieval.

[0165] Please refer to Fig.14 , Fig.14 The block diagram of the image search device 200 provided in this embodiment is shown. The image search device 200 is applied to the search platform 100, the search platform 100 is connected to a plurality of intelligent network camera IPCs in communication, and each intelligent IPC is pre-deployed with an algorithm; the search platform 100 stores a device resource library in advance, the device resource library includes the first information corresponding to each intelligent IPC, the first information includes the image collected by the intelligent IPC and the image features obtained by extracting the features of the image; the device includes:

[0166] The determination module 202 is used to respond to the image search request and determine the target smart IPC from the plurality of smart IPCs, wherein the image search request includes the image to be searched, the algorithm deployed by the target smart IPC matches the data type of the image to be searched, and the target smart IPC has the largest number of remaining resources;

[0167] The collaboration module 203 is used to send the image to be searched to the target intelligent IPC, so that the target intelligent IPC extracts features from the image to be searched to obtain target features, and returns the target features to the search platform;

[0168] A retrieval module 205 is used to obtain the first information of each reference smart IPC from the updated device resource library, and determine the target information matching the target feature from all the first information, wherein the reference smart IPC has the same device type as the target smart IPC and the algorithm type of the deployed algorithm is the same;

[0169] The display module 204 is used to display the target information as a search result.

[0170] Optionally, the device resource library includes: a device type field, an identification field, an algorithm type field and an information field; the device type field is used to store the device type of the smart IPC, the identification field is used to store the identification of the smart IPC, the algorithm type field is used to store the algorithm type of the algorithm deployed by the smart IPC, and the information field is used to store the first information corresponding to the smart IPC;

[0171] The device further includes an updating module 201, wherein the updating module 201 is configured to:

[0172] Get the device type and identification of each smart IPC;

[0173] According to the device type and identification of each intelligent IPC, the device type field and identification field of the device resource library are updated;

[0174] When receiving the subscription request, obtaining the first information corresponding to each smart IPC and the algorithm type of the algorithm deployed by each smart IPC according to the subscription request;

[0175] According to the first information and algorithm type corresponding to each intelligent IPC, the algorithm type field and the information field are updated to obtain an updated device resource library.

[0176] Optionally, the device type field includes at least one initial device type;

[0177] The updating module 201 executes a method of updating the device type field and the identification field of the device resource library according to the device type and identification of each intelligent IPC, including:

[0178] For each smart IPC, determining whether there is a target device type matching the device type of the smart IPC in at least one initial device type;

[0179] If it exists, the identification of the smart IPC is stored in the identification field and associated with the target device type;

[0180] If not present, the device type of the smart IPC is stored in the device type field, the identifier of the smart IPC is stored in the identifier field, and the device type and identifier of the smart IPC are associated;

[0181] Traverse all intelligent IPCs to complete the update of the device resource library.

[0182] Optionally, the search platform also pre-stores a data type table and an algorithm table, the data type table includes at least one data type and an algorithm type corresponding to each data type; the algorithm table includes an identifier of each intelligent IPC, at least one algorithm type corresponding to each identifier, and an algorithm corresponding to each algorithm type; the subscription request includes the subscription data type;

[0183] The updating module 201 executes the method of obtaining the first information corresponding to each smart IPC and the algorithm type of the algorithm deployed by each smart IPC according to the subscription request; updating the algorithm type field and the information field according to the first information and the algorithm type corresponding to each smart IPC to obtain the updated device resource library, including:

[0184] Determine a first target algorithm type corresponding to the subscription data type from the data type table;

[0185] For each of the intelligent IPCs, determining a first target algorithm corresponding to a first target algorithm type from the algorithm type table;

[0186] Sending a deployment instruction to each intelligent IPC, the deployment instruction is used to instruct the intelligent IPC to determine a first target algorithm from at least one pre-stored algorithm for deployment, and after the deployment is completed, extracting features from the collected pictures using the first target algorithm to obtain picture features, and sending the pictures and the picture features as first information to the search platform, and sending the algorithm type of the first target algorithm to the search platform;

[0187] According to the algorithm type and first information of the first target algorithm deployed by each intelligent IPC, the algorithm type field and the information field are updated, and the algorithm type of the first target algorithm is associated with the device type of the intelligent IPC, and the first information is associated with the algorithm type of the first target algorithm to obtain an updated device resource library.

[0188] Optionally, the search platform also pre-stores a data type table, and the data type relationship table includes at least one data type and an intelligent algorithm type corresponding to each data type;

[0189] The determination module 202 executes a method of responding to the image search request and determining a target smart IPC from a plurality of smart IPCs, including:

[0190] Preprocess the image to be searched to obtain the data type of the image to be searched;

[0191] Determine a second target algorithm type corresponding to the data type from the data type table;

[0192] Obtain the number of remaining resources of each intelligent IPC and the algorithm type corresponding to the deployed algorithm. The number of remaining resources represents the feature extraction capability of the intelligent IPC.

[0193] If there is a second target algorithm type among all algorithm types, all intelligent IPCs whose deployed algorithms are the second target algorithm type are used as initial intelligent IPCs, and the initial intelligent IPC with the largest number of remaining resources is obtained as the target intelligent IPC.

[0194] Optionally, the determination module 202 is further configured to:

[0195] Determine whether a second target algorithm type exists among all algorithm types;

[0196] If it does not exist, the intelligent IPC with the largest number of remaining resources is obtained, and the intelligent algorithm deployed by the intelligent IPC is switched to an algorithm corresponding to the second target algorithm type and used as the target intelligent IPC.

[0197] Optionally, the retrieval module 205 executes a method of determining target information matching the target feature from all the first information, including:

[0198] Compare the image features in each piece of first information with the target features to obtain a comparison value corresponding to each piece of first information;

[0199] If there is a target comparison value greater than a preset threshold, the first information corresponding to the target comparison value is used as the target information.

[0200] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the image search device 200 described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0201] This embodiment further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by the processor 102, the image search method disclosed in the above embodiment is implemented.

[0202] In summary, an embodiment of the present invention provides an image search method, device, electronic device and storage medium. The method includes: responding to an image search request, determining a target intelligent IPC from a number of intelligent IPCs; then, sending the image to be searched to the target intelligent IPC, so that the target intelligent IPC extracts features of the image to be searched to obtain target features; finally, obtaining the first information of the reference intelligent IPC that is consistent with the device type and algorithm type of the target intelligent IPC from the device resource library, and determining the target information that matches the target features from all the first information, the target information includes the image and the image features, and displaying the target information as the search result. Since the feature extraction of the image to be searched is performed on the target intelligent IPC, for search platforms that do not have intelligent parsing capabilities, the function of searching by image can be realized without adding additional hardware resources.

[0203] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for searching an image, characterized in that: Applied to a search platform, the search platform is connected to a plurality of intelligent network camera IPCs in communication, and each intelligent IPC is pre-deployed with an algorithm; the search platform pre-stores a device resource library, the device resource library includes first information corresponding to each of the intelligent IPCs, the first information includes pictures collected by the intelligent IPCs and picture features obtained by extracting features from the pictures; The method comprises: In response to the image search request, a target intelligent IPC is determined from the plurality of intelligent IPCs, wherein the image search request includes the image to be searched, the algorithm deployed by the target intelligent IPC matches the data type of the image to be searched, and the target intelligent IPC has the largest number of remaining resources; Sending the image to be searched to the target intelligent IPC, so that the target intelligent IPC extracts features from the image to be searched to obtain target features, and returns the target features to the search platform; Acquire the first information of each reference smart IPC from the updated device resource library, and determine the target information matching the target feature from all the first information, wherein the reference smart IPC has the same device type as the target smart IPC and the algorithm type of the deployed algorithm is the same; Displaying the target information as search results; The search platform also pre-stores a data type table, which includes at least one data type and an intelligent algorithm type corresponding to each data type; the step of responding to the image search request and determining the target intelligent IPC from the plurality of intelligent IPCs includes: Preprocessing the image to be searched to obtain the data type of the image to be searched; Determine a second target algorithm type corresponding to the data type from the data type table; Obtaining the number of remaining resources of each of the intelligent IPCs and the algorithm type corresponding to the deployed algorithm, wherein the number of remaining resources represents the feature extraction capability of the intelligent IPC; If the second target algorithm type exists in all the algorithm types, all the intelligent IPCs whose deployed algorithms are the second target algorithm type are used as the initial intelligent IPCs, and the initial intelligent IPC with the largest number of remaining resources is obtained as the target intelligent IPC.

2. The method according to claim 1, characterized in that The device resource library includes: a device type field, an identification field, an algorithm type field and an information field; the device type field is used to store the device type of the smart IPC, the identification field is used to store the identification of the smart IPC, the algorithm type field is used to store the algorithm type of the algorithm deployed by the smart IPC, and the information field is used to store the first information corresponding to the smart IPC; The device resource library is updated in the following ways: Obtaining the device type and identification of each of the intelligent IPCs; According to the device type and identification of each of the intelligent IPCs, the device type field and the identification field of the device resource library are updated; When receiving the subscription request, obtaining the first information corresponding to each of the smart IPCs and the algorithm type of the algorithm deployed by each of the smart IPCs according to the subscription request; According to the first information and the algorithm type corresponding to each of the intelligent IPCs, the algorithm type field and the information field are updated to obtain the updated device resource library.

3. The method according to claim 2, characterized in that The device type field includes at least one initial device type; the step of updating the device type field and the identification field of the device resource library according to the device type and identification of each of the intelligent IPCs includes: For each of the smart IPCs, determining whether there is a target device type matching the device type of the smart IPC in the at least one initial device type; If so, the identification of the intelligent IPC is stored in the identification field and associated with the target device type; If not, the device type of the smart IPC is stored in the device type field, the identifier of the smart IPC is stored in the identifier field, and the device type of the smart IPC is associated with the identifier; All the intelligent IPCs are traversed to complete the update of the device resource library.

4. The method according to claim 2, characterized in that: The search platform also pre-stores a data type table and an algorithm table, wherein the data type table includes at least one data type and an algorithm type corresponding to each data type; the algorithm table includes an identifier of each of the intelligent IPCs, at least one algorithm type corresponding to each identifier, and an algorithm corresponding to each algorithm type; The subscription request includes a subscription data type; The step of acquiring, according to the subscription request, the first information corresponding to each of the smart IPCs and the algorithm type of the algorithm deployed by each of the smart IPCs; The step of updating the algorithm type field and the information field according to the first information and the algorithm type corresponding to each of the intelligent IPCs to obtain the updated device resource library includes: Determining a first target algorithm type corresponding to the subscription data type from the data type table; For each of the intelligent IPCs, determining a first target algorithm corresponding to the first target algorithm type from the algorithm table; Sending a deployment instruction to each of the intelligent IPCs, the deployment instruction is used to instruct the intelligent IPC to determine a first target algorithm from at least one pre-stored algorithm for deployment, and after the deployment is completed, to extract features from the collected image using the first target algorithm to obtain the image features, and to send the image and the image features as first information to the search platform, and to send the algorithm type of the first target algorithm to the search platform; According to the algorithm type of the first target algorithm deployed by each of the smart IPCs and the first information, the algorithm type field and the information field are updated, and the algorithm type of the first target algorithm is associated with the device type of the smart IPC, and the first information is associated with the algorithm type of the first target algorithm to obtain the updated device resource library.

5. The method according to claim 1, characterized in that After the step of obtaining the number of remaining resources of each of the intelligent IPCs and the algorithm type corresponding to the deployed algorithm, the method further includes: Determine whether the second target algorithm type exists among all the algorithm types; If it does not exist, the intelligent IPC with the largest number of remaining resources is obtained, and the intelligent algorithm deployed by the intelligent IPC is switched to an algorithm corresponding to the second target algorithm type as the target intelligent IPC.

6. The method according to claim 1, characterized in that The step of determining target information matching the target feature from all the first information comprises: Performing feature comparison between the image feature in each of the first information and the target feature to obtain a comparison value corresponding to each of the first information; If there is a target comparison value greater than a preset threshold, the first information corresponding to the target comparison value is used as the target information.

7. A picture search device, characterized in that: Applied to a search platform, the search platform is connected to a plurality of intelligent network camera IPCs in communication, and each intelligent IPC is pre-deployed with an algorithm; the search platform pre-stores a device resource library, the device resource library includes first information corresponding to each of the intelligent IPCs, the first information includes pictures collected by the intelligent IPCs and picture features obtained by extracting features from the pictures; The device comprises: A determination module, configured to respond to an image search request and determine a target intelligent IPC from the plurality of intelligent IPCs, wherein the image search request includes an image to be searched, an algorithm deployed by the target intelligent IPC matches a data type of the image to be searched, and the target intelligent IPC has the largest number of remaining resources; A collaboration module, used for sending the image to be searched to the target intelligent IPC, so that the target intelligent IPC extracts features from the image to be searched to obtain target features, and returns the target features to the search platform; A retrieval module, configured to obtain the first information of each reference smart IPC from the updated device resource library, and determine target information matching the target feature from all the first information, wherein the reference smart IPC has the same device type as the target smart IPC and the algorithm type of the deployed algorithm is the same; A display module, used to display the target information as a search result; The search platform also pre-stores a data type table, which includes at least one data type and an intelligent algorithm type corresponding to each data type; the determination module is specifically used to pre-process the image to be searched to obtain the data type of the image to be searched; determine the second target algorithm type corresponding to the data type from the data type table; obtain the remaining resource number of each intelligent IPC and the algorithm type corresponding to the deployed algorithm, the remaining resource number characterizing the feature extraction capability of the intelligent IPC; if the second target algorithm type exists in all the algorithm types, the intelligent IPCs whose deployed algorithms are the second target algorithm type are all used as the initial intelligent IPC, and the initial intelligent IPC with the largest remaining resource number is obtained as the target intelligent IPC.

8. A search platform, characterized in that: The search platform includes: one or more processors; A memory for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the image search method as described in any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the image search method according to any one of claims 1 to 6 is implemented.