Target calibration method, target identification method, electronic device and readable storage medium

By obtaining detection frame and target area features in the image, using intelligent analysis models to identify target categories and attribute subcategories, and establishing spatial mapping relationships, the efficiency and accuracy problems of target calibration in the existing technology are solved, and efficient goals are achieved. Identification and calibration.

CN118570559BActive Publication Date: 2024-10-22ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411042520.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-10-22
Estimated Expiration
2044-07-31

AI Technical Summary

Technical Problem

In the existing technology, the efficiency of target calibration is low and the accuracy is difficult to guarantee, making it difficult to achieve efficient recognition of targets in images.

Method used

By obtaining the characteristics of the detection frame and target area in the image to be detected, the intelligent analysis model is used for identification, the target category and attribute subcategory are determined, and the calibration height of the attribute subcategory combination under the target category and the relationship between the detection frame and the calibration height are established. Spatial mapping relationship improves the convenience and accuracy of calibration.

Benefits of technology

It achieves precise and accurate identification and calibration of targets, improves the convenience and accuracy of target calibration, and enables the model to efficiently complete the entire process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570559B_ABST
    Figure CN118570559B_ABST
Patent Text Reader

Abstract

The present application discloses a target calibration method, a target recognition method, an electronic device and a readable storage medium, the method comprising: obtaining a detection frame corresponding to a target to be detected in a detected image, and target area features extracted in the detection frame; using an intelligent analysis model to identify each target area feature, determining the target category corresponding to each target to be detected and multiple attribute subclasses under the target category; obtaining the calibration height corresponding to the target to be detected matched by the same attribute subclass combination under at least one target category; calibrating the spatial mapping relationship between the detection frame and the calibration height of at least part of the target to be detected. In the above manner, the present application can improve the convenience and accuracy of target calibration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a target calibration method, a target recognition method, an electronic device and a readable storage medium. Background Art

[0002] With the advent of the data age, a large number of images need to be processed, and how to identify the attributes of targets in images has become an important direction. In the prior art, in order to more accurately identify targets in images, calibrators are usually required to manually calibrate the information of targets in the actual space, resulting in low calibration efficiency and a huge test of the professionalism of calibrators, making it difficult to guarantee the accuracy of calibration. In view of this, how to improve the convenience and accuracy of target calibration has become an urgent problem to be solved. Summary of the invention

[0003] The main technical problem solved by the present application is to provide a target calibration method, a target recognition method, an electronic device and a readable storage medium, which can improve the convenience and accuracy of target calibration.

[0004] To solve the above technical problems, the first aspect of the present application provides a target calibration method, including: obtaining a detection frame corresponding to a target to be detected in an image to be detected, and target area features extracted within the detection frame; using an intelligent analysis model to identify each of the target area features, and determining a target category corresponding to each of the targets to be detected and a plurality of attribute subcategories under the target category; obtaining a calibration height corresponding to a target to be detected matched by the same attribute subcategory combination under at least one of the target categories; and calibrating the spatial mapping relationship between the detection frame and the calibration height of at least part of the targets to be detected.

[0005] To solve the above-mentioned technical problems, the second aspect of the present application provides a target recognition method, which includes: obtaining a detection frame corresponding to a target to be detected in an image to be detected and an estimated category corresponding to the target to be detected; obtaining a spatial mapping relationship corresponding to at least part of the target to be detected, and determining a calibrated height corresponding to at least part of the target to be detected based on the detection frame and the spatial mapping relationship; wherein the spatial mapping relationship is obtained by the method described in the first aspect above; at least based on the estimated category and the calibrated height corresponding to at least part of the target to be detected, the estimated categories of all the targets to be detected are screened to obtain the detection category of at least part of the target to be detected.

[0006] To solve the above technical problems, the third aspect of the present application provides an electronic device, which includes: a memory and a processor coupled to each other, wherein the memory stores program data, and the processor calls the program data to execute the method described in the first aspect or the second aspect.

