A method and device for filtering associated targets

By filtering incorrectly associated targets based on the height-to-width ratio of the target recognition frame in the autonomous driving system, using width, depth, or height change trends to filter out incorrectly associated targets based on different aspect ratio conditions, the problem of inaccurate associations caused by depth estimation errors is solved. , improving the accuracy of target association.

CN115082654BActive Publication Date: 2024-10-22SUZHOU QINGZHOU ZHIHANG INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210675991.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-15
Publication Date
2024-10-22
Estimated Expiration
2042-06-15

AI Technical Summary

Technical Problem

During the target tracking process of the autonomous driving system, due to the depth estimation error of target detection, the associated targets do not satisfy the imaging perspective principle, which affects the accuracy of the associated targets.

Method used

By performing false association target filtering on the aspect ratio of the target recognition frame, based on the width and depth change trends when the aspect ratio is less than 1, the height and depth change trends when the aspect ratio is greater than 1, and the height when the aspect ratio is equal to 1 , width and depth change trends, and filter out incorrectly associated targets.

Benefits of technology

It improves the accuracy of target association, ensures that the associated target complies with the imaging perspective principle, and enhances the perception ability of the autonomous driving system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115082654B_ABST
    Figure CN115082654B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention relates to a method and device for filtering associated targets, the method comprising: obtaining a set of first and second target recognition frames; traversing each first target recognition frame; during traversal, taking the currently traversed first target recognition frame as the current target recognition frame box1, and recording the second target recognition frame that is in an associated target relationship with the current target recognition frame box1 as the current target recognition frame box2; and calculating the aspect ratio of the current target recognition frame box1 to generate a first aspect ratio; when the first aspect ratio is less than 1, performing filtering processing of incorrectly associated targets according to the width and depth of the recognition frame; when the first aspect ratio is greater than 1, performing filtering processing of incorrectly associated targets according to the height and depth of the recognition frame; when the first aspect ratio is equal to 1, performing filtering processing of incorrectly associated targets according to the height, width and depth of the recognition frame. Through the present invention, incorrectly associated targets can be filtered out to achieve the purpose of improving the accuracy of target association.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a method and device for filtering associated targets. Background Art

[0002] When processing the target tracking task, the perception module of the autonomous driving system first performs target detection on the two frames of images before and after the adjacent moments to obtain two target recognition frame (bounding box) sets. Each recognition frame in the set corresponds to a real target and a set of recognition frame parameters (height h, width w, depth d); then the recognition frames of the two sets are associated with each other, and the target identifiers of the two recognition frames that are associated with each other are the same. The error in target detection in this processing method will affect the accuracy of target association, especially the depth estimation error of target detection. Excessive depth estimation error will cause the following errors in target association: the imaging perspective principle cannot be satisfied between the associated targets (the farther the object is, the smaller the height or width should be). Summary of the invention

[0003] The purpose of the present invention is to provide a method, device, electronic device and computer-readable storage medium for filtering associated targets in view of the defects of the prior art, and to filter incorrect associated targets of the recognition frame based on the aspect ratio of the target recognition frame: when the aspect ratio is less than 1, the incorrect associated targets are filtered according to the changing trend of the width and depth of the recognition frame; when the aspect ratio is greater than 1, the incorrect associated targets are filtered according to the changing trend of the height and depth of the recognition frame; when the aspect ratio is equal to 1, the incorrect associated targets are filtered according to the changing trend of the height, width and depth of the recognition frame. Through the present invention, the incorrect associated targets that cannot meet the imaging perspective principle can be filtered out, thereby achieving the purpose of improving the accuracy of target association.

[0004] To achieve the above object, a first aspect of an embodiment of the present invention provides a method for filtering associated targets, the method comprising:

[0005] Acquire a first and a second target recognition frame set; the first target recognition frame set includes a plurality of first target recognition frames box1, each of which corresponds to a target identifier; the second target recognition frame set includes a plurality of second target recognition frames box2, each of which corresponds to a target identifier; the target identifiers corresponding to the first target recognition frames box1 and the second target recognition frames box2 that are in an associated target relationship in the first and the second target recognition frame sets are the same;

