Object recognition method, device, electronic device and storage medium

By performing classification recognition and feature matching on the target image of the object to be recognized, and using similar object label correction, the problem of inaccurate object recognition results in the existing technology is solved and the accuracy of the recognition is improved.

CN115205589BActive Publication Date: 2024-10-15TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210785474.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-04
Publication Date
2024-10-15
Estimated Expiration
2042-07-04

AI Technical Summary

Technical Problem

Object recognition results in the prior art are inaccurate, especially recognition errors caused by confusion in the classification of objects with similar appearances and image imaging variation factors.

Method used

By classifying and identifying the target image of the object to be identified, the image feature information is extracted, and matched with the feature information of the preset object, and the labels of similar objects are used to correct the classification object labels to improve the recognition accuracy.

Benefits of technology

It effectively avoids the situation where similar objects are misclassified as target objects, and improves the accuracy and recall rate of object recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115205589B_ABST
    Figure CN115205589B_ABST
Patent Text Reader

Abstract

The present application relates to the field of image processing technology, and in particular to an object recognition method, device, electronic device and storage medium, the method comprising: classifying and identifying a target image containing an object to be recognized, and obtaining a classified object label of the object to be recognized; the classified object label is at least one object label among the object labels of multiple target objects; extracting image feature information of the target image; determining a matching object label of the object to be recognized based on a feature matching result between the image feature information and the object feature information of a preset object; the preset object includes the multiple target objects and similar objects corresponding to each of the multiple target objects; determining an object recognition label of the object to be recognized based on the classified object label and the matching object label. The present application can improve the accuracy of object recognition results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to an object recognition method, device, electronic device and storage medium. Background Art

[0002] Object recognition can be a technology that processes, analyzes, and understands images to identify whether an image contains a certain type of object. In the prior art, the image to be recognized can be input into a pre-trained classifier, and the classifier is used to identify and classify the objects contained in the image to be recognized, thereby obtaining the corresponding object classification result. On the one hand, the classifier is prone to classification confusion for objects with similar appearances; on the other hand, due to the large number of factors that change in image imaging, such as day and night, distance, angle changes, etc., different images corresponding to the same object will have a low similarity, resulting in inaccurate object recognition results. Summary of the invention

[0003] The technical problem to be solved by the present application is to provide an object recognition method, device, electronic device and storage medium, which can improve the accuracy of object recognition results.

[0004] In order to solve the above technical problems, on the one hand, an embodiment of the present application provides an object recognition method, which may include:

[0005] Classify and identify a target image containing an object to be identified, and obtain a classified object label of the object to be identified; the classified object label is at least one object label among object labels of multiple target objects;

[0006] Extracting image feature information of the target image;

[0007] Based on the feature matching result between the image feature information and the object feature information of the preset object, a matching object label of the object to be identified is determined; the preset object includes the multiple target objects and similar objects corresponding to each of the multiple target objects; the first object label in the matching object label is used to correct the classification object label; the first object label is an object label of a similar object of at least one target object;

[0008] Based on the classified object label and the matched object label, an object recognition label of the object to be recognized is determined.

[0009] On the other hand, an embodiment of the present application provides an object recognition device, including:

[0010] A classification and recognition module, used to classify and recognize a target image containing an object to be recognized, and obtain a classification object label of the object to be recognized; the classification object label is at least one object label among the object labels of multiple target objects;

[0011] A feature extraction module, used to extract image feature information of the target image;

[0012] A feature matching module, configured to determine a matching object label of the object to be identified based on a feature matching result between the image feature information and object feature information of a preset object; the preset object includes the multiple target objects and similar objects corresponding to each of the multiple target objects; a first object label in the matching object label is used to correct the classified object label; the first object label is an object label of a similar object of at least one target object;

[0013] The label determination module is used to determine the object recognition label of the object to be recognized based on the classification object label and the matching object label.

[0014] On the other hand, the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the object recognition method as described above.

[0015] On the other hand, the present application provides a computer storage medium, wherein the storage medium stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded by a processor and executes the object recognition method as described above.

[0016] Implementing the embodiments of the present application has the following beneficial effects:

[0017] The present application obtains a classified object label of the object to be identified by classifying and identifying a target image containing an object to be identified; performs feature matching on the image feature information of the target image and the object feature information of a preset object, and determines the matching object label of the object to be identified based on the feature matching result; the preset object includes multiple target objects and similar objects corresponding to each of the multiple target objects, so that when performing feature matching, the image feature information can be matched with the object feature information of the target object and the similar objects respectively, and a matching object label corresponding to the object to be identified can be obtained, and the matching object label may include the object label of the target object or the object label of the similar object, and the object label of the similar object can be used to correct the classified object label to avoid the situation where similar objects are classified and identified as corresponding target objects during the classification and identification process, resulting in recognition errors; and the classification and identification results are integrated with the matching and identification results to improve the accuracy of object recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 It is a schematic diagram of the implementation environment provided by the embodiment of the present application;

[0020] Figure 2 is a flow chart of an object recognition method provided by an embodiment of the present application;

[0021] Figure 3 This is a flow chart of a method for updating feature information of a preset object provided in an embodiment of the present application;

[0022] Figure 4 is a flow chart of an image information extraction method provided in an embodiment of the present application;

