Inkjet printing methods and procedures products

By calculating the inter-class variance of the initial grayscale threshold combination and selecting the optimal target threshold combination, the problems of grayscale level loss and detail distortion caused by traditional grayscale mapping algorithms are solved, thus improving the imaging quality of inkjet printed displays.

CN123114393APending Publication Date: 2026-11-17KUNSHAN SAMON AUTOMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611322077.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-28
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

Traditional grayscale mapping algorithms result in loss of image grayscale levels and distortion of details, making it difficult to meet the imaging requirements of high-end displays, especially in areas with transitions between light and dark areas, light-toned textures, and low-contrast regions, where grayscale jumps and grayscale banding occur.

Method used

By obtaining the initial grayscale threshold combination, calculating the inter-class variance, and selecting the optimal target threshold combination, image grayscale quantization is achieved, generating an image adapted for inkjet printing, ensuring accurate mapping of grayscale levels and preservation of details.

Benefits of technology

It effectively avoids grayscale loss and detail distortion, improves the image quality of the display screen, achieves natural color transitions, complete texture details, and significantly improves image uniformity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123114393A_ABST
    Figure CN123114393A_ABST
Patent Text Reader

Abstract

This invention discloses an inkjet printing method and program product. The method includes: acquiring a pre-printed inkjet image of a display screen to be converted to grayscale and multiple preset grayscale values; for each preset grayscale value, counting the number of pixels corresponding to that preset grayscale value in the pre-printed inkjet image to obtain the total number of pixels corresponding to that preset grayscale value; determining multiple initial threshold combinations based on multiple initial grayscale thresholds; determining a target threshold combination based on the inter-class variance corresponding to the multiple initial threshold combinations; obtaining an inkjet-printed image based on multiple target grayscale thresholds in the target threshold combination; generating inkjet printing instructions based on the grayscale levels corresponding to the pixels in the inkjet-printed image to form luminescent pixel units with target grayscale levels on the display screen substrate, thereby obtaining a target inkjet-printed display screen. The technical solution provided by this invention can effectively preserve the intermediate grayscale information of the original image and restore the bright detail features of the image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image grayscale printing technology, and more particularly to inkjet printing methods and software products. Background Technology

[0002] As new display devices upgrade towards higher image quality, flexibility, and lower cost, traditional display fabrication processes such as photolithography and vapor deposition suffer from drawbacks such as cumbersome processes, high material loss, and poor adaptability, making them unsuitable for the precision mass production requirements of high-end display devices. Inkjet printing for displays, a high-precision non-contact patterning technology, has become the mainstream core technology for new display pixel fabrication due to its outstanding advantages such as high material utilization, simplified process, high-precision pixel deposition, and adaptability to flexible and large-size substrates. This technology achieves precise molding of display pixel layers by precisely controlling the jetting and curing of functional optoelectronic inks and is now widely used in the fabrication and production of various high-end display panels, making it one of the key technologies in modern precision display manufacturing.

[0003] In inkjet printing imaging systems for displays, image grayscale printing technology directly determines the screen's color gradation and image detail. Its core function is to convert standard image grayscale signals into grayscale levels recognizable by the printing device, ensuring accurate color reproduction and smooth transitions. To adapt to the hardware output capabilities of the devices, reduce algorithm computation costs, and meet the demands of high-speed mass production printing, the industry mainstream currently uses a fourth-order grayscale mapping algorithm to complete image grayscale conversion.

[0004] This traditional grayscale mapping algorithm has significant flaws, employing a mechanically uniform partitioning and forced quantization method. This conversion mechanism discards a large amount of intermediate grayscale information from the original image, resulting in severe loss of grayscale levels and distortion of details. In areas of detail such as transitions between light and dark areas, light-toned textures, and low contrast, grayscale jumps and grayscale banding are prone to occur, leading to harsh color transitions, blurred details, and poor uniformity in the printed display. This significantly reduces the screen's imaging quality and makes it difficult to meet the mass production imaging requirements of high-end new displays with high color accuracy and high detail. Summary of the Invention

[0005] This invention provides an inkjet printing method and program product to solve the problems of grayscale level loss and detail distortion in printed images.

[0006] According to one aspect of the present invention, an inkjet printing method is provided, comprising: The process involves acquiring a pre-printed inkjet image of the display screen to be converted to grayscale and multiple preset grayscale values. For each preset grayscale value, the number of pixels corresponding to the preset grayscale value in the pre-printed inkjet image of the display screen is counted to obtain the total number of pixels corresponding to the preset grayscale value.

[0007] Multiple initial grayscale thresholds are obtained, multiple initial threshold combinations are determined based on the multiple initial grayscale thresholds, and the inter-class variance corresponding to the initial threshold combinations is determined based on the multiple initial threshold combinations and the total number of pixels corresponding to the preset grayscale values.

[0008] A target threshold combination is determined based on the inter-class variance corresponding to multiple initial threshold combinations. Based on multiple target grayscale thresholds in the target threshold combination, the pixels in the inkjet pre-printing image of the display screen are mapped to multiple grayscale levels to obtain an inkjet printed image.

[0009] An inkjet printing instruction is generated based on the gray level corresponding to the pixel in the inkjet printed image. Based on the inkjet printing instruction, the inkjet printing device is controlled to eject ink droplets of the corresponding volume at the corresponding pixel position on the display substrate, so as to form a light-emitting pixel unit with the target gray level on the display substrate, thereby obtaining the target inkjet printed display screen.

[0010] According to another aspect of the present invention, an inkjet printing apparatus is provided, the apparatus comprising: The data acquisition module is used to acquire the inkjet pre-printing image of the display screen to be converted to grayscale and multiple preset grayscale values. For each preset grayscale value, the module counts the number of pixels corresponding to the preset grayscale value in the inkjet pre-printing image of the display screen to obtain the total number of pixels corresponding to the preset grayscale value.

[0011] The threshold combination module is used to obtain multiple initial grayscale thresholds, determine multiple initial threshold combinations based on the multiple initial grayscale thresholds, and determine the inter-class variance corresponding to the initial threshold combinations based on the multiple initial threshold combinations and the total number of pixels corresponding to the preset grayscale values.

[0012] The mapping module is used to determine a target threshold combination based on the inter-class variance corresponding to multiple initial threshold combinations, and to map the pixels in the inkjet pre-printing image of the display screen to multiple gray levels based on multiple target gray level thresholds in the target threshold combination, thereby obtaining an inkjet printed image.

[0013] The printing module is used to generate inkjet printing instructions based on the grayscale level corresponding to the pixel in the inkjet printed image, and control the inkjet printing device to eject ink droplets of corresponding volume at the corresponding pixel position on the display substrate based on the inkjet printing instructions, so as to form light-emitting pixel units with target grayscale levels on the display substrate, and obtain the target inkjet printed display screen.

[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: 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 inkjet printing method according to any embodiment of the present invention.

[0015] 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 inkjet printing method according to any embodiment of the present invention.

[0016] According to another aspect of the present invention, embodiments of this disclosure also provide a computer program product, including a computer program that, when executed by a processor, implements the inkjet printing method as described in any of the embodiments of this disclosure.

[0017] The technical solution of this invention solves for multiple sets of grayscale thresholds and their combinations, calculates the inter-class variance corresponding to each combination, selects the optimal target threshold combination, completes image grayscale quantization based on this combination, and then outputs an image adapted for inkjet printing. This technical solution can avoid the loss of grayscale levels and image detail distortion caused by fixed threshold division methods, retain the intermediate grayscale information of the original image, restore the image's light and dark transition effects, light-toned textures, and low-contrast detail features, suppress defects such as grayscale jumps and grayscale breaks, and make the color transition of the inkjet-printed display image smooth and natural, the texture details complete and discernible, and the imaging uniformity significantly improved, ultimately improving the overall imaging quality of the display screen.

[0018] 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

[0019] 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.

[0020] Figure 1 This is a flowchart of an inkjet printing method provided according to Embodiment 1 of the present invention; Figure 2 This is a flowchart of an inkjet printing method according to Embodiment 2 of the present invention; Figure 3This is a flowchart of an inkjet printing method provided according to Embodiment 3 of the present invention; Figure 4 This is a schematic diagram of the structure of an inkjet printing device according to Embodiment 5 of the present invention; Figure 5 This is a schematic diagram of the structure of an electronic device that implements the inkjet printing method of the present invention. Detailed Implementation

[0021] 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.

[0022] 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.

[0023] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0024] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0025] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0026] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.

