Method, system and application of superimposing character information on infrared real-time image based on FPGA
By implementing infrared real-time image overlay character information processing on the FPGA platform, it solves the problem that the image display transmission method in the existing technology cannot meet the needs of real-time attention to target information and flexible configuration, and achieves real-time image overlay and efficient resource utilization.
Patent Information
- Application Number
- CN202211498540.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-28
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-11-28
AI Technical Summary
The existing image display transmission method based on infrared technology cannot meet the needs of the display interface to pay attention to the target information at any time. It lacks the flexibility of image display expansion, and when the image area array is large and the number of characters is large, the system delay is large. Unable to meet flexible configuration and resource occupancy requirements.
An FPGA-based infrared real-time image overlay character information method is adopted, and a programmable array logic chip and a digital signal processor are used to form an image information processing platform. Real-time image overlay character information is realized in the FPGA through a hardware description language, including an in-pixel character overlay module, The timing arrangement module, the composite control signal generation module and the out-of-pixel character overlay module realize real-time matching and superposition of image data and character information.
It realizes the dynamic overlay of real-time character information for each frame of image, supports flexible configuration of character libraries, maximizes resource utilization, and reduces system delays. It is suitable for equipment such as infrared target recognition systems that require real-time image overlay.
Smart Images

Figure CN115866164B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of image recognition and processing, and in particular relates to a method, system and application of superimposing character information on infrared real-time images based on FPGA. Background Art
[0002] Image transmission, processing and display systems based on infrared technology are usually divided into three types: one is to output and display only the original infrared image without displaying the target information of each frame of the image. This image display transmission method cannot meet the demand of the display interface to pay attention to the target information at any time, and lacks the flexibility of image display expansion; the second is that the image can be superimposed with characters, but the character output has a delay, that is, the output image and character information cannot be matched in real time according to each frame of the image, resulting in the character information superimposed on the image cannot accurately reflect the real-time image information content; the third is to realize the real-time superposition of fewer characters of small array images, that is, to achieve it by using a large amount of resources occupied by full image caching and full character storage.
[0003] Through the above analysis, the problems and defects of the prior art are as follows:
[0004] (1) The existing image display transmission method cannot meet the demand of the display interface to pay attention to the target information at any time, and lacks the flexibility of image display expansion.
[0005] (2) In the prior art, due to the limited resources on the circuit board, the above method cannot meet the requirements of a larger image array, a larger number of characters, flexible configuration of the character library, and smaller system delay. Summary of the invention
[0006] In order to overcome the problems existing in the related art, the disclosed embodiments of the present invention provide a method, system and application for superimposing character information on infrared real-time images based on FPGA. The present invention is suitable for infrared systems with high real-time requirements, and can superimpose characters such as target information, cross cursor information and other content required by the system on large-area infrared images.
[0007] The technical scheme is as follows: the infrared real-time image superimposed character information method based on FPGA adopts a programmable array logic chip combined with a digital signal processor to form an infrared image information processing platform, and adopts a hardware description language in the programmable array logic chip to perform infrared real-time image superimposition character information; specifically comprises the following steps:
[0008] S1, using the in-pixel character overlay module to store, read and call the character information in the image pixel, judging the superimposed characters and the position of superimposed on the image according to the character overlay instruction sent by the digital signal processor, generating a read ROM signal using the selected ROM, reading the symbol information at the corresponding timing position, and outputting the image data of the superimposed in-pixel character library;
[0009] S2, the pixel-inside overlay timing arrangement module arranges the input image data in timing, aligns the image data signal with the image synchronization signal, and outputs it to the pixel-outside character overlay module;
[0010] S3, the composite control signal generation module receives the character superposition enable instruction sent by the digital signal processor; one of the paths generates a composite blanking signal and a composite synchronization signal according to the composite clock, and outputs them to the image output module as the final image output signal; the other path controls the superposition of the extra-pixel character information according to the character superposition enable instruction sent by the digital signal processor, the composite character type selection instruction, the composite character superposition position instruction, the composite field synchronization signal, and the composite line synchronization signal generated by the composite clock, and outputs them to the extra-pixel character superposition module;
[0011] S4, the out-of-pixel character superimposition module receives the image signal after timing arrangement output by the in-pixel superimposition timing arrangement module, and at the same time receives the composite character type selection instruction, composite character superimposition position instruction, composite field synchronization, and composite line synchronization signal output by the composite control signal generation module; completes the reading of the character library, the superimposition of the character data at the blank position of the original image timing, and outputs the superimposed synchronous image data through the control signal;
[0012] S5, the image output module performs timing alignment on the image output signal output by the composite control signal generation module and the synchronous image data output by the out-of-pixel character overlay module, and finally outputs a complete character image composite clock, character image composite synchronization, character image composite blanking, character image composite data output signal, and performs image display.
[0013] In step S1, the character information is stored in the form of an IP core ROM of the FPGA, and the hexadecimal hex file of the character is stored in multiple ROMs, and each character corresponds to a hex file and a ROM core.
[0014] In step S1, the character overlay instruction sent by the digital signal processor includes: character type selection, character overlay position, and character calling is determined according to the instruction.
[0015] In step S1 , the selected ROM generates a read ROM signal according to the original image clock, the original image frame signal, the original image row signal, the original image row count, and the original image column count.
[0016] In step S1, the in-pixel character overlay module sends a character overlay position instruction according to the digital signal processor of the information processing platform, generates a read signal of the IP core ROM at the overlay position of the image according to the original image clock, the original image frame signal, the original image row signal, the original image row count, and the original image column count; and calls the character library IP core according to the character type selection instruction sent by the digital signal processor of the information processing platform, and reads out the character data according to the read signal generated by the IP core ROM.
[0017] In step S2, the intra-pixel overlay timing arrangement module adds the position of the characters to the output image data and replaces the image data content with the character information. The image data at the corresponding position of the original image data is overlaid as black or white according to the character library data information. The remaining positions where the characters are added are still output as the original image data.
[0018] In step S4, the pixel-outside character superimposition module generates a read signal of the IP core ROM at a corresponding superimposition position outside the image pixel according to the composite character superimposition position instruction, composite field synchronization, and composite line synchronization signal sent by the composite control signal generation module;
[0019] And according to the composite character type selection instruction sent by the composite control signal generation module, the corresponding character library IP core is called, and the character data is read out according to the read signal of the IP core ROM generated above;
[0020] And according to the character library data information, the image data at the corresponding position of the original image data is superimposed as black or white, and the remaining positions where the characters are not superimposed are output as the original image data or blank data.
[0021] Another object of the present invention is to provide an infrared real-time image superimposed character information system based on FPGA for realizing the infrared real-time image superimposed character information method based on FPGA, and the infrared real-time image superimposed character information system based on FPGA comprises:
[0022] The in-pixel character overlay module is used to store, read and call the character information in the image pixel, determine the superimposed characters and the position of superimposed on the image according to the character overlay instruction sent by the digital signal processor, generate a read ROM signal using the selected ROM, read the symbol information at the corresponding timing position, and output the image data of the character library in the superimposed pixel;
[0023] The pixel-in-overlay timing arrangement module is used to arrange the input image data in a timing manner, align the image data signal with the image synchronization signal, and output it to the pixel-out-overlay character module;
[0024] A composite control signal generating module is used to receive a character superposition enabling instruction sent by a digital signal processor; one path generates a composite blanking signal and a composite synchronization signal according to a composite clock, and outputs the composite blanking signal and the composite synchronization signal to an image output module as a final image output signal; another path controls the superposition of information related to characters outside the pixel according to the character superposition enabling instruction sent by the digital signal processor, and the composite character type selection instruction, composite character superposition position instruction, composite field synchronization, and composite line synchronization signal generated in combination with the composite clock; and outputs the information to the character superposition module outside the pixel;
[0025] The out-of-pixel character superimposition module is used to receive the image signal after timing arrangement output by the in-pixel superimposition timing arrangement module, and at the same time receive the composite character type selection instruction, composite character superimposition position instruction, composite field synchronization, and composite line synchronization signal output by the composite control signal generation module; complete the reading of the character library, the superimposition of the character data in the blank space of the original image timing, and output the superimposed synchronous image data through the control signal;
[0026] The image output module is used to align the image output signal output by the composite control signal generation module with the synchronous image data output by the pixel-outer character overlay module, and finally output a complete character image composite clock, character image composite synchronization, character image composite blanking, character image composite data output signal, and perform image display.
[0027] Another object of the present invention is to provide a storage medium for receiving a program input by a user, wherein the stored computer program enables an electronic device to execute the infrared real-time image superimposed character information method based on FPGA.
[0028] Another object of the present invention is to provide a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the FPGA-based infrared real-time image superimposed character information method.
[0029] Combining all the above technical solutions, the advantages and positive effects of the present invention are as follows:
[0030] First, in view of the technical problems existing in the above-mentioned prior art and the difficulty of solving the problems, the technical solutions to be protected by the present invention and the results and data during the research and development process are closely combined to analyze in detail and deeply how the technical solutions of the present invention solve the technical problems, and some creative technical effects brought about after solving the problems, which are specifically described as follows:
[0031] The present invention provides a method for superimposing character information on infrared real-time images based on FPGA, which can realize dynamic superimposition of real-time character information of each frame of image. The character library is implemented by a separately generated configuration file, and the content of added characters can be increased or reduced at any time according to system requirements, so as to maximize the flexible management of resource space and usage requirements. The pipeline character superposition method is adopted, and the image is stored without occupying the storage resources on the board. After the circuit board receives the image input from the front end, the character information can be directly superimposed in a pipeline manner according to the image timing, and the output image character information can be matched with the image without delay. It is suitable for system equipment such as infrared target recognition system that has the requirement of superimposing target information, crosshairs, capture windows, etc. on infrared real-time images and superimposing characters on each frame.
[0032] The present invention adopts FPGA (programmable array logic chip) + DSP (digital signal processor) as an infrared image information processing platform, takes advantage of the characteristics of FPGA with high real-time performance and low resource occupation, and adopts Verilog (Verilog HDL (Verilog for short) is a hardware description language used for system design of digital circuits. It can model multiple abstract design levels such as algorithm level, gate level, switch level, etc. Verilog inherits multiple operators and structures of C language. Compared with another hardware description language VHDL, Verilog has less strict syntax, more concise code, and is easier to use. Verilog not only defines syntax, but also defines clear simulation semantics for syntax structure. Therefore, a digital model written in Verilog can be verified by using a Verilog simulator) language in the FPGA to realize the design of infrared real-time image superimposed character information.
[0033] Second, considering the technical solution as a whole or from the perspective of the product, the technical effects and advantages of the technical solution to be protected by the present invention are specifically described as follows: The present invention uses FPGA (programmable array logic chip) + DSP (digital signal processor) as an infrared image information processing platform, and uses the characteristics of FPGA with high real-time performance and low resource occupation. Verilog language is used in FPGA to realize the dynamic superposition of real-time character information of each frame of image, and complete the design of infrared real-time image superposition character information. The real-time character information of each frame of image is dynamically superimposed. It meets the needs of the infrared image display interface to pay attention to the target information at any time, and improves the flexibility of image display and application expansion. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the principles of the present disclosure;
[0035] Figure 1 It is a schematic diagram of an infrared real-time image superimposed character information system based on FPGA provided by an embodiment of the present invention;
[0036] Figure 2 It is a principle diagram of superimposing character information on an infrared real-time image based on FPGA provided by an embodiment of the present invention;
[0037] Figure 3 It is a flow chart of a method for superimposing character information on infrared real-time images based on FPGA provided by an embodiment of the present invention;
[0038] In the figure: 1. In-pixel character overlay module; 2. In-pixel overlay timing arrangement module; 3. Composite control signal generation module; 4. Out-pixel character overlay module; 5. Image output module. DETAILED DESCRIPTION
[0039] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention, so the present invention is not limited by the specific implementation disclosed below.
[0040] 1. Explanation of the embodiment:
[0041] Example 1
[0042] like Figure 1 As shown, an infrared real-time image superimposed character information system based on FPGA in an embodiment of the present invention is mainly divided into an intra-pixel character superimposition module 1, an intra-pixel superimposition timing arrangement module 2, a composite control signal generation module 3, an extra-pixel character superimposition module 4, and an image output module 5.
[0043] According to the size of the original image, only part of the output image has the original image information, and the other part is white content. Therefore, the character overlay is divided into two parts: overlay within the image pixels and blank overlay outside the pixels.
[0044] The in-pixel character superimposition module 1 is used to realize the storage, reading, and calling of character information in image pixels, and to superimpose which character at which position of the original image.
[0045] Exemplarily, the character library is stored in the form of FPGA's [P core ROM, and the hexadecimal system of the character, the hex file, is stored in multiple ROMs, and each character corresponds to one. Hex file, one ROM core. When different characters are required, only the extended .hex file and the ROM core need to be added, which is beneficial to the flexibility of the system. The DSP of the information processing platform sends a character overlay file and a ROM core. When different characters are required, only the extended .hex file and the ROM core need to be added, which is beneficial to the flexibility of the system. The digital signal processor (such as DSP) of the information processing platform sends a character overlay instruction, that is, character type selection, character overlay position, and determines the call of the character according to the instruction. According to the character overlay instruction information, it is determined which character needs to be overlaid and where to overlay it in the image, and the corresponding ROM is selected. According to the original image clock, the original image frame signal, the original image row signal, the original image row count, and the original image column count, a read ROM signal is generated, and the symbol information is read out at the corresponding timing position, and the image data with the character library in the pixel overlaid is output.
[0046] The intra-pixel overlay timing arrangement module 2 arranges the input original image clock, original image row signal, original image frame signal, original image row count, original image column count, and image data overlaid with the intra-pixel character library, that is, aligns the image data signal with the image synchronization signal position, and outputs it to the next level module.
[0047] The composite control signal generation module 3 is used to receive the composite clock of the image mode to be output, the DSP character type selection instruction, and the DSP character superposition enable instruction. A composite blanking signal and a composite synchronization signal are produced according to the composite clock, and are output to the next module as the final image output signal. According to the DSP character type selection instruction, the DSP character superposition enable instruction, and the composite clock, a composite character type selection instruction, a composite character superposition position instruction, a composite field synchronization, and a composite line synchronization signal are generated, and these signals are used to control the superposition of character-related information outside the pixel.
[0048] The out-of-pixel character superimposition module 4 is used to realize character superimposition on the blank part outside the image pixel. This module receives the image signal output by the in-pixel superimposition timing arrangement module 2, and at the same time receives the composite character type selection instruction, composite character superimposition position instruction, composite field synchronization, and composite line synchronization signal output by the composite control signal generation module 3 for controlling character superimposition. In this module, the character library is read, the character data is superimposed on the blank part of the original image timing, and the superimposed synchronous image data is output through the control signal.
[0049] The image output module 5 is used to achieve timing alignment and synchronization of the image data and the image synchronization signal. It uses the composite clock, composite blanking signal, composite synchronization signal, and the synchronized image data after superimposing characters to perform sampling, and performs signal timing alignment to ensure the timing of the image data and the image synchronization signal, and finally outputs a set of complete character image composite clock, character image composite synchronization, character image composite blanking, and character image composite data output signals for the final image display.
[0050] In an embodiment of the present invention, Figure 2 The invention provides the principle of superimposing character information on infrared real-time images based on FPGA.
[0051] Example 2
[0052] like Figure 3 As shown, the embodiment of the present invention provides a method for superimposing character information on infrared real-time images based on FPGA, using FPGA (programmable array logic chip) + DSP (digital signal processor) as the infrared image information processing platform, taking advantage of the characteristics of FPGA's high real-time performance and low resource occupation, and using Verilog language in FPGA to implement the design of superimposing character information on infrared real-time images. Specifically, the following steps are included:
[0053] S1, using the in-pixel character overlay module 1 to store, read and call the character information in the image pixel, judging the superimposed characters and the position of superimposed on the image according to the character overlay instruction sent by the digital signal processor, generating a read ROM signal by using the selected ROM, and reading the symbol information at the corresponding timing position, and outputting the image data of the character library in the superimposed pixel;
[0054] S2, the pixel-inside overlay timing arrangement module 2 arranges the input image data in timing, aligns the image data signal with the image synchronization signal, and outputs it to the pixel-outside character overlay module 4;
[0055] S3, the composite control signal generating module 3 receives the character superposition enabling instruction sent by the digital signal processor; one path generates a composite blanking signal and a composite synchronization signal according to the composite clock, and outputs them to the image output module 5 as the final image output signal; the other path controls the superposition of the information related to the pixel outside the character according to the character superposition enabling instruction sent by the digital signal processor, and the composite character type selection instruction, composite character superposition position instruction, composite field synchronization, and composite line synchronization signal generated in combination with the composite clock; and outputs them to the pixel outside the character superposition module 4;
[0056] S4, the pixel-outer character superimposition module 4 receives the image signal after timing arrangement output by the pixel-inner superimposition timing arrangement module 2, and simultaneously receives the composite character type selection instruction, composite character superimposition position instruction, composite field synchronization, and composite line synchronization signal output by the composite control signal generation module 3; the control signal is used to complete the reading of the character library, the superimposition of the character data at the blank position of the original image timing, and the output of the superimposed synchronous image data;
[0057] S5, the image output module 5 performs timing alignment on the image output signal output by the composite control signal generation module 3 and the synchronous image data output by the extra-pixel character overlay module 4, and finally outputs a complete character image composite clock, character image composite synchronization, character image composite blanking, character image composite data output signal, and performs image display.
[0058] Example 3
[0059] In the embodiment of the present invention, a hexadecimal .hex file of the character is written according to the requirements of the character, and each character corresponds to a hex file. The IP core of the storage ROM of the FPCA is called, and the IP core is associated with the written hexadecimal hex file. Each character calls an IP core respectively. When different characters are required, only the extended her file and the ROM core need to be added, which is beneficial to the flexibility of the system.
[0060] The bit width of the character library module is 8 bits and the set value is binary 00 or binary 11. According to the usage requirements, the characters in the image are displayed in black (decimal 0) or white (decimal 255).
[0061] In an embodiment of the present invention, the intra-pixel character overlay module 1 generates a read signal of the IP core ROM at the corresponding overlay position of the image according to the character overlay position instruction sent by the digital signal processor (such as DSP) of the information processing platform, the original image clock, the original image frame signal, the original image row signal, the original image row count, and the original image column count.
[0062] The in-pixel character overlay module 1 calls the corresponding character library IP core according to the character type selection instruction sent by the digital signal processor (such as DSP) of the information processing platform, and reads out the character data according to the read signal of the IP core ROM generated above.
[0063] In the embodiment of the present invention, the pixel-in-overlay timing arrangement module 2 arranges a set of image signal information and aligns the timing. Where the output image data needs to add characters, the data content is replaced with character information. According to the binary 00 or binary 11 of the character library data information, the image data at the corresponding position of the original image data is replaced (overlaid) with black (decimal 0) or white (decimal 255), and the remaining positions are still output as the original image data.
[0064] In the embodiment of the present invention, the composite control signal generating module 3 generates a composite blanking signal and a composite synchronization signal according to the composite clock, and outputs them to the next module as the final image output synchronization signal.
[0065] In an embodiment of the present invention, the composite control signal generating module 3 generates a composite character type selection instruction, a composite character overlay position instruction, a composite field synchronization, and a composite line synchronization signal that meet the image output timing requirements according to the DSP character type selection instruction, the DSP character overlay enable instruction, and the composite clock. These signals are used to control the overlay of character-related information outside the pixel.
[0066] In the embodiment of the present invention, the extra-pixel character superimposition module 4 generates a read signal of the IP core ROM at the corresponding superimposition position outside the image pixel according to the composite character superimposition position instruction, composite field synchronization, and composite line synchronization signal sent by the composite control signal generation module 3.
[0067] In the embodiment of the present invention, the out-of-pixel character superimposition module 4 calls the corresponding character library IP core according to the composite character type selection instruction sent by the composite control signal generation module 3, and reads out the character data according to the read signal of the IP core ROM generated above.
[0068] In the embodiment of the present invention, the pixel-outside character superimposing module 4 replaces the data content with character information at the position where the character needs to be added to the output image data. According to the binary 00 or binary 11 of the character library data information, the image data at the corresponding position of the original image data is replaced (superimposed) with black (decimal 0) or white (decimal 255), and the remaining positions are still output as the original image data or blank data.
[0069] In the embodiment of the present invention, the image output module 5 is used to achieve timing alignment and synchronization of image data and image synchronization signal. The composite clock, composite blanking signal, composite synchronization signal, and synchronized image data after superimposing characters are used for sampling, and the signal timing alignment is performed to ensure the timing of image data and image synchronization signal, and finally output a set of complete character image composite clock, character image composite synchronization, character image composite blanking, and character image composite digital output signals for final image display.
[0070] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0071] Since the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present invention, their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0072] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated in one processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment.
[0073] 2. Application examples:
[0074] Application Examples
[0075] An embodiment of the present invention further provides a computer device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps in any of the above-mentioned method embodiments when executing the computer program.
[0076] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0077] An embodiment of the present invention further provides an information data processing terminal, which, when executed on an electronic device, provides a user input interface to implement the steps in the above method embodiments. The information data processing terminal is not limited to mobile phones, computers, and switches.
[0078] An embodiment of the present invention further provides a server, which is used to provide a user input interface to implement the steps in the above method embodiments when executed on an electronic device.
[0079] An embodiment of the present invention provides a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0080] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk.
[0081] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0082] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principles of the present invention should be covered within the protection scope of the present invention.
Claims
1. A method for superimposing character information on infrared real-time images based on FPGA, characterized in that: The method uses a programmable array logic chip combined with a digital signal processor to form an infrared image information processing platform, and uses a hardware description language in the programmable array logic chip to overlay character information on infrared real-time images. The following steps are involved: S1, using the intra-pixel character overlay module (1) to store, read and call character information in the image pixel, judging the overlay character and the position of the overlay image according to the character overlay instruction sent by the digital signal processor, generating a read ROM signal using the selected ROM, reading the symbol information at the corresponding timing position, and outputting the image data of the overlay pixel intra-character library; S2, the pixel-inside overlay timing arrangement module (2) arranges the input image data in timing, aligns the image data signal with the image synchronization signal, and outputs it to the pixel-outside character overlay module (4); S3, the composite control signal generating module (3) receives the character superposition enabling instruction sent by the digital signal processor; One of the paths generates a composite blanking signal and a composite synchronization signal according to the composite clock, and outputs the resultant image output signal to an image output module (5); the other path controls the superposition of extra-pixel character information according to a character superposition enable instruction sent by a digital signal processor, a composite character type selection instruction, a composite character superposition position instruction, a composite field synchronization signal, and a composite line synchronization signal generated by the composite clock, and outputs the resultant image output signal to an extra-pixel character superposition module (4); S4, the out-of-pixel character superimposition module (4) receives the image signal after timing arrangement output by the in-pixel superimposition timing arrangement module (2), and simultaneously receives the composite character type selection instruction, composite character superimposition position instruction, composite field synchronization, and composite line synchronization signal output by the composite control signal generation module (3); the control signal is used to complete the reading of the character library, the superimposition of the character data at the blank position of the original image timing, and the output of the superimposed synchronous image data; S5, the image output module (5) performs timing alignment on the image output signal output by the composite control signal generation module (3) and the synchronous image data output by the out-of-pixel character superimposition module (4), and finally outputs a complete character image composite clock, character image composite synchronization, character image composite blanking, character image composite data output signal, and performs image display.
2. The method for superimposing character information on infrared real-time images based on FPGA according to claim 1, characterized in that: In step S1, the character information is stored in the form of an IP core ROM of the FPGA, and the hexadecimal hex file of the character is stored in multiple ROMs, and each character corresponds to a hex file and a ROM core.
3. The method for superimposing character information on infrared real-time images based on FPGA according to claim 1, characterized in that: In step S1, the character overlay instruction sent by the digital signal processor includes: character type selection, character overlay position, and character calling is determined according to the instruction.
4. The method for superimposing character information on infrared real-time images based on FPGA according to claim 1, characterized in that: In step S1 , the selected ROM generates a read ROM signal according to the original image clock, the original image frame signal, the original image row signal, the original image row count, and the original image column count.
5. The method for superimposing character information on infrared real-time images based on FPGA according to claim 1, characterized in that: In step S1, the in-pixel character overlay module (1) generates a read signal of the IP core ROM at the overlay position of the image according to the character overlay position instruction sent by the digital signal processor of the information processing platform, according to the original image clock, the original image frame signal, the original image row signal, the original image row count, and the original image column count; and calls the character library IP core according to the character type selection instruction sent by the digital signal processor of the information processing platform, and reads out the character data according to the generated IP core ROM read signal.
6. The method for superimposing character information on infrared real-time images based on FPGA according to claim 1, characterized in that: In step S2, the pixel-in-pixel overlay timing arrangement module (2) adds the position of the character to the output image data and replaces the image data content with the character information. The image data at the corresponding position of the original image data is overlaid in black or white according to the character library data information. The remaining positions where the characters are added are still output as the original image data.
7. The method for superimposing character information on infrared real-time images based on FPGA according to claim 1, characterized in that: In step S4, the out-of-pixel character superimposition module (4) generates a read signal of the IP core ROM at a corresponding superimposition position outside the image pixel according to the composite character superimposition position instruction, composite field synchronization, and composite line synchronization signal sent by the composite control signal generation module (3); According to the composite character type selection instruction sent by the composite control signal generation module (3), the corresponding character library IP core is called, and the character data is read out according to the read signal of the IP core ROM generated above; And according to the character library data information, the image data at the corresponding position of the original image data is superimposed as black or white, and the remaining positions where the characters are not superimposed are output as the original image data or blank data.
8. An infrared real-time image superimposed character information system based on FPGA for implementing the infrared real-time image superimposed character information method based on FPGA as claimed in any one of claims 1 to 7, characterized in that: The FPGA-based infrared real-time image superimposed character information system includes: The pixel character superimposition module (1) is used to store, read and call character information in the image pixel, determine the superimposed character and the position of superimposing on the image according to the character superimposition instruction sent by the digital signal processor, generate a read ROM signal by using the selected ROM, read out the symbol information at the corresponding timing position, and output the image data of the superimposed pixel character library; The pixel-in-overlay timing arrangement module (2) is used to arrange the input image data in a timing manner, align the image data signal with the image synchronization signal, and output it to the pixel-out-overlay character arrangement module (4); The composite control signal generating module (3) is used to receive the character superimposition enabling instruction sent by the digital signal processor; one path generates a composite blanking signal and a composite synchronization signal according to the composite clock, and outputs them to the image output module (5) as the final image output signal; the other path controls the superimposition of information related to the out-pixel character according to the character superimposition enabling instruction sent by the digital signal processor, and the composite character type selection instruction, composite character superimposition position instruction, composite field synchronization, and composite line synchronization signal generated in combination with the composite clock; and outputs them to the out-pixel character superimposition module (4); The out-of-pixel character superimposition module (4) is used to receive the image signal after timing arrangement output by the in-pixel superimposition timing arrangement module (2), and simultaneously receive the composite character type selection instruction, composite character superimposition position instruction, composite field synchronization, and composite line synchronization signal output by the composite control signal generation module (3); complete the reading of the character library, the superimposition of the character data at the blank position of the original image timing, and output the superimposed synchronous image data through the control signal; The image output module (5) is used to perform time sequence alignment between the image output signal output by the composite control signal generation module (3) and the synchronous image data output by the out-of-pixel character superimposition module (4), and finally output a complete character image composite clock, character image composite synchronization, character image composite blanking, character image composite data output signal, and perform image display.
9. A program storage medium for receiving user input, characterized in that: The stored computer program enables the electronic device to execute the FPGA-based infrared real-time image superimposed character information method described in any one of claims 1-7.
10. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the FPGA-based infrared real-time image superimposed character information method according to any one of claims 1 to 7.