[0023] Figure 5 This is a flow chart of a method for obtaining associated information based on an object to be identified provided in an embodiment of the present application;

[0024] Figure 6 It is the first example diagram provided by the embodiment of the present application;

[0025] Figure 7 is a second example diagram provided in an embodiment of the present application;

[0026] Figure 8 is a third example diagram provided in an embodiment of the present application;

[0027] Fig. 9 is a fourth example diagram provided in an embodiment of the present application;

[0028] Fig.10 is the fifth example diagram provided in the embodiment of the present application;

[0029] Fig.11 is the sixth example diagram provided in the embodiment of the present application;

[0030] Fig.12 is a schematic diagram of an object recognition device provided in an embodiment of the present application;

[0031] Fig.13 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] To make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0034] See also Figure 1 , which shows a schematic diagram of the implementation environment provided by an embodiment of the present application, the implementation environment may include: at least one object recognition request end 110 and an object recognition processing end 120, and the object recognition request end 110 and the object recognition processing end 120 can communicate data through a network.

[0035] Specifically, the object recognition request end 110 can send an object recognition request to the object recognition processing end 120, and the object recognition request may include a target image; when the object recognition processing end 120 receives the object recognition request, it recognizes the target image to determine the object recognition label of the object to be recognized in the target image, and returns the object recognition label to the object recognition request end 110.

[0036] The object recognition request end 110 can communicate with the object recognition processing end 120 based on the browser / server mode (B / S) or the client / server mode (C / S). The object recognition request end 110 may include: physical devices such as smart phones, tablet computers, laptops, digital assistants, smart home appliances, smart wearable devices, and vehicle terminals, and may also include software running in physical devices, such as applications. The operating system running on the object recognition request end 110 in the embodiment of the present application may include but is not limited to Android system, IOS system, Linux, Windows, etc.

[0037] The object recognition processing end 120 can establish a communication connection with the object recognition request end 110 via wired or wireless communication. The object recognition processing end 120 can include an independently operated server, or a distributed server, or a server cluster composed of multiple servers, wherein the server can be a cloud server.

[0038] In order to solve the problem of inaccurate object recognition results in the prior art, the present application embodiment provides an object recognition method, the execution subject of the method can be the above-mentioned object recognition processing end; please refer to Figure 2 , the method may include:

[0039] S210. Classify and identify a target image containing an object to be identified, and obtain a classified object label of the object to be identified; the classified object label is at least one object label among object labels of multiple target objects.

[0040] The recognition of the target image can be based on user triggering or system automatic triggering. In the user triggering scenario, the object recognition request end can generate a corresponding object recognition request in response to the target image determination operation triggered by the user, and send the object recognition request to the object recognition processing end so that the object recognition processing end can perform object recognition on the target image. The target image can specifically be an image selected by the user from the local memory, or an image collected by the user in real time, or an image determined by the user from multimedia information when browsing multimedia information, such as an image frame captured from a short video, etc. In the system automatic triggering scenario, when there is new multimedia information, the system will automatically trigger the object recognition request, and the object recognition processing end can perform object recognition on the image contained in the new multimedia information based on the object recognition request.

[0041] The objects to be identified in this embodiment may include buildings, tourist attractions, natural landscapes, objects, animals, etc.

[0042] In an embodiment of the present application, a classification recognition model can be used to perform object recognition on a target image containing an object to be recognized. The classification recognition model may specifically include a classification feature extraction layer and a classification output layer; wherein the classification feature extraction layer may adopt Resnet-50, Resnet-34 models, etc., and the classification output layer may include a fully connected layer and an activation layer.

[0043] Furthermore, the recognition range of the classification recognition model is consistent with the range of the target object. In order to recognize the object within the target range, the target object within the target range can be predetermined; specifically, the number of classification outputs of the classification recognition model is consistent with the number of target objects, that is, when classifying and recognizing each target image, the classification recognition model can output the classification confidence of each target object in the target image, that is, obtain the classification confidence corresponding to each object label of the multiple target objects. When the target range is updated, that is, when the target object is updated, the classification recognition model needs to be retrained accordingly to adapt to the updated target object, and the number of classification outputs of the retrained classification recognition model is consistent with the number of updated target objects.

[0044] In one example, the number of target objects is M, and the corresponding number of classification outputs of the classification recognition model is also M. When classifying and recognizing the target image, the classification recognition model can output M items of prediction data accordingly, and each item of prediction data can correspond to a target object. For example, the prediction data corresponding to target object 1 may include the classification confidence that the object to be identified in the target image is target object 1.

[0045] Further, after obtaining the classification confidence corresponding to each of the object labels of the multiple target objects, a classification object label can be determined from the object labels of the multiple target objects, wherein the classification confidence corresponding to the classification object label is greater than or equal to the confidence threshold. The classification object label can be one or more, and each classification object label can be an object label of a target object. If there is no object label whose classification confidence is greater than the confidence threshold, the classification recognition result of the target image can be empty. The classification recognition result is empty because the object to be recognized in the target image is not within the target object range, so that the classification result of the classification recognition model shows that the object to be recognized is not a target object, but a non-target object.

[0046] When the target image contains multiple different objects to be identified, the number of corresponding classification object labels can be less than or equal to the number of objects to be identified, specifically one or more. When the classification object label is one, it means that one of the multiple objects to be identified is identified as the target object. When the classification object labels are multiple, it means that multiple objects to be identified are identified as the target object. This can achieve synchronous classification and identification of multiple objects to be identified, and improve object recognition efficiency.

