Simulation image generation method based on moving object and corresponding device

Through the simulated image generation method based on motion targets, the simulated image output of different pixels and interfaces is realized using FPGA, which solves the problem of large size and high cost of existing scene generators, and realizes small and low-cost simulated image generation.

CN119484964APending Publication Date: 2025-02-18BEIJING INST OF ENVIRONMENTAL FEATURES
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411710877.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The existing scene generator is large in size and high in cost, making it difficult to replace images that simulate the output motion target.

Method used

A simulated image generation method based on a motion target is provided. By receiving the settings parameters and motion parameters input by a user, the position information of each sampling time of the motion target is determined, and the corresponding simulated image is generated. This method can be implemented through FPGA, supporting analog image output of different pixels, bit counts and interfaces.

Benefits of technology

The image that simulates visible light and infrared motion targets is realized, which is small in size, light in weight, and cost-saving, suitable for outputs of different interfaces and resolutions, solving the dependence on scene generators.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484964A_ABST
    Figure CN119484964A_ABST
Patent Text Reader

Abstract

The invention discloses an analog image generation method based on a moving target and a corresponding device, and belongs to the technical field of image processing. The method comprises the following steps: receiving setting parameters input by a user and motion parameters of a motion target; determining position information of the moving target in an observation coordinate system at each sampling moment according to the setting parameters and the motion parameters, and generating a corresponding analog image; and outputting an analog image data stream according to the setting parameters and the sampling sequence. The device comprises an input control module, a position calculation module and a display output module. According to the invention, images of moving targets of visible light and infrared light sources are simulated, and analog image output of different pixels, different digits and different interfaces can be carried out.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to a simulation image generation method based on a moving target, a transmission method and a corresponding device. Background Art

[0002] Currently, most image information comes from scene generators. The scene generator generates corresponding image sequences based on the mathematical model of the optoelectronic imaging system, using pre-stored three-dimensional target data, background data, and specified target motion trajectories. The image sequence with target information is converted into a light signal and projected onto the imaging surface of the camera through an optical system to simulate the target and background scenes in the actual field environment, providing an image source for optoelectronic system simulation experiments.

[0003] However, the scene generator is large in size and high in cost, and a device and method are needed that can replace the scene generator to simulate and output images of moving targets. Summary of the invention

[0004] The present invention provides a method and a corresponding device for generating simulated images based on moving targets, which can solve the problems of large volume and high cost in related technologies. The technical solution is as follows:

[0005] On the one hand, a method for generating a simulated image based on a moving target is provided, comprising:

[0006] Receive setting parameters and motion parameters of the motion target input by the user;

[0007] Determine the position information of the moving target in the observation coordinate system at each sampling moment according to the setting parameters and the motion parameters, and generate a corresponding simulation image;

[0008] According to the setting parameters and sampling order, an analog image data stream is output.

[0009] Preferably, the setting parameters include image resolution and synchronization information, the motion parameters include at least one of the following: initial position, motion speed, motion direction, motion trajectory; the synchronization information includes sampling initial time and interval information.

[0010] Preferably, after receiving and processing the setting parameters input by the user and the motion parameters of the motion target, the method further includes:

[0011] Receiving shape information and boundary conditions of the moving target input by the user;

[0012] Determining the position information of the moving target in the observation coordinate system at each sampling moment includes:

[0013] Determining whether the moving target has reached the boundary according to the current position information and shape information of the moving target;

[0014] When the moving target reaches the boundary, it is determined that the moving target is in a stopped state or a rebounded state according to the boundary condition, and the position information of the moving target in the observation coordinate system at the subsequent sampling time is determined.

[0015] Preferably, determining the position information of the moving target at each sampling moment in the observation coordinate system further includes:

[0016] Acquire background data and occlusion data of the moving target, and map the background data and occlusion data in an observation coordinate system to obtain a background image and an occlusion image;

[0017] Determine whether the moving target has reached the coverage of the obstruction according to the current position information, shape information and obstruction data of the moving target;

[0018] When the moving target reaches the coverage range of the blocking object, the blocking position and blocking area of ​​the moving target at each sampling moment are determined according to the blocking object data.

[0019] Preferably, the output analog image data stream further includes:

[0020] The analog image data stream is converted into a video data stream matching the interface transmission protocol.

[0021] On the other hand, a device for generating a simulated image based on a moving target is also provided, comprising:

[0022] An input control module, used for receiving setting parameters and motion parameters of a motion target input by a user;

[0023] A position calculation module, used to determine the position information of the moving target in the observation coordinate system at each sampling moment according to the setting parameters and the motion parameters, and generate a corresponding simulation image;

[0024] The display output module is used to output the analog image data stream according to the setting parameters and sampling sequence.

[0025] Preferably, the device further comprises:

[0026] The interface conversion module is used to convert the analog image data stream into a video data stream matching the interface transmission protocol.

[0027] On the other hand, a computer device is provided, which includes a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to implement the steps of the above method.

[0028] On the other hand, a computer-readable storage medium is provided, wherein a computer program is stored in the storage medium, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0029] On the other hand, a computer program product is provided, comprising a computer program, wherein the computer program implements the steps of the above method when executed by a processor.

[0030] The technical solution provided by the present invention can at least bring the following beneficial effects:

[0031] The present invention can simulate images of moving targets of visible light and infrared light sources, and can output simulated images with different pixels, different bits and different interfaces. The simulated image generation device based on moving targets of the present invention can be implemented through FPGA, and has small size, light weight, easy to carry, strong operability, strong interface adaptability and cost saving. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] 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.

[0033] Figure 1 is a flow chart of a method for generating a simulated image based on a moving target provided by an embodiment of the present invention;

[0034] Figure 2 It is a schematic diagram of a method for generating a simulated image based on a moving target using an FPGA provided by an embodiment of the present invention;

[0035] Figure 3 It is a schematic diagram of matching multiple image transmission interfaces provided by an embodiment of the present invention;

[0036] Figure 4 It is a structural diagram of a simulated image generation device based on a moving target provided by an embodiment of the present invention;

[0037] Figure 5 It is a hardware architecture diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0038] 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.

[0039] As mentioned above, the embodiments of the present invention can be edited and set according to the application scenario and simulation needs. The present invention can output analog images with different pixels, different bits and different interfaces, which solves the dependence on devices such as scene generators, visible light cameras and infrared thermal imagers, and replaces devices such as scene generators to generate analog image data. It can be implemented through FPGA, with a small size and light weight, which greatly reduces the production cost, effectively improves the work efficiency in the production process, diversifies the data source, and is more operable.

[0040] The specific implementation of the above concept is described below.

[0041] Please refer to Figure 1 , a method for generating a simulated image based on a moving target provided by an embodiment of the present invention may include the following steps:

[0042] Step 110, receiving setting parameters and motion parameters of the motion target input by the user;

[0043] Step 120, determining the position information of the moving target in the observation coordinate system at each sampling moment according to the setting parameters and the motion parameters, and generating a corresponding simulation image;

[0044] Step 130: outputting a simulated image data stream according to the set parameters and sampling sequence.

[0045] Described below Figure 1 How the various steps are performed.

[0046] First, for step 110, the setting parameters include image resolution and synchronization information, the motion parameters include at least one of the following: initial position, motion speed, motion direction, motion trajectory; the synchronization information includes sampling initial time and interval information. The setting parameters may also include: visible light or infrared image setting information,

[0047] Then, after step 110 , the method may further include: receiving shape information and boundary conditions of the moving object input by a user.

[0048] With respect to step 120, determining the position information of the moving target at each sampling moment in the observation coordinate system includes:

[0049] Determining whether the moving target has reached the boundary according to the current position information and shape information of the moving target;

[0050] When the moving target reaches the boundary, it is determined that the moving target is in a stopped state or a rebounded state according to the boundary condition, and the position information of the moving target in the observation coordinate system at the subsequent sampling time is determined.

[0051] Step 120 of determining the position information of the moving target at each sampling moment in the observation coordinate system also includes:

[0052] Acquire background data and occlusion data of the moving target, and map the background data and occlusion data in an observation coordinate system to obtain a background image and an occlusion image;

[0053] Determine whether the moving target has reached the coverage of the obstruction according to the current position information, shape information and obstruction data of the moving target;

[0054] When the moving target reaches the coverage range of the blocking object, the blocking position and blocking area of ​​the moving target at each sampling moment are determined according to the blocking object data.

[0055] Next, with respect to step 130, when outputting the analog image data stream, the analog image data stream may be converted into a video data stream matching the interface transmission protocol.

