Printing processing method and device based on image separation, equipment and storage medium
By separating and processing images to be printed, the problem of image printing quality degradation caused by large color blocks and thin line segments is solved, and higher image printing quality is achieved.
Patent Information
- Application Number
- CN202311722764.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-14
- Publication Date
- 2025-06-17
AI Technical Summary
In inkjet printing, when large color blocks or thin line segments are included in the image to be printed, the conventional process will cause the image printing to be blurred, not sharp enough, or the thickness of the thin line segment printing is different, affecting the image quality.
By performing image processing on images to be printed, target images such as large color blocks and thin line segments are separated, and corresponding image processing or printing are performed on these images, and combined into new images to be printed for printing.
Improve the overall image printing quality and avoid the jagged problems caused by large color blocks and thin line segments.
Smart Images

Figure CN120162014A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of inkjet printing, and particularly to a printing processing method, device, equipment and storage medium based on image separation. Background Art
[0002] In inkjet printing applications, after receiving an image to be printed, the host computer of an inkjet printer first rasterizes the image to be printed into an image format recognizable by the printer's lower computer and then transmits it to the lower computer for printing. When the image to be printed includes large color blocks (hereinafter referred to as large color blocks) or line segments with small width and small length (hereinafter referred to as thin line segments), if the image is printed according to the conventional process, some problems will occur: for example, when printing large color blocks, the image will be blurred and not sharp enough due to excessive inkjet, while when printing thin line segments, the printed line segments will have uneven thickness and not be clear enough due to image anti-aliasing processing, seriously affecting the image printing quality. Summary of the Invention
[0003] In view of this, embodiments of the present invention provide a printing processing method, device, equipment and storage medium based on image separation to solve the problem that the image quality deteriorates due to blurred printing when the image to be printed has large color blocks or thin line segments and other images in the prior art.
[0004] In a first aspect, embodiments of the present invention provide a printing processing method based on image separation, the method comprising:
[0005] Obtain a first image to be printed;
[0006] Perform image processing on the first image to be printed to separate a first target image and a second target image;
[0007] Perform image processing on the first target image and / or the second target image respectively and then merge them to obtain a second image to be printed, control the printer to print the second image to be printed, or control the printer to print the first target image and the second target image successively.
[0008] Preferably, the first target image is a color block image with an area greater than or equal to a preset area threshold.
[0009] Preferably, the first target image is a line segment image with a length and a width respectively less than or equal to a preset length threshold and a preset width threshold.
[0010] Preferably, the performing image processing on the first image to be printed to separate a first target image and a second target image includes:
[0011] Perform binarization processing on the first image to be printed to obtain a binarized image;
[0012] Copy the first image to be printed to obtain a first copied image;
[0013] Perform connected component analysis on the first copied image to obtain all connected components therein;
[0014] Perform distance transformation on the binary image to obtain a distance transformation result;
[0015] Traverse all connected components, and remove the connected components that meet the first preset condition from the first copied image according to the distance transformation result to obtain the first target image;
[0016] Remove the first target image from the first image to be printed to obtain the second target image.
[0017] Preferably, the first preset condition is that the distance transformation result corresponding to the connected component is less than or equal to a preset distance threshold, where the preset distance threshold is determined according to the preset area threshold.
[0018] Preferably, the image processing of the first image to be printed to separate the first target image and the second target image includes:
[0019] Perform binarization processing on the first image to be printed to obtain a binary image;
[0020] Perform morphological top-hat processing on the binary image to obtain a preset thin image;
[0021] Perform connected component analysis on the preset thin image to obtain a connected component image;
[0022] After performing skeleton processing and then line search processing on the connected component image, filter out the line segment images that meet the second preset condition to obtain the first target image;
[0023] Remove the first target image from the first image to be printed to obtain the second target image.
[0024] Preferably, the second preset condition is that the length of the line segment is greater than or equal to the preset length threshold and / or the width is greater than or equal to the preset width threshold.
[0025] In a second aspect, an embodiment of the present invention provides a printing processing device based on image separation, and the device includes:
[0026] An image acquisition module, configured to acquire a first image to be printed;
[0027] An image separation module, configured to perform image processing on the first image to be printed to separate a first target image and a second target image;
[0028] An image printing module, configured to perform image processing on the first target image and / or the second target image respectively, then merge them to obtain a second image to be printed, control a printer to print the second image to be printed, or control the printer to print the first target image and the second target image successively.
[0029] In a third aspect, an embodiment of the present invention provides a printing processing device based on image separation, including: at least one processor, at least one memory, and computer program instructions stored in the memory, which implement the method of the first aspect in the above-mentioned embodiment when executed by the processor.
[0030] In a fourth aspect, an embodiment of the present invention provides a storage medium, on which computer program instructions are stored, which implement the method of the first aspect in the above-mentioned embodiment when executed by the processor.
[0031] In summary, the beneficial effects of the present invention are as follows:
[0032] The printing processing method, device, equipment and storage medium based on image separation provided by the embodiments of the present invention obtain a first image to be printed; perform image processing on the first image to be printed to separate a first target image and a second target image; perform image processing on the first target image and / or the second target image respectively, then merge them to obtain a second image to be printed, control a printer to print the second image to be printed, or control the printer to print the first target image and the second target image successively. By performing image processing on the image to be printed before printing, the method of the present invention separates a first target image such as a large color block or a thin line segment image that is likely to cause a decline in the overall printing quality, and then performs corresponding image processing or printing processing on these images, thereby improving the overall image printing quality. Description of the Drawings
[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required to be used in the embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to these drawings, and all of them are within the protection scope of the present invention.
[0034] Figure 1 It is a flowchart of the printing processing method based on image separation according to an embodiment of the present invention.
[0035] Figure 2 It is a flowchart of the image separation according to an embodiment of the present invention.
[0036] Figure 3 It is a flowchart of the image separation according to an embodiment of the present invention.
[0037] Figure 4 It is a schematic structural diagram of a printing processing device based on image separation according to an embodiment of the present invention.
[0038] Figure 5 It is a schematic structural diagram of a printing processing device based on image separation according to an embodiment of the present invention. Detailed implementation manners
[0039] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be implemented without some of these specific details. The following description of the embodiments is only provided to provide a better understanding of the present invention by showing examples of the present invention.
[0040] It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, elements defined by the statement "including..." do not exclude the existence of additional identical elements in the process, method, article or device including the said elements.
[0041] Embodiment 1
[0042] An embodiment of the present invention provides a printing processing method based on image separation. This method is applicable to an inkjet printer. The printer can be a reciprocating scanning inkjet printer or a Onepass inkjet printer, etc. The printer includes at least one print head, and the print head includes at least one row of nozzles. The nozzles are used to eject ink dots onto a printing medium to form a printed image.
[0043] Please refer to Figure 1 , the printing processing method based on image separation specifically includes the following steps:
[0044] S1: Obtain a first image to be printed;
[0045] S2: Perform image processing on the first image to be printed to separate a first target image and a second target image;
[0046] S3: After performing image processing on the first target image and / or the second target image respectively and then merging them to obtain a second image to be printed, control the printer to print the second image to be printed, or control the printer to print the first target image and the second target image successively.
[0047] Specifically, the first image to be printed is the image that needs to be printed in the printing task. To improve the image printing quality, in the embodiments of the present invention, before inputting the first image to be printed into the raster image processing module (such as RIP software) of the printer host computer, image processing is first performed on the first image to be printed, and the first target image and the second target image are separated from the first image to be printed. In one embodiment, the first target image is a large color block image, where the large color block image refers to a color block image with an area greater than or equal to a preset area threshold. The preset area threshold can be determined according to the actual situation. Exemplarily, in actual printing, it is found that when the area of the color block in the image to be printed is greater than or equal to A, problems such as image blurring or unsatisfactory printing effects are likely to occur. At this time, the preset area threshold can be set to A. In another embodiment, the first target image is a thin line segment image, where the thin line segment image is a line segment image with a length and width respectively greater than or equal to a preset length threshold and a preset width threshold. Similarly, the preset length threshold and the preset width threshold can be determined according to the actual situation and will not be limited here again.
[0048] The second target image is the image of the remaining part after separating the first target image from the first image to be printed. When the first target images are different, the subsequent image processing and printing processing methods are also different after separating the first target image and the second target image. In one embodiment, when the first target image is a large solid-color block image, first perform image processing on the first target image, such as adjusting the color value, so that the subsequent printer can reasonably reduce the ink ejection amount when inkjet printing the large solid-color block image, thereby avoiding image blurring caused by excessive ink amount. After performing image processing on the first target image, merge the first target image and the second target image to obtain an adjusted overall image, which is the second image to be printed. Finally, send the second image to be printed to the printer for printing. In other embodiments, in addition to adjusting the first target image, the second target image can also be adjusted simultaneously, or one of them can be adjusted to improve the printing effect of the overall image. In another embodiment, when the first target image is a thin line segment image, for the printing effect of the thin line segment image, the thin line segment image can be printed first. In a printing process, raster image processing (hereinafter referred to as RIP processing) is performed on the overall image to convert the bitmap image into an image composed of multiple ink dot data. If the overall image contains thin line segments, when actually printed, there may be some jaggedness. To reduce these situations, image anti-aliasing processing is performed, but this may cause the thin line segments to become thicker or thinner. To avoid uneven thickness when printing the thin line segment image, in the embodiment of the present invention, first perform RIP processing on the thin line segment image alone and then send it to the printer for printing. Then, print the remaining image part (the second target image) after separating the thin line segment image (the first target image), so as to obtain the overall printed image.
[0049] In one embodiment, as Figure 2 shown, when the first target image is a large solid-color block image, the image processing of the first image to be printed to separate the first target image and the second target image includes:
[0050] S21: Perform binarization processing on the first image to be printed to obtain a binarized image;
[0051] S22: Copy the first image to be printed to obtain a first copied image;
[0052] S23: Perform connected component analysis on the first copied image to obtain all connected components therein;
[0053] S24: Perform distance transformation on the binarized image to obtain a distance transformation result;
[0054] S25: Traverse all connected components, and remove the connected components that meet the first preset condition from the first copied image according to the distance transformation result to obtain the first target image;
[0055] S26: Remove the first target image from the first image to be printed to obtain the second target image.
[0056] Preferably, the first preset condition is that the distance transformation result corresponding to the connected component is less than a preset distance threshold, where the preset distance threshold is determined according to the preset area threshold.
[0057] Specifically, the image processing of the first image to be printed is as follows: After loading (inputting) the first image to be printed in an image processing software, on the one hand, perform binarization processing on the first image to be printed to obtain a binarized image of the first image to be printed, and perform distance transformation processing on the binarized image to obtain the distance transformation result of the binarized image. On the other hand, copy the first image to be printed to obtain a copy, which is the first copied image. Perform connected component analysis on the first copied image to obtain all connected components in the image, and detect the distance transformation results corresponding to these connected components one by one. If the distance transformation corresponding to a certain connected component is less than the preset distance threshold, it is considered that the image corresponding to the connected component is not a large color block image. Here, the preset distance threshold needs to be determined according to the preset area threshold. After determining the large color block image, remove it from the first copied image. Finally, the remaining connected components are all large color block images. After obtaining the large color block image, subtract the first copied image that only retains the large color block image from the first image to be printed to obtain the remaining image other than the large color block image in the first image to be printed, which is the second target image. The above image separation method has a fast processing speed, and the separated large color block image is complete, which helps to improve the overall work efficiency and the processing and printing quality of the large color block image, thereby improving the overall image printing quality.
[0058] In one embodiment, as Figure 3 shown, when the first target image is a thin line segment image, the image processing of the first image to be printed to separate the first target image and the second target image includes:
[0059] S31: Perform binarization processing on the first image to be printed to obtain a binarized image;
[0060] S32: Perform morphological top-hat processing on the binarized image to obtain a preset thin image;
[0061] S33: Perform connected component analysis on the preset thin image to obtain a connected component image;
[0062] S34: After performing skeleton processing on the connected component image and then straight line search processing, filter out the line segment images that meet the second preset condition to obtain the first target image;
[0063] S35: Remove the first target image from the first image to be printed to obtain the second target image.
[0064] Preferably, the second preset condition is that the width and height of the straight line are respectively greater than the preset length threshold and the preset width threshold.
[0065] Specifically, the image processing process for the first image to be printed is as follows: After loading (inputting) the first image to be printed in an image processing software, perform binarization processing on the first image to be printed to obtain its corresponding binarized image, and then perform top-hat processing in morphological processing on the binarized image to obtain an image that retains thin line segment elements, which is the preset thin image. After performing connected component analysis on the preset thin image, a connected component image is obtained. After performing skeleton processing and straight line search processing on the connected component image, multiple line segment images can be obtained. Exclude the line segments with a length greater than the preset length threshold and / or a width greater than or equal to the preset width threshold from these line segment images to obtain line segments that only meet the conditions of a length less than the preset length threshold and a width less than the preset width threshold, which are the thin line segment images. Similarly, the remaining image part obtained by subtracting these thin line segment images (the first target image) from the first image to be printed is the second target image. The above image separation method has a fast processing speed, and the separated thin line segment images are complete, which helps to improve the overall work efficiency and the printing quality of the thin line segments, thereby improving the overall image printing quality.
[0066] After separating the first target image and the second target image from the first image to be printed, different image processing or printing processing can be performed subsequently according to the type of the first target image. The image processing and printing processing for the first target image and the second target image are as described above and will not be elaborated again.
[0067] It should be noted that the method for separating the first target image and the second target image from the first image in the embodiments of the present invention can also be applied to other fields or application scenarios, rather than being limited to the printing field only.
[0068] In summary, the printing processing method based on image separation provided by the embodiments of the present invention includes: obtaining a first image to be printed; performing image processing on the first image to be printed to separate a first target image and a second target image; performing image processing on the first target image and / or the second target image respectively and then merging them to obtain a second image to be printed, controlling a printer to print the second image to be printed, or controlling the printer to print the first target image and the second target image successively. By performing image processing on the image to be printed before printing, the method of the present invention separates a first target image such as a large color block or a thin line segment image that is likely to cause a decline in the overall printing quality, and then performs corresponding image processing or printing processing on these images, thereby improving the overall image printing quality.
[0069] Embodiment 2
[0070] Please refer to Figure 4 , the embodiments of the present invention provide a printing processing device 200 based on image separation. The device 200 includes:
[0071] An image acquisition module 201, configured to acquire a first image to be printed;
[0072] An image separation module 202, configured to perform image processing on the first image to be printed to separate a first target image and a second target image;
[0073] An image printing module 203, configured to perform image processing on the first target image and / or the second target image respectively and then merge them to obtain a second image to be printed, control a printer to print the second image to be printed, or control the printer to print the first target image and the second target image successively.
[0074] Preferably, in the image separation module 202, the first target image is a color block image with an area greater than or equal to a preset area threshold.
[0075] Preferably, in the image separation module 202, the first target image is a color block image with an area greater than or equal to a preset area threshold, and the first target image is a line segment image with a length and a width respectively less than or equal to a preset length threshold and a preset width threshold.
[0076] Preferably, the image separation module 202 includes:
[0077] A first binarization unit, configured to perform binarization processing on the first image to be printed to obtain a binarized image;
[0078] A copying unit, configured to copy the first image to be printed to obtain a first copied image;
[0079] A connected component acquisition unit, configured to perform connected component analysis on the first copied image to obtain all connected components therein;
[0080] A distance transformation unit, configured to perform distance transformation on the binary image to obtain a distance transformation result;
[0081] A traversal unit, configured to traverse all connected components, and remove the connected components that meet the first preset condition from the first copied image according to the distance transformation result to obtain the first target image;
[0082] A first separation unit, configured to remove the first target image from the first image to be printed to obtain the second target image.
[0083] Preferably, the image separation module 202 includes:
[0084] A second binarization unit, configured to perform binarization processing on the first image to be printed to obtain a binary image;
[0085] A morphological processing unit, configured to perform morphological top-hat processing on the binary image to obtain a preset thin image;
[0086] An analysis unit, configured to perform connected component analysis on the preset thin image to obtain a connected component image;
[0087] A filtering unit, configured to perform skeleton processing and then straight line search processing on the connected component image, and filter out the line segment images that meet the second preset condition to obtain the first target image;
[0088] A second separation unit, configured to remove the first target image from the first image to be printed to obtain the second target image.
[0089] In summary, the printing processing device based on image separation provided by the embodiments of the present invention obtains a first image to be printed; performs image processing on the first image to be printed to separate a first target image and a second target image; performs image processing on the first target image and / or the second target image respectively and then merges them to obtain a second image to be printed, controls a printer to print the second image to be printed, or controls the printer to print the first target image and the second target image successively. The method of the present invention improves the overall image printing quality by performing image processing on the image to be printed before printing, separating the first target image such as large color blocks or thin line segment images that are likely to cause a decline in the overall printing quality, and then performing corresponding image processing or printing processing on these images.
[0090] Embodiment III
[0091] In addition, the print processing method based on image separation according to an embodiment of the present invention can be implemented by a print processing device based on image separation. Figure 5 FIG. shows a schematic hardware structure diagram of a print processing device based on image separation according to an embodiment of the present invention.
[0092] The print processing device based on image separation may include a processor 301 and a memory 302 storing computer program instructions.
[0093] Specifically, the above-mentioned processor 301 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.
[0094] The memory 302 may include a mass memory for data or instructions. By way of example and not limitation, the memory 302 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disc, a magneto-optical disc, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In a suitable case, the memory 302 may include a removable or non-removable (or fixed) medium. In a suitable case, the memory 302 may be internal or external to the data processing device. In a specific embodiment, the memory 302 is a non-volatile solid state memory. In a specific embodiment, the memory 302 includes a read-only memory (ROM). In a suitable case, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.
[0095] The processor 301 reads and executes the computer program instructions stored in the memory 302 to implement any one of the print processing methods based on image separation in the above embodiments.
[0096] In one example, the print processing device based on image separation may further include a communication interface 303 and a bus 310. Among them, as Figure 5 shown, the processor 301, the memory 302, and the communication interface 303 are connected through the bus 310 and complete communication with each other.
[0097] The communication interface 303 is mainly used to implement communication between each module, device, unit, and / or device in the embodiments of the present invention.
[0098] The bus 310 includes hardware, software, or both, and couples the components of the print processing device based on image separation together with each other. By way of example and not limitation, the bus 310 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, the bus 310 may include one or more buses. Although embodiments of the present invention describe and illustrate specific buses, the present invention contemplates any suitable bus or interconnect.
[0099] Embodiment Four
[0100] In addition, in combination with the print processing method based on image separation in the above embodiments, embodiments of the present invention can be implemented by providing a computer-readable storage medium. Computer program instructions are stored on the computer-readable storage medium; when the computer program instructions are executed by the processor 301, any one of the print processing methods based on image separation in the above embodiments is implemented.
[0101] In summary, the print processing method, apparatus, device, and storage medium based on image separation provided by embodiments of the present invention obtain a first image to be printed; perform image processing on the first image to be printed to separate a first target image and a second target image; perform image processing on the first target image and / or the second target image respectively and then merge them to obtain a second image to be printed, control the printer to print the second image to be printed, or control the printer to print the first target image and the second target image successively. The method of the present invention improves the overall image printing quality by performing image processing on the image to be printed before printing, separating the first target images such as large color blocks or thin line segment images that are likely to cause a decline in the overall printing quality, and then performing corresponding image processing or print processing on these images.
[0102] It should be clear that the present invention is not limited to the specific configurations and processes described above and illustrated in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and illustrated as examples. However, the method process of the present invention is not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications, and additions, or change the order between steps after understanding the spirit of the present invention.
[0103] The functional blocks shown in the above-described structural block diagrams can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a functional card, and so on. When implemented in software, the elements of the present invention are programs or code segments for performing the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted via a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memories, erasable ROMs (EROMs), floppy disks, CD-ROMs, optical discs, hard disks, fiber optic media, radio frequency (RF) links, and so on. The code segment can be downloaded via a computer network such as the Internet, an intranet, and so on.
[0104] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be executed in the order mentioned in the embodiments, can be different from the order in the embodiments, or several steps can be executed simultaneously.
[0105] As described above, the above is only the specific implementation manner of the present invention. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described systems, modules, and units can refer to the corresponding processes in the foregoing method embodiments and will not be repeated here. It should be understood that the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of the present invention.
Claims
1. A printing processing method based on image separation, characterized in that, The method includes: Obtaining a first image to be printed; Performing image processing on the first image to be printed to separate a first target image and a second target image; Performing image processing on the first target image and / or the second target image respectively and then merging them to obtain a second image to be printed, controlling a printer to print the second image to be printed, or controlling the printer to print the first target image and the second target image successively.
2. The printing processing method based on image separation according to claim 1, characterized in that, The first target image is a color block image with an area greater than or equal to a preset area threshold.
3. The printing processing method based on image separation according to claim 1, characterized in that, The first target image is a line segment image with a length and a width less than or equal to a preset length threshold and a preset width threshold respectively.
4. The printing processing method based on image separation according to claim 2, characterized in that, The performing image processing on the first image to be printed to separate a first target image and a second target image includes: Performing binarization processing on the first image to be printed to obtain a binarized image; Copying the first image to be printed to obtain a first copied image; Performing connected component analysis on the first copied image to obtain all connected components therein; Performing distance transformation on the binarized image to obtain a distance transformation result; Traversing all connected components, and removing the connected components that meet the first preset condition from the first copied image according to the distance transformation result to obtain the first target image; Removing the first target image from the first image to be printed to obtain the second target image.
5. The printing processing method based on image separation according to claim 4, characterized in that, The first preset condition is that the distance transformation result corresponding to the connected component is less than or equal to a preset distance threshold, where the preset distance threshold is determined according to the preset area threshold.
6. The printing processing method based on image separation according to claim 3, characterized in that, The performing image processing on the first image to be printed to separate a first target image and a second target image includes: Performing binarization processing on the first image to be printed to obtain a binarized image; Performing morphological top-hat processing on the binarized image to obtain a preset thin image; Performing connected component analysis on the preset thin image to obtain a connected component image; Performing skeleton processing on the connected component image and then performing straight line search processing, and filtering out the line segment images that meet the second preset condition to obtain the first target image; Removing the first target image from the first image to be printed to obtain the second target image.
7. The printing processing method based on image separation according to claim 6, characterized in that, The second preset condition is that the length of the line segment is greater than or equal to the preset length threshold and / or the width is greater than or equal to the preset width threshold.
8. A printing processing device based on image separation, characterized in that, The device includes: An image acquisition module, configured to obtain a first image to be printed; An image separation module, configured to perform image processing on the first image to be printed to separate a first target image and a second target image; An image printing module, configured to perform image processing on the first target image and / or the second target image respectively and then merge them to obtain a second image to be printed, controlling a printer to print the second image to be printed, or controlling the printer to print the first target image and the second target image successively.
9. A printing processing equipment based on image separation, characterized in that, Including: At least one processor, at least one memory, and computer program instructions stored in the memory, which implement the method according to any one of claims 1-7 when the computer program instructions are executed by the processor.
10. A storage medium, on which computer program instructions are stored, characterized in that, When the computer program instructions are executed by the processor, the method according to any one of claims 1-7 is implemented.