[0006] Each of the first target recognition frames box1 is traversed; during the traversal, the first target recognition frame box1 currently traversed is taken as the current target recognition frame box1, and the second target recognition frame box2 which is in an associated target relationship with the current target recognition frame box1 is recorded as the current target recognition frame box2; and the aspect ratio of the current target recognition frame box1 is calculated to generate a corresponding first aspect ratio; and the value range of the first aspect ratio is identified; when the first aspect ratio is less than 1, the current target recognition frame box2 is subjected to an erroneous associated target filtering process according to the width and depth of the recognition frame; when the first aspect ratio is greater than 1, the current target recognition frame box2 is subjected to an erroneous associated target filtering process according to the height and depth of the recognition frame; when the first aspect ratio is equal to 1, the current target recognition frame box2 is subjected to an erroneous associated target filtering process according to the height, width and depth of the recognition frame.

[0007] Preferably, the first target recognition frame box1 includes a first recognition frame height h1, a first recognition frame width w1 and a first recognition frame depth d1;

[0008] The second object recognition frame box2 includes a second recognition frame height h2, a second recognition frame width w2, and a second recognition frame depth d2.

[0009] Preferably, the calculating the aspect ratio of the current target recognition box box1 to generate the corresponding first aspect ratio specifically includes:

[0010] The first aspect ratio is calculated and generated according to the first identification frame height h1 and the first identification frame height w1 of the current target identification frame box1, where the first aspect ratio=h1 / w1.

[0011] Preferably, the performing wrongly associated target filtering processing on the current target recognition frame box2 according to the width and depth of the recognition frame specifically includes:

[0012] The first width difference △w1 is calculated and generated according to the first recognition frame width w1 of the current target recognition frame box1 and the second recognition frame width w2 of the current target recognition frame box2,

[0013] △w1=w1-w2;

[0014] A corresponding first depth difference △d1 is calculated based on the first recognition frame depth d1 of the current target recognition frame box1 and the second recognition frame depth d2 of the current target recognition frame box2,

[0015] △d1=d1-d2;

[0016] Generate a corresponding first factor a1 according to the product of the first width difference △w1 and the first depth difference △d1,

[0017] a1=△w1*△d1;

[0018] If the first factor a1 is greater than 0, the current target recognition frame box2 is filtered out from the second target recognition frame set as an erroneously associated target recognition frame.

[0019] Preferably, the performing wrongly associated target filtering processing on the current target recognition frame box2 according to the height and depth of the recognition frame specifically includes:

[0020] A corresponding first height difference △h1 is calculated based on the first recognition frame height h1 of the current target recognition frame box1 and the second recognition frame height h2 of the current target recognition frame box2,

[0021] △h1=h1-h2;

[0022] The corresponding second depth difference △d2 is calculated and generated according to the first recognition frame depth d1 of the current target recognition frame box1 and the second recognition frame depth d2 of the current target recognition frame box2,

[0023] △d2=d1-d2;

[0024] Generate a corresponding second factor a2 according to the product of the first height difference △h1 and the second depth difference △d2,

[0025] a2=△h1*△d2;

[0026] If the second factor a2 is greater than 0, the current target recognition frame box2 is filtered out from the second target recognition frame set as an erroneously associated target recognition frame.

[0027] Preferably, the performing wrongly associated target filtering processing on the current target recognition frame box2 according to the height, width and depth of the recognition frame specifically includes:

[0028] A corresponding second height difference △h2 is calculated based on the first recognition frame height h1 of the current target recognition frame box1 and the second recognition frame height h2 of the current target recognition frame box2,

[0029] △h2=h1-h2;

[0030] The corresponding second width difference △w2 is calculated and generated according to the first recognition frame width w1 of the current target recognition frame box1 and the second recognition frame width w2 of the current target recognition frame box2,

[0031] △w2=w1-w2;

[0032] A corresponding third depth difference △d3 is calculated based on the first recognition frame depth d1 of the current target recognition frame box1 and the second recognition frame depth d2 of the current target recognition frame box2,

[0033] △d3=d1-d2;

[0034] A corresponding third factor a3 is generated according to the product of the second height difference △h2 and the third depth difference △d3,

[0035] a3=△h2*△d3;

[0036] A corresponding fourth factor a4 is generated according to the product of the second width difference Δw2 and the third depth difference Δd3,

[0037] a4=△w2*△d3;

[0038] If the third factor a3 is greater than 0 or the fourth factor a4 is greater than 0, the current target recognition frame box2 is filtered out from the second target recognition frame set as an erroneously associated target recognition frame.