[0027] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0028] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.

[0029] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.

[0030] Example 1 Figure 1 This is a flowchart of an inkjet printing method according to Embodiment 1 of the present invention. This embodiment is applicable to inkjet printing of displays. The method can be executed by an inkjet printing device, which can be implemented in hardware or software. Optionally, it can be implemented by an electronic device, such as a mobile terminal, a PC, or a server.

[0031] like Figure 1 As shown, the method may specifically include: S101. Obtain the inkjet pre-printing image of the display screen to be converted to grayscale and multiple preset grayscale values. For each preset grayscale value, count the number of pixels corresponding to the preset grayscale value in the inkjet pre-printing image of the display screen to obtain the total number of pixels corresponding to the preset grayscale value.

[0032] Grayscale conversion can be understood as the process in image processing of transforming the original grayscale value range of an image into another grayscale value range according to a specific mapping rule. Display inkjet printing can be understood as using an inkjet printer as a carrier to eject luminescent ink droplets controlled by image data, depositing them into the pixel cavities of a substrate to achieve pixel layer formation. Unlike traditional paper-based inkjet printing, display inkjet printing targets the physical pixels of the display panel. Constrained by printhead droplet levels, pixel pit structure, and ink material characteristics, it cannot directly use the original image signal. It must undergo pre-press image processing and grayscale conversion to generate a pre-press image adapted to the hardware, thereby controlling the number of ink droplets ejected and ultimately determining the imaging effect of the display panel. The pre-press image for display inkjet printing can be understood as the image data to be printed, processed through image processing, grayscale quantization, and format adaptation, before the actual pixel fabrication begins. This pre-processing drives the inkjet printer to complete the pixel pattern output. Grayscale value can be understood as a numerical value characterizing the brightness of a pixel, used to describe the brightness of a single-channel image pixel, and does not contain color information. The grayscale values ​​of the pre-printed inkjet image for a display screen need to be mapped to a limited output grayscale level supported by the printing hardware through grayscale conversion. The way grayscale values ​​are processed directly affects the quality of the pre-printed image, which in turn determines the film-forming effect of pixels and the image's tonal range after printing. A pixel can be understood as the smallest discrete basic unit of a digital image. An image is composed of a large number of pixels arranged in rows and columns, and each pixel stores the corresponding grayscale value or color information. Furthermore, in inkjet printing for a display screen, after pre-printing processing, the pixels correspond to the ink jetting at the physical pixel positions on the driving substrate.

[0033] In one embodiment, acquiring the inkjet pre-printing image of the display screen to be grayscale converted and multiple preset grayscale values ​​includes: firstly, reading the inkjet pre-printing image of the display screen to be processed, using it as the processing object for grayscale conversion, simultaneously loading multiple sets of preset grayscale values, completing the acquisition of all input data, and providing a data foundation for subsequent threshold calculation and grayscale quantification processing.

[0034] In one embodiment, a list of grayscale values ​​corresponding to the inkjet pre-printing image on the display screen can be obtained from preset configuration parameters. This list of grayscale values ​​may include multiple preset grayscale values.

[0035] In one embodiment, at least one preset endpoint grayscale value can be obtained, and a target grayscale range can be determined based on the endpoint grayscale value. Multiple grayscale values ​​within the target grayscale range can be determined as multiple preset grayscale values.

[0036] In one embodiment, the actual grayscale values ​​of multiple pixels in the inkjet pre-printing image of the display screen can be obtained, and the actual grayscale values ​​of the multiple pixels can be determined as multiple preset grayscale values.

[0037] In one embodiment, the grayscale values ​​of multiple pixels in the inkjet pre-printing image of the display screen can be obtained, and the maximum grayscale value and the minimum grayscale value can be determined among the grayscale values ​​of the multiple pixels. The maximum grayscale value, the minimum grayscale value, and multiple grayscale values ​​located between the maximum grayscale value and the minimum grayscale value are determined as multiple preset grayscale values.

[0038] In one embodiment, for each preset grayscale value, the number of pixels corresponding to the preset grayscale value in the inkjet pre-printing image of the display screen is counted to obtain the total number of pixels corresponding to the preset grayscale value. This includes: sequentially traversing each preset grayscale value, traversing the inkjet pre-printing image of the display screen pixel by pixel, determining whether the grayscale of each pixel in the image is equal to the current preset grayscale value, accumulating the number of successfully matched pixels, and obtaining the total number of pixels corresponding to each preset grayscale value.

[0039] In one embodiment, the inkjet pre-printing image on the display screen can be divided into multiple sub-blocks, and multi-threaded parallel processing of each sub-block is enabled. Each thread independently counts local values, and finally, the results of each thread are merged. That is, each sub-block reads the grayscale value of each pixel in a specific order, matches this value with all preset grayscale values, and increments the counter value of the corresponding grayscale value after a successful match. Then, the counter values ​​for the same preset grayscale value in multiple sub-blocks are incremented.

[0040] S102. Obtain multiple initial grayscale thresholds, determine multiple initial threshold combinations based on the multiple initial grayscale thresholds, and determine the inter-class variance corresponding to the initial threshold combinations based on the multiple initial threshold combinations and the total number of pixels corresponding to the preset grayscale values.

[0041] In this context, the grayscale threshold can be understood as a pixel grayscale value boundary point used to distinguish different regions in image processing. Furthermore, the initial grayscale threshold can be understood as a pre-defined grayscale candidate threshold before performing multi-threshold segmentation operations, serving as the basic candidate grayscale boundary for subsequent threshold combination traversal and inter-class variance calculation.

[0042] Threshold combinations can be understood as selecting several different grayscale thresholds from the initial grayscale threshold candidate set, arranging them in order of grayscale magnitude to form a threshold set, used to divide image pixels into multiple grayscale intervals. Further, initial threshold combinations can be understood as generating multiple initial threshold combinations based on a determined initial grayscale threshold, arranging them according to their grayscale magnitude, constructing a candidate scheme set, and providing complete alternative samples for the calculation of inter-class variance of subsequent combinations.

[0043] Preset grayscale values ​​can be understood as standard grayscale levels (e.g., all integer values ​​in the range of 0 to 255) that are predefined based on the image bit depth. They are the basic discrete units that constitute the grayscale information of the image.

[0044] Inter-class variance can be understood as an evaluation metric in image thresholding. It measures the degree of discrete difference between the various gray-level categories. A larger inter-class variance value indicates higher discriminative power between different gray-level categories and better segmentation results. In this scenario, inter-class variance can be understood as the weighted sum of squared deviations between the mean gray-level value of pixels within each category and the overall mean gray-level value of the entire pre-printed image on the display screen, after dividing all preset gray-level values ​​into several categories based on a given initial threshold combination. This inter-class variance quantifies the ability of the threshold combination to distinguish image gray-level levels; a larger value indicates more significant gray-level differences between different categories under the initial threshold combination, resulting in better segmentation.

[0045] In this embodiment of the invention, the number of initial grayscale thresholds is related to the number of grayscale levels to be mapped. For example, the number of initial grayscale thresholds can be one plus or one minus the number of grayscale levels to be mapped.

