An image jet printing method, device, electronic equipment and storage medium
By performing etching separation and dot extraction on the printed image, the problem of inaccurate separation of small character graphics was solved, ensuring the clarity of the characters after printing and achieving precise control of the ink volume.
Patent Information
- Application Number
- CN202310542315.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-15
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2043-05-15
AI Technical Summary
Existing technologies struggle to accurately separate small characters when printing them, resulting in unclear characters and color differences after printing.
By performing etch separation on the printed image, a first printed image and a second printed image that are mutually complementary in terms of etch, and then performing point sampling processing on them according to a preset point sampling rule, the printed images are finally merged for printing.
It achieves precise separation of small character graphics, controls the amount of ink to be printed, avoids ink spillage, and improves the clarity of the printed image.
Smart Images

Figure CN116563178B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of inkjet printing technology, and in particular to an image inkjet printing method, apparatus, electronic device, and storage medium. Background Technology
[0002] An inkjet printer is an automated device used to print images on printed circuit boards. The images printed on a printed circuit board can be broadly divided into large areas of concentrated white ink and characters. Since characters are generally small and need to be clearly displayed after printing, it is necessary to control the amount of ink ejected from the characters to avoid blurry characters caused by ink flow.
[0003] Existing technologies generally separate inkjet graphics into white ink block graphics and character graphics by setting thresholds, for example, based on the morphological characteristics of each graphic, such as width, height, or the largest inscribed circle. Then, the number of pixels in the separated white ink block graphics and character graphics is processed separately to control the amount of ink used for character printing.
[0004] However, using the existing separation method requires adjusting different thresholds for different graphics, and it can cause problems such as inaccurate separation of white ink blocks and characters, resulting in color differences or unclear characters after printing. Summary of the Invention
[0005] This invention provides an image printing method, apparatus, electronic device, and storage medium, which can accurately separate small character graphics in the printed image, solve the problem of unclear small character printing, and effectively improve the clarity of the printed image.
[0006] According to one aspect of the present invention, an image printing method is provided, comprising:
[0007] The current inkjet image is analyzed, and the target corrosion radius value that matches the current inkjet image is determined based on the analysis results;
[0008] Based on the target corrosion radius value, the current printed image is subjected to corrosion separation to obtain a first printed image and a second printed image; the first printed image and the second printed image are corrosion complementary images to each other;
[0009] According to the preset sampling rules, the first and second printed images are sampled.
[0010] The first and second printed images, after point sampling, are merged to obtain a merged printed image, which is then loaded into the printing process for printing.
[0011] According to another aspect of the present invention, an image printing apparatus is provided, comprising:
[0012] The target corrosion radius value determination module is used to analyze the current inkjet image and determine the target corrosion radius value that matches the current inkjet image based on the analysis results.
[0013] The image corrosion separation module is used to perform corrosion separation on the current inkjet image according to the target corrosion radius value to obtain a first inkjet image and a second inkjet image; the first inkjet image and the second inkjet image are corrosion complementary images to each other;
[0014] The dot sampling processing module is used to perform dot sampling processing on the first inkjet image and the second inkjet image according to the preset dot sampling rules.
[0015] The image printing module is used to merge the first and second printed images after dot sampling to obtain a merged printed image, and then load the merged printed image into the printing process for printing.
[0016] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0017] At least one processor; and
[0018] A memory communicatively connected to the at least one processor; wherein,
[0019] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the image printing method according to any embodiment of the present invention.
[0020] 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 image printing method according to any embodiment of the present invention.
[0021] The technical solution of this invention, by etching and separating the current inkjet image, performing dot sampling on each image after etching and separating, and merging the dot-sampling images before printing, can accurately separate white ink block graphics and small character graphics in the inkjet image, solving the problem of inaccurate separation of small character graphics. It can control the amount of ink sprayed on each graphic in the inkjet image, especially the amount of ink sprayed on smaller characters, avoiding ink overflow at the smaller characters after printing, thereby ensuring that the smaller characters in the printed image can be clearly displayed, effectively improving the clarity of the printed image.
[0022] 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
[0023] 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.
[0024] Figure 1 This is a flowchart of an image printing method according to Embodiment 1 of the present invention;
[0025] Figure 2 This is a schematic diagram illustrating the etching separation and merging effects of a printed image according to an embodiment of the present invention;
[0026] Figure 3 This is a flowchart of another image printing method provided in Embodiment 2 of the present invention;
[0027] Figure 4 This is a schematic diagram of the structure of an image printing apparatus according to Embodiment 3 of the present invention;
[0028] Figure 5 This is a schematic diagram of the structure of an electronic device that implements the image printing method of this invention. Detailed Implementation
[0029] 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.
[0030] It should be noted that the terms "first," "second," 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 the 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.
[0031] Example 1
[0032] Figure 1 This is a flowchart of an image printing method provided in Embodiment 1 of the present invention. This embodiment is applicable to situations where small characters in the printed image are clearly displayed after etching and separating the current image to be printed. This method can be executed by an image printing device, which can be implemented in hardware and / or software. The image printing device can be configured in a computer or processor with image processing capabilities. Figure 1 As shown, the method includes:
[0033] S110. Analyze the current inkjet image and determine the target corrosion radius value that matches the current inkjet image based on the analysis results.
[0034] Optionally, the current printed image can be understood as the target image that the user needs to print. Common printed images can be roughly divided into large areas of white ink blocks and character graphics.
[0035] Figure 2 This is a schematic diagram illustrating the etching separation and merging effects of an optional inkjet-printed image. Figure 2 In the current printed image shown, the black dots are a type of white ink block graphic, and the continuous numbers or letters are an optional character graphic. Figure 2 The lower right corner of the current printed image shows an image consisting of a black background and white characters. During the printing process, the ink may spread to the white characters due to the larger ink volume at the edges of the black background and white characters, thus affecting the clarity of the characters.
[0036] To address the aforementioned problems, this invention creatively proposes a method of separating the printed image into two complementary images by etching the printed image according to the etching radius value. One image essentially contains the white ink block graphic in the printed image, and the other image essentially contains the character graphic in the printed image. By controlling the pixels of the two images separately, the amount of ink at the edges of the characters can be reduced.
[0037] Optionally, the purpose of etching the current printed image is to separate the white ink block graphic and the character graphic. Therefore, the target etching radius value can be determined based on the pixel value of the character line width.
[0038] Optionally, the target separation threshold can be equal to or slightly greater than the pixel value of the character line width. Of course, the target erosion radius does not have to rely on the line width of the character graphic, and can be considered from other optional aspects, as long as the final target erosion radius can accurately separate the white oil block graphic and the character graphic.
[0039] Optionally, the target corrosion radius value can also be predetermined based on the experience of the technicians.
[0040] S120. Based on the target corrosion radius value, perform corrosion separation on the current inkjet image to obtain the first inkjet image and the second inkjet image.
[0041] The first and second inkjet images are complementary etched images.
[0042] The first printed image may include the pixel information remaining after the current printed image is etched, and the second printed image may include the pixel information that has been etched away in the current printed image.
[0043] Figure 2 The document also shows an example of an optional first printed image and an example of an optional second printed image. (Through...) Figure 2 As shown in the example image, the inner and outer edges of each graphic in the current printed image can be etched according to the target etching radius, and the remaining part after etching is the first printed image. Since the second printed image is the complementary image of the first printed image, the second printed image containing all the etched parts can be directly obtained based on the current printed image and the first printed image.
[0044] Through the embodiments of the present invention and Figure 2 As can be seen from the examples, the separation method proposed in this invention can accurately separate the white oil block graphic from the character graphic, solving the problem of inaccurate separation in the prior art.
[0045] S130. According to the preset sampling rules, perform sampling processing on the first printed image and the second printed image.
[0046] It is understandable that the purpose of dot sampling in the printed image is to reduce the number of pixels in the image. Generally, the amount of ink sprayed during the printing process is determined by the number of pixels in the image. By reducing the number of pixels, the amount of ink sprayed can be reduced.
[0047] Optionally, the proportion of dots sampled in the first printed image can be smaller than that in the second printed image. For example, the proportion of dots sampled in the first printed image can be 10%, and the proportion of dots sampled in the second printed image can be 30%. Consequently, the graphics contained in the second printed image have a relatively smaller ink volume during printing, thereby effectively controlling the ink volume at the edges of the character graphics.
[0048] Optionally, the sampling process can be performed by uniformly sampling points from each graphic, or by sampling points from a specified part according to the actual printing requirements, without limiting the specific sampling rules.
[0049] S140. The first inkjet image and the second inkjet image after the sampling process are merged to obtain a merged inkjet image, and the merged inkjet image is loaded into the inkjet process for inkjet processing.
[0050] Optionally, merging the printed images can be understood as merging the pixels of the first printed image after sampling with those of the second printed image according to the specified position information or coordinate information to obtain the image.
[0051] Figure 2 The diagram also shows a schematic of the merged printed image obtained by combining the first and second printed images after dot-sampling processing. Figure 2 As shown, in the merged inkjet image, the portion merged from the second inkjet image is significantly lighter in color than the rest. Understandably, in actual pixel sampling, these lighter-colored portions will be sampled at a higher rate.
[0052] The technical solution of this invention, by etching and separating the current inkjet image, performing dot sampling on each image after etching and separating, and merging the dot-sampling images before printing, can accurately separate white ink block graphics and small character graphics in the inkjet image, solving the problem of inaccurate separation of small character graphics. It can control the amount of ink sprayed on each graphic in the inkjet image, especially the amount of ink sprayed on smaller characters, avoiding ink overflow at the smaller characters after printing, thereby ensuring that the smaller characters in the printed image can be clearly displayed, effectively improving the clarity of the printed image.
[0053] Example 2
[0054] Figure 3This is a flowchart of an image printing method provided in Embodiment 2 of the present invention. This embodiment specifically describes the image printing method based on the above embodiments. Figure 3 As shown, the method includes:
[0055] S210. Identify multiple character graphics in the current printed image and obtain the pixel information corresponding to each character graphic.
[0056] Optionally, the pixel information corresponding to the character graphic may include the pixel value of the character line width.
[0057] S220. Based on the pixel information corresponding to each character graphic, select the smallest character in the current inkjet image and obtain the target pixel value that matches the smallest character.
[0058] Optionally, the smallest character is not necessarily the character with the smallest length and width. It can also be the character with the smallest pixel value of the character line width. In this case, the target pixel value of the smallest character can be understood as the pixel value of the smallest character line width.
[0059] S230. Determine the target transition threshold that matches the target pixel value, and determine the target corrosion radius that matches the current inkjet image based on the target pixel value and the target transition threshold.
[0060] Understandably, the target transition threshold can be determined based on the target pixel value. For example, when the target pixel value is 2 pixels, the target transition threshold that matches it can be 1 pixel, and the target erosion radius can be the sum of the target pixel value and the target transition threshold, i.e., 3 pixels.
[0061] Optionally, the target transition threshold is generally a small value. Of course, it is also possible not to set a target transition threshold, and it is only necessary to confirm that the target corrosion radius can accurately separate the white oil block graphic and the character graphic.
[0062] The purpose of this setting is to determine the target erosion radius by adding a target transition threshold to the target pixel value, thereby avoiding the situation where the overlapping lines in the character graphic cannot be accurately eroded and separated.
[0063] S240. Based on the target corrosion radius value, perform corrosion separation on the current inkjet image to obtain the first inkjet image and the second inkjet image.
[0064] Specifically, based on the target corrosion radius value, corrosion separation is performed on the current printed image to obtain a first printed image and a second printed image, including:
[0065] In the current printed image, identify multiple first continuous patterns and identify the inner and outer edges of each first continuous pattern;
[0066] Each first continuous graphic is etched and separated from its inner and outer edges according to the target etching radius value, and a first inkjet image is generated based on the remaining pixel information after etching and separating each first continuous graphic.
[0067] Delete all pixel information contained in the first printed image from the current printed image, and after deleting the pixel information, generate the second printed image based on the remaining pixel information in the current printed image.
[0068] Optionally, in the embodiments described in this invention, the first continuous graphic can represent a continuous graphic obtained from the inkjet image, and the second continuous graphic can represent a continuous graphic in the first inkjet image after dot sampling processing. The terms "first" and "second" are used here only to distinguish the continuous graphics extracted from each image. A continuous graphic can be understood as one in which the outermost edge pixels can form a closed shape.
[0069] S250: Obtain pixel information from the current printed image, the first printed image, and the second printed image, respectively.
[0070] The pixel information in the image may include, but is not limited to, pixel location information, coordinate information, etc.
[0071] S260. Based on the pixel information in the current printed image, the first printed image, and the second printed image, determine whether the first printed image and the second printed image include all the pixel information in the current printed image; if yes, execute S270; if no, execute S280.
[0072] Understandably, this step is to determine whether the corrosion separation process is successful. If the first and second printed images include all the pixel information in the current printed image, it means that no information was lost during the corrosion separation process.
[0073] S270. When it is determined that the first and second printed images include all pixel information in the current printed image, perform point sampling processing on the first and second printed images according to the preset point sampling rules; execute S290.
[0074] The process involves sampling points from both the first and second printed images according to preset sampling rules, including:
[0075] According to the preset sampling rules, the first sampling ratio corresponding to the first printed image and the second sampling ratio corresponding to the second printed image are determined.
[0076] Based on the first sampling ratio and the second sampling ratio, sampling processing is performed on the first printed image and the second printed image respectively.
[0077] S280, Generate separation failure information and send it to the user.
[0078] S290. Obtain the first inkjet image after dot sampling processing, and identify multiple second continuous patterns in the first inkjet image after dot sampling processing.
[0079] S2100: Obtain the pixel information of each second continuous graphic, and determine whether there is a risk area of exposed bottom in each second continuous graphic based on the pixel information of each second continuous graphic; if yes, execute S2110; if no, execute S2120.
[0080] Understandably, printing requirements for white ink block graphics may include prohibiting the exposure of the background. Therefore, in the first printed image after dot sampling, the risk of background exposure can be determined by analyzing the pixel distribution information, thereby avoiding the occurrence of non-compliant printed images.
[0081] S2110. Fill the exposed area with pixels according to the preset fill pixel value, and at the same time generate an exposed risk warning and send it to the user.
[0082] S2120. When it is determined that there is no exposed risk area in the second continuous pattern, the first inkjet image and the second inkjet image after sampling are merged to obtain a merged inkjet image; execute S2130.
[0083] S2130. Compare the merged inkjet image with the current inkjet image to determine if there is any missing information in the merged inkjet image; if yes, proceed to S2140; if no, proceed to S2150.
[0084] Understandably, before printing merged images, the merged images can be checked to avoid errors during the merging process, which could result in the printing of incorrect images.
[0085] S2140, Generate a missing information prompt and send it to the user.
[0086] S2150. When it is determined that there is no missing information in the merged inkjet image, the merged inkjet image is loaded into the inkjet process for inkjet processing.
[0087] The technical solution of this invention, by adding a target transition threshold to the target pixel value to determine the target corrosion radius, can avoid the situation where the overlapping lines in the character graphic cannot be accurately corroded and separated. By detecting the pixel information of the first and second printed images, detecting the risk of exposure after point sampling, and detecting the integrity of the merged printed images, the problem of poor printing effect caused by image processing errors can be avoided, thereby reducing resource waste and printing costs to a certain extent.
[0088] Example 3
[0089] Figure 4 This is a schematic diagram of an image printing device provided in Embodiment 3 of the present invention. Figure 4 As shown, the device includes: a target corrosion radius value determination module 310, an image corrosion separation module 320, a spot sampling processing module 330, and an image printing module 340.
[0090] The target corrosion radius value determination module 310 is used to analyze the current inkjet image and determine the target corrosion radius value that matches the current inkjet image based on the analysis results.
[0091] The image corrosion separation module 320 is used to perform corrosion separation on the current inkjet image according to the target corrosion radius value to obtain a first inkjet image and a second inkjet image; the first inkjet image and the second inkjet image are complementary corrosion images.
[0092] The sampling processing module 330 is used to perform sampling processing on the first inkjet image and the second inkjet image according to the preset sampling rules.
[0093] The image printing module 340 is used to merge the first printed image and the second printed image after dot sampling to obtain a merged printed image, and load the merged printed image into the printing process for printing.
[0094] The technical solution of this invention, by etching and separating the current inkjet image, performing dot sampling on each image after etching and separating, and merging the dot-sampling images before printing, can accurately separate white ink block graphics and small character graphics in the inkjet image, solving the problem of inaccurate separation of small character graphics. It can control the amount of ink sprayed on each graphic in the inkjet image, especially the amount of ink sprayed on smaller characters, avoiding ink overflow at the smaller characters after printing, thereby ensuring that the smaller characters in the printed image can be clearly displayed, effectively improving the clarity of the printed image.
[0095] Based on the above embodiments, the target corrosion radius value determination module 310 can be specifically used for:
[0096] Identify multiple character graphics in the current printed image and obtain the pixel information corresponding to each character graphic;
[0097] Based on the pixel information corresponding to each character graphic, the smallest character is selected in the current printed image, and the target pixel value matching the smallest character is obtained;
[0098] Determine the target transition threshold that matches the target pixel value, and determine the target corrosion radius that matches the current printed image based on the target pixel value and the target transition threshold.
[0099] Based on the above embodiments, the first printed image includes the pixel information remaining after the current printed image is etched, and the second printed image includes the pixel information that has been etched away in the current printed image.
[0100] Based on the above embodiments, the image erosion separation module 320 can be specifically used for:
[0101] In the current printed image, identify multiple first continuous patterns and identify the inner and outer edges of each first continuous pattern;
[0102] Each first continuous graphic is etched and separated from its inner and outer edges according to the target etching radius value, and a first inkjet image is generated based on the remaining pixel information after etching and separating each first continuous graphic.
[0103] Delete all pixel information contained in the first printed image from the current printed image, and after deleting the pixel information, generate the second printed image based on the remaining pixel information in the current printed image.
[0104] Based on the above embodiments, the sampling processing module 330 can be specifically used for:
[0105] According to the preset sampling rules, the first sampling ratio corresponding to the first printed image and the second sampling ratio corresponding to the second printed image are determined.
[0106] Based on the first sampling ratio and the second sampling ratio, sampling processing is performed on the first printed image and the second printed image respectively.
[0107] Based on the above embodiments, a background exposure risk detection module may also be included, which, after performing spot sampling processing on the first and second printed images according to preset spot sampling rules, is used for:
[0108] Acquire a first inkjet image after dot sampling processing, and identify multiple second continuous patterns in the first inkjet image after dot sampling processing.
[0109] Obtain the pixel information of each second consecutive graphic, and determine whether there is a risk area of exposed bottom in each second consecutive graphic based on the pixel information of each second consecutive graphic.
[0110] If there is a potential area of exposed background in the second continuous graphic, the potential area of exposed background will be filled with pixels according to the preset fill pixel value, and a potential exposure warning will be generated and sent to the user at the same time.
[0111] Based on the above embodiments, the image printing module 340 can be specifically used for:
[0112] When it is determined that there is no exposed risk area in the second continuous pattern, the first inkjet image and the second inkjet image after spot sampling are merged to obtain a merged inkjet image.
[0113] Based on the above embodiments, a separation detection module may also be included, which, after performing corrosion separation on the current printed image according to the target corrosion radius value to obtain a first printed image and a second printed image, is used for:
[0114] Obtain pixel information from the current printed image, the first printed image, and the second printed image respectively;
[0115] Based on the pixel information in the current printed image, the first printed image, and the second printed image, determine whether the first printed image and the second printed image include all the pixel information in the current printed image.
[0116] If not included, a separation failure message is generated and sent to the user.
[0117] Based on the above embodiments, the sampling processing module 330 can also be used for:
[0118] When it is determined that the first and second printed images include all pixel information in the current printed image, point sampling processing is performed on the first and second printed images according to the preset point sampling rules.
[0119] Based on the above embodiments, the image printing module 340 may further include a merging detection unit, which, after merging the first printed image and the second printed image after dot sampling processing to obtain a merged printed image, is specifically used for:
[0120] The merged print image is compared with the current print image to determine whether there is any missing information in the merged print image.
[0121] If the information is missing, a missing information message will be generated and sent to the user.
[0122] Based on the above embodiments, the image printing module 340 can also be specifically used for:
[0123] If it is determined that there is no missing information in the merged inkjet image, the merged inkjet image is loaded into the inkjet process for inkjet printing.
[0124] The image printing apparatus provided in the embodiments of the present invention can execute the image printing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.
[0125] Example 4
[0126] Figure 5 A schematic diagram of an electronic device 10 that can be used to implement embodiments 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 (e.g., 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.
[0127] like Figure 5 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.
[0128] 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.
[0129] Processor 11 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, central processing unit (CPU), graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the image printing method as described in the embodiments of the present invention. That is:
[0130] The current inkjet image is analyzed, and the target corrosion radius value that matches the current inkjet image is determined based on the analysis results;
[0131] Based on the target corrosion radius value, the current printed image is subjected to corrosion separation to obtain a first printed image and a second printed image; the first printed image and the second printed image are corrosion complementary images to each other;
[0132] According to the preset sampling rules, the first and second printed images are sampled.
[0133] The first and second printed images, after point sampling, are merged to obtain a merged printed image, which is then loaded into the printing process for printing.
[0134] In some embodiments, the image printing method may 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 may be loaded and / or mounted 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 image printing method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the image printing method by any other suitable means (e.g., by means of firmware).
[0135] 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.
[0136] 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.
[0137] 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.
[0138] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); 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).
[0139] 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.
[0140] 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.
[0141] 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.
[0142] 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. An image printing method, characterized in that, include: The current inkjet image is analyzed, and the target corrosion radius value that matches the current inkjet image is determined based on the analysis results; Based on the target corrosion radius value, the current printed image is subjected to corrosion separation to obtain a first printed image and a second printed image; the first printed image and the second printed image are corrosion complementary images to each other; According to the preset sampling rules, the first and second printed images are sampled. The first and second printed images after sampling are merged to obtain a merged printed image, and the merged printed image is loaded into the printing process for printing. This includes analyzing the current printed image and determining the target corrosion radius value that matches the current printed image based on the analysis results, including: Identify multiple character graphics in the current printed image and obtain the pixel information corresponding to each character graphic; Based on the pixel information corresponding to each character graphic, the smallest character is selected in the current printed image, and the target pixel value matching the smallest character is obtained; where the target pixel value of the smallest character is the pixel value of the smallest character line width; Determine the target transition threshold that matches the target pixel value, and determine the target corrosion radius that matches the current printed image based on the target pixel value and the target transition threshold.
2. The method according to claim 1, characterized in that, The first printed image includes the pixel information remaining after the current printed image is etched, and the second printed image includes the pixel information that has been etched away in the current printed image. Based on the target corrosion radius value, corrosion separation is performed on the current printed image to obtain a first printed image and a second printed image, including: In the current printed image, identify multiple first continuous patterns and identify the inner and outer edges of each first continuous pattern; Each first continuous graphic is etched and separated from its inner and outer edges according to the target etching radius value, and a first inkjet image is generated based on the remaining pixel information after etching and separating each first continuous graphic. Delete all pixel information contained in the first printed image from the current printed image, and after deleting the pixel information, generate the second printed image based on the remaining pixel information in the current printed image.
3. The method according to claim 2, characterized in that, According to preset sampling rules, sampling processing is performed on the first and second printed images, including: According to the preset sampling rules, the first sampling ratio corresponding to the first printed image and the second sampling ratio corresponding to the second printed image are determined. Based on the first sampling ratio and the second sampling ratio, sampling processing is performed on the first printed image and the second printed image respectively.
4. The method according to claim 3, characterized in that, After performing point sampling processing on the first and second printed images according to preset point sampling rules, the process also includes: Acquire a first inkjet image after dot sampling processing, and identify multiple second continuous patterns in the first inkjet image after dot sampling processing. Obtain the pixel information of each second consecutive graphic, and determine whether there is a risk area of exposed bottom in each second consecutive graphic based on the pixel information of each second consecutive graphic. If there is a risk area of exposed background in the second continuous graphic, the risk area of exposed background will be filled with pixels according to the preset fill pixel value, and an exposed background risk warning will be generated and sent to the user at the same time. The first and second printed images, after dot sampling, are merged, including: When it is determined that there is no exposed risk area in the second continuous pattern, the first inkjet image and the second inkjet image after spot sampling are merged to obtain a merged inkjet image.
5. The method according to claim 1, characterized in that, After performing corrosion separation on the current printed image based on the target corrosion radius value to obtain the first printed image and the second printed image, the process also includes: Obtain pixel information from the current printed image, the first printed image, and the second printed image respectively; Based on the pixel information in the current printed image, the first printed image, and the second printed image, determine whether the first printed image and the second printed image include all the pixel information in the current printed image. If not included, a separation failure message is generated and sent to the user; According to preset sampling rules, sampling processing is performed on the first and second printed images, including: When it is determined that the first and second printed images include all pixel information in the current printed image, point sampling processing is performed on the first and second printed images according to the preset point sampling rules.
6. The method according to claim 1, characterized in that, After merging the first and second printed images (after dot sampling) to obtain the merged printed image, the process also includes: The merged print image is compared with the current print image to determine whether there is any missing information in the merged print image. If the information exists, a missing information prompt will be generated and sent to the user; Loading the merged inkjet images into the inkjet process for inkjet printing includes: If it is determined that there is no missing information in the merged inkjet image, the merged inkjet image is loaded into the inkjet process for inkjet printing.
7. An image printing apparatus, characterized in that, include: The target corrosion radius value determination module is used to analyze the current inkjet image and determine the target corrosion radius value that matches the current inkjet image based on the analysis results. The image corrosion separation module is used to perform corrosion separation on the current inkjet image according to the target corrosion radius value to obtain a first inkjet image and a second inkjet image; the first inkjet image and the second inkjet image are corrosion complementary images to each other; The dot sampling processing module is used to perform dot sampling processing on the first inkjet image and the second inkjet image according to the preset dot sampling rules. The image printing module is used to merge the first and second printed images after dot sampling to obtain a merged printed image, and then load the merged printed image into the printing process for printing. The target corrosion radius determination module is specifically used for: Identify multiple character graphics in the current printed image and obtain the pixel information corresponding to each character graphic; Based on the pixel information corresponding to each character graphic, the smallest character is selected in the current printed image, and the target pixel value matching the smallest character is obtained; where the target pixel value of the smallest character is the pixel value of the smallest character line width; Determine the target transition threshold that matches the target pixel value, and determine the target corrosion radius that matches the current printed image based on the target pixel value and the target transition threshold.
8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the image printing method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the image printing method according to any one of claims 1-6.
Citation Information
Patent Citations
Plane workpiece spray trajectory generating method and system and computer storage medium
CN108921808A
A method and apparatus for character detection
CN109389116A