[0039] A second aspect of an embodiment of the present invention provides a device for implementing the method for filtering associated targets described in the first aspect, the device comprising: an acquisition module and an associated target filtering processing module;

[0040] The acquisition module is used to acquire the first and second target recognition frame sets; the first target recognition frame set includes a plurality of first target recognition frames box1, each of which corresponds to a target identifier; the second target recognition frame set includes a plurality of second target recognition frames box2, each of which corresponds to a target identifier; the target identifiers corresponding to the first target recognition frames box1 and the second target recognition frames box2 that are in a mutually associated target relationship in the first and second target recognition frame sets are the same;

[0041] The associated target filtering processing module is used to traverse each first target recognition frame box1; during the traversal, the first target recognition frame box1 currently traversed is used as the current target recognition frame box1, and the second target recognition frame box2 that is in an associated target relationship with the current target recognition frame box1 is recorded as the current target recognition frame box2; and the aspect ratio of the current target recognition frame box1 is calculated to generate a corresponding first aspect ratio; and the value range of the first aspect ratio is identified; when the first aspect ratio is less than 1, the current target recognition frame box2 is subjected to an erroneous associated target filtering process according to the width and depth of the recognition frame; when the first aspect ratio is greater than 1, the current target recognition frame box2 is subjected to an erroneous associated target filtering process according to the height and depth of the recognition frame; when the first aspect ratio is equal to 1, the current target recognition frame box2 is subjected to an erroneous associated target filtering process according to the height, width and depth of the recognition frame.

[0042] A third aspect of an embodiment of the present invention provides an electronic device, including: a memory, a processor, and a transceiver;

[0043] The processor is used to couple with the memory, read and execute instructions in the memory, so as to implement the method steps described in the first aspect above;

[0044] The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.

[0045] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions. When the computer instructions are executed by a computer, the computer executes the instructions of the method described in the first aspect above.

[0046] The embodiments of the present invention provide a method, device, electronic device and computer-readable storage medium for filtering associated targets, and perform erroneous associated target filtering on the target identification frame based on the aspect ratio of the target identification frame: when the aspect ratio is less than 1, the erroneous associated target filtering is performed according to the variation trend of the width and depth of the identification frame; when the aspect ratio is greater than 1, the erroneous associated target filtering is performed according to the variation trend of the height and depth of the identification frame; when the aspect ratio is equal to 1, the erroneous associated target filtering is performed according to the variation trend of the height, width and depth of the identification frame. Through the present invention, the erroneous associated targets that cannot meet the imaging perspective principle can be filtered out, thereby improving the accuracy of target association. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A schematic diagram of a method for filtering associated targets provided in the first embodiment of the present invention;

[0048] Figure 2A module structure diagram of a filtering device for associated targets provided in the second embodiment of the present invention;

[0049] Figure 3 A schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention 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 invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] When processing a target tracking task, the perception module of the autonomous driving system first performs target detection on two frames of images before and after adjacent moments to obtain two target recognition frame sets, namely, a first target recognition frame set and a second target recognition frame set; then, target association is performed on the first and second target recognition frames of the first and second target recognition frame sets; then, through a method for filtering associated targets provided in Embodiment 1 of the present invention, the first and second target recognition frames that are associated targets with each other are checked pair by pair, and the second target recognition frame that does not satisfy the imaging perspective principle (the farther the object is, the smaller the height or width should be) is filtered out from the second target recognition frame set as an erroneous associated target; Figure 1 A schematic diagram of a method for filtering associated targets provided in the first embodiment of the present invention is shown in FIG. Figure 1 As shown, this method mainly includes the following steps:

[0052] Step 1, obtaining the first and second target recognition frame sets;

[0053] The first target recognition frame set includes a plurality of first target recognition frames box1, each of which corresponds to a target identifier; the first target recognition frame box1 includes a first recognition frame height h1, a first recognition frame width w1 and a first recognition frame depth d1;

[0054] The second target recognition frame set includes a plurality of second target recognition frames box2, each second target recognition frame box2 corresponds to a target identifier; the second target recognition frame box2 includes a second recognition frame height h2, a second recognition frame width w2, and a second recognition frame depth d2;

[0055] The target identifiers corresponding to the first target recognition frame box1 and the second target recognition frame box2 which are in a mutually associated target relationship in the first and second target recognition frame sets are the same.