[0046] In one embodiment, obtaining multiple initial grayscale thresholds includes: obtaining a preset grayscale range, and dividing the preset grayscale range evenly according to the number of initial grayscale thresholds to obtain multiple initial grayscale thresholds.

[0047] In one embodiment, obtaining multiple initial grayscale thresholds includes: constructing a target grayscale range based on multiple preset grayscale values, and uniformly dividing the target grayscale range according to the number of grayscale levels to be mapped, thereby obtaining multiple initial grayscale thresholds.

[0048] In one embodiment, obtaining multiple initial grayscale thresholds includes: randomly obtaining multiple initial grayscale thresholds from multiple preset grayscale values ​​based on the number of grayscale levels to be mapped.

[0049] As an optional embodiment of the present invention, determining multiple initial threshold combinations based on multiple initial grayscale thresholds includes: determining multiple gray pixel intervals based on the multiple initial grayscale thresholds, traversing every grayscale value within all the grayscale value intervals, and combining the grayscale values ​​taken from each grayscale value interval each time to obtain multiple initial threshold combinations. This technical solution, by expanding the initial grayscale thresholds to continuous intervals and systematically traversing all possible grayscale values ​​within the intervals to generate a large number of candidate threshold combinations, avoids the defect of missing better segmentation points by relying on only a few initial thresholds. This comprehensive search method allows subsequent inter-class variance evaluation to select the optimal solution from a richer candidate set, thereby improving the precision and adaptability of threshold selection and helping to improve the ability of grayscale mapping to preserve the details of the original image.

[0050] The initial grayscale thresholds can be several candidate critical values ​​pre-selected within the full range of grayscale values ​​(e.g., 0 to 255). These initial grayscale thresholds serve as the basis for dividing grayscale intervals, and each threshold is itself a specific grayscale value.

[0051] The grayscale value range can be understood as a continuous numerical range defined by the multiple initial grayscale thresholds on the grayscale value axis. For example, after sorting the multiple initial grayscale thresholds by size, the grayscale segment between adjacent initial grayscale thresholds is an interval. At the same time, the boundary intervals formed by the minimum grayscale value (e.g., 0) to the first threshold and the last threshold to the maximum grayscale value (e.g., 255) also need to be considered.

[0052] Traversal can be understood as visiting all possible integer grayscale values ​​within a certain range in sequence, without omission or repetition.

[0053] Each gray value taken from each gray value range can be understood as selecting a specific gray value (usually an integer) from each of the predefined gray value ranges in a single combination operation.

[0054] Combining can be understood as merging the gray values ​​taken from each interval into an ordered multi-value set according to the interval order (such as from smallest to largest), and this set is a candidate threshold combination.

[0055] The initial threshold combination can be understood as all ordered sets generated through the above traversal and combination operations. Each set consists of a corresponding number of gray values ​​and can be used as the object for subsequent inter-class variance operations.

[0056] In one embodiment, firstly, the existing initial grayscale thresholds are sorted in ascending order of value, and the total range of grayscale values ​​(usually from 0 to the maximum grayscale level) is determined. Using the sorted thresholds as boundaries, the total range is divided into several consecutive grayscale value intervals (including the beginning and end boundary intervals). Then, for each interval, all integer grayscale values ​​within that interval are iterated over. In the actual iteration, multiple loops or recursion are used to ensure that each iteration takes one currently iterated grayscale value from each interval and arranges these values ​​in interval order to form a new threshold combination. This process is repeated until all grayscale values ​​in all intervals have been iterated over, ultimately obtaining all possible initial threshold combinations.

[0057] As an alternative implementation, each grayscale value interval can be viewed as a multi-level loop. The outermost loop iterates through the first interval, the innermost loop iterates through the second interval, and so on. Within each loop, each grayscale value is sequentially extracted from the current interval. When the innermost loop reaches the threshold, the values ​​extracted from each loop are combined into a threshold group. For example, assuming there are three intervals, a three-level loop is used to exhaustively enumerate all triplets.

[0058] As an alternative implementation, the list of intervals can be used as input to a recursive function. The function processes one interval at a time, iterating through all grayscale values ​​within that interval, and recursively processing the next interval after each value is selected. When all intervals have been processed, the currently accumulated value sequence is recorded as an initial threshold combination. This approach is particularly suitable for scenarios where the number of intervals is not fixed.

[0059] As an alternative implementation, a separate iterator can be created for each interval to sequentially output the grayscale values ​​within that interval. Then, a multi-way merge traversal is employed, controlling the progress of each iterator to combine the values ​​currently pointed to by all iterators each time, forming a combination. After completion, the iterators are advanced in a specific order until all combinations have been exhausted. This method facilitates memory management and interrupt recovery.

[0060] In one embodiment, determining the inter-class variance corresponding to an initial threshold combination based on multiple initial threshold combinations and the total number of pixels corresponding to the preset grayscale values ​​may include: First, selecting a combination to be evaluated from all generated initial threshold combinations, and dividing the complete preset grayscale value sequence into different category intervals according to each grayscale threshold in the combination. Then, calling the previously obtained total number of pixels corresponding to each preset grayscale value, summing all grayscale values ​​belonging to the same category interval and their corresponding total number of pixels, calculating the total number of pixels in that category and the cumulative grayscale value of all pixels in that category. Based on these data, further calculating the grayscale mean of that category and the global grayscale mean of the entire image. Finally, for the threshold combination, squaring the deviation between the grayscale mean of each category and the global mean, and weighting the sum by the total number of pixels in each category, the result is the inter-class variance value. The above calculation process is repeated for each initial threshold combination to obtain its corresponding inter-class variance.

[0061] As an optional implementation, for the current threshold combination, all preset grayscale values ​​are traversed in ascending order. Each grayscale value is assigned to the corresponding category in real time according to the threshold boundary, and the total number of pixels and the total grayscale value of that category are accumulated simultaneously. After all traversals are completed, the intra-class mean is calculated directly using the accumulated values ​​of each category, and then the weighted sum of squared deviations is calculated by combining it with the global mean to obtain the inter-class variance.

[0062] As an optional implementation, after the preliminary statistics are completed, a table of the cumulative total number of pixels from the minimum grayscale value to the current value and a table of the cumulative grayscale sum are pre-constructed. For the current threshold combination, the interval boundaries can be quickly located in the cumulative table using each threshold, and the cumulative total number of pixels and the cumulative grayscale sum for each category interval can be directly extracted, thereby greatly reducing repeated traversal, quickly calculating the mean of each category and the global mean, and finally obtaining the inter-class variance.

[0063] As an optional implementation, for the current threshold combination, firstly, all valid preset grayscale values ​​with a non-zero total number of pixels are selected, ignoring grayscale values ​​with zero frequency to reduce computation. Then, the valid grayscale values ​​are divided into intervals according to the threshold, and the total number of pixels and the grayscale value of the valid grayscale values ​​in each interval are weighted and accumulated to calculate the weighted average of each category and the global weighted average. Finally, the variance between categories is calculated.

[0064] S103. Determine a target threshold combination based on the inter-class variance corresponding to the multiple initial threshold combinations, and map the pixels in the inkjet pre-printing image of the display screen to multiple gray levels based on the multiple target gray level thresholds in the target threshold combination to obtain an inkjet printed image.

[0065] The target threshold combination can be understood as the optimal threshold combination selected from all initial threshold combinations based on the inter-class variance evaluation criterion. This target threshold combination is the final segmentation scheme used for grayscale conversion of the inkjet pre-printed image on the display screen. The target grayscale threshold can be understood as the grayscale boundary points selected from the initial grayscale threshold candidate set to constitute the target threshold combination; it is the threshold for actually performing image grayscale interval division. Grayscale level can be understood as gray scale. The number of light and dark levels that a grayscale level can distinguish represents the discrete output level of pixel grayscale. Furthermore, in inkjet printing on a display screen, due to the limitation of the printhead's ink droplet ejection level, the device can only output a limited number of grayscale levels.

