Simulation method and device for target detection scene
By generating and simulating the target in the object detection scene by the image processing unit, the problem of relying on infrared thermal imagers and artificially controlling the motion trajectory in the prior art is solved, and low-cost and efficient object detection scene simulation is achieved.
Patent Information
- Application Number
- CN202510050355.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-13
- Publication Date
- 2025-05-09
AI Technical Summary
The prior art requires relying on infrared thermal imagers to obtain actual spatial motion targets and infrared scene information of scenes when simulating target detection scenarios, and artificially control the motion trajectory of the target, which is costly and inefficient.
The acquired image data is input through the image processing unit, and the targets of preset size and grayscale values are generated, and they are rasterized and motion-simulated, creating multiple approximate targets for interference, and finally obtaining the simulation results through rendering.
It realizes the low-cost simulation of object detection scenario data, reduces dependence on infrared thermal imagers, and improves simulation efficiency and data integrity.
Smart Images

Figure CN119962207A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of simulation technology, and in particular to a method and device for simulating a target detection scene. Background Art
[0002] In the process of collecting target intelligence, it is crucial to detect the target quickly and accurately. The real-time monitoring of the equipment and the target detection results can provide timely and accurate intelligence support. With the development of modern science and technology in space and the increase in the deterrence of some equipment, the research on aerial targets has received more and more attention. In the development process, in order to evaluate the target detection, identification and tracking algorithms related to aerial target tracking technology and the corresponding high-speed information processing technology, the infrared thermal imager can be used directly to obtain the infrared scene information of the actual space moving targets and scenes, but the evaluation requires the collection of a large amount of data, which is costly. Summary of the invention
[0003] The embodiments of the present invention provide a method and device for simulating a target detection scene, which can simulate target detection scene data at a low cost.
[0004] In a first aspect, an embodiment of the present invention provides a method for simulating a target detection scene, comprising:
[0005] Input the acquired image data into the image processing unit in sequence to obtain a layer;
[0006] The obtained coating layer and video group are juxtaposed to obtain a juxtaposed layer;
[0007] Generating a target with a preset size and a preset grayscale value on the parallel layers;
[0008] Performing rasterization processing on the target;
[0009] Move the rasterized target to a preset end point to obtain video information of the target's position and trajectory information;
[0010] Creating a plurality of approximate targets for interference in the video information;
[0011] Set the frame rate and render to get the simulation results.
[0012] In a possible design, the preset size is 2*2 pixels.
[0013] In one possible design, the preset grayscale value is 155.
[0014] In a possible design, the image data is obtained through actual measurement or simulation.
[0015] In one possible design, the image data is in YUV format.
[0016] In a second aspect, an embodiment of the present invention further provides a simulation device for a target detection scene, which is used to implement any of the above methods, including an industrial computer, wherein the industrial computer includes:
[0017] An image storage unit is used to input the acquired image data into the image processing unit in sequence to obtain a layer;
[0018] An image processing unit, used for juxtaposing the obtained coating layer and the video group to obtain a juxtaposed layer;
[0019] A target generation unit, used for generating a target of a preset size and a preset gray value on the parallel layers;
[0020] A rasterization unit, used for performing rasterization processing on the target;
[0021] A video generation unit, used to move the rasterized target to a preset end point to obtain video information of the target's position and trajectory information;
[0022] An interference generating unit, used for creating a plurality of approximate targets for interference in the video information;
[0023] The rendering unit is used to set the frame rate and render to obtain the simulation result.
[0024] In a possible design, the industrial computer includes an image format conversion tool for converting the image into a YUV format.
[0025] Compared with the prior art, the present invention has at least the following beneficial effects:
[0026] Less image sequences can generate more comprehensive simulation data through simulation. It solves the problem that the simulation scene target needs the infrared thermal imager to obtain the infrared scene information of the actual space moving target and scene and artificially control the movement trajectory of the target, and has a better application scenario. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0028] Figure 1 It is a flow chart of a method for simulating a target detection scene provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0030] In the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance; unless otherwise specified or explained, the term "multiple" refers to two or more; the terms "connected" and "fixed" should be understood in a broad sense, for example, "connected" can be a fixed connection, a detachable connection, an integral connection, or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0031] In the description of this specification, it should be understood that the directional words such as "upper" and "lower" described in the embodiments of the present invention are described at the angles shown in the drawings and should not be understood as limiting the embodiments of the present invention. In addition, in the context, it should also be understood that when it is mentioned that an element is connected to another element "upper" or "lower", it can not only be directly connected to another element "upper" or "lower", but also indirectly connected to another element "upper" or "lower" through an intermediate element.
[0032] like Figure 1 As shown, an embodiment of the present invention provides a method for simulating a target detection scene, including:
[0033] Input the acquired image data into the image processing unit in sequence to obtain a layer;
[0034] The obtained coating layer and video group are juxtaposed to obtain a juxtaposed layer;
[0035] Generate a target with preset size and preset gray value on the parallel layer;
[0036] Rasterize the target;
[0037] Move the rasterized target to a preset end point to obtain video information of the target's position and trajectory information;
[0038] Creating multiple approximate targets for interference in the video information;
[0039] Set the frame rate and render to get the simulation results.
[0040] Specifically, the device inputs the collected image data into the storage management program through Camlink, converts it into a file that can be used by the scene generator main program, and stores it in the industrial computer.
[0041] Use image processing tools to import a sequence of images. If the brightness of the image is low at this time, create a new layer, set the background color for the new layer, and then change the layer type to overlay; add a layer, parallel to the video group, select the layer, and use the custom shape tool to generate a 2*2 pixel (or customized according to needs) target with a grayscale value of about 155 (or customized according to needs). After the target is generated, rasterize the layer, move the target to a certain position, click Generate Key Frame, intercept the layer, pull the progress bar, and when the progress bar stops, move the target to generate the end point of the target's movement. Create multiple layers in the same section of the video content, generate several similar targets to achieve interference, render the image into different formats according to needs, and the frame rate can be set by yourself.
[0042] In some embodiments of the present invention, the image data is obtained through actual measurement or simulation.
[0043] In some embodiments of the present invention, the image data is in YUV format.
[0044] Specifically, the image format conversion tool is used to convert the input image from BMP format to YUV format and preview, JPEG format to YUV format and preview, YUV format image preview, YUV format to RAW format and preview, RAW format to JPEG format and preview, RAW format to BMP format and preview, RAW format to YUV format and preview according to actual needs.
[0045] The processed data is output to the required device by the scene simulation device main program through the output interface.
[0046] The embodiment of the present invention further provides a simulation device for a target detection scene, which is used to implement any of the above methods, including an industrial computer, wherein the industrial computer includes:
[0047] An image storage unit is used to input the acquired image data into the image processing unit in sequence to obtain a layer;
[0048] An image processing unit, used for juxtaposing the obtained coating layer and the video group to obtain a juxtaposed layer;
[0049] The target generation unit is used to generate a target with a preset size and a preset gray value on the parallel layer;
[0050] A rasterization unit, used for rasterizing the target;
[0051] A video generation unit, used to move the rasterized target to a preset end point to obtain video information of the target's position and trajectory information;
[0052] An interference generating unit, used for creating a plurality of approximate targets for interference in the video information;
[0053] The rendering unit is used to set the frame rate and render to obtain the simulation result.
[0054] It mainly includes high-performance industrial computers, scene simulation software (including scene simulation device main program, Camlink input storage management program, image format conversion tool). High-performance industrial computers are used to support specific Cameralink video signal simulation output sources, which are used to provide infrared image signals for search and tracking algorithms, and use typical target, background and noise data in the image library to generate various scenes. The scene simulation software is used in conjunction with high-performance industrial computers to realize various functions of image input processing. The Camlink input storage management program mainly completes Camlink image acquisition and stores it into files that can be used by the scene generator main program; the scene generator main program is used to output 640×512×100Hz and 320×256×100Hz scenes; the image format conversion tool is mainly used for mutual conversion between BMP, YUV420, Raw and other formats; the scene simulation device main program is mainly used to simulate the output of scenes.
[0055] In some embodiments of the present invention, the industrial computer includes an image format conversion tool for converting the image into a YUV format.
[0056] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for simulating a target detection scene, characterized in that: include: Input the acquired image data into the image processing unit in sequence to obtain a layer; The obtained coating layer and video group are juxtaposed to obtain a juxtaposed layer; Generating an object of a preset size and a preset grayscale value on the parallel layers; Performing rasterization processing on the target; Move the rasterized target to a preset end point to obtain video information of the target's position and trajectory information; Creating a plurality of approximate targets for interference in the video information; Set the frame rate and render to get the simulation results.
2. The method according to claim 1, characterized in that The preset size is 2*2 pixels.
3. The method according to claim 1, characterized in that The preset grayscale value is 155.
4. The method according to claim 1, characterized in that: The image data is obtained through actual measurement or simulation.
5. The method according to claim 1, characterized in that The image data is in YUV format.
6. A simulation device for target detection scene, characterized in that: Used to implement any of the methods in claims 1-5, characterized in that it includes an industrial computer, the industrial computer includes: An image storage unit is used to input the acquired image data into the image processing unit in sequence to obtain a layer; An image processing unit, used for juxtaposing the obtained coating layer and the video group to obtain a juxtaposed layer; A target generation unit, used for generating a target of a preset size and a preset gray value on the parallel layers; A rasterization unit, used for performing rasterization processing on the target; A video generation unit, used to move the rasterized target to a preset end point to obtain video information of the target's position and trajectory information; An interference generating unit, used for creating a plurality of approximate targets for interference in the video information; The rendering unit is used to set the frame rate and render to obtain the simulation result.
7. The device according to claim 6, characterized in that The industrial computer includes an image format conversion tool for converting images into a YUV format.