[0056] Here, the first and second target recognition frame sets obtained in the current step are two target recognition frame sets that have undergone target association processing; the first and second target recognition frame sets each include multiple first and second target recognition frames box1 and box2; the perception module generates corresponding recognition frame parameters (height h, width w, depth d) for each target recognition frame when performing target detection, so each first target recognition frame box1 corresponds to a set of recognition frame parameters (first recognition frame height h1, first recognition frame width w1 and first recognition frame depth d1), and each second target recognition frame box2 also corresponds to a set of recognition frame parameters (second recognition frame height h2, second recognition frame width w2 and second recognition frame depth d2); in addition, the first and second target recognition frames box1 and box2 that have completed target association will correspond to the same real target, so the first and second target recognition frames box1 and box2 that are in a mutually associated target relationship have the same target identifier corresponding to them.

[0057] Step 2, traverse each first target recognition frame box1; during the traversal, take the currently traversed first target recognition frame box1 as the current target recognition frame box1, and record the second target recognition frame box2 that is in an associated target relationship with the current target recognition frame box1 as the current target recognition frame box2; and calculate the aspect ratio of the current target recognition frame box1 to generate a corresponding first aspect ratio; and identify the value range of the first aspect ratio; when the first aspect ratio is less than 1, perform an erroneous associated target filtering process on the current target recognition frame box2 according to the width and depth of the recognition frame; when the first aspect ratio is greater than 1, perform an erroneous associated target filtering process on the current target recognition frame box2 according to the height and depth of the recognition frame; when the first aspect ratio is equal to 1, perform an erroneous associated target filtering process on the current target recognition frame box2 according to the height, width and depth of the recognition frame.

[0058] In step 2, the aspect ratio of the current target recognition frame box1 is calculated to generate a corresponding first aspect ratio, specifically including: calculating and generating the corresponding first aspect ratio according to the first recognition frame height h1 and the first recognition frame height w1 of the current target recognition frame box1, the first aspect ratio = h1 / w1.

[0059] Here, the embodiment of the present invention can obtain the shape characteristics of the target recognition frame by calculating the first aspect ratio: when the first aspect ratio is less than 1, it means that the shape characteristics of the target recognition frame are a horizontally wide object; when the first aspect ratio is greater than 1, it means that the shape characteristics of the target recognition frame are a vertically tall object; when the first aspect ratio is equal to 1, it means that the shape characteristics of the target recognition frame are an object of equal length in height and width.

[0060] In step 2, the current target recognition box box2 is subjected to incorrectly associated target filtering according to the width and depth of the recognition box, specifically including:

[0061] Step A1, calculating and generating a corresponding first width difference △w1 according to a first recognition frame width w1 of the current target recognition frame box1 and a second recognition frame width w2 of the current target recognition frame box2, △w1=w1-w2;

[0062] Here, for an object gradually moving away from the vehicle, the first width difference △w1 should normally be greater than or equal to 0, and for an object gradually approaching the vehicle, the first width difference △w1 should normally be less than or equal to 0;

[0063] Step A2, calculating and generating a corresponding first depth difference △d1 according to the first recognition frame depth d1 of the current target recognition frame box1 and the second recognition frame depth d2 of the current target recognition frame box2, △d1=d1-d2;

[0064] Here, for an object gradually moving away from the vehicle, the first depth difference △d1 should normally be less than or equal to 0, and for an object gradually approaching the vehicle, the first depth difference △d1 should normally be greater than or equal to 0;

[0065] Step A3, generating a corresponding first factor a1 according to the product of the first width difference △w1 and the first depth difference △d1, where a1=△w1*△d1;

[0066] Here, for an object that is gradually moving away from the vehicle or approaching the vehicle, the width change trend and the depth change trend should be opposite, that is, the first factor a1 should be less than or equal to 0 under normal circumstances;

[0067] Step A4: if the first factor a1 is greater than 0, the current target recognition frame box2 is filtered out from the second target recognition frame set as an erroneously associated target recognition frame.

[0068] Here, the first factor a1 is greater than 0, indicating that the imaging perspective principle cannot be satisfied between the associated first and second target recognition frames box1 and box2. Naturally, the current target recognition frame box2 is filtered out from the second target recognition frame set as an erroneously associated target recognition frame.