[0047] S220. Extract image feature information of the target image.

[0048] The target image contains an object to be identified, so when feature extraction is performed on the target image to obtain image feature information, the image feature information may include object feature information of the object to be identified. When image feature extraction is performed on the target image, an image feature extraction model may be used to implement it. Specifically, the image feature extraction model may use a Resnet-50, Resnet-34 model, etc.

[0049] In this embodiment, in order to facilitate the online deployment of the model and reduce resource consumption, the scale of the image feature extraction model can be smaller than the scale of the classification feature extraction layer. For example, the image feature extraction model adopts the Resnet-34 model, and the classification feature extraction layer can adopt the Resnet-50 model.

[0050] When extracting features from a target image, the target image may be preprocessed so that the preprocessed image can retain image information related to the object to be identified and reduce image information irrelevant to the object to be identified, thereby improving the efficiency of extracting image feature information and the accuracy of extracting features from the object to be identified.

[0051] S230. Determine the matching object label of the object to be identified based on the feature matching result between the image feature information and the object feature information of the preset object; the preset object includes the multiple target objects and similar objects corresponding to each of the multiple target objects; the first object label in the matching object label is used to correct the classification object label; the first object label is an object label of a similar object of at least one target object.

[0052] In this embodiment, the object feature information of the preset object can be determined in advance, and the object feature information of each preset object has a corresponding object label, so that when the image feature information is matched with the object information of the preset object, the matching object feature information that matches the image feature information can be determined, and the object label corresponding to the matching object feature information can be determined as the matching object label.

[0053] Furthermore, the preset object may include multiple target objects and similar objects corresponding to each of the multiple target objects, so that when performing feature matching, the image feature information can be matched with the object feature information of the target object and the similar object respectively, so that the obtained matching object label can be the object label of the target object or the object label of the similar object.

[0054] Each target object may correspond to one or more similar objects, and the similarity between the target object and its corresponding similar object may be greater than a preset similarity, which may be specifically manifested as the target object being similar to the corresponding similar object in terms of appearance, color, etc. When the target object is determined, the corresponding similar object can be determined, and a corresponding relationship between the target object and the corresponding similar object can be established. Similar objects are not within the scope of the target object, and similar objects can be used to correct the classification recognition results. When the object to be identified is identified as the target object, and the object to be identified is a similar object of the target object, the classification recognition results are corrected. Different target objects may be similar objects to each other, that is, if target object A is similar to target object B, then target object A may be a similar object of target object B, and target object B may also be a similar object of target object A.

[0055] The first object label is an object label of a similar object of at least one target object. Thus, when an object label of a similar object exists in the matching object label, it indicates that a similar object has been matched from the target image, but the similar object is not within the target object recognition range. During the classification process, the similar object may be recognized as the target object corresponding to the similar object. Thus, the classified object label can be corrected by the first object label.

[0056] S240. Determine the object recognition label of the object to be recognized based on the classification object label and the matching object label.

[0057] In this embodiment, the two object recognition results can be fused to obtain the corresponding object recognition result; object recognition can be performed from different recognition angles based on classification recognition and feature matching recognition respectively, and the final object recognition result determined based on the two object recognition results can combine the characteristics of the two recognition methods and assist each other, thereby improving the accuracy of object recognition; specifically, according to the above content of this embodiment, the object labels of similar objects can be used to correct the classification object labels, avoiding the situation where similar objects are classified as corresponding target objects during the classification recognition process, resulting in recognition errors, thereby improving the accuracy of object recognition.

[0058] Furthermore, the classification object label is the object label of the target object, and the matching object may be the object label of the target object, or the object label of a similar object (non-target object), or may include both the object label of the target object and the object label of a similar object (non-target object). For example, the target objects include A, B, C, and D, and the corresponding object labels of the target objects may be object label A, object label B, object label C, and object label D. When the target image is classified and recognized, the classification object label obtained may be object label A, and the matching object label may be object label A; or the classification object label may be object label A, and the matching object label may be object label A' (object label of a similar object of target object A); or the classification object label may be object label A, object label B, and the matching object label may be object label A' (object label of a similar object of target object A), object label B; or the classification object label may be object label A, and the matching object label may be object label B.

[0059] When determining the object identification label of the object to be identified, if the classification object label is the same as the matching object label, the classification object label or the matching object label can be determined as the object identification label. For example, the classification object label can be object label A, the matching object label can be object label A, and the object identification label can be determined as object label A accordingly.

[0060] When determining the object identification label of the object to be identified, when the classification object label is different from the matching object label, and the second object label does not exist in the matching object label, the second object label is the object label of a similar object of any target object, indicating that the objects to be identified in this case are all objects within the target object identification range, and the target image may include multiple different objects to be identified. The classification object label and the matching object label can be merged to obtain the object identification label. Specifically, the classification object label and the matching object label can be combined, the same object labels can be deduplicated, and different object labels can be retained, so that the object labels in the union can be determined as the object identification label. For example, the classification object label can be object label A, the matching object label can be object label B, and the corresponding object identification labels can be object label A and object label B. Therefore, by combining the classification identification results of the target image and the matching identification results to determine the object identification results, it is possible to avoid missed identification of objects and improve the accuracy of object identification.

