CN-122018826-A - FPGA-based spray head data reorganization and alignment method and system
Abstract
The invention discloses a nozzle data reorganization and alignment system and method based on an FPGA, comprising the steps of receiving original image scanning line data, clustering the nozzle data with the same height in the original image scanning line data according to the mapping relation of nozzle positions of a printer to obtain high-height clustering data, and sequentially writing the high-height clustering data into a cache; according to the spray point position requirement of a printing pulse, the jump address reads the high clustering data of the corresponding high row to perform clustering recombination to obtain the same printing pulse data, according to the spray point mapping relation of the spray point region of the printer, the same printing pulse data of the printing pulse are mapped and recombined to obtain region mapping data, the region mapping data are sequentially written into a cache, and the region mapping data are output according to the printing pulse. By adopting row-by-row clustering and jump address reading strategies, the memory operation efficiency and the FPGA resource utilization rate are greatly improved, meanwhile, the spray point distribution difference of different spray heads is supported, the flexibility is high, and the printing efficiency and the productivity of the printing machine are effectively improved.
Inventors
- Lv Tianchi
- ZHANG XUYANG
- LAI LI
Assignees
- 杭州优视泰信息技术有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251215
Claims (9)
- 1. The shower nozzle data reorganization and alignment system based on the FPGA is characterized by comprising a height data clustering reorganization unit, a data storage unit, a region mapping data reorganization unit and a data output unit, The high-altitude data clustering and reorganizing unit is used for receiving the original image scanning line data, clustering the high-altitude spray points in the original image scanning line data according to the mapping relation of the spray points of the spray heads of the printer to obtain high-altitude clustering data, and writing the high-altitude clustering data into the cache sequentially; The data storage unit is used for reading and storing the high-altitude clustered data, reading the high-altitude clustered data corresponding to the high-altitude row according to the spray point position requirement of one printing pulse, and carrying out clustering recombination to obtain the same printing pulse data; the region mapping data reorganization unit is used for carrying out mapping reorganization on the same printing pulse data of one printing pulse according to the spray point mapping relation of the spray head region of the printer to obtain region mapping data, and writing the region mapping data into the cache sequentially; The data output unit is used for outputting the region mapping data according to the printing pulse.
- 2. The FPGA-based nozzle data reorganization and alignment system of claim 1, wherein in the high-altitude data clustering reorganization, high-altitude nozzle data in the original image scan line data are clustered to obtain high-altitude clustered data, including: and clustering the spot data quantity of one scanning line of the digital printing machine in the original image scanning line data each time to obtain high-altitude clustered data.
- 3. The FPGA-based nozzle data reorganization and alignment system according to claim 1, wherein the data storage unit reads, according to a nozzle position requirement of a print pulse, height cluster data of a corresponding height row from a skip address, including: And when the data is read, calculating an address offset according to the corresponding relation of the spray point heights, and reading the height clustering data of the corresponding height rows according to the jump address according to the address offset.
- 4. The FPGA-based nozzle data reorganization and alignment system according to claim 1, wherein the raw image scan line data received by the high-altitude data clustering reorganization unit is obtained by PCIe transmission from an upper computer.
- 5. A method for reorganizing and aligning nozzle data based on an FPGA, which is characterized by adopting the system as claimed in any one of claims 1 to 4, and comprising the following steps: The step of clustering and reorganizing the high-altitude data, namely, receiving the original image scanning line data by using a high-altitude data clustering and reorganizing unit, clustering the high-altitude spray point data in the original image scanning line data according to the mapping relation of the spray point positions of the spray heads of the printer to obtain high-altitude clustered data, and sequentially writing the high-altitude clustered data into a data storage unit; The same-printing pulse data clustering and reorganizing step, namely reading the high-altitude clustering data corresponding to the high-altitude lines by utilizing a data storage unit according to the spraying point position requirement of one printing pulse, and performing clustering and reorganizing to obtain same-printing pulse data; The regional mapping data reorganization step is that the regional mapping data reorganization unit is used for carrying out mapping reorganization on the same printing pulse data of one printing pulse according to the spray point mapping relation of the spray head region of the printer to obtain regional mapping data, and the regional mapping data are sequentially written into the data storage unit; and a data output control step of outputting the region mapping data in the data storage unit according to the printing pulse by using the data output unit.
- 6. The method for reorganizing and aligning nozzle data based on FPGA as claimed in claim 5, wherein the method is characterized in that the high-level clustering data is obtained by clustering the nozzle data amount of one digital printing machine scanning line in the original image scanning line data each time when the data is clustered.
- 7. The method for reorganizing and aligning nozzle data based on FPGA according to claim 5, wherein when the data is read, the address offset is calculated according to the corresponding relation of the nozzle heights, and the jump address is used for reading the height clustering data of the corresponding height row according to the address offset.
- 8. The method of claim 5, further comprising writing the high-order cluster data into the cache after the high-order cluster data is obtained and represented in an array form, and the high-order cluster data is complemented by 0 to 256 bits.
- 9. The method for reorganizing and aligning data of a nozzle based on an FPGA according to claim 5, wherein the finite state machine corresponding to the storage function of the data storage unit works as follows: After the system is reset, the data storage unit firstly enters an idle state, after the request of data input is received after the high-altitude clustering recombination, the data is sequentially written into the memory according to the continuous address until the data quantity of the high-altitude clustering recombination is reached, then enters the idle state, whether enough data is written is judged, after the data quantity of the skip writing is enough, the data is entered into a data skip reading state, the memory is skip-read according to a specific address until the image data of one printing pulse is skip-read, then enters the idle state, otherwise, the request of the next sequential writing is waited, the mapping recombination of the region mapping data is waited, the data is entered into the region mapping data writing state, the data is written into the memory according to the sequential address until the image data of one printing pulse is completely written, then enters the idle state, if so, the data is entered into the data outputting state, the data is sequentially read according to the continuous address until the data is completely read, and then enters the idle state, and otherwise, the next region mapping data writing is waited.
Description
FPGA-based spray head data reorganization and alignment method and system Technical Field The invention belongs to the technical field of combination of FPGA and digital printing, and particularly relates to a method and a system for reorganizing and aligning nozzle data based on FPGA. Background At the moment of rapid development of digital printing technology, the requirements of the market on printing precision, speed and productivity of printing equipment are increasingly improved, and the recombination and alignment efficiency of nozzle data is a key link for restricting the performance of the equipment. When the current digital printing machine processes original image data, image pixel information is required to be precisely matched with the spray point position of a spray head so as to ensure the definition and the integrity of a printed pattern, such as an ink jet printing device and a printing method disclosed in patent application publication No. CN102180006A, and a method, a device, equipment and a storage medium for acquiring a printing alignment calibration value disclosed in patent application publication No. CN 110816087A. Traditional data processing methods are realized by a general-purpose CPU processor. However, the serial processing architecture of the CPU is difficult to cope with the real-time processing requirement of the high-resolution image, and data delay is easy to occur, so that the printing pulse of the nozzle and the data output are not synchronous, and further the problems of pattern dislocation, blurring and the like are generated, and the printing quality is seriously affected. In recent years, FPGAs (field programmable gate arrays) have been gradually introduced into the field of digital printing data processing due to their advantages of high parallel processing capability and reconfigurable hardware. However, existing FPGA-based showerhead data processing schemes still have significant drawbacks: On the one hand, the data clustering reorganization lacks systematic strategies, is not optimized for the relevance between the spray point height distribution of the spray heads and the printing pulse, so that the resource occupancy rate in the data reading and caching process is high, and the working rhythm of the high-speed spray heads cannot be matched; On the other hand, the specificity of spray point mapping of a spray head area is not considered, an additional calibration step is still needed after data recombination, the printing efficiency is further reduced, and the requirement of high-efficiency output of the printing machine is difficult to realize. Therefore, a brand new method for reorganizing and aligning nozzle data based on FPGA is needed, and the problems of low efficiency, poor resource utilization and insufficient flexibility in the prior art are solved. Disclosure of Invention In view of the above, the present invention aims to provide a method and a system for reorganizing and aligning nozzle data based on FPGA, so as to improve efficiency of reorganizing and aligning nozzle data, improve resource utilization, and realize efficient output of a printing machine. In order to achieve the aim of the invention, the embodiment provides a shower nozzle data reorganization and alignment system based on the FPGA, which comprises a high-data clustering reorganization unit, a data storage unit, a region mapping data reorganization unit and a data output unit, The high-altitude data clustering and reorganizing unit is used for receiving the original image scanning line data, clustering the high-altitude spray points in the original image scanning line data according to the mapping relation of the spray points of the spray heads of the printer to obtain high-altitude clustering data, and writing the high-altitude clustering data into the cache sequentially; The data storage unit is used for reading and storing the high-altitude clustered data, reading the high-altitude clustered data corresponding to the high-altitude row according to the spray point position requirement of one printing pulse, and carrying out clustering recombination to obtain the same printing pulse data; the region mapping data reorganization unit is used for carrying out mapping reorganization on the same printing pulse data of one printing pulse according to the spray point mapping relation of the spray head region of the printer to obtain region mapping data, and writing the region mapping data into the cache sequentially; The data output unit is used for outputting the region mapping data according to the printing pulse. Preferably, in the high data clustering recombination, the clustering of the high spray point data in the original image scan line data to obtain high clustered data includes: and clustering the spot data quantity of one scanning line of the digital printing machine in the original image scanning line data each time to obtain high-altitude clustered data. Preferably, in the data