[0007] In order to solve the above technical problems, the fourth aspect of the present application provides a computer-readable storage medium on which program data is stored. When the program data is executed by a processor, the method described in the first aspect or the second aspect is implemented.

[0008] The above scheme obtains a detection frame corresponding to the target to be detected in the image to be detected, and obtains the target area features extracted from the image area within the detection frame, and uses the intelligent analysis model to identify each target area feature, so as to more finely identify each target area feature again, determine the target category corresponding to each target to be detected and the multiple attribute subclasses under the target category, so that the target division is more precise and accurate, and for at least one target category, obtains the calibrated height corresponding to the target to be detected matched by the same attribute subclass combination under the target category, so that the calibrated height matched by each attribute subclass combination under the same target category is more accurate, and calibrates the spatial mapping relationship between the detection frame of the target to be detected with the calibrated height and the calibrated height, so that the detection frame of the target to be detected is accurately associated with the height in the spatial information, and the whole process can be efficiently completed by the model, thereby improving the convenience and accuracy of target calibration. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. 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. Among them:

[0010] Figure 1 It is a flow chart of an implementation method of the target calibration method of the present application;

[0011] Figure 2 It is a flow chart of another implementation method of the target calibration method of the present application;

[0012] Figure 3 It is a flowchart of an implementation method of the target recognition method of the present application;

[0013] Figure 4 It is a structural schematic diagram of an embodiment of the electronic device of the present application;

[0014] Figure 5 It is a structural schematic diagram of an implementation method of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0015] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments, and different implementation methods can be adaptively combined. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0016] The terms "system" and "network" are often used interchangeably in this article. The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship. In addition, "many" in this article means two or more than two.

[0017] The target calibration method provided in the present application is used to calibrate the target in the image, and its corresponding execution subject is a terminal capable of performing image processing.

[0018] See also Figure 1 , Figure 1 : is a flow chart of an implementation method of a target calibration method of the present application, the method comprising:

[0019] S101: Obtain a detection frame corresponding to a target to be detected in an image to be detected, and target region features extracted within the detection frame.

[0020] Specifically, a detection frame corresponding to a target to be detected in the image to be detected is obtained, and target area features extracted from the image area within the detection frame are obtained.

[0021] In one application, target detection is performed on a target in an image to be detected to obtain a dynamic target in the image to be detected, a detection frame corresponding to the target to be detected is identified and target tracking is performed, features are extracted from an image area of ​​the target within the detection frame in at least one image, and target area features are obtained based on the extracted features.

[0022] In another application, target detection is performed on the target in the image to be detected and the candidate frame corresponding to the target is identified, the candidate frame of the target is deduplicated to obtain the detection frame of the target, and feature extraction is performed on the image area within the detection frame to obtain the target area feature.

[0023] Optionally, the original image corresponding to the image to be detected is acquired by an image acquisition device, and the original image is preprocessed to obtain an image to be detected with a uniform size.

[0024] In some implementation scenarios, a detection algorithm is used to detect targets in each area of ​​the image to be identified, wherein the detection algorithm includes but is not limited to a region-based convolutional neural network algorithm (R-CNN), a single shot multibox detector algorithm (SSD), and a real-time target detection algorithm (You Only Look Once, YOLO). After obtaining the detected target, a deduplication algorithm is used to deduplicate the overlapping sub-areas. Since the generated results of the above detection method include but are not limited to target boxes, target categories, and target scores, the overlapping targets are deduplicated based on the overlapping state, category, and target score of the target. Among them, the deduplication algorithm includes but is not limited to the non-maximum suppression algorithm (NMS). The above targets are tracked by a tracking algorithm, and the appearance and motion information of the target are modeled, so as to predict the target motion state and calibrate the position of the target, and at the same time assign an identifier to the target. Among them, the tracking algorithm includes but is not limited to the optical flow method and the Kalman filter.

[0025] S102: Using an intelligent analysis model to identify features of each target area, determine a target category corresponding to each target to be detected and multiple attribute subcategories under the target category.