[0061] When determining the object identification label of the object to be identified, when there is a first object label in the matching object label and there is a third object label in the classification object label, the third object label is the object label of the at least one target object, the matching object label includes the object label of the similar object, and the classification object label includes the object label of the target object corresponding to the similar object, indicating that similar objects are classified as target objects in the classification and identification process, and classification confusion occurs, so that the classification object label can be corrected by the object label of the similar object in the matching object label; specifically, the correction method may include: removing the object label of the at least one target object from the classification object label; determining the object identification label based on the classification object label without the object label of the at least one target object, and the matching object label.

[0062] If the classified object label only contains the object label of the target object, and the matched object only contains the object label of the corresponding similar object, it means that the object to be identified in the target image is not within the range of objects to be identified, that is, the object to be identified is not the target object, and thus the object identification label is empty.

[0063] If the classification object label contains the object label of the target object, the matching object label contains the object label of the corresponding similar object, the classification object label also contains the object labels of other target objects, and / or the matching object label also contains the object labels of other target objects, then the object labels of other target objects in the classification object label and the object labels of other target objects in the matching object label can be unioned, and the object labels in the union can be determined as object recognition labels.

[0064] For example, the classification object label can be object label A, and the matching object label can be object label A' (the object label of a similar object to target object A), which means that in the classification and recognition process, non-target object A is classified as target object A, object label A is removed from the classification object label, object label A' is not within the target range of recognition, and the corresponding determined object recognition label is empty. If the classification object label can be object label A, object label B, and the matching object label can be object label A' (the object label of a similar object to target object A), object label C, object label A is removed from the classification object label, object label A' is not within the target range of recognition, and the union of object label B and object label C can be obtained, and the determined object recognition labels can be object label B and object label C.

[0065] Therefore, the classification object label is corrected by matching the object label, which solves the classification confusion problem caused by classifying similar objects as target objects during the classification and recognition process, thereby improving the accuracy of object recognition.

[0066] In the embodiment of the present application, each target object may correspond to one or more similar objects. According to the above content, similar objects can be used to correct the classification and recognition results to solve the problem of similar objects being classified as target objects during the classification and recognition process. Therefore, the accuracy of similar objects will affect the correction results, and the similar objects of the target object need to be updated. For details, please refer to Figure 3 , which shows a method for updating feature information of a preset object, the method may include:

[0067] S310. Receive a similar object update instruction; the similar object update instruction includes an object identifier of at least one target object, and object feature information of an updated similar object corresponding to the at least one target object.

[0068] S320. Establish a correspondence between the object identification of the at least one target object and the object identification of the updated similar object.

[0069] S330. Based on the corresponding relationship, update the object feature information of the preset object.

[0070] In this embodiment, the updating of similar objects may refer to the adding of similar objects. In the object recognition process, as more and more objects are to be recognized, more and more similar objects similar to each target object will be identified. Therefore, in the classification recognition process, more and more similar objects may be identified as target objects. Therefore, it is necessary to add similar objects of the target object so that the similar objects can better correct the classification recognition results. The object feature information of the preset object can be stored in the object information library, so that the object feature information in the object information library can be updated based on the similar object update instruction. The similar object update instruction may include the object identifier of the target object to be updated, and the object feature information of the updated similar object of the target object; so that the object feature information of the updated similar object can be added to the position corresponding to the target object to realize the updating of the similar object of the target object. For example, for the target object A, its existing similar objects are similar object A1, similar object A2, and similar object A3. The similar object update instruction includes the object feature information of the similar object A4 of the target object A, so that the corresponding relationship between the object feature information of the target object A and the similar object A4 can be established, and then the object information library is updated.

[0071] In this embodiment, the update of similar objects may also refer to the update of existing object feature information of similar objects, that is, the object feature information of the updated similar objects in the similar object update instruction is used to replace the object feature information of the existing similar objects; the updated object feature information of the similar objects has a better ability to express the features of the same similar objects than the existing object feature information. For example, for target object A, its existing similar object is similar object A1, the existing object feature information of similar object A1 is a, and the updated object feature information of similar object A1 is b, where b has a better ability to express the features of similar object A1 than a, so b can be used to replace a.

[0072] By updating the object feature information of similar objects to the target object, the accuracy of the object feature information of the similar objects is improved, thereby improving the accuracy of the object recognition result when the classification recognition result is corrected based on the similar objects.

[0073] Furthermore, since the target image contains the image information of the object to be identified and the image information unrelated to the object to be identified, the target image can be preprocessed to obtain an image related to the object to be identified, and then image feature extraction can be performed on this basis; for details, please refer to Figure 4 , which shows a method for extracting image information, which may include:

[0074] S410. Perform edge texture detection on the target image to determine the image area where the object to be identified is located.

[0075] S420. Determine the image to be extracted based on the image area where the object to be identified is located.

[0076] S430. Perform feature extraction on the image to be extracted to obtain the image feature information.

[0077] Image edge can refer to the local discontinuous features in the image, which can generally be judged based on the gray value. The image edge is the location where the gray value changes, that is, the location where the gradient value is large. Image texture can refer to the recurring local patterns in the image and their arrangement process, and can also be considered as the repetitive pattern of local changes in the image.