[0066] In one embodiment, determining the target threshold combination based on the inter-class variance corresponding to multiple initial threshold combinations includes: traversing all calculated initial threshold combinations, reading the inter-class variance calculation result corresponding to each group, comparing all inter-class variance values, selecting the initial threshold combination with the largest inter-class variance, and determining it as the target threshold combination to provide a segmentation basis for subsequent image grayscale interval division.

[0067] In one embodiment, the pixels in the pre-printed inkjet image of the display screen are mapped to multiple gray levels according to multiple target gray level thresholds in the target threshold combination to obtain an inkjet printed image. This includes: extracting each target gray level threshold in the target threshold combination and sorting them in ascending order of gray level; traversing the pre-printed inkjet image of the display screen pixel by pixel, determining the gray level range of the original gray level of each pixel, and reassigning the pixel to the corresponding gray level based on the range; and completing the gray level mapping of all pixels after traversing all pixels, ultimately generating an inkjet printed image adapted for hardware output.

[0068] S104. Generate an inkjet printing instruction based on the gray level corresponding to the pixel in the inkjet printed image, and control the inkjet printing device to eject ink droplets of the corresponding volume at the corresponding pixel position on the display substrate based on the inkjet printing instruction, so as to form a light-emitting pixel unit with the target gray level on the display substrate, and obtain the target inkjet printed display screen.

[0069] Inkjet printing instructions can be understood as a set of drive control instructions generated from pre-press image data parsing and sent to the inkjet printing equipment to control the printhead to complete the ink droplet ejection action. Further, in the inkjet printing process for displays, the grayscale level of each pixel in the inkjet-printed image obtained through grayscale mapping is parsed and converted into corresponding inkjet printing instructions. These instructions contain control information such as the number of ink droplets ejected at each physical pixel location, the ejection timing, and the ejection switch status. After receiving the instructions, the equipment controls the printhead to precisely eject the corresponding amount of functional ink into the substrate pixel cavity, completing the fabrication of the light-emitting pixel layer. The generation quality of the inkjet printing instructions directly determines the amount of ink deposited, thus affecting the panel pixel brightness, color transition, and imaging uniformity. An ink droplet can be understood as a tiny functional ink droplet ejected from the printhead. Ink droplets are the basic material units constituting the light-emitting layer of the panel pixels. The display substrate can be understood as the substrate carrier that supports the display pixel structure. The display substrate is the processing object of inkjet printing for displays. The substrate is pre-fabricated with an array of pixel cavities (pixel pits) to receive ink droplets ejected from the printhead. The ink droplets spread and solidify inside the pixel cavities to form a light-emitting functional layer. Grayscale levels can be understood as the transition effect between different brightness levels in an image, reflecting the richness of detail in the bright, mid-tone, and dark areas of the image, and demonstrating the continuity of brightness variations. A light-emitting pixel unit can be understood as the smallest physical functional unit on the display substrate capable of independently emitting light. It is formed by a film of functional ink deposited and solidified inside the pixel cavity, corresponding to a pixel in the digital image.

[0070] In one embodiment, generating inkjet printing instructions based on the grayscale levels corresponding to the pixels in the inkjet-printed image includes: traversing the preprocessed inkjet-printed image line by line and pixel by pixel, and reading the standardized grayscale level parameters corresponding to each pixel in the image. Combining preset device grayscale mapping rules, the grayscale level data of each pixel is converted into controllable parameters of the inkjet printing device, mainly including driving parameters such as the droplet ejection level and ejection speed corresponding to each pixel coordinate position. Further, the parameter adaptability of each pixel position can be matched and calibrated one by one to ensure accurate correspondence between the pixel grayscale level and the device ejection parameters. Then, the standardized driving parameters of all pixel positions are integrated, and structured encapsulated, compiled, and integrated according to the instruction encoding format of the inkjet printing device, ultimately generating a complete and device-recognizable dedicated inkjet printing instruction set.

[0071] In one embodiment, controlling an inkjet printing device to eject ink droplets of corresponding volume at corresponding pixel positions on a display substrate based on the inkjet printing command, thereby forming light-emitting pixel units with a target grayscale level on the display substrate, and obtaining a target inkjet-printed display screen, includes: transmitting the generated inkjet printing command to the inkjet printing device; the device parsing the ejection parameters corresponding to each pixel position within the command and locating the matching physical pixel position on the display substrate; ejecting ink droplets of corresponding volume at each corresponding pixel position according to the command requirements, so that the ink droplets fall into the pixel cavity area of ​​the substrate; and constructing light-emitting pixel units one by one after spreading and curing. The arrayed light-emitting pixel units collectively reproduce the target grayscale level, thereby obtaining the target inkjet-printed display screen.

[0072] In one embodiment, after completing the grayscale mapping process of the inkjet-printed image and outputting the grayscale level corresponding to each pixel, the system waits to receive an external trigger signal. Upon receiving a manually issued external trigger command, the system responds to the trigger signal, reads the grayscale level corresponding to each pixel in the inkjet-printed image, and generates a corresponding inkjet printing command based on the grayscale level. The generated inkjet printing command is sent to the inkjet printing device, which parses the command, locates the corresponding pixel position on the display substrate, and ejects ink droplets of the corresponding volume according to the command requirements. The ink droplets spread and solidify at the pixel position on the substrate, forming a light-emitting pixel unit with the target grayscale level, ultimately resulting in the target inkjet-printed display screen.

[0073] In another embodiment, after the grayscale mapping of the inkjet-printed image is completed and the grayscale level corresponding to each pixel is output, the pre-press image processing flow is automatically determined to be complete without external intervention, and a trigger signal is automatically generated. Responding to the internal automatic trigger signal, the grayscale level corresponding to each pixel in the inkjet-printed image is read, and a corresponding inkjet printing instruction is generated based on the grayscale level. The generated inkjet printing instruction is sent to the inkjet printing device, which parses the instruction, locates the corresponding pixel position on the display substrate, and ejects ink droplets of the corresponding volume according to the instruction requirements. The ink droplets spread and solidify at the pixel position on the substrate, forming luminescent pixel units with the target grayscale level, ultimately resulting in the target inkjet-printed display screen.

[0074] The technical solution provided by this invention solves for multiple sets of grayscale thresholds and their combinations, calculates the inter-class variance corresponding to each combination, selects the optimal target threshold combination, completes image grayscale quantization based on this combination, and then outputs an image adapted for inkjet printing. This technical solution can avoid the loss of grayscale levels and image detail distortion caused by fixed threshold division methods, retain the intermediate grayscale information of the original image, restore the image's brightness transition effect, light-toned textures, and low-contrast detail features, suppress defects such as grayscale jumps and grayscale breaks, and make the color transition of the display image prepared by inkjet printing smooth and natural, the texture details complete and discernible, and the imaging uniformity significantly improved, ultimately improving the overall imaging quality of the display screen.

[0075] Example 2 Figure 2 This is a flowchart of an inkjet printing method according to Embodiment 2 of the present invention. This embodiment further optimizes the technical solution based on the above embodiments. For detailed implementation methods, please refer to the description of this embodiment. Technical features that are the same as or similar to those in the foregoing embodiments will not be repeated here.

[0076] S201. Obtain the inkjet pre-printing image of the display screen to be converted to grayscale and multiple preset grayscale values. For each preset grayscale value, count the number of pixels corresponding to the preset grayscale value in the inkjet pre-printing image of the display screen to obtain the total number of pixels corresponding to the preset grayscale value.

[0077] S202. Obtain multiple initial grayscale thresholds, and determine multiple initial threshold combinations based on the multiple initial grayscale thresholds.

