INK-JET RECORDING APPARATUS AND INK-JET RECORDING METHOD TO DETERMINE INK AMOUNT USING BAR CODE
20220410583 · 2022-12-29
Inventors
Cpc classification
B41J29/38
PERFORMING OPERATIONS; TRANSPORTING
B41J2/17509
PERFORMING OPERATIONS; TRANSPORTING
B41J2/2121
PERFORMING OPERATIONS; TRANSPORTING
B41J2/2132
PERFORMING OPERATIONS; TRANSPORTING
B41J2/17566
PERFORMING OPERATIONS; TRANSPORTING
International classification
Abstract
An ink-jet recording apparatus includes a recording unit, a scanning unit, an acquisition unit, and a determination unit. In the recording unit, a plurality of nozzles to apply ink is arrayed. The scanning unit is configured to perform relative scanning with the recording unit on a recording medium. The acquisition unit is configured to acquire input image data that includes a bar code including a plurality of black bars and a plurality of white bars and having a length in a first direction that is greater than a length in a second direction crossing the first direction. The determination unit is configured to determine, based on lengths of the plurality of white bars in the second direction, an amount of ink to be applied to a black bar adjacent to a corresponding white bar in the second direction.
Claims
1. An ink-jet recording apparatus comprising: one or more processors; and one or more memories coupled to the processors storing instructions that, when executed by the processors, cause the processors to function as: a recording unit in which a plurality of nozzles to apply ink is arrayed; a scanning unit configured to perform relative scanning with the recording unit on a recording medium; an acquisition unit configured to acquire input image data that includes a bar code including a plurality of black bars and a plurality of white bars and having a length in a first direction that is greater than a length in a second direction crossing the first direction; and a determination unit configured to determine, based on lengths of the plurality of white bars in the second direction, an amount of ink to be applied to a black bar adjacent to a corresponding white bar in the second direction, wherein, in a case where a length in the second direction of a first white bar adjacent to a first black bar is a first length, the determination unit is configured to determine an amount of ink to be applied per unit area of an edge region of the first black bar, the edge region being adjacent to the first white bar, as a first amount of ink, and wherein, in a case where a length in the second direction of a second white bar adjacent to a second black bar is a second length that is less than the first length, the determination unit is configured to determine an amount of ink to be applied per unit area of an edge region of the second black bar, the edge region being adjacent to the second white bar, as a second amount of ink that is smaller than the first amount of ink.
2. The ink-jet recording apparatus according to claim 1, wherein the first white bar is adjacent to a third black bar and positioned between the first black bar and the third black bar, and the second white bar is adjacent to a fourth black bar and positioned between the second black bar and the fourth black bar, and wherein the determination unit is configured to determine an amount of ink to be applied per unit area of an edge region of the third black bar, the edge region being adjacent to the first white bar, as the first amount of ink, and determine an amount of ink to be applied per unit area of an edge region of the fourth black bar, the edge region being adjacent to the second white bar, as the second amount of ink.
3. The ink-jet recording apparatus according to claim 1, wherein the determination unit is configured to determine an amount of ink to be applied per unit area in a non-edge region of the first black bar, the non-edge region being not adjacent to the first white bar, as an amount that is larger than the first amount of ink, and wherein the determination unit is configured to determine an amount of ink to be applied per unit area in a non-edge region of the second black bar, the non-edge region being not adjacent to the second white bar, as an amount that is larger than the second amount of ink.
4. The ink-jet recording apparatus according to claim 1, wherein the determination unit is configured to determine the first amount of ink for the edge region of the first black bar by reducing a density indicated by the input image data, and for the edge region of the second black bar by reducing a density indicated by the input image data.
5. The ink-jet recording apparatus according to claim 1, wherein the determination unit is configured to determine the first amount of ink on the edge region of the first black bar by thinning out recording data generated based on the input image data, and wherein the determination unit is configured to determine the second amount of ink on the edge region of the second black bar by thinning out recording data generated based on the input image data.
6. The ink-jet recording apparatus according to claim 1, wherein the determination unit is configured to determine the first amount of ink on the edge region of the first black bar by reducing a size of an ink droplet indicated by recording data generated based on the input image data, and wherein the determination unit is configured to determine the second amount of ink on the edge region of the second black bar by reducing a size of an ink droplet indicated by recording data generated based on the input image data.
7. The ink-jet recording apparatus according to claim 1, further comprising a detection unit configured to detect the bar code from the input image data.
8. The ink-jet recording apparatus according to claim 1, wherein regions of the plurality of white bars are formed by application of ink.
9. The ink-jet recording apparatus according to claim 1, wherein regions of the plurality of black bars are formed by application of ink of a color other than black.
10. An ink-jet recording method for an apparatus including a recording unit in which a plurality of nozzles to apply ink is arrayed and a scanning unit configured to perform relative scanning with the recording unit on a recording medium, the method comprising: acquiring input image data that includes a bar code including a plurality of black bars and a plurality of white bars and having a length in a first direction that is greater than a length in a second direction crossing the first direction; and determining, based on lengths of the plurality of white bars in the second direction, an amount of ink to be applied to a black bar adjacent to a corresponding white bar in the second direction, wherein, in a case where a length in the second direction of a first white bar adjacent to a first black bar is a first length, the determining includes determining an amount of ink to be applied per unit area of an edge region of the first black bar, the edge region being adjacent to the first white bar, as a first amount of ink, and wherein, in a case where a length in the second direction of a second white bar adjacent to a second black bar is a second length that is less than the first length, the determining includes determining an amount of ink to be applied per unit area of an edge region of the second black bar, the edge region being adjacent to the second white bar, as a second amount of ink that is smaller than the first amount of ink.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0008]
[0009]
[0010]
[0011]
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
[0021]
DESCRIPTION OF THE EMBODIMENTS
[0022] Exemplary embodiments will be described below with reference to the accompanying drawings. In the following, the term “unit” may refer to a software context, a hardware context, or a combination of software and hardware contexts. In the software context, the term “unit” refers to a functionality, an application, a software module, a function, a routine, a set of instructions, or a program that can be executed by a programmable processor such as a microprocessor, a central processing unit (CPU), or a specially designed programmable device or controller. A memory contains instructions or program that, when executed by the CPU, cause the CPU to perform operations corresponding to units or functions. In the hardware context, the term “unit” refers to a hardware element, a circuit, an assembly, a physical structure, a system, a module, or a subsystem. It may include mechanical, optical, or electrical components, or any combination of them. It may include active (e.g., transistors) or passive (e.g., capacitor) components. It may include semiconductor devices having a substrate and other layers of materials having various concentrations of conductivity. It may include a CPU or a programmable processor that can execute a program stored in a memory to perform specified functions. It may include logic elements (e.g., AND, OR) implemented by transistor circuits or any other switching circuits. In the combination of software and hardware contexts, the term “unit” or “circuit” refers to any combination of the software and hardware contexts as described above
[0023] A first exemplary embodiment is described. The following description will be given based on the assumption that image processing is executed in a main body of a printer, but this is merely an example for embodying the disclosure, and the disclosure is not limited to the following exemplary embodiment.
Description of Ink-jet Recording Apparatus
[0024]
[0025] The recording medium P fed to a recording unit or circuit is pinched at a nip portion between a conveyance roller 101 arranged on a conveyance route and a pinch roller 102 that follows the conveyance roller 101 and conveyed in a Y direction (sub-scanning direction) indicated by an arrow in
[0026] The recording medium P on which an image is recorded is conveyed in accordance with rotation of a discharge roller 105 in the Y direction while being nipped by the discharge roller 105 and a driven roller 106 that follows the discharge roller 105, and is discharged to a discharge tray 107.
[0027] The recording head 303 is detachably mounted on a carriage 108 in such a posture as that the ejection port surface faces the platen 103 and the recording medium P. The carriage 108 is reciprocally moved by driving force of a carriage motor in an X direction along two guide rails 109 and 110. In the course of the movement, the recording head 303 executes an ejection operation for ejecting ink droplets from the ejection ports in accordance with a recording signal, and applies ink onto the recording medium P.
[0028]
[0029] A recording element (not illustrated) is arranged inside each ejection port, and the recording element driven by electric energy generates thermal energy. The thermal energy causes ink to foam, and the ink is ejected in the form of droplets from the ejection port. In the following description, a row of a plurality of arrayed ejection ports that ejects an equal amount of ink in an identical color is hereinafter referred to as a nozzle row for simplification.
[0030] The X direction, in which the carriage 108 moves, is a direction intersecting with the Y direction in which the recording medium P is conveyed, and is referred to as a main-scanning direction. In contrast, the Y direction in which the recording medium P is conveyed is referred to as the sub-scanning direction. Multi-pass recording that forms an image on the recording medium P in a step-by-step manner is performed by alternately repeating movement of the carriage 108 and the recording head 303 as main-scanning that involves recording and conveyance of the recording medium P (sub-scanning)
[0031]
[0032] First, in first scanning, the recording apparatus executes forward recording to record an image in a region A1 using all the nozzles while moving the recording head 303 together with the carriage 108 in a +X direction (forward direction). After the first scanning, the recording apparatus conveys the recording medium P in a +Y direction. A conveyance amount at this time corresponds to a length of all the nozzles arrayed on the recording head 303. The recording apparatus moves the recording head 303 together with the carriage 108 back in a −X direction, and thereafter executes forward recording in second scanning In the second scanning, the recording apparatus moves the recording head 303 together with the carriage 108 in the +X direction again, and records an image in a region A2 using all the nozzles. After the second scanning, the recording apparatus conveys the recording medium P in the +Y direction. A conveyance amount at this time also corresponds to the length of all the nozzles. Thereafter, the recording apparatus discharges the recording medium P in the +Y direction, and ends the recording operation.
[0033] In this manner, the recording method according to the present exemplary embodiment is a one-pass one-way recording method. More specifically, each of the images in predetermined regions (A1 and A2) is completed on the recording medium P by execution of one-way scanning of the recording head 303 one time.
[0034] In the above-mentioned example, after performing the first scanning in the +X direction, the recording apparatus moves the recording head 303 back by performing scanning in the −X direction that does not involve the recording operation, and then performs the second scanning in the +X direction. Alternatively, the scanning in the −X direction may be the second scanning involving the recording operation. That is, the recording apparatus conveys the recording medium P in the +Y direction by the amount corresponding tor the length of all the nozzles without moving the carriage 108 and the recording head 303 back in the −X direction after the first scanning Thereafter, the recording apparatus may be configured to record the image in the region A2 using all the nozzles in the second scanning in the −X direction.
[0035]
[0036] An image processing apparatus main control unit 308 is mainly in charge of creating an image and controlling image data in the image processing apparatus, and includes a CPU, a ROM, and a RAM. An I/F 309 transmits and receives a data signal to and from the recording apparatus. A display unit or circuit 310 displays various kinds of information to a user, and for example, a liquid crystal display (LCD) can be used for the display unit 310. An operation unit or circuit 311 is an operation unit that accepts an operation and an instruction from the user, and for example, a keyboard or a mouse can be used for the operation unit 311. A system bus 312 is a bus that connects the image processing apparatus main control unit 308 and each function unit.
Description of Overview of Recording System
[0037]
[0038] The application 402 is an application that enables insertion of bar code data in an image. In accordance with an instruction from the printer driver 404, the application 402 converts a function necessary for image processing that is provided by the OS 403 and data obtained by the application 402 together into recording data.
[0039] The printer driver 404 rasterizes the received recording data (converts the recording data into bitmap data) in a rasterizing unit 405, and converts the recording data into recording data in a format that can be received by the printer 407. The converted recording data is transmitted to the recording data transmission unit 406, and then transmitted to the printer 407.
[0040] Subsequently, a description is given of processes to be performed until a predetermined character string is transmitted as bar code data to the printer 407 in the recording system according to the present exemplary embodiment.
[0041] The bar code data is image data including a bar code composed of a combination of black bars and white bars. The bar code image is generated by conversion of the predetermined character string into a format composed of the black bars and the white bars using a bar code font.
[0042] When the character string is input to the application 402, the printer driver 404 is called via the OS 403. A request for bar code font information stored in the printer driver 404 is made, and a bar code font designated by the user is set.
[0043] The bar code font information includes the name of a bar code font selected from a plurality of bar code types registered in advance and a height and width of the bar code font. Examples of the bar code font information include a Japanese Article Number (JAN) code, a CODE 39, and a CODE 128. The setting values and image data are transmitted together from the application 402 to the printer driver 404 via the OS 403.
[0044] Thereafter, the rasterizing unit or circuit 405 uses the designated bar code font to rasterize the setting values and image data into bar code data composed of a combination of one-dimensional black bars and white bars. The rasterized data is converted into recording data that can be received by the printer 407, and transmitted to the printer 407 via the recording data transmission unit or circuit 406.
[0045] While the description has been given of the configuration in which the bar code font of the printer driver 404 is called from the application 402 via the OS 403 in the present exemplary embodiment, the configuration is not limited thereto.
Description of Overview of Entire Flow
[0046]
[0047] The processing illustrated in
[0048] In step S501, image data is input. The image data to be input may be vector data or bitmap data.
[0049] In step S502, the input image data is rendered. In a case where the input image data is vector data, the vector data is rasterized. In this processing, there may be a case where the image processing apparatus performs mapping and imposition processing in accordance with the size of a recording medium on which an image is to be recorded.
[0050] Pixel data corresponding to one row of pixels arrayed in a predetermined direction among pixels arranged in a matrix is referred to as raster data. Furthermore, pixel data corresponding to a plurality of rows of arrayed pixels is referred to as band data.
[0051] In a case where the image processing described above is performed in the printer 407, the image processing may be performed with a small capacity of the ROM or the RAM. However, a configuration of sequentially processing the band data is employed in many cases.
[0052] In step S503, a bar code acquisition unit or circuit (not illustrated) acquires a position of a bar code region. A method of rasterizing image data using a bar code font may be employed to generate the bar code data. Alternatively, the bar code data may be initially generated as bitmap data or vector data. Hence, the bar code acquisition unit may acquire the bar code information at the time of rendering in step S502, or may detect the bar code information from edge information after converting the image data into the bitmap data. In addition, there may be employed a method in which the user designates the bar code information on a panel or on the host side, and a method is not specifically limited in the present exemplary embodiment.
[0053] In step S504, a white bar width acquisition unit or circuit (not illustrated) acquires a width of each white bar code region included in the bar code.
[0054] While a mechanism of the bar code will be described below, there are several types of widths of white bars. The white bar width acquisition unit acquires information about the type of each white bar included in the bar code region acquired in step S503. The white bar width acquisition unit may directly acquire information about a width when the bar code is generated using the bar code font, or may acquire the information as the number of pixels from information about a line profile that is orthogonal to a black bar or a white bar after the image data is converted into the bitmap data. An acquisition method is not specifically limited.
[0055] In step S505, the image processing apparatus performs image processing for converting the image data into image data in a format that can be recorded by the printer 407. In the present exemplary embodiment, the image processing apparatus converts the image data generated in step S504 into image data corresponding to a color gamut of the printer 407.
[0056] The image data to be input is data that represents color coordinates of red (R), green (G), and blue (B) in a color space coordinate system, such as standard RGB (sRGB) color space, which are colors that can be expressed by the monitor. Using a known method such as matrix calculation processing or processing using a three-dimensional look up table (LUT), the image processing apparatus converts the input R, G, and B image data each having eight bits into (R, G′, and B′) image data in the color gamut of the printer 407.
[0057] Subsequently, the image processing apparatus converts the R′, G, and B′ image data each having eight bits into image data based on color signal data of ink used in the printer 407. In the present exemplary embodiment, black (K) ink, cyan (C) ink, magenta (M) ink, yellow (Y) ink are used. For this reason, the image processing apparatus converts the image data composed of R, G, and B signals to image data composed of K, C, M, and Y color signals each having eight bits. This color conversion is also performed by making combined use of a three-dimensional LUT and interpolation calculation. As another conversion method, a method such as the matrix calculation processing may be used as in the conversion described above. The number of colors of ink is not limited to four colors of K, C, M, and Y. Other types of ink such as a low density color ink of light cyan (Lc), light magenta (Lm), and gray (Gy), transparent ink, and special color ink may be used by the printer.
[0058] Subsequently, the image processing apparatus performs processing of correcting the image data composed of color signals each having eight bits to adjust the number of dots recorded in the recording medium. Since a relationship between the number of dots recorded in the recording medium and an optical density that is obtained by the number of dots on the recording medium is not a linear relationship, the correction processing is performed to make the number of dots and the optical density in an linear relationship. As a method of converting input data into output data in this adjustment processing, a one-dimensional LUT can be used.
[0059] Subsequently, the image processing apparatus performs quantization processing on image data representing ink colors each having eight bits and having 256 values. With the quantization processing, one-bit binary data, which is either “1” indicating recording or “0” indicating non-recording, is generated for each pixel. Output of the quantization processing may be the number of ink droplets per unit area, and is not limited to the one-bit binary data of either “1” indicating recording or “0” indicating non-recording. The image processing apparatus may be configured to perform the quantization processing to quantize the image data to multi-valued data of two or more bits. As a method of quantization processing, an error diffusion method and a dithering method have been known, and any other methods may be used.
[0060] The image processing apparatus applies ink based on the image data generated in step S505, and the image is thus recorded on the recording medium.
Description of Bar Code
[0061] The bar code is composed of a combination of a plurality of black bars and a plurality of white bars, and each bar has a rectangular shape having two sets of parallel sides. That is, a length of a side forming the rectangle is greater than a length of another side that is orthogonal to the side. Reflectance data of the black bars and white bars aligned in a direction orthogonal to the long sides of bars, that is, a direction in which the short sides of bars are aligned, is read as bar code data. In the present specification, a length orthogonal to the longer sides of each bar, that is, a length of the short sides thereof is referred to as a “width” of each bar. The length in the left and right direction in
[0062] The minimum unit of the width of the black bar or the white bar is called a basic module width or a minimum element width, and the bar code is configured with this width serving as a reference. The width of the black bar or the white bar has a different characteristic depending on a type of the bar code. A binary level bar code is composed of widths in two stages (up to two times the reference), and a multi-level bar code is composed of widths of a plurality of types, such as four stages (up to four times the reference). Typically, the multi-level bar code has a greater number of types of widths than that of the binary level bar code. Hence, the multi-level bar code has a narrow permissible range of a variation in width, and requires higher recording accuracy.
[0063] In each of the left and right regions of the bar code, it is necessary to arrange a marginal region called a quiet zone.
[0064] A necessary size of the marginal region is different depending on a type of the bar code. If the marginal region has a size smaller than the necessary size, there is a possibility that the bar code image is not correctly read as the bar code.
[0065] A red light source is used in a reader for reading the bar code. light is emitted from the light source toward the bar code, and the light reflected from the bar code is read. Thus, to read the bar code appropriately, the color of a black bar region is to be a color that absorbs a wavelength of red color, and the color of a white bar region is to be a color that reflects the wavelength of red color. While bar codes are typically composed of black bars and white bars in many cases, the black bars may have a different color other than black, such as blue and green, and are only required to be formed in a color that absorbs the wavelength of red color. Ink that forms the black bar is not limited to achromatic color ink such as black ink, and process black ink having a color mixture of achromatic colors of cyan, magenta, and yellow may form the black bar. Alternatively, the white bar may be formed in a color that reflects the wavelength of red color such as red and yellow. Hence, a color that forms the black bar may not be black. In addition, a color of the white bar may not be white, and ink may be applied to a space region that is referred to as the white bar.
[0066] In order for the bar code reader to read the bar code appropriately, elements required for the quality of the recorded bar code are standardized by International Standards Organization (ISO)/International Electrotechnical Commission (IEC) 15416 as described below.
[0067] The minimum reflectance is a reflectance that has the lowest value in the entire bar code. The minimum reflectance having a value lower than or equal to 50% of a maximum reflectance means that the bar code can be read.
[0068] A symbol contrast is a difference between the maximum reflectance and the minimum reflectance of the entire bar code.
[0069] The symbol contrast is represented by a value obtained by subtracting a reflectance of the darkest portion of the black bar from a reflectance of the brightest portion of the white bar. If the value of the symbol contrast is larger, the bar code can be read more easily.
[0070] A minimum edge contrast is a minimum value among the values of differences between a reflectance of a white bar and a reflectance of a black bar adjacent to the white bar. If the minimum value is greater than or equal to 15%, the bar code can be read.
[0071] Modulation is a ratio of the minimum edge contrast to the symbol contrast. If a difference between the reflectance of the white bar and the reflectance of the black bar adjacent to the white bar becomes larger, the bar code can be read more easily.
[0072] A defect is a void in the black bar or a smear (spot) in the white bar. When there occur a peak portion representing the maximum reflectance in the white bar and a valley portion opposite to the peak and causing unevenness, and a difference between the maximum reflectance in the peak portion and a reflectance in the valley portion is smaller, it means that the bar code easier can be read more easily. In the black bar, a peak portion and a valley portion are reversed from those of the white bar.
[0073] Decodability is a tolerance range used when a value is obtained according to a decoding rule defined in each bar code. When actually measured values of the width of the black bar and the width of the white bar are closer to a theoretical value, reading of the bar code becomes easier.
Issue of Bar Code Recording
[0074] Among the above-mentioned elements, the modulation can pose an issue in the ink jet recording apparatus. In the bar code image recorded by the ink jet recording apparatus, there is a case where a width of a black bar region constituting the bar code becomes larger due to bleeding of ink.
[0075] Since the bar code is formed by a black bar and two white bars adjacent to the black bar, the white bar region is deformed due to bleeding of ink of the black bar.
[0076] The bar code is composed of the black bars and the white bars having a plurality of types of widths, especially occurrence of the above-mentioned issue in the white bar region having a smaller width leads to a failure in obtaining of a sufficient reflectance. Reduction in reflectance of the white bar region reduces a difference from the reflectance of the adjacent black bar and reduces the modulation, resulting in a failure in reading the bar code correctly.
[0077] In addition, to address the bleeding of ink, it is effective to reduce an amount of ink applied per unit area. However, since the symbol contrast is required for the bar code, the minimum reflectance is reduced if thinning-out processing for reducing ink uniformly is performed. As a result, the bar code cannot be read correctly as in the case of the above-described issue.
[0078] A characteristic configuration of the present exemplary embodiment to solve the above-mentioned issue is described below.
Description of Characteristic Recording Control
[0079] In the present exemplary embodiment, density correction is performed on black bars on respective sides of a white bar based on information indicating a width of the white bar in the bar code acquired in step S504 to suppress reduction in reading performance of the bar code.
[0080]
[0081] Density correction on the black bar on each side of the white bar can be implemented if, for example, the correction is executed after conversion of the eight-bit image data with the use of the one-dimensional LUT in step S505. In this case, quantization processing is performed on the corrected image data and ink is applied based on the recording data that has undergone the quantization processing, and therefore bleeding of ink can be suppressed in recording of the bar code.
[0082]
[0083] In
[0084] Similarly, the white bar indicated in a region 702 is a region having a width twice the basic width. Hence, density correction is performed on regions 705 and 706 corresponding to edge regions of two black bars on both sides of the white bar such that the densities of the regions 705 and 706 are corrected to 80%.
[0085] Since density correction is not performed on a non-edge region located on the inner side of the edge region of the black bar, the density remains 100% and the pixels remain black pixels.
[0086] In the example illustrated in
[0087]
[0088] A difference from the method discussed in Japanese Patent Application Laid-Open No. 2010-91590 is now described. Japanese Patent Application Laid-Open No. 2010-91590 aims to solve an issue that there occurs a variation in width between recorded black bars depending on widths of white bars adjacent to the respective black bars, even if the black bars have an identical width on image data. To address this issue, the width of a black bar is corrected based on a sum of widths of white bars on the respective sides of the black bar. At this this time, the correction is performed so that the adjacent black bar becomes thinner as the width of the white bar is larger. Regions referred to in this correction are one black bar and adjacent white bars on the respective sides of the black bar.
[0089] In the present exemplary embodiment, on the other hand, the issue to be solved is that a white bar that has a small width is deformed due to bleeding of ink. To address this issue, an amount of ink to be applied to adjacent black bar regions on the respective sides of a white bar is adjusted in accordance with a width of the white bar. At this time, the image processing apparatus performs correction so that the amount of ink to be applied to the black bar regions on the respective sides of the white bar is adjusted to be smaller as the width of the white bar becomes smaller. Regions referred to in this correction are one white bar and black bars on the respective sides of the white bar.
[0090] In this manner, in the present exemplary embodiment, the amount of ink to be applied to the two black bars adjacent to the white bar is determined based on the width of the white bar. Specifically, the amount of ink to be applied per unit area is reduced such that the density of black becomes lower than that on the original image data. At this time, regions in which the amount of ink is reduced may be only regions on edge portions (edge regions) of the black bars adjacent to the white bar, or may be the entire black bars. In a case where the density of each of the entire black bars is reduced, a ratio of reducing the density of one of the edge regions that constitute the respective black bars and a ratio of reducing the density of the other edge region are different depending on the width of an adjacent white bar. Thus, the density of each of the entire black bars may be adjusted to an intermediate value uniformly or may be adjusted to change by gradation.
[0091] In the example illustrated in
[0092] In a case where an ink jet recording apparatus records an image, applied ink temporarily stays on the surface of the recording medium, such as paper, in an overflow state before the ink is absorbed in the recording medium, thereby causing bleeding of ink. For this reason, to prevent the bleeding of ink, it is important to perform such correction as to reduce an amount of ink in a surface region, instead of performing local correction. In the present exemplary embodiment, density correction is performed on adjacent black bars on the respective sides of a white bar region in accordance with the width of the white bar region. In a case where there is a possibility that the white bar becomes further thinner due to bleeding of ink and hence the bar code cannot be read, the amount of ink to be applied to the adjacent black bars is reduced. In a case where the white bar has a sufficiently large width, on the other hand, the amount of ink to be applied to the black bars on the respective sides of the white bar is increased as compared with the case of the white bar having a small width. With this processing, it makes it possible to prevent reduction in modulation in a bar code image while maintaining a contrast between a black bar and a white bar in the bar code image. As a result, it is possible to record the bar code having high reading accuracy.
[0093] Subsequently, a second exemplary embodiment is described. A description about a configuration similar to that in the first exemplary embodiment is omitted, and only parts different from the first exemplary embodiment are described.
[0094] In the above-mentioned first exemplary embodiment, a density per unit area of ink to be applied to the black bar region on each side of the white bar is determined based on the width of the white bar in the bar code. In the present exemplary embodiment, processing of thinning out is performed on an edge region of a black bar on each side of a white bar based on a width of a white bar region in a bar code to reduce a widths of black bars to be recorded.
[0095]
[0096] The edge correction on the two black bars located on the respective sides of the white bar can be implemented by execution of processing such as masking on the image data input at the beginning in step S505.
[0097]
[0098] In the present exemplary embodiment, processing of thinning out the edge regions of the two black bars on the respective sides of the white bar in accordance with the width of the white bar region. At this time, since there is a possibility that a white bar having a small width is deformed due to bleeding of ink and hence the bar code cannot be read, a ratio of thinning-out on the adjacent black bars is set to a higher ratio as the white bar has a smaller width. In a case where the white bar has a sufficiently large width, on the other hand, a ratio of thinning-out on the adjacent black bars is reduced as compared with the case of the white bar having a small width. With this processing, it makes it possible to prevent reduction in modulation of a bar code image while maintaining a contrast between a black bar and a white bar in the bar code image. As a result, it is possible to record the bar code with high reading accuracy.
[0099] The thinning-out processing is performed only on the regions corresponding to the edge portions of the black bars in the present exemplary embodiment, but the thinning-out processing may be performed uniformly on the entire black bars as in the first exemplary embodiment. Alternatively, the thinning-out processing may be performed on only one of the black bars on the respective sides of the white bar.
[0100] Subsequently, a third exemplary embodiment is described. Also in the present exemplary embodiment, a description of a configuration similar to that in the first exemplary embodiment is omitted, and only parts different from the first exemplary embodiment are described.
[0101] In the present exemplary embodiment, processing of reducing the number of dots in each of edge regions of black bars on the respective sides of a white bar is performed based on a width of the white bar region in the bar code.
[0102]
[0103]
[0104] In the present exemplary embodiment, reduction processing is performed such that the number of dots of ink to be applied to the two black bars on the respective sides of the white bar is reduced to be less than the number of dots to be applied to a normal region in accordance with the width of the white bar region. At this time, there is a possibility that a white bar having a small width is deformed due to bleeding of ink and hence the bar code cannot be read, so that the number of dots to be applied to a black bar adjacent to the white bar having the small width is reduced. In a case where the white bar has a sufficiently large width, on the other hand, the number of dots to be applied to the adjacent black bar is increased as compared with the case of the white bar having the small width. With this processing, it is possible to maintain a symbol contrast while preventing reduction in modulation in black bars and white bars in the bar code image. As a result, it is possible to record the bar code with high reading accuracy.
[0105] Subsequently, a fourth exemplary embodiment is described. Also in the present exemplary embodiment, a description of a configuration similar to that in the first exemplary embodiment is omitted, and only parts different from the first exemplary embodiment are described.
[0106] In the present exemplary embodiment, processing of changing a dot size of ink to be applied to edge regions of black bars on the respective sides of a white bar is performed based on a width of the white bar region in the bar code.
[0107]
[0108] In a case where the width of the white bar is a minimum unit width of “1”, the dot size of ink to be applied to each of the black bars on the respective sides of the white bar is reduced. The dot size of ink to be applied to each black bar is determined to be the same as that at the time of normal recording if the width of the white bar becomes larger. With this processing, it is possible to maintain a high symbol contrast while preventing reduction in modulation. The processing of determining the dot size of ink to be applied to each of the black bars on the respective sides of the white bar is implemented by the quantization processing performed at the end of step S505. Specifically, in a case where there is data of “1” indicating recording in a target pixel where the dot size is to be changed, the dot size to be assigned to the target pixel is determined so that the dot size to be applied to the pixel becomes a size that is smaller than the dot size to be applied to a pixel that is not a target for the change.
[0109]
[0110] In the present exemplary embodiment, processing of reducing the dot size of ink to be applied to the two black bars on the respective sides of the white bar is performed in accordance with the width of the white bar region. At this time, there is a possibility that a white bar having a small width is deformed due to bleeding of ink and hence the bar code cannot be read, so that the dot size used for recording is reduced with respect to the black bars adjacent to the white bar having a small width. In a case where the white bar has a sufficiently large width, on the other hand, the dot size of ink to be applied to each black bar is increased as compared with the case of the white bar having the small width. With this processing, a high symbol contrast is maintained while preventing reduction in modulation in a bar code image. As a result, it is possible to record the bar code image with high reading accuracy.
Other Exemplary Embodiments
[0111] While the description has been given of the thermal recording head that ejects ink by driving of the recording element in the above-mentioned exemplary embodiments, a piezoelectric recording head that ejects ink by applying a voltage to a piezoelectric element to change the volume may be used.
[0112] While the description has been given of the example of a serial printer that records an image while causing the recording head in which the nozzle rows are arrayed in the conveyance direction of the recording medium to perform scanning in the direction crossing the conveyance direction, the recording apparatus is not limited thereto as long as it can record the image by relative scanning of the recording medium with the recording head.
[0113] For example, the recording apparatus may be a full multi-type recording apparatus capable of recording the entire region of the recording medium by performing relative scanning one time using a line head in which nozzles are arrayed in the direction orthogonal to the conveyance direction of the recording medium.
[0114] Due to the configuration that a bar code is read by reading light reflected from a portion irradiated with light emitted from a light source, the recording apparatus needs not be configured to read the entire region of each bar of the bar code in a longitudinal direction of the bars. That is, as long as the processing described above in the exemplary embodiments is performed only in major part of the edge portions in the bar code, the bar code may include a portion that is not subjected to the processing.
[0115] The disclosure enables recording of a high-quality bar code image in which a white bar region included in the bar code is not deformed and prevents reduction in image quality.
Other Embodiments
[0116] Embodiment(s) of the disclosure can also be realized by a computer of a system or apparatus that reads out and executes computer executable instructions (e.g., one or more programs) recorded on a storage medium (which may also be referred to more fully as a ‘non-transitory computer-readable storage medium’) to perform the functions of one or more of the above-described embodiment(s) and/or that includes one or more circuits (e.g., application specific integrated circuit (ASIC)) for performing the functions of one or more of the above-described embodiment(s), and by a method performed by the computer of the system or apparatus by, for example, reading out and executing the computer executable instructions from the storage medium to perform the functions of one or more of the above-described embodiment(s) and/or controlling the one or more circuits to perform the functions of one or more of the above-described embodiment(s). The computer may comprise one or more processors (e.g., central processing unit (CPU), micro processing unit (MPU)) and may include a network of separate computers or separate processors to read out and execute the computer executable instructions. The computer executable instructions may be provided to the computer, for example, from a network or the storage medium. The storage medium may include, for example, one or more of a hard disk, a random-access memory (RAM), a read only memory (ROM), a storage of distributed computing systems, an optical disk (such as a compact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)), a flash memory device, a memory card, and the like.
[0117] While the disclosure has been described with reference to exemplary embodiments, it is to be understood that the disclosure is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
[0118] This application claims the benefit of Japanese Patent Application No. 2021-108172, filed Jun. 29, 2021, which is hereby incorporated by reference herein in its entirety.