[0078] Therefore, by performing edge texture detection on the target image, the image area where the object to be identified is located in the target image can be determined, and then the image to be extracted is determined based on the image area where the object to be identified is located, and feature extraction is performed on the image to be extracted to obtain image feature information. The image feature information here can specifically be the object feature information of the object to be identified.

[0079] By performing edge texture detection on the target image, an image to be extracted corresponding to the object to be identified is obtained. Since the image to be extracted may be the image region where the object to be identified is located, the size of the image to be extracted is generally smaller than the size of the target image. Therefore, when performing image feature extraction on the image to be extracted, the workload of image extraction can be reduced and the efficiency of image feature extraction can be improved. Furthermore, since the image to be extracted is determined based on the image region where the object to be identified is located, the image features extracted based on the image to be extracted can better reflect the object feature information of the object to be identified, thereby improving the accuracy of the object feature expression of the object to be identified.

[0080] In this embodiment, the feature matching result of the image feature information and the object feature information of the preset object may include the feature similarity between the image feature information and the object feature information of the preset object, that is, when matching the image feature information with the object feature information of the preset object, the feature similarity between the image feature information and the object feature information of each preset object can be calculated, so that when determining the matching object label of the object to be identified, the object feature information whose feature similarity with the image feature information is greater than or equal to the preset similarity can be determined as the matching feature information, and the object label corresponding to the matching feature information can be determined as the matching object label.

[0081] Both image feature information and object feature information can be expressed in the form of feature vectors, so when calculating feature similarity, feature similarity can be determined by calculating cosine similarity between feature vectors or calculating distance between feature vectors. Therefore, by calculating feature similarity to determine matching feature information, the accuracy of feature matching can be improved, thereby improving the accuracy of matching object label determination.

[0082] After the object recognition tag is identified by the object recognition method described above in this embodiment, further applications can be performed based on the object recognition tag; for details, please refer to Figure 5 , which shows a method for obtaining associated information based on an object to be identified, the method may include:

[0083] S510. Acquire association information corresponding to the object identification tag; the association information represents description information of a preset object corresponding to the object identification tag.

[0084] S520. Return the associated information.

[0085] After the object identification tag of the object to be identified is identified, in order to further obtain more information about the object to be identified, a request for obtaining associated information of the object to be identified can be triggered. The object identification tag can be carried in the request for obtaining associated information. The object identification processing end can obtain corresponding associated information based on the object identification tag in the request for obtaining associated information. The associated information can represent the description information of the preset object corresponding to the object identification tag. When the object identification result is accurate, the object identification tag of the object to be identified is the real object tag of the object to be identified, and the preset object corresponding to the object identification tag is the object to be identified. Specifically, when the object to be identified is a building, the corresponding associated information can be building introduction information, building navigation information, etc.; when the object to be identified is a tourist attraction, the corresponding associated information can be attraction introduction information, attraction navigation information, attraction ticket purchase information, etc.; when the object to be identified is an animal, the corresponding associated information can be animal introduction information, etc. When the object identification processing end obtains the associated information, the associated information can be returned to the terminal that sent the request for obtaining associated information.

[0086] Therefore, after the object to be identified is identified and the identification result is obtained, the associated information of the object to be identified can be further obtained based on the object identification tag, and returned to the terminal that sent the associated information acquisition request, so as to facilitate the initiator of the associated information request to obtain the associated information, so as to facilitate in-depth understanding of the object to be identified, improve the convenience of obtaining associated information and enhance user experience.

[0087] In this embodiment, when the object identification tag of the object to be identified is obtained, the object identification tag of the object to be identified can be annotated and displayed at the object identification request end. Specifically, the object identification tag can be annotated in the image area where the object to be identified is located. For the annotated and displayed object identification tag, a corresponding associated information acquisition interface can be set. The initiator of the associated information request can call the associated information acquisition interface by triggering the annotated and displayed object identification tag, send an associated information request, and obtain associated information. In this embodiment, the triggering operation of the tag can include single-click, double-click, long-press, and other operations.

[0088] The following is an example of the specific implementation process of the present application, where the target object may include D target buildings, and the object information library may include the image information of the D target buildings, the object feature information of the D target buildings, the image information of the similar buildings corresponding to the D buildings, and the object feature information of the similar buildings corresponding to the D buildings. Specifically, for each similar building (non-target building) corresponding to the target building, similar pictures can be collected in advance manually or automatically; then, based on the image feature extraction model, feature extraction is performed on the target building and the similar building to obtain the V-dimensional feature vectors corresponding to the target building and the similar building, respectively. The building feature vectors can be stored in the form of feature-label pairs, such as (E, label), specifically (E, X) or (E, non-X), where E is a V-dimensional feature vector, and X is the target building; (E, X) indicates that the corresponding image contains the target building X, and (E, non-X) indicates that the corresponding image does not contain the target building X. For example, if picture 1 contains the Guangzhou Tower, and its corresponding feature vector is Ei, then the feature-label pair (Ei, Guangzhou Tower) is recorded in the object information library. Assume that picture 2 contains a TV tower similar to the Guangzhou Tower, but this TV tower does not belong to the range to be identified, and its corresponding feature vector is Ej, then the feature-label pair (Ej, not Guangzhou Tower) is recorded in the object information library.