[0078] S203. For each of the initial threshold combinations, multiple initial grayscale intervals are determined based on the multiple grayscale values ​​in the initial threshold combination, and each of the initial grayscale intervals corresponds to a grayscale level.

[0079] As an optional embodiment of the present invention, determining multiple initial grayscale intervals based on multiple grayscale values ​​in the initial threshold combination includes: obtaining all grayscale thresholds in the initial threshold combination, sorting all the grayscale thresholds in ascending order of grayscale values, and using the sorted grayscale thresholds as interval division boundaries to divide the complete range of grayscale values ​​into multiple continuous initial grayscale intervals.

[0080] In one embodiment, each initial threshold combination is sequentially retrieved, all gray values ​​within the combination are extracted, and sorted in ascending order of gray value. The sorted gray values ​​are then used to divide the complete gray value domain of the image, resulting in several independent and non-overlapping initial gray value intervals. Each divided initial gray value interval is assigned a unique corresponding gray level, establishing a mapping relationship between gray value intervals and gray level.

[0081] S204. Calculate the total number of pixels falling into each of the initial grayscale intervals, and the average grayscale value of all pixels in each of the initial grayscale intervals.

[0082] The grayscale average value can be understood as the statistical average of the grayscale values ​​of all pixels within an image or a specific grayscale category. The grayscale average value is a core input parameter for calculating the inter-class variance in multi-threshold segmentation.

[0083] As an optional embodiment of the present invention, the step of counting the total number of pixels falling into each of the initial grayscale intervals includes: obtaining the total number of pixels corresponding to each preset grayscale value in the inkjet pre-printing image of the display screen; and for each initial grayscale interval, accumulating the total number of pixels corresponding to all preset grayscale values ​​falling within the range of the initial grayscale interval to obtain the total number of pixels in the initial grayscale interval.

[0084] Furthermore, the upper and lower boundaries of the current initial grayscale interval are determined, and all preset grayscale values ​​within these boundaries are selected. The total number of pixels corresponding to each selected preset grayscale value is extracted. The total number of pixels is accumulated item by item. After the summation operation is completed, the total number of pixels within the interval corresponding to the current initial grayscale interval is output. The above selection and accumulation operations are repeated until the calculation of all initial grayscale intervals is completed, and the total number of pixels within each initial grayscale interval is obtained.