[0026] Specifically, the intelligent analysis model is used to identify the characteristics of each target area, so as to identify each target area characteristic more finely, determine the target category corresponding to each target to be detected and the various attribute subcategories under the target category, so as to make the target division more precise and accurate.

[0027] In one application method, a prompt text matching the target area is obtained, wherein the prompt text includes at least instruction content for instructing an intelligent analysis model to identify target categories and attribute subcategories, and each target area feature and the prompt text are input into the intelligent analysis model to obtain the target category corresponding to each target to be detected output by the intelligent analysis model and the multiple attribute subcategories under the target category.

[0028] In another application method, a prompt template is obtained, and a prompt text is generated based on the prompt template, wherein the prompt text includes example samples and indicative content for instructing the intelligent analysis model to identify target categories and attribute subclasses, and the example samples include sample targets and their corresponding target categories and attribute subclasses. Each target area feature and the prompt text are input into the intelligent analysis model to obtain the target category corresponding to each target to be detected and the multiple attribute subclasses under the target category output by the intelligent analysis model.

[0029] For ease of explanation, taking the target categories of the targets to be detected including vehicles and other targets as an example, the attribute subcategories of the vehicle include at least the length, height and color of the vehicle. The attribute subcategories of each target category are strongly correlated with the corresponding target category. This application does not impose specific restrictions on specific target categories and their corresponding attribute subcategories.

[0030] Optionally, the intelligent analysis model is a generative large language model, which may include but is not limited to deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), long short-term memory networks (LSTM), and generative pre-trained Transformer models, etc. No specific restrictions are made on the specific structure and deployment of the large language model.

[0031] S103: Obtain a calibrated height corresponding to a target to be detected that matches the same attribute subclass combination under at least one target category.

[0032] Specifically, for at least one target category, the calibrated height corresponding to the target to be detected matched by the same attribute subclass combination under the target category is obtained, so that the calibrated height matched by each attribute subclass combination under the same target category has higher accuracy.

[0033] Optionally, when some target categories can be distinguished based on height difference, the calibrated heights of different attribute subcategory combinations under some target categories are obtained; when any two target categories cannot be distinguished based on height difference, the calibrated heights of different attribute subcategory combinations under all target categories are obtained.

[0034] It can be understood that each attribute subclass specifically corresponds to at least one attribute value, and the attribute subclass combination consists of an attribute value corresponding to each attribute subclass.

[0035] In one application, for the current target category, a search image including the target to be detected that matches the same attribute subclass combination under the target category is obtained, and a calibrated height of the target to be detected is determined based on at least part of the search image.

[0036] In another application mode, for the current target category, the retrieval knowledge matching the same attribute subclass combination under the target category is obtained, and the calibrated height of the target to be detected is extracted from the retrieval knowledge, wherein the retrieval knowledge is obtained from an open source knowledge base.

[0037] S104: Calibrate a spatial mapping relationship between a detection frame of at least part of the target to be detected and a calibrated height.

[0038] Specifically, the spatial mapping relationship between the detection frame of the target to be detected having the calibrated height and the calibrated height is calibrated so that the detection frame of the target to be detected is accurately associated with the height in the spatial information.

[0039] In one application, the size information of the target to be detected is obtained by averaging the detection frames in multiple images to be detected, a conversion function between the size information and the calibrated height is determined, and based on the conversion function, a spatial mapping relationship between the detection frame and the calibrated height is generated.

[0040] In another application method, the image size of the image to be detected and the detection position of the target to be detected in the image to be detected are obtained, and the image sizes, detection positions and detection frames of multiple images to be detected, as well as the calibrated heights of the targets to be detected corresponding to the attribute subclass combinations are input into the intelligent analysis model to obtain the spatial mapping relationship between the detection frame and the calibrated height output by the intelligent analysis model.

[0041] It is understandable that the entire process can be completed efficiently by the model, thereby improving the convenience and accuracy of target calibration.