[0089] like Figure 6 As shown, Picture 3 includes three buildings to be identified. Picture 3 is input into the classification and recognition model and the image feature extraction model respectively. The output of the classification and recognition model is a D-dimensional vector, which corresponds to the confidence of the D target buildings in the recognition range. Each confidence in the D-dimensional vector is traversed, and the label of the target building with a confidence greater than or equal to 0.98 is used as the output classification object label; if there is no target building with a confidence greater than or equal to 0.98, the classification object label is determined to be empty. The output of the image feature extraction model is the image feature information of Picture 3. The image feature information of Picture 3 is matched with the object feature information of each object in the object information library, and the label of the building with a similarity greater than or equal to 0.9 is used as the output matching object label. If there is no building with a similarity greater than or equal to 0.9, the matching object label is empty. As shown Figure 6 As shown, the classification identification labels include the label of building 1 and the label of building 2, and the corresponding confidence levels are 0.999965 and 0.999952 respectively. The matching object labels include the label of building 3, and the corresponding similarity is 0.99995. Since buildings 1, 2 and 3 are all within the identification range, the labels of building 1, 2 and 3 can be merged to obtain the final object identification labels.

[0090] like Figure 7 As shown, picture 4 includes a building to be identified. Picture 4 is input into the classification identification model and the image feature extraction model respectively. The same identification method as above is adopted. The classification identification labels obtained include the label of building 4 and the label of building 5, and the corresponding confidences are 0.999952 and 0.988889 respectively. The matching object label includes the label of the similar object of building 4 (the label of non-building 4), and the corresponding similarity is 0.99995. According to the analysis results, it can be seen that the label of building 4 and the label of non-building 4 included in the identification result are contradictory. It can be determined that the classification identification model has classification confusion during identification, and the non-building 4 similar to building 4 is mistakenly classified as building 4. At this time, building 4 can be deleted from the classification identification label, so that the final identification label is the label of building 5. In this example, building 4 and building 5 can be similar objects to each other, so the classification identification model identifies building 4 and building 5, but excludes building 4 through feature matching, so that the final identification result is building 5.

[0091] After obtaining the object recognition label of the object to be recognized through object recognition, the object recognition label can be marked and displayed. Figure 7 The effect diagram of marking the objects to be identified can be found in Figure 8 (a), where the displayed tag is building 5; when it is necessary to obtain information related to building 5, a related information request can be sent by triggering the displayed tag, and the related information is returned to the initiator of the related information request. The related information is displayed on the display interface of the corresponding terminal of the initiator of the related information request, such as Figure 8 (b) as shown.

[0092] Furthermore, the associated information may include various information. For a building, the associated information may include building introduction information, building navigation information, etc., so that when the object identification label of the object to be identified is displayed, the associated information label may also be displayed, such as Fig. 9 As shown, related information tags can be displayed: introduction information of building 5, navigation information of building 5; when it is necessary to obtain introduction information of building 5, the tag of introduction information of building 5 can be triggered to initiate a request for obtaining introduction information; when it is necessary to obtain building information of building 5, the tag of navigation information of building 5 can be triggered to initiate a request for obtaining navigation information.

[0093] Specifically, when initiating a request to obtain introduction information, the object recognition processing end can directly return the pre-stored introduction information of the building to the initiator of the associated information request; or when initiating a request to obtain introduction information, the corresponding terminal of the initiator of the associated information request can call a search application for obtaining introduction information, jump to the search application and pass in the label of the building, so that the search application searches based on the label of the building and returns the introduction information of the building. When initiating a request to obtain navigation information, the corresponding terminal of the initiator of the associated information request can obtain the current location information, and call a navigation application, jump to the navigation application and pass in the current location information and the location information of the building. The navigation application generates corresponding navigation planning information based on the current location information and the building location information. For the schematic diagram of the request to obtain introduction information of building 5, please refer to Fig.10 For the navigation information acquisition request diagram of building 5, please refer to Fig.11 ; The display of introduction information and navigation information can be displayed on the building 5 display page, or a separate page can be opened for full-screen display.

[0094] In one usage scenario, the object recognition method in this embodiment can be encapsulated into an object recognition application. When a user sees an unfamiliar object, he or she can take a photo of the object to obtain an object image, and then pass the object image into the object recognition application for recognition, or pass an existing image containing an unfamiliar object into the object recognition application for recognition, and display the object recognition tag of the recognized object and the associated information tag on the object recognition application installation end. The user can gain an in-depth understanding of the recognized object based on the object recognition tag and the associated information tag.

[0095] In another usage scenario, when the object recognition processing end detects new multimedia information, it can perform object recognition on each object in the image contained in the new multimedia information, mark the identified objects in each image with object recognition tags, and mark the associated information tags, so that the terminal browsing the multimedia information can display images marked with object recognition tags and associated information tags.

[0096] This application solves the problem that the classification recognition model cannot distinguish similar objects and the inaccurate recognition caused by image acquisition differences by establishing an object information library and using matching recognition results to correct the classification recognition results, thereby improving the recall rate and precision of the object recognition model.

[0097] This embodiment also provides an object recognition device, which can be implemented in hardware and / or software, and can generally be integrated into a client and used in conjunction with a server that provides resources. Fig.12, the device may include:

[0098] The classification and recognition module 1210 is used to classify and recognize the target image containing the object to be recognized, and obtain a classification object label of the object to be recognized; the classification object label is at least one object label among the object labels of multiple target objects;

[0099] A feature extraction module 1220 is used to extract image feature information of the target image;

[0100] A feature matching module 1230 is used to determine a matching object label of the object to be identified based on a feature matching result between the image feature information and object feature information of a preset object; the preset object includes the multiple target objects and similar objects corresponding to each of the multiple target objects; a first object label in the matching object label is used to correct the classification object label; the first object label is an object label of a similar object of at least one target object;

[0101] The label determination module 1240 is used to determine the object recognition label of the object to be recognized based on the classification object label and the matching object label.

[0102] Furthermore, the tag determination module 1240 includes:

[0103] A label merging module is used to merge the classification object label and the matching object label to obtain the object identification label when the classification object label is different from the matching object label and there is no second object label in the matching object label; the second object label is the object label of a similar object to any target object.

[0104] Furthermore, the tag determination module 1240 includes:

[0105] a label removal module, configured to remove the third object label from the classification object label if the first object label exists in the matching object label and the third object label exists in the classification object label; the third object label is the object label of the at least one target object;

[0106] The first determination module is used to determine the object recognition label based on the classified object label with the third object label removed and the matching object label.

[0107] Furthermore, the device also includes:

[0108] An update instruction receiving module, configured to receive a similar object update instruction; the similar object update instruction includes an object identifier of at least one target object, and object feature information of an updated similar object corresponding to the at least one target object;

[0109] A corresponding relationship establishing module, used to establish a corresponding relationship between the object identification of the at least one target object and the object identification of the updated similar object;

[0110] An updating module is used to update the object feature information of the preset object based on the corresponding relationship.

[0111] Furthermore, the feature extraction module 1220 includes:

[0112] An image detection module is used to perform edge texture detection on the target image to determine the image area where the object to be identified is located;

[0113] A second determination module, used to determine the image to be extracted based on the image area where the object to be identified is located;

[0114] The image feature information extraction module is used to extract features from the image to be extracted to obtain the image feature information.

[0115] Furthermore, the feature matching result includes feature similarity between the image feature information and object feature information of the preset object;

[0116] The feature matching module 1230 includes:

[0117] A third determination module is used to determine, based on the feature matching result, object feature information whose feature similarity with the image feature information is greater than or equal to a preset similarity as matching feature information;

[0118] The fourth determination module is used to determine the object tag corresponding to the matching feature information as the matching object tag.

[0119] Furthermore, the device also includes:

[0120] An associated information acquisition module, used to acquire associated information corresponding to the object identification tag; the associated information represents description information of a preset object corresponding to the object identification tag;

[0121] The associated information returning module is used to return the associated information.

[0122] The device provided in the above embodiment can execute the method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of executing the method. For technical details not described in detail in the above embodiment, please refer to the method provided in any embodiment of the present application.

[0123] This embodiment further provides a computer-readable storage medium, in which at least one instruction or at least one program is stored. The at least one instruction or the at least one program is loaded by a processor and executed as any of the above methods of this embodiment.

[0124] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs any of the above methods.

[0125] This embodiment also provides an electronic device, whose structure diagram is shown in FIG. Fig.13 The device 1300 may vary greatly due to different configurations or performances, and may include one or more central processing units (CPU) 1322 (e.g., one or more processors) and memory 1332, one or more storage media 1330 (e.g., one or more mass storage devices) storing application programs 1342 or data 1344. Among them, the memory 1332 and the storage medium 1330 may be short-term storage or persistent storage. The program stored in the storage medium 1330 may include one or more modules (not shown in the figure), each module may include a series of instruction operations on the device. Furthermore, the central processing unit 1322 may be configured to communicate with the storage medium 1330 and execute a series of instruction operations in the storage medium 1330 on the device 1300. The device 1300 may also include one or more power supplies 1326, one or more wired or wireless network interfaces 1350, one or more input and output interfaces 1358, and / or, one or more operating systems 1341, such as Windows Server TM , Mac OS X TM , Unix TM , Linux TM , FreeBSD TM Etc. Any of the above methods in this embodiment can be based on Fig.13 The device shown is implemented.

[0126] This specification provides method operation steps as described in the embodiments or flow charts, but more or fewer operation steps may be included based on conventional or non-creative labor. The steps and sequence listed in the embodiments are only one way of executing the sequence of many steps and do not represent the only execution sequence. When the actual system or interrupt product is executed, it can be executed in sequence or in parallel according to the method shown in the embodiments or the drawings (for example, in a parallel processor or multi-threaded processing environment).

[0127] The structure shown in this embodiment is only a partial structure related to the scheme of the present application, and does not constitute a limitation on the device to which the scheme of the present application is applied. The specific device may include more or fewer components than shown, or combine certain components, or have different arrangements of components. It should be understood that the method, device, etc. disclosed in this embodiment can be implemented in other ways. For example, the device embodiment described above is only schematic. For example, the division of the modules is only a division of a logical function. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or unit modules.

[0128] Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the whole or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., various media that can store program codes.

