A method, device, equipment and medium for controlling ink amount of an image edge in jet printing
By acquiring image description information and using an image parameter database for region division and pixel extraction, the problem of uneven edges in printed images was solved, achieving precise edge ink volume control and improving printing quality.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- JIN XIN TECH LTD
- Filing Date
- 2023-06-19
- Publication Date
- 2026-07-03
AI Technical Summary
In existing inkjet printing technology, the edges of printed images are uneven, with small peaks, which leads to a decline in printing quality.
By acquiring the descriptive information of the image to be printed, and matching edge information parameters using a pre-built image parameter database, region division and pixel extraction are performed, including the control of the proportion of the edge region and the extraction of the outermost layer of pixel intervals, to generate a precise edge ink volume control printing image.
It achieves precise control over the amount of ink at the edges of the printed image, improves the smoothness of the edge area, and enhances the printing quality.
Smart Images

Figure CN116777938B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image processing technology, and in particular to a method, apparatus, device, and medium for controlling the amount of ink at the edges of a printed image. Background Technology
[0002] A printer is an automated device used to print graphics on PCBs (Printed Circuit Boards) and FPCs (Flexible Printed Circuits). The method of adjusting the ink volume of the printed graphics is to control the number of pixels within the overall graphic, thereby controlling the amount of ink printed.
[0003] In the process of developing this invention, the inventors discovered the following shortcomings in the existing technology: Currently, controlling the number of pixels within the overall graphic involves uniformly sampling pixels at the whole level. Based on the sampling ratio, the printed pixels are proportionally and evenly set to blank, reducing the number of pixels printed. However, test results show that the edges of the printed graphic are uneven after overall sampling, exhibiting small peaks. Summary of the Invention
[0004] This invention provides a method, apparatus, device, and medium for controlling the amount of ink at the edge of a printed image, thereby achieving precise control of the amount of ink at the edge of the printed image and improving the smoothness of the edge area of the printed image.
[0005] According to one aspect of the present invention, a method for controlling the amount of ink at the edge of a printed image is provided, comprising:
[0006] Acquire the image to be printed and the image description information corresponding to the image to be printed;
[0007] The image description information is input into a pre-built image parameter database for matching to obtain image edge information parameters corresponding to the image to be printed.
[0008] Based on the image edge information parameters, the image to be printed is divided into regions to obtain at least one image region. Pixels are extracted from each of the at least one edge region using a ratio value matched with the image edge information parameters to obtain a first processed image. The image region includes non-edge regions and at least one edge region.
[0009] Based on the image edge information parameters, the outermost layer of pixels corresponding to the image to be printed is subjected to pixel interval extraction processing to obtain the second processed image.
[0010] Based on the first processed image and the second processed image, an edge ink volume control printing image corresponding to the image to be printed is determined.
[0011] According to another aspect of the present invention, a device for controlling the amount of ink at the edge of a printed image is provided, comprising:
[0012] An image description information acquisition module is used to acquire the image to be printed and the image description information corresponding to the image to be printed.
[0013] The image edge information parameter determination module is used to input the image description information into a pre-built image parameter database for matching, and obtain the image edge information parameters corresponding to the image to be printed;
[0014] The first image processing determination module is used to divide the image to be printed into regions according to the image edge information parameters to obtain at least one image division region, and to extract pixels from the at least one edge region by means of a ratio value matched with the image edge information parameters to obtain a first processed image; wherein, the image division region includes a non-edge region and at least one edge region;
[0015] The second image processing determination module is used to perform pixel interval extraction processing on the outermost layer pixels corresponding to the image to be printed according to the image edge information parameters to obtain the second processed image.
[0016] The edge ink volume control printing image determination module is used to determine the edge ink volume control printing image corresponding to the image to be printed based on the first processed image and the second processed image.
[0017] According to another aspect of the present invention, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, when the processor executes the computer program, it implements the method for controlling the amount of ink at the edge of a printed image as described in any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the ink control method for the edge ink volume of a printed image as described in any embodiment of the present invention.
[0019] The technical solution of this invention involves acquiring an image to be printed and corresponding image description information; inputting the image description information into a pre-constructed image parameter database for matching to obtain image edge information parameters corresponding to the image to be printed; dividing the image to be printed into regions based on the image edge information parameters to obtain at least one image region, and extracting pixels from each of the at least one edge region using a ratio value matched with the image edge information parameters to obtain a first processed image; performing pixel interval extraction processing on the outermost layer pixels corresponding to the image to be printed based on the image edge information parameters to obtain a second processed image; and determining an edge ink volume control printing image corresponding to the image to be printed based on the first processed image and the second processed image. This solves the problems of uneven edges and small peaks in the printed image, achieves precise control of ink volume at the edges of the printed image, further improves the flatness of the edge region of the printed image, and enhances the printing quality.
[0020] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1a This is a flowchart of a method for controlling the amount of ink at the edge of a printed image according to Embodiment 1 of the present invention;
[0023] Figure 1b This is a schematic diagram of the image region segmentation structure in the method provided in Embodiment 1 of the present invention;
[0024] Figure 2 This is a flowchart of another method for controlling the amount of ink at the edge of a printed image according to Embodiment 2 of the present invention;
[0025] Figure 3 This is a schematic diagram of a device for controlling the amount of ink at the edge of a printed image according to Embodiment 3 of the present invention;
[0026] Figure 4 This is a schematic diagram of the structure of an electronic device provided according to Embodiment 4 of the present invention. Detailed Implementation
[0027] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "target," "current," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0029] Example 1
[0030] Figure 1a The flowchart of a method for controlling the amount of ink at the edge of a printed image is provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation of controlling the amount of ink at the edge of an image to be printed. The method can be executed by a device for controlling the amount of ink at the edge of the printed image, which can be implemented in hardware and / or software.
[0031] Correspondingly, such as Figure 1a As shown, the method includes:
[0032] S110. Obtain the image to be printed and the image description information corresponding to the image to be printed.
[0033] The image to be printed can be any image that needs to be printed.
[0034] In this embodiment, the edge areas of the image to be printed may be uneven, and the edge areas need to be processed to control the amount of ink at the edges of the image.
[0035] Additionally, image description information can be information that describes the image to be printed. This image description information includes a unique identifier to distinguish different images to be printed; each image corresponds to a unique identifier.
[0036] S120. The image description information is input into a pre-built image parameter database for matching to obtain image edge information parameters corresponding to the image to be printed.
[0037] The image parameter database can be a database that includes image description information and image edge information parameters. Specifically, image description information can be matched within the image parameter database to obtain the corresponding image edge information parameters.
[0038] Additionally, the image edge information parameters can be information describing the edges of the printed image. The image edge information parameters may include at least one of the following: at least one edge ink volume control distance, a starting grayscale value and an ending grayscale value corresponding to each edge ink volume control distance, and a pixel interval extraction value; in two adjacent edge ink volume control distances, the ending grayscale value of the preceding edge ink volume control distance and the starting grayscale value of the following edge ink volume control distance are the same.
[0039] Specifically, the edge ink volume control distance can be the distance for controlling the edge ink volume. The image to be printed includes at least one edge ink volume control distance, differentiated according to the different image parameters corresponding to the image to be printed. The starting grayscale value can be the initial grayscale value corresponding to the edge ink volume control distance, with a grayscale value range of 0-255. The ending grayscale value can be the ending grayscale value corresponding to the edge ink volume control distance. The pixel interval extraction value can be the value of the interval extracted from the outermost layer of pixels in the image to be printed.
[0040] For example, suppose the image edge information parameters matched to the image to be printed have two edge ink volume control distances: edge segment one ink volume control distance and edge segment two ink volume control distance. The edge segment one ink volume control distance corresponds to a starting grayscale value of 120 and an ending grayscale value of 80; the edge segment two ink volume control distance corresponds to a starting grayscale value of 80 and an ending grayscale value of 40. Furthermore, the edge segment one ink volume control distance is 2mm, and the edge segment two ink volume control distance is 1mm.
[0041] It is understandable that the ending grayscale value corresponding to the ink volume control distance of the first edge segment is the same as the starting grayscale value corresponding to the ink volume control distance of the second edge segment, both being 80.
[0042] S130. Based on the image edge information parameters, the image to be printed is divided into regions to obtain at least one image division region, and the pixels of the at least one edge region are extracted by means of a ratio value matched with the image edge information parameters to obtain a first processed image.
[0043] The image segmentation region includes a non-edge region and at least one edge region.
[0044] The image segmentation region can be a region obtained by dividing the image. The image segmentation region includes one non-edge region and at least one edge region.
[0045] Additionally, the ratio value can be the magnitude of the pixel extraction ratio for different edge regions. The ratio value differs in different edge regions, and also varies at different locations within the same edge region.
[0046] The first processed image can be an image obtained by pixel extraction of the edge region.
[0047] Optionally, the step of dividing the image to be printed into regions based on image edge information parameters to obtain at least one image division region includes: dividing the image to be printed into regions based on the ink volume control distance of each edge to obtain at least one image division region.
[0048] Continuing from the previous example, such as Figure 1b The diagram shows a schematic of the image region division structure. The ink volume control distance for the first edge segment is 1mm, and the ink volume control distance for the second edge segment is 2mm. Based on the ink volume control distance at the edges, the image to be printed can be divided into three image regions: one non-edge region and two edge regions, namely edge region 1 and edge region 2.
[0049] Optionally, the step of extracting pixels from at least one edge region using a proportional value matched with the image edge information parameters to obtain a first processed image includes: calculating at least two linear grayscale values corresponding to each edge region based on the starting grayscale value and the ending grayscale value corresponding to each edge ink control distance, and the edge ink control distance; calculating the proportional value corresponding to each linear grayscale value, and extracting pixels from each edge region using the proportional value to obtain a first processed image.
[0050] Among them, the linear grayscale value can be the grayscale value corresponding to each position in the edge region.
[0051] Continuing with the previous example, the starting grayscale value for the first edge ink volume control distance is 120, and the ending grayscale value is 80; the starting grayscale value for the second edge ink volume control distance is 80, and the ending grayscale value is 40.
[0052] Since the ink volume control distance at the edge is 1mm, assuming the horizontal coordinate of position A is 0.5mm, the linear grayscale value corresponding to 0.5mm can be calculated as follows: The calculated linear grayscale value is 100.
[0053] Furthermore, a ratio value can be calculated, and pixels can be extracted from each of the edge regions using the ratio value to obtain the first processed image.
[0054] Optionally, the step of calculating the proportional value corresponding to each of the linear grayscale values and extracting pixels from each of the edge regions using the proportional value to obtain the first processed image includes: according to the formula The ratio value P is calculated; where V represents the linear grayscale value; according to at least two ratio values that match each edge region, pixels are extracted from each edge region to obtain the first processed image.
[0055] Continuing the previous example, assuming that the linear grayscale value at the position with an abscissa of 0.5mm in the edge region corresponding to the ink volume control distance of the edge segment is 100, then according to the formula... Calculate the ratio value. Then, based on the ratio value, extract pixels along the vertical axis with an abscissa of 0.5mm from the edge region corresponding to the ink volume control distance of the edge segment.
[0056] Similarly, it can be calculated that the linear grayscale value at the position with an abscissa of 0mm in the edge region corresponding to the ink volume control distance of the edge segment is 120, and the calculated ratio is 47.06%. Pixel extraction is performed on the vertical axis of the edge region with an abscissa of 0mm corresponding to the ink volume control distance of the edge segment.
[0057] Additionally, the linear grayscale value at the position with an abscissa of 1mm in the edge region corresponding to the ink volume control distance of the edge segment is 80, and the calculated ratio is 31.37%. Pixel extraction is performed on the vertical axis with an abscissa of 1mm in the edge region corresponding to the ink volume control distance of the edge segment.
[0058] Correspondingly, pixels are extracted from other edge regions to obtain the first processed image.
[0059] The advantage of this setting is that by calculating the ratio based on the starting grayscale value and ending grayscale value corresponding to each edge ink volume control distance, as well as the edge ink volume control distance, and extracting pixels from different edge regions, a corresponding first processed image is obtained. The first processed image obtained in this way is more accurate, thereby enabling control of the edge ink volume.
[0060] S140. Based on the image edge information parameters, perform pixel interval extraction processing on the outermost layer pixels corresponding to the image to be printed to obtain the second processed image.
[0061] The second processed image can be an image obtained by extracting the pixel interval of the outermost layer of pixels corresponding to the image to be printed.
[0062] Optionally, the step of performing pixel interval extraction processing on the outermost layer pixels corresponding to the image to be printed according to the image edge information parameters to obtain a second processed image includes: acquiring and performing pixel interval extraction processing on the outermost layer pixels corresponding to the image to be printed according to the pixel interval extraction value to obtain a second processed image.
[0063] The pixel interval extraction value can be the preset extraction value of the outermost pixel.
[0064] In this embodiment, the pixel interval sampling value can be set to any natural number. Assuming the pixel interval sampling value is 3, the outermost layer of pixels corresponding to the image to be printed is sampled according to the pixel interval sampling value of 3 to obtain the second processed image.
[0065] S150. Based on the first processed image and the second processed image, determine the edge ink volume control printing image corresponding to the image to be printed.
[0066] Among them, the edge ink volume control inkjet image can be the inkjet image after the edge ink volume of the image to be printed is controlled.
[0067] Optionally, determining the edge ink volume control printing image corresponding to the image to be printed based on the first processed image and the second processed image includes: acquiring the first processed image and the second processed image; combining the image of the non-outermost layer pixels corresponding to the first processed image and the image of the outermost layer pixels corresponding to the second processed image to determine the edge ink volume control printing image corresponding to the image to be printed.
[0068] In this embodiment, the image of the non-outermost layer of the first processed image and the image of the outermost layer pixels corresponding to the second processed image are selected, and the two images are combined to obtain the edge ink volume control inkjet image.
[0069] The advantage of this setting is that by extracting the pixel interval value, the outermost layer of pixels corresponding to the image to be printed is processed to obtain the second processed image. The outermost layer of pixels corresponding to the second processed image is more in line with the requirements of edge ink volume control. Since the extraction of edge areas may not be able to better control the edge ink volume of the image, the second processed image can better process the outermost layer of pixels of the image to be printed.
[0070] The technical solution of this invention involves acquiring an image to be printed and corresponding image description information; inputting the image description information into a pre-constructed image parameter database for matching to obtain image edge information parameters corresponding to the image to be printed; dividing the image to be printed into regions based on the image edge information parameters to obtain at least one image region, and extracting pixels from each of the at least one edge region using a ratio value matched with the image edge information parameters to obtain a first processed image; performing pixel interval extraction processing on the outermost layer pixels corresponding to the image to be printed based on the image edge information parameters to obtain a second processed image; and determining an edge ink volume control printing image corresponding to the image to be printed based on the first processed image and the second processed image. This solves the problems of uneven edges and small peaks in the printed image, achieves precise control of ink volume at the edges of the printed image, further improves the flatness of the edge region of the printed image, and enhances the printing quality.
[0071] Example 2
[0072] Figure 2 This is a flowchart of another method for controlling the amount of ink at the edge of a printed image, provided in Embodiment 2 of the present invention. This embodiment is an optimization based on the above embodiments. In this embodiment, before obtaining the image to be printed and the image description information corresponding to the image to be printed, a specific operation process for constructing an image parameter database is also included.
[0073] Correspondingly, such as Figure 2 As shown, the method includes:
[0074] S210. Obtain each historical inkjet image and the historical image description information corresponding to each historical inkjet image.
[0075] Historical print images can be images that were previously intended to be printed. Historical image description information can be information describing the historical print images.
[0076] S220. Each of the historical inkjet images is analyzed and processed to obtain the historical image edge information parameters corresponding to each historical inkjet image.
[0077] Among them, the historical image edge information parameter can be information describing the edges of historical inkjet images.
[0078] S230. The historical image description information and historical image edge information parameters corresponding to each historical inkjet image are jointly matched and stored to construct an image parameter database.
[0079] In this embodiment, historical inkjet images are acquired and parsed to obtain corresponding historical image description information and historical image edge information parameters. The historical image description information and historical image edge information parameters are jointly stored to determine the image parameter database.
[0080] S240: Obtain the image to be printed and the image description information corresponding to the image to be printed.
[0081] S250. The image description information is input into a pre-built image parameter database for matching to obtain image edge information parameters corresponding to the image to be printed.
[0082] In this embodiment, the method further includes inputting image description information into a pre-built image parameter database for matching. If no image edge information parameters corresponding to the image to be printed are obtained, the image to be printed is fed back. When the operator receives the image to be printed, they manually determine the image edge information parameters and control the amount of ink at the edges of the image to be printed based on the determined image edge information parameters. This improves the flexibility of controlling the amount of ink at the edges of the image to be printed.
[0083] S260. Based on the image edge information parameters, the image to be printed is divided into regions to obtain at least one image division region, and pixels are extracted from the at least one edge region by means of a ratio value matched with the image edge information parameters to obtain a first processed image.
[0084] S270. Based on the image edge information parameters, perform pixel interval extraction processing on the outermost layer pixels corresponding to the image to be printed to obtain the second processed image.
[0085] S280. Based on the first processed image and the second processed image, determine the edge ink volume control printing image corresponding to the image to be printed.
[0086] The technical solution of this invention involves: acquiring historical inkjet images and corresponding historical image description information; parsing each historical inkjet image to obtain historical image edge information parameters; jointly matching and storing the historical image description information and historical image edge information parameters corresponding to each historical inkjet image to construct an image parameter database; acquiring an image to be printed and corresponding image description information; inputting the image description information into the pre-constructed image parameter database for matching to obtain image edge information parameters corresponding to the image to be printed; dividing the image to be printed into regions based on the image edge information parameters to obtain at least one image region, and extracting pixels from each of the at least one edge region using a ratio value matched with the image edge information parameters to obtain a first processed image; performing pixel interval extraction processing on the outermost layer pixels corresponding to the image to be printed based on the image edge information parameters to obtain a second processed image; and determining an edge ink volume control inkjet image corresponding to the image to be printed based on the first processed image and the second processed image. A more comprehensive image parameter database was constructed, which improved the flexibility of edge ink volume control of the image to be printed, realized precise control of the ink volume at the edge of the printed image, further improved the flatness of the edge area of the printed image, and enhanced the printing quality.
[0087] Example 3
[0088] Figure 3 This is a schematic diagram of a device for controlling the ink volume at the edge of a printed image according to Embodiment 3 of the present invention. The device for controlling the ink volume at the edge of a printed image provided in this embodiment can be implemented by software and / or hardware, and can be configured in a terminal device or server to implement a method for controlling the ink volume at the edge of a printed image according to an embodiment of the present invention. Figure 3 As shown, the device includes: an image description information acquisition module 310, an image edge information parameter determination module 320, a first processed image determination module 330, a second processed image determination module 340, and an edge ink volume control printing image determination module 350.
[0089] The image description information acquisition module 310 is used to acquire the image to be printed and the image description information corresponding to the image to be printed.
[0090] The image edge information parameter determination module 320 is used to input the image description information into a pre-built image parameter database for matching, and obtain the image edge information parameters corresponding to the image to be printed.
[0091] The first image processing determination module 330 is used to divide the image to be printed into regions according to the image edge information parameters to obtain at least one image division region, and to extract pixels from the at least one edge region by means of a ratio value matched with the image edge information parameters to obtain a first processed image; wherein, the image division region includes a non-edge region and at least one edge region;
[0092] The second image processing determination module 340 is used to perform pixel interval extraction processing on the outermost layer pixels corresponding to the image to be printed according to the image edge information parameters to obtain the second processed image.
[0093] The edge ink volume control printing image determination module 350 is used to determine the edge ink volume control printing image corresponding to the image to be printed based on the first processed image and the second processed image.
[0094] The technical solution of this invention involves acquiring an image to be printed and corresponding image description information; inputting the image description information into a pre-constructed image parameter database for matching to obtain image edge information parameters corresponding to the image to be printed; dividing the image to be printed into regions based on the image edge information parameters to obtain at least one image region, and extracting pixels from each of the at least one edge region using a ratio value matched with the image edge information parameters to obtain a first processed image; performing pixel interval extraction processing on the outermost layer pixels corresponding to the image to be printed based on the image edge information parameters to obtain a second processed image; and determining an edge ink volume control printing image corresponding to the image to be printed based on the first processed image and the second processed image. This solves the problems of uneven edges and small peaks in the printed image, achieves precise control of ink volume at the edges of the printed image, further improves the flatness of the edge region of the printed image, and enhances the printing quality.
[0095] Optionally, the image edge information parameters include at least one of the following: at least one edge ink volume control distance, a starting grayscale value and an ending grayscale value corresponding to each edge ink volume control distance, and a pixel interval extraction value; in two adjacent edge ink volume control distances, the ending grayscale value of the previous edge ink volume control distance and the starting grayscale value of the next edge ink volume control distance are the same.
[0096] Optionally, the first image processing determination module 330 may be specifically used to: divide the image to be printed into regions according to the ink volume control distance of each edge, so as to obtain at least one image division region.
[0097] Optionally, the first image processing determination module 330 may also be specifically used to: calculate at least two linear grayscale values corresponding to each edge region based on the starting grayscale value and the ending grayscale value corresponding to each edge ink volume control distance, and the edge ink volume control distance; calculate the ratio value corresponding to each linear grayscale value, and extract pixels from each edge region according to the ratio value to obtain the first processed image.
[0098] Optionally, the first image processing determination module 330 may also be specifically used to: determine the image according to the formula. The ratio value P is calculated; where V represents the linear grayscale value; according to at least two ratio values that match each edge region, pixels are extracted from each edge region to obtain the first processed image.
[0099] Optionally, the second processed image determination module 340 may be specifically used to: acquire and perform pixel interval extraction processing on the outermost layer pixels corresponding to the image to be printed according to the pixel interval extraction value, so as to obtain the second processed image.
[0100] Optionally, the edge ink volume control printing image determination module 350 can be specifically used to: acquire the first processed image and the second processed image; combine the non-outermost layer image corresponding to the first processed image and the outermost layer image corresponding to the second processed image to determine the edge ink volume control printing image corresponding to the image to be printed.
[0101] Optionally, it also includes an image parameter database construction module, which can be specifically used to: before obtaining the image to be printed and the image description information corresponding to the image to be printed, obtain each historical printed image and the historical image description information corresponding to each historical printed image; parse and process each of the historical printed images to obtain the historical image edge information parameters corresponding to each historical printed image; and jointly match and store the historical image description information and historical image edge information parameters corresponding to each historical printed image to complete the image parameter database.
[0102] The ink control device for the edge of the printed image provided in this embodiment of the invention can execute the ink control method for the edge of the printed image provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.
[0103] Example 4
[0104] Figure 4A schematic diagram of an electronic device 10, which can be used to implement Embodiment 4 of the present invention, is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0105] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0106] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0107] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as methods for controlling the amount of ink at the edges of a printed image.
[0108] In some embodiments, the method for controlling the ink amount at the edges of a printed image can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the method for controlling the ink amount at the edges of a printed image described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the method for controlling the ink amount at the edges of a printed image by any other suitable means (e.g., by means of firmware).
[0109] The method includes: acquiring an image to be printed and image description information corresponding to the image to be printed; inputting the image description information into a pre-constructed image parameter database for matching to obtain image edge information parameters corresponding to the image to be printed; dividing the image to be printed into regions according to the image edge information parameters to obtain at least one image region, and extracting pixels from each of the at least one edge region using a ratio value matched with the image edge information parameters to obtain a first processed image; performing pixel interval extraction processing on the outermost layer pixels corresponding to the image to be printed according to the image edge information parameters to obtain a second processed image; and determining an edge ink volume control printing image corresponding to the image to be printed based on the first processed image and the second processed image.
[0110] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0111] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0112] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0113] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0114] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0115] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0116] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0117] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
[0118] Example 5
[0119] Embodiment 5 of the present invention also provides a computer-readable storage medium, wherein the computer-readable instructions, when executed by a computer processor, are used to perform a method for controlling the ink volume at the edge of a printed image. The method includes: acquiring an image to be printed and image description information corresponding to the image to be printed; inputting the image description information into a pre-constructed image parameter database for matching to obtain image edge information parameters corresponding to the image to be printed; dividing the image to be printed into regions according to the image edge information parameters to obtain at least one image region, and extracting pixels from each of the at least one edge region using a ratio value matched with the image edge information parameters to obtain a first processed image; performing pixel interval extraction processing on the outermost layer of pixels corresponding to the image to be printed according to the image edge information parameters to obtain a second processed image; and determining an edge ink volume control printed image corresponding to the image to be printed based on the first processed image and the second processed image.
[0120] Of course, the computer-executable instructions provided in the embodiments of the present invention, which include a computer-readable storage medium, are not limited to the method operations described above, but can also perform related operations in the ink control method for the edge ink volume of the printed image provided in any embodiment of the present invention.
[0121] Based on the above description of the implementation methods, those skilled in the art can clearly understand that the present invention can be implemented using software and necessary general-purpose hardware, and of course, it can also be implemented using hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk, or optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0122] It is worth noting that in the embodiments of the ink volume control device for the edge of the printed image described above, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the scope of protection of the present invention.
[0123] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for controlling the amount of ink at the edge of a printed image, characterized in that, include: Acquire the image to be printed and the image description information corresponding to the image to be printed; The image description information is input into a pre-built image parameter database for matching to obtain image edge information parameters corresponding to the image to be printed. Based on the image edge information parameters, the image to be printed is divided into regions to obtain at least one image region. Pixels are extracted from each of the at least one edge region using a ratio value matched with the image edge information parameters to obtain a first processed image. The image region includes non-edge regions and at least one edge region. Based on the image edge information parameters, the outermost layer of pixels corresponding to the image to be printed is subjected to pixel interval extraction processing to obtain the second processed image. Based on the first processed image and the second processed image, determine the edge ink volume control printing image corresponding to the image to be printed; The image edge information parameters include at least one of the following: at least one edge ink volume control distance, a starting grayscale value and an ending grayscale value corresponding to each edge ink volume control distance, and a pixel interval extraction value; in two adjacent edge ink volume control distances, the ending grayscale value of the previous edge ink volume control distance and the starting grayscale value of the next edge ink volume control distance are the same. The step of dividing the image to be printed into regions based on image edge information parameters to obtain at least one image region includes: Based on the edge ink volume control distance, the image to be printed is divided into regions to obtain at least one image division region.
2. The method according to claim 1, characterized in that, The step of extracting pixels from at least one edge region using a ratio value matched with image edge information parameters to obtain a first processed image includes: Based on the starting grayscale value and ending grayscale value corresponding to each edge ink volume control distance, and the edge ink volume control distance, at least two linear grayscale values corresponding to each edge region are calculated. The proportional values corresponding to each of the linear grayscale values are calculated respectively, and the pixels of each edge region are extracted according to the proportional values to obtain the first processed image.
3. The method according to claim 2, characterized in that, The step of calculating the proportional value corresponding to each of the linear grayscale values, and extracting pixels from each of the edge regions using the proportional value to obtain the first processed image includes: According to the formula The ratio value P is calculated; where V represents the linear grayscale value. Pixels are extracted from each edge region based on at least two ratio values that match each edge region to obtain a first processed image.
4. The method according to claim 1, characterized in that, The step of performing pixel interval extraction processing on the outermost layer pixels corresponding to the image to be printed based on image edge information parameters to obtain a second processed image includes: The outermost layer of pixels corresponding to the image to be printed is extracted according to the pixel interval extraction value to obtain the second processed image.
5. The method according to claim 3 or 4, characterized in that, The step of determining the edge ink volume control printing image corresponding to the image to be printed based on the first processed image and the second processed image includes: Obtain the first processed image and the second processed image; The image of the non-outermost layer pixels corresponding to the first processed image and the image of the outermost layer pixels corresponding to the second processed image are combined to determine the edge ink volume control printing image corresponding to the image to be printed.
6. The method according to claim 5, characterized in that, Before acquiring the image to be printed and the image description information corresponding to the image to be printed, the method further includes: Obtain each historical inkjet print image, as well as the historical image description information corresponding to each historical inkjet print image; Each of the historical inkjet images is analyzed and processed to obtain the historical image edge information parameters corresponding to each historical inkjet image; The historical image description information and historical image edge information parameters corresponding to each historical inkjet image are jointly matched and stored to construct an image parameter database.
7. A device for controlling the amount of ink at the edge of a printed image, characterized in that, include: An image description information acquisition module is used to acquire the image to be printed and the image description information corresponding to the image to be printed. The image edge information parameter determination module is used to input the image description information into a pre-built image parameter database for matching, and obtain the image edge information parameters corresponding to the image to be printed; The first image processing determination module is used to divide the image to be printed into regions according to the image edge information parameters to obtain at least one image division region, and to extract pixels from the at least one edge region by means of a ratio value matched with the image edge information parameters to obtain a first processed image; wherein, the image division region includes a non-edge region and at least one edge region; The second image processing determination module is used to perform pixel interval extraction processing on the outermost layer pixels corresponding to the image to be printed according to the image edge information parameters to obtain the second processed image. The edge ink volume control printing image determination module is used to determine the edge ink volume control printing image corresponding to the image to be printed based on the first processed image and the second processed image. The image edge information parameters include at least one of the following: at least one edge ink volume control distance, a starting grayscale value and an ending grayscale value corresponding to each edge ink volume control distance, and a pixel interval extraction value; in two adjacent edge ink volume control distances, the ending grayscale value of the previous edge ink volume control distance and the starting grayscale value of the next edge ink volume control distance are the same. The first image processing determination module is used to: divide the image to be printed into regions according to the edge ink volume control distance, so as to obtain at least one image division region.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method for controlling the amount of ink at the edge of the printed image as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the method for controlling the amount of ink at the edge of a printed image as described in any one of claims 1-6.