Search

CN-122001988-A - Image processing method, system, electronic device and storage medium

CN122001988ACN 122001988 ACN122001988 ACN 122001988ACN-122001988-A

Abstract

The embodiment of the application provides an image processing method, an image processing system, electronic equipment and a storage medium, which comprise the steps of obtaining an image data block, wherein the image data block is a first image data block or a second image data block, the first image data block is a data block to be formed on a first surface of the medium, the second image data block is a data block to be formed on a second surface of the medium, and carrying out halftone processing on the image data block by adopting the same halftone processing unit to obtain a halftone data block. The embodiment of the application adopts the same halftone processing unit to carry out halftone processing on the image data to be formed on the front side and the back side of the medium, thereby reducing the halftone algorithm scale and the chip area.

Inventors

  • HAN XIANFEI

Assignees

  • 珠海奔图电子有限公司

Dates

Publication Date
20260508
Application Date
20241101

Claims (14)

  1. 1. An image processing method, the method comprising: Acquiring an image data block, wherein the image data block is a first image data block or a second image data block, the first image data block is a data block to be formed on a first surface of a medium, and the second image data block is a data block to be formed on a second surface of the medium; and carrying out halftone processing on the image data blocks by adopting the same halftone processing unit to obtain halftone data blocks.
  2. 2. The method of claim 1, wherein halftoning the image data block using the same halftoning unit to obtain a halftoned data block, comprising: acquiring an error intermediate variable corresponding to the image data block; and carrying out halftone processing on the image data block based on the corresponding error intermediate variable by adopting the same halftone processing unit to obtain a halftone data block.
  3. 3. The method of claim 2, wherein the obtaining an error intermediate variable corresponding to the block of image data comprises: Judging whether the image data block and the last acquired image data block are data blocks to be formed on the same surface of the medium or not; And when the image data block and the acquired last image data block are data blocks to be formed on the same surface of the medium, acquiring the currently stored error intermediate variable from a data caching unit or a halftone processing unit as the error intermediate variable corresponding to the image data block, wherein the currently stored error intermediate variable in the data caching unit or the halftone processing unit is the error intermediate variable obtained after the last image data block is subjected to halftone processing.
  4. 4. A method according to claim 3, characterized in that the method further comprises: And when the image data block and the acquired last image data block are not data blocks to be formed on the same surface of the medium, storing the error intermediate variable currently stored in the data caching unit or the halftone processing unit into a memory so as to update the corresponding error intermediate variable in the memory, and acquiring the error intermediate variable corresponding to the image data block from the memory.
  5. 5. The method of claim 2, wherein the obtaining an error intermediate variable corresponding to the block of image data comprises: judging whether the image data block is a first image data block or a second image data block; and obtaining an error intermediate variable corresponding to the image data block from a memory, wherein the memory stores the error intermediate variable corresponding to the first image data block and the error intermediate variable corresponding to the second image data block.
  6. 6. The method of claim 5, wherein the method further comprises: And updating the corresponding error intermediate variable stored in the memory according to the error intermediate variable obtained after the image data block is subjected to halftone processing.
  7. 7. An image processing system, comprising: a half-tone processing module for obtaining an image data block and performing half-tone processing on the image data block by adopting the same half-tone processing unit to obtain a half-tone data block, wherein, The image data blocks are either first image data blocks, which are data blocks to be formed on a first side of the medium, or second image data blocks, which are data blocks to be formed on a second side of the medium.
  8. 8. The system of claim 7, wherein the halftone processing module comprises: and the halftone processing unit is used for acquiring an error intermediate variable corresponding to the image data block, and carrying out halftone processing on the image data block based on the corresponding error intermediate variable to obtain a halftone data block.
  9. 9. The system of claim 8, wherein the halftone processing module further comprises: the data caching unit is used for storing an error intermediate variable, wherein the error intermediate variable stored in the data caching unit is obtained after the acquired last image data block is subjected to halftone processing; The halftone processing unit is further configured to: Judging whether the image data block and the last acquired image data block are data blocks to be formed on the same side of the medium, and acquiring the currently stored error intermediate variable from the data caching unit as the error intermediate variable corresponding to the image data block when the image data block and the last acquired image data block are data blocks to be formed on the same side of the medium.
  10. 10. The system of claim 9, wherein the halftone processing unit is further configured to: And when the image data block and the acquired last image data block are not data blocks to be formed on the same surface of the medium, storing the error intermediate variable currently stored in the data caching unit into a memory so as to update the corresponding error intermediate variable in the memory, and acquiring the error intermediate variable corresponding to the image data block from the memory.
  11. 11. The system of claim 8, wherein the system further comprises: A memory for storing an error intermediate variable corresponding to the first image data block and an error intermediate variable corresponding to the second image data block; The halftone processing unit is further configured to: judging whether the image data block is a first image data block or a second image data block; and acquiring an error intermediate variable corresponding to the image data block from the memory.
  12. 12. The system of claim 11, wherein the halftone processing unit is further configured to: And updating the corresponding error intermediate variable stored in the memory according to the error intermediate variable obtained after the image data block is subjected to halftone processing.
  13. 13. An electronic device, comprising: A processor; A memory; the memory has stored therein a computer program which, when executed, causes the electronic device to perform the method of any of claims 1-6.
  14. 14. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program, when run, controls a device in which the computer readable storage medium is located to perform the method of any one of claims 1-6.