[0042] The above scheme obtains a detection frame corresponding to the target to be detected in the image to be detected, and obtains the target area features extracted from the image area within the detection frame, and uses the intelligent analysis model to identify each target area feature, so as to more finely identify each target area feature again, determine the target category corresponding to each target to be detected and the multiple attribute subclasses under the target category, so that the target division is more precise and accurate, and for at least one target category, obtains the calibrated height corresponding to the target to be detected matched by the same attribute subclass combination under the target category, so that the calibrated height matched by each attribute subclass combination under the same target category is more accurate, and calibrates the spatial mapping relationship between the detection frame of the target to be detected with the calibrated height and the calibrated height, so that the detection frame of the target to be detected is accurately associated with the height in the spatial information, and the whole process can be efficiently completed by the model, thereby improving the convenience and accuracy of target calibration.

[0043] See also Figure 2 , Figure 2 : is a flow chart of another embodiment of the target calibration method of the present application, the method comprising:

[0044] S201: Obtain a detection frame corresponding to the target to be detected in the image to be detected, and target area features extracted in the detection frame.

[0045] Specifically, a detection frame corresponding to a target to be detected in the image to be detected is obtained, and target area features extracted from the image area within the detection frame are obtained.

[0046] In some implementation scenarios, in response to obtaining an image to be detected, a dynamic target in the image to be detected is detected to obtain a detection position of the target to be detected in the image to be detected; an estimated category matching the detection position is obtained, and a detection frame of the target to be detected in the image to be detected is determined based on the detection position and the estimated category; features are extracted from the area within the detection frame, and dimensionality reduction is performed on the extracted features to obtain target area features.

[0047] Specifically, when an image to be detected is obtained, dynamic targets in the image to be detected are detected, and the dynamic targets are taken as targets to be detected. The detection position of the targets to be detected in the image to be detected is determined, and the targets to be detected are preliminarily divided based on the detection position to obtain an estimated category of the targets to be detected. Based on the detection position and the estimated category, a detection frame of the target to be detected is determined in the image to be detected, and features are extracted from the image area within the detection frame. The extracted features are subjected to dimensionality reduction processing to obtain target area features, so as to reduce resource consumption of target area features during transmission and improve transmission efficiency.

[0048] It can be understood that the estimated category is a preliminary judgment of the target to be detected, thereby assisting the calibration of the detection frame. Based on the estimated category of the target to be detected, the area matching at least part of the target to be detected is expanded to obtain the detection frame of the target to be detected.

[0049] In a specific implementation scenario, the features extracted from the area within the detection frame are downsampled, and the downsampled features are feature encoded to obtain the target area features after dimensionality reduction, thereby improving the compression rate of the target area features. The target area features are at least related to the color, texture and shape contained in the area within the detection frame.

[0050] Optionally, the target area feature corresponds to an encryption and decryption process during the transmission process, thereby improving the security of the transmission.

[0051] S202: Using an intelligent analysis model to identify features of each target area, determine a target category corresponding to each target to be detected and multiple attribute subcategories under the target category.

[0052] Specifically, the analytical capability of the intelligent analysis model is used to identify the characteristics of each target area, and obtain the target category corresponding to each target to be detected and multiple attribute subcategories under the target category.

[0053] In some implementation scenarios, image restoration is performed based on the features of each target area to obtain a restored image corresponding to each detection box; a prompt text matching the restored image is obtained, and the restored image and its matching prompt text are respectively input into an intelligent analysis model to obtain a target category corresponding to each target to be detected and a plurality of attribute subcategories under the target category; wherein the prompt text is used to instruct the intelligent analysis model to identify the target to be detected in the restored image.

[0054] Specifically, based on the method of acquiring the target area features, the target area features are restored to obtain a restored image corresponding to each detection frame, so that the intelligent analysis model can re-analyze the image according to the model strategy to improve the accuracy of the analysis.

[0055] Furthermore, a prompt text matching the restored image is obtained, wherein the prompt text is used to instruct the intelligent analysis model to identify the target to be detected in the restored image, and each restored image and its corresponding prompt text are respectively input into the intelligent analysis model to obtain the target category corresponding to each target to be detected output by the intelligent analysis model and the multiple attribute subcategories under the target category. Therefore, through the secondary reconfirmation of the intelligent analysis model, the estimated category of the target to be detected is reclassified to obtain a more accurate target category, and a more subdivided attribute subcategory under the target category.