[0069] It can be seen from the above steps A1-A4 that when the first aspect ratio is less than 1, it indicates that the first target recognition frame box1 is a horizontally wide object; for horizontally wide objects, the embodiment of the present invention performs incorrectly associated target filtering according to the changing trend of the recognition frame width and depth; during filtering, the second target recognition frame box2 that does not satisfy the requirement that the deeper the depth, the smaller the width is is filtered out as an incorrectly associated target recognition frame from the second target recognition frame set.

[0070] In step 2, the current target recognition box box2 is subjected to the wrong associated target filtering process according to the height and depth of the recognition box, specifically including:

[0071] Step B1, calculating and generating a corresponding first height difference △h1 according to a first recognition frame height h1 of the current target recognition frame box1 and a second recognition frame height h2 of the current target recognition frame box2, △h1=h1-h2;

[0072] Here, for an object gradually moving away from the vehicle, the first height difference △h1 should normally be greater than or equal to 0, and for an object gradually approaching the vehicle, the first height difference △h1 should normally be less than or equal to 0;

[0073] Step B2, calculating and generating a corresponding second depth difference △d2 according to the first recognition frame depth d1 of the current target recognition frame box1 and the second recognition frame depth d2 of the current target recognition frame box2, △d2=d1-d2;

[0074] Here, for an object gradually moving away from the vehicle, the second depth difference △d2 should normally be less than or equal to 0, and for an object gradually approaching the vehicle, the second depth difference △d2 should normally be greater than or equal to 0;

[0075] Step B3, generating a corresponding second factor a2 according to the product of the first height difference △h1 and the second depth difference △d2, a2=△h1*△d2;

[0076] Here, for an object that is gradually moving away from the vehicle or approaching the vehicle, its height change trend and depth change trend should be opposite, that is, the second factor a2 should be less than or equal to 0 under normal circumstances;

[0077] Step B4: if the second factor a2 is greater than 0, the current target recognition frame box2 is filtered out from the second target recognition frame set as an erroneously associated target recognition frame.

[0078] Here, the second factor a2 is greater than 0, indicating that the imaging perspective principle cannot be satisfied between the first and second associated target recognition frames box1 and box2. Naturally, the current target recognition frame box2 is filtered out from the second target recognition frame set as an erroneously associated target recognition frame.

[0079] It can be seen from the above steps B1-B4 that when the first aspect ratio is greater than 1, it indicates that the first target recognition frame box1 is a vertically tall object; for vertically tall objects, the embodiment of the present invention performs falsely associated target filtering according to the changing trend of the recognition frame height and depth. During filtering, the second target recognition frame box2 that does not satisfy the rule that the deeper the depth, the smaller the height is will be filtered out as a falsely associated target recognition frame from the second target recognition frame set.

[0080] In step 2, the current target recognition box box2 is subjected to incorrectly associated target filtering according to the height, width and depth of the recognition box, specifically including:

[0081] Step C1, calculating and generating a corresponding second height difference △h2 according to the first recognition frame height h1 of the current target recognition frame box1 and the second recognition frame height h2 of the current target recognition frame box2, △h2=h1-h2;

[0082] Here, for an object gradually moving away from the vehicle, the second height difference △h2 should normally be greater than or equal to 0, and for an object gradually approaching the vehicle, the second height difference △h2 should normally be less than or equal to 0;

[0083] Step C2, calculating and generating a corresponding second width difference △w2 according to the first recognition frame width w1 of the current target recognition frame box1 and the second recognition frame width w2 of the current target recognition frame box2, △w2=w1-w2;

[0084] Here, for an object gradually moving away from the vehicle, the second width difference △w2 should normally be greater than or equal to 0, and for an object gradually approaching the vehicle, the second width difference △w2 should normally be less than or equal to 0;

[0085] Step C3, calculating and generating a corresponding third depth difference △d3 according to the first recognition frame depth d1 of the current target recognition frame box1 and the second recognition frame depth d2 of the current target recognition frame box2, △d3=d1-d2;

[0086] Here, for an object gradually moving away from the vehicle, the third depth difference △d3 should normally be less than or equal to 0, and for an object gradually approaching the vehicle, the third depth difference △d3 should normally be greater than or equal to 0;

[0087] Step C4, generating a corresponding third factor a3 according to the product of the second height difference △h2 and the third depth difference △d3, a3=△h2*△d3;

