Data detection method, device, storage medium and electronic device
By acquiring and utilizing the multi-dimensional data of the target object, and using the target network model to determine whether the vertex coordinates of its cube box are within the control area, the problem of low traffic data processing accuracy in the existing technology is solved and the accuracy of the judgment is improved.
Patent Information
- Application Number
- CN202210338113.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-01
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-04-01
AI Technical Summary
When existing intelligent transportation systems process traffic data, especially in intersection scenarios that are not completely straight, due to the limitations of the shooting angle of the image recording equipment and the lack of 3D information, the accuracy of the judgment results is not high and the target object cannot be effectively judged. Whether it has completely entered the control area.
By obtaining the first data and the second data of the target object, using the target network model to construct a cube box of the target object, determining its 8 vertex coordinates, and determining whether these vertex coordinates are located in the control area, thereby confirming whether the target object is in the control area. .
It improves the accuracy of traffic data processing and reduces misjudgments. Especially in complex scenarios such as turning intersections, it can accurately determine whether the target object has entered the control area.
Smart Images

Figure CN114898064B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of data processing, and in particular, to a data detection method, device, storage medium and electronic device. Background Art
[0002] With the development of intelligent transportation systems, a large amount of traffic data is generally collected, and then stored and processed to meet different user needs. However, as the demand for processing traffic data gradually increases, how to effectively process data to better meet user needs has become a common problem.
[0003] By processing traffic data to determine whether the target object has left the monitoring area abnormally, an existing solution is to deploy a polygonal area in the monitoring area and determine whether the target object has completely entered the polygonal area through background data processing, thereby correspondingly determining whether the target object has left abnormally. Although this solution can increase the accuracy of the determination to a certain extent, there is an unsolvable problem, that is, at intersections that are not completely straight, such as at turning intersections, due to visual deviations, it will lead to errors in the determination of whether the target object has completely entered, resulting in a low accuracy rate of the determination result, and thus unable to provide effective data results.
[0004] In other words, the traffic data collected by the image recording device in the existing intelligent transportation system is plane data information. For example, in scenes such as turning intersections, due to the limitation of the shooting angle, the ground image of the image recording device may be blocked by the main body itself, resulting in some missing images. The traffic data collected by the image recording device for the 3D scene containing the target object only contains plane data information at a certain shooting angle. Due to the lack of 3D information such as the depth and heading of the target object in the scene at that time, errors in the judgment results will be caused.
[0005] On the other hand, it is technically difficult to construct 3D data information of the target image at the time of the scene using the planar data information collected by the image recording device.
[0006] Therefore, under different scene data, how to improve the overall accuracy of traffic data processing is one of the problems that need to be solved in this field. Summary of the invention
[0007] The main advantage of the present invention is to provide a data detection method, device, storage medium and electronic device, which introduce the second data of the target object based on the acquisition of the first data of the target object, so as to further detect whether the target object is in the target control area.
[0008] Another advantage of the present invention is to provide a data detection method, device, storage medium and electronic device, by providing a target network model, wherein the target network model can construct a cube box related to the target object and obtain the coordinates of the eight vertices of the target object in the cube box, thereby determining whether the target object is within the target control area.
[0009] Another advantage of the present invention is that it provides a data detection method, device, storage medium and electronic device, which obtain the vertex coordinates of the ground position of the target object by providing the target network model, and further confirm whether the target object is in the target control area by judging the positional relationship between the vertex coordinates of the ground position of the target object and the target control area, thereby improving the accuracy of traffic data processing.
[0010] The embodiments of the present invention provide a data detection method, device, storage medium and electronic device to at least solve the problem of low traffic data detection degree in the related art.
[0011] According to an embodiment of the present invention, a data detection method is provided, comprising:
[0012] Obtain the data to be tested;
[0013] Inputting the data to be detected into a target network model to obtain a target coordinate group, wherein the target coordinate group includes a first coordinate group;
[0014] Based on the first coordinate group, a detection result of the data to be detected is confirmed.
[0015] In an exemplary embodiment, obtaining the data to be detected includes:
[0016] Acquire first data of a target object;
[0017] Based on the first data of the target object, second data of the target object is acquired, wherein the data to be detected includes the first data and the second data.
[0018] In an exemplary embodiment, obtaining first data of a target object includes:
[0019] Set the target control area;
[0020] Based on the target control area, acquiring the first data of the target object;
[0021] In an exemplary embodiment, the data to be detected is input into a target network model to obtain a target coordinate group, including:
[0022] Inputting the data to be detected into a target network model;
[0023] Based on the first data, confirming the center point of the target object;
[0024] Based on the center point, the first data and the second data, confirming a plurality of target coordinate information using the target network model;
[0025] The target coordinate group is determined based on the plurality of target coordinate information.
[0026] In an exemplary embodiment, confirming the detection result of the to-be-detected data based on the first coordinate group includes:
[0027] Extracting vertex coordinates located in a first area from the target coordinate group using the target network model to obtain the first coordinate group;
[0028] Based on the first coordinate group and the target control area, confirm whether any vertex coordinate in the first coordinate group is located in the target control area;
[0029] When one of the vertex coordinates in the first coordinate group is located in the target control area, the data to be detected is confirmed to be target data.
[0030] According to another embodiment of the present invention, there is provided a data detection device, comprising:
[0031] A data acquisition module, used for acquiring data to be detected;
[0032] A coordinate acquisition module, used for inputting the data to be detected into a target network model to obtain a target coordinate group, wherein the target coordinate group includes a first coordinate group;
[0033] The detection module confirms the detection result of the data to be detected based on the first coordinate group.
[0034] In an exemplary embodiment, the coordinate acquisition module includes:
[0035] A data transmission module, used for inputting the data to be detected into a target network model;
[0036] A center confirmation module, used for confirming the center point of the target object based on the first data of the data to be detected;
[0037] A coordinate information confirmation module, used to confirm the plurality of target coordinate information using the target network model based on the center point, the first data and the second data;
[0038] The coordinate group confirmation module is used to determine the target coordinate group based on the multiple target coordinate information.
[0039] In an exemplary embodiment, the detection module includes:
[0040] A coordinate extraction module, which extracts vertex coordinates located in a first area from the target coordinate group using the target network model to obtain the first coordinate group;
[0041] A first coordinate detection module, used to confirm whether any vertex coordinate in the first coordinate group is located in the target control area based on the first coordinate group and the target control area;
[0042] The target data confirmation module is used to confirm that the data to be detected is the target data when one of the vertex coordinates in the first coordinate group is located in the target control area.
[0043] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.
[0044] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 is a hardware structure block diagram of a mobile terminal according to a data detection method of an embodiment of the present invention;
[0046] Figure 2 is a flow chart of a data detection method according to an embodiment of the present invention;
[0047] Figure 3 is a flow chart of a data detection method according to an embodiment of the present invention;
[0048] Figure 4 is a structural block diagram of an object attribute extraction device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0049] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.
[0050] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0051] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a data detection method according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0052] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a detection method in an embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0053] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0054] As can be seen from the above, due to the limitation of the shooting angle of the image recording device, the ground image where the target object is located may be blocked by its own body, and the traffic data collected by the image recording device for the 3D scene containing the target object only contains plane data information under a certain shooting angle. Due to the lack of 3D information such as the depth and heading of the target object in the scene at that time, errors in the judgment results will be caused. It is technically difficult to construct the 3D data information of the target image in the scene at that time through the plane data information collected by the image recording device. The present invention provides a detection method, device, storage medium and electronic device, which improves the accuracy of data detection as a whole by solving the problem of processing the data information of the target object in different scenes.
[0055] The details of the embodiments of the present disclosure are described in detail below through specific examples.
[0056] According to an embodiment of the present invention, Figure 2 As shown, a data detection method is provided, the method comprising:
[0057] Step S202, obtaining the data to be detected;
[0058] Step S204, inputting the data to be detected into a target network model to obtain a target coordinate group, wherein the target coordinate group includes a first coordinate group;
[0059] Step S206: confirming the detection result of the data to be detected based on the first coordinate group.
[0060] According to an optional embodiment of the present invention, obtaining the data to be detected includes:
[0061] Acquire first data of the target object;
[0062] Based on the first data of the target object, second data of the target object is acquired, wherein the data to be detected includes the first data and the second data.
[0063] Wherein, obtaining the first data of the target object includes:
[0064] Set the target control area;
[0065] Based on the target control area, the first data of the target object is acquired.
[0066] According to an embodiment of the present invention, optionally, obtaining the first data of the target object based on the target control area includes:
[0067] Based on the target control area, acquiring traffic data of the target object;
[0068] The first data of the target object in the traffic data is extracted using an extraction model.
[0069] According to one embodiment of the present invention, using the extraction model to obtain the first data of the target object is one of the ways to obtain the first data of the target object. As long as the effect of extracting the first data can be achieved, it can be used as a specific implementation method without limitation.
[0070] It should be noted that the target object can be (but not limited to) a node in a communication network when applied to a communication network, or it can be a moving object in a transportation network when applied to a transportation network, such as a vehicle, pedestrian, building, etc.; correspondingly, the first data can be (but not limited to) traffic data and signal reception and transmission data in a communication network, or it can be traffic data, motion data, spatiotemporal data, etc. in a transportation network.
[0071] According to an optional embodiment of the present invention, preferably, the target control area is an irregular polygonal area, wherein the shape of the control area can be set according to specific circumstances and is not limited here.
[0072] According to an optional embodiment of the present invention, obtaining the traffic data of the target object includes obtaining the traffic data of the target object through a first data recording device, wherein the first data recording device can be a camera and / or a photo taking device, or other device that can record image information, wherein the traffic data is video stream data and / or photo data; correspondingly, the flow data of the target object can be obtained by monitoring through a flow monitoring device or a signal monitoring device.
[0073] According to an optional embodiment of the present invention, extracting the first data of the target object in the traffic data by using the extraction model includes:
[0074] Acquire the position data, label data, time data, and image frame data of the target object using the extraction model;
[0075] Based on the position data, label data, time data and image frame data of the target object, using an extraction model to obtain the tracking trajectory of the target object;
[0076] Based on the tracking trajectory of the target object and the target control area, using the extraction model to confirm whether the target object enters the target control area, so as to confirm the validity of the first data;
[0077] When it is confirmed that the target object enters the target control area, the position data, label data, time data and image frame data of the target object are valid first data, wherein the valid first data is one of the data to be detected.
[0078] The method of obtaining the tracking trajectory of the target object by using an extraction model based on the position data, label data, time data and image frame data of the target object includes:
[0079] Traversing the current image frame data through the extraction model, confirming whether the position data, label data, time data and image frame data of the target object are correlated, that is, whether the position data, label data, time data and image frame data of the target object are the position data, label data, time data and image frame data of the same target object; if it is confirmed that the position data, label data, time data and image frame data of the target object are data about the same target object, executing the next step;
[0080] The extraction model is used to confirm whether the target object in each frame of the image frame data contains the same label data. Each target object contains a label data, which can be a license plate number of a vehicle. It is understandable that the traffic data can contain multiple target objects at the same time.
[0081] Acquire the tracking trajectory of the target object using the extraction model according to the position data and the time data of the target object;
[0082] According to the position data and the time data of the target object, identification frames of the image frame data of adjacent frames are connected to obtain the tracking trajectory of the target object.
[0083] In the step of confirming whether the target object enters the target control area based on the tracking trajectory of the target object and the target control area, an extraction model is used to confirm whether the target object enters the target control area to confirm the validity of the first data, and the connecting line segments between the identification frames of the image frame data, that is, whether the tracking trajectory of the target object intersects with the target control area, and if it is confirmed that the tracking trajectory of the target object intersects with the target control area, then the position data, label data, time data and image frame data of the target object are valid first data, that is, one of the data to be detected.
[0084] When it is confirmed that the target object has not entered the target control area, the position data, label data, time data and image frame data of the target object are invalid first data, wherein the invalid first data is not the data to be detected.
[0085] According to another embodiment of the present invention, the first data is the first data of the target object located around the target control area. When the positional relationship between the target object and the target control area satisfies a first threshold, the first data of the target object, i.e., the position data, label data, time data and image frame data of the target object, is obtained. Different from the previous embodiment, the relationship between the target object and the target control area in this embodiment can be an intersection, or can be located around the target control area. In other words, when the first data of the target object is obtained using the extraction model, it is not necessary to judge the intersection relationship between the target object and the target control area, as long as a pre-set threshold is met, and the intersection relationship between the target object and the target control area needs to be further judged based on the first data and the second data using the target network model.
[0086] According to an embodiment of the present invention, based on the first data of the target object, obtaining the second data of the target object includes, according to the position data, label data, time data and image frame data of the target object, correspondingly obtaining the second data of the target object, that is, the moving speed, target distance, depth information and heading information of the target object. The second data of the target object is one of the data to be detected.
[0087] According to one embodiment of the present invention, the second data of the target object is obtained by a second data recording device, wherein the second data of the target object is multi-dimensional data information, such as the moving speed, target distance, depth information and heading information of the target object. The moving speed, target distance, depth information and heading information listed here are examples and are not limited to these information types. It is worth mentioning that the multi-dimensional data information here refers to information from different dimensions, such as azimuth information, speed information, distance information and depth information. The second data recording device can be a millimeter wave radar or a laser radar, as well as other devices that can realize the function of recording multi-dimensional data information, which are not limited here.
[0088] According to an embodiment of the present invention, Figure 3 As shown, the data to be detected is input into the target network model to obtain a target coordinate group, including:
[0089] Inputting the data to be detected into a target network model;
[0090] Based on the first data, confirming the center point of the target object;
[0091] Based on the center point, the first data and the second data, confirming a plurality of target coordinate information using the target network model;
[0092] The target coordinate group is determined based on the plurality of target coordinate information.
[0093] According to an embodiment of the present invention, the position of the target object is calibrated based on the first data of the target object, so as to confirm the center point of the target object.
[0094] Optionally, through the target network model, based on the center point, the data to be detected is processed with a first offset value to output 16 coordinate information relative to the center point to constitute 8 vertex coordinates of the target object relative to the center point, and the 8 vertex coordinates constitute the target coordinate group.
[0095] The target network model is a pre-trained network model. The target network model is trained by a large number of sample objects, and the target network model constructs a cube box related to the target object. By inputting the first data and the second data of the target object into the target network model, the target network model fuses the first data and the second data, determines the center point of the target object when the position is calibrated, and based on the center point, obtains the corresponding 8 vertex coordinates of the target object in the cube box, and the 8 vertex coordinates constitute the target coordinate group.
[0096] According to an embodiment of the present invention, preferably, the target network model is a pre-trained deep learning network model.
[0097] According to an embodiment of the present invention, confirming the detection result of the to-be-detected data based on the first coordinate group includes:
[0098] Extracting vertex coordinates located in a first area from the target coordinate group using the target network model to obtain the first coordinate group;
[0099] Based on the first coordinate group and the target control area, confirm whether any vertex coordinate in the first coordinate group is located in the target control area;
[0100] When one of the vertex coordinates in the first coordinate group is located in the target control area, the data to be detected is confirmed to be target data.
[0101] According to one embodiment of the present invention, the first area is the area where the target object is located on the ground, and correspondingly, the first coordinate group is the vertex coordinates of the target coordinate group located in the ground area. Preferably, the vertex coordinates located in the ground area are the four vertex coordinates of the target object located on the ground.
[0102] The number of vertex coordinates in the first coordinate group may be 4 or any other number, which is not limited here.
[0103] Among them, based on the first coordinate group and the target control area, confirm whether any vertex coordinate in the first coordinate group is located in the target control area. When one of the vertex coordinates in the first coordinate group is located in the target control area, the data to be detected is the target data. When any vertex coordinate in the first coordinate group is located outside the target control area, the data to be detected is not the target data.
[0104] Optionally, based on the first coordinate group, confirming the detection result of the to-be-detected data, further comprising:
[0105] Report the test results.
[0106] It should be noted that, in some embodiments of the present invention, when the target object is a vehicle, when the tracking trajectory of the vehicle intersects with the target control area, the actual position of the target object may be within the target control area, or may not be within the target area. Because the image frame data of the first data of the target object extracted by the extraction model is plane data information, the first data recording device cannot obtain the specific ground position information of the vehicle at this time due to the limitation of the shooting angle in scenes such as turning intersections. At this time, the image frame data of adjacent frames are connected to obtain the tracking trajectory of the vehicle and judge it with the target control area. Even if the vehicle does not actually enter the target control area, it may cause a misjudgment, that is, the tracking trajectory of the vehicle intersects with the target control area. Therefore, it is impossible to accurately judge whether the target object has actually entered the target control area based on the first data of the target object extracted from the traffic data using the extraction model.
[0107] Therefore, the detection method provided by the present invention obtains the second data of the vehicle, i.e., multi-dimensional information such as moving speed, target distance, depth information and heading information, by introducing a second data recording device, such as a millimeter wave radar, and extracts the coordinates of the four vertices of the ground where the vehicle is located at this time through the target network model, and then judges the four vertex coordinates of the ground where the vehicle is located with the target control area. In this way, it can be accurately judged whether the vehicle has actually entered the target control area. Compared with the existing vehicle position detection technology, the accuracy of the judgment is improved, and a better application is provided for the scene judgment of whether the vehicle has abnormally left.
[0108] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0109] In the present embodiment, a detection device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.
[0110] According to an embodiment of the present invention, Figure 4 As shown, the data detection device includes:
[0111] A data acquisition module 10 is used to acquire data to be detected;
[0112] A coordinate acquisition module 20, used for inputting the data to be detected into a target network model to obtain a target coordinate group, wherein the target coordinate group includes a first coordinate group;
[0113] The detection module 30 confirms the detection result of the data to be detected based on the first coordinate group.
[0114] According to an optional embodiment of the present invention, the data acquisition module 10 includes:
[0115] A first data acquisition module 11, used to acquire first data of the target object;
[0116] The second data acquisition module 12 acquires second data of the target object based on the first data of the target object, wherein the data to be detected includes the first data and the second data.
[0117] The first data acquisition module 11 includes:
[0118] A control area setting unit 111 is used to set a target control area;
[0119] The first data acquisition unit 112 is used to acquire the first data of the target object based on the target control area.
[0120] The first data acquisition unit 112 further includes:
[0121] The traffic data acquisition unit 1121 is used to acquire the traffic data of the target object based on the target control area;
[0122] The extraction unit 1122 is configured to extract the first data of the target object from the traffic data by using an extraction model.
[0123] According to an optional embodiment of the present invention, the extracting unit 1122 is configured as follows:
[0124] Acquire the position data, label data, time data, and image frame data of the target object using the extraction model;
[0125] Based on the position data, label data, time data and image frame data of the target object, using an extraction model to obtain a tracking trajectory of the target object;
[0126] Based on the tracking trajectory of the target object and the target control area, using the extraction model to confirm whether the target object enters the target control area, so as to confirm the validity of the first data;
[0127] When it is confirmed that the target object enters the target control area, the position data, label data, time data and image frame data of the target object are valid first data, wherein the valid first data is one of the data to be detected.
[0128] When it is confirmed that the target object has not entered the target control area, the position data, label data, time data and image frame data of the target object are invalid first data, wherein the invalid first data is not the data to be detected.
[0129] According to an embodiment of the present invention, specifically, the second data acquisition module 12 acquires the second data of the target object, namely, the moving speed, target distance, depth information and heading information of the target object, according to the position data, label data, time data and image frame data of the target object. The second data of the target object is one of the data to be detected.
[0130] According to another embodiment of the present invention, the first data is the first data of the target object located around the target control area. When the positional relationship between the target object and the target control area meets the first threshold, the first data of the target object, that is, the position data, label data, time data and image frame data of the target object, is correspondingly obtained. Different from the previous embodiment, the relationship between the target object and the target control area in this embodiment can be an intersection, or can be located around the target control area. In other words, when the first data of the target object is obtained using the extraction model, it is not necessary to judge the intersection relationship between the target object and the target control area, as long as the pre-set threshold is met, and the intersection relationship between the target object and the target control area needs to be further judged based on the first data and the second data using the target network model.
[0131] According to an embodiment of the present invention, the coordinate acquisition module 20 includes:
[0132] A data transmission module 21, used for inputting the data to be detected into a target network model;
[0133] A center confirmation module 22, configured to confirm the center point of the target object based on the first data;
[0134] The coordinate information confirmation module 23 is used to confirm the plurality of target coordinate information using the target network model based on the center point, the first data and the second data.
[0135] The coordinate group confirmation module 24 is used to determine the target coordinate group based on the multiple target coordinate information.
[0136] According to an embodiment of the present invention, the center confirmation module 22 calibrates the position of the target object based on the first data of the target object, thereby confirming the center point of the target object.
[0137] Optionally, the coordinate information confirmation module 23 performs a first offset value processing on the data to be detected based on the center point through the target network model to output 16 coordinate information relative to the center point to constitute 8 vertex coordinates of the target object relative to the center point, and the 8 vertex coordinates constitute the target coordinate group.
[0138] According to an embodiment of the present invention, the detection module 30 includes:
[0139] A coordinate extraction module 31 is used to extract vertex coordinates located in a first area from the target coordinate group using the target network model to obtain the first coordinate group;
[0140] A first coordinate detection module 32 is used to confirm whether any vertex coordinate in the first coordinate group is located in the target control area based on the first coordinate group and the target control area;
[0141] The target data confirmation module 33 is used to confirm that the data to be detected is the target data when one of the vertex coordinates in the first coordinate group is located in the target control area.
[0142] According to one embodiment of the present invention, the first area is the area where the target object is located on the ground, and correspondingly, the first coordinate group is the vertex coordinates of the target coordinate group located in the ground area. Preferably, the vertex coordinates located in the ground area are the four vertex coordinates of the target object located on the ground.
[0143] The number of vertex coordinates in the first coordinate group may be 4 or any other number, which is not limited here.
[0144] Among them, based on the first coordinate group and the target control area, confirm whether any vertex coordinate in the first coordinate group is located in the target control area. When one of the vertex coordinates in the first coordinate group is located in the target control area, the data to be detected is the target data. When any vertex coordinate in the first coordinate group is located outside the target control area, the data to be detected is not the target data.
[0145] Wherein, through the first coordinate detection module 32, based on the first coordinate group and the target control area, it is confirmed whether any vertex coordinate in the first coordinate group is located in the target control area. According to the target data confirmation module 33, when one of the vertex coordinates in the first coordinate group is located in the target control area, the data to be detected is the target data, and when any vertex coordinate in the first coordinate group is located outside the target control area, the data to be detected is not the target data.
[0146] Optionally, the detection device further includes an output module 40 for reporting the detection result.
[0147] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0148] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0149] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0150] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0151] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0152] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0153] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0154] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A data detection method, It is characterized in that include: Obtain the data to be tested; Inputting the data to be detected into a target network model to obtain a target coordinate group, wherein the target coordinate group includes a first coordinate group; Based on the first coordinate group, confirming the detection result of the data to be detected; The step of inputting the data to be detected into a target network model to obtain a target coordinate group includes: inputting the data to be detected into a target network model; confirming a center point of the target object based on first data of the target object acquired in advance; confirming a plurality of target coordinate information using the target network model based on the center point, the first data and second data of the target object obtained based on the first data; and determining the target coordinate group based on the plurality of target coordinate information; Among them, based on the first coordinate group, confirming the detection result of the data to be detected, including: using the target network model to extract the vertex coordinates located in the first area from the target coordinate group to obtain the first coordinate group; based on the first coordinate group and a pre-set target control area, confirming whether any vertex coordinate in the first coordinate group is located in the target control area; when one of the vertex coordinates in the first coordinate group is located in the target control area, confirming that the data to be detected is the target data.
2. The method according to claim 1, It is characterized in that Obtaining the data to be tested includes: Acquire first data of a target object; Based on the first data of the target object, second data of the target object is acquired, wherein the data to be detected includes the first data and the second data.
3. The method according to claim 2, It is characterized in that The first data of the target object is obtained, including: Set the target control area; Based on the target control area, the first data of the target object is acquired.
4. A data detection device, It is characterized in that include: A data acquisition module, used for acquiring data to be detected; A coordinate acquisition module, used for inputting the data to be detected into a target network model to obtain a target coordinate group, wherein the target coordinate group includes a first coordinate group; A detection module, based on the first coordinate group, confirms the detection result of the data to be detected; Wherein, the coordinate acquisition module includes: A data transmission module, used for inputting the data to be detected into a target network model; A center confirmation module, used to confirm the center point of the target object based on the first data of the target object to be detected that is acquired in advance; A coordinate information confirmation module, configured to confirm multiple target coordinate information using the target network model based on the center point, the first data, and second data of the target object obtained based on the first data; A coordinate group confirmation module, used for determining the target coordinate group based on the plurality of target coordinate information; Wherein, the detection module includes: A coordinate extraction module, which extracts vertex coordinates located in a first area from the target coordinate group using the target network model to obtain the first coordinate group; A first coordinate detection module, used to confirm whether any vertex coordinate in the first coordinate group is located in the target control area based on the first coordinate group and a preset target control area; The target data confirmation module is used to confirm that the data to be detected is the target data when one of the vertex coordinates in the first coordinate group is located in the target control area.
5. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 3 when executed.
6. An electronic device comprising a memory and a processor, It is characterized in that A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Method and device for detecting vehicle
CN111553282A
Image processing method and device and neural network training method and device
CN111784773A