[0129] Those skilled in the art may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this specification can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0130] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. An object recognition method, characterized in that: include: Classifying and identifying a target image containing an object to be identified to obtain a classified object label of the object to be identified; The classification object label is at least one object label among the object labels of multiple target objects; Extracting image feature information of the target image; Based on the feature matching result between the image feature information and the object feature information of the preset object, a matching object label of the object to be identified is determined; the preset object includes the multiple target objects and similar objects corresponding to each of the multiple target objects; the first object label in the matching object label is used to correct the classification object label; the first object label is an object label of a similar object of at least one target object; Determining an object recognition label of the object to be recognized based on the classification object label and the matching object label; The determining the object recognition label of the object to be recognized based on the classification object label and the matching object label includes: In the case where the first object tag exists in the matching object tags and the third object tag exists in the classification object tags, removing the third object tag from the classification object tags; the third object tag is the object tag of the at least one target object; The object recognition label is determined based on the classified object label with the third object label removed and the matched object label.

2. The method according to claim 1, characterized in that The determining the object recognition label of the object to be recognized based on the classification object label and the matching object label includes: When the classification object label is different from the matching object label and there is no second object label in the matching object label, the classification object label and the matching object label are merged to obtain the object recognition label; the second object label is an object label of a similar object to any target object.

3. The method according to any one of claims 1 to 2, characterized in that: The method further comprises: receiving a similar object update instruction; the similar object update instruction including an object identifier of at least one target object and object feature information of an updated similar object corresponding to the at least one target object; Establishing a correspondence between the object identification of the at least one target object and the object identification of the updated similar object; Based on the corresponding relationship, the object feature information of the preset object is updated.

4. The method according to claim 1, characterized in that: The extracting the image feature information of the target image comprises: Performing edge texture detection on the target image to determine the image area where the object to be identified is located; Determining an image to be extracted based on the image region where the object to be identified is located; Perform feature extraction on the image to be extracted to obtain the image feature information.

5. The method according to claim 1 or 4, characterized in that: The feature matching result includes feature similarity between the image feature information and the object feature information of the preset object; The determining the matching object label of the object to be identified based on the feature matching result between the image feature information and the object feature information of the preset object includes: Based on the feature matching result, object feature information whose feature similarity with the image feature information is greater than or equal to a preset similarity is determined as matching feature information; The object tag corresponding to the matching feature information is determined as the matching object tag.

6. The method according to claim 1, characterized in that After determining the object recognition label of the object to be recognized based on the classification object label and the matching object label, the method further includes: Acquire association information corresponding to the object identification tag; the association information represents description information of a preset object corresponding to the object identification tag; Returns the associated information.

7. An object recognition device, characterized in that: include: A classification and recognition module is used to classify and recognize a target image containing an object to be recognized, and obtain a classification object label of the object to be recognized; The classification object label is at least one object label among the object labels of multiple target objects; A feature extraction module, used to extract image feature information of the target image; A feature matching module, configured to determine a matching object label of the object to be identified based on a feature matching result between the image feature information and object feature information of a preset object; the preset object includes the multiple target objects and similar objects corresponding to each of the multiple target objects; a first object label in the matching object label is used to correct the classified object label; the first object label is an object label of a similar object of at least one target object; A label determination module, used to determine the object recognition label of the object to be recognized based on the classification object label and the matching object label; The label determination module comprises: a label removal module, configured to remove the third object label from the classification object label if the first object label exists in the matching object label and the third object label exists in the classification object label; the third object label is the object label of the at least one target object; The first determination module is used to determine the object recognition label based on the classified object label with the third object label removed and the matching object label.

8. The device according to claim 7, characterized in that The label determination module comprises: A label merging module is used to merge the classification object label and the matching object label to obtain the object identification label when the classification object label is different from the matching object label and there is no second object label in the matching object label; the second object label is the object label of a similar object to any target object.

9. The device according to any one of claims 7-8, characterized in that: The device also includes: An update instruction receiving module, configured to receive a similar object update instruction; the similar object update instruction includes an object identifier of at least one target object, and object feature information of an updated similar object corresponding to the at least one target object; A corresponding relationship establishing module, used to establish a corresponding relationship between the object identification of the at least one target object and the object identification of the updated similar object; An updating module is used to update the object feature information of the preset object based on the corresponding relationship.

10. The device according to claim 7, characterized in that The feature extraction module comprises: An image detection module is used to perform edge texture detection on the target image to determine the image area where the object to be identified is located; A second determination module, used to determine the image to be extracted based on the image area where the object to be identified is located; The image feature information extraction module is used to extract features from the image to be extracted to obtain the image feature information.

11. The device according to claim 7 or 10, characterized in that The feature matching result includes feature similarity between the image feature information and the object feature information of the preset object; The feature matching module comprises: A third determination module is used to determine, based on the feature matching result, object feature information whose feature similarity with the image feature information is greater than or equal to a preset similarity as matching feature information; The fourth determination module is used to determine the object tag corresponding to the matching feature information as the matching object tag.

12. The device according to claim 7, characterized in that The device also includes: An associated information acquisition module, used to acquire associated information corresponding to the object identification tag; the associated information represents description information of a preset object corresponding to the object identification tag; The associated information returning module is used to return the associated information.

13. An electronic device, characterized in that: The device includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the object recognition method according to any one of claims 1 to 6.

14. A computer storage medium, characterized in that: The storage medium stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded by a processor and executes the object recognition method according to any one of claims 1 to 6.