[0088] Here, for an object that is gradually moving away from the vehicle or approaching the vehicle, its height change trend and depth change trend should be opposite, that is, the third factor a3 should be less than or equal to 0 under normal circumstances;

[0089] Step C5, generating a corresponding fourth factor a4 according to the product of the second width difference △w2 and the third depth difference △d3, a4=△w2*△d3;

[0090] Here, for an object that is gradually moving away from the vehicle or approaching the vehicle, the width change trend and the depth change trend should be opposite, that is, the fourth factor a4 should be less than or equal to 0 under normal circumstances;

[0091] Step C6: if the third factor a3 is greater than 0 or the fourth factor a4 is greater than 0, the current target recognition frame box2 is filtered out from the second target recognition frame set as an erroneously associated target recognition frame.

[0092] Here, it can be seen from the above that under normal circumstances, the third factor a3 and the fourth factor a4 should be less than or equal to 0. Therefore, when the third factor a3 is greater than 0 or the fourth factor a4 is greater than 0, it means that the imaging perspective principle cannot be satisfied between the associated first and second target recognition frames box1 and box2. Naturally, the current target recognition frame box2 should be filtered out from the second target recognition frame set as an erroneously associated target recognition frame.

[0093] It can be seen from the above steps C1-C6 that when the first aspect ratio is equal to 1, it indicates that the first target recognition frame box1 is an object of equal length in height and width; for objects of equal length in height and width, the embodiment of the present invention performs falsely associated target filtering according to the changing trend of the height, width and depth of the recognition frame. During filtering, the second target recognition frame box2 that does not satisfy the requirement that the deeper the depth, the smaller the height and width should be is filtered out as a falsely associated target recognition frame from the second target recognition frame set.

[0094] Figure 2 This is a module structure diagram of a filtering device for associated targets provided in the second embodiment of the present invention. The device is a terminal device or server that implements the aforementioned method embodiment, or can be a device that enables the aforementioned terminal device or server to implement the aforementioned method embodiment. For example, the device can be a device or chip system of the aforementioned terminal device or server. Figure 2 As shown, the device includes: an acquisition module 201 and an associated target filtering processing module 202.

[0095] The acquisition module 201 is used to acquire the first and second target recognition frame sets; the first target recognition frame set includes multiple first target recognition frames box1, each of which corresponds to a target identifier; the second target recognition frame set includes multiple second target recognition frames box2, each of which corresponds to a target identifier; the target identifiers corresponding to the first target recognition frame box1 and the second target recognition frame box2 that are in an associated target relationship in the first and second target recognition frame sets are the same.

[0096] The associated target filtering processing module 202 is used to traverse each first target recognition frame box1; when traversing, the currently traversed first target recognition frame box1 is used as the current target recognition frame box1, and the second target recognition frame box2 that is in an associated target relationship with the current target recognition frame box1 is recorded as the current target recognition frame box2; and the aspect ratio of the current target recognition frame box1 is calculated to generate a corresponding first aspect ratio; and the value range of the first aspect ratio is identified; when the first aspect ratio is less than 1, the current target recognition frame box2 is subjected to incorrect associated target filtering processing according to the width and depth of the recognition frame; when the first aspect ratio is greater than 1, the current target recognition frame box2 is subjected to incorrect associated target filtering processing according to the height and depth of the recognition frame; when the first aspect ratio is equal to 1, the current target recognition frame box2 is subjected to incorrect associated target filtering processing according to the height, width and depth of the recognition frame.

[0097] An embodiment of the present invention provides a filtering device for associated targets, which can execute the method steps in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here.

[0098] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the acquisition module can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The function of the above-mentioned module is determined. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.

[0099] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital signal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0100] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the above method embodiments are generated. The above computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The above-mentioned computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the above-mentioned computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, Bluetooth, microwave, etc.) methods. The above-mentioned computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The above-mentioned available medium can be a magnetic medium (such as a floppy disk, a hard disk, a tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)), etc.