[0085] As an optional embodiment of the present invention, the total number of pixels falling within each of the initial grayscale intervals can be counted based on the following formula: ; in, For grayscale values ​​to fall into [ The total number of pixels within the grayscale range. In order to [ The grayscale value within the grayscale range is The number of pixels.

[0086] In this embodiment of the invention, the grayscale range is traversed [ All grayscale values ​​within ] For each grayscale Corresponding pixel count Then sum the results one by one. This refers to the total number of pixels that fall within that grayscale range.

[0087] As an optional embodiment of the present invention, it can be based on the following formula and the average gray level of all pixels within each initial gray level interval: ; in, This is the average grayscale value. Total number of pixels exist[ The grayscale value within the grayscale range is The number of pixels.

[0088] In this embodiment of the invention, the grayscale range is traversed [ All grayscale values ​​within ] For each grayscale Corresponding pixel count Then sum the results one by one. That is, the total number of pixels falling within that grayscale range, divided by the total number of pixels in that range. The average gray level of the initial gray range is calculated. .

[0089] In one embodiment, all pixels of the pre-printed inkjet image on the display screen are traversed sequentially, and the original grayscale value of each pixel is read. Referring to the initial grayscale intervals obtained from the current initial threshold combination, the interval to which the pixel's grayscale belongs is determined, and the total number of pixels in the corresponding interval is accumulated. After traversing all pixels, the total number of pixels in each initial grayscale interval is calculated. Simultaneously, the grayscale values ​​of all pixels within each interval are summarized, and the average grayscale value corresponding to each initial grayscale interval is calculated using the pixel grayscale value within the interval and the total number of pixels in that interval.

[0090] S205. Based on the total number of pixels corresponding to the multiple initial grayscale intervals and the average grayscale value, determine the global average grayscale value of all pixels under the initial threshold combination.

[0091] The global grayscale average can be understood as the statistical average of the grayscale of all pixels in the pre-printed inkjet image of the entire display screen.

[0092] As an optional embodiment of the present invention, the global grayscale average value of all pixels under the initial threshold combination can be determined based on the following formula: ; in, This represents the global average grayscale value. This represents the total number of pixels corresponding to multiple initial grayscale ranges. For grayscale range, This represents the current grayscale range.

[0093] In this embodiment of the invention, all are traversed. Given an initial grayscale range, the total number of pixels in each grayscale range is... and the average gray value of the corresponding interval Multiply and sum the results to obtain the total grayscale value of the image; then divide the total grayscale value by the total number of pixels in the image. The global grayscale average value of the image is calculated. .

[0094] As an optional embodiment of the present invention, determining the global grayscale average value of all pixels under the initial threshold combination based on the total number of pixels corresponding to multiple initial grayscale intervals and the average grayscale value includes: multiplying the total number of pixels corresponding to each initial grayscale interval by the average grayscale value to obtain the sum of pixel grayscale values ​​for each initial grayscale interval; summing the sums of pixel grayscale values ​​for all initial grayscale intervals to obtain the total grayscale value of the pre-printed image of the display screen; summing the total number of pixels for all initial grayscale intervals to obtain the total number of pixels in the pre-printed image of the display screen; and dividing the total grayscale value by the total number of pixels to obtain the global grayscale average value.

[0095] Furthermore, for each initial grayscale interval, the total number of pixels corresponding to the initial grayscale interval and the average grayscale value of the interval are retrieved. These two sets of values ​​are multiplied to calculate the sum of pixel grayscale values ​​for the corresponding initial grayscale interval. This process is repeated for all initial grayscale intervals, with the sums of pixel grayscale values ​​obtained for each initial grayscale interval being cumulatively added together to obtain the total grayscale value of the pre-printed image on the display screen. Simultaneously, the total number of pixels corresponding to all initial grayscale intervals is cumulatively added to obtain the total number of pixels in the pre-printed image on the display screen. Finally, a division operation is performed using the obtained total grayscale value as the dividend and the total number of pixels as the divisor to calculate the global average grayscale value of the output image.

[0096] S206. Calculate the inter-class variance corresponding to the initial threshold combination based on the total number of pixels corresponding to the multiple initial grayscale intervals, the average grayscale value, and the global average grayscale value.

[0097] Inter-class variance can be understood as a measure of the degree of brightness difference between different grayscale categories. The larger the inter-class variance value, the higher the brightness distinction between different grayscale categories, the better the interval division effect, and the better the image grayscale level preservation effect. The smaller the inter-class variance value, the weaker the brightness difference between categories, the poorer the grayscale division effect, and the more likely grayscale information loss and discontinuity will occur.

[0098] As an optional embodiment of the present invention, for each initial grayscale interval, the difference between the average grayscale value of the initial grayscale interval and the global average grayscale value is calculated, and the difference is squared to obtain a squared difference value. The total number of pixels corresponding to each initial grayscale interval is multiplied by the squared difference value to obtain the variance component of each initial grayscale interval. The variance components of all initial grayscale intervals are summed to obtain a total variance, and the total variance is divided by the total number of pixels to obtain the inter-class variance corresponding to the initial threshold combination.

[0099] Furthermore, the greater the difference between the grayscale range and the overall grayscale, and the more pixels in the grayscale range, the greater the contribution to the inter-class variance.

[0100] As an optional embodiment of the present invention, the inter-class variance corresponding to the initial threshold combination can be calculated based on the following formula: ; in, For inter-class variance, This represents the global average grayscale value. This represents the total number of pixels corresponding to multiple initial grayscale ranges. For grayscale range, The current grayscale range, This represents the number of pixels that fall within the current grayscale range.

[0101] In this embodiment of the invention, all are traversed. For each initial grayscale interval, calculate the difference between the average grayscale value of the initial grayscale interval and the global average grayscale value, and square the difference. Calculate the proportion of pixels in that grayscale interval to the total number of pixels in the image, and multiply this proportion by the squared difference to obtain the variance contribution component of that grayscale interval. Sum the variance contribution components corresponding to all grayscale intervals; the sum is the inter-class variance corresponding to that initial threshold combination. .

[0102] S207. Determine a target threshold combination based on the inter-class variance corresponding to the multiple initial threshold combinations, and map the pixels in the inkjet pre-printing image of the display screen to multiple gray levels based on the multiple target gray level thresholds in the target threshold combination to obtain an inkjet printed image.

[0103] S208. Generate an inkjet printing instruction based on the gray level corresponding to the pixel in the inkjet printed image, and control the inkjet printing device to eject ink droplets of corresponding volume at the corresponding pixel position on the display substrate based on the inkjet printing instruction, so as to form a light-emitting pixel unit with a target gray level on the display substrate, and obtain a target inkjet printed display screen.

[0104] The technical solution provided in this invention calculates the inter-class variance corresponding to each initial threshold combination based on the total number of pixels corresponding to each initial grayscale interval, the average grayscale value of the interval, and the average grayscale value of the global image. By iterating and evaluating multiple threshold combinations and selecting the optimal one, the grayscale level division effect can be optimized, image detail information can be better preserved, and the image's light and dark transitions, light-toned textures, and low-contrast detail features can be effectively reproduced.

[0105] Example 3 Figure 3 This is a flowchart of an inkjet printing method according to Embodiment 3 of the present invention. This embodiment further optimizes the technical solution based on the above embodiments. For detailed implementation methods, please refer to the description of this embodiment. Technical features that are the same as or similar to those in the foregoing embodiments will not be repeated here.

[0106] S301. Obtain the inkjet pre-printing image of the display screen to be converted to grayscale and multiple preset grayscale values. For each preset grayscale value, count the number of pixels corresponding to the preset grayscale value in the inkjet pre-printing image of the display screen to obtain the total number of pixels corresponding to the preset grayscale value.

[0107] S302. Obtain multiple initial grayscale thresholds, determine multiple initial threshold combinations based on the multiple initial grayscale thresholds, and determine the inter-class variance corresponding to the initial threshold combinations based on the multiple initial threshold combinations and the total number of pixels corresponding to the preset grayscale values.

[0108] S303. Determine the maximum value among the inter-class variances corresponding to the multiple initial threshold combinations, and determine the initial threshold combination corresponding to the maximum value as the target threshold combination.

[0109] As an optional embodiment of the present invention, determining the maximum value among the inter-class variances corresponding to multiple initial threshold combinations, and determining the initial threshold combination corresponding to the maximum value as the target threshold combination, includes: setting a variable for recording the maximum inter-class variance and initializing the variable to an initial value; selecting one initial threshold combination at a time as the current combination to be processed in a preset order, and obtaining the inter-class variance corresponding to the current combination to be processed; comparing the inter-class variance corresponding to the current combination to be processed with the currently recorded value of the variable; if the inter-class variance corresponding to the current combination to be processed is greater than the currently recorded value of the variable, then updating the variable to the inter-class variance corresponding to the current combination to be processed, and recording the current combination to be processed as the optimal threshold combination; continuing to select the next initial threshold combination as the current combination to be processed, and repeating the comparison and update operations; in response to all initial threshold combinations being processed, determining the final recorded value of the variable as the maximum value, and determining the final recorded optimal threshold combination as the target threshold combination.

[0110] Further, a set of initial threshold combinations is selected sequentially in a preset order as the current combination to be processed, and the inter-class variance corresponding to this combination is read. This inter-class variance is compared with the stored value of the variable. If the inter-class variance of the current combination to be processed is larger, the stored value of the variable is updated to the current inter-class variance, and the initial threshold combination is recorded as the optimal threshold combination. The remaining initial threshold combinations are selected iteratively, and the comparison and update logic is completed in a loop. After all initial threshold combinations have been traversed, the final stored value of the variable is the maximum inter-class variance, and the final recorded optimal threshold combination is the target threshold combination.

[0111] In one embodiment, all initial threshold combinations are iterated through, and the inter-class variance corresponding to each initial threshold combination is calculated one by one. All initial threshold combinations and their corresponding inter-class variances are stored in pairs to construct a threshold-inter-class variance mapping set. After the inter-class variances of all initial threshold combinations have been calculated, a batch comparison is performed on all inter-class variance values ​​in the mapping set, and the inter-class variance with the largest value is selected. The initial threshold combination bound to the largest inter-class variance is retrieved, and this initial threshold combination is determined as the target threshold combination.

[0112] In another embodiment, all initial threshold combinations are divided into multiple subsets, and the inter-class variance of each initial threshold combination within each subset is calculated. Within each subset, the local maximum inter-class variance and its corresponding initial threshold combination are selected. The locally optimal results from each subset are aggregated, and pairwise comparisons are performed to select new locally optimal results. This comparison and selection process is iterated repeatedly until only one optimal result remains. The inter-class variance corresponding to this result is the global maximum, and the corresponding initial threshold combination is the target threshold combination.

[0113] S304. Based on the multiple target grayscale thresholds in the target threshold combination, the pixels in the inkjet pre-printing image of the display screen are mapped to multiple grayscale levels to obtain the inkjet printed image.

[0114] S305. Generate an inkjet printing instruction based on the gray level corresponding to the pixel in the inkjet printed image, and control the inkjet printing device to eject ink droplets of the corresponding volume at the corresponding pixel position on the display substrate based on the inkjet printing instruction, so as to form a light-emitting pixel unit with the target gray level on the display substrate, and obtain the target inkjet printed display screen.

[0115] The technical solution provided in this invention achieves dynamic optimization of threshold combinations by finding the maximum value of the inter-class variance, which can effectively reduce the loss of image grayscale information caused by the grayscale mapping process. Selecting the threshold combination corresponding to the maximum inter-class variance can take into account both the distinguishability between different grayscale levels and the dispersion of pixels within the same grayscale level, suppressing grayscale aliasing between levels and grayscale diffusion within levels, better preserving image details, and improving imaging clarity.

[0116] Example 4 As an optional example of an embodiment of the present invention, the inkjet printing method may include: (1) Obtain the inkjet pre-press image of the display screen that needs grayscale conversion.

[0117] (2) Count the number of pixels with each gray value in the inkjet preprint image on the display screen. The gray value range is (0-256). Based on the gray value range, obtain an array hist with a length of 256, where hist[i] represents the total number of pixels with a gray value of i.

[0118] (3) Set three initial grayscale thresholds to evenly divide the initial grayscale values ​​(e.g., T1=64, T2=128, T3=192).

[0119] (4) Initialize the inter-class variance max_var to 0, which will be used to compare the merits of different initial grayscale threshold combinations later.

[0120] (5) Iterate through all possible values ​​of the three initial grayscale thresholds, satisfying 0 < T1 < T2 < T3 < 255 (ensuring that all four intervals are not empty).

[0121] (6) Calculate the total number of pixels and the average gray level for each initial gray level range, as follows: Total number of pixels: n0 = Total number of pixels with grayscale values ​​in the range [0, T1] n1 = Total number of pixels with grayscale values ​​in (T1, T2] n2 = Total number of pixels with grayscale values ​​in (T2, T3] n3 = Total number of pixels with grayscale values ​​in (T3, 255] Average grayscale value: mu0 = the average gray value in the interval [0, T1] mu1 = the average gray value of the interval (T1, T2]. mu2 = the average gray value of the interval (T2, T3]. mu3 = the average gray value of the interval (T3, 255]. (7) Calculate the global grayscale average and inter-class variance. Global grayscale average value: mu_total = (n0*mu0 + n1*mu1 + n2*mu2 + n3*mu3) / total number of pixels (total number of pixels is n0+n1+n2+n3) Between-class variance: var = (n0*(mu0 - mu_total) 2 + n1*(mu1 - mu_total) 2 + n2*(mu2 - mu_total) 2 + n3*(mu3 – mu_total) 2 ) / Total number of pixels (8) Update the optimal grayscale threshold combination. The specific operation is as follows: (a) If the inter-class variance var of the current grayscale threshold combination is greater than max_var, then update max_var = var and record the current threshold (T1, T2, T3) as the optimal threshold; (b) Continue to iterate through other grayscale threshold combinations, repeating steps 6-7 until all combinations have been calculated.

[0122] (9) Convert gray levels according to the optimal gray threshold. Based on the final determined optimal thresholds (T1, T2, T3), the pixels of the pre-printed inkjet image on the display screen are mapped to four gray levels: For example: i ≤ T1 → 0; T1 < i ≤ T2 → 1; T2 < i ≤ T3 → 2; i > T3 → 3.

[0123] (10) Generate inkjet printing instructions based on the gray level corresponding to the pixel in the inkjet printed image, and control the inkjet printing device to spray ink droplets of the corresponding volume at the corresponding pixel position on the display substrate based on the inkjet printing instructions, so as to form a light-emitting pixel unit with the target gray level on the display substrate and obtain the target inkjet printed display.

[0124] The technical solution in this example uses the maximum inter-class variance method to automatically determine the optimal threshold. By minimizing the intra-class variance within each order and maximizing the inter-class variance between orders, the conversion grayscale loss is minimized.

[0125] Example 5 Figure 4 This is a schematic diagram of the structure of an inkjet printing apparatus according to Embodiment 5 of the present invention. Figure 4 As shown, the device includes: a data acquisition module 401, a threshold combination module 402, a mapping module 403, and a printing module 404.

[0126] The data acquisition module 401 is used to acquire the inkjet pre-printing image of the display screen to be converted to grayscale and multiple preset grayscale values. For each preset grayscale value, the number of pixels corresponding to the preset grayscale value in the inkjet pre-printing image of the display screen is counted to obtain the total number of pixels corresponding to the preset grayscale value.

[0127] The threshold combination module 402 is used to acquire multiple initial grayscale thresholds, determine multiple initial threshold combinations based on the multiple initial grayscale thresholds, and determine the inter-class variance corresponding to the initial threshold combinations based on the multiple initial threshold combinations and the total number of pixels corresponding to the preset grayscale values.

[0128] The mapping module 403 is used to determine a target threshold combination based on the inter-class variance corresponding to the multiple initial threshold combinations, and to map the pixels in the inkjet pre-printing image of the display screen to multiple gray levels based on the multiple target gray level thresholds in the target threshold combination, so as to obtain an inkjet printed image. The printing module 404 is used to generate inkjet printing instructions based on the gray level corresponding to the pixel in the inkjet printed image, and control the inkjet printing device to eject ink droplets of corresponding volume at the corresponding pixel position on the display substrate based on the inkjet printing instructions, so as to form light-emitting pixel units with target gray level on the display substrate and obtain the target inkjet printed display screen.

[0129] The technical solution of this invention solves for multiple sets of grayscale thresholds and their combinations, calculates the inter-class variance corresponding to each combination, selects the optimal target threshold combination, completes image grayscale quantization based on this combination, and then outputs an image adapted for inkjet printing. This technical solution avoids the loss of grayscale levels and image detail distortion caused by fixed threshold division methods. It preserves the intermediate grayscale information of the original image, restores the image's brightness transition effects, light-toned textures, and low-contrast details, and suppresses defects such as grayscale jumps and grayscale banding. This results in a display image with smooth and natural color transitions, complete and discernible texture details, and significantly improved imaging uniformity, ultimately enhancing the overall image quality of the display screen. Optionally, the threshold combination module 402 is used to determine multiple gray value ranges based on multiple initial gray value thresholds, traverse each gray value in all gray value ranges, and combine the gray values ​​taken from each gray value range each time to obtain multiple initial threshold combinations.

[0130] Optionally, the threshold combination module 402 is used to determine multiple initial grayscale intervals for each initial threshold combination based on multiple grayscale values ​​in the initial threshold combination, each initial grayscale interval corresponding to a grayscale level. The total number of pixels falling within each initial grayscale interval and the average grayscale value of all pixels within each initial grayscale interval are counted respectively. Based on the total number of pixels and the average grayscale value corresponding to the multiple initial grayscale intervals, the global average grayscale value of all pixels under the initial threshold combination is determined. Based on the total number of pixels, the average grayscale value, and the global average grayscale value corresponding to the multiple initial grayscale intervals, the inter-class variance corresponding to the initial threshold combination is calculated.

[0131] Optionally, the threshold combination module 402 is used to obtain all grayscale thresholds in the initial threshold combination, sort all the grayscale thresholds in ascending order of grayscale value, and use the sorted grayscale thresholds as interval division boundaries to divide the complete range of grayscale values ​​into multiple continuous initial grayscale intervals.

[0132] Optionally, the threshold combination module 402 is used to obtain the total number of pixels corresponding to each preset gray value in the inkjet pre-printing image of the display screen, and for each initial gray range, to accumulate the total number of pixels corresponding to all preset gray values ​​falling within the initial gray range to obtain the total number of pixels in the initial gray range.

[0133] Optionally, the threshold combination module 402 is used to multiply the total number of pixels corresponding to each of the initial grayscale intervals by the average grayscale value to obtain the sum of pixel grayscale values ​​for each of the initial grayscale intervals. The sums of pixel grayscale values ​​for all the initial grayscale intervals are accumulated to obtain the total grayscale value of the pre-printed image of the display screen. The total number of pixels for all the initial grayscale intervals is accumulated to obtain the total number of pixels in the pre-printed image of the display screen. The total grayscale value is divided by the total number of pixels to obtain the global average grayscale value.

[0134] Optionally, the threshold combination module 402 is used to calculate, for each initial grayscale interval, the difference between the average grayscale value of the initial grayscale interval and the global average grayscale value, and to square the difference to obtain a squared difference value. The total number of pixels corresponding to each initial grayscale interval is multiplied by the squared difference value to obtain the variance component of each initial grayscale interval. The variance components of all initial grayscale intervals are summed to obtain a total variance, and the total variance is divided by the total number of pixels to obtain the inter-class variance corresponding to the initial threshold combination.

[0135] Optionally, the mapping module 403 is used to determine the maximum value among the inter-class variances corresponding to multiple initial threshold combinations, and to determine the initial threshold combination corresponding to the maximum value as the target threshold combination.

[0136] Optionally, the mapping module 403 is used to set a variable for recording the maximum inter-class variance and initialize the variable to an initial value. One of the initial threshold combinations is selected sequentially as the current combination to be processed, and the inter-class variance corresponding to the current combination to be processed is obtained. The inter-class variance corresponding to the current combination to be processed is compared with the currently recorded value of the variable. If the inter-class variance corresponding to the current combination to be processed is greater than the currently recorded value of the variable, the variable is updated to the inter-class variance corresponding to the current combination to be processed, and the current combination to be processed is recorded as the optimal threshold combination. The next initial threshold combination is selected as the current combination to be processed, and the comparison and update operations are repeated. In response to all initial threshold combinations being processed, the final recorded value of the variable is determined as the maximum value, and the final recorded optimal threshold combination is determined as the target threshold combination.

[0137] The inkjet printing apparatus provided in the embodiments of the present invention can execute the inkjet printing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.

[0138] Example 6 Figure 5This is a schematic diagram of an electronic device implementing the inkjet printing method of an embodiment of the present invention. 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.

[0139] like Figure 5 As shown, the electronic device 500 includes at least one processor 501 and a memory, such as a read-only memory (ROM) 502 and a random access memory (RAM) 503, communicatively connected to the at least one processor 501. The memory stores computer programs executable by the at least one processor. The processor 501 can perform various appropriate actions and processes based on the computer program stored in the ROM 502 or loaded into the RAM 503 from storage unit 508. The RAM 503 can also store various programs and data required for the operation of the electronic device 500. The processor 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0140] Multiple components in electronic device 500 are connected to I / O interface 505, including: input unit 506, such as keyboard, mouse, etc.; output unit 507, such as various types of monitors, speakers, etc.; storage unit 508, such as disk, optical disk, etc.; and communication unit 509, such as network card, modem, wireless transceiver, etc. Communication unit 509 allows electronic device 500 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0141] Processor 501 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 501 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 501 performs the various methods and processes described above, such as inkjet printing methods.

[0142] In some embodiments, the inkjet printing method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded into and / or installed on electronic device 500 via ROM 502 and / or communication unit 509. When the computer program is loaded into RAM 503 and executed by processor 501, one or more steps of the inkjet printing method described above may be performed. Alternatively, in other embodiments, processor 501 may be configured to perform the inkjet printing method by any other suitable means (e.g., by means of firmware).

[0143] 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.

[0144] 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.

[0145] 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.

[0146] 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).