[0056] In the embodiment of the present invention, the FPGA can be programmed by a programmable language to implement the above-mentioned method for generating simulated images based on moving targets, wherein the parameters and data can be configured according to the requirements to achieve the output of simulated target moving images with different pixels and different bits, as shown in FIG. Figure 2 The embodiment of the present invention can simulate and output the visible light or infrared target motion image through FPGA. In order to realize the simulated image generation method based on the motion target of the embodiment of the present invention, the present invention also needs to include a power supply component, a clock component, a cache component, and an interface component.

[0057] 1) Power supply component: provides power input to FPGA, clock component, cache component, and interface component;

[0058] 2) FPGA: software realizes different digital logic functions and conversion and processing of various communication protocols and interfaces as well as motion target trajectory control;

[0059] 3) Clock component: provides the required clock signal for FPGA;

[0060] 4) Cache component: provides data storage and management for FPGA to meet the needs of data processing and transmission;

[0061] 5) Interface component: It can realize the conversion of different interface transmission protocols, for example, it can include Cameralink, network port, SDI and other image transmission interfaces, such as Figure 3 shown.

[0062] The embodiment of the present invention can use FPGA to simulate visible light images and infrared images, eliminating the dependence on scene generators. It can realize multi-resolution and multi-serial port simulation image generation of moving targets, and has small size, light weight, easy to carry, strong operability, strong interface adaptability, and cost saving.

[0063] In the embodiment of the present invention, the controllable multi-resolution controllable small ball motion target simulation image is realized on the FPGA, which can be divided into multiple steps to achieve clear functional division and efficient design.

[0064] 1. Input Control

[0065] Function: Receive and process setting parameters and motion parameters input by the user. Setting parameters may include image resolution, visible light or infrared configuration, etc. Motion parameters may include motion speed, motion direction, motion trajectory, etc.

[0066] In the embodiment of the present invention, user input parameters or data, such as keystrokes or external interface data, such as UART, I2C, etc., are received to control the corresponding image resolution, the moving speed and moving direction of the moving object, etc.

[0067] In addition, the embodiment of the present invention utilizes FPGA to design input parsing logic and provides default values ​​to avoid initialization problems.

[0068] 2. Resolution generation

[0069] Function: Adjust the generated image frame format according to the input selected image resolution (such as 480x480, 240x240, etc.).

[0070] In the embodiment of the present invention, the pixel address and synchronization signal, such as the line and field synchronization signals, are generated according to the selected image resolution by setting the image resolution parameters.

[0071] The embodiment of the present invention adapts to different resolutions through programmable row / column counters and outputs corresponding video synchronization signals, such as VSYNC (Vertical Synchronization) and HSYNC (Horizontal Synchronization).

[0072] 3. Ball position calculation

[0073] Function: Calculate the position information of the ball in the observation coordinate system according to the movement speed and direction, and update it in real time.

[0074] The embodiment of the present invention determines the real-time position coordinates of the ball according to the initial position, movement speed and movement direction of the ball. A counter and an adder can be used to implement coordinate update.

[0075] In addition, consider boundary conditions and whether the ball bounces or stops when it reaches the boundary.

[0076] 4. Ball shape generation

[0077] Function: Generate the shape of a small ball (such as a circle) and support different resolutions and sizes.

[0078] In the embodiment of the present invention, whether the coordinates of the currently scanned pixel belong to the ball is determined according to the position coordinates of the ball. Specifically, whether the pixel is inside the ball is determined based on the formula \((x-x_c)^2+(y-y_c)^2\leq r^2\).

[0079] The embodiment of the present invention provides ball radius and style adjustment options.

[0080] 5. Image Generation

[0081] Function: Generate a complete image frame based on the resolution and ball position.

[0082] In the embodiment of the present invention, a simulated image data stream is output according to whether the pixel is inside the ball and the position information of the ball.

[0083] The embodiment of the present invention can also set background data, use background pixel generation logic, including background color or random noise light, etc., determine the ball coverage range according to the position information of the ball, that is, give priority to displaying the ball pixels. It is also possible to set occlusion data, use occlusion pixel generation logic, including occlusion position, occlusion color, occlusion shape, etc., determine the occlusion coverage range according to the position information and shape information of the occlusion position, that is, give priority to displaying the occlusion pixels.

[0084] 6. Display Output

[0085] Function: Output the generated image frame to the display or storage device.