[0056] S203: Obtain a calibrated height corresponding to a target to be detected that matches the same attribute subclass combination under at least one target category.

[0057] Specifically, a plurality of target categories correspond to respective reference heights, wherein the reference height is an empirical value of a target to be detected that matches the target category, and can be used to judge the height difference between targets to be detected of different target categories.

[0058] It is understandable that, affected by the different attribute subcategories under the target category, the calibrated heights of the targets to be detected matched by different attribute subcategory combinations have height deviations compared to the reference height. For example, the attribute subcategories under the target category of animals include breed and size. The reference height of animals is 0.5 meters, but the calibrated heights of large dogs and medium-sized cats in different attribute subcategory combinations are 0.7 meters and 0.2 meters respectively.

[0059] In some implementation scenarios, based on the reference heights corresponding to all target categories, at least one category to be calibrated is determined from all target categories; using an intelligent analysis model, at least one query height corresponding to the target to be detected that matches the same attribute subclass combination under the category to be calibrated is obtained, and using all the query heights, the corresponding calibration height of the target to be detected is generated.

[0060] Specifically, based on the reference heights corresponding to all target categories, it is determined whether all target categories need to obtain the calibration heights, thereby determining at least one category to be calibrated among all target categories.

[0061] Furthermore, an intelligent analysis model is used to obtain at least one query height of the target to be detected that matches the same attribute subclass combination under the category to be calibrated from the open source database. Based on all query heights, the calibration height of the target to be detected that matches the attribute subclass combination is generated, making the calibration height of the target to be detected more accurate and reliable.

[0062] Optionally, the calibrated height may be obtained based on the mean of all query heights, or based on the median of all query heights, or may be obtained using other processing methods, and the present application does not impose any specific limitation on this.

[0063] In a specific implementation scenario, based on the reference heights corresponding to all target categories, at least one category to be calibrated is determined from all target categories, including: obtaining a reference height difference between the reference heights corresponding to every two target categories; at least taking a target category whose reference height difference is less than a height difference threshold as a category to be calibrated; wherein, when all reference height differences are greater than or equal to the height difference threshold, the category to be identified includes a specified category specified from all target categories.

[0064] Specifically, the reference height difference between the reference heights corresponding to every two target categories is obtained, the difference between all reference height differences and the height difference threshold is determined, and at least the target category whose reference height difference is less than the height difference threshold is taken as the category to be calibrated, thereby screening out the categories that are more difficult to distinguish.

[0065] It can be understood that when all reference height differences are greater than or equal to the height difference threshold, the category to be identified includes a specified category from all target categories, and the specified specified category can be at least one, so that the specified category is calibrated as the category to be calibrated, so that at least the calibration height of all attribute subclass combinations under the specified category can be calibrated more accurately, and the specified category can be clearly distinguished from the unspecified category, thereby improving the accuracy of distinguishing targets of different categories when the calibrated spatial mapping relationship is applied to target recognition.

[0066] S204: Obtain size information of a detection frame of the target to be detected with a calibrated height.

[0067] Specifically, the size information of the detection frame of the target to be detected whose height has been calibrated is obtained, wherein the size information is related to the width and height of the detection frame.

[0068] Optionally, the size information corresponds to a pixel size in the image to be detected.

[0069] S205: constructing a spatial reconstruction model based on the spatial mapping relationship between the size information of each group of detection frames and the calibrated height; wherein, when the size information of the detection frames is input into the spatial reconstruction model, the calibrated height matched by the size information is obtained.

[0070] Specifically, a data pair consisting of size information and calibrated height of each group of detection frames is obtained, and a spatial reconstruction model is constructed based on the spatial mapping relationship between the size information and the calibrated height in each group of data pairs.