Description

Image processing method, system, electronic device and storage medium Technical Field The present application relates to the field of image processing technologies, and in particular, to an image processing method, an image processing system, an electronic device, and a storage medium. Background In the field of image formation, image processing techniques are often used in the field of printing of image forming apparatuses such as printers, scanners, and the like. Among them, the halftone (ha lftone) image processing technology is a commonly used image processing technology, which is used to convert a continuous tone image into a halftone image, also called a binary image, which is convenient for a print head of an image forming apparatus to process. In an image forming apparatus, the halftone image processing technique is currently commonly implemented in two ways, a random dithering method and an error diffusion method. In the duplex printing, it is common practice to use two halftone processing units to process image data of the front and back sides, respectively, but image processing by duplex printing in this manner causes an increase in halftone processing scale, and further causes an increase in chip area. Disclosure of Invention In view of this, the present application provides an image processing method, system, electronic device, and storage medium, to solve the problem in the prior art that two halftone units are used to process front and back image data respectively, resulting in an increase in halftone processing scale and an increase in chip area. In a first aspect, an embodiment of the present application provides an image processing method, including: Acquiring an image data block, wherein the image data block is a first image data block or a second image data block, the first image data block is a data block to be formed on a first surface of a medium, and the second image data block is a data block to be formed on a second surface of the medium; and carrying out halftone processing on the image data blocks by adopting the same halftone processing unit to obtain halftone data blocks. In one possible implementation manner, the halftone processing of the image data block by using the same halftone processing unit to obtain a halftone data block includes: acquiring an error intermediate variable corresponding to the image data block; and carrying out halftone processing on the image data block based on the corresponding error intermediate variable by adopting the same halftone processing unit to obtain a halftone data block. In one possible implementation, the acquiring the error intermediate variable corresponding to the image data block includes: Judging whether the image data block and the last acquired image data block are data blocks to be formed on the same surface of the medium or not; And when the image data block and the acquired last image data block are data blocks to be formed on the same surface of the medium, acquiring the currently stored error intermediate variable from a data caching unit or a halftone processing unit as the error intermediate variable corresponding to the image data block, wherein the currently stored error intermediate variable in the data caching unit or the halftone processing unit is the error intermediate variable obtained after the last image data block is subjected to halftone processing. In one possible implementation, the method further includes: And when the image data block and the acquired last image data block are not data blocks to be formed on the same surface of the medium, storing the error intermediate variable currently stored in the data caching unit or the halftone processing unit into a memory so as to update the corresponding error intermediate variable in the memory, and acquiring the error intermediate variable corresponding to the image data block from the memory. In one possible implementation, the acquiring the error intermediate variable corresponding to the image data block includes: judging whether the image data block is a first image data block or a second image data block; and obtaining an error intermediate variable corresponding to the image data block from a memory, wherein the memory stores the error intermediate variable corresponding to the first image data block and the error intermediate variable corresponding to the second image data block. In one possible implementation, the method further includes: And updating the corresponding error intermediate variable stored in the memory according to the error intermediate variable obtained after the image data block is subjected to halftone processing. In a second aspect, an embodiment of the present application provides an image processing system, including: a half-tone processing module for obtaining an image data block and performing half-tone processing on the image data block by adopting the same half-tone processing unit to obtain a half-tone data block, wherein, The