A method and device for calculating impact deviation of virtual three-dimensional target
Through the differential firing signal technology of high-speed cameras and auxiliary equipment, the video image is processed and the impact deviation of the virtual three-dimensional target is calculated, which solves the problem of the virtual three-dimensional target being unable to calculate the deviation and achieves accurate measurement of projectile orientation, height deviation and distance deviation. Judgment of hitting the target.
Patent Information
- Application Number
- CN202111251742.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-25
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2041-10-25
AI Technical Summary
The existing technology cannot calculate the impact deviation of the virtual three-dimensional target and whether the projectile hits the simulated target target.
A high-speed camera and auxiliary equipment are used to record the video image of the projectile falling into the field of view through differential firing signals, process the video image, calculate the deviation data of the projectile, determine whether the projectile hits the target, and output the optimal deviation data.
It realizes the calculation of the impact deviation of the virtual three-dimensional target, calculates the projectile azimuth deviation, height deviation and distance deviation respectively, and determines whether the projectile hits the target, providing accurate projectile impact data.
Smart Images

Figure CN114155455B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of control, and in particular to a method and a device for calculating a virtual three-dimensional target impact deviation. Background Art
[0002] Shooting accuracy is generally assessed through target density tests and ammunition effective strike range tests, which are carried out in an open shooting range.
[0003] like Figure 1 As shown, the virtual three-dimensional target includes a simulated target and an effective action area marking area, and the effective action area marking area is a virtual area. Figure 1 In the figure, the strike distance d represents the range, which is 300 meters, 1000 meters and 2000 meters respectively. The effective action area is 60 meters long a and 60 meters wide b, 30 meters high c, and the bottom edge is 1.5 meters above the ground. The simulated target is placed on the ground in the middle of the area, with a size of 10 meters wide and 5 meters high, and a cross target is drawn in the center of the target board. The virtual three-dimensional target is a three-dimensional virtual area, and the impact deviation cannot be obtained by measurement. Summary of the invention
[0004] In order to solve the above technical problems, the present invention proposes a method and device for calculating the impact deviation of a virtual three-dimensional target. The method and device are used to solve the technical problems in the prior art that the virtual three-dimensional target cannot calculate the deviation and whether the projectile hits the simulated target.
[0005] According to a first aspect of the present invention, a method for calculating a virtual three-dimensional target impact deviation is provided, the method comprising the following steps:
[0006] Step S201: constructing a virtual three-dimensional target, wherein the virtual three-dimensional target has four poles respectively deployed at the corners of a square, and a target plate located at the center of the upright shape;
[0007] Step S202: deploy auxiliary equipment, the auxiliary equipment includes a first high-speed camera and a second high-speed camera, two differential firing signals output by the fire control equipment, the differential firing signal is valid when it is at the rising edge; the second high-speed camera is deployed on the trajectory, and the distance between the second high-speed camera and the virtual stereo target is a first preset distance; the first high-speed camera is deployed on the vertical line of the trajectory, and is on the same vertical line of the trajectory as the target plate of the virtual stereo target, and the distance between the first high-speed camera and the virtual stereo target is the first preset distance; the first high-speed camera and the second high-speed camera are respectively coupled to a differential firing signal; the high-speed camera refers to a camera with a speed of at least 5000 frames / second;
[0008] Step S203: Starting from the firing of the projectile, the first high-speed camera and the second high-speed camera start recording, and after the projectile falls to the ground, the first high-speed camera and the second high-speed camera stop recording; in the videos recorded by the first high-speed camera and the second high-speed camera, obtain the valid frame in which the projectile falls into the field of view; in the valid frame, obtain the video image pair of the first high-speed camera and the second high-speed camera at the same time {(I 11 ,I 21 ),…,(I 1i ,I 2i ),…,(I 1n ,I 2n )}, where n is the number of video image pairs of the first high-speed camera and the second high-speed camera at the same time in the valid frame, 1≤i≤n, I 1i ,I 2i are respectively the video image of the first high-speed camera and the video image of the second high-speed camera in the i-th video image pair;
[0009] Step S204: Initialize the value of i to 1;
[0010] Step S205: Video image pair (I 1i ,I 2i ), from I 1i Read x 1 、x 3 、x 7 、x 11 ,y 1 ,y 5 ,y 6 ,y 7 , where x 1 For the projectile in image I 1i The number of pixels on the x-axis, x 3 To simulate the target in image I 1i The number of pixels on the x-axis, x 7 The bottom of the first bar in image I 1i The number of pixels on the x-axis, x 11 For the bottom of the fourth pole in image I 1i The number of pixels on the x-axis, y 1 For the projectile in image I 1i The number of pixels on the y-axis, y 5 The bottom of the second pole in image I 1i The number of pixels on the x-axis, y 6 For the top of the first pole in image I 1i The number of pixels on the y-axis, y 7 The bottom of the first bar in image I 1i The number of pixels on the y axis; from I 2i Read x 21 ,x22 ,x 23 ,x 24 , where x 21 For the projectile in image I 2i The number of pixels on the x-axis, x 22 To simulate the top of the target in image I 2i The number of pixels on the x-axis, x 23 To simulate the target bottom in image I 2i The number of pixels on the x-axis, x 24 For the top of the second pole in image I 2i The number of pixels on the x-axis; the first marker, the second marker, the third marker, and the fourth marker are arranged in a clockwise or counterclockwise order;
[0011] Step S206: Calculate the video image pair (I 1i ,I 2i ) Deviation data of the projectile in γ i , and determine the video image pair (I 1i ,I 2i ) whether the bullet hits the target;
[0012] Step S207: if i<n, set i to i+1 and go to step S205; otherwise, go to step S208;
[0013] Step S208: Select a set of deviation data with the smallest distance deviation as optimal deviation data, and output the optimal deviation data.
[0014] According to a second aspect of the present invention, a virtual three-dimensional target impact deviation calculation device is provided, the device comprising:
[0015] A target construction module: configured to construct a virtual three-dimensional target, wherein the virtual three-dimensional target has four poles respectively deployed at the corners of a square, and a target plate located at the center of the upright shape;
[0016] Auxiliary equipment deployment module: configured to deploy auxiliary equipment, the auxiliary equipment includes a first high-speed camera and a second high-speed camera, two differential firing signals output by a fire control device, the differential firing signal is valid when it is at a rising edge; the second high-speed camera is deployed on the trajectory, and the distance between the second high-speed camera and the virtual stereo target is a first preset distance; the first high-speed camera is deployed on a vertical line of the trajectory, and is on the same vertical line of the trajectory as the target plate of the virtual stereo target, and the distance between the first high-speed camera and the virtual stereo target is a first preset distance; the first high-speed camera and the second high-speed camera are respectively coupled to a differential firing signal; the high-speed camera refers to a camera with a speed of at least 5000 frames per second;
[0017] The image acquisition module is configured such that the first high-speed camera and the second high-speed camera start recording from the time the projectile is fired, and the first high-speed camera and the second high-speed camera stop recording after the projectile falls to the ground; in the videos recorded by the first high-speed camera and the second high-speed camera, a valid frame in which the projectile falls into the field of view is acquired; in the valid frame, a video image pair of the first high-speed camera and the second high-speed camera at the same time is acquired. 11 ,I 21 ),…,(I 1i ,I 2i ),…,(I 1n ,I 2n )}, where n is the number of video image pairs of the first high-speed camera and the second high-speed camera at the same time in the valid frame, 1≤i≤n, I 1i ,I 2i are respectively the video image of the first high-speed camera and the video image of the second high-speed camera in the i-th video image pair;
[0018] Initialization module: configured to initialize the i value to 1;
[0019] Image processing module: configured to process video images (I 1i ,I 2i ), from I 1i Read x 1 、x 3 、x 7 、x 11 ,y 1 ,y 5 ,y 6 ,y 7 , where x 1 For the projectile in image I 1i The number of pixels on the x-axis, x 3 To simulate the target in image I 1i The number of pixels on the x-axis, x 7 The bottom of the first bar in image I 1i The number of pixels on the x-axis, x 11 For the bottom of the fourth pole in image I 1i The number of pixels on the x-axis, y 1 For the projectile in image I 1i The number of pixels on the y-axis, y 5 The bottom of the second pole in image I 1i The number of pixels on the x-axis, y 6 For the top of the first pole in image I 1i The number of pixels on the y-axis, y 7 The bottom of the first bar in image I 1i The number of pixels on the y axis; from I 2i Read x21 ,x 22 ,x 23 ,x 24 , where x 21 For the projectile in image I 2i The number of pixels on the x-axis, x 22 To simulate the top of the target in image I 2i The number of pixels on the x-axis, x 23 To simulate the target bottom in image I 2i The number of pixels on the x-axis, x 24 For the top of the second pole in image I 2i The number of pixels on the x-axis; the first marker, the second marker, the third marker, and the fourth marker are arranged in a clockwise or counterclockwise order;
[0020] Target determination module: configured to calculate the video image pair (I 1i ,I 2i ) Deviation data of the projectile in γ i , and determine the video image pair (I 1i ,I 2i ) whether the bullet hits the target;
[0021] Judgment module: configured to assign i to i+1 if i<n;
[0022] Output module: configured to select a set of deviation data with the smallest distance deviation as optimal deviation data, and output the optimal deviation data.
[0023] According to a third aspect of the present invention, there is provided a virtual three-dimensional target impact deviation calculation system, comprising:
[0024] A processor, which is used to execute multiple instructions;
[0025] A memory for storing a plurality of instructions;
[0026] Among them, the multiple instructions are used to be stored by the memory, and loaded and executed by the processor to calculate the impact deviation of the virtual three-dimensional target as described above.
[0027] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium, wherein a plurality of instructions are stored in the storage medium; the plurality of instructions are used for a processor to load and execute the aforementioned method for calculating the impact deviation of a virtual three-dimensional target.
[0028] According to the above scheme of the present invention, based on the relevant data measured by the auxiliary equipment, the function of calculating the impact deviation of the virtual three-dimensional target is realized, and the functions of calculating the azimuth deviation, height deviation and distance deviation of the projectile are respectively calculated, and at the same time, it can be given whether the projectile has hit the target. A new method for calculating the impact deviation of a virtual three-dimensional target is proposed. The auxiliary equipment required by the present invention is easy to configure and easy to implement, and can realize the function of calculating the impact deviation of the virtual three-dimensional target, and can realize the function of calculating the azimuth deviation, height deviation and distance deviation of the projectile respectively, and at the same time, it can be given whether the projectile has hit the target.
[0029] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention and implement it according to the contents of the specification, the following is a detailed description of the preferred embodiments of the present invention in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention, and the present invention is described by providing the following accompanying drawings. In the accompanying drawings:
[0031] Figure 1 A schematic diagram of a virtual three-dimensional target according to an embodiment of the present invention;
[0032] Figure 2 A schematic diagram of a method for calculating a virtual three-dimensional target impact deviation according to an embodiment of the present invention;
[0033] Figure 3 A top view of the arrangement of the pole and the target plate according to one embodiment of the present invention;
[0034] Figure 4 A top view of a high-speed camera arrangement according to an embodiment of the present invention;
[0035] Figure 5 A schematic diagram of an image of a first high-speed camera according to an embodiment of the present invention;
[0036] Figure 6 A schematic diagram of an image of a second high-speed camera according to an embodiment of the present invention;
[0037] Figure 7 A schematic diagram of an iterative algorithm process according to an embodiment of the present invention;
[0038] Figure 8 The present invention is a block diagram of a virtual three-dimensional target impact deviation calculation device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0039] definition:
[0040] High-speed camera: A camera with a speed of at least 5000 frames per second.
[0041] First combine Figure 2 A method for calculating a virtual three-dimensional target impact deviation according to an embodiment of the present invention is described. The method comprises the following steps:
[0042] Step S201: constructing a virtual three-dimensional target, wherein the virtual three-dimensional target has four poles respectively deployed at the corners of a square, and a target plate located at the center of the upright shape;
[0043] Step S202: deploy auxiliary equipment, the auxiliary equipment includes a first high-speed camera and a second high-speed camera, two differential firing signals output by the fire control equipment, the differential firing signals are valid when they are at the rising edge; the second high-speed camera is deployed on the trajectory, and the distance between the second high-speed camera and the virtual stereo target is a first preset distance; the first high-speed camera is deployed on a vertical line of the trajectory, and is on the same vertical line of the trajectory as the target plate of the virtual stereo target, and the distance between the first high-speed camera and the virtual stereo target is the first preset distance; the first high-speed camera and the second high-speed camera are respectively coupled to one differential firing signal;
[0044] Step S203: Starting from the firing of the projectile, the first high-speed camera and the second high-speed camera start recording, and after the projectile falls to the ground, the first high-speed camera and the second high-speed camera stop recording; in the videos recorded by the first high-speed camera and the second high-speed camera, obtain the valid frame in which the projectile falls into the field of view; in the valid frame, obtain the video image pair of the first high-speed camera and the second high-speed camera at the same time {(I 11 ,I 21 ),…,(I 1i ,I 2i ),…,(I 1n ,I 2n )}, where n is the number of video image pairs of the first high-speed camera and the second high-speed camera at the same time in the valid frame, 1≤i≤n, I 1i ,I 2i are respectively the video image of the first high-speed camera and the video image of the second high-speed camera in the i-th video image pair;
[0045] Step S204: Initialize the value of i to 1;
[0046] Step S205: Video image pair (I 1i ,I 2i ), from I 1i Read x 1 、x 3 、x 7 、x 11 ,y 1 ,y 5 ,y 6 ,y7 , where x 1 For the projectile in image I 1i The number of pixels on the x-axis, x 3 To simulate the target in image I 1i The number of pixels on the x-axis, x 7 The bottom of the first bar in image I 1i The number of pixels on the x-axis, x 11 For the bottom of the fourth pole in image I 1i The number of pixels on the x-axis, y 1 For the projectile in image I 1i The number of pixels on the y-axis, y 5 The bottom of the second pole in image I 1i The number of pixels on the x-axis, y 6 For the top of the first pole in image I 1i The number of pixels on the y-axis, y 7 The bottom of the first bar in image I 1i The number of pixels on the y axis; from I 2i Read x 21 ,x 22 ,x 23 ,x 24 , where x 21 For the projectile in image I 2i The number of pixels on the x-axis, x 22 To simulate the top of the target in image I 2i The number of pixels on the x-axis, x 23 To simulate the target bottom in image I 2i The number of pixels on the x-axis, x 24 For the top of the second pole in image I 2i The number of pixels on the x-axis; the first marker, the second marker, the third marker, and the fourth marker are arranged in a clockwise or counterclockwise order;
[0047] Step S206: Calculate the video image pair (I 1i ,I 2i ) Deviation data of the projectile in γ i , and determine the video image pair (I 1i ,I 2i ) whether the bullet hits the target;
[0048] Step S207: if i<n, set i to i+1 and go to step S205; otherwise, go to step S208;
[0049] Step S208: Select a set of deviation data with the smallest distance deviation as optimal deviation data, and output the optimal deviation data.
[0050] Step S201: construct a virtual three-dimensional target, which has four poles respectively deployed at the corners of a square and a target plate located at the center of the upright shape; wherein each pole is 1.5 meters above the ground; the size of the target plate is 10 meters × 5 meters; the side length of the square is 60 meters; thereby constructing a virtual three-dimensional target of 60 meters × 60 meters × 30 meters, such as Figure 3 shown.
[0051] like Figure 4 As shown, in step S202, the speed of the first high-speed camera and the second high-speed camera is 5000 frames per second; the first preset distance is 300 meters.
[0052] like Figure 5-Figure 6 As shown, the x-axis represents the horizontal direction and the y-axis represents the vertical direction.
[0053] like Figure 7 As shown, step S206: Calculate the video image pair (I 1i ,I 2i ) Deviation data of the projectile in γ i , and determine the video image pair (I 1i ,I 2i ) Whether the bullet hits the target, including:
[0054] Step S20601: Based on I 1i The projectile information and the virtual three-dimensional target information obtained in the above method are used to determine the distance deviation direction flag Flag_jl, where the initial value of Flag_jl is 0;
[0055] Flag_jl=0, indicating that the distance is farther than the target plate.
[0056] Flag_jl=1, indicating that the distance is closer than the target plate.
[0057] Step S20602: Based on I 2i The projectile information and the virtual three-dimensional target information obtained in the above method are used to determine the azimuth deviation Δx gs , Δx gs The unit is m,
[0058] Step S20603: Based on I 1i The projectile information and the virtual three-dimensional target information obtained in the above method are used to determine the distance deviation and the height deviation:
[0059] The azimuth deviation is used to obtain the position of the projectile at I 1i The y-axis coordinate of the projection point in the result is in pixels
[0060]
[0061] The height deviation Δh is: Δh is in meters;
[0062]
[0063] The distance deviation Δd is: Δd is in meters;
[0064] When Δd≥0.0, Flag_jl=0;
[0065] When Δd<0.0, Flag_jl=1;
[0066] Step S20604: if the distance deviation direction flag Flag_jl is less than 0, proceed to step S20605; if the distance deviation direction flag Flag_jl is greater than 0, proceed to step S20607;
[0067] Step S20605: Azimuth deviation Δx gs Assign Δx gs Add 0.1;
[0068] Step S20606: Based on I 1i The projectile information and the virtual three-dimensional target information obtained in the above method are used to determine the distance deviation and the height deviation:
[0069] The azimuth deviation is used to obtain the position of the projectile at I 1i The y-axis coordinate of the projection point in the result is in pixels
[0070]
[0071] The height deviation Δh is: Δh is in meters;
[0072] The azimuth deviation is used to obtain the position of the projectile at I 1i The x-axis coordinate of the projection point in the result is in pixels
[0073]
[0074] The distance deviation Δd is: Δd is in meters;
[0075] Go to step S20609;
[0076] Step S20607: Azimuth deviation Δx gs Assign Δx gs minus 0.1;
[0077] Step S20608: Based on I 1iThe projectile information and the virtual three-dimensional target information obtained in the above method are used to determine the distance deviation and the height deviation:
[0078] The azimuth deviation is used to obtain the position of the projectile at I 1i The y-axis coordinate of the projection point in the result is in pixels
[0079]
[0080] The height deviation Δh is: Δh is in meters;
[0081] The azimuth deviation is used to obtain the position of the projectile at I 1i The x-axis coordinate of the projection point in the result is in pixels
[0082]
[0083] The distance deviation Δd is: Δd is in meters;
[0084] Go to step S20609;
[0085] Step S20609: compare the current height deviation Δh and distance deviation Δd with the height deviation Δh and distance deviation Δd before and closest to the current calculation. If the differences are less than 0.1 meters, proceed to step S20610; otherwise, proceed to step S20604;
[0086] Step S20610: When the If the projectile hits the target, it will hit the target; otherwise, it will miss the target.
[0087] In this embodiment, if the iteration reaches the numth time, the height deviation Δh and the distance deviation Δd calculated in the num-1th time are compared. When the first iterative calculation of steps S20605-step S20606 and steps S20607-step S20608 is performed, the height deviation Δh and the distance deviation Δd with the closest time interval to the current calculation are compared. This means that if the calculation before the first iterative calculation is the height deviation Δh and the distance deviation Δd calculated by step S20603, the data calculated in the first iterative calculation are respectively compared with the height deviation Δh and the distance deviation Δd calculated in step S20603. If the calculation before the first iterative calculation of steps S20605-step S20606 is the calculation obtained by steps S20607-step S20608, the data calculated in the first iterative calculation are compared with the height deviation Δh and the distance deviation Δd calculated in steps S20607-step S20608. If the calculation before the first iterative calculation of step S20607-step S20608 is calculated by step S20605-step S20606, the data of the first iterative calculation is compared with the height deviation Δh and distance deviation Δd calculated by step S20605-step S20606.
[0088] In this embodiment, the above processing should be started for each projectile from the time the projectile enters the field of view until the projectile flies out of the field of view or falls to the ground. The effective frames of the high-speed camera can be processed multiple frames at a time, but it is necessary to ensure that at least 200 frames are processed for each projectile, that is, n≥200, and the optimal calculation result is taken as the final result.
[0089] In this embodiment, the projectile azimuth deviation, height deviation and distance deviation are given, and the function of calculating the impact deviation of the virtual three-dimensional target is realized based on the relevant data measured by the auxiliary equipment. The projectile azimuth deviation, height deviation and distance deviation are calculated respectively, and at the same time, it is calculated whether the projectile hits the target.
[0090] The embodiment of the present invention further provides a virtual three-dimensional target impact deviation calculation device, such as Figure 8 As shown, the device comprises:
[0091] A target construction module: configured to construct a virtual three-dimensional target, wherein the virtual three-dimensional target has four poles respectively deployed at the corners of a square, and a target plate located at the center of the upright shape;
[0092] Auxiliary equipment deployment module: configured to deploy auxiliary equipment, the auxiliary equipment includes a first high-speed camera and a second high-speed camera, two differential firing signals output by a fire control device, the differential firing signal is valid when it is at a rising edge; the second high-speed camera is deployed on the trajectory, and the distance between the second high-speed camera and the virtual stereo target is a first preset distance; the first high-speed camera is deployed on a vertical line of the trajectory, and is on the same vertical line of the trajectory as the target plate of the virtual stereo target, and the distance between the first high-speed camera and the virtual stereo target is a first preset distance; the first high-speed camera and the second high-speed camera are respectively coupled to a differential firing signal; the high-speed camera refers to a camera with a speed of at least 5000 frames per second;
[0093] The image acquisition module is configured such that the first high-speed camera and the second high-speed camera start recording from the time the projectile is fired, and the first high-speed camera and the second high-speed camera stop recording after the projectile falls to the ground; in the videos recorded by the first high-speed camera and the second high-speed camera, a valid frame in which the projectile falls into the field of view is acquired; in the valid frame, a video image pair of the first high-speed camera and the second high-speed camera at the same time is acquired. 11 ,I 21 ),…,(I 1i ,I 2i ),…,(I 1n ,I 2n )}, where n is the number of video image pairs of the first high-speed camera and the second high-speed camera at the same time in the valid frame, 1≤i≤n, I 1i ,I 2i are respectively the video image of the first high-speed camera and the video image of the second high-speed camera in the i-th video image pair;
[0094] Initialization module: configured to initialize the i value to 1;
[0095] Image processing module: configured to process video images (I 1i ,I 2i ), from I 1i Read x 1 、x 3 、x 7 、x 11 ,y 1 ,y 5 ,y 6 ,y 7 , where x 1 For the projectile in image I 1i The number of pixels on the x-axis, x 3 To simulate the target in image I 1i The number of pixels on the x-axis, x 7 The bottom of the first bar in image I1i The number of pixels on the x-axis, x 11 For the bottom of the fourth pole in image I 1i The number of pixels on the x-axis, y 1 For the projectile in image I 1i The number of pixels on the y-axis, y 5 The bottom of the second pole in image I 1i The number of pixels on the x-axis, y 6 For the top of the first pole in image I 1i The number of pixels on the y-axis, y 7 The bottom of the first bar in image I 1i The number of pixels on the y axis; from I 2i Read x 21 ,x 22 ,x 23 ,x 24 , where x 21 For the projectile in image I 2i The number of pixels on the x-axis, x 22 To simulate the top of the target in image I 2i The number of pixels on the x-axis, x 23 To simulate the target bottom in image I 2i The number of pixels on the x-axis, x 24 For the top of the second pole in image I 2i The number of pixels on the x-axis; the first marker, the second marker, the third marker, and the fourth marker are arranged in a clockwise or counterclockwise order;
[0096] Target determination module: configured to calculate the video image pair (I 1i ,I 2i ) Deviation data of the projectile in γ i , and determine the video image pair (I 1i ,I 2i ) whether the bullet hits the target;
[0097] Judgment module: configured to assign i to i+1 if i<n;
[0098] Output module: configured to select a set of deviation data with the smallest distance deviation as optimal deviation data, and output the optimal deviation data.
[0099] The embodiment of the present invention further provides a virtual three-dimensional target impact deviation calculation system, including:
[0100] A processor, which is used to execute multiple instructions;
[0101] A memory for storing a plurality of instructions;
[0102] Among them, the multiple instructions are used to be stored by the memory, and loaded and executed by the processor to calculate the impact deviation of the virtual three-dimensional target as described above.
[0103] The embodiment of the present invention further provides a computer-readable storage medium, in which a plurality of instructions are stored; the plurality of instructions are used by a processor to load and execute the aforementioned virtual three-dimensional target impact deviation calculation method.
[0104] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.
[0105] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0106] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0107] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0108] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a physical server, or a network cloud server, etc., which needs to be installed with Windows or Windows Server operating system) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (RandomAccess Memory, RAM), disk or optical disk and other media that can store program codes.
[0109] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Any simple modification, equivalent change and modification made to the above embodiment according to the technical essence of the present invention still falls within the scope of the technical solution of the present invention.
Claims
1. A method for calculating the impact deviation of a virtual three-dimensional target, characterized in that: The method comprises the following steps: Step S201: constructing a virtual three-dimensional target, wherein the virtual three-dimensional target has four poles respectively deployed at the corners of a square, and a target plate located at the center of the upright shape; Step S202: deploy auxiliary equipment, the auxiliary equipment includes a first high-speed camera and a second high-speed camera, two differential firing signals output by the fire control equipment, the differential firing signal is valid when it is at the rising edge; the second high-speed camera is deployed on the trajectory, and the distance between the second high-speed camera and the virtual stereo target is a first preset distance; the first high-speed camera is deployed on the vertical line of the trajectory, and is on the same vertical line of the trajectory as the target plate of the virtual stereo target, and the distance between the first high-speed camera and the virtual stereo target is the first preset distance; the first high-speed camera and the second high-speed camera are respectively coupled to a differential firing signal; the high-speed camera refers to a camera with a speed of at least 5000 frames / second; Step S203: Starting from the firing of the projectile, the first high-speed camera and the second high-speed camera start recording, and after the projectile falls to the ground, the first high-speed camera and the second high-speed camera stop recording; in the videos recorded by the first high-speed camera and the second high-speed camera, obtain the valid frame in which the projectile falls into the field of view; in the valid frame, obtain the video image pair of the first high-speed camera and the second high-speed camera at the same time {(I 11 ,I 21 ),…,(I 1i ,I 2i ),…,(I 1n ,I 2n )}, where n is the number of video image pairs of the first high-speed camera and the second high-speed camera at the same time in the valid frame, 1≤i≤n, I 1i ,I 2i are respectively the video image of the first high-speed camera and the video image of the second high-speed camera in the i-th video image pair; Step S204: Initialize the value of i to 1; Step S205: Video image pair (I 1i ,I 2i ), from I 1i Read x1, x3, x7, x 11 , y1, y5, y6, y7, where x1 is the projectile in image I 1i The number of pixels on the x-axis, x3 is the number of pixels on the simulated target in image I 1i The number of pixels on the x-axis, x7 is the bottom of the first bar in image I 1i The number of pixels on the x-axis, x 11 For the bottom of the fourth pole in image I 1i The number of pixels on the x-axis, y1 is the number of pixels on the projectile in image I 1i The number of pixels on the y axis, y5 is the bottom of the second benchmark in image I 1i The number of pixels on the x-axis, y6 is the top of the first bar in image I 1i The number of pixels on the y axis, y7 is the bottom of the first benchmark in image I 1i The number of pixels on the y axis; from I 2i Read x 21 ,x 22 ,x 23 ,x 24 , where x 21 For the projectile in image I 2i The number of pixels on the x-axis, x 22 To simulate the top of the target in image I 2i The number of pixels on the x-axis, x 23 To simulate the target bottom in image I 2i The number of pixels on the x-axis, x 24 For the top of the second pole in image I 2i The number of pixels on the x-axis; the first marker, the second marker, the third marker, and the fourth marker are arranged in a clockwise or counterclockwise order; Step S206: Calculate the video image pair (I 1i ,I 2i ) Deviation data of the projectile in γ i , and determine the video image pair (I 1i ,I 2i ) whether the bullet hits the target; Step S207: if i<n, set i to i+1 and go to step S205; otherwise, go to step S208; Step S208: Select a set of deviation data with the smallest distance deviation as optimal deviation data, and output the optimal deviation data.
2. The method for calculating the impact deviation of a virtual three-dimensional target according to claim 1, characterized in that: The step S201: constructs a virtual three-dimensional target, which has four poles respectively deployed at the corners of a square and a target plate located at the center of the upright shape; wherein each pole is 1.5 meters above the ground; the size of the target plate is 10 meters × 5 meters; the side length of the square is 60 meters; thereby constructing a virtual three-dimensional target of 60 meters × 60 meters × 30 meters.
3. The method for calculating the impact deviation of a virtual three-dimensional target according to claim 2, characterized in that: Step S206: Calculate the video image pair (I 1i ,I 2i ) Deviation data of the projectile in γ i , and determine the video image pair (I 1i ,I 2i ) Whether the bullet hits the target, including: Step S20601: Based on I 1i The projectile information and the virtual three-dimensional target information obtained in the above method are used to determine the distance deviation direction flag Flag_jl, where the initial value of Flag_jl is 0; Flag_jl=0, indicating that the distance is farther than the target plate. Flag_jl=1, indicating that the distance is closer than the target plate; Step S20602: Based on I 2i The projectile information and the virtual three-dimensional target information obtained in the above method are used to determine the azimuth deviation Δx gs , Δx gs The unit is m, Step S20603: Based on I 1i The projectile information and the virtual three-dimensional target information obtained in the above method are used to determine the distance deviation and the height deviation: The azimuth deviation is used to obtain the position of the projectile at I 1i The y-axis coordinate of the projection point in the result is in pixels The height deviation Δh is: Δh is in meters; The distance deviation Δd is: Δd is in meters; When Δd≥0.0, Flag_jl=0; When Δd<0.0, Flag_jl=1; Step S20604: if the distance deviation direction flag Flag_jl is less than 0, proceed to step S20605; if the distance deviation direction flag Flag_jl is greater than 0, proceed to step S20607; Step S20605: Azimuth deviation Δx gs Assign Δx gs Add 0.1; Step S20606: Based on I 1i The projectile information and the virtual three-dimensional target information obtained in the above method are used to determine the distance deviation and the height deviation: The azimuth deviation is used to obtain the position of the projectile at I 1i The y-axis coordinate of the projection point in the result is in pixels The height deviation Δh is: Δh is in meters; The azimuth deviation is used to obtain the position of the projectile at I 1i The x-axis coordinate of the projection point in the result is in pixels The distance deviation Δd is: Δd is in meters; Go to step S20609; Step S20607: Azimuth deviation Δx gs Assign Δx gs minus 0.1; Step S20608: Based on I 1i The projectile information and the virtual three-dimensional target information obtained in the above method are used to determine the distance deviation and the height deviation: The azimuth deviation is used to obtain the position of the projectile at I 1i The y-axis coordinate of the projection point in the result is in pixels The height deviation Δh is: Δh is in meters; The azimuth deviation is used to obtain the position of the projectile at I 1i The x-axis coordinate of the projection point in the result is in pixels The distance deviation Δd is: Δd is in meters; Go to step S20609; Step S20609: compare the current height deviation Δh and distance deviation Δd with the height deviation Δh and distance deviation Δd before and closest to the current calculation. If the differences are less than 0.1 meters, proceed to step S20610; otherwise, proceed to step S20604; Step S20610: When the If the projectile hits the target, it will hit the target; otherwise, it will miss the target.
4. A virtual three-dimensional target impact deviation calculation device, characterized in that: The device comprises: A target construction module: configured to construct a virtual three-dimensional target, wherein the virtual three-dimensional target has four poles respectively deployed at the corners of a square, and a target plate located at the center of the upright shape; Auxiliary equipment deployment module: configured to deploy auxiliary equipment, the auxiliary equipment includes a first high-speed camera and a second high-speed camera, two differential firing signals output by a fire control device, the differential firing signal is valid when it is at a rising edge; the second high-speed camera is deployed on the trajectory, and the distance between the second high-speed camera and the virtual stereo target is a first preset distance; the first high-speed camera is deployed on a vertical line of the trajectory, and is on the same vertical line of the trajectory as the target plate of the virtual stereo target, and the distance between the first high-speed camera and the virtual stereo target is a first preset distance; the first high-speed camera and the second high-speed camera are respectively coupled to a differential firing signal; the high-speed camera refers to a camera with a speed of at least 5000 frames per second; The image acquisition module is configured such that the first high-speed camera and the second high-speed camera start recording from the time the projectile is fired, and the first high-speed camera and the second high-speed camera stop recording after the projectile falls to the ground; in the videos recorded by the first high-speed camera and the second high-speed camera, a valid frame in which the projectile falls into the field of view is acquired; in the valid frame, a video image pair of the first high-speed camera and the second high-speed camera at the same time is acquired. 11 ,I 21 ),…,(I 1i ,I 2i ),…,(I 1n ,I 2n )}, where n is the number of video image pairs of the first high-speed camera and the second high-speed camera at the same time in the valid frame, 1≤i≤n, I 1i ,I 2i are respectively the video image of the first high-speed camera and the video image of the second high-speed camera in the i-th video image pair; Initialization module: configured to initialize the i value to 1; Image processing module: configured to process video images (I 1i ,I 2i ), from I 1i Read x1, x3, x7, x 11 , y1, y5, y6, y7, where x1 is the projectile in image I 1i The number of pixels on the x-axis, x3 is the number of pixels on the simulated target in image I 1i The number of pixels on the x-axis, x7 is the bottom of the first bar in image I 1i The number of pixels on the x-axis, x 11 For the bottom of the fourth pole in image I 1i The number of pixels on the x-axis, y1 is the number of pixels on the projectile in image I 1i The number of pixels on the y axis, y5 is the bottom of the second benchmark in image I 1i The number of pixels on the x-axis, y6 is the top of the first bar in image I 1i The number of pixels on the y axis, y7 is the bottom of the first benchmark in image I 1i The number of pixels on the y axis; from I 2i Read x 21 ,x 22 ,x 23 ,x 24 , where x 21 For the projectile in image I 2i The number of pixels on the x-axis, x 22 To simulate the top of the target in image I 2i The number of pixels on the x-axis, x 23 To simulate the target bottom in image I 2i The number of pixels on the x-axis, x 24 For the top of the second pole in image I 2i The number of pixels on the x-axis; the first marker, the second marker, the third marker, and the fourth marker are arranged in a clockwise or counterclockwise order; Target determination module: configured to calculate the video image pair (I 1i ,I 2i ) Deviation data of the projectile in γ i , and determine the video image pair (I 1i ,I 2i ) whether the bullet hits the target; Judgment module: configured to assign i to i+1 if i<n; Output module: configured to select a set of deviation data with the smallest distance deviation as optimal deviation data, and output the optimal deviation data.
5. A virtual three-dimensional target impact deviation calculation system, characterized in that: include: A processor, which is used to execute multiple instructions; A memory for storing a plurality of instructions; Wherein, the multiple instructions are used to be stored by the memory, and loaded and executed by the processor to calculate the virtual three-dimensional target impact deviation as described in any one of claims 1-3.
6. A computer-readable storage medium, wherein a plurality of instructions are stored in the storage medium; the plurality of instructions are used by a processor to load and execute the virtual three-dimensional target impact deviation calculation method as described in any one of claims 1 to 3.