[0147] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or 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.

[0148] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through a communication network. 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.

[0149] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication unit 509, or installed from storage unit 508, or installed from ROM 502. When the computer program is executed by processor 501, it performs the functions defined in the methods of the embodiments of the present invention.

[0150] 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.

[0151] 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 inkjet printing method, characterized in that, include: The process involves acquiring a pre-printing image of a display screen to be converted to grayscale and multiple preset grayscale values. For each preset grayscale value, the number of pixels corresponding to the preset grayscale value in the pre-printing image of the display screen is counted to obtain the total number of pixels corresponding to the preset grayscale value. Multiple initial grayscale thresholds are obtained, multiple initial threshold combinations are determined based on the multiple initial grayscale thresholds, and the inter-class variance corresponding to the initial threshold combinations is determined based on the multiple initial threshold combinations and the total number of pixels corresponding to the preset grayscale values; A target threshold combination is determined based on the inter-class variance corresponding to multiple initial threshold combinations. Based on multiple target grayscale thresholds in the target threshold combination, the pixels in the inkjet pre-printing image of the display screen are mapped to multiple grayscale levels to obtain an inkjet printed image. An inkjet printing instruction is generated based on the gray level corresponding to the pixel in the inkjet printed image. Based on the inkjet printing instruction, the inkjet printing device is controlled to eject ink droplets of the corresponding volume at the corresponding pixel position on the display substrate, so as to form a light-emitting pixel unit with the target gray level on the display substrate, thereby obtaining the target inkjet printed display screen.