[0101] Figure 3 This is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. The electronic device may be the aforementioned terminal device or server, or may be a terminal device or server connected to the aforementioned terminal device or server to implement the method of the embodiment of the present invention. Figure 3As shown, the electronic device may include: a processor 301 (such as a CPU), a memory 302, and a transceiver 303; the transceiver 303 is coupled to the processor 301, and the processor 301 controls the transceiver 303. Various instructions may be stored in the memory 302 to complete various processing functions and implement the processing steps described in the aforementioned method embodiment. Preferably, the electronic device involved in the embodiment of the present invention also includes: a power supply 304, a system bus 305 and a communication port 306. The system bus 305 is used to realize the communication connection between components. The above-mentioned communication port 306 is used for connecting and communicating between the electronic device and other peripherals.

[0102] exist Figure 3 The system bus 305 mentioned in the figure can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 The term "communication interface" is represented by only one thick line, but it does not mean that there is only one bus or one type of bus. The communication interface is used to realize the communication between the database access device and other devices (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM) and may also include non-volatile memory (Non-Volatile Memory), such as at least one disk storage.

[0103] The above-mentioned processor can be a general-purpose processor, including a central processing unit CPU, a network processor (Network Processor, NP), a graphics processing unit (Graphics Processing Unit, GPU), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0104] It should be noted that an embodiment of the present invention further provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the method and processing process provided in the above embodiments.

[0105] An embodiment of the present invention further provides a chip for executing instructions, wherein the chip is used to execute the processing steps described in the aforementioned method embodiment.

[0106] The embodiments of the present invention provide a method, device, electronic device and computer-readable storage medium for filtering associated targets, and perform erroneous associated target filtering on two target recognition frames that are associated targets based on the aspect ratio of the target recognition frames: when the aspect ratio is less than 1, the erroneous associated target filtering is performed based on the variation trend of the width and depth of the recognition frame; when the aspect ratio is greater than 1, the erroneous associated target filtering is performed based on the variation trend of the height and depth of the recognition frame; when the aspect ratio is equal to 1, the erroneous associated target filtering is performed based on the variation trend of the height, width and depth of the recognition frame. Through the present invention, erroneous associated targets that cannot meet the imaging perspective principle can be filtered out, thereby improving the accuracy of target association.

[0107] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by 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 the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians 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 the present invention.

[0108] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0109] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for filtering associated targets, characterized in that: The method comprises: Acquire a first and a second target recognition frame set; the first target recognition frame set includes a plurality of first target recognition frames box1, each of which corresponds to a target identifier; the second target recognition frame set includes a plurality of second target recognition frames box2, each of which corresponds to a target identifier; the target identifiers corresponding to the first target recognition frames box1 and the second target recognition frames box2 that are in an associated target relationship in the first and the second target recognition frame sets are the same; Each of the first target recognition frames box1 is traversed; during the traversal, the first target recognition frame box1 currently traversed is taken as the current target recognition frame box1, and the second target recognition frame box2 which is in an associated target relationship with the current target recognition frame box1 is recorded as the current target recognition frame box2; and the aspect ratio of the current target recognition frame box1 is calculated to generate a corresponding first aspect ratio; and the value range of the first aspect ratio is identified; when the first aspect ratio is less than 1, the current target recognition frame box2 is subjected to an erroneous associated target filtering process according to the width and depth of the recognition frame; when the first aspect ratio is greater than 1, the current target recognition frame box2 is subjected to an erroneous associated target filtering process according to the height and depth of the recognition frame; when the first aspect ratio is equal to 1, the current target recognition frame box2 is subjected to an erroneous associated target filtering process according to the height, width and depth of the recognition frame.

2. The method for filtering related targets according to claim 1, characterized in that: The first target recognition frame box1 includes a first recognition frame height h1, a first recognition frame width w1 and a first recognition frame depth d1; The second object recognition frame box2 includes a second recognition frame height h2, a second recognition frame width w2, and a second recognition frame depth d2.

3. The method for filtering related targets according to claim 2, characterized in that: The calculating the aspect ratio of the current target recognition box box1 to generate the corresponding first aspect ratio specifically includes: The first aspect ratio is calculated and generated according to the first identification frame height h1 and the first identification frame height w1 of the current target identification frame box1, where the first aspect ratio=h1 / w1.