[0071] Optionally, the spatial reconstruction model includes but is not limited to a deep learning network, a machine learning network and linear regression. When the size information of the detection frame is input into the spatial reconstruction model, the calibrated height matching the size information is obtained, so that after obtaining the detection frame and its corresponding size information, the spatial reconstruction model can be used to obtain the calibrated height of the target to be detected, thereby improving the efficiency of obtaining the calibrated height.

[0072] It is understandable that the spatial mapping relationship can be applied in the subsequent target recognition process, so as to obtain the calibrated height based on the spatial mapping relationship and the size information of the detection frame to determine whether the calibrated height matches the currently recognized category, thereby improving the accuracy of target recognition.

[0073] In this embodiment, a detection frame corresponding to the target to be detected in the image to be detected is obtained, feature extraction is performed on the image area within the detection frame, and the extracted features are subjected to dimensionality reduction processing to obtain target area features, so as to reduce resource consumption of target area features during transmission and improve transmission efficiency. Based on the acquisition method of target area features, the target area features are restored to obtain a restored image corresponding to each detection frame, so that the intelligent analysis model can re-analyze the image according to the strategy of the model to improve the accuracy of the analysis, re-divide the estimated category of the target to be detected, obtain a more accurate target category, and obtain a more subdivided attribute subclass under the target category. At least one category to be calibrated is determined among all target categories, and the intelligent analysis model is used to obtain at least one query height of the target to be detected matched by the same attribute subclass combination under the category to be calibrated from the open source database, and based on all query heights, the calibrated height of the target to be detected matched by the attribute subclass combination is generated, so that the calibrated height of the target to be detected is more accurate and reliable. A data pair consisting of the size information and the calibrated height of each group of detection frames is obtained, and a spatial reconstruction model is constructed based on the spatial mapping relationship between the size information and the calibrated height in each group of data pairs. After obtaining the detection frame and its corresponding size information, the spatial reconstruction model can be used to obtain the calibrated height of the target to be detected, thereby improving the efficiency of obtaining the calibrated height.

[0074] See also Figure 3 , Figure 3: is a flow chart of an implementation method of a target recognition method of the present application, the method comprising:

[0075] S301: Obtain a detection frame corresponding to a target to be detected in an image to be detected and an estimated category corresponding to the target to be detected.

[0076] Specifically, a detection frame corresponding to a target to be detected in the image to be detected is obtained, and the category of the target to be detected is estimated to obtain an estimated category.

[0077] In some implementation scenarios, in response to obtaining an image to be detected, a dynamic target in the image to be detected is detected, a detection position of the target to be detected in the image to be detected is obtained, an estimated category matching the detection position is obtained, and a detection frame of the target to be detected in the image to be detected is determined based on the detection position and the estimated category, features are extracted from the area within the detection frame, and dimensionality reduction is performed on the extracted features to obtain target area features.

[0078] In some implementation scenarios, in response to obtaining an image to be detected, a dynamic target in the image to be detected is detected, a detection frame corresponding to the target to be detected is identified and the target is tracked, features are extracted from the image area of ​​the target within the detection frame in at least one image, and target area features are obtained based on the extracted features. Based on the target area features, the category of the target to be identified is estimated to obtain an estimated category.

[0079] S302: Obtain a spatial mapping relationship corresponding to at least part of the target to be detected, and determine a calibrated height corresponding to at least part of the target to be detected based on the detection frame and the spatial mapping relationship.

[0080] Specifically, the spatial mapping relationship is obtained based on the method in any of the above embodiments. For description of related contents, please refer to the detailed description of the above method embodiments, which will not be repeated here.

[0081] It is understandable that after obtaining the estimated category, it is possible to determine whether the estimated category matches the spatial mapping relationship, and determine the calibrated height corresponding to the target to be detected based on the detection frame of the corresponding target to be detected and its corresponding spatial mapping relationship.

[0082] In some implementation scenarios, a space reconstruction model is pre-constructed, and when the size information of the detection frame is input into the space reconstruction model, a calibrated height matching the size information is obtained.

[0083] S303: Based on at least the estimated categories and the calibrated heights corresponding to at least some of the targets to be detected, the estimated categories of all the targets to be detected are screened to obtain the detection categories of at least some of the targets to be detected.