2. The method according to claim 1, characterized in that, The step of determining multiple initial threshold combinations based on multiple initial grayscale thresholds includes: Multiple grayscale value ranges are determined based on multiple initial grayscale thresholds. Each grayscale value in all grayscale value ranges is traversed, and the grayscale values ​​taken from each grayscale value range are combined to obtain multiple initial threshold combinations.

3. The method according to claim 1, characterized in that, The step of determining the inter-class variance corresponding to the initial threshold combination based on the multiple initial threshold combinations and the total number of pixels corresponding to the preset grayscale value includes: For each of the initial threshold combinations, multiple initial grayscale intervals are determined based on the multiple grayscale values ​​in the initial threshold combination, and each of the initial grayscale intervals corresponds to a grayscale level; The total number of pixels falling into each of the initial grayscale intervals, and the average grayscale value of all pixels in each of the initial grayscale intervals are counted respectively. Based on the total number of pixels corresponding to the multiple initial grayscale intervals and the average grayscale value, determine the global average grayscale value of all pixels under the initial threshold combination; The inter-class variance corresponding to the initial threshold combination is calculated based on the total number of pixels corresponding to multiple initial grayscale intervals, the average grayscale value, and the global average grayscale value.

4. The method according to claim 3, characterized in that, The determination of multiple initial grayscale intervals based on multiple grayscale values ​​in the initial threshold combination includes: Obtain all grayscale thresholds in the initial threshold combination, sort all grayscale thresholds in ascending order of grayscale value, and use the sorted grayscale thresholds as interval division boundaries to divide the complete range of grayscale values ​​into multiple continuous initial grayscale intervals.

5. The method according to claim 3, characterized in that, The step of counting the total number of pixels falling within each of the initial grayscale intervals includes: Obtain the total number of pixels corresponding to each preset grayscale value in the inkjet pre-printing image of the display screen. For each initial grayscale interval, accumulate the total number of pixels corresponding to all preset grayscale values ​​that fall within the initial grayscale interval to obtain the total number of pixels within the initial grayscale interval.

6. The method according to claim 3, characterized in that, The step of determining the global grayscale average of all pixels under the initial threshold combination based on the total number of pixels corresponding to multiple initial grayscale intervals and the average grayscale value includes: Multiply the total number of pixels corresponding to each initial grayscale interval by the average grayscale value to obtain the total grayscale value of the pixels in each initial grayscale interval; The total gray value of the pre-printed inkjet image on the display screen is obtained by summing the sums of the pixel gray values ​​of all the initial gray ranges. The total number of pixels in all the initial grayscale ranges is summed to obtain the total number of pixels in the inkjet pre-printing image of the display screen. The total grayscale value is divided by the total number of pixels to obtain the global average grayscale value.

7. The method according to claim 3, characterized in that, The step of calculating the inter-class variance corresponding to the initial threshold combination based on the total number of pixels corresponding to multiple initial grayscale intervals, the average grayscale value, and the global average grayscale value includes: For each initial grayscale interval, the difference between the average grayscale value of the initial grayscale interval and the global average grayscale value is calculated, and the difference is squared to obtain the squared difference value. Multiply the total number of pixels corresponding to each initial grayscale interval by the squared difference value to obtain the variance component of each initial grayscale interval; The variance components of all the initial grayscale intervals are summed to obtain the total variance. The total variance is then divided by the total number of pixels to obtain the inter-class variance corresponding to the initial threshold combination.

8. The method according to claim 1, characterized in that, Determining the target threshold combination based on the inter-class variance corresponding to multiple initial threshold combinations includes: The maximum value among the inter-class variances corresponding to multiple initial threshold combinations is determined, and the initial threshold combination corresponding to the maximum value is determined as the target threshold combination.

9. The method according to claim 8, characterized in that, The step of determining the maximum value among the inter-class variances corresponding to multiple initial threshold combinations, and determining the initial threshold combination corresponding to the maximum value as the target threshold combination, includes: Set a variable to record the maximum inter-class variance, and initialize the variable to its initial value; Select one of the initial threshold combinations in a preset order as the current combination to be processed, and obtain the inter-class variance corresponding to the current combination to be processed. Compare the inter-class variance corresponding to the current combination to be processed with the value of the variable currently recorded; If the inter-class variance corresponding to the current combination to be processed is greater than the value currently recorded in the variable, then the variable is updated to the inter-class variance corresponding to the current combination to be processed, and the current combination to be processed is recorded as the optimal threshold combination; Continue to select the next initial threshold combination as the current combination to be processed, and repeat the comparison and update operations; In response to the completion of processing all the initial threshold combinations, the final recorded value of the variable is determined as the maximum value, and the final recorded optimal threshold combination is determined as the target threshold combination.

10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the inkjet printing method according to any one of claims 1-9.