4. The method for filtering related targets according to claim 2, characterized in that: The filtering of the current target recognition frame box2 for incorrectly associated targets according to the width and depth of the recognition frame specifically includes: The first width difference △w1 is calculated and generated according to the first recognition frame width w1 of the current target recognition frame box1 and the second recognition frame width w2 of the current target recognition frame box2, △w1=w1-w2; A corresponding first depth difference △d1 is calculated based on the first recognition frame depth d1 of the current target recognition frame box1 and the second recognition frame depth d2 of the current target recognition frame box2, △d1=d1-d2; Generate a corresponding first factor a1 according to the product of the first width difference △w1 and the first depth difference △d1, a1=△w1*△d1; If the first factor a1 is greater than 0, the current target recognition frame box2 is filtered out from the second target recognition frame set as an erroneously associated target recognition frame.

5. The method for filtering related targets according to claim 2, characterized in that: The performing the wrong associated target filtering process on the current target recognition frame box2 according to the height and depth of the recognition frame specifically includes: A corresponding first height difference △h1 is calculated based on the first recognition frame height h1 of the current target recognition frame box1 and the second recognition frame height h2 of the current target recognition frame box2, △h1=h1-h2; The corresponding second depth difference △d2 is calculated and generated according to the first recognition frame depth d1 of the current target recognition frame box1 and the second recognition frame depth d2 of the current target recognition frame box2, △d2=d1-d2; Generate a corresponding second factor a2 according to the product of the first height difference △h1 and the second depth difference △d2, a2=△h1*△d2; If the second factor a2 is greater than 0, the current target recognition frame box2 is filtered out from the second target recognition frame set as an erroneously associated target recognition frame.

6. The method for filtering related targets according to claim 2, characterized in that: The filtering of the current target recognition frame box2 for incorrectly associated targets according to the height, width and depth of the recognition frame specifically includes: A corresponding second height difference △h2 is calculated based on the first recognition frame height h1 of the current target recognition frame box1 and the second recognition frame height h2 of the current target recognition frame box2, △h2=h1-h2; The corresponding second width difference △w2 is calculated and generated according to the first recognition frame width w1 of the current target recognition frame box1 and the second recognition frame width w2 of the current target recognition frame box2, △w2=w1-w2; A corresponding third depth difference △d3 is calculated based on the first recognition frame depth d1 of the current target recognition frame box1 and the second recognition frame depth d2 of the current target recognition frame box2, △d3=d1-d2; A corresponding third factor a3 is generated according to the product of the second height difference △h2 and the third depth difference △d3, a3=△h2*△d3; A corresponding fourth factor a4 is generated according to the product of the second width difference Δw2 and the third depth difference Δd3, a4=△w2*△d3; If the third factor a3 is greater than 0 or the fourth factor a4 is greater than 0, the current target recognition frame box2 is filtered out from the second target recognition frame set as an erroneously associated target recognition frame.

7. A device for implementing the method for filtering associated targets according to any one of claims 1 to 6, characterized in that: The device comprises: an acquisition module and an associated target filtering processing module; The acquisition module is used to acquire the first and second target recognition frame sets; the first target recognition frame set includes a plurality of first target recognition frames box1, each of which corresponds to a target identifier; the second target recognition frame set includes a plurality of second target recognition frames box2, each of which corresponds to a target identifier; the target identifiers corresponding to the first target recognition frames box1 and the second target recognition frames box2 that are in a mutually associated target relationship in the first and second target recognition frame sets are the same; The associated target filtering processing module is used to traverse each first target recognition frame box1; during the traversal, the first target recognition frame box1 currently traversed is used as the current target recognition frame box1, and the second target recognition frame box2 that is in an associated target relationship with the current target recognition frame box1 is recorded as the current target recognition frame box2; and the aspect ratio of the current target recognition frame box1 is calculated to generate a corresponding first aspect ratio; and the value range of the first aspect ratio is identified; when the first aspect ratio is less than 1, the current target recognition frame box2 is subjected to an erroneous associated target filtering process according to the width and depth of the recognition frame; when the first aspect ratio is greater than 1, the current target recognition frame box2 is subjected to an erroneous associated target filtering process according to the height and depth of the recognition frame; when the first aspect ratio is equal to 1, the current target recognition frame box2 is subjected to an erroneous associated target filtering process according to the height, width and depth of the recognition frame.

8. An electronic device, characterized in that: include: memory, processors, and transceivers; The processor is used to couple with the memory, read and execute instructions in the memory, so as to implement the method steps described in any one of claims 1 to 6; The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, which, when executed by a computer, enable the computer to execute the method according to any one of claims 1 to 6.