[0084] Specifically, the estimated categories of all targets to be detected are screened by at least using the estimated categories and the calibrated heights corresponding to the corresponding targets to be detected, and the recognition results with false positives are eliminated to obtain the detection categories of at least some of the targets to be detected.

[0085] It can be understood that the estimated category corresponds to a preset height range. The preset height range corresponding to the estimated category is obtained, and the calibrated height of the target to be detected is compared with the preset height range to determine whether the estimated category of the target to be detected is a false alarm, thereby screening out the false alarm results.

[0086] In some implementation scenarios, the estimated categories of all targets to be detected are screened based on at least the estimated categories and the calibrated heights corresponding to at least some of the targets to be detected to obtain the detection categories of at least some of the targets to be detected, including: determining the height matching results corresponding to at least some of the targets to be detected based on a preset height range corresponding to the estimated categories and the calibrated heights corresponding to at least some of the targets to be detected; obtaining the size information of all detection frames, and based on the size information of all detection frames and all height matching results, screening the estimated categories of all targets to be detected to obtain the detection categories of at least some of the targets to be detected.

[0087] Specifically, based on the height relationship between the calibrated height of the target to be detected and the preset height range corresponding to the estimated category, a height matching result corresponding to the target to be detected is determined, wherein the height matching result is a match or a mismatch.

[0088] Furthermore, the size information of all detection frames is obtained, and based on the size information of all detection frames and all height matching results, the estimated categories of all targets to be detected are screened, and the recognition results with mismatched height matching results are eliminated, and the reference size corresponding to the estimated category is obtained. Based on the matching relationship between the size information and the reference size of the estimated category, the recognition results with matched height matching results and the recognition results that do not include the calibrated height are screened, and the estimated category of the target to be detected that is retained is used as the detection category of the corresponding target to be detected.

[0089] It is understandable that the size information and the reference size may be the aspect ratio of the detection frame or the area size, and this application does not impose any specific limitation on this.

[0090] In this embodiment, a detection frame corresponding to a target to be detected in an image to be detected is obtained, and the category of the target to be detected is estimated to obtain an estimated category, and it is determined whether the estimated category matches a spatial mapping relationship, and based on the corresponding detection frame of the target to be detected and its corresponding spatial mapping relationship, a calibration height corresponding to the target to be detected is determined, and the estimated categories of all targets to be detected are screened using at least the estimated category and the calibration height corresponding to the corresponding target to be detected, and recognition results with false positives are eliminated to obtain detection categories of at least some targets to be detected, thereby improving the accuracy of target recognition.

[0091] See also Figure 4 , Figure 4 It is a structural diagram of an embodiment of an electronic device of the present application, wherein the electronic device 40 includes a memory 401 and a processor 402 coupled to each other, wherein the memory 401 stores program data (not shown), and the processor 402 calls the program data to implement the method in any of the above embodiments. For descriptions of related contents, please refer to the detailed description of the above method embodiments, which will not be repeated here.

[0092] See also Figure 5 , Figure 5 It is a structural diagram of an embodiment of a computer-readable storage medium of the present application. The computer-readable storage medium 50 stores program data 500. When the program data 500 is executed by a processor, the method in any of the above embodiments is implemented. For descriptions of related contents, please refer to the detailed description of the above method embodiments, which will not be repeated here.

[0093] It should be noted that the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present implementation scheme.

[0094] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0095] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of each implementation method 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 and other media that can store program code.

[0096] The above description is only an implementation method of the present application, and does not limit the protection scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the protection scope of the present application.

Claims