[0086] In the embodiment of the present invention, a corresponding video output signal (such as HDMI, VGA, etc.) is output according to the image resolution information, and an adapted display protocol signal is generated according to the image resolution.

[0087] Please refer to Figure 4 , the embodiment of the present invention provides a moving target based simulated image generation device, comprising:

[0088] An input control module, used for receiving setting parameters and motion parameters of a motion target input by a user;

[0089] A position calculation module, used to determine the position information of the moving target in the observation coordinate system at each sampling moment according to the setting parameters and the motion parameters, and generate a corresponding simulation image;

[0090] The display output module is used to output the analog image data stream according to the setting parameters and sampling sequence.

[0091] In an embodiment of the present invention, the device further includes:

[0092] The interface conversion module is used to convert the analog image data stream into a video data stream matching the interface transmission protocol.

[0093] It should be noted that the simulated image generation device based on moving targets provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the simulated image generation device based on moving targets provided in the above embodiment and the simulated image generation method based on moving targets are of the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0094] The embodiment of the present application also provides a computer device, please refer to Figure 5 The computer device includes a processor and a memory, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by the processor to implement the simulated image generation method based on moving targets provided in the above-mentioned method embodiments.

[0095] An embodiment of the present application also provides a computer-readable storage medium, on which is stored at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the simulated image generation method based on moving targets provided in the above-mentioned method embodiments.

[0096] An embodiment of the present application also provides a computer program product, which includes a computer program. A processor of a computer device reads the computer program from a computer-readable storage medium, and the processor executes the computer program, so that the computer device executes any of the methods for generating simulated images based on moving targets described in the above embodiments.

[0097] For the convenience of description, the above system or device is described by dividing it into various modules or units according to its functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0098] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.

[0099] Finally, it should be noted that, in this article, relational terms such as first, second, third and fourth are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0100] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for generating a simulated image based on a moving target, characterized in that: The method comprises: Receive setting parameters and motion parameters of the motion target input by the user; Determine the position information of the moving target in the observation coordinate system at each sampling moment according to the setting parameters and the motion parameters, and generate a corresponding simulation image; According to the setting parameters and sampling order, an analog image data stream is output.

2. The method according to claim 1, characterized in that The setting parameters include image resolution and synchronization information, and the motion parameters include at least one of the following: initial position, motion speed, motion direction, and motion trajectory; the synchronization information includes sampling initial time and interval information.

3. The method according to claim 1 or 2, characterized in that After receiving and processing the setting parameters input by the user and the motion parameters of the motion target, the following steps are also included: Receiving shape information and boundary conditions of the moving target input by the user; Determining the position information of the moving target in the observation coordinate system at each sampling moment includes: Determining whether the moving target has reached the boundary according to the current position information and shape information of the moving target; When the moving target reaches the boundary, it is determined that the moving target is in a stopped state or a rebounded state according to the boundary condition, and the position information of the moving target in the observation coordinate system at the subsequent sampling time is determined.

4. The method according to claim 3, characterized in that Determining the position information of the moving target at each sampling moment in the observation coordinate system also includes: Acquire background data and occlusion data of the moving target, and map the background data and occlusion data in an observation coordinate system to obtain a background image and an occlusion image; Determine whether the moving target has reached the coverage of the obstruction according to the current position information, shape information and obstruction data of the moving target; When the moving target reaches the coverage range of the blocking object, the blocking position and blocking area of ​​the moving target at each sampling moment are determined according to the blocking object data.

5. The method according to claim 1, characterized in that The output analog image data stream also includes: The analog image data stream is converted into a video data stream matching the interface transmission protocol.

6. A device for generating simulated images based on moving targets, characterized in that: include: An input control module, used for receiving setting parameters and motion parameters of a motion target input by a user; A position calculation module, used to determine the position information of the moving target in the observation coordinate system at each sampling moment according to the setting parameters and the motion parameters, and generate a corresponding simulation image; The display output module is used to output the analog image data stream according to the setting parameters and sampling sequence.

7. The device according to claim 6, characterized in that Also includes: The interface conversion module is used to convert the analog image data stream into a video data stream matching the interface transmission protocol.

8. A computer device, characterized in that: The computer device includes a memory and a processor, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to implement the steps of any one of the methods described in claims 1-5.

9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 5 are implemented.

10. A computer program product, characterized in that The method comprises a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 5.