1. A target calibration method, characterized in that: The method comprises: Obtaining a detection frame corresponding to the target to be detected in the image to be detected, and target area features extracted in the detection frame; Using an intelligent analysis model to identify the characteristics of each target area, determine the target category corresponding to each target to be detected and multiple attribute subcategories under the target category; Obtaining a calibrated height corresponding to a target to be detected that matches the same attribute subclass combination under at least one of the target categories; Calibrate a spatial mapping relationship between the detection frame of at least part of the target to be detected and the calibrated height; Wherein, the plurality of target categories correspond to respective reference heights, and the step of obtaining the calibrated height corresponding to the target to be detected that matches the same attribute subclass combination under at least one of the target categories includes: Based on the reference heights corresponding to all the target categories, determining at least one category to be calibrated from all the target categories; The intelligent analysis model is used to obtain at least one query height corresponding to the target to be detected that matches the same attribute subclass combination under the category to be calibrated, and all the query heights are used to generate the corresponding calibration height of the target to be detected.

2. The method according to claim 1, characterized in that The intelligent analysis model is used to identify the characteristics of each target area, and the target category corresponding to each target to be detected and multiple attribute subcategories under the target category are determined, including: Perform image restoration based on the features of each target area to obtain a restored image corresponding to each detection frame; Obtain a prompt text that matches the restored image, input the restored image and its matching prompt text into the intelligent analysis model respectively, and obtain a target category corresponding to each target to be detected and a plurality of attribute subcategories under the target category; wherein the prompt text is used to instruct the intelligent analysis model to identify the target to be detected in the restored image.

3. The method according to claim 1 or 2, characterized in that: The step of obtaining a detection frame corresponding to the target to be detected in the image to be detected, and the target area features extracted in the detection frame, includes: In response to obtaining the image to be detected, detecting a dynamic target in the image to be detected to obtain a detection position of the target to be detected in the image to be detected; Acquire an estimated category matching the detection position, and determine the detection frame of the target to be detected in the image to be detected based on the detection position and the estimated category; Feature extraction is performed on the area within the detection frame, and dimension reduction processing is performed on the extracted features to obtain the target area features.

4. The method according to claim 1, characterized in that: The determining at least one category to be calibrated from all the target categories based on the reference heights corresponding to all the target categories comprises: Obtaining a reference height difference between reference heights corresponding to every two target categories; At least the target category whose reference height difference is less than the height difference threshold is taken as the category to be calibrated; wherein, when all the reference height differences are greater than or equal to the height difference threshold, the category to be calibrated includes a designated category designated from all the target categories.

5. The method according to claim 1, characterized in that The calibrating a spatial mapping relationship between the detection frame of at least part of the target to be detected and the calibrated height includes: Acquire size information of the detection frame of the target to be detected having the calibrated height; Based on the spatial mapping relationship between the size information of each group of the detection frames and the calibrated height, a spatial reconstruction model is constructed; wherein, when the size information of the detection frames is input into the spatial reconstruction model, the calibrated height matched by the size information is obtained.

6. A target recognition method, characterized in that: The method comprises: Obtaining a detection frame corresponding to the target to be detected in the image to be detected and an estimated category corresponding to the target to be detected; Acquire a spatial mapping relationship corresponding to at least part of the target to be detected, and determine a calibrated height corresponding to at least part of the target to be detected based on the detection frame and the spatial mapping relationship; wherein the spatial mapping relationship is obtained based on the method described in any one of claims 1 to 5; Based at least on the estimated categories and the calibrated heights corresponding to at least some of the targets to be detected, the estimated categories of all the targets to be detected are screened to obtain the detection categories of at least some of the targets to be detected.

7. The method according to claim 6, characterized in that The estimated category corresponds to a preset height range, and the estimated categories of all the targets to be detected are screened based on at least the estimated category and the calibrated heights corresponding to at least some of the targets to be detected to obtain the detection category of at least some of the targets to be detected, including: Determine a height matching result corresponding to at least part of the objects to be detected based on the preset height range corresponding to the estimated category and the calibrated heights corresponding to at least part of the objects to be detected; The size information of all the detection frames is obtained, and based on the size information of all the detection frames and all the height matching results, the estimated categories of all the objects to be detected are screened to obtain the detection categories of at least some of the objects to be detected.

8. An electronic device, characterized in that: include: A memory and a processor coupled to each other, wherein the memory stores program data, and the processor calls the program data to execute the method as claimed in any one of claims 1-5 or 6-7.

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