[go: up one dir, main page]

CN102455628B - Image forming apparatus - Google Patents

Image forming apparatus Download PDF

Info

Publication number
CN102455628B
CN102455628B CN201110328486.8A CN201110328486A CN102455628B CN 102455628 B CN102455628 B CN 102455628B CN 201110328486 A CN201110328486 A CN 201110328486A CN 102455628 B CN102455628 B CN 102455628B
Authority
CN
China
Prior art keywords
color
pattern
image
group
occurrence number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201110328486.8A
Other languages
Chinese (zh)
Other versions
CN102455628A (en
Inventor
原田博之
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from JP2010243986A external-priority patent/JP5439339B2/en
Priority claimed from JP2010243987A external-priority patent/JP5241796B2/en
Application filed by Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Publication of CN102455628A publication Critical patent/CN102455628A/en
Application granted granted Critical
Publication of CN102455628B publication Critical patent/CN102455628B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03GELECTROGRAPHY; ELECTROPHOTOGRAPHY; MAGNETOGRAPHY
    • G03G15/00Apparatus for electrographic processes using a charge pattern
    • G03G15/50Machine control of apparatus for electrographic processes using a charge pattern, e.g. regulating differents parts of the machine, multimode copiers, microprocessor control
    • G03G15/5025Machine control of apparatus for electrographic processes using a charge pattern, e.g. regulating differents parts of the machine, multimode copiers, microprocessor control by measuring the original characteristics, e.g. contrast, density
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03GELECTROGRAPHY; ELECTROPHOTOGRAPHY; MAGNETOGRAPHY
    • G03G15/00Apparatus for electrographic processes using a charge pattern
    • G03G15/01Apparatus for electrographic processes using a charge pattern for producing multicoloured copies
    • G03G15/0105Details of unit
    • G03G15/0121Details of unit for developing

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)
  • Control Or Security For Electrophotography (AREA)
  • Color Image Communication Systems (AREA)

Abstract

本发明提供一种图像形成装置,包括:图像数据获取部,获取表示彩色图像的图像数据;频数分布获取部,根据由所述图像数据获取部获取的图像数据,将该图像数据的各像素的颜色分配给各组,以获取表示各颜色的出现次数的频数分布;以及颜色设定部,根据由所述频数分布获取部获取的频数分布,将出现次数最多的第一颜色设定为所述彩色图像的背景色,将出现次数仅次于所述第一颜色的第二颜色设定为所述彩色图像中的文字的颜色,将出现次数少于所述第二颜色的颜色设定为所述彩色图像中的花样颜色,该花样颜色是所述彩色图像中的特定花样的颜色。由此,对包含颜色属于有色彩系的花样的图像进行打印时,能够提高花样的颜色再现性。

The present invention provides an image forming apparatus including: an image data acquisition unit that acquires image data representing a color image; and a frequency distribution acquisition unit that, based on the image data acquired by the image data acquisition unit, obtains assigning colors to each group to obtain a frequency distribution representing the number of occurrences of each color; and a color setting section that sets the first color that appears most often as the first color based on the frequency distribution obtained by the frequency distribution obtaining section. For the background color of the color image, the second color that appears second only to the first color is set as the color of the text in the color image, and the color that appears less than the second color is set as the color of the text in the color image. The pattern color in the color image, the pattern color is the color of a specific pattern in the color image. As a result, when an image including a pattern whose color belongs to a color system is printed, the color reproducibility of the pattern can be improved.

Description

图像形成装置image forming device

技术领域technical field

本发明涉及形成彩色图像的图像形成装置。The present invention relates to an image forming apparatus that forms a color image.

背景技术Background technique

在有些打印机、复印机、数码复合机等图像形成装置中,以往就设有彩色打印模式和黑白模式。其中彩色打印模式包括全色模式和双色模式。In some image forming apparatuses such as printers, copiers, and digital composite machines, conventionally, a color printing mode and a black and white mode are provided. The color printing modes include full-color mode and two-color mode.

在全色模式下,利用图像形成装置中装备的所有颜色的调色剂来进行打印,在双色模式下,利用黑色调色剂和黑色以外的一个“属于有色彩系的颜色”(特定颜色)来进行打印。“属于有色彩系的颜色”是通过将多个彩色调色剂混合而获得的颜色。In the full-color mode, printing is performed using toners of all colors equipped in the image forming apparatus, and in the two-color mode, printing is performed using black toner and a "color belonging to a color system" (specific color) other than black to print. "A color belonging to a chromatic system" is a color obtained by mixing a plurality of color toners.

所述图像形成装置如下实行双色模式。The image forming apparatus implements the two-color mode as follows.

所述图像形成装置具有例如分别与蓝色成分、绿色成分、红色成分一一对应的多个颜色成分计数部。各颜色成分计数部对于图像数据包含的多个像素中自己所对应的颜色的像素进行计数。The image forming apparatus includes, for example, a plurality of color component counting units corresponding to blue components, green components, and red components on a one-to-one basis. Each color component counting unit counts pixels of its corresponding color among a plurality of pixels included in the image data.

并且,所述图像形成装置将计数值最大的颜色成分计数部所对应的颜色设定为特定颜色(特定的一个颜色)。接着,该图像形成装置用黑色打印图像数据中的黑色部分,用所设定的特定颜色来打印彩色部分。In addition, the image forming apparatus sets the color corresponding to the color component count unit having the largest count value as a specific color (specific one color). Next, the image forming apparatus prints the black part in the image data in black, and prints the color part in the set specific color.

一般而言,不少商务文件即使其大部分由黑色文字构成,但对于企业标志(logo)还是要用属于有色彩系的颜色来进行打印。这是因为标志的颜色是代表企业的重要因素之一。另外,在由黑色文字构成的文件中只对下划线和涂色部分用属于有色彩系的颜色来进行打印的情况也不少。Generally speaking, even though many business documents are mostly composed of black characters, the corporate logo (logo) still needs to be printed in a color that belongs to the color system. This is because the color of a logo is one of the important factors that represent a business. In addition, in a document composed of black characters, it is not uncommon to print only the underlined and colored parts in colors belonging to the color system.

而且,标志的颜色在很多情况下是代表企业本身的“企业形象颜色”,因此用户要求在纸张上忠实地再现标志的颜色。此外,下划线和涂色部分也忠实地再现于纸张上为宜。Furthermore, since the color of the logo is often the "corporate image color" representing the company itself, users request that the color of the logo be faithfully reproduced on paper. In addition, the underlined and colored parts are also faithfully reproduced on paper.

然而,在利用所述图像形成装置,以双色模式打印上述的只有标志、下划线、涂色部分等的颜色属于有色彩系的文件时,会发生以下问题。However, when the aforementioned image forming apparatus prints the above-mentioned document in which only colors such as logos, underlines, and colored parts belong to the color system in a two-color mode, the following problems occur.

即,由于所述图像形成装置利用计数值最大的颜色成分计数部所对应的颜色来进行彩色部分的打印,因此可为彩色部分的打印使用的颜色被限定于预先分配给各颜色成分计数部的颜色中的任一个。That is, since the image forming apparatus prints the color portion using the color corresponding to the color component counting unit with the largest count value, the colors that can be used for printing the color portion are limited to those previously allocated to each color component counting unit. any of the colors.

所以,即使要打印的彩色图像除了黑色以外只使用一个颜色,在双色模式下实际被打印出来的彩色部分的颜色也会偏离彩色图像中彩色部分的真正颜色。Therefore, even if the color image to be printed uses only one color other than black, the color of the color part actually printed in the two-color mode will deviate from the true color of the color part in the color image.

发明内容Contents of the invention

本发明的目的在于提供一种图像形成装置,对包含颜色属于有色彩系的花样的图像进行打印时,能够提高花样的颜色再现性。An object of the present invention is to provide an image forming apparatus capable of improving the color reproducibility of a pattern when printing an image including a pattern whose color belongs to a chromatic system.

本发明提供一种图像形成装置,其特征在于包括:图像数据获取部,获取表示彩色图像的图像数据;频数分布获取部,根据由所述图像数据获取部获取的图像数据,将该图像数据的各像素的颜色分配给各组,以获取表示各颜色的出现次数的频数分布;以及颜色设定部,根据由所述频数分布获取部获取的频数分布,将出现次数最多的第一颜色设定为所述彩色图像的背景色,将出现次数仅次于所述第一颜色的第二颜色设定为所述彩色图像中的文字的颜色,其中,当满足包含规定条件的判断条件时,所述颜色设定部将出现次数仅次于所述第二颜色的第三颜色设定为作为所述彩色图像中的特定花样的颜色的花样颜色,所述规定条件是指,包含所述第一颜色、第二颜色及所述第三颜色的规定的对象颜色的出现次数之和与所述彩色图像的全像素数之间的差小于预先规定的花样判断值。The present invention provides an image forming apparatus, characterized by comprising: an image data acquisition unit that acquires image data representing a color image; and a frequency distribution acquisition unit that, based on the image data acquired by the image data acquisition unit, obtains The color of each pixel is assigned to each group to obtain a frequency distribution representing the number of occurrences of each color; and the color setting section sets the first color with the largest number of appearances based on the frequency distribution obtained by the frequency distribution acquisition section. is the background color of the color image, and the second color that appears second only to the first color is set as the color of the text in the color image, wherein when the judgment condition including the specified condition is satisfied, the The color setting unit sets a third color that appears second only to the second color as the pattern color that is the color of the specific pattern in the color image, and the predetermined condition is that the first color is included. The difference between the sum of the number of occurrences of the predetermined target color of the color, the second color and the third color and the total number of pixels of the color image is smaller than a predetermined pattern judgment value.

此外,本发明提供一种图像形成装置,其特征在于包括:图像数据获取部,获取表示彩色图像的图像数据;频数分布获取部,根据由所述图像数据获取部获取的图像数据,将该图像数据的各像素的颜色分配给各组,以获取表示各颜色的出现次数的频数分布;以及颜色设定部,根据由所述频数分布获取部获取的频数分布,将出现次数最多的第一颜色设定为所述彩色图像的背景色,将出现次数仅次于所述第一颜色的第二颜色设定为所述彩色图像中的文字的颜色,其中,所述颜色设定部将所述频数分布中出现次数少于所述第二颜色的多个颜色设定为作为所述彩色图像中的特定花样的颜色的花样颜色,并且,根据所述出现次数少于所述第二颜色的任一颜色的出现次数、所述第一颜色的出现次数、以及所述第二颜色的出现次数,决定是否设定全色花样模式,该全色花样模式是利用所述花样颜色来打印所述特定花样的模式,所述图像形成装置还包括控制部,当所述颜色设定部设定所述全色花样模式时,所述控制部利用所述第二颜色的调色剂来打印所述彩色图像中的文字,并利用所述花样颜色的调色剂来打印所述特定花样。Furthermore, the present invention provides an image forming apparatus characterized by comprising: an image data acquisition unit that acquires image data representing a color image; and a frequency distribution acquisition unit that converts the image The color of each pixel of the data is assigned to each group to obtain a frequency distribution representing the number of occurrences of each color; and the color setting section assigns the first color that appears most frequently based on the frequency distribution obtained by the frequency distribution obtaining section. set as the background color of the color image, and set a second color second only to the first color as the color of the text in the color image, wherein the color setting part sets the A plurality of colors appearing less than the second color in the frequency distribution is set as a pattern color that is a color of a specific pattern in the color image, and, based on any of the colors appearing less than the second color The number of appearances of a color, the number of appearances of the first color, and the number of appearances of the second color determine whether to set the full-color pattern mode. The full-color pattern mode is to use the pattern color to print the specified color. pattern mode, the image forming apparatus further includes a control unit, when the color setting unit sets the full-color pattern mode, the control unit uses the toner of the second color to print the color text in the image, and print the specific design using toner of the color of the design.

特定花样例如是标志、下划线、涂色部分等非文字图像。通常,文件原稿在白色薄片体上记载文字而构成。并且,在这种文件原稿中往往记载有彩色的标志、下划线等花样。这样,对于大部分由文字构成而一部分使用颜色的图像,即花样的像素数小于预先规定的大小判断值的图像而言,薄片体的白色成为图像的背景。因此,这种文件原稿的图像数据包含的颜色中白色的出现次数最多。并且,文字的颜色的出现次数仅次于白色多。The specific patterns are, for example, non-character images such as logos, underlines, and colored parts. Usually, a document manuscript is formed by writing characters on a white sheet. In addition, patterns such as colored marks and underlines are often described in such document manuscripts. In this way, for an image mostly composed of characters and partly colored, that is, an image whose number of pixels of the design is smaller than a predetermined size determination value, the white color of the sheet becomes the background of the image. Therefore, the image data of such a document original contains colors in which white appears most frequently. In addition, the number of appearances of the color of the characters is second only to that of white.

于是,采用所述结构,将出现次数最多的第一颜色设定为彩色图像的背景色,将出现次数仅次于第一颜色的第二颜色设定为彩色图像中的文字的颜色,并将出现次数少于第二颜色的颜色设定为彩色图像中特定花样的颜色,即花样颜色,因此,在打印包括彩色花样的图像时,能够提高该花样的颜色再现性。Therefore, with the above structure, the first color with the largest number of appearances is set as the background color of the color image, the second color with the number of appearances next to the first color is set as the color of the text in the color image, and The color whose appearance frequency is less than the second color is set as the color of the specific pattern in the color image, that is, the pattern color, so when printing an image including the color pattern, the color reproducibility of the pattern can be improved.

附图说明Description of drawings

图1是本发明的实施方式涉及的图像形成装置的概略剖视图。FIG. 1 is a schematic cross-sectional view of an image forming apparatus according to an embodiment of the present invention.

图2是表示图1所示的图像形成装置的电结构的一个例子的方框图。FIG. 2 is a block diagram showing an example of an electrical configuration of the image forming apparatus shown in FIG. 1 .

图3是表示由图像数据示出的文件原稿的图像的一个例子的概念说明图。FIG. 3 is a conceptual explanatory diagram showing an example of an image of a document manuscript represented by image data.

图4A是频数分布图的一个例子,表示图像数据中各像素的颜色的出现次数。FIG. 4A is an example of a frequency distribution diagram showing the number of occurrences of the color of each pixel in image data.

图4B是频数分布图的一个例子,表示图像数据中各像素的颜色的出现次数。FIG. 4B is an example of a frequency histogram showing the number of occurrences of the color of each pixel in the image data.

图4C是频数分布图的一个例子,表示图像数据中各像素的颜色的出现次数。FIG. 4C is an example of a frequency histogram showing the number of occurrences of the color of each pixel in the image data.

图5是表示图2所示的图像形成装置的工作例子的流程图。FIG. 5 is a flowchart showing an example of the operation of the image forming apparatus shown in FIG. 2 .

图6是表示图2所示的图像形成装置的工作例子的流程图。FIG. 6 is a flowchart showing an example of the operation of the image forming apparatus shown in FIG. 2 .

图7是表示图2所示的图像形成装置的工作例子的流程图。FIG. 7 is a flowchart showing an example of the operation of the image forming apparatus shown in FIG. 2 .

图8是表示图2所示的图像形成装置的工作例子的流程图。FIG. 8 is a flowchart showing an example of the operation of the image forming apparatus shown in FIG. 2 .

图9是表示图6所示的颜色设定部的其他工作例子的流程图。Fig. 9 is a flowchart showing another example of the operation of the color setting unit shown in Fig. 6 .

图10是表示频数分布的一个例子的概念说明图,其中示出共享青色的上序4位、品红色的上序4位、黄色的上序4位的各颜色群的出现次数。10 is a conceptual explanatory diagram showing an example of a frequency distribution, in which the frequency of occurrence of each color group sharing the top 4 bits of cyan, the top 4 bits of magenta, and the top 4 bits of yellow is shown.

图11是表示频数分布的一个例子的概念图,其中示出用直线连接第一颜色群所属的群集合体和第二颜色群所属的群集合体来形成的长方体区域。11 is a conceptual diagram showing an example of a frequency distribution, in which a cuboid region formed by connecting the cluster aggregate to which the first color group belongs and the cluster aggregate to which the second color cluster belongs is shown by a straight line.

图12是使群集合体的结构例子模式化的立体图。Fig. 12 is a perspective view schematically showing a structural example of a cluster aggregate.

图13是使群集合体的结构例子模式化的分解立体图。Fig. 13 is an exploded perspective view schematically illustrating a structural example of a cluster assembly.

图14是用于说明设定单色花样模式时由频数分布获取部及颜色设定部进行的处理的概念说明图。14 is a conceptual explanatory diagram for explaining processing performed by a frequency distribution acquisition unit and a color setting unit when a monochrome pattern mode is set.

图15是表示图1所示的图像形成装置的电结构的其他例子的方框图。FIG. 15 is a block diagram showing another example of the electrical configuration of the image forming apparatus shown in FIG. 1 .

图16是表示图15所示的图像形成装置的工作例子的流程图。FIG. 16 is a flowchart showing an example of the operation of the image forming apparatus shown in FIG. 15 .

图17是表示图15所示的图像形成装置的工作例子的流程图。FIG. 17 is a flowchart showing an example of the operation of the image forming apparatus shown in FIG. 15 .

图18是表示图15所示的图像形成装置的工作例子的流程图。FIG. 18 is a flowchart showing an example of the operation of the image forming apparatus shown in FIG. 15 .

具体实施方式Detailed ways

下面,根据附图说明本发明的实施方式。在各附图中附上同一标记的结构表示同一结构,故省略说明。另外,在以下实施方式中,将利用青色(C)、品红色(M)、黄色(Y)和黑色(K)的各调色剂来进行全色打印的彩色图像形成装置作为图像形成装置的例子。Embodiments of the present invention will be described below with reference to the drawings. The configurations attached with the same symbols in the respective drawings indicate the same configurations, and therefore description thereof will be omitted. In addition, in the following embodiments, a color image forming apparatus that performs full-color printing using each toner of cyan (C), magenta (M), yellow (Y), and black (K) is used as an example of the image forming apparatus. example.

不过,图像形成装置也可以利用红色、绿色、蓝色和黑色的各调色剂来进行全色打印。However, the image forming apparatus can also perform full-color printing using each toner of red, green, blue, and black.

(第一实施方式)(first embodiment)

图1是本发明的实施方式涉及的图像形成装置的概略剖视图。图像形成装置1包括图像读取部200和图像形成主体部22。图像读取部200具有原稿提供部210、扫描部220、CIS(contact imagesensor,接触式图像传感器)231、在图像形成主体部22的前部突出设置的用户界面部I以及后面叙述的反转机构。FIG. 1 is a schematic cross-sectional view of an image forming apparatus according to an embodiment of the present invention. The image forming apparatus 1 includes an image reading unit 200 and an image forming main unit 22 . The image reading unit 200 has a document supply unit 210, a scanner unit 220, a CIS (contact image sensor, contact image sensor) 231, a user interface unit 1 protruding from the front of the image forming main unit 22, and a reversing mechanism described later. .

原稿提供部210具有ADF(Automatic Document Feeder,自动供稿装置),并且包括原稿盘211、抽取辊212、压板(platen)213、出纸辊214及出纸盘215。原稿盘211用于载置作为读取对象的原稿。载置于原稿盘211上的原稿被抽取辊212一张张地抽取,并隔着间隙依次输送至压板213。原稿经过压板213后,被出纸辊214依次排出到出纸盘215。The document supply unit 210 has an ADF (Automatic Document Feeder, automatic document feeder), and includes a document tray 211 , a take-up roller 212 , a platen 213 , a paper discharge roller 214 , and a paper discharge tray 215 . The document tray 211 is used to place documents to be read. The originals placed on the original tray 211 are picked up one by one by the pick-up roller 212 , and are sequentially conveyed to the platen 213 with gaps therebetween. After the document passes through the platen 213 , it is sequentially discharged to the paper discharge tray 215 by the paper discharge roller 214 .

在与压板213相对的位置中沿原稿输送方向比读取位置P靠上游的预先规定的位置上,设置有检测纸张的时机传感器(图中省略),根据该时机传感器的输出请求,调整向读取位置P输送原稿的时机。所述时机传感器例如由光电断路器构成。A timing sensor (omitted in the figure) for detecting paper is provided at a predetermined position upstream of the reading position P in the document conveyance direction among the positions facing the platen 213, and the reading direction is adjusted according to the output request of the timing sensor. Take the timing of feeding the original at position P. The timing sensor is constituted by, for example, a photo interrupter.

扫描部220以光学方式读取原稿的图像,生成图像数据。扫描部220具有玻璃221、光源222、第一反射镜223、第二反射镜224、第三反射镜225、第一支架226、第二支架227、成像镜228及CCD(Charged Coupled Device,电荷耦合元件)229。The scanner unit 220 optically reads an image of a document to generate image data. Scanning section 220 has glass 221, light source 222, first reflector 223, second reflector 224, third reflector 225, first support 226, second support 227, imaging mirror 228 and CCD (Charged Coupled Device, charge coupled element) 229.

该扫描部220将冷阴极荧光灯管等白色萤光灯用作为光源222,并且由第一反射镜223、第二反射镜224、第三反射镜225、第一支架226、第二支架227及成像镜228将来自原稿的光引导到CCD229。扫描部220由于将冷阴极荧光灯管等白色萤光灯用作为光源222,因此其颜色再现性优越于将三色LED等用作为光源的后述的CIS231。The scanning unit 220 uses a white fluorescent lamp such as a cold cathode fluorescent lamp as a light source 222, and consists of a first reflector 223, a second reflector 224, a third reflector 225, a first support 226, a second support 227, and an imaging system. Mirror 228 guides light from the document to CCD 229 . Since the scanning unit 220 uses a white fluorescent lamp such as a cold cathode fluorescent tube as the light source 222, its color reproducibility is superior to that of the CIS 231 described later that uses a three-color LED or the like as a light source.

当不利用原稿提供部210来读取原稿时,用户用手将原稿载置于玻璃221上。光源222和第一反射镜223支撑在第一支架226上,第二反射镜224和第三反射镜225支撑在第二支架227上。When the document is not read by the document supply unit 210 , the user places the document on the glass 221 by hand. The light source 222 and the first reflector 223 are supported on the first support 226 , and the second reflector 224 and the third reflector 225 are supported on the second support 227 .

图像读取部200的原稿读取方法采用以下两种读取模式,即:平台读取模式,由扫描部220读取载置于玻璃221上的原稿;以及ADF读取模式,利用原稿提供部210(ADF)获取原稿,并在输送原稿的过程中读取该原稿。The document reading method of the image reading unit 200 adopts the following two reading modes, that is, the platform reading mode, in which the document placed on the glass 221 is read by the scanning unit 220; The 210 (ADF) acquires an original and reads the original while it is being conveyed.

在平台读取模式下,光源222照射载置于玻璃221上的原稿,主扫描方向的一行反射光按第一反射镜223、第二反射镜224、第三反射镜225的顺序被反射,入射到成像镜228中。入射到成像镜228中的光在CCD229的受光表面成像。In the platform reading mode, the light source 222 irradiates the original placed on the glass 221, and a line of reflected light in the main scanning direction is reflected in the order of the first mirror 223, the second mirror 224, and the third mirror 225. into the imaging mirror 228. The light incident on the imaging mirror 228 is imaged on the light-receiving surface of the CCD 229 .

CCD229是一维图像传感器,按主扫描方向的一行处理原稿。第一支架226及第二支架227可沿与主扫描方向垂直的方向(副扫描方向,箭头Y方向)移动,该第一支架226及第二支架227在读取主扫描方向的一行后,沿副扫描方向移动,并读取下一行。CCD229 is a one-dimensional image sensor that processes originals in one line in the main scanning direction. The first support 226 and the second support 227 can move along the direction perpendicular to the main scanning direction (sub-scanning direction, arrow Y direction). The sub-scanning direction moves, and the next line is read.

在ADF读取模式下,原稿提供部210由抽取辊212一张张地抽取载置于原稿盘211上的原稿。此时,第一支架226及第二支架227被设置在读取窗230下方的预先规定的读取位置P。In the ADF reading mode, the document supply unit 210 extracts the documents placed on the document tray 211 one by one by the extraction roller 212 . At this time, the first bracket 226 and the second bracket 227 are set at a predetermined reading position P below the reading window 230 .

当原稿提供部210输送原稿,该原稿经过压板213与出纸盘215之间的输送路上设置的读取窗230上方时,光源222照射原稿,主扫描方向的一行反射光按第一反射镜223、第二反射镜224、第三反射镜225的顺序被反射,入射到成像镜228中。入射到成像镜228中的光在CCD229的受光表面成像。原稿接着被原稿提供部210输送,供以读取下一行。When the document supply unit 210 transports the document, and the document passes above the reading window 230 provided on the transport path between the platen 213 and the output tray 215, the light source 222 illuminates the document, and a line of reflected light in the main scanning direction presses the first reflector 223. , the second reflector 224 , and the third reflector 225 are reflected in sequence and are incident into the imaging mirror 228 . The light incident on the imaging mirror 228 is imaged on the light-receiving surface of the CCD 229 . The document is then conveyed by the document supply unit 210 for reading the next line.

此外,原稿提供部210还具有反转机构,该反转机构包括切换导向构件216、反转辊217及反转输送路218。在ADF读取模式下读取原稿的正面后,通过所述反转机构将该原稿翻转并重新输送到读取窗230,从而可使CCD229读取该原稿的背面。In addition, the document supply unit 210 also has a reversing mechanism including a switching guide member 216 , a reversing roller 217 , and a reversing transport path 218 . After the front side of the document is read in the ADF reading mode, the document is turned over by the reversing mechanism and sent to the reading window 230 again, so that the CCD 229 can read the back side of the document.

该反转机构只在双面读取时工作,而在单面读取时不工作。在单面读取时,以及在双面读取的情况下读取背面后,切换导向构件216被切换成往上方,出纸辊214将经过压板213的原稿排出到出纸盘215。The reversing mechanism works only for double-sided reading and does not work for single-sided reading. During one-sided scanning and after scanning the back side in double-sided scanning, the switching guide member 216 is switched upward, and the paper discharge roller 214 discharges the document passing the platen 213 to the paper discharge tray 215 .

在双面读取的情况下读取正面后,切换导向构件216被切换成往下方,反转辊217将经过压板213的原稿输送到反转输送路218。然后,切换导向构件216被切换成往上方,并且反转辊217逆旋转,使得原稿再输送到压板213。以下,将利用反转机构来读取原稿双面的模式称为双面反转读取模式。After reading the front side in the case of double-sided scanning, the switching guide member 216 is switched downward, and the reverse roller 217 conveys the document passing the platen 213 to the reverse conveyance path 218 . Then, the switching guide member 216 is switched upward, and the reversing roller 217 is reversely rotated, so that the document is re-conveyed to the platen 213 . Hereinafter, the mode in which both sides of the document are read by the reversing mechanism is referred to as a double-sided reversed reading mode.

此外,在ADF读取模式下,图像读取部200也可以在输送原稿的过程中利用CCD229(扫描部220)读取原稿正面的大致同时,利用CIS231来读取原稿的背面。此时,由原稿提供部210输送的原稿盘211上的原稿在经过读取窗230的上方时被CCD229读取其正面,并经过CIS231的配置位置时被读取其背面。其中,CIS231将RGB的三色LED等用作为光源。In addition, in the ADF reading mode, the image reading unit 200 may scan the back side of the document using the CIS 231 approximately at the same time as the CCD 229 (scanner unit 220 ) scans the front side of the document while the document is being conveyed. At this time, the front side of the document on the document tray 211 conveyed by the document supply unit 210 is read by the CCD 229 when it passes above the reading window 230 , and its back side is read when it passes through the arrangement position of the CIS 231 . Among them, CIS231 uses RGB three-color LED and the like as a light source.

这样,采用CCD229和CIS231,就可以在原稿提供部210进行从原稿盘211至出纸盘215的一次原稿输送操作(one-pass)时,读取原稿的正面和背面。以下,将采用CCD229和CIS231来读取原稿双面的模式称为双面同时读取模式。In this way, with the CCD 229 and the CIS 231 , the front and back sides of the document can be read when the document supply unit 210 performs a one-pass document feeding operation (one-pass) from the document tray 211 to the output tray 215 . Hereinafter, the mode of reading both sides of the document using the CCD 229 and the CIS 231 is referred to as a double-sided simultaneous reading mode.

所述双面反转读取模式和双面同时读取模式是在ADF读取模式下读取原稿的双面时的读取模式。双面反转读取模式是希望将双面的打印图像质量相均衡的情况下使用,而双面同时读取模式是宁可双面的打印图像质量不均衡,也要缩短读取时间时使用。图像形成装置1的初始设定是双面同时读取模式,如果对所述读取模式没有进行任何模式设定操作的情况下输入了图像形成指示,就在双面同时读取模式下进行原稿图像读取工作。The double-sided reverse reading mode and the double-sided simultaneous reading mode are reading modes for reading both sides of a document in the ADF reading mode. The double-sided reverse reading mode is used when you want to balance the printed image quality on both sides, and the double-sided simultaneous reading mode is used when you want to shorten the reading time if the printed image quality on both sides is unbalanced. The initial setting of the image forming apparatus 1 is the double-sided simultaneous reading mode, and when an image forming instruction is input without any mode setting operation for the reading mode, the document is processed in the double-sided simultaneous reading mode. Image reading works.

图像形成装置1包括图像形成主体部22和设置在图像形成主体部22的左方的堆纸盘6。图像形成主体部22具有多个供纸盒461、从供纸盒461中一张张地抽取纸张并向图像形成部40输送的供纸辊462、以及在从供纸盒461输送来的纸张上形成图像的图像形成部40。此外,图像形成主体部22还具有供纸盘471和抽取辊472,该抽取辊472将载置于供纸盘471上的原稿一张张地向图像形成部40抽出。The image forming apparatus 1 includes an image forming body 22 and a stack tray 6 provided on the left of the image forming body 22 . The main image forming unit 22 has a plurality of paper feeding cassettes 461 , a paper feeding roller 462 that draws paper from the paper feeding cassettes 461 one by one and transports them to the image forming unit 40 , and a paper feed roller 462 that feeds paper from the paper feeding cassettes 461 . An image forming section 40 that forms an image. In addition, the main image forming unit 22 includes a paper feed tray 471 and a take-out roller 472 that draws out the originals placed on the paper feed tray 471 one by one toward the image forming unit 40 .

图像形成部40包括:除电装置421,从感光鼓43的表面除去残留电荷;带电装置422,使除电后的感光鼓43的表面带电;曝光装置423,根据扫描部220所获得的图像数据输出激光,使得感光鼓43的表面曝光,从而在感光鼓43的表面形成静电潜像;显影装置44K、44Y、44M、44C,根据所述静电潜像在感光鼓43上形成青色(C)、品红色(M)、黄色(Y)及黑色(K)这些各颜色的调色剂图像;转印鼓49,形成在感光鼓43上的各颜色的调色剂图像转印到该转印鼓49上;转印装置41,将转印鼓49上的调色剂图像转印到纸上;以及定影装置45,对转印有调色剂图像的纸张进行加热,使得调色剂图像定影到纸张上。The image forming section 40 includes: a static elimination device 421 for removing residual charge from the surface of the photosensitive drum 43; a charging device 422 for charging the surface of the photosensitive drum 43 after the static electricity removal; The laser light is output to expose the surface of the photosensitive drum 43 to form an electrostatic latent image on the surface of the photosensitive drum 43; the developing devices 44K, 44Y, 44M, and 44C form cyan (C), Magenta (M), yellow (Y) and black (K) toner images of respective colors; a transfer drum 49 to which the toner images of respective colors formed on the photosensitive drum 43 are transferred 49; the transfer device 41, which transfers the toner image on the transfer drum 49 onto the paper; and the fixing device 45, which heats the paper on which the toner image is transferred, so that the toner image is fixed on the paper. on paper.

此外,图中省略的调色剂盒提供青色、品红色、黄色及黑色的各调色剂。并且,图像形成主体部22还包括将经过图像形成部40的纸张输送到堆纸盘6或出纸盘48的输送辊463及464等。In addition, the toner cartridges omitted in the figure provide respective toners of cyan, magenta, yellow, and black. Furthermore, the main image forming unit 22 further includes transport rollers 463 and 464 for transporting the paper passing through the image forming unit 40 to the stack tray 6 or the output tray 48 .

在纸张的双面形成图像时,由图像形成部40在纸张的一面上形成图像后,使该纸张处于由出纸盘48侧的输送辊463夹持的状态。在此状态下,使输送辊463逆旋转,从而使纸张转回,沿着纸张输送路PL再输送到图像形成部40的上游部分,并且,由图像形成部40在纸张的另一面上形成图像后,将该纸张排出到堆纸盘6或出纸盘48上。When forming images on both sides of a sheet, the image is formed on one side of the sheet by the image forming unit 40 , and then the sheet is nipped by the transport rollers 463 on the output tray 48 side. In this state, the transport roller 463 is reversely rotated to turn the paper back, and is transported to the upstream portion of the image forming section 40 along the paper transport path PL, and an image is formed on the other side of the paper by the image forming section 40. After that, the paper is discharged to the stack tray 6 or the output tray 48.

图2是表示图1所示的图像形成装置1的电结构的一个例子的方框图。图像形成装置1包括图像处理用ASIC(Application Specific Integrated Circuit,专用集成电路)10、用户界面部I、系统控制部14、图像读取控制部15、图像形成控制部16(控制部的一个例子)、管理部17、操作控制部19、设定部20、图像形成部40以及图像读取部200。FIG. 2 is a block diagram showing an example of the electrical configuration of the image forming apparatus 1 shown in FIG. 1 . The image forming apparatus 1 includes an ASIC (Application Specific Integrated Circuit) 10 for image processing, a user interface unit 1, a system control unit 14, an image reading control unit 15, and an image forming control unit 16 (an example of a control unit). , the management unit 17 , the operation control unit 19 , the setting unit 20 , the image forming unit 40 and the image reading unit 200 .

图像处理用ASIC10、系统控制部14、图像读取控制部15、图像形成控制部16及管理部17通过总线B1相连接,从而能够彼此收发数据。操作控制部19与用户界面部I相连接,图像读取控制部15与图像读取部200相连接,图像形成控制部16与图像形成部40相连接,管理部17与设定部20相连接。The image processing ASIC 10 , the system control unit 14 , the image reading control unit 15 , the image formation control unit 16 , and the management unit 17 are connected by a bus B1 so that data can be exchanged with each other. The operation control unit 19 is connected to the user interface unit 1, the image reading control unit 15 is connected to the image reading unit 200, the image formation control unit 16 is connected to the image forming unit 40, and the management unit 17 is connected to the setting unit 20. .

图像处理用ASIC10具有图像数据获取部11、频数分布获取部12以及颜色设定部13。图像数据获取部11获取表示彩色图像的图像数据。图像数据获取部11利用预先规定的三个要素颜色(例如,青色(C)、品红色(M)、黄色(Y))的浓度值来表示构成图像数据的各像素的颜色。并且,图像数据获取部11以预先规定的基本位数(例如8位)来表示各浓度值。The image processing ASIC 10 has an image data acquisition unit 11 , a frequency distribution acquisition unit 12 , and a color setting unit 13 . The image data acquisition unit 11 acquires image data representing a color image. The image data acquisition unit 11 expresses the color of each pixel constituting the image data using density values of three predetermined elemental colors (for example, cyan (C), magenta (M), and yellow (Y)). Furthermore, the image data acquisition unit 11 expresses each density value with a predetermined basic number of digits (for example, 8 digits).

另外,图像数据获取部11也可以利用红色、绿色、蓝色的浓度值来表示图像数据。此时也以基本位数(例如8位)来表示红色、绿色、蓝色的各浓度值。In addition, the image data acquiring unit 11 may express the image data using density values of red, green, and blue. Also in this case, each density value of red, green, and blue is represented by a basic number of bits (for example, 8 bits).

例如,图像数据获取部11可以通过图像读取控制部15来接收图像读取部200从原稿所读取的彩色图像数据,从而获取图像数据。例如,图像数据获取部11也可以通过图中省略的网络,从连接于网络上的个人电脑等接收彩色图像数据,从而获取图像数据。例如,图像数据获取部11还可以通过图中省略的电话线路来接收从传真机发送来的彩色图像数据,从而获取图像数据。或者,图像数据获取部11也可以接收对这些图像数据进一步实施中间图像处理(例如,除去所透过的背面颜色等的处理)后的图像数据。For example, the image data acquisition unit 11 may receive the color image data read from the document by the image reading unit 200 through the image reading control unit 15 to acquire the image data. For example, the image data acquiring unit 11 may acquire image data by receiving color image data from a personal computer or the like connected to the network via a network not shown in the figure. For example, the image data acquiring unit 11 may acquire image data by receiving color image data transmitted from a facsimile machine through a telephone line not shown in the figure. Alternatively, the image data acquiring unit 11 may receive image data obtained by further performing intermediate image processing (for example, processing for removing transparent back color, etc.) on these image data.

图像处理用ASIC10对于图像数据获取部11获取的图像数据实施预先规定的图像处理。例如,图像处理用ASIC10(图像处理部的一个例子)进行将图像数据中的背景色变更为预先规定的颜色的背景色变更处理(例如参照美国专利公报US6567544号)。The image processing ASIC 10 performs predetermined image processing on the image data acquired by the image data acquisition unit 11 . For example, the image processing ASIC 10 (an example of an image processing unit) performs background color change processing for changing the background color in image data to a predetermined color (see, for example, US Pat. No. 6,567,544 ).

该背景色变更处理是这样一种处理,即:彩色图像中应示出背景色(例如白色)的像素变为其他颜色的像素时(例如,彩色图像的原稿的底色浓度较深时,或原稿的背面颜色透过原稿正面上时),将所变化的该像素的颜色变更为应示出的颜色(例如白色)。This background color change process is a process in which pixels that should show a background color (such as white) in a color image are changed to pixels of another color (for example, when the original of a color image has a dark background color, or When the color of the back side of the document shines through the front side of the document), the color of the changed pixel is changed to the color to be displayed (for example, white).

频数分布获取部12根据图像数据获取部11获取的图像数据D,将图像数据D的各像素的颜色分配给统计学所述的各组(class),从而获取将图像数据D中各颜色的出现次数作为频数的频数分布(frequency distribution)。接着,频数分布获取部12向颜色设定部13及图像形成控制部16输出表示频数分布的频数分布信息。According to the image data D acquired by the image data acquisition unit 11, the frequency distribution acquisition unit 12 assigns the color of each pixel of the image data D to each statistical class (class), thereby acquiring the appearance of each color in the image data D. The number of times is the frequency distribution of the frequency. Next, the frequency distribution acquisition unit 12 outputs frequency distribution information indicating the frequency distribution to the color setting unit 13 and the image formation control unit 16 .

其中,所述频数分布是指:在样本具有某变量时,将该变量的范围划分为多个组,并将具有属于各组的变量的样本的数作为频数(出现次数)来进行计数的分布。频数分布获取部12将像素作为样本,将表示像素的颜色的像素值(浓度值)作为变量,并将颜色(即像素值)划分为多个范围来设定组。其中,组不一定要具有规定范围,也可以使像素值(即颜色)与组一一对应。Wherein, the frequency distribution refers to a distribution in which when a sample has a certain variable, the range of the variable is divided into a plurality of groups, and the number of samples having the variable belonging to each group is counted as the frequency (number of occurrences) . The frequency distribution acquiring unit 12 uses a pixel as a sample and a pixel value (density value) representing the color of the pixel as a variable, and divides the color (that is, the pixel value) into a plurality of ranges to set a group. Here, the groups do not have to have a prescribed range, and pixel values (ie, colors) can also be in one-to-one correspondence with the groups.

例如,由红色、蓝色、黄色构成图像数据D时,将红色、蓝色、黄色作为各组,将图像数据D包含的红色像素、蓝色像素、黄色像素的数目分别作为各颜色(组)的出现次数(频数)。For example, when the image data D is composed of red, blue, and yellow, red, blue, and yellow are regarded as each group, and the numbers of red pixels, blue pixels, and yellow pixels included in the image data D are regarded as each color (group) The number of occurrences (frequency) of .

在以所述颜色(组)为横轴、出现次数(频数)为纵轴的二维坐标系上显示的频数分布就是所谓的频数分布图。A frequency distribution displayed on a two-dimensional coordinate system with the color (group) as the horizontal axis and the number of occurrences (frequency) as the vertical axis is a so-called frequency distribution graph.

颜色设定部13根据由频数分布获取部12获取的频数分布表示的各颜色的出现次数,设定花样的颜色。关于颜色设定部13的详细处理内容将在后面叙述。The color setting unit 13 sets the color of the pattern based on the number of appearances of each color indicated by the frequency distribution obtained by the frequency distribution obtaining unit 12 . The detailed processing content of the color setting unit 13 will be described later.

用户界面部I包括带多个操作键的操作输入部18(识别信息输入部的一个例子)和由LED及触摸屏等构成的显示部5。The user interface unit 1 includes an operation input unit 18 (an example of an identification information input unit) with a plurality of operation keys, and a display unit 5 composed of LEDs, a touch panel, and the like.

操作输入部18例如由开始键、各种设定键或触摸屏等构成。例如,可以由液晶显示器和触摸屏结为一体的带显示功能的触摸屏来构成操作输入部18和显示部5。The operation input unit 18 is constituted by, for example, a start key, various setting keys, a touch panel, and the like. For example, the operation input unit 18 and the display unit 5 may be constituted by a touch panel with a display function in which a liquid crystal display and a touch panel are integrated.

操作控制部19接受表示操作输入部18受理的操作输入的信号,将表示该操作输入的信号输出到图像形成控制部16或设定部20。The operation control unit 19 receives a signal indicating the operation input accepted by the operation input unit 18 , and outputs a signal indicating the operation input to the image formation control unit 16 or the setting unit 20 .

具体而言,例如在操作输入部18的开始键被按压时,操作控制部19向图像形成控制部16输出用于请求图像形成的开始的信号。另外,当操作输入部18受理允许实行单色花样模式的操作指示时,操作控制部19向设定部20输出用于请求设定为允许实行单色花样模式的信号。此外,当操作输入部18受理用户输入的识别信息时,操作控制部19向图像形成控制部16输出该识别信息。Specifically, for example, when a start key of the operation input unit 18 is pressed, the operation control unit 19 outputs a signal for requesting start of image formation to the image formation control unit 16 . Also, when the operation input unit 18 accepts an operation instruction to allow execution of the monochrome pattern mode, the operation control unit 19 outputs a signal to the setting unit 20 requesting setting to allow execution of the monochrome pattern mode. Furthermore, when the operation input unit 18 accepts identification information input by the user, the operation control unit 19 outputs the identification information to the image formation control unit 16 .

此外,操作控制部19使显示部5进行与显示系统控制部14及图像形成控制部16等输出的显示请求相对应的显示。In addition, the operation control unit 19 causes the display unit 5 to perform a display corresponding to a display request output from the display system control unit 14 , the image formation control unit 16 , and the like.

系统控制部14例如采用微电脑来构成。系统控制部14通过实行规定的控制程序,统括性地控制图像形成装置1的工作。图像读取控制部15例如采用微电脑来构成。图像读取控制部15通过实行规定的控制程序,控制图像读取部200的图像读取工作。The system control unit 14 is constituted by, for example, a microcomputer. The system control unit 14 comprehensively controls the operation of the image forming apparatus 1 by executing a predetermined control program. The image reading control unit 15 is constituted by, for example, a microcomputer. The image reading control unit 15 controls the image reading operation of the image reading unit 200 by executing a predetermined control program.

管理部17是例如采用RAM(Random Access Memory,随机存取存储器)等存储单元来构成的存储装置。管理部17中预先存储用户识别信息,例如预先存储ID号码。管理部17中,以可区别的方式存储只被允许黑白模式下的图像形成的用户的识别信息、以及被允许黑白模式下和全色模式下的图像形成的用户的识别信息。The management unit 17 is, for example, a storage device configured using a storage unit such as a RAM (Random Access Memory). User identification information, such as an ID number, is stored in advance in the management unit 17 . In the management unit 17 , identification information of users who are allowed to form images only in the monochrome mode and identification information of users who are allowed to form images in the monochrome mode and the full-color mode are stored in a distinguishable manner.

以下,将只被允许黑白模式下的图像形成的用户称为限于黑白模式的用户,将被允许黑白模式下和全色模式下的图像形成的用户称为不受限制的用户。Hereinafter, a user who is allowed to form an image only in the monochrome mode is called a monochrome-limited user, and a user who is allowed to form an image in both the monochrome mode and the full-color mode is called an unrestricted user.

另外,管理部17不一定要存储被允许黑白模式下和全色模式下的图像形成的用户的识别信息。关于黑白模式和全色模式将在后面叙述。In addition, the management unit 17 does not necessarily store identification information of users who are permitted to form images in the monochrome mode and the full-color mode. The black and white mode and the full color mode will be described later.

此外,管理部17将各用户的识别信息与表示向该用户收费的金额的收费信息关联起来存储。In addition, the management unit 17 stores the identification information of each user in association with charging information indicating the amount of money charged to the user.

因此,例如管理图像形成装置1的企业可以读出存储在管理部17中的收费信息,从而要求用户支付图像形成费用。即,在图像形成装置1中,将收费信息存储到管理部17中的处理相当于收费处理。Therefore, for example, a company that manages the image forming apparatus 1 can read out the billing information stored in the management unit 17 and request the user to pay the image forming fee. That is, in the image forming apparatus 1 , the process of storing the billing information in the management unit 17 corresponds to the billing process.

设定部20例如采用微电脑来构成。设定部20通过实行规定的控制程序,设定是否允许后面叙述的单色花样模式。The setting unit 20 is constituted by, for example, a microcomputer. The setting unit 20 executes a predetermined control program to set whether to allow a monochromatic pattern mode described later.

以下,将允许实行单色花样模式的设定称为花样模式许可设定。即,“有花样模式许可设定”是指允许该用户实行单色花样模式,“没有花样模式许可设定”是指不允许该用户实行单色花样模式。Hereinafter, the setting for allowing execution of the monochrome pattern mode is referred to as pattern mode permission setting. That is, "with pattern mode permission setting" means that the user is allowed to execute the monochrome pattern mode, and "without pattern mode permission setting" means that the user is not allowed to execute the monochrome pattern mode.

设定部20,当操作控制部19输出用于请求设定为允许实行单色花样模式的信号时,将表示花样模式许可设定的信息与被允许实行单色花样模式的用户的识别信息关联起来,存储到管理部17中。由此,设定部20做出花样模式许可设定。The setting part 20, when the operation control part 19 outputs a signal for requesting setting to allow execution of the monochrome pattern mode, associates the information indicating the permission setting of the pattern mode with the identification information of the user who is allowed to execute the monochrome pattern mode Get up and store in the management unit 17. As a result, the setting unit 20 makes the pattern mode permission setting.

另外,设定部20也可以采用其他方式,即:不论用户是谁,都做出花样模式许可设定来作为对于图像形成装置1整体的设定;或者,对于存储在管理部17中的各用户(识别信息),分别存储是否有花样模式许可设定。In addition, the setting unit 20 may also adopt other methods, that is, no matter who the user is, the pattern mode permission setting is made as the setting for the image forming apparatus 1 as a whole; or, for each user stored in the management unit 17 The user (identification information) stores whether there is a pattern mode permission setting, respectively.

此外,也可以不具有设定部20,并对限于黑白模式的用户一律允许花样模式的实行。此外,设定部20不一定需要对于被允许实行黑白模式和全色模式的用户做出花样模式许可设定。In addition, the setting unit 20 may not be provided, and execution of the pattern mode may be uniformly permitted to users limited to the monochrome mode. In addition, the setting unit 20 does not necessarily need to set the pattern mode permission for the user who is allowed to execute the monochrome mode and the full color mode.

图像形成控制部16例如采用微电脑来构成。图像形成控制部16通过实行规定的控制程序,控制图像形成部40的图像形成工作。图像形成控制部16从图像处理用ASIC10接收用于打印的图像数据。图像形成控制部16的图像形成模式包括黑白模式、单色模式、全色模式和单色花样模式。The image formation control unit 16 is constituted by, for example, a microcomputer. The image forming control unit 16 controls the image forming operation of the image forming unit 40 by executing a predetermined control program. The image formation control unit 16 receives image data for printing from the image processing ASIC 10 . The image forming modes of the image forming control unit 16 include a monochrome mode, a monochrome mode, a full color mode, and a monochrome pattern mode.

黑白模式(黑白复印)是只用黑色(K)调色剂,将基于图像数据的黑白图像打印在纸上的模式。The black and white mode (black and white copy) is a mode for printing a black and white image based on image data on paper using only black (K) toner.

单色模式是只用一个颜色(例如红色),将基于图像数据的图像打印在纸上的模式。The monochrome mode is a mode in which an image based on image data is printed on paper using only one color (such as red).

全色模式(全色复印)是用多个颜色(即图像形成部40可形成的所有颜色)来形成基于图像数据的图像的模式。具体而言,全色模式是利用青色(C)、品红色(M)、黄色(Y)和黑色(K)的各调色剂,将基于图像数据的彩色图像打印在纸上的模式。以下,将图像形成部40可形成的所有颜色称为全色。The full-color mode (full-color copy) is a mode for forming an image based on image data using a plurality of colors (ie, all colors that can be formed by the image forming unit 40 ). Specifically, the full-color mode is a mode in which a color image based on image data is printed on paper using toners of cyan (C), magenta (M), yellow (Y), and black (K). Hereinafter, all colors that can be formed by the image forming unit 40 are referred to as full colors.

此外,全色模式也可以是利用红色、绿色、蓝色的各调色剂来进行打印的模式。In addition, the full-color mode may be a mode in which printing is performed using each toner of red, green, and blue.

单色花样模式是利用花样颜色和黑色这两个颜色,将基于打印用图像数据的图像打印在纸上的模式。The monochrome pattern mode is a mode for printing an image based on printing image data on paper using two colors of pattern color and black.

单色花样模式是考虑到以下情况的模式,即:由黑色文字构成的文件中部分包含用一个属于有色彩系的颜色来形成的小标志时,或者,由黑色文字构成的文件中包含用一个属于有色彩系的颜色来形成的下划线或涂色部分时,用黑色调色剂形成文字,并用颜色设定部13设定的花样颜色来形成标志、下划线、涂色部分等彩色花样部分。以下,将标志、下划线、涂色部分等在一页图像中所占的面积较小的花样称为特定花样(或特定的花样),并将特定花样的颜色称为花样颜色。The monochrome pattern mode is a mode that takes into account the following cases, that is, when a document composed of black characters partially includes a small mark formed with a color belonging to a color system, or when a document composed of black characters contains a small mark formed with a color When it belongs to the underline or colored part formed by the color of the chromatic system, the characters are formed with black toner, and the color pattern parts such as logo, underline and colored part are formed with the pattern color set by the color setting part 13 . Hereinafter, patterns such as logos, underlines, colored parts, etc. occupying a small area in one page of images are referred to as specific patterns (or specific patterns), and the colors of the specific patterns are referred to as pattern colors.

另外,单色花样模式也可以是利用后面叙述的第二颜色来打印文字,并用花样颜色来打印特定花样的模式。In addition, the single-color pattern mode may also be a mode in which characters are printed in a second color described later and a specific pattern is printed in a pattern color.

此外,图像形成控制部16使显示部5显示用于向用户请求输入识别信息的显示画面。并且,图像形成控制部16将操作输入部18受理的识别信息与存储在管理部17中的识别信息相比较,从而进行用户认证。Furthermore, the image formation control unit 16 causes the display unit 5 to display a display screen for requesting the user to input identification information. Then, the image formation control unit 16 compares the identification information accepted by the operation input unit 18 with the identification information stored in the management unit 17 to perform user authentication.

此外,图像形成控制部16将被认证的用户利用图像形成装置1来进行打印作业所发生的费用作为收费信息,并将该收费信息与该被认证的用户的识别信息关联起来存储到管理部17中。图像形成控制部16通过使管理部17存储收费信息,向用户收费。In addition, the image formation control unit 16 uses the fee incurred by the authenticated user to perform a print job using the image forming apparatus 1 as charging information, and stores the charging information in association with the identification information of the authenticated user in the management unit 17. middle. The image formation control unit 16 charges the user by causing the management unit 17 to store the charging information.

图像形成控制部16在全色模式下进行图像形成时的费用高于在黑白模式下进行图像形成时的费用。图像形成控制部16,在单色花样模式下及后面叙述的全色花样模式下进行图像形成时的费用低于在全色模式下进行图像形成时的费用,例如同等于黑白模式下进行图像形成时的费用。When the image formation control unit 16 performs image formation in the full-color mode, the cost is higher than when the image formation is performed in the black-and-white mode. The cost of image formation by the image formation control unit 16 in the monochrome pattern mode and the later-described full-color pattern mode is lower than the cost of image formation in the full-color mode, for example, the same as in the black and white mode. time fee.

图像形成控制部16根据被认证的用户是不受限制的用户还是限于黑白模式的用户、是否有花样模式许可设定、以及频数分布信息,来确定图像形成模式。并且,图像形成控制部16根据所确定的图像形成模式来控制图像形成部40,使得该图像形成部40在纸上形成图像。以下,将“图像形成控制部16使图像形成部40形成图像”记载为“由图像形成控制部16形成图像”。The image formation control unit 16 determines the image formation mode based on whether the authenticated user is an unlimited user or a monochrome-only user, whether pattern mode permission is set, and frequency distribution information. Then, the image forming control unit 16 controls the image forming unit 40 so that the image forming unit 40 forms an image on paper according to the determined image forming mode. Hereinafter, “the image formation control unit 16 causes the image formation unit 40 to form an image” is described as “the image formation control unit 16 forms an image”.

具体而言,图像形成控制部16对于管理部17中登记有识别信息的不受限制的用户,允许在黑白模式下及全色模式下进行图像形成。另外,图像形成控制部16对于管理部17中登记有识别信息的限于黑白模式的用户,禁止在全色模式下进行图像形成,而允许在黑白模式下进行图像形成。另外,图像形成控制部16对于管理部17中登记有识别信息的“有花样模式许可设定”的用户,不论该用户是限于黑白模式的用户还是不受限制的用户,都允许在单色花样模式下进行图像形成。此外,图像形成控制部16不一定需要对于不受限制的用户允许在单色花样模式下进行图像形成。Specifically, the image formation control unit 16 allows unlimited users whose identification information is registered in the management unit 17 to perform image formation in the black-and-white mode and the full-color mode. In addition, the image formation control unit 16 prohibits image formation in the full-color mode and allows image formation in the monochrome mode for a user limited to the monochrome mode whose identification information is registered in the management unit 17 . In addition, the image formation control section 16 allows the user who has "pattern mode permission setting" whose identification information is registered in the management section 17, regardless of whether the user is a user limited to a monochrome mode or a user who is not limited, to allow a monochrome pattern. image formation in this mode. In addition, the image formation control section 16 does not necessarily need to allow image formation in the monochrome pattern mode for unlimited users.

图3是表示由图像数据D示出的文件原稿的图像的一个例子的概念说明图。图像数据D例如表示这样一种文件原稿的图像,即:黑色文字(C)占文件原稿的大部分,在纸张右上部分用颜色来打印标志L,背景(B)的颜色(即背景色)是白色。图像数据D例如已被实施背景色变更处理。FIG. 3 is a conceptual explanatory diagram showing an example of an image of a document manuscript represented by image data D. As shown in FIG. The image data D represents, for example, an image of a document original, that is, black text (C) occupies most of the document original, and a mark L is printed in color on the upper right part of the paper, and the color (i.e., background color) of the background (B) is White. The image data D has been subjected to background color changing processing, for example.

标志L是花样的一个例子,例如是深绿色的标志。其中虽然将标志L作为花样的一个例子,但花样也可以是单色的划线(例如为红色的下划线)、以及用单色(也可以为荧光色)涂抹的涂色部分。The symbol L is an example of a pattern, for example, it is a dark green symbol. Here, the logo L is an example of a pattern, but the pattern may be a single-color line (for example, a red underline) or a painted part painted with a single color (or a fluorescent color).

在背景(B)上,有可能因背面的颜色透过而混合有与本来的背景色不同的颜色。然而,这种混合的颜色通过所述背景色变更处理被改变为背景色。因此,在图像数据D上存在的颜色基本上只包括背景色、文字的颜色和标志L等花样的颜色。On the background (B), there is a possibility that a color different from the original background color may be mixed due to the back color passing through. However, this mixed color is changed to the background color by the background color changing process. Therefore, the colors that exist on the image data D basically include only the background color, the color of the characters, and the colors of patterns such as the logo L.

图4A、图4B、图4C是频数分布图的一个例子,均表示图像数据D中各像素的颜色的出现次数。图4A和图4C是标志L包含多个颜色时的图像数据D的频数分布图。图4B是标志L由一个颜色(单色)构成时的图像数据D的频数分布图。4A , 4B, and 4C are examples of frequency histograms, each showing the number of occurrences of the color of each pixel in the image data D. FIG. 4A and 4C are frequency distribution diagrams of the image data D when the logo L includes a plurality of colors. FIG. 4B is a frequency distribution diagram of the image data D when the logo L is composed of one color (monochrome).

图4A、图4B、图4C表示的频数分布图中,图像数据D的全像素数为551千像素(k pixel)。这些频数分布图中,横轴表示颜色(相当于“组(class)”),对各组分配背景色、文字的颜色、标志颜色1、标志颜色2、标志颜色3、标志颜色4和“其他颜色”。纵轴表示图像数据D中具有各组颜色的像素的数目,即出现次数(频数)。In the frequency distribution diagrams shown in FIG. 4A , FIG. 4B , and FIG. 4C , the total number of pixels of the image data D is 551 kilopixels (k pixel). In these frequency distribution graphs, the horizontal axis represents color (equivalent to "class"), and the background color, text color, symbol color 1, symbol color 2, symbol color 3, symbol color 4, and "others" are assigned to each group. color". The vertical axis represents the number of pixels with each group of colors in the image data D, that is, the number of occurrences (frequency).

横轴的下方示出具有各颜色的像素的出现次数和按该出现次数多到少的顺序附上的次数顺序号。此外,“其他颜色”的出现次数是出现次数的顺序在第5位以下的颜色的出现次数之和。另外,图4A、图4B、图4C中的出现次数的单位是“千像素(k Pixel)”。Below the horizontal axis are the number of occurrences of pixels of each color and the number of occurrences assigned in descending order of the number of appearances. Also, the number of appearances of "other colors" is the sum of the number of appearances of colors whose order of appearances is 5th or lower. In addition, the unit of the number of occurrences in FIG. 4A , FIG. 4B , and FIG. 4C is “k Pixel”.

例如,在图4A中,文字的颜色的出现次数为150k Pixel,意味着图像数据D中存在150×1024个具有文字的颜色的像素。另外,在图4A中,标志颜色3的出现次数为0.5k Pixel,意味着图像数据D中存在0.5×1024个具有标志颜色3的像素。For example, in FIG. 4A , the number of occurrences of the color of the text is 150k Pixel, which means that there are 150×1024 pixels of the color of the text in the image data D. In addition, in FIG. 4A , the number of occurrences of the logo color 3 is 0.5k Pixel, which means that there are 0.5×1024 pixels with the logo color 3 in the image data D.

以下,将次数顺序号1的颜色称为第一颜色、次数顺序号2的颜色称为第二颜色,即按出现次数多到少的顺序依次标上次数顺序号来表示颜色。也就是说,将图像数据D中出现次数最多的颜色设为第一颜色、图像数据D中出现次数第二位的颜色设为第二颜色,同样,按各颜色的出现次数的顺序依次称为第三颜色至第六颜色。Hereinafter, the color with the sequence number 1 is referred to as the first color, and the color with the sequence number 2 is referred to as the second color, that is, the sequence numbers are marked in descending order to represent the colors. That is to say, the color with the highest number of appearances in the image data D is set as the first color, and the color with the second number of appearances in the image data D is set as the second color. Similarly, the order of the number of appearances of each color is called Third to sixth colors.

图4A中,作为背景色的第一颜色的出现次数最多,是340k Pixel。作为文字的颜色的第二颜色的出现次数仅次于背景色,是150k Pixel。In Figure 4A, the first color as the background color has the most occurrences, which is 340k Pixel. The number of appearances of the second color as the color of the text is second only to the background color, which is 150k Pixel.

图4A示出的标志L由多个属于有色彩系的颜色构成,例如由标志颜色1和标志颜色2这两个属于有色彩系的颜色构成。其中标志颜色1是第三颜色,标志颜色2是第四颜色。此外,例如标志L的边缘部分的像素的颜色与相邻的周围像素的颜色混在一起,出现了标志颜色3和标志颜色4。标志颜色3是第五颜色,标志颜色4是第六颜色。The logo L shown in FIG. 4A is composed of a plurality of colors belonging to the chromatic system, for example, two colors belonging to the chromatic system, logo color 1 and logo color 2 . Where logo color 1 is the third color, logo color 2 is the fourth color. Also, for example, the colors of the pixels at the edge portion of the logo L are mixed with the colors of adjacent surrounding pixels, and logo color 3 and logo color 4 appear. Logo color 3 is the fifth color, logo color 4 is the sixth color.

并且,第三颜色(标志颜色1)的出现次数为40k Pixel、第四颜色(标志颜色2)的出现次数为20k Pixel、第五颜色(标志颜色3)及第六颜色(标志颜色4)的出现次数均为0.5k Pixel。Also, the third color (sign color 1) has 40k Pixels, the fourth color (mark color 2) has 20k Pixels, the fifth color (mark color 3) and the sixth color (mark color 4) The number of occurrences is 0.5k Pixel.

此外,在图4B中,作为背景色的第一颜色的出现次数最多,是340k Pixel。作为文字的颜色的第二颜色的出现次数仅次于背景色,是150k Pixel。In addition, in Figure 4B, the first color as the background color has the most occurrences, which is 340k Pixel. The number of appearances of the second color as the color of the text is second only to the background color, which is 150k Pixel.

在图4B中,标志L仅由标志颜色1构成,即由单色构成。其中标志颜色1是第三颜色。此外,例如标志L的边缘部分的像素的颜色与相邻的周围像素的颜色混在一起,出现了标志颜色2和标志颜色3。其中标志颜色2是第四颜色,标志颜色3是第五颜色。In FIG. 4B, the logo L is composed of logo color 1 only, that is, of a single color. Where logo color 1 is the third color. Also, for example, the colors of the pixels at the edge of the logo L are mixed with the colors of adjacent surrounding pixels, and logo color 2 and logo color 3 appear. The logo color 2 is the fourth color, and the logo color 3 is the fifth color.

在图4B中,第三颜色(标志颜色1)的出现次数为60k Pixel,第四颜色(标志颜色2)及第五颜色(标志颜色3)的出现次数均为0.5k Pixel,第六颜色(标志颜色4)的出现次数为0。In Figure 4B, the occurrence times of the third color (sign color 1) is 60k Pixel, the occurrence times of the fourth color (sign color 2) and the fifth color (sign color 3) are both 0.5k Pixel, and the sixth color ( Flag color 4) has 0 occurrences.

图4C中,作为背景色的第一颜色的出现次数最多,是340k Pixel。作为文字的颜色的第二颜色的出现次数仅次于背景色,是150k Pixel。In Figure 4C, the first color as the background color has the most occurrences, which is 340k Pixel. The number of appearances of the second color as the color of the text is second only to the background color, which is 150k Pixel.

在图4C中,标志L是全色,即包括多个属于有色彩系的颜色的多色标志。标志L除了标志颜色1至4以外,还包括其他多个颜色。其中,标志颜色1为第三颜色,标志颜色2为第四颜色,标志颜色3为第五颜色,标志颜色4为第六颜色。In FIG. 4C, the logo L is a panchromatic, ie, a multicolored logo comprising a plurality of colors belonging to a chromatic family. In addition to the logo colors 1 to 4, the logo L also includes other colors. Wherein, logo color 1 is the third color, logo color 2 is the fourth color, logo color 3 is the fifth color, and logo color 4 is the sixth color.

在图4C中,第三颜色(标志颜色1)的出现次数为20k Pixel、第四颜色(标志颜色2)的出现次数为0.5k Pixel、第五颜色(标志颜色3)的出现次数为0.4k Pixel、第六颜色(标志颜色4)的出现次数为0.3k Pixel。此外,还存在出现次数少于第六颜色的多个颜色的像素,第五颜色以下的像素(次数顺序号为5以上的像素)的出现次数之和为40.5k Pixel。In Figure 4C, the third color (logo color 1) has 20k Pixels, the fourth color (logo color 2) has 0.5k Pixels, and the fifth color (logo color 3) has 0.4k pixels The number of occurrences of Pixel and the sixth color (logo color 4) is 0.3k Pixel. In addition, there are pixels of multiple colors that appear less than the sixth color, and the sum of the appearance times of pixels below the fifth color (pixels whose order number is 5 or greater) is 40.5k Pixel.

下面,利用图5至图8来说明图像形成装置1的工作。图5至图8是表示图2所示的图像形成装置1的基本处理的一个例子的流程图。Next, the operation of the image forming apparatus 1 will be described with reference to FIGS. 5 to 8 . 5 to 8 are flowcharts showing an example of basic processing of the image forming apparatus 1 shown in FIG. 2 .

在以下说明中,将图3所示的图像数据D作为处理对象的图像数据。在图3所示的图像数据D中,将背景(B)的颜色设为第一颜色、将文字(C)的颜色设为第二颜色,并且,标志L包括出现次数少于第二颜色的第三颜色至第六颜色。In the following description, image data D shown in FIG. 3 is used as image data to be processed. In the image data D shown in FIG. 3 , the color of the background (B) is set to the first color, and the color of the character (C) is set to the second color, and the logo L includes a number of occurrences less than that of the second color. Third to sixth colors.

首先,当用户利用操作输入部18来输入识别信息时,图像形成控制部16将操作输入部18受理的识别信息与存储在管理部17中的识别信息相比较。并且,当识别信息相一致时,图像形成控制部16认证该用户,允许登录(步骤S1中为“是”)。First, when the user inputs identification information using the operation input unit 18 , the image formation control unit 16 compares the identification information accepted by the operation input unit 18 with the identification information stored in the management unit 17 . Then, when the identification information matches, the image formation control unit 16 authenticates the user and allows login (YES in step S1 ).

接着,例如由图像读取部200读取原稿的图像数据,并由图像数据获取部11获取图像数据D(步骤S2)。在步骤S2中,也可以例如由图像处理用ASIC10对图像数据D进行背景色变更处理等中间图像处理。Next, for example, the image data of the document is read by the image reading unit 200 , and the image data D is acquired by the image data acquiring unit 11 (step S2 ). In step S2, for example, intermediate image processing such as background color change processing may be performed on the image data D by the ASIC 10 for image processing.

接着,图像形成控制部16参照管理部17,判断对于被允许登录的用户(以下称为登录用户)是否已做出花样模式许可设定,即判断该登录用户是否被允许实行单色花样模式(步骤S3)。Next, the image formation control unit 16 refers to the management unit 17 to determine whether the pattern mode permission setting has been set for a user who is allowed to log in (hereinafter referred to as a logged-in user), that is, whether the logged-in user is allowed to execute the monochrome pattern mode ( Step S3).

并且,当对于登录用户未做出允许实行单色花样模式的设定时(步骤S3中为“否”),图像形成控制部16进行步骤S22(参照图8)的处理,以确认登录用户是否是不受限制的用户。And, when the setting to allow execution of the monochrome pattern mode is not made for the logged-in user ("No" in step S3), the image formation control unit 16 performs the processing of step S22 (see FIG. 8 ) to check whether the logged-in user is is an unlimited user.

而当对于登录用户做出允许实行单色花样模式的设定时(步骤S3中为“是”),图像形成控制部16进入步骤S4,使频数分布获取部12和颜色设定部13例如进行如下所述的处理。On the other hand, when a setting is made to allow execution of the monochrome pattern mode for the logged-in user (YES in step S3), the image formation control unit 16 proceeds to step S4, and causes the frequency distribution acquisition unit 12 and the color setting unit 13 to perform, for example, Processing as described below.

另外,图5中虽然示出图像形成控制部16不论登录用户是限于黑白模式的用户还是不受限制的用户,只要对于该登录用户已做出允许实行单色花样模式的设定就进入步骤S4的例子,但图像形成控制部16也可以只有在登录用户是限于黑白模式的用户,且对于该登录用户做出允许实行单色花样模式的设定时,才进入步骤S4中。In addition, although it is shown in FIG. 5 that the image forming control section 16 does not matter whether the logged-in user is a user limited to the monochrome mode or an unrestricted user, as long as the login user has made a setting to allow execution of the monochrome pattern mode, the process proceeds to step S4. However, the image formation control unit 16 may proceed to step S4 only when the logged-in user is a user limited to the black-and-white mode and a setting is made for the logged-in user to allow execution of the monochrome pattern mode.

频数分布获取部12对于图像数据D的各像素,计数各颜色的出现次数(步骤S4)。并且,频数分布获取部12将图像数据D中各像素的颜色作为各组,从而获取表示各颜色的出现次数的频数分布(步骤S5)。The frequency distribution acquisition unit 12 counts the number of appearances of each color for each pixel of the image data D (step S4 ). Then, the frequency distribution acquisition unit 12 acquires a frequency distribution indicating the number of appearances of each color by using the colors of the pixels in the image data D as each group (step S5 ).

接着,颜色设定部13将通过步骤S5获取的频数分布中出现次数最多的颜色亦即第一颜色(例如白色)设定为背景色(步骤S6),并且,将出现次数第二位的颜色亦即第二颜色(例如黑色、灰色、深蓝色等)设定为文字的颜色(步骤S7)。并且,颜色设定部13将频数分布中出现次数第三位的颜色作为第三颜色、出现次数第四位的颜色作为第四颜色来抽出(步骤S8)。Next, the color setting unit 13 sets the first color (for example, white) that appears most frequently in the frequency distribution obtained in step S5 as the background color (step S6 ), and sets the second most frequently occurring color That is, the second color (such as black, gray, dark blue, etc.) is set as the color of the text (step S7). Then, the color setting unit 13 extracts the color having the third appearance number in the frequency distribution as the third color, and the color having the fourth appearance number as the fourth color (step S8 ).

接着,颜色设定部13将第三颜色设定为标志L的候补花样颜色(步骤S9),并进行图6所示的步骤S10以后的处理。Next, the color setting unit 13 sets the third color as a candidate design color of the logo L (step S9 ), and performs the processes after step S10 shown in FIG. 6 .

当被推测为背景色的第一颜色的出现次数与被推测为文字的颜色的第二颜色的出现次数之和,跟彩色图像的全像素数之间的差较大时,即出现次数少于第二颜色的颜色之出现次数较多时,则可推测为颜色属于有色彩系的特定花样的面积较大。当颜色属于有色彩系的特定花样的面积较大时,打印该特定花样所需的彩色调色剂的消费量要多。When the difference between the sum of the number of appearances of the first color that is estimated to be the background color and the number of appearances of the second color that is estimated to be the color of the text, and the total number of pixels of the color image is large, that is, the number of appearances is less than When the number of occurrences of the color of the second color is large, it can be inferred that the area of the specific pattern whose color belongs to the color system is large. When the area where the color belongs to a specific pattern having a color system is large, the consumption of color toner required to print the specific pattern is large.

由于彩色调色剂的价格高于黑色调色剂,因此,当第一颜色的出现次数与第二颜色的出现次数之和跟彩色图像的全像素数之间的差较大时,如果实行单色花样模式从而用彩色打印该特定花样,则会提高打印成本。Since the price of color toner is higher than that of black toner, when the difference between the sum of the number of appearances of the first color and the number of appearances of the second color and the total number of pixels of the color image is large, if a single If you choose the color pattern mode to print that particular pattern in color, it will increase the printing cost.

另一方面,当第一颜色的出现次数与第二颜色的出现次数之和跟彩色图像的全像素数之间的差较小时,即出现次数少于第二颜色的颜色之出现次数较少时,则可推测为颜色属于有色彩系的特定花样的面积较小。如果颜色属于有色彩系的特定花样的面积较小,打印该特定花样所需的彩色调色剂的消费量不多。因此,当第一颜色的出现次数与第二颜色的出现次数之和跟彩色图像的全像素数之间的差较小时,即使实行单色花样模式从而用彩色来打印该特定花样,打印成本也不会有很大的提高。On the other hand, when the difference between the sum of the number of occurrences of the first color and the number of occurrences of the second color and the number of full pixels of the color image is small, that is, when the number of occurrences of colors less than that of the second color is less , it can be inferred that the area of the specific pattern whose color belongs to the color system is relatively small. If the area where the color belongs to a specific pattern having a color family is small, the consumption of the color toner required to print the specific pattern is not much. Therefore, when the difference between the sum of the number of appearances of the first color and the number of appearances of the second color and the total number of pixels of the color image is small, even if the monochrome pattern mode is executed to print the specific pattern in color, the printing cost is low. There won't be a big improvement.

因此,当第一颜色的出现次数与第二颜色的出现次数之和跟彩色图像的全像素数之间的差较小,从而可推测为颜色属于有色彩系的特定花样的面积较小时,不论登录用户是限于黑白模式的用户还是不受限制的用户,都允许该登录用户以单色花样模式来进行图像形成,从而在记录纸上能够忠实地再现对用户而言具有重要意义的标志L的颜色、以及下划线和涂色部分等的颜色。由此,在打印时使用彩色调色剂从而导致的成本提高不大的范围内,能够提高用户的满意度。Therefore, when the difference between the sum of the number of appearances of the first color and the number of appearances of the second color and the total number of pixels of the color image is small, it can be inferred that the area of the color belonging to a specific pattern with a color system is small, regardless of Regardless of whether the logged-in user is limited to a black-and-white mode user or an unrestricted user, the logged-in user is allowed to perform image formation in a monochrome pattern mode, so that the logo L that is important to the user can be faithfully reproduced on the recording paper. Color, and the color of underlined and colored parts, etc. As a result, user satisfaction can be improved within a range in which the cost increase due to the use of color toners during printing is not large.

从上述观点,颜色设定部13计算第一颜色的出现次数与第二颜色的出现次数之和(SUM1)(步骤S10)。接着,颜色设定部13利用下式1,从彩色图像的全像素数减去SUM1,从而获得其差(OTHERS)(步骤S11)。From the viewpoint described above, the color setting unit 13 calculates the sum ( SUM1 ) of the number of appearances of the first color and the number of appearances of the second color (step S10 ). Next, the color setting unit 13 obtains the difference (OTHERS) by subtracting SUM1 from the total number of pixels of the color image using the following formula 1 (step S11 ).

OTHERS=全像素数-SUM1   式1OTHERS=full pixel count-SUM1 Formula 1

然后,颜色设定部13判断OTHERS是否大于预先规定的大小判断值tf1(步骤S12)。Then, the color setting unit 13 judges whether or not OTHERS is larger than a predetermined size judgment value tf1 (step S12 ).

如果OTHERS小于该大小判断值tf1,则可推测为出现次数少于第二颜色的标志L等特定花样的颜色在图像数据D中所占的面积较小。If OTHERS is smaller than the size judgment value tf1, it can be presumed that the color of the specific pattern, such as the logo L that appears less frequently than the second color, occupies a small area in the image data D.

因此,在步骤S12中,当OTHERS小于大小判断值tf1时(步骤S12中为“是”),颜色设定部13判断为特定花样的大小较小,并进入步骤S13的处理。Therefore, in step S12, when OTHERS is smaller than the size judgment value tf1 (YES in step S12), the color setting unit 13 judges that the size of the specific pattern is small, and proceeds to step S13.

另一方面,当OTHERS达大小判断值tf1以上时(步骤S12中为“否”),颜色设定部13向图像形成控制部16输出表示OTHERS达大小判断值tf1以上的信息。当OTHERS达大小判断值tf1以上时,可推测为特定花样的面积较大,如果实行单色花样模式以用彩色调色剂来进行打印,就会发生成本增大的问题。因此,当OTHERS达大小判断值tf1以上时,即使登录用户被允许实行单色花样模式,图像形成控制部16也不实行单色花样模式,而为了根据文字的颜色来选择打印模式,进入步骤S26。On the other hand, when OTHERS is equal to or greater than size determination value tf1 (NO in step S12 ), color setting unit 13 outputs information indicating that OTHERS is greater than or equal to size determination value tf1 to image formation control unit 16 . When OTHERS exceeds the size judgment value tf1, it can be inferred that the area of the specific pattern is large. If the single-color pattern mode is used to print with color toner, the problem of cost increase will occur. Therefore, when OTHERS is greater than or equal to the size judgment value tf1, even if the login user is permitted to execute the monochrome pattern mode, the image formation control unit 16 does not execute the monochrome pattern mode, but proceeds to step S26 in order to select a print mode according to the color of the characters. .

当不实行单色花样模式时,从降低打印成本的观点考虑,实行以黑色调色剂来打印整个图像数据D的黑白模式为宜。When the monochrome pattern mode is not executed, it is preferable to implement the monochrome mode in which the entire image data D is printed with black toner from the viewpoint of reducing printing costs.

然而,如果文字的颜色属于有色彩系,就用彩色调色剂忠实地再现文字的颜色为宜。于是,在步骤S26中,图像形成控制部16判断被推测为文字的颜色的第二颜色是否属于无色彩系。However, if the color of the characters belongs to the chromatic system, it is advisable to faithfully reproduce the colors of the characters with a color toner. Then, in step S26 , the image formation control unit 16 determines whether or not the second color estimated to be the color of the characters belongs to the achromatic system.

当第二颜色属于无色彩系时(步骤S26中为“是”),图像形成控制部16实行黑白模式(步骤S28)。另一方面,当第二颜色属于有色彩系时(步骤S26中为“否”),图像形成控制部16实行单色模式(步骤S27)。When the second color belongs to the achromatic system (YES in step S26 ), the image formation control unit 16 executes the black and white mode (step S28 ). On the other hand, when the second color belongs to the chromatic system (NO in step S26 ), the image formation control unit 16 executes the monochrome mode (step S27 ).

在步骤S27的单色模式下,利用作为第二颜色的彩色调色剂来打印文字(C)和标志L。由此,能够忠实地再现文字的颜色。In the monochrome mode of step S27 , the characters (C) and the logo L are printed with the color toner as the second color. Accordingly, it is possible to faithfully reproduce the color of the characters.

另外,如果从图像数据的全像素数中减去第一颜色的出现次数、第二颜色的出现次数与第三颜色的出现次数之和(SUM2)从而获得的差份,即{(全像素数)-(SUM2)}小于花样判断值tf2,则可推测为第四颜色的出现次数、第五颜色的出现次数和第六颜色的出现次数均较低。此时,特定花样由第三颜色构成(即由单色构成)的可能性高。In addition, if the sum (SUM2) of the number of occurrences of the first color, the number of occurrences of the second color, and the number of appearances of the third color is subtracted from the total number of pixels of the image data, the difference obtained is {(number of total pixels )-(SUM2)} is less than the pattern judgment value tf2, it can be inferred that the number of appearances of the fourth color, the number of appearances of the fifth color and the number of appearances of the sixth color are all low. At this time, there is a high possibility that the specific pattern is composed of the third color (that is, composed of a single color).

从该观点考虑,在步骤S13中,颜色设定部13计算第一颜色的出现次数、第二颜色的出现次数与第三颜色的出现次数之和(SUM2)(步骤S13)。接着,颜色设定部13从图像数据D的全像素数中减去SUM2,并判断{(全像素数)-(SUM2)}是否小于预先规定的花样判断值tf2(步骤S14)。From this point of view, in step S13 , the color setting unit 13 calculates the sum ( SUM2 ) of the number of appearances of the first color, the number of appearances of the second color, and the number of appearances of the third color (step S13 ). Next, the color setting unit 13 subtracts SUM2 from the total number of pixels of the image data D, and determines whether {(the total number of pixels)-(SUM2)} is smaller than a predetermined pattern determination value tf2 (step S14).

通过该判断,当所述{(全像素数)-(SUM2)}小于花样判断值tf2时(步骤S14中为“是”),颜色设定部13判断为特定花样由单色构成,并且,为了判断是否实行单色花样模式,进入骤S15(参照图7)的处理。而当所述{(全像素数)-(SUM2)}达花样判断值tf2以上时(步骤S14中为“否”),判断为特定花样包括多个颜色,并且,为了实行黑白模式或全色模式,进入步骤S22(参照图8)的处理。Through this determination, when the {(total number of pixels)-(SUM2)} is smaller than the pattern determination value tf2 (YES in step S14), the color setting section 13 determines that the specific pattern is composed of a single color, and, In order to judge whether to execute the single-color pattern mode, the process proceeds to step S15 (refer to FIG. 7 ). And when the {(total number of pixels)-(SUM2)} exceeds the pattern judgment value tf2 ("No" in step S14), it is judged that the specific pattern includes a plurality of colors, and, in order to implement black and white mode or full color mode, the process proceeds to step S22 (see FIG. 8 ).

在步骤S15中,颜色设定部13判断第三颜色的出现次数是否在预先规定的基准次数tf3以上。当第三颜色的出现次数达基准次数tf3以上时,由第三颜色构成(即由单色构成)的特定花样在图像数据D中占一定范围的可能性高,而当第三颜色的出现次数小于基准次数tf3时,第三颜色至第六颜色均不构成花样,而分散在图像数据D中的可能性高。In step S15, the color setting unit 13 determines whether or not the number of appearances of the third color is equal to or greater than a predetermined reference number of times tf3. When the number of occurrences of the third color exceeds the reference number of times tf3, there is a high probability that the specific pattern composed of the third color (that is, composed of a single color) occupies a certain range in the image data D, and when the number of occurrences of the third color When the number of times is less than the reference number of times tf3, none of the third to sixth colors constitute a pattern, and are highly likely to be scattered in the image data D.

当第三颜色的出现次数达基准次数tf3以上时(步骤S15中为“是”),颜色设定部13为了继续判断是否实行单色花样模式而进入步骤S16的处理,而当第三颜色的出现次数小于基准次数tf3时,颜色设定部13为了以黑白模式或全色模式进行打印,进入步骤S22(参照图8)的处理。When the number of occurrences of the third color reaches the reference number of times tf3 or more ("Yes" in step S15), the color setting part 13 enters the processing of step S16 in order to continue to judge whether to implement the monochrome pattern mode, and when the third color When the number of occurrences is smaller than the reference number of times tf3, the color setting unit 13 proceeds to the processing of step S22 (see FIG. 8 ) in order to print in the black-and-white mode or the full-color mode.

在步骤S16中,颜色设定部13判断第三颜色的出现次数是否小于预先规定的辅助大小判断值tf4。其中,辅助大小判断值tf4>tf3。In step S16, the color setting unit 13 judges whether or not the number of occurrences of the third color is smaller than a predetermined auxiliary size judgment value tf4. Wherein, the auxiliary size judgment value tf4>tf3.

当第三颜色的出现次数小于辅助大小判断值tf4时,可推测为由单色构成的特定花样的图像面积较小,而当第三颜色的出现次数达辅助大小判断值tf4以上时,可推测为由单色构成的特定花样的图像面积较大。When the number of occurrences of the third color is less than the auxiliary size judgment value tf4, it can be inferred that the image area of the specific pattern composed of a single color is small, and when the number of appearances of the third color reaches the auxiliary size judgment value tf4, it can be inferred The image area of a specific pattern composed of a single color is large.

当第三颜色的出现次数小于辅助大小判断值tf4时(步骤S16中为“是”),颜色设定部13判断第二颜色是否属于无色彩系(步骤S17)。当判断为第二颜色属于无色彩系时(步骤S17中为“是”),颜色设定部13设定单色花样模式(步骤S18),并将第三颜色设定为花样颜色(步骤S19)。由此,对包含颜色属于有色彩系的花样的图像进行打印时,能够提高该花样的颜色再现性。When the number of occurrences of the third color is smaller than the auxiliary size judgment value tf4 (YES in step S16 ), the color setting unit 13 judges whether the second color belongs to the achromatic system (step S17 ). When it is judged that the second color belongs to the achromatic system ("Yes" in step S17), the color setting part 13 sets the single-color pattern mode (step S18), and sets the third color as the pattern color (step S19 ). As a result, when printing an image including a pattern whose color belongs to a chromatic system, the color reproducibility of the pattern can be improved.

此外,在步骤S17的处理中判断第二颜色是否属于无色彩系,是因为第二颜色属于无色彩系的情况下,可推测为文字(C)是黑色。In addition, it is determined whether the second color belongs to the achromatic system in the process of step S17 , because when the second color belongs to the achromatic system, it can be presumed that the character (C) is black.

在实行单色花样模式时利用黑色调色剂来打印文字(C),因此,如果文字(C)是黑色则不会发生问题。然而,如果文字C的颜色属于有色彩系,则不宜实行单色花样模式从而利用黑色调色剂来打印文字(C)。因此,在步骤S17中判断为第二颜色属于无色彩系时(步骤S17中为“否”),颜色设定部13为了进行全色模式而进入步骤S22。When the monochrome pattern mode is executed, the characters (C) are printed with black toner, so if the characters (C) are black, no problem occurs. However, if the color of the character C belongs to the color system, it is not appropriate to implement the monochrome pattern mode to print the character (C) with black toner. Therefore, when it is determined in step S17 that the second color belongs to the achromatic system (NO in step S17 ), the color setting unit 13 proceeds to step S22 in order to perform the full-color mode.

不过,不一定需要在步骤S17中进行是否属于无色彩系的判断,例如,即使不进行步骤S17中的判断也能知道文字(C)的颜色是黑色时,就可以省略步骤S17。However, it is not necessarily necessary to judge whether it belongs to the achromatic system in step S17. For example, if it is known that the color of the character (C) is black without making the judgment in step S17, step S17 can be omitted.

颜色设定部13在设定了单色花样模式及花样颜色时,向图像形成控制部16通知设定了单色花样模式以及将第三颜色设定为特定花样的花样颜色。When the monochrome pattern mode and the pattern color are set, the color setting unit 13 notifies the image formation control unit 16 that the monochrome pattern mode is set and that the third color is set as the pattern color of the specific pattern.

接着,图像形成控制部16实行单色花样模式(步骤S20),利用颜色设定部13设定的花样颜色的调色剂来打印花样,并利用第二颜色的调色剂,例如利用黑色调色剂来打印文字(C)。Next, the image forming control unit 16 executes the single-color pattern mode (step S20), prints the pattern using the toner of the pattern color set by the color setting unit 13, and uses the toner of the second color, for example, black tone. toner to print text (C).

图像形成装置1在完成步骤S20的处理后,更新用户的收费信息(步骤S21)。例如,图像形成装置1在管理部17中按用户的识别信息记录向该用户收费的金额(将该金额作为收费信息),并且,在单色花样模式下进行了图像形成后,将与所实行的模式对应的金额作为对应于用户识别信息的收费信息,依次记录到管理部17中。After the image forming apparatus 1 completes the process of step S20 , it updates the billing information of the user (step S21 ). For example, the image forming apparatus 1 records, in the management unit 17, the amount charged to the user according to the user's identification information (the amount is used as the charging information), and after performing image formation in the monochrome pattern mode, the The amount of money corresponding to the pattern is sequentially recorded in the management unit 17 as charging information corresponding to the user identification information.

如此,由于将对应于单色花样模式的金额作为收费信息来依次记录,易于知道向用户收费的金额多少。In this way, since the amount corresponding to the single-color pattern mode is sequentially recorded as charging information, it is easy to know how much the user is charged.

另一方面,在步骤S16中,当第三颜色的出现次数达辅助大小判断值tf4以上时(步骤S16中为“否”),颜色设定部13为了避免在可向用户收费的金额不多的单色花样模式下使用大量的高价彩色调色剂,进入步骤S22的处理。On the other hand, in step S16, when the number of occurrences of the third color exceeds the auxiliary size judgment value tf4 ("No" in step S16), the color setting unit 13 may charge the user in order to avoid the amount of money that can be charged to the user is not large. If a large amount of high-priced color toner is used in the single-color pattern mode, the process proceeds to step S22.

另外,在步骤S3中,登录的用户不被允许实行单色花样模式时(步骤S3中为“否”),颜色设定部13从步骤S3进入步骤S22(参照图8)的处理。Also, in step S3, when the logged-in user is not permitted to execute the monochrome pattern mode (NO in step S3), the color setting unit 13 proceeds from step S3 to step S22 (see FIG. 8 ).

此外,在步骤S14中,{(全像素数)-(SUM2)}的值达花样判断值tf2以上时(步骤S14中为“否”),颜色设定部13为了以黑白模式或全色模式进行打印,进入步骤S22(参照图8)的处理。这是因为当{(全像素数)-(SUM2)}的值达花样判断值tf2以上时,可推测为第四颜色的出现次数、第五颜色的出现次数和第六颜色的出现次数均较高,即花样包括多个颜色的可能性较高。In addition, in step S14, when the value of {(total number of pixels)-(SUM2)} exceeds the pattern determination value tf2 ("No" in step S14), the color setting unit 13 uses black-and-white mode or full-color mode Printing is performed, and the process proceeds to step S22 (see FIG. 8 ). This is because when the value of {(total number of pixels)-(SUM2)} exceeds the pattern judgment value tf2, it can be inferred that the number of appearances of the fourth color, the number of appearances of the fifth color and the number of appearances of the sixth color are all lower. High, that is, the pattern is more likely to include multiple colors.

此外,在步骤S15中,第三颜色的出现次数小于基准次数tf3时(步骤S15中为“否”),颜色设定部13为了以黑白模式或全色模式进行打印,进入步骤S22(参照图8)的处理。当第三颜色的出现次数小于基准次数tf3时,第三颜色不构成花样,而第三颜色至第六颜色分散到图像数据D中的可能性高。此时,图像数据D不适于利用只对特定花样进行彩色打印的单一花样模式来形成图像,因此进入步骤S22的处理。In addition, in step S15, when the number of occurrences of the third color is less than the reference number of times tf3 ("No" in step S15), the color setting unit 13 proceeds to step S22 (refer to FIG. 8) Processing. When the number of occurrences of the third color is less than the reference number of times tf3, the third color does not constitute a pattern, and the possibility that the third to sixth colors are scattered into the image data D is high. At this time, the image data D is not suitable for forming an image in the single-pattern mode in which only a specific pattern is printed in color, so the process proceeds to step S22.

另外,在步骤S16中,当第三颜色的出现次数达辅助大小判断值tf4以上时(步骤S16中为“否”),颜色设定部13也为了以黑白模式或全色模式进行打印,进入步骤S22(参照图8)的处理。这是因为当第三颜色的出现次数达辅助大小判断值tf4以上时,颜色被推测为第三颜色的花样图像的面积较大的可能性高。In addition, in step S16, when the number of occurrences of the third color exceeds the auxiliary size judgment value tf4 ("No" in step S16), the color setting unit 13 also enters the Processing of step S22 (see FIG. 8 ). This is because when the number of occurrences of the third color is equal to or greater than the auxiliary size judgment value tf4, the color is estimated to be the third color and the area of the pattern image is likely to be large.

下面,利用图8说明步骤S22至S24的处理。Next, the processing of steps S22 to S24 will be described using FIG. 8 .

在步骤S22中,登录图像形成装置1的用户不是被允许实行全色模式的用户时(步骤S22中为“否”),颜色设定部13设定黑白模式(步骤S24)。In step S22 , if the user logged into image forming apparatus 1 is not a user who is allowed to execute the full-color mode (NO in step S22 ), the color setting unit 13 sets the black and white mode (step S24 ).

在黑白模式下,图像形成控制部16只利用黑色调色剂来打印图像数据D。In the black and white mode, the image formation control section 16 prints the image data D using only black toner.

另一方面,登录图像形成装置1的用户是被允许实行全色模式的用户时(步骤S22中为“是”),颜色设定部13设定全色模式(步骤S23)。On the other hand, when the user logged into the image forming apparatus 1 is a user who is allowed to execute the full-color mode (YES in step S22 ), the color setting unit 13 sets the full-color mode (step S23 ).

在全色模式下,图像形成控制部16利用所有颜色的调色剂来打印图像数据D。In the full-color mode, the image formation control section 16 prints the image data D using toners of all colors.

接着,图像形成控制部16更新用户的收费信息(步骤S25)。例如,图像形成装置1预先准备在管理部17中按用户的识别信息记录向该用户收费的金额(将该金额作为收费信息),并且,在单色花样模式或全色模式下进行了图像形成后,将与所实行的模式对应的金额作为对应于用户识别信息的收费信息,依次记录到管理部17中。Next, the image formation control unit 16 updates the billing information of the user (step S25 ). For example, the image forming apparatus 1 prepares in advance to record the amount charged to the user according to the user's identification information in the management unit 17 (the amount is used as the charging information), and the image forming is performed in the single-color pattern mode or the full-color mode. Thereafter, the amount corresponding to the executed mode is sequentially recorded in the management unit 17 as charging information corresponding to the user identification information.

如此,由于将对应于所实行的黑白模式或全色模式的金额作为收费信息来依次记录,因此易于知道向用户收费的金额多少。In this way, since the amount corresponding to the black-and-white mode or the full-color mode to be executed is sequentially recorded as charging information, it is easy to know how much the user is charged.

另外,颜色设定部13在步骤S9中将第三颜色设定为候补花样后,也可以不进行步骤S10至S12以及步骤S15的处理,而直接进行步骤S13、S14、S17、S18和S19的处理,从而将第三颜色设定为花样颜色。In addition, after the color setting unit 13 sets the third color as the candidate design in step S9, it may not perform the processing of steps S10 to S12 and step S15, but directly perform the processing of steps S13, S14, S17, S18 and S19. process to set the third color as the pattern color.

此外,颜色设定部13也可以进行图9所示的步骤S100至S102的处理,来代替所述步骤S13及S14(参照图6)的处理。图9是表示颜色设定部13进行的处理的其他例子的流程图。In addition, the color setting unit 13 may perform the processing of steps S100 to S102 shown in FIG. 9 instead of the processing of steps S13 and S14 (see FIG. 6 ). FIG. 9 is a flowchart showing another example of processing performed by the color setting unit 13 .

如果从彩色图像的全像素数中减去第一颜色的出现次数、第二颜色的出现次数、第三颜色的出现次数与第四颜色的出现次数之和从而获得的差小于花样判断值tf5,则第一颜色至第四颜色以外的颜色,例如第五颜色和第六颜色的出现次数较低,花样的颜色是第三颜色或第四颜色的可能性较高。If the difference obtained by subtracting the number of appearances of the first color, the number of appearances of the second color, the number of appearances of the third color and the number of appearances of the fourth color from the total number of pixels of the color image is less than the pattern judgment value tf5, Then, colors other than the first to fourth colors, such as the fifth and sixth colors, appear less frequently, and the color of the design is more likely to be the third or fourth color.

进而,如果第四颜色的出现次数小于追加花样判断值tf6,则特定花样由第三颜色构成(即由单色构成)的可能性高。Furthermore, if the number of occurrences of the fourth color is smaller than the additional pattern determination value tf6, it is highly likely that the specific pattern is composed of the third color (that is, composed of a single color).

因此,颜色设定部13在进行步骤S12(参照图6)的处理后,计算第一颜色的出现次数、第二颜色的出现次数、第三颜色的出现次数与第四颜色的出现次数之和(SUM3)(步骤S100)。接着,颜色设定部13从图像数据D的全像素数中减去SUM3,并判断{(全像素数)-(SUM3)}是否小于预先规定的花样判断值tf5(步骤S101)。Therefore, the color setting unit 13 calculates the sum of the number of appearances of the first color, the number of appearances of the second color, the number of appearances of the third color, and the number of appearances of the fourth color after performing the processing of step S12 (see FIG. 6 ). (SUM3) (step S100). Next, the color setting unit 13 subtracts SUM3 from the total number of pixels of the image data D, and determines whether {(the total number of pixels)-(SUM3)} is smaller than a predetermined pattern determination value tf5 (step S101 ).

当所述{(全像素数)-(SUM3)}小于花样判断值tf5时(步骤S101中为“是”),颜色设定部13判断第四颜色的出现次数是否小于预先规定的追加花样判断值tf6(步骤S102)。When the {(total number of pixels)-(SUM3)} is less than the pattern judgment value tf5 ("Yes" in step S101), the color setting unit 13 judges whether the number of occurrences of the fourth color is less than the predetermined additional pattern judgment value tf6 (step S102).

而当所述{(全像素数)-(SUM3)}达花样判断值tf5以上时(步骤S101中为“否”),颜色设定部13判断为特定花样包括多个颜色,并且,为了以全色模式(或黑白模式)进行打印,进入步骤S22(参照图8)的处理。这是因为所述{(全像素数)-(SUM3)}达花样判断值tf5以上时,花样由多个颜色构成的可能性较高。On the other hand, when the {(total number of pixels)-(SUM3)} reaches the pattern judgment value tf5 or more ("No" in step S101), the color setting unit 13 judges that the specific pattern includes a plurality of colors, and, in order to Print in full-color mode (or black-and-white mode), and proceed to step S22 (see FIG. 8 ). This is because when the above {(total number of pixels)-(SUM3)} exceeds the pattern judgment value tf5, it is highly likely that the pattern consists of a plurality of colors.

在步骤S102中,第四颜色的出现次数小于追加花样判断值tf6时(步骤S102中为“是”),颜色设定部13经过步骤S15至S18进行步骤S19的处理,将第三颜色设定为花样颜色。如上所述,通过步骤S100至S102的处理,可以降低将第三颜色误设定为包括多个颜色的特定花样的花样颜色的可能性。结果,对包含颜色属于有色彩系的花样的图像进行打印时,能够提高花样的颜色再现性。In step S102, when the number of occurrences of the fourth color is less than the additional pattern judgment value tf6 ("Yes" in step S102), the color setting part 13 performs the processing of step S19 through steps S15 to S18, and sets the third color for the pattern color. As described above, through the processing of steps S100 to S102, it is possible to reduce the possibility that the third color is erroneously set as the pattern color of a specific pattern including a plurality of colors. As a result, when an image including a pattern whose color belongs to a chromatic system is printed, the color reproducibility of the pattern can be improved.

另外,图像形成装置1也可以不具有管理部17、操作输入部18和设定部20,不进行步骤S1、S3、S9至S12、S15至S18及S20至S28,而进行如下工作。In addition, the image forming apparatus 1 may not have the management unit 17 , the operation input unit 18 , and the setting unit 20 , and may perform the following operations without performing steps S1 , S3 , S9 to S12 , S15 to S18 , and S20 to S28 .

例如,图像形成装置1也可以依次进行步骤S2、S4至S8、S13以及S14,如果步骤S14中为“是”就进行步骤S19,从而将第三颜色设定为花样颜色。另外,如果步骤S14中为“否”,也可以进行步骤S22至S25。For example, the image forming apparatus 1 may sequentially perform steps S2, S4 to S8, S13, and S14, and if YES in step S14, proceed to step S19 to set the third color as the design color. In addition, if "NO" in step S14, steps S22 to S25 may also be performed.

由此,对包含颜色属于有色彩系的花样的图像进行打印时,能够提高花样的颜色再现性。As a result, when an image including a pattern whose color belongs to a chromatic system is printed, the color reproducibility of the pattern can be improved.

另外,也可以采用步骤S100至S102来代替步骤S13和S14,即依次进行步骤S2、S4至S8、S100至S102,如果步骤S102中为“是”,就进行步骤S19从而将第三颜色设定为花样颜色。由此,可以降低将第三颜色误设定为包括多个颜色的特定花样的花样颜色的可能性。结果,对包含颜色属于有色彩系的花样的图像进行打印时,能够提高花样的颜色再现性。在以下说明中,也可以同样进行步骤S100至S102来代替步骤S13和S14。In addition, steps S100 to S102 can also be used instead of steps S13 and S14, that is, steps S2, S4 to S8, and S100 to S102 are performed in sequence, and if "Yes" in step S102, then step S19 is performed to set the third color for the pattern color. Thereby, it is possible to reduce the possibility that the third color is erroneously set as the pattern color of a specific pattern including a plurality of colors. As a result, when an image including a pattern whose color belongs to a chromatic system is printed, the color reproducibility of the pattern can be improved. In the following description, steps S100 to S102 may be similarly performed instead of steps S13 and S14.

另外,也可以依次进行步骤S2、S4至S8、S13及S14,如果步骤S14中为“是”就进行步骤S16,并且,当步骤S16中为“是”时,进行步骤S19从而将第三颜色设定为花样颜色。这样,对于彩色调色剂的消费量多的大花样不设定花样颜色,而只对于打印成本不高的小花样,将第三颜色设定为花样颜色,因此,能够容易地在打印成本的容许范围内提高用户的满意度。In addition, steps S2, S4 to S8, S13, and S14 can also be performed in sequence, and if it is "Yes" in step S14, then step S16 is performed, and, when it is "Yes" in step S16, step S19 is performed so that the third color Set as pattern color. In this way, the design color is not set for a large design that consumes a large amount of color toner, but only the third color is set as the design color for a small design that is not expensive to print. Therefore, it is possible to easily reduce the printing cost. Improve user satisfaction within the allowable range.

另外,图像形成控制部16只有在登录用户是限于黑白模式的用户、且对于该登录用户已做出允许实行单色花样模式的设定时才从步骤S3进入步骤S4的情况下,图像形成装置1也可以不进行S9至S12、S15至S18、S21、S22、S23和S25,而依次进行步骤S1至S8、S13和S14,如果步骤S14中为“是”,就进行步骤S19和S20,从而以单色花样模式进行图像形成,如果步骤S14中为“否”,就进行步骤S24,从而以黑白模式进行图像形成。In addition, the image forming control unit 16 proceeds from step S3 to step S4 only when the logged-in user is a user limited to the black-and-white mode and the logged-in user has made a setting to allow execution of the monochrome pattern mode. 1 It is also possible not to carry out steps S9 to S12, S15 to S18, S21, S22, S23 and S25, but to carry out steps S1 to S8, S13 and S14 in sequence, and if "Yes" in step S14, to carry out steps S19 and S20, thereby Image formation is performed in monochromatic pattern mode, and if "No" in step S14, proceed to step S24, thereby performing image formation in black and white mode.

此时,在识别信息输入部接受限于黑白模式的用户的识别信息的输入,且设定部接受对于具有该识别信息的用户允许实行单色花样模式的设定时,允许限于黑白模式的用户实行黑白模式和单色花样模式。这样,通过做出允许实行单色花样模式的设定,能够在成本负担的增加不大的范围内,提高用户的满意度。At this time, when the identification information input unit accepts the input of the identification information of the user limited to the black and white mode, and the setting unit accepts the setting of allowing the monochrome pattern mode to be executed by the user having the identification information, the user limited to the black and white mode is allowed to execute the pattern. Black and white mode and monochrome pattern mode. In this way, by setting the monochromatic pattern mode to be allowed to be executed, it is possible to improve the user's satisfaction within a range in which the cost burden is not greatly increased.

另外,在步骤S102中,第四颜色的出现次数小于追加花样判断值tf6时(步骤S102中为“是”),颜色设定部13也可以不进行步骤S15及S16(参照图7参照)的处理就设定单色花样模式(步骤S18),将第三颜色设定为花样颜色(步骤S19)。In addition, in step S102, when the number of appearances of the fourth color is less than the additional pattern determination value tf6 (YES in step S102), the color setting unit 13 may not perform steps S15 and S16 (refer to FIG. 7 ). The processing is to set the single-color pattern mode (step S18), and set the third color as the pattern color (step S19).

此外,颜色设定部13也可以不是在步骤S12(参照图6)的处理后,而在步骤S9(参照图5)的处理后进行步骤S100的处理。In addition, the color setting unit 13 may perform the processing of step S100 not after the processing of step S12 (see FIG. 6 ), but after the processing of step S9 (see FIG. 5 ).

另一方面,当第四颜色的出现次数达追加花样判断值tf6以上时(步骤S102中为“否”),颜色设定部13为了进行全色模式(或黑白模式)进入步骤S22(参照图8)的处理。这是因为第四颜色的出现次数达追加花样判断值tf6以上时,花样包括多个颜色的可能性较高。On the other hand, when the number of appearances of the fourth color reaches the additional pattern judgment value tf6 or more ("No" in step S102), the color setting part 13 proceeds to step S22 (refer to FIG. 8) Processing. This is because when the number of occurrences of the fourth color exceeds the additional pattern judgment value tf6, the pattern is more likely to include a plurality of colors.

另外,在上述处理中,图像形成控制部16实行黑白模式、单色模式、单色花样模式和全色模式,但不一定需要实行所有模式,只要实行黑白模式及单色花样模式即可。In addition, in the above processing, the image formation control unit 16 executes the monochrome mode, the monochrome mode, the monochrome pattern mode, and the full-color mode, but it is not necessary to execute all the modes, as long as the monochrome mode and the monochrome pattern mode are executed.

下面,利用图10至图14,就背景色、文字的颜色和花样颜色的设定处理的详细内容进行说明。图10是表示三维频数分布信息的一个例子的说明图,该三维频数分布信息表示由图2中的频数分布获取部12生成的频数分布。其中,频数分布获取部12也可以将频数分布生成为二维频数分布图。Next, the details of the setting process of the background color, the character color, and the pattern color will be described with reference to FIGS. 10 to 14 . FIG. 10 is an explanatory diagram showing an example of three-dimensional frequency distribution information representing a frequency distribution generated by the frequency distribution acquisition unit 12 in FIG. 2 . However, the frequency distribution acquisition unit 12 may generate the frequency distribution as a two-dimensional frequency distribution graph.

图像数据D的各像素的颜色(像素值)由三个要素颜色的浓度值表示,当设青色的浓度值为c、品红色的浓度值为m、黄色的浓度值为ye时,各像素的颜色(像素值)可以表示为(c,m,ye)The color (pixel value) of each pixel of the image data D is expressed by the density values of three element colors. When the density value of cyan is c, the density value of magenta is m, and the density value of yellow is ye, the density value of each pixel is Color (pixel value) can be expressed as (c,m,ye)

于是,如图10所示,对三维坐标的各坐标轴分配青色(C)的浓度值、品红色(M)的浓度值和黄色(Y)的浓度值时,各像素的颜色(组)像图10中的小方体G那样地配置在三维坐标上。通过使如此配置在三维坐标上的小方体(组)与频数关联起来,可以生成以三维频数分布图表示的三维频数分布信息。Then, as shown in FIG. 10, when the density values of cyan (C), magenta (M) and yellow (Y) are assigned to the respective coordinate axes of the three-dimensional coordinates, the color (group) image of each pixel is The cuboid G in FIG. 10 is arranged on the three-dimensional coordinates like this. By associating the cuboids (groups) arranged on the three-dimensional coordinates with the frequencies, three-dimensional frequency distribution information represented by a three-dimensional frequency distribution graph can be generated.

这样,频数分布获取部12在三维坐标上配置频数分布,从而生成三维频数分布信息。In this way, the frequency distribution acquisition unit 12 arranges the frequency distribution on the three-dimensional coordinates to generate three-dimensional frequency distribution information.

在图10中,沿左右方向延伸的X轴上分配青色(C)的浓度值,沿上下方向延伸的Y轴上分配品红色(M)的浓度值,沿纸面里侧方向延伸的Z轴上分配黄色(Y)的浓度值。In Fig. 10, the density value of cyan (C) is assigned to the X-axis extending in the left-right direction, the density value of magenta (M) is assigned to the Y-axis extending in the vertical direction, and the Z-axis extending in the direction of the paper surface Assign the concentration value of yellow (Y) on it.

各像素的像素值(c,m,ye)由配置在坐标(X,Y,Z)上的组(小方体G)来表示。The pixel value (c, m, ye) of each pixel is represented by a group (small cuboid G) arranged on the coordinates (X, Y, Z).

各要素颜色的浓度值由8位表示,若用十六进制数,可转换为Hx00至HxFF。以下,附上Hx来表示十六进制数。在图10中,各坐标轴只表示各要素颜色的浓度值的上序4位。即,以Hx0至HxF来表示各要素颜色的浓度值。The density value of each element color is represented by 8 bits, and can be converted into Hx00 to HxFF in hexadecimal notation. Hereinafter, Hx is appended to represent a hexadecimal number. In FIG. 10 , each coordinate axis shows only the upper-order 4 digits of the density value of each element color. That is, the density value of each element color is represented by Hx0 to HxF.

此时,在各坐标轴的值为上序4位的三维坐标上,例如由坐标(HxF,HxF,HxF)表示的组(小方体G)中实际上包括像素值的范围在(HxF0至HxFF,HxF0至HxFF,HxF0至HxFF)的多个颜色。并且,各浓度值的下序4位Hx0至HxF的范围相当于被划分的各组的范围。At this time, on the three-dimensional coordinates where the value of each coordinate axis is the upper order 4 bits, for example, the group (small cube G) represented by the coordinates (HxF, HxF, HxF) actually includes the range of pixel values in (HxF0 to HxFF, HxF0 to HxFF, HxF0 to HxFF) in multiple colors. Also, the range of the lower-order 4 digits Hx0 to HxF of each density value corresponds to the range of each divided group.

以下,将包含多个颜色的组(小方体)G称为颜色群G。颜色群G是包含该颜色群G中所有颜色的组。在颜色群G中包含的所有颜色的像素之和相当于颜色群G的出现次数(频数)。以下,将颜色群G中包含的多个颜色,即共享浓度值中上序位的多个颜色称为颜色群G的颜色。Hereinafter, a group (cuboid) G including a plurality of colors is referred to as a color group G. FIG. A color group G is a group including all colors in the color group G. The sum of pixels of all colors included in the color group G corresponds to the number of appearances (frequency) of the color group G. Hereinafter, a plurality of colors included in the color group G, that is, a plurality of colors that share a higher order in the density value are referred to as colors of the color group G.

如上所述,频数分布获取部12在X坐标上分配青色浓度值的上序4位,在Y坐标上分配品红色浓度值的上序4位,在Z坐标上分配黄色浓度值的上序4位。As described above, the frequency distribution acquisition unit 12 assigns the upper 4 digits of the cyan density value to the X coordinate, the upper 4 digits of the magenta density value to the Y coordinate, and the upper 4 digits of the yellow density value to the Z coordinate. bit.

由此,频数分布获取部12将共享各要素颜色(青色、品红色、黄色)的浓度值中上序4位的颜色作为颜色群(组),配置在三维坐标上。As a result, the frequency distribution acquisition unit 12 arranges the colors that share the upper 4 digits of the density values of the respective element colors (cyan, magenta, and yellow) as a color group (group) on the three-dimensional coordinates.

不过,频数分布获取部12不一定需要在坐标轴上分配上序4位,也可以配置上序4位以外的上序几位。此外,频数分布获取部12也可以在各坐标轴上分配各浓度值的所有位。此时,一个颜色群(组)G代表一个颜色,即一个颜色相当于一个组。However, the frequency distribution acquisition unit 12 does not necessarily need to allocate the upper 4 digits on the coordinate axis, and may arrange several upper order digits other than the upper 4 digits. In addition, the frequency distribution acquisition unit 12 may allocate all the digits of each density value on each coordinate axis. At this time, one color group (group) G represents one color, that is, one color is equivalent to one group.

下面说明在图像形成装置1利用颜色群进行处理时的例子。Next, an example when the image forming apparatus 1 performs processing using color groups will be described.

频数分布获取部12、颜色设定部13和图像形成控制部16,在步骤S4至S16中利用各颜色群来代替各颜色,并利用各颜色群的出现次数来代替各颜色的出现次数。此时,按出现次数高到低的顺序,将各颜色群设为第一颜色群G(1)、第二颜色群G(2)、第三颜色群G(3)、第四颜色群G(4)、以及第五颜色群G(5),其中第一颜色群G(1)的颜色为第一颜色、第二颜色群G(2)的颜色为第二颜色、第三颜色群G(3)的颜色为第三颜色、第四颜色群G(4)的颜色为第四颜色、第五颜色群G(5)的颜色为第五颜色。The frequency distribution acquisition unit 12 , the color setting unit 13 and the image formation control unit 16 replace each color with each color group and replace the appearance number of each color with the appearance number of each color group in steps S4 to S16 . At this time, the color groups are set as the first color group G (1), the second color group G (2), the third color group G (3), and the fourth color group G in order of the number of occurrences from high to low. (4), and the fifth color group G (5), wherein the color of the first color group G (1) is the first color, the color of the second color group G (2) is the second color, and the third color group G The color of (3) is the third color, the color of the fourth color group G (4) is the fourth color, and the color of the fifth color group G (5) is the fifth color.

频数分布获取部12在步骤S5中将各颜色群作为组,获取表示各颜色群的出现次数的频数分布。由此,与用8位表示各颜色的浓度值的情况下获取频数分布时相比,能够减少由频数分布获取部12做出的处理量。In step S5 , the frequency distribution acquisition unit 12 acquires a frequency distribution indicating the number of appearances of each color group by using each color group as a group. Thereby, the amount of processing performed by the frequency distribution acquisition unit 12 can be reduced compared to the case of acquiring the frequency distribution in the case of expressing the density value of each color with 8 bits.

在步骤S6,颜色设定部13从出现次数最多的第一颜色群G(1)的颜色,即作为第一颜色的多个颜色中,设出现次数最多的颜色为背景色。In step S6 , the color setting unit 13 sets the color that appears most frequently among the colors of the first color group G( 1 ) that appears most frequently, that is, the first color, as the background color.

在步骤S7,颜色设定部13从出现次数第二高的第二颜色群G(2)的颜色,即作为第二颜色的多个颜色中,设出现次数最多的颜色为文字的颜色。In step S7 , the color setting unit 13 sets the color with the highest number of appearances as the color of the characters among the colors of the second color group G( 2 ) with the second highest number of appearances, that is, a plurality of colors as the second color.

颜色设定部13在步骤S17和S26中判断第二颜色中出现次数最多的颜色是否属于无色彩系。In steps S17 and S26, the color setting unit 13 judges whether or not the color that appears most frequently among the second colors belongs to the achromatic system.

在步骤S19,颜色设定部13从第三颜色群G(3)的颜色,即作为第三颜色多个颜色中,设出现次数最多的颜色为花样颜色。In step S19 , the color setting unit 13 sets the color with the largest number of occurrences among the colors of the third color group G( 3 ), that is, the third color, as the pattern color.

下面,更详细地说明利用颜色群来确定花样颜色时处理的一个例子。图11是概略表示第一颜色群G(1)及第二颜色群G(2)所属的群集合体的结构例子的说明图。Next, an example of processing for specifying a pattern color using a color group will be described in more detail. FIG. 11 is an explanatory diagram schematically showing a structural example of a group aggregate to which the first color group G( 1 ) and the second color group G( 2 ) belong.

在步骤S8中,颜色设定部13也可以通过如下方式设定第三颜色和第四颜色。具体而言,如图11所示,颜色设定部13根据图10所示的三维频数分布信息,由第一颜色群G(1)及至第一颜色群G(1)的坐标位置的距离不到预先规定的判断距离的组(即颜色群)形成一个群集合体S(1)。In step S8, the color setting unit 13 may also set the third color and the fourth color as follows. Specifically, as shown in FIG. 11 , based on the three-dimensional frequency distribution information shown in FIG. Groups (ie, color groups) to a predetermined judgment distance form a group aggregate S(1).

此外,如图11所示,颜色设定部13由第二颜色群G(2)及至第二颜色群G(2)的坐标位置的距离不到预先规定的判断距离的组(即颜色群)形成一个群集合体S(2)。In addition, as shown in FIG. 11 , the color setting unit 13 selects the second color group G(2) and the group whose distance to the coordinate position of the second color group G(2) is less than a predetermined judgment distance (that is, the color group) Form a cluster aggregate S(2).

例如,颜色设定部13使一个群集合体S(1)中包含第一颜色群G(1)、以及至第一颜色群G(1)的坐标位置的欧几里得距离(euclidean distance)小于2的坐标上的颜色群。For example, the color setting unit 13 makes the first color group G(1) included in one group aggregate S(1) and the Euclidean distance (euclidean distance) to the coordinate position of the first color group G(1) be smaller than The color group on the coordinates of 2.

例如,颜色设定部13使一个群集合体S(2)中包含第二颜色群G(2)、以及至第二颜色群G(2)的坐标位置的欧几里得距离(euclidean distance)小于2的坐标上的颜色群。For example, the color setting unit 13 makes the second color group G(2) included in one group aggregate S(2) and the Euclidean distance (euclidean distance) to the coordinate position of the second color group G(2) be smaller than The color group on the coordinates of 2.

在图10和图11所示的三维坐标中,设第一颜色群G(1)的坐标(X,Y,Z)为坐标a(a1,a2,a3)、任意坐标(X,Y,Z)为坐标b(b1,b2,b3)时,这两个坐标之间的欧几里得距离可以由下式2表示。In the three-dimensional coordinates shown in Figure 10 and Figure 11, the coordinates (X, Y, Z) of the first color group G (1) are set as coordinates a (a1, a2, a3), arbitrary coordinates (X, Y, Z ) is the coordinate b (b1, b2, b3), the Euclidean distance between these two coordinates can be expressed by the following formula 2.

d ( a , b ) = Σ i = 1 3 ( a i - b i ) 2     式2 d ( a , b ) = Σ i = 1 3 ( a i - b i ) 2 Formula 2

其中,d(a,b)表示坐标a和坐标b之间的欧几里得距离。where d(a,b) represents the Euclidean distance between coordinate a and coordinate b.

图12是使群集合体的结构例子模式化的立体图。图13是使群集合体的结构例子模式化的分解立体图。图12和图13表示群集合体S(1)的结构例子。由于群集合体S(2)的结构与群集合体S(1)相同,故省略图示及说明。Fig. 12 is a perspective view schematically showing a structural example of a cluster aggregate. Fig. 13 is an exploded perspective view schematically illustrating a structural example of a cluster assembly. 12 and 13 show structural examples of the cluster aggregate S(1). Since the structure of the cluster aggregate S(2) is the same as that of the cluster aggregate S(1), illustration and description are omitted.

如图12及图13所示,群集合体S(1)由第一颜色群G(1)、以面或边接触第一颜色群G(1)的颜色群G(11)(以下称为第一相邻颜色群)、以及与第一颜色群G(1)不以面及边接触而以点相接触的颜色群G(12)(以下称为第二相邻颜色群)构成。As shown in Figure 12 and Figure 13, the group aggregate S(1) consists of the first color group G(1), and the color group G(11) (hereinafter referred to as the second One adjacent color group), and the color group G(12) which is not in contact with the first color group G(1) by points but contacts with the first color group G(12) (hereinafter referred to as the second adjacent color group).

在图12及图13中,第一颜色群G(1)以虚线示出,第一相邻颜色群G(11)以白色示出,第二相邻颜色群G(12)以涂色示出。In Figure 12 and Figure 13, the first color group G (1) is shown in dotted line, the first adjacent color group G (11) is shown in white, and the second adjacent color group G (12) is shown in color out.

该群集合体S(1)中,第一相邻颜色群G(11)和第二相邻颜色群G(12)均位于至第一颜色群G(1)的欧几里得距离小于2的坐标上。In this group aggregate S(1), both the first adjacent color group G(11) and the second adjacent color group G(12) are located at a distance less than 2 to the first color group G(1). coordinates.

颜色设定部13将群集合体S(1)中的第一相邻颜色群G(11)的出现次数和第二相邻颜色群G(12)的出现次数加在第一颜色群G(1)的出现次数上,并将获得的出现次数作为第一颜色群G(1)的出现次数来存储在图中未表示的寄存器等中。The color setting section 13 adds the number of appearances of the first adjacent color group G (11) and the number of appearances of the second adjacent color group G (12) to the first color group G (1) in the group aggregate S (1). ), and store the obtained number of appearances as the number of appearances of the first color group G(1) in a register or the like not shown in the figure.

此外,颜色设定部13对于群集合体S(2)也与群集合体S(1)同样,将第一相邻颜色群的出现次数和第二相邻颜色群的出现次数加在第二颜色群G(2)的出现次数上,并将获得的出现次数作为第二颜色群G(2)的出现次数来存储在图中未表示的寄存器等中。In addition, the color setting unit 13 also adds the number of appearances of the first adjacent color group and the number of appearances of the second adjacent color group to the second color group similarly to the group assembly S(1) for the group aggregate S(2). The number of appearances of G(2) is calculated, and the obtained number of appearances is stored in a register not shown in the figure as the number of appearances of the second color group G(2).

此外,颜色设定部13也可以从三维坐标中除去规定的组的颜色,并在剩下的区域中将出现次数仅次于第二颜色群G(2)的颜色(颜色群)设定为第三颜色,其中所述规定的组,既是在用直线连接群集合体S(1)和群集合体S(2)而形成的路径中所配置的组,又是在三维坐标上至第一颜色群G(1)的距离大于预先规定的判断距离(例如大于欧几里得距离2)、且至第二颜色群G(2)的距离大于所述判断距离的组。In addition, the color setting unit 13 may remove a predetermined group of colors from the three-dimensional coordinates, and set the color (color group) that appears second only to the second color group G(2) in the remaining area as The third color, wherein the specified group is not only a group arranged in the path formed by connecting the group aggregate S(1) and the group aggregate S(2) with a straight line, but also a group on the three-dimensional coordinates to the first color group A group whose distance from G( 1 ) is greater than a predetermined judgment distance (for example, greater than Euclidean distance 2 ) and whose distance to the second color group G( 2 ) is greater than the judgment distance.

例如,如图11所示,颜色设定部13用直线连接第一颜色群G(1)所属的群集合体S(1)和第二颜色群G(2)所属的群集合体S(2),从而形成包含群集合体S(1)及群集合体S(2)的长方体形状的区域A(参照图11)。接着,颜色设定部13从该区域A中除去群集合体S(1)和群集合体S(2)从而获得区域A(1)。接着,颜色设定部13在从三维坐标中除去区域A(1)后的剩下区域,将出现次数仅次于第二颜色群G(2)的颜色(颜色群)作为第三颜色来获得。For example, as shown in FIG. 11 , the color setting unit 13 connects the group aggregate S(1) to which the first color group G(1) belongs and the cluster aggregate S(2) to which the second color group G(2) belongs with a straight line, Thus, a cuboid-shaped region A including the cluster aggregate S( 1 ) and the cluster aggregate S( 2 ) is formed (see FIG. 11 ). Next, the color setting unit 13 removes the cluster aggregate S( 1 ) and the cluster aggregate S( 2 ) from the area A to obtain the area A( 1 ). Next, the color setting unit 13 obtains the color (color group) that appears second only to the second color group G(2) in the remaining region after removing the region A(1) from the three-dimensional coordinates as the third color .

不过,颜色设定部13在步骤S8中也可以利用第一颜色群G(1)和第二颜色群G(2)来代替群集合体S(1)和群集合体S(2),用直线连接第一颜色群G(1)和第二颜色群G(2)来形成包括第一颜色群G(1)和第二颜色群G(2)的长方体形状的区域A,并从该区域A除去在三维坐标上至第一颜色群G(1)的距离小于所述判断距离的组(颜色)和至第二颜色群G(2)的距离小于所述判断距离的组(颜色),从而获得区域A(1)。接着,颜色设定部13可以在从三维坐标中除去区域A(1)后的剩下区域,将出现次数仅次于第二颜色群G(2)的颜色(颜色群)设定为第三颜色。However, the color setting unit 13 may use the first color group G(1) and the second color group G(2) instead of the group aggregate S(1) and the cluster aggregate S(2) in step S8, and connect them with a straight line. The first color group G(1) and the second color group G(2) form a cuboid-shaped area A including the first color group G(1) and the second color group G(2), and are removed from the area A The groups (colors) whose distance to the first color group G(1) is smaller than the judgment distance on the three-dimensional coordinates and the groups (colors) whose distance to the second color group G(2) is smaller than the judgment distance, thereby obtaining Area A (1). Next, the color setting unit 13 may set the color (color group) that appears second only to the second color group G(2) as the third color in the remaining region after removing the region A(1) from the three-dimensional coordinates. color.

此外,颜色设定部13也可以在步骤S8中利用第一颜色和第二颜色来代替群集合体S(1)和群集合体S(2),用直线连接第一颜色和第二颜色来形成包括第一颜色和第二颜色的直线状的区域A,从该区域A除去在三维坐标上至第一颜色的距离小于所述判断距离的组(颜色)和至第二颜色的距离小于所述判断距离的组(颜色),从而获得区域A(1)。然后,颜色设定部13可以在从三维坐标中除去区域A(1)的剩下区域,将出现次数仅次于第二颜色的颜色设定为第三颜来获得。In addition, the color setting unit 13 may use the first color and the second color instead of the cluster aggregate S(1) and the cluster aggregate S(2) in step S8, and connect the first color and the second color with a straight line to form a A linear region A of the first color and the second color, from which a group (color) whose distance to the first color is smaller than the judgment distance on three-dimensional coordinates and a group (color) whose distance to the second color is smaller than the judgment distance is removed Group of distances (colors) to obtain area A (1). Then, the color setting unit 13 can remove the remaining area of the area A(1) from the three-dimensional coordinates, and set the color whose appearance frequency is second only to the second color as the third color.

颜色设定部13从除去区域A(1)的三维坐标中,获得出现次数仅次于第二颜色群G(2)的第三颜色群G(3),并且获得出现次数仅次于第三颜色群G(3)的第四颜色群G(4)。The color setting unit 13 obtains the third color group G(3) whose appearance frequency is second only to the second color group G(2) from the three-dimensional coordinates of the excluded area A(1), and obtains the third color group G(3) whose appearance frequency is second only to the third color group G(2). The fourth color group G(4) of the color group G(3).

此外,在除去区域A(1)后的三维坐标中,若存在出现次数少于第四颜色群G(4)的颜色群,例如存在第五颜色群G(5)(参照图10)以及出现次数少于第五颜色群G(5)的第六颜色群G(6)(参照图10),则颜色设定部13也获得这些颜色群。In addition, in the three-dimensional coordinates after removing the area A (1), if there is a color group that appears less than the fourth color group G (4), for example, the fifth color group G (5) (see FIG. 10 ) and the occurrence The color setting unit 13 also obtains the sixth color group G( 6 ) (see FIG. 10 ) whose frequency is smaller than that of the fifth color group G( 5 ).

此外,在步骤S10中,颜色设定部13也可以利用从第一颜色群G(1)及第二颜色群G(2)获得的第一颜色的出现次数及第二颜色的出现次数来计算SUM1。In addition, in step S10, the color setting unit 13 may also use the number of appearances of the first color and the number of appearances of the second color obtained from the first color group G(1) and the second color group G(2) to calculate SUM1.

此外,在步骤S13中,颜色设定部13也可以利用从第一颜色群G(1)、第二颜色群G(2)和第三颜色群G(3)获得的第一颜色的出现次数、第二颜色出现次数和第三颜色的出现次数来计算SUM2。In addition, in step S13, the color setting unit 13 may also use the number of occurrences of the first color obtained from the first color group G(1), the second color group G(2) and the third color group G(3) , the number of occurrences of the second color and the number of occurrences of the third color to calculate SUM2.

此外,在步骤S100中,颜色设定部13也可以利用从第一颜色群G(1)、第二颜色群G(2)、第三颜色群G(3)和第四颜色群G(4)获得的第一颜色的出现次数、第二颜色的出现次数、第三颜色的出现次数和第四颜色的出现次数来计算SUM3。In addition, in step S100, the color setting unit 13 can also use the first color group G(1), the second color group G(2), the third color group G(3) and the fourth color group G(4) ) to calculate SUM3 by obtaining the number of occurrences of the first color, the number of occurrences of the second color, the number of occurrences of the third color, and the number of occurrences of the fourth color.

此外,在步骤S15中,颜色设定部13也可以对从第三颜色群G(3)获得的第三颜色的出现次数与基准次数tf3进行比较。In addition, in step S15 , the color setting unit 13 may compare the appearance count of the third color obtained from the third color group G( 3 ) with the reference count tf3 .

此外,在步骤S16中,颜色设定部13也可以对从第三颜色群G(3)获得的第三颜色的出现次数与辅助大小判断值tf4进行比较。In addition, in step S16 , the color setting unit 13 may compare the number of occurrences of the third color obtained from the third color group G( 3 ) with the auxiliary size determination value tf4 .

此外,颜色设定部13在设定了单色花样模式时,与频数分布获取部12例如共同进行如下处理。通过以下处理,从第三颜色群G(3)的颜色(即包括多个颜色的第三颜色)中,将出现次数最多的颜色设定为花样颜色。In addition, when the monochromatic pattern mode is set, the color setting unit 13 performs, for example, the following processing together with the frequency distribution acquiring unit 12 . Through the following process, from the colors of the third color group G( 3 ) (ie, the third color including a plurality of colors), the color that appears most frequently is set as the pattern color.

图14是用于说明在设定单色花样模式时由频数分布获取部12及颜色设定部13进行的处理的概念说明图。换而言之,图14是用于说明颜色设定部13通过步骤S19将第三颜色所包含的多个颜色中出现次数最多的颜色设定为花样颜色的处理例子的图。FIG. 14 is a conceptual explanatory diagram for explaining the processing performed by the frequency distribution acquisition unit 12 and the color setting unit 13 when setting the monochrome pattern mode. In other words, FIG. 14 is a diagram for explaining an example of processing in which the color setting unit 13 sets, in step S19 , the color that appears most frequently among the colors included in the third color as the design color.

图14(a)表示使青色(C)的浓度值的上序4位、品红色(M)的浓度值的上序4位、黄色(Y)的浓度值的上序4位分别对应于X轴、Y轴、Z轴的三维坐标。图14(b)表示属于第三颜色群G(3)的多个颜色。Figure 14(a) shows that the upper 4 digits of the density value of cyan (C), the upper 4 digits of the density value of magenta (M), and the upper 4 digits of the density value of yellow (Y) respectively correspond to X Axis, Y-axis, Z-axis three-dimensional coordinates. Fig. 14(b) shows a plurality of colors belonging to the third color group G(3).

在图14(b)中,用小方体示出属于第三颜色群G(3)的多个颜色,例如颜色CO(1)、颜色CO(2)、颜色CO(3)、颜色CO(4)以及颜色CO(5)。In Fig. 14(b), a plurality of colors belonging to the third color group G(3) are shown in small squares, such as color CO(1), color CO(2), color CO(3), color CO( 4) and the color CO(5).

频数分布获取部12对于青色(C)、品红色(M)及黄色(Y),除了用X轴、Y轴、Z轴来表示上序位的三维坐标信息(图14(a))以外,如图14(b)所示,进一步用X轴表示青色(C)浓度值的基本位数中的下序4位(Hx0至HxF),用Y轴表示品红色(M)浓度值的基本位数中的下序4位(Hx0至HxF),并用Z轴表示黄色(Y)浓度值的基本位数中的下序4位(Hx0至HxF)。For cyan (C), magenta (M) and yellow (Y), the frequency distribution acquisition unit 12 expresses upper-order three-dimensional coordinate information ( FIG. 14( a )) on the X-axis, Y-axis, and Z-axis. As shown in Figure 14(b), the lower four digits (Hx0 to HxF) of the basic digits of the cyan (C) density value are further represented by the X-axis, and the basic digits of the magenta (M) density value are represented by the Y-axis The lower order 4 digits (Hx0 to HxF) in the number, and use the Z axis to represent the lower order 4 digits (Hx0 to HxF) in the basic digits of the yellow (Y) concentration value.

并且,频数分布获取部12对于第三颜色群G(3)中的多个颜色,使青色(C)浓度值中的下序4位、品红色(M)浓度值中的下序4位、黄色(Y)浓度值中的下序4位分别对应于X轴、Y轴、Z轴,从而在图14(b)所示的三维坐标上配置这些多个颜色。Then, the frequency distribution acquisition unit 12 sets the lower 4 bits of the cyan (C) density value, the lower 4 bits of the magenta (M) density value, The lower four digits of the yellow (Y) density value correspond to the X-axis, Y-axis, and Z-axis, respectively, and these multiple colors are arranged on the three-dimensional coordinates shown in FIG. 14( b ).

颜色设定部13从第三颜色群G(3)获得配置在三维坐标上的颜色(例如颜色CO(1)至颜色CO(5))的出现次数,并存储到图中未表示的寄存器等中。并且,颜色设定部13将图14(b)所示的三维坐标中出现次数最多的颜色,例如颜色CO(1)设为特定花样的花样颜色。The color setting unit 13 obtains the number of occurrences of colors arranged on three-dimensional coordinates (for example, colors CO(1) to CO(5)) from the third color group G(3), and stores them in registers not shown in the figure, etc. middle. Then, the color setting unit 13 sets the color that appears most frequently in the three-dimensional coordinates shown in FIG. 14( b ), for example, color CO(1), as the pattern color of the specific pattern.

(第二实施方式)(Second Embodiment)

下面,对本发明的第二实施方式涉及的图像形成装置进行说明。在第一实施方式中,示出了标志等特定花样为单色的情况下提高特定花样的颜色再现性的例子,但在商务文件中,标志往往由多个属于有色彩系的颜色构成。而且,用多个属于有色彩系的颜色来打印多个下划线或涂色部分的情况也不少。Next, an image forming apparatus according to a second embodiment of the present invention will be described. In the first embodiment, an example was shown in which the color reproducibility of a specific pattern such as a logo is improved in a single color, but in business documents, a logo is often composed of a plurality of colors belonging to a chromatic system. Moreover, it is not uncommon for a plurality of underlined or colored parts to be printed with a plurality of colors belonging to a color system.

因此,对于由多个颜色构成的标志,也有要提高颜色再现性的需求。而且,下划线或涂色部分不宜被设定为与原来的颜色不同的颜色。Therefore, there is a need to improve the color reproducibility of a sign composed of a plurality of colors. Also, underlined or colored parts should not be set to a color different from the original color.

于是,第二实施方式涉及的图像形成装置1a具有以全色打印标志、下划线、涂色部分等特定花样的全色花样模式。Therefore, the image forming apparatus 1a according to the second embodiment has a full-color pattern mode for printing specific patterns such as logos, underlines, and colored parts in full color.

第二实施方式涉及的图像形成装置的机械结构与第一实施方式相同,即显示在图1中。图15是表示本发明的第二实施方式涉及的图像形成装置1a的电结构的一个例子的方框图。The mechanical structure of the image forming apparatus according to the second embodiment is the same as that of the first embodiment, that is, shown in FIG. 1 . FIG. 15 is a block diagram showing an example of an electrical configuration of an image forming apparatus 1 a according to a second embodiment of the present invention.

图15所示的图像形成装置1a与图2所示的图像形成装置1的不同点如下。即,图15所示的图像形成装置1a还包括底色去除部104、第二设定部102、第三设定部103、第四设定部105和第五设定部106;图像处理用ASIC10a还具有图像处理部120;图像形成控制部16a(控制部的一个例子)及操作控制部19a的工作不同于图像形成控制部16及操作控制部19;管理部17a中的花样模式许可设定与管理部17不同,即在管理部17a中存储有表示单色花样模式或全色花样模式是否被允许实行的信息;以及图像形成装置1a还具有第一设定部101来代替设定部20。The difference between the image forming apparatus 1 a shown in FIG. 15 and the image forming apparatus 1 shown in FIG. 2 is as follows. That is, the image forming apparatus 1a shown in FIG. 15 further includes an undercolor removal unit 104, a second setting unit 102, a third setting unit 103, a fourth setting unit 105, and a fifth setting unit 106; The ASIC 10a also has an image processing unit 120; the image formation control unit 16a (an example of the control unit) and the operation control unit 19a work differently from the image formation control unit 16 and the operation control unit 19; the pattern mode permission setting in the management unit 17a Different from the management unit 17, that is, information indicating whether the single-color pattern mode or the full-color pattern mode is allowed is stored in the management unit 17a; and the image forming apparatus 1a also has a first setting unit 101 instead of the setting unit 20 .

图像形成装置1a的其他结构与图2所示的图像形成装置1相同,故省略说明。以下说明本实施方式的特点。The other configurations of the image forming apparatus 1 a are the same as those of the image forming apparatus 1 shown in FIG. 2 , so description thereof will be omitted. The features of this embodiment will be described below.

图像处理部120对图像数据获取部11获取的图像数据进行预先规定的图像处理。例如,图像处理部120进行所述背景色变更处理。The image processing unit 120 performs predetermined image processing on the image data acquired by the image data acquiring unit 11 . For example, the image processing unit 120 performs the background color changing process.

颜色设定部100与颜色设定部13的区别在于:颜色设定部100根据所述第一颜色、所述第二颜色和出现次数少于该第二颜色的颜色之出现次数来设定全色花样模式,并利用出现次数少于第二颜色的颜色,设定彩色图像中的特定花样的颜色(即花样颜色)。The difference between the color setting part 100 and the color setting part 13 is that: the color setting part 100 sets all colors according to the number of occurrences of the first color, the second color, and the color whose number of occurrences is less than the second color. Color pattern mode, and use the color that appears less than the second color to set the color of a specific pattern in the color image (that is, the pattern color).

关于颜色设定部100的处理的详细内容将在后面叙述。The details of the processing of the color setting unit 100 will be described later.

图像形成控制部16a与图像形成控制部16的区别在于:图像形成控制部16a具有的图像形成模式除了黑白模式、单色模式、全色模式和单色花样模式以外,还包括全色花样模式。此外,如果限于黑白模式的用户被允许实行后面叙述的全色花样模式,则图像形成控制部16a对限于黑白模式的用户除了黑白模式之外,还允许实行全色花样模式。图像形成控制部16a的其他结构与图像形成控制部16相同,故省略说明。The difference between the image formation control unit 16a and the image formation control unit 16 is that the image formation modes of the image formation control unit 16a include the full-color pattern mode in addition to the black and white mode, the monochrome mode, the full-color mode and the monochrome pattern mode. Also, if the user limited to the monochrome mode is allowed to execute the full-color pattern mode described later, the image formation control unit 16 a allows the user limited to the monochrome mode to execute the full-color pattern mode in addition to the monochrome mode. The rest of the structure of the image formation control unit 16a is the same as that of the image formation control unit 16, and therefore description thereof will be omitted.

在管理部17a中,除了与管理部17同样的信息之外,还存储有表示单色花样模式或全色花样模式是否被允许实行的信息来作为花样模式许可设定。即,在以下说明中,“有花样模式许可设定”意味着允许实行单色花样模式或全色花样模式。不过,管理部17a也可以存储表示只允许实行全色花样模式的信息,来作为花样模式许可设定。In the management unit 17a, in addition to the same information as the management unit 17, information indicating whether the single-color pattern mode or the full-color pattern mode is permitted is stored as the pattern mode permission setting. That is, in the following description, "there is a pattern mode permission setting" means that the single-color pattern mode or the full-color pattern mode is allowed to be executed. However, the management unit 17a may store information indicating that only the full-color pattern mode is permitted as the pattern mode permission setting.

操作控制部19a除了与操作控制部19相同的工作之外,还将与操作输入部18受理的操作指示相对应的信号输出到第一设定部101、第二设定部102、第三设定部103、第四设定部105和第五设定部106。In addition to the same operations as the operation control unit 19, the operation control unit 19a outputs signals corresponding to the operation instructions accepted by the operation input unit 18 to the first setting unit 101, the second setting unit 102, the third setting unit 101, and the third setting unit 101. The fixed part 103 , the fourth setting part 105 and the fifth setting part 106 .

第一设定部101与设定部20的区别在于:第一设定部101不仅在操作控制部19a输出用于请求设定为允许实行单色花样模式的信号时,还在操作控制部19a输出用于请求设定为允许实行全色花样模式的信号时,将表示花样模式许可设定的信息与被允许实行该花样模式的用户的识别信息关联起来,存储到管理部17a中。第一设定部101的其他结构与设定部20相同。由此,第一设定部101做出花样模式许可设定。以下,将单色花样模式和全色花样模式总称为花样模式。The difference between the first setting part 101 and the setting part 20 is that: the first setting part 101 not only outputs a signal for requesting to be set to allow the implementation of the single-color pattern mode when the operation control part 19a outputs, but also When outputting a signal for requesting the permission setting of the full-color pattern mode, the information indicating the permission setting of the pattern mode is associated with the identification information of the user who is allowed to execute the pattern mode, and stored in the management unit 17a. Other configurations of the first setting unit 101 are the same as those of the setting unit 20 . Thus, the first setting unit 101 sets the pattern mode permission. Hereinafter, the single-color pattern mode and the full-color pattern mode are collectively referred to as pattern mode.

第二设定部102在操作输入部18受理大小判断值tf1的设定时,向颜色设定部100输出该大小判断值tf1,并设定在颜色设定部100中。When the operation input unit 18 accepts setting of the size judgment value tf1 , the second setting unit 102 outputs the size judgment value tf1 to the color setting unit 100 and sets it in the color setting unit 100 .

第三设定部103在操作输入部18受理基准比例的设定时,向颜色设定部100输出该基准比例,并设定在颜色设定部100中。When the operation input unit 18 accepts the setting of the reference ratio, the third setting unit 103 outputs the reference ratio to the color setting unit 100 and sets it in the color setting unit 100 .

第四设定部105在操作输入部18受理多个颜色判断值tf12的设定时,向颜色设定部100输出该多个颜色判断值tf12,并设定在颜色设定部100中。The fourth setting unit 105 outputs the plurality of color determination values tf12 to the color setting unit 100 when the operation input unit 18 accepts setting of the plurality of color determination values tf12 and sets them in the color setting unit 100 .

如后所述,根据第四颜色的出现次数是否在多个颜色判断值tf12以上还是小于多个颜色判断值tf12,来确定是否设定全色花样模式。由于具有用于设定多个颜色判断值tf12的第四设定部105,用户能够容易设定第四颜色的出现次数达到何程度时将图像形成模式设定为全色花样模式。As will be described later, it is determined whether to set the full-color pattern mode according to whether the number of occurrences of the fourth color is greater than or smaller than the plurality of color judgment values tf12 or less. With the fourth setting section 105 for setting a plurality of color determination values tf12, the user can easily set the number of occurrences of the fourth color to set the image forming mode to the full-color pattern mode.

第五设定部106在操作输入部18受理追加多个颜色判断值tf13的设定时,向颜色设定部100输出该追加多个颜色判断值tf13,并设定在颜色设定部100中。The fifth setting unit 106 outputs the additional plurality of color determination values tf13 to the color setting unit 100 when the operation input unit 18 accepts setting of the additional plurality of color determination values tf13, and sets them in the color setting unit 100. .

如后所述,根据图像的全像素数与第一颜色的出现次数至第四颜色的出现次数之和间的差是否达追加多个颜色判断值tf13以上还是小于追加多个颜色判断值tf13,来确定是否设定全色花样模式。由于具有用于设定追加多个颜色判断值tf13的第五设定部106,用户能够容易设定图像的全像素数与第一颜色的出现次数至第四颜色的出现次数之和间的差达到何程度时,将图像形成模式设定为全色花样模式。As will be described later, according to whether the difference between the total number of pixels of the image and the sum of the number of appearances of the first color to the number of appearances of the fourth color is greater than or greater than the additional multiple color judgment value tf13 or is smaller than the additional multiple color judgment value tf13, to determine whether to set the full-color pattern mode. Since there is the fifth setting section 106 for setting and adding a plurality of color judgment values tf13, the user can easily set the difference between the total number of pixels of the image and the sum of the number of appearances of the first color to the number of appearances of the fourth color To what extent, the image forming mode is set to the full-color pattern mode.

通常状态下,也就是说未设定全色花样模式的状态下,图像形成部40根据图像数据D打印图像时,底色去除部104实行UCR(undercolor removal,底色去除)处理。UCR处理是对于图像数据D的各像素,将青色、品红色、黄色的各浓度值中对应于灰色的部分转换为黑色的处理。In a normal state, that is, when the full-color pattern mode is not set, when the image forming unit 40 prints an image based on the image data D, the undercolor removal unit 104 performs UCR (undercolor removal) processing. The UCR process is a process of converting, for each pixel of the image data D, a portion corresponding to gray among the density values of cyan, magenta, and yellow into black.

底色去除部104也可以对于图像数据的各像素,将红色、绿色、蓝色的各浓度值中对应于灰色的部分转换为黑色。The undercolor removal unit 104 may convert, for each pixel of the image data, a portion corresponding to gray among the density values of red, green, and blue into black.

另一方面,在设定全色花样模式的状态下,由图像形成部40打印图像数据时,底色去除部104将被推测为文字的颜色的第二颜色转换为黑色,从而进行100%UCR处理。On the other hand, when the image data is printed by the image forming unit 40 in the state where the full-color pattern mode is set, the undercolor removing unit 104 converts the second color estimated to be the color of the characters into black to perform 100% UCR. deal with.

下面,利用图16至图18来说明图像形成装置1a的工作。图16至图18是表示图像形成装置1a的工作的一个例子的流程图。在以下的工作流程中,图像形成装置1a与图像形成装置1的区别在于工作主体从图像处理用ASIC10、颜色设定部13、图像形成控制部16和管理部17分别改变为图像处理用ASIC10a、颜色设定部100、图像形成控制部16a和管理部17a,而对与图5至图9所示的流程图同样的工作附上了相同的步骤号码,并省略说明。Next, the operation of the image forming apparatus 1 a will be described using FIGS. 16 to 18 . 16 to 18 are flowcharts showing an example of the operation of the image forming apparatus 1a. In the following work flow, the difference between the image forming apparatus 1a and the image forming apparatus 1 is that the main body of work is changed from the image processing ASIC 10, the color setting part 13, the image forming control part 16 and the management part 17 to the image processing ASIC 10a, Color setting unit 100, image formation control unit 16a, and management unit 17a assign the same step numbers to the same operations as those in the flowcharts shown in FIGS. 5 to 9, and descriptions thereof are omitted.

此外,在以下说明中,设背景B的颜色为第一颜色、文字C的颜色为第二颜色。并且,标志L包括图像数据D中的出现次数少于第二颜色的第三颜色、第四颜色、第五颜色和第六颜色这四个颜色。In addition, in the following description, it is assumed that the color of the background B is the first color, and the color of the character C is the second color. Also, the logo L includes four colors of the third color, the fourth color, the fifth color, and the sixth color that appear less frequently than the second color in the image data D.

首先,在步骤S1和S2进行图5中的步骤S1和S2同样的处理。此时,假定步骤S1中登录的用户的识别信息预先在管理部17a中存储为限于黑白模式的用户。以下,利用图16至图18所示流程图,说明对限于黑白模式的用户进行的处理。First, the same processing as steps S1 and S2 in FIG. 5 is performed in steps S1 and S2. At this time, it is assumed that the identification information of the user registered in step S1 is stored in the management unit 17a in advance as a user limited to the monochrome mode. Hereinafter, the processing performed for the user limited to the monochrome mode will be described using the flowcharts shown in FIGS. 16 to 18 .

图像形成控制部16a参照管理部17a,判断对于被允许登录的限于黑白模式的用户是否已做出花样模式许可设定,即判断登录用户是否被允许实行全色花样模式或单色花样模式(步骤S103)。The image formation control section 16a refers to the management section 17a, and judges whether the pattern mode permission setting has been made for the user who is limited to the black-and-white mode allowed to log in, that is, judges whether the logged-in user is allowed to execute the full-color pattern mode or the monochrome pattern mode (step S103).

并且,对于登录用户未做出允许实行花样模式的设定时(步骤S103中为“否”),图像形成控制部16a实行黑白模式,只用黑色(K)调色剂来打印图像数据D(步骤S104)。Also, when the login user has not made the setting to allow execution of the pattern mode ("No" in step S103), the image formation control unit 16a executes the black and white mode, and prints the image data D using only black (K) toner ( Step S104).

接着,图像形成控制部16a更新用户的收费信息(步骤S105)。例如,图像形成装置1a预先准备在管理部17a中按用户的识别信息记录向该用户收费的金额(将该金额作为收费信息),并且,在黑白模式下进行了图像形成后,将与所实行的模式对应的金额作为对应于用户识别信息的收费信息,依次记录到管理部17a中。Next, the image formation control unit 16 a updates the charging information of the user (step S105 ). For example, the image forming apparatus 1a prepares in advance to record in the management unit 17a the amount charged to the user according to the user's identification information (the amount is used as the charging information), and after performing image formation in the black-and-white mode, the The amount of money corresponding to the pattern is sequentially recorded in the management unit 17a as charging information corresponding to the user identification information.

如此,由于将对应于所实行的黑白模式的金额作为收费信息来依次记录,因此易于知道向用户收费的金额多少。In this way, since the amount corresponding to the executed monochrome mode is sequentially recorded as charging information, it is easy to know how much the user is charged.

另一方面,对于登录用户已做出花样模式许可设定时(步骤S103中为“是”),图像形成控制部16a进入步骤S4。如果图像形成控制部16a不具备单色花样模式,则在步骤S103中,图像形成控制部16a也可以在登录用户被允许实行全色花样模式时进入步骤S4。接着,进行与图5同样的步骤S4至S8。On the other hand, when the pattern mode permission setting has been made by the logged-in user (YES in step S103 ), the image formation control unit 16 a proceeds to step S4 . If the image formation control unit 16a does not have the single-color pattern mode, in step S103, the image formation control unit 16a may proceed to step S4 when the login user is permitted to execute the full-color pattern mode. Next, steps S4 to S8 are performed as in FIG. 5 .

在进行了步骤S8后,颜色设定部100将出现次数少于第二颜色的颜色假定为构成特定花样的花样颜色,并进入步骤S10。并且,与图6同样,颜色设定部100进行步骤S10至S12的处理。After performing step S8, the color setting unit 100 assumes a color that appears less frequently than the second color as the pattern color constituting the specific pattern, and proceeds to step S10. Then, the color setting unit 100 performs the processing of steps S10 to S12 similarly to FIG. 6 .

并且,在步骤S12中,当OTHERS小于大小判断值tf1时(步骤S12中为“是”),颜色设定部100判断为特定花样的大小较小,并进入步骤S114的处理。And, in step S12, when OTHERS is smaller than the size determination value tf1 (YES in step S12), the color setting unit 100 determines that the size of the specific pattern is small, and proceeds to step S114.

另一方面,当OTHERS达大小判断值tf1以上时(步骤S12中为“否”),颜色设定部100向图像形成控制部16a输出表示OTHERS达大小判断值tf1以上的信息。当OTHERS达大小判断值tf1以上时,可推测为特定花样的面积较大,如果实行花样模式以用彩色调色剂来进行打印,就会发生成本增大的问题。因此,当OTHERS达大小判断值tf1以上时,即使登录用户被允许实行花样模式,图像形成控制部16a也不实行花样模式,而为了根据文字的颜色来选择打印模式,进入步骤S26。接着,与图6同样进行步骤S26至S28。On the other hand, when OTHERS is equal to or greater than size determination value tf1 (NO in step S12 ), color setting unit 100 outputs information indicating that OTHERS is greater than or equal to size determination value tf1 to image formation control unit 16 a. When OTHERS exceeds the size judgment value tf1, it can be inferred that the area of the specific pattern is large, and if the pattern mode is executed to print with color toner, the problem of cost increase will occur. Therefore, when OTHERS exceeds the size judgment value tf1, even if the login user is permitted to execute the pattern mode, the image formation control unit 16a does not execute the pattern mode, and proceeds to step S26 in order to select a print mode according to the color of the characters. Next, steps S26 to S28 are performed in the same manner as in FIG. 6 .

此外,颜色设定部100也可以判断第一颜色的出现次数与第二颜色的出现次数之和(SUM1)相对于彩色图像的全像素数的比例{(SUM1)/(全像素数)}是否在预先规定的基准比例以上,来代替步骤S12的处理。In addition, the color setting unit 100 may determine whether the ratio {(SUM1)/(total number of pixels)} of the sum (SUM1) of the number of appearances of the first color and the number of appearances of the second color to the total number of pixels of the color image is If it is equal to or higher than a predetermined reference ratio, the processing of step S12 is replaced.

当服务提供方设定为打印特定花样用的记录纸越大,越提高向用户收费的打印费用时,如果特定图像在整个彩色图像中所占的比例小于规定比例,则彩色调色剂的费用在整个打印费用中所占的比例不大。When the service provider sets that the larger the recording paper used for printing a specific pattern, the higher the printing fee charged to the user will be, and if the proportion of the specific image in the entire color image is less than the specified proportion, the color toner fee will be charged. The proportion of the entire printing cost is not large.

于是,当比例{(SUM1)/(全像素数)}达基准比例以上时,可推测为特定花样在整个图像中所占的比例较小,因此进入步骤S114并实行花样模式,而当比例{(SUM1)/(全像素数)}小于基准比例时,可推测为特定花样在整个图像中所占的比例较大,因此进入步骤S26并实行黑白模式或单色模式,并且,按照各图像形成模式进行收费,从而在服务提供方不会发生亏损的同时,能够向用户提供利用彩色调色剂来打印特定花样的服务。Therefore, when the ratio {(SUM1)/(total number of pixels)} exceeds the reference ratio, it can be inferred that the proportion of the specific pattern in the entire image is relatively small, so enter step S114 and execute the pattern mode, and when the ratio { (SUM1)/(total number of pixels)} is less than the reference ratio, it can be inferred that the proportion of the specific pattern in the entire image is relatively large, so go to step S26 and implement black and white mode or monochrome mode, and form according to each image The pattern is charged, so that the service provider can provide users with the service of printing a specific pattern using color toner without incurring a loss.

在步骤S114中,颜色设定部100判断第四颜色的出现次数是否达预先规定的多个颜色判断值tf12以上(步骤S114)。当第四颜色的出现次数达规定值以上时,可推测为特定花样由至少包括第三颜色及第四颜色的多个颜色来构成。In step S114 , the color setting unit 100 determines whether or not the number of occurrences of the fourth color is equal to or greater than a predetermined plurality of color determination values tf12 (step S114 ). When the number of appearances of the fourth color is equal to or greater than a predetermined value, it can be estimated that the specific pattern is composed of a plurality of colors including at least the third color and the fourth color.

于是,颜色设定部100当第四颜色的出现次数小于多个颜色判断值tf12时(步骤S114中为“是”),进入步骤S115的处理,而当第四颜色的出现次数达多个颜色判断值tf12以上时(步骤S114中为“否”),颜色设定部100判断为特定花样包括多个颜色,并设定全色花样模式(步骤S118)。Therefore, the color setting unit 100 proceeds to step S115 when the number of occurrences of the fourth color is less than the multiple color determination value tf12 (YES in step S114), and proceeds to the processing of step S115 when the number of occurrences of the fourth color reaches a multiple of color When the determination value is greater than or equal to tf12 ("No" in step S114), the color setting unit 100 determines that the specific pattern includes a plurality of colors, and sets the full-color pattern mode (step S118).

例如,在多个颜色判断值tf12为1的情况下,在图4A所示的例子中,标志颜色2(第四颜色)的出现次数是20,即达多个颜色判断值tf12以上,因此颜色设定部100判断为标志L包括多个颜色,并设定全色花样模式。For example, in the case where the multiple color judgment value tf12 is 1, in the example shown in FIG. The setting unit 100 determines that the mark L includes a plurality of colors, and sets the full-color pattern mode.

在步骤S115中,颜色设定部100计算第三颜色的出现次数与第四颜色的出现次数之和(SUM4)。In step S115 , the color setting unit 100 calculates the sum of the number of appearances of the third color and the number of appearances of the fourth color ( SUM4 ).

并且,颜色设定部100判断从步骤S11中获取的OTHERS减去SUM4而得到的值,即从彩色图像的全像素数减去第一颜色的出现次数至第四颜色的出现次数之和而得到的值,是否达预先规定的追加多个颜色判断值tf13以上(步骤S116)。下面,说明要进行步骤S116的处理的理由。In addition, the color setting unit 100 determines the value obtained by subtracting SUM4 from OTHERS acquired in step S11, that is, the sum obtained by subtracting the number of appearances of the first color to the number of appearances of the fourth color from the total number of pixels in the color image. Whether the value of is greater than or equal to the predetermined additional multiple color judgment value tf13 (step S116 ). Next, the reason for performing the process of step S116 will be described.

例如,在多个颜色判断值tf12为1的情况下,在图4B所示的例子中,标志颜色2(第四颜色)的出现次数为0.5,即小于多个颜色判断值tf12,因此颜色设定部100判断为标志L由单色构成。For example, in the case where the multi-color judgment value tf12 is 1, in the example shown in FIG. The determination unit 100 judges that the mark L is composed of a single color.

然而,当多个颜色判断值tf12为1时,在图4C所示的例子中的标志颜色2(第四颜色)的出现次数也为0.5,导致颜色设定部100判断为标志L由单色构成。此时,标志L是包括多个颜色的多色标志,但标志L被误判断为由单色构成。However, when the plurality of color determination value tf12 is 1, the number of occurrences of the flag color 2 (the fourth color) in the example shown in FIG. constitute. At this time, the logo L is a multicolor logo including a plurality of colors, but the logo L is misjudged to be composed of a single color.

于是,为了降低包括多个颜色的特定花样被误判断为单色花样的可能性,进行步骤S116的处理。Then, in order to reduce the possibility that a specific pattern including a plurality of colors is misjudged as a single-color pattern, the processing of step S116 is performed.

在步骤S116中,从彩色图像的全像素数减去第一颜色的出现次数至第四颜色的出现次数之和从而获得的值,即出现次数在第五位以下的颜色的出现次数之和小于追加多个颜色判断值tf13时(步骤S116中为“是”),颜色设定部100判断为特定花样由单色构成,并设定单色花样模式(步骤S117)。In step S116, the value obtained by subtracting the sum of the number of appearances of the first color to the number of appearances of the fourth color from the total number of pixels of the color image, that is, the sum of the appearance times of colors whose appearance times are below the fifth place is less than When a plurality of color determination values tf13 are added (YES in step S116 ), the color setting unit 100 determines that the specific pattern is composed of a single color, and sets a single color pattern mode (step S117 ).

在图4B所示的单色标志的例子中,“第五位以下的颜色的出现次数之和”表示从彩色图像的全像素数减去第一颜色的出现次数至第四颜色的出现次数之和从而获得的值。例如,在追加多个颜色判断值tf13为1的情况下,由于图4B所示的“第五位以下的颜色的出现次数之和”为0.5,即“第五位以下的颜色的出现次数之和”小于追加多个颜色判断值tf13,因此设定单色花样模式。In the example of a monochrome mark shown in FIG. 4B, "the sum of the number of occurrences of colors below the fifth digit" means the sum of the number of occurrences of the first color to the number of appearances of the fourth color subtracted from the total number of pixels of the color image. and the resulting value. For example, when adding a plurality of color judgment values tf13 is 1, since the "sum of the number of appearances of colors below the fifth place" shown in Figure 4B is 0.5, that is, "the sum of the number of appearances of colors below the fifth place" is 0.5. and" are smaller than the additional multi-color judging value tf13, so set the single-color pattern mode.

在步骤S114中,第四颜色的出现次数小于多个颜色判断值tf12,且在步骤S116中,出现次数在第五位以下的颜色的出现次数之和小于追加多个颜色判断值tf13时,因以下理由而判断为特定花样由单色构成。In step S114, when the number of appearances of the fourth color is less than a plurality of color judgment values tf12, and in step S116, the sum of the appearance times of colors below the fifth place is less than the addition of a plurality of color judgment values tf13, because The specific pattern is determined to be composed of a single color for the following reasons.

即,在特定花样由单色构成时,由图像读取部200读取的图像数据D中,特定花样周围的像素有时因特定花样的颜色渗出而被读取为近似于特定花样的颜色的像素。这样,因特定花样的颜色渗出而产生的颜色会成为第四颜色。此时,如果在步骤S116中,出现次数在第四位以下的各颜色(即包括第四颜色的各颜色)的出现次数之和达追加多个颜色判断值tf13以上时判断为特定花样包括多个颜色,则因特定花样的颜色(第三颜色)的渗出而产生的颜色带来影响,导致将由单色构成的特定花样误判断为含有多个颜色的花样。That is, when the specific pattern is composed of a single color, in the image data D read by the image reading unit 200, the pixels around the specific pattern may be read as a color similar to the color of the specific pattern due to the bleeding of the color of the specific pattern. pixels. In this way, the color produced by the bleeding of the color of a particular pattern becomes the fourth color. At this time, if in step S116, the sum of the number of appearances of the colors below the fourth place (that is, the colors including the fourth color) reaches more than the additional multiple color judgment value tf13, it is determined that the specific pattern includes more than one color. If there is only one color, the color caused by the bleeding of the color (tertiary color) of the specific pattern will be affected, resulting in the misjudgment of a specific pattern composed of a single color as a pattern containing multiple colors.

另一方面,即使在步骤S114中第四颜色的出现次数小于颜色判断值tf12,特定花样也有可能由非常多的颜色(也许每个颜色的使用量很少)来构成。在这种情况下,即使第四颜色的出现次数是小于多个颜色判断值tf12的微小值,出现次数在第五位以下的各颜色的出现次数之和也达到超过追加多个颜色判断值tf13的大值。On the other hand, even if the number of occurrences of the fourth color in step S114 is less than the color judgment value tf12, the specific pattern may be composed of a lot of colors (maybe each color is used in a small amount). In this case, even if the number of appearances of the fourth color is a small value smaller than the multiple color judgment value tf12, the sum of the number of appearances of each color whose number of occurrences is below the fifth digit also reaches more than the additional multiple color judgment value tf13 large value.

因此,在步骤S116中,出现次数在第五位以下的各颜色(即不包含第四颜色)的出现次数之和达追加多个颜色判断值tf13以上时判断为特定花样包括多个颜色,从而提高特定花样是否由单色构成还是包括多个颜色的判断的精确度。Therefore, in step S116, when the sum of the appearance times of the colors below the fifth place (that is, not including the fourth color) reaches the additional multiple color judgment value tf13 or more, it is determined that the specific pattern includes multiple colors, thereby Improves the accuracy of judging whether a particular pattern consists of a single color or includes multiple colors.

颜色设定部100在步骤S117中设定单色花样模式时,仅将第三颜色设定为特定花样的花样颜色,并向图像形成控制部16a通知设定了单色花样模式,以及仅将第三颜色设定为特定花样的花样颜色。When setting the monochrome pattern mode in step S117, the color setting section 100 sets only the third color as the pattern color of the specific pattern, notifies the image forming control section 16a that the monochrome pattern mode is set, and sets only the third color as the pattern color of the specific pattern. The third color is set as the pattern color of a specific pattern.

接着,图像形成控制部16a实行单色花样模式,利用颜色设定部100设定的花样颜色的调色剂来打印特定花样,并利用第二颜色的调色剂,例如利用黑色调色剂来打印文字(C)。Next, the image forming control section 16a executes the monochrome pattern mode, prints a specific pattern using the toner of the pattern color set by the color setting section 100, and prints a pattern using toner of a second color, for example, black toner. Print text (C).

另一方面,从彩色图像的全像素数减去第一颜色的出现次数至第四颜色的出现次数之和从而获得的值达预先规定的追加多个颜色判断值tf13以上时(步骤S116中为“否”),颜色设定部100设定全色花样模式(步骤S118)。On the other hand, when the value obtained by subtracting the sum of the number of appearances of the first color to the number of appearances of the fourth color from the total number of pixels of the color image is equal to or greater than the predetermined number of additional color judgment values tf13 (in step S116: "No"), the color setting unit 100 sets the full-color pattern mode (step S118 ).

例如,在追加多个颜色判断值tf13为1的情况下,在图4C所示的例子中,“第五位以下的颜色的出现次数之和”为40.5,即达追加多个颜色判断值tf13以上,因此设定全色花样模式。For example, when the judgment value tf13 of adding a plurality of colors is 1, in the example shown in FIG. Above, therefore set the full-color pattern mode.

颜色设定部100在设定全色花样模式时(步骤S118),将出现次数少于第二颜色的所有颜色设定为花样颜色(步骤S122)。例如,颜色设定部100将第三颜色至第六颜色都设定为花样颜色。When setting the full-color pattern mode (step S118 ), the color setting unit 100 sets all colors that appear less than the second color as pattern colors (step S122 ). For example, the color setting unit 100 sets all the third to sixth colors as pattern colors.

并且,由图像形成控制部16a进行步骤S123及S124的处理。Then, the processing of steps S123 and S124 is performed by the image formation control unit 16a.

如果图像数据D中文字(C)的颜色是黑色以外的颜色,为了表现文字C的颜色,要使用费用高的彩色调色剂,即要使用青色调色剂、品红色调色剂和黄色调色剂。此时导致图像数据D的打印费用增大。If the color of the character (C) in the image data D is a color other than black, in order to express the color of the character C, an expensive color toner is used, that is, a cyan toner, a magenta toner, and a yellow toner are used. Toner. In this case, the printing cost of the image data D increases.

于是,图像形成控制部16a利用底色去除部104进行100%UCR处理,将第二颜色置换为黑色(步骤S123)。Then, the image formation control unit 16 a performs 100% UCR processing by the under color removing unit 104 to replace the second color with black (step S123 ).

这样,由于将第二颜色转换为黑色,即使文字的颜色是黑色以外的颜色,例如是灰色、属于有色彩系的深蓝色等颜色,也用黑色调色剂来打印文字,因此能够抑制打印费用。In this way, since the second color is converted to black, even if the color of the characters is a color other than black, such as gray or dark blue belonging to the chromatic system, the characters are printed with black toner, so printing costs can be suppressed. .

接着,图像形成控制部16a实行全色花样模式,图像形成部40利用黑色调色剂来打印文字(C),利用彩色调色剂打印特定花样(步骤S124)。在步骤S124中,图像形成部40利用彩色调色剂来表现步骤S122中设定的花样颜色。Next, the image forming control unit 16 a executes the full-color pattern mode, and the image forming unit 40 prints a character (C) using black toner and prints a specific pattern using color toner (step S124 ). In step S124 , the image forming unit 40 expresses the pattern color set in step S122 with color toner.

例如,图像形成部40以规定的比例使青色、品红色、黄色相混合来表现深绿色、红色等各颜色。For example, the image forming unit 40 expresses colors such as dark green and red by mixing cyan, magenta, and yellow in a predetermined ratio.

图像形成装置1a在实行步骤S124的处理后,更新用户的收费信息(步骤S125)。例如,图像形成装置1a预先准备在管理部17a中按用户的识别信息记录向该用户收费的金额(将该金额作为收费信息),并且,在全色花样模式下进行了图像形成后,将与所实行的模式对应的金额作为对应于用户识别信息的收费信息,依次记录到管理部17a中。The image forming apparatus 1 a updates the billing information of the user after executing the process of step S124 (step S125 ). For example, the image forming apparatus 1a prepares in advance to record in the management unit 17a the amount charged to the user according to the user's identification information (the amount is used as the charging information), and after image formation is performed in the full-color pattern mode, the The amount of money corresponding to the executed mode is sequentially recorded in the management unit 17a as billing information corresponding to the user identification information.

如此,由于将对应于全色花样模式的金额作为收费信息来依次记录,因此易于知道向用户收费的金额多少。In this way, since the amount corresponding to the full-color pattern mode is sequentially recorded as charging information, it is easy to know how much the user is charged.

此外,图像形成装置1a与图像形成装置1同样,也可以使用各颜色群来代替各颜色,使用各颜色群的出现次数来代替各颜色的出现次数。此时,如上所述,设第一颜色群G(1)的颜色为第一颜色,第二颜色群G(2)的颜色为第二颜色,第三颜色群G(3)的颜色为第三颜色,以下同样获得第N颜色(N为任意的整数)。In addition, like the image forming apparatus 1 , the image forming apparatus 1 a may use each color group instead of each color, and use the number of appearances of each color group instead of the number of appearances of each color. At this time, as described above, let the color of the first color group G(1) be the first color, the color of the second color group G(2) be the second color, and the color of the third color group G(3) be the second color. Three colors, the Nth color is also obtained below (N is any integer).

并且,颜色设定部100在步骤S122中选择出现次数少于第二颜色的所有颜色,例如选择第三颜色至第六颜色。然后,颜色设定部100也可以例如从第三颜色至第六颜色所包含的多个颜色(由包含下序位在内的8位来表示浓度值的多个颜色)中分别选择出现次数最多的颜色(即,选择第三颜色亦即第三颜色群中出现次数最多的颜色、第四颜色亦即第四颜色群中出现次数最多的颜色、第五颜色亦即第五颜色群中出现次数最多的颜色、以及第六颜色亦即第六颜色群中出现次数最多的颜色),并将所选择的四个颜色均设定为花样颜色。In addition, the color setting unit 100 selects all colors whose appearance times are less than the second color in step S122 , for example, selects the third to sixth colors. Then, the color setting unit 100 may select, for example, each of the colors having the highest number of appearances from a plurality of colors included in the third to sixth colors (a plurality of colors whose density values are represented by 8 bits including the lower order bit). (that is, choose the third color, that is, the color that occurs most frequently in the third color group, the fourth color, that is, the color that occurs most frequently in the fourth color group, the fifth color, that is, the color that occurs most frequently in the fifth color group the color with the most number, and the sixth color (that is, the color with the most occurrences in the sixth color group), and set the four selected colors as pattern colors.

此外,从第三颜色至第N颜色所包含的多个颜色中分别将出现次数最多的颜色设定为花样颜色的处理,可以采用与从图14所示的第三颜色所包含的多个颜色中将出现次数最多的颜色设定为花样颜色时同样的处理。In addition, the process of setting the color with the largest number of appearances as the pattern color among the colors included in the third color to the Nth color can be the same as that of the colors included in the third color shown in FIG. 14 . The same process applies when setting the color with the most occurrences as the pattern color.

此外,图像形成装置1a也可以不具有管理部17a、操作输入部18、第一设定部101、第二设定部102、第三设定部103、第四设定部105、第五设定部106、底色去除部104和图像处理部120,不进行步骤S1、S103、S114至S117、S123至S125、S104以及S105,而进行如下处理。In addition, the image forming apparatus 1a may not have the management unit 17a, the operation input unit 18, the first setting unit 101, the second setting unit 102, the third setting unit 103, the fourth setting unit 105, the fifth setting unit The fixing unit 106 , the undercolor removing unit 104 and the image processing unit 120 do not perform steps S1 , S103 , S114 to S117 , S123 to S125 , S104 and S105 , but perform the following processes.

图像形成装置1a也可以依次进行步骤S2、S4至S8和S10至S12,如果在步骤S12中为“是”,就进行步骤S118和S122来将出现次数少于第二颜色的多个颜色均设定为花样颜色。由此,对包含颜色属于有色彩系的花样的图像进行打印时,能够提高花样的颜色再现性。进而,也可以进行步骤S123。或者,还可以进行步骤S124。此外,如果在步骤S12中为“否”,或者可以结束处理,或者可以在全色模式、黑白模式或单色模式等下进行图像形成。The image forming apparatus 1a may also perform steps S2, S4 to S8, and S10 to S12 in sequence, and if "Yes" in step S12, proceed to steps S118 and S122 to set the multiple colors whose occurrence times are less than the second color. Set as pattern color. As a result, when an image including a pattern whose color belongs to a chromatic system is printed, the color reproducibility of the pattern can be improved. Furthermore, step S123 may also be performed. Alternatively, step S124 can also be performed. Also, if NO in step S12, either the processing may be ended, or image formation may be performed in full-color mode, black-and-white mode, or monochrome mode, or the like.

此外,也可以依次进行步骤S2、S4至S8、S10至S12以及S114,如果在步骤S114中为“否”,就进行步骤S118和S122来将出现次数少于第二颜色的多个颜色均设定为花样颜色。此外,也可以在步骤S114中为“是”时,不进行步骤S115和S116就进入步骤S117,或者可以结束处理。In addition, steps S2, S4 to S8, S10 to S12, and S114 can also be performed in sequence, and if "No" in step S114, then steps S118 and S122 are performed to set the multiple colors whose occurrence times are less than the second color. Set as pattern color. In addition, when YES in step S114, the process may proceed to step S117 without performing steps S115 and S116, or the processing may be terminated.

此外,也可以采用进行步骤S2、S4至S8、S10至S12、S114至S118和S122的结构。In addition, a configuration in which steps S2, S4 to S8, S10 to S12, S114 to S118, and S122 are performed may also be employed.

总之,本发明提供一种图像形成装置,包括:图像数据获取部,获取表示彩色图像的图像数据;频数分布获取部,根据由所述图像数据获取部获取的图像数据,将该图像数据的各像素的颜色分配给各组,以获取表示各颜色的出现次数的频数分布;以及颜色设定部,根据由所述频数分布获取部获取的频数分布,将出现次数最多的第一颜色设定为所述彩色图像的背景色,将出现次数仅次于所述第一颜色的第二颜色设定为所述彩色图像中的文字的颜色,将出现次数少于所述第二颜色的颜色设定为所述彩色图像中的花样颜色,该花样颜色是所述彩色图像中的特定花样的颜色。In summary, the present invention provides an image forming apparatus including: an image data acquisition unit that acquires image data representing a color image; and a frequency distribution acquisition unit that, based on the image data acquired by the image data acquisition unit, obtains The colors of the pixels are assigned to each group to obtain a frequency distribution representing the number of appearances of each color; and the color setting section sets the first color with the largest number of appearances based on the frequency distribution obtained by the frequency distribution obtaining section to For the background color of the color image, set the second color that appears second only to the first color as the color of the text in the color image, and set the color that appears less than the second color is the pattern color in the color image, and the pattern color is the color of a specific pattern in the color image.

特定花样例如是标志、下划线、涂色部分等非文字图像。通常,文件原稿在白色薄片体上记载文字而构成。并且,在这种文件原稿中往往记载有彩色的标志、下划线等花样。这样,对于大部分由文字构成而一部分使用颜色的图像,即花样的像素数小于预先规定的大小判断值的图像而言,薄片体的白色成为图像的背景。因此,这种文件原稿的图像数据包含的颜色中白色的出现次数最多。并且,文字的颜色的出现次数仅次于白色多。The specific patterns are, for example, non-character images such as logos, underlines, and colored parts. Usually, a document manuscript is formed by writing characters on a white sheet. In addition, patterns such as colored marks and underlines are often described in such document manuscripts. In this way, for an image mostly composed of characters and partly colored, that is, an image whose number of pixels of the design is smaller than a predetermined size determination value, the white color of the sheet becomes the background of the image. Therefore, the image data of such a document original contains colors in which white appears most frequently. In addition, the number of appearances of the color of the characters is second only to that of white.

于是,采用所述结构,将出现次数最多的第一颜色设定为彩色图像的背景色,将出现次数仅次于第一颜色的第二颜色设定为彩色图像中的文字的颜色,并将出现次数少于第二颜色的颜色设定为彩色图像中特定花样的颜色,即花样颜色,因此,在打印包括彩色花样的图像时,能够提高该花样的颜色再现性。Therefore, with the above structure, the first color with the largest number of appearances is set as the background color of the color image, the second color with the number of appearances next to the first color is set as the color of the text in the color image, and The color whose appearance frequency is less than the second color is set as the color of the specific pattern in the color image, that is, the pattern color, so when printing an image including the color pattern, the color reproducibility of the pattern can be improved.

此外,所述结构中较为理想的是:当满足包含规定条件的判断条件时,所述颜色设定部将出现次数仅次于所述第二颜色的第三颜色设定为所述花样颜色,所述规定条件是指,包含所述第一颜色、第二颜色及所述第三颜色的规定的对象颜色的出现次数之和与所述彩色图像的全像素数之间的差小于预先规定的花样判断值。In addition, in the above configuration, it is preferable that when the determination condition including the predetermined condition is satisfied, the color setting unit sets the third color that appears second only to the second color as the color of the pattern, The prescribed condition means that the difference between the sum of the number of occurrences of the prescribed object colors including the first color, the second color and the third color and the number of all pixels of the color image is less than a predetermined Pattern judgment value.

如果第一颜色的出现次数、第二颜色的出现次数与第三颜色的出现次数之和跟彩色图像的全像素数之间的差是第一基准次数以上的大值,则第一颜色、第二颜色、第三颜色以外的颜色,例如第四颜色或第五颜色的出现次数有可能更高。此时,花样包括多个颜色的可能性较高。If the difference between the number of occurrences of the first color, the sum of the number of appearances of the second color and the number of appearances of the third color, and the total number of pixels of the color image is a large value above the first reference number, the first color, the second color Colors other than the secondary color and the tertiary color, such as the fourth color or the fifth color may appear more frequently. At this time, there is a high possibility that the pattern includes a plurality of colors.

而如果第一颜色的出现次数、第二颜色的出现次数与第三颜色的出现次数之和跟彩色图像的全像素数之间的差是小于第一基准次数的小值,则可推测为彩色图像中几乎不包含第一颜色、第二颜色、第三颜色以外的颜色。此时,花样由第三颜色构成的可能性较高。And if the difference between the number of occurrences of the first color, the sum of the number of occurrences of the second color and the number of appearances of the third color, and the total number of pixels of the color image is a small value smaller than the first reference number, it can be speculated that it is a color image. The image hardly contains colors other than the first color, the second color, and the third color. In this case, there is a high possibility that the pattern is composed of the third color.

于是,采用所述结构,当包含第一颜色、第二颜色及第三颜色的规定的对象颜色的出现次数之和与彩色图像的全像素数之间的差小于花样判断值时,将第三颜色设定为花样颜色。结果,在特定花样由第三颜色(即单色)构成的可能性较高时,将第三颜色设定为花样颜色。Then, with the above configuration, when the difference between the sum of the number of appearances of the predetermined target colors including the first color, the second color, and the third color and the total number of pixels of the color image is smaller than the pattern judgment value, the third The color is set to the pattern color. As a result, when the possibility that a specific pattern is composed of a third color (ie, a single color) is high, the third color is set as the pattern color.

因此,例如在黑白图像中包含由一个属于有色彩系的颜色构成的花样时,将该属于有色彩系的颜色设定为花样颜色,并利用该花样颜色的调色剂来打印花样。结果,在打印包含由一个属于有色彩系的颜色构成的花样的图像时,能够提高该花样的颜色再现性。Therefore, for example, when a monochrome image includes a pattern composed of a color belonging to a chromatic system, the color belonging to the chromatic system is set as the color of the pattern, and the pattern is printed using toner of the pattern color. As a result, when an image including a pattern composed of a color belonging to a chromatic system is printed, the color reproducibility of the pattern can be improved.

此外,所述结构中较为理想的是:所述对象颜色包含所述第一颜色、所述第二颜色、所述第三颜色、以及出现次数仅次于所述第三颜色的第四颜色;所述判断条件还包含其他规定条件,该其他规定条件是指所述第四颜色的出现次数小于预先规定的追加花样判断值;当满足所述判断条件包含的所有规定条件时,所述颜色设定部将所述第三颜色设定为所述花样颜色。In addition, it is more desirable in the structure that: the object color includes the first color, the second color, the third color, and a fourth color whose occurrence frequency is second only to the third color; Said judging condition also includes other prescribed conditions, and said other prescribed condition means that the number of occurrences of said fourth color is less than the predetermined additional pattern judging value; when all prescribed conditions included in said judging condition are met, said color setting The setting part sets the third color as the design color.

如果第一颜色的出现次数、第二颜色的出现次数、第三颜色的出现次数与第四颜色的出现次数之和跟彩色图像的全像素数之间的差小于第二基准次数,则第一颜色至第四颜色以外的颜色,例如第五颜色和第六颜色的出现次数较低,花样的颜色有可能是第三颜色和第四颜色中的任一个。If the difference between the number of appearances of the first color, the number of appearances of the second color, the sum of the number of appearances of the third color and the number of appearances of the fourth color and the total number of pixels of the color image is less than the second reference number, the first Colors other than the fourth color, for example, the fifth color and the sixth color have a low number of appearances, and the color of the pattern may be any one of the third color and the fourth color.

并且,如果第四颜色的出现次数小于追加花样判断值,则花样由第三颜色构成(即单色构成)的可能性较高。Moreover, if the number of occurrences of the fourth color is less than the judgment value of the additional pattern, it is more likely that the pattern is composed of the third color (that is, composed of a single color).

于是,采用所述结构,当满足规定条件且第四颜色的出现次数小于追加花样判断值时,将第三颜色设定为花样颜色,因此能够提高设定由单色构成的花样的花样颜色时的设定精确度。Therefore, with the above structure, when the predetermined condition is satisfied and the fourth color appears less than the additional pattern judgment value, the third color is set as the pattern color, so the time of setting the pattern color of a pattern composed of a single color can be improved. setting accuracy.

此外,所述结构中较为理想的是:所述判断条件还包含其他规定条件,该其他规定条件是指所述第三颜色的出现次数小于预先规定的辅助大小判断值;当满足所述判断条件包含的所有规定条件时,所述颜色设定部将所述第三颜色设定为所述花样颜色。In addition, it is more ideal in the said structure that: said judging condition also includes other prescribed conditions, and said other prescribed condition means that the number of appearances of said third color is less than the pre-specified auxiliary size judging value; when said judging condition is satisfied When all the predetermined conditions are included, the color setting unit sets the third color as the pattern color.

如果第三颜色的出现次数是达辅助大小判断值以上的大值,则由被推测为花样颜色的第三颜色构成的花样的图像面积较大的可能性高。而如果第三颜色的出现次数是小于辅助大小判断值的小值,则由被推测为花样颜色的第三颜色构成的花样的图像面积较小的可能性高。If the number of occurrences of the third color is a large value equal to or greater than the auxiliary size determination value, there is a high possibility that the image area of the pattern composed of the third color presumed to be the pattern color is large. On the other hand, if the number of occurrences of the third color is a small value smaller than the auxiliary size determination value, there is a high possibility that the image area of the pattern composed of the third color presumed to be the pattern color is small.

采用所述结构,颜色设定部在第三颜色的出现次数小于预先规定的辅助大小判断值时将第三颜色设定为花样颜色,因此,只有花样的图像面积较小的可能性高时才将第三颜色设定为花样颜色,并利用第三颜色的彩色调色剂来打印花样。With the above configuration, the color setting unit sets the third color as the pattern color when the number of appearances of the third color is smaller than the predetermined auxiliary size judgment value, and therefore only when the possibility of the image area of the pattern is small is high. The third color is set as the pattern color, and the pattern is printed using the color toner of the third color.

结果,为打印花样不会消耗太多的高价彩色调色剂,既能抑制打印费用,又能提高花样的颜色再现性。As a result, the color reproducibility of the design can be improved while suppressing the printing cost without consuming too much expensive color toner for printing the design.

此外,通过采用可适当改变辅助大小判断值的结构,能够按照用户的要求或服务提供方的情况,灵活地设定在特定花样的图像面积的大小达何程度时向只可实行黑白模式的用户提供单色花样模式。In addition, by adopting a structure that can appropriately change the auxiliary size judgment value, it is possible to flexibly set the size of the image area of a specific pattern according to the user's request or the situation of the service provider. Provide monochrome pattern mode.

此外,所述结构中较为理想的是:所述图像数据获取部利用预先规定的三个要素颜色的各浓度值来表示所述各像素的颜色;所述频数分布获取部将所述各浓度值分配给三维坐标的各坐标上,以将所述各颜色作为所述各组来配置在三维坐标上,并且,通过使该各颜色分别与所述出现次数关联起来,生成在三维坐标上表示所述频数分布的三维频数分布信息;所述颜色设定部从规定颜色之外的颜色中选定所述第三颜色,该规定颜色,既是在所述三维频数分布信息的三维坐标上用直线连接所述第一颜色和所述第二颜色而形成的路径中所配置的颜色,又是在所述三维坐标上至所述第一颜色的距离大于预先规定的判断距离、且至所述第二颜色的距离大于所述判断距离的颜色。In addition, in the above configuration, it is preferable that the image data acquisition unit expresses the color of each pixel using each density value of predetermined three element colors; Assigning to each coordinate of the three-dimensional coordinates so that the respective colors are arranged on the three-dimensional coordinates as the respective groups, and by associating the respective colors with the number of occurrences, generating a representation on the three-dimensional coordinates The three-dimensional frequency distribution information of the frequency distribution; the color setting part selects the third color from colors other than the specified color, and the specified color is connected by a straight line on the three-dimensional coordinates of the three-dimensional frequency distribution information. The color arranged in the path formed by the first color and the second color is a color whose distance to the first color on the three-dimensional coordinates is greater than a predetermined judgment distance and to the second color. The color whose distance is greater than the judged distance is the color.

由于可推测为第一颜色是背景色,第二颜色是文字的颜色,因此,在所述三维坐标上用直线连接第一颜色和第二颜色而形成的路径中所配置的颜色是因文字的颜色渗出而产生的颜色、或文字的颜色的浓度变淡而产生的颜色的可能性高。于是,从这种颜色之外的颜色中选定第三颜色,从而进一步提高第三颜色即花样颜色的再现性。Since it can be presumed that the first color is the background color and the second color is the color of the text, the colors arranged in the path formed by connecting the first color and the second color with a straight line on the three-dimensional coordinates are due to the color of the text. There is a high possibility that the color is caused by bleeding, or the color of the character is lightened. Then, the third color is selected from colors other than this color, thereby further improving the reproducibility of the third color, that is, the pattern color.

此外,所述结构中较为理想的是:所述图像数据获取部利用预先规定的三个要素颜色的各浓度值来表示所述各像素的颜色,并以预先规定的基本位数表示该各浓度值;所述频数分布获取部将各要素颜色的浓度值中预先规定的各上序位分配给三维坐标的各坐标上,并将共享该上序位的颜色群设为一个组,将各组配置在所述三维坐标上,并且,通过使各颜色群与该各颜色群的出现次数关联起来,获取表示所述各颜色群的频数分布的三维频数分布信息;所述颜色设定部利用所述各颜色群来代替所述各颜色,并从配置在规定区域的颜色群之外的颜色群中选定当做所述第三颜色的颜色群,所述规定区域,是从用直线连接第一区域和第二区域而形成的区域中除去该第一区域及第二区域所获得的区域,其中所述第一区域是在所述三维坐标上至当做所述第一颜色的颜色群的距离小于预先规定的欧几里得距离的区域,所述第二区域是在所述三维坐标上至当做所述第二颜色的颜色群的距离小于预先规定的欧几里得距离的区域。In addition, in the above configuration, it is preferable that the image data acquisition unit expresses the color of each pixel by using each density value of predetermined three element colors, and expresses each density by a predetermined number of basic digits. value; the frequency distribution acquisition unit assigns each of the pre-specified upper-order positions in the concentration values of each element color to each coordinate of the three-dimensional coordinates, and sets the color groups sharing the upper-order positions as a group, and each group Arranged on the three-dimensional coordinates, and by associating each color group with the number of occurrences of each color group, three-dimensional frequency distribution information representing the frequency distribution of each color group is acquired; the color setting unit uses the Instead of the respective colors, a color group is selected as the third color from the color groups other than the color groups arranged in a predetermined area where the first color is connected with a straight line. The area formed by removing the first area and the second area from the area formed by the area and the second area, wherein the first area is on the three-dimensional coordinates and the distance from the color group as the first color is less than In an area of a predetermined Euclidean distance, the second area is an area whose distance to the color group serving as the second color on the three-dimensional coordinates is smaller than the predetermined Euclidean distance.

采用所述结构,利用各颜色群来代替各颜色,从而减少获取频数分布时或由颜色设定部进行处理时的数据量。另外,从用直线连接第一区域和第二区域从而形成的区域中,除去第一区域及第二区域所获得的区域中所配置的颜色群是因文字的颜色渗出而产生的颜色、或文字的颜色的浓度变淡而产生的颜色的可能性高。于是,从这些颜色群之外的颜色群中选定当做第三颜色的颜色群,这样与利用所有基本位来获取表示各颜色的出现次数的频数分布时不同,既能够简化频数分布获取部的硬件结构,又能更精确地设定第三颜色。According to the above configuration, each color is replaced by each color group, thereby reducing the amount of data when acquiring the frequency distribution or when processing by the color setting unit. In addition, from the area formed by connecting the first area and the second area with a straight line, the color group arranged in the area obtained by removing the first area and the second area is a color caused by the color bleeding of the characters, or There is a high possibility that the density of the color of the characters will be a color produced by lightening. Therefore, by selecting a color group as the third color from color groups other than these color groups, it is possible to simplify the operation of the frequency distribution acquisition unit, unlike when all the basic bits are used to obtain the frequency distribution representing the number of occurrences of each color. The hardware structure can set the third color more precisely.

此外,所述结构中较为理想的是还包括:识别信息输入部,受理用户的识别信息的输入;管理部,预先存储有只能实行黑白模式的用户的识别信息,该黑白模式是只用一个颜色来形成基于所述图像数据的图像的模式;设定部,对于具有存储在所述管理部中的、只能实行黑白模式的识别信息的用户,受理是否允许实行单色花样模式的设定,该单色花样模式,是利用由所述颜色设定部设定的所述第二颜色的调色剂来打印所述彩色图像中的文字,并利用由所述颜色设定部设定的所述第三颜色的调色剂来打印所述特定花样的模式;以及控制部,以所述黑白模式及所述单色花样模式来实行图像形成,其中,当所述识别信息输入部受理只能实行所述黑白模式的用户的识别信息的输入,而且所述设定部受理允许具有该识别信息的用户实行所述单色花样模式的设定时,所述控制部允许所述只能实行所述黑白模式的用户实行所述黑白模式和所述单色花样模式。In addition, the above structure preferably further includes: an identification information input unit that accepts input of user identification information; a management unit that stores in advance the identification information of users who can only execute the black and white mode, and the black and white mode requires only one color to form the pattern of the image based on the image data; the setting unit accepts the setting of whether to allow the execution of the monochrome pattern mode for the user who has the identification information stored in the management unit and can only execute the black and white mode , the monochrome pattern mode is to use the toner of the second color set by the color setting part to print the characters in the color image, and use the toner of the second color set by the color setting part a mode in which the specific pattern is printed with the toner of the third color; When identification information of a user capable of executing the monochrome pattern is input, and the setting unit accepts a setting to allow the user with the identification information to execute the monochrome pattern mode, the control unit allows the A user of the monochrome mode executes the monochrome mode and the monochrome pattern mode.

一般情况下,当提供图像数据打印服务时,向用户收费的金额有可能在黑白模式(黑白复印)下和全色模式(彩色复印)下分别不同。此时,常常在黑白模式下的收费金额低于全色模式下的收费金额。In general, when image data printing service is provided, the amount charged to the user may be different in the black and white mode (black and white copy) and the full color mode (color copy). At this time, often, the charging amount in the black-and-white mode is lower than that in the full-color mode.

然而,例如企业的商务文件那样,以黑白图像为主,仅在很小一部分区域存在标志、下划线、涂色部分等特定图像时,用户希望对于黑白图像进行黑白打印,而对特定图像进行彩色打印。However, for example, when business documents of an enterprise are dominated by black and white images, and only a small portion of specific images such as logos, underlines, and colored parts exist, users want to print black and white images in black and white, and print specific images in color .

并且,在标志、下划线、涂色部分等特定花样的图像面积较小时,由于单色花样模式下消耗的彩色调色剂的量非常少,单色花样模式所需的成本仅比黑白模式稍高而已。因此,即使将单色花样模式下的收费金额设定为与黑白模式大致相同,或比黑白模式稍高,服务提供方也不会发生亏损。Also, when the image area of a specific pattern such as logos, underlines, and colored parts is small, the cost of the monochrome pattern mode is only slightly higher than that of the black and white mode because the amount of color toner consumed in the monochrome pattern mode is very small That's all. Therefore, even if the charging amount in the monochrome pattern mode is set to be substantially the same as that in the monochrome mode, or slightly higher than that in the monochrome mode, the service provider will not incur a loss.

采用所述结构,当对于只可实行黑白模式的用户已做出允许实行单色花样模式的设定时,可实行单色花样模式。With the above structure, when a user who can execute only the monochrome mode has made a setting to allow execution of the monochrome pattern mode, the monochrome pattern mode can be executed.

由此,当已做出允许实行单色花样模式的设定,而且特定图像的图像面积较小时,能够容易地向只可实行黑白模式的用户廉价地提供利用花样颜色打印特定花样的单色花样模式。As a result, when the setting to allow the execution of the monochrome pattern mode has been made, and the image area of the specific image is small, it is possible to easily and inexpensively provide monochrome patterns for printing a specific pattern in pattern colors to users who can only execute the black and white mode. model.

此外,所述结构中较为理想的是还包括图像处理部,该图像处理部对于所述图像数据进行将所述彩色图像的背景色改变为预先规定的颜色的背景色变更处理。Furthermore, it is preferable that the above configuration further includes an image processing unit that performs background color changing processing of changing the background color of the color image to a predetermined color with respect to the image data.

采用所述结构,即使彩色图像的原稿的底色浓度较深,或者原稿的背面颜色透过正面上,从而导致彩色图像中应为背景色的像素变成其他颜色的像素时,用原来的背景色的像素颜色来置换背景色。With the said structure, even if the background color concentration of the original of the color image is relatively deep, or the color of the back of the original is shown through the front, thereby causing the pixels in the color image that should be the background color to become pixels of other colors, the original background color will be used. Colored pixel color to replace the background color.

结果,能够忠实地再现彩色图像的背景色、文字的颜色及花样颜色。As a result, the background color, character color, and pattern color of a color image can be faithfully reproduced.

此外,所述结构中较为理想的是:所述颜色设定部将所述频数分布中出现次数少于所述第二颜色的多个颜色设定为所述花样颜色,并且,根据所述出现次数少于所述第二颜色的任一颜色的出现次数、所述第一颜色的出现次数、以及所述第二颜色的出现次数,决定是否设定全色花样模式,该全色花样模式是利用所述花样颜色来打印所述特定花样的模式;所述图像形成装置还包括控制部,当所述颜色设定部设定所述全色花样模式时,所述控制部利用所述第二颜色的调色剂来打印所述彩色图像中的文字,并利用所述花样颜色的调色剂来打印所述特定花样。In addition, in the above configuration, it is preferable that the color setting unit sets a plurality of colors that appear less frequently than the second color in the frequency distribution as the pattern color, and, based on the appearance The number of appearances of any color whose frequency is less than the second color, the number of appearances of the first color, and the number of appearances of the second color determines whether to set the full-color pattern mode, and the full-color pattern mode is A mode of printing the specific pattern using the pattern color; the image forming apparatus further includes a control unit that uses the second The text in the color image is printed with toner of the color, and the specific pattern is printed with the toner of the color of the pattern.

全色意味着多个颜色。Panchromatic means multiple colors.

采用所述结构,根据彩色图像中的出现次数少于黑色的多个颜色中任一颜色的出现次数、背景色的出现次数及文字的颜色的出现次数,判断为彩色图像部分包含由多个属于有色彩系的颜色构成的特定花样,并设定全色花样模式,将出现次数少于文字的颜色的多个颜色均设定为花样颜色。With the above structure, it is judged that the color image part contains a plurality of colors belonging to There is a specific pattern composed of colors in the color system, and the full-color pattern mode is set, and multiple colors that appear less frequently than the color of the text are set as the pattern color.

接着,实行全色花样模式,利用第二颜色的调色剂来打印文字,利用由颜色设定部设定的花样颜色的调色剂来打印特定花样。Next, the full-color pattern mode is executed, characters are printed with the toner of the second color, and a specific pattern is printed with the toner of the pattern color set by the color setting unit.

由此,在打印部分包含由多个属于有色彩系的颜色构成的特定花样的图像时,能够提高特定花样的颜色再现性。Accordingly, when an image of a specific pattern composed of a plurality of colors belonging to a chromatic system is included in the printed portion, the color reproducibility of the specific pattern can be improved.

此外,所述结构中较为理想的是:当所述第一颜色的出现次数与所述第二颜色的出现次数之和跟所述彩色图像的全像素数之间的差小于预先规定的大小判断值,且第四颜色的出现次数达预先规定的多个颜色判断值以上时,所述颜色设定部设定所述全色花样模式,其中所述第四颜色是出现次数仅次于第三颜色的颜色,该第三颜色是出现次数仅次于第二颜色的颜色。In addition, it is more ideal in the structure that: when the difference between the sum of the number of appearances of the first color and the number of appearances of the second color and the total number of pixels of the color image is smaller than the predetermined size judgment value, and when the number of occurrences of the fourth color reaches a predetermined number of color judgment values or more, the color setting part sets the full-color pattern mode, wherein the fourth color is second only to the third color. The color of the color, the tertiary color is the color with the second most occurrences after the second color.

如果被推测为背景色的第一颜色的出现次数与被推测为文字的颜色的第二颜色的出现次数之和跟彩色图像的全像素数之间的差小于大小判断值,则可判断为由第一颜色及第二颜色以外的颜色,即被推测为花样颜色的颜色所构成的特定花样的面积较小。If the difference between the sum of the number of appearances of the first color that is estimated to be the background color and the number of appearances of the second color that is estimated to be the color of the text and the total number of pixels of the color image is less than the size judgment value, it can be determined that The area of the specific pattern formed by colors other than the first color and the second color, that is, colors presumed to be pattern colors, is small.

并且,如果第四颜色的出现次数是达多个颜色判断值以上的大值,则花样颜色包含多个颜色的可能性较高。Also, if the number of occurrences of the fourth color is a large value equal to or greater than a plurality of color judgment values, it is highly likely that the design color includes a plurality of colors.

于是,采用所述结构,只有在图像包含面积小且由两种以上属于有色彩系的颜色构成的特定花样时,才设定全色花样模式,并利用各彩色调色剂来打印特定花样。结果,为打印特定花样不会消耗太多的高价彩色调色剂,既能抑制打印成本,又能提高花样的颜色再现性。Therefore, with the above configuration, only when the image contains a specific pattern with a small area and composed of two or more colors belonging to the chromatic system, the full-color pattern mode is set and the specific pattern is printed with each color toner. As a result, high-priced color toners are not consumed to print a specific pattern, and printing costs can be suppressed while the color reproducibility of the pattern can be improved.

此外,所述结构中较为理想的是:当所述第一颜色的出现次数与所述第二颜色的出现次数之和跟所述彩色图像的全像素数之间的差小于预先规定的大小判断值,且第四颜色的出现次数小于预先规定的多个颜色判断值,且所述第一颜色的出现次数、所述第二颜色的出现次数、第三颜色的出现次数与所述第四颜色的出现次数之和跟所述彩色图像的全像素数之间的差达预先规定的追加多个颜色判断值以上时,所述颜色设定部设定所述全色花样模式,其中所述第三颜色是出现次数仅次于第二颜色的颜色,所述第四颜色是出现次数仅次于第三颜色的颜色。In addition, it is more ideal in the structure that: when the difference between the sum of the number of appearances of the first color and the number of appearances of the second color and the total number of pixels of the color image is smaller than the predetermined size judgment value, and the number of appearances of the fourth color is less than a plurality of predetermined color judgment values, and the number of appearances of the first color, the number of appearances of the second color, the number of appearances of the third color and the number of appearances of the fourth color When the difference between the sum of the number of occurrences and the total number of pixels of the color image is greater than or equal to a predetermined number of additional color judgment values, the color setting section sets the full-color pattern mode, wherein the second The third color is a color whose appearance frequency is second only to the second color, and the fourth color is a color whose appearance frequency is second only to the third color.

当第一颜色的出现次数与第二颜色的出现次数之和跟彩色图像的全像素数之间的差小于大小判断值时,可判断为特定花样的面积较小。并且,如果第四颜色的出现次数小于多个颜色判断值,则特定花样的颜色为第三颜色(即单色)的可能性较高。然而,即使第四颜色的出现次数小于多个颜色判断值,如果第一颜色的出现次数、第二颜色的出现次数、第三颜色的出现次数与第四颜色的出现次数之和,跟彩色图像的全像素数之间的差达追加多个颜色判断值以上,则特定花样由出现次数非常少的许多颜色构成的可能性较高。When the difference between the sum of the number of appearances of the first color and the number of appearances of the second color and the total number of pixels of the color image is smaller than the size judgment value, it can be judged that the area of the specific pattern is small. And, if the number of appearances of the fourth color is less than a plurality of color judgment values, it is more likely that the color of the specific pattern is the third color (ie monochrome). However, even if the number of appearances of the fourth color is less than a plurality of color judgment values, if the sum of the number of appearances of the first color, the number of appearances of the second color, the number of appearances of the third color, and the number of appearances of the fourth color is equal to the color image If the difference between the total number of pixels is more than a plurality of color judgment values, there is a high possibility that the specific pattern is composed of many colors with a very small number of occurrences.

于是,采用所述结构,即使第四颜色的出现次数小于多个颜色判断值,如果第一颜色的出现次数、第二颜色的出现次数、第三颜色的出现次数与第四颜色的出现次数之和,跟彩色图像的全像素数之间的差达追加多个颜色判断值以上,则颜色设定部判断为特定花样由多个颜色构成,设定全色花样模式。结果,能够提高判断特定花样是否由单色构成还是多个颜色构成时的判断精确度。Thus, with the structure, even if the number of appearances of the fourth color is smaller than a plurality of color judgment values, if the number of appearances of the first color, the number of appearances of the second color, the number of appearances of the third color, and the number of appearances of the fourth color And, if the difference from the total number of pixels of the color image is more than a plurality of color judgment values, the color setting unit judges that the specific pattern is composed of a plurality of colors, and sets the full-color pattern mode. As a result, the accuracy of determination in determining whether a specific pattern is composed of a single color or a plurality of colors can be improved.

此外,所述结构中较为理想的是:所述第一颜色的出现次数与所述第二颜色的出现次数之和相对于所述彩色图像的全像素数的比例在预先规定的基准比例以上,且第四颜色的出现次数在预先规定的多个颜色判断值以上时,所述颜色设定部设定所述全色花样模式,其中所述第四颜色是出现次数仅次于第三颜色的颜色,该第三颜色是出现次数仅次于第二颜色的颜色。In addition, in the above structure, it is more desirable that the ratio of the sum of the number of appearances of the first color and the number of appearances of the second color to the total number of pixels of the color image is above a predetermined reference ratio, And when the number of occurrences of the fourth color is more than a plurality of predetermined color judgment values, the color setting part sets the full-color pattern mode, wherein the fourth color is the second only to the third color. color, the tertiary color is the color that occurs second only to the second color.

当第一颜色的出现次数与第二颜色的出现次数之和相对于彩色图像的全像素数的比例是小于基准比例的小比例时,出现次数少于第二颜色的特定花样的颜色在整个图像中所占的比例较大的可能性高。如果整个图像中特定花样所占的面积比例大,即使设定为打印特定花样的记录纸的大小越大,越提高让用户支付的打印费用,由于该费用中彩色调色剂的消费成本所占的比例很大,有可能导致服务提供方产生亏损。进而,如果第四颜色的出现次数在多个颜色判断值以上,则花样颜色包括多个颜色的可能性较高。When the ratio of the sum of the number of appearances of the first color and the number of appearances of the second color to the total number of pixels of the color image is a small ratio smaller than the reference ratio, the color of the specific pattern whose number of appearances is less than that of the second color is displayed in the entire image There is a high probability that the proportion in the If the proportion of the area occupied by a specific pattern in the entire image is large, even if the size of the recording paper set to print the specific pattern is larger, the printing fee paid by the user will increase, because the consumption cost of color toner accounts for the cost The proportion is very large, which may lead to losses for the service provider. Furthermore, if the number of occurrences of the fourth color is greater than or equal to a plurality of color determination values, it is highly likely that the design color includes a plurality of colors.

于是,采用所述结构,当第一颜色的出现次数与第二颜色的出现次数之和在彩色图像的全像素数中所占的比例达基准比例以上,即特定花样在整个图像中所占的比例小,且第四颜色的出现次数在预先规定的第二基准次数以上时,设定全色花样模式。Therefore, with the above structure, when the ratio of the sum of the number of appearances of the first color and the number of appearances of the second color in the total number of pixels of the color image exceeds the reference ratio, that is, the percentage of the specific pattern in the entire image When the ratio is small and the number of appearances of the fourth color is greater than the predetermined second reference number, the full-color pattern mode is set.

由此,在图像中包含由两种以上属于有色彩系的颜色构成的特定花样的情况下,特定图像在整个图像中占规定比例以上时不设定全色花样模式,因此可以将用户支付的费用中彩色调色剂的消耗成本所占的比例抑制为较小范围内。Thus, when an image contains a specific pattern composed of two or more colors belonging to the chromatic system, the full-color pattern mode will not be set when the specific image accounts for more than a predetermined proportion of the entire image, so the user can pay for it. The proportion of the consumption cost of color toner in the cost is kept within a small range.

因此,如果服务提供方设定为用于打印特定花样的记录纸的大小越大,越提高让用户支付的打印费用,则服务提供方能够在自己不会发生亏损的情况下,对用户提供利用彩色调色剂来打印特定花样的服务。Therefore, if the service provider sets the size of the recording paper used for printing a specific pattern to be larger, the printing fee paid by the user is increased, and the service provider can provide the user with the advantage of not incurring a loss. Color toner to print specific pattern service.

此外,所述结构中较为理想的是:所述图像数据获取部利用预先规定的三个要素颜色的各浓度值来表示所述各像素的颜色;所述频数分布获取部将所述各浓度值分配给三维坐标的各坐标上,以将所述各颜色作为所述各组来配置在三维坐标上,并且,通过使该各颜色分别与所述出现次数关联起来,生成在三维坐标上表示所述频数分布的三维频数分布信息;所述颜色设定部根据规定颜色之外的剩下颜色的出现次数的顺序来设定所述花样颜色,该规定颜色,既是在所述三维频数分布信息的三维坐标上用直线连接所述第一颜色和所述第二颜色而形成的路径中所配置的颜色,又是在所述三维坐标上至所述第一颜色的距离大于预先规定的判断距离、且至所述第二颜色的距离大于所述判断距离的颜色。In addition, in the above configuration, it is preferable that the image data acquisition unit expresses the color of each pixel using each density value of predetermined three element colors; Assigning to each coordinate of the three-dimensional coordinates so that the respective colors are arranged on the three-dimensional coordinates as the respective groups, and by associating the respective colors with the number of occurrences, generating a representation on the three-dimensional coordinates The three-dimensional frequency distribution information of the frequency distribution; the color setting part sets the color of the pattern according to the order of the appearance times of the remaining colors other than the specified color, and the specified color is in the three-dimensional frequency distribution information. The color arranged in the path formed by connecting the first color and the second color with a straight line on the three-dimensional coordinates, and the distance from the first color on the three-dimensional coordinates to the first color is greater than the predetermined judgment distance, And the color whose distance to the second color is greater than the judgment distance.

由于可推测为第一颜色是背景色,第二颜色是文字的颜色,因此,在所述三维坐标上用直线连接第一颜色和第二颜色而形成的路径中所配置的颜色是因文字的颜色渗出而产生的颜色、或文字的颜色的浓度变淡而产生的颜色的可能性高。于是,从这种颜色之外的颜色中选定花样颜色,从而能够提高花样的颜色再现性。Since it can be presumed that the first color is the background color and the second color is the color of the text, the colors arranged in the path formed by connecting the first color and the second color with a straight line on the three-dimensional coordinates are due to the color of the text. There is a high possibility that the color is caused by bleeding, or the color of the character is lightened. Then, by selecting the pattern color from colors other than this color, the color reproducibility of the pattern can be improved.

此外,所述结构中较为理想的是:所述图像数据获取部利用预先规定的三个要素颜色的各浓度值来表示所述各像素的颜色,并以预先规定的基本位数表示该各浓度值;所述频数分布获取部将各要素颜色的浓度值中预先规定的各上序位分配给三维坐标的各坐标上,并将共享该上序位的颜色群设为一个组,将各组配置在所述三维坐标上,并且,通过使各颜色群与该各颜色群的出现次数关联起来,获取表示所述各颜色群的频数分布的三维频数分布信息;所述颜色设定部利用所述各颜色群来代替所述各颜色,根据配置在规定区域的颜色群之外的剩下颜色群的出现次数的顺序来设定所述花样颜色,所述规定区域,是从用直线连接第一区域和第二区域而形成的区域中除去该第一区域及第二区域所获得的区域,其中所述第一区域是在所述三维坐标上至当做所述第一颜色的颜色群的距离小于预先规定的欧几里得距离的区域,所述第二区域是在所述三维坐标上至当做所述花样第二颜色的颜色群的距离小于预先规定的欧几里得距离的区域。In addition, in the above configuration, it is preferable that the image data acquisition unit expresses the color of each pixel by using each density value of predetermined three element colors, and expresses each density by a predetermined number of basic digits. value; the frequency distribution acquisition unit assigns each of the pre-specified upper-order positions in the concentration values of each element color to each coordinate of the three-dimensional coordinates, and sets the color groups sharing the upper-order positions as a group, and each group Arranged on the three-dimensional coordinates, and by associating each color group with the number of occurrences of each color group, three-dimensional frequency distribution information representing the frequency distribution of each color group is acquired; the color setting unit uses the Each of the above color groups is used instead of each of the colors, and the pattern colors are set according to the order of the appearance times of the remaining color groups outside the color group arranged in the predetermined area. In the area formed by the first area and the second area, the area obtained by removing the first area and the second area, wherein the first area is the distance from the color group as the first color on the three-dimensional coordinates An area smaller than a predetermined Euclidean distance, the second area is an area whose distance to a color group serving as the second color of the pattern on the three-dimensional coordinates is smaller than a predetermined Euclidean distance.

采用所述结构,利用各颜色群来代替各颜色,从而减少获取频数分布时或由颜色设定部进行处理时的数据量。另外,从用直线连接第一区域和第二区域从而形成的区域中,除去第一区域及第二区域所获得的区域中的颜色群是因文字的颜色渗出而产生的颜色、或文字的颜色的浓度变淡而产生的颜色的可能性较高。于是,从这些颜色群之外的颜色群中选定花样颜色,这样与利用所有基本位来获取表示各颜色的出现次数的频数分布时不同,既能够简化频数分布获取部的硬件结构,又能更精确地设定花样颜色。According to the above configuration, each color is replaced by each color group, thereby reducing the amount of data when acquiring the frequency distribution or when processing by the color setting unit. In addition, from the area formed by connecting the first area and the second area with a straight line, the color group in the area obtained by removing the first area and the second area is the color caused by the color bleeding of the characters, or the color of the characters. There is a high possibility of a color produced by lightening the density of the color. Therefore, the design color is selected from a color group other than these color groups, which is different from the case of obtaining the frequency distribution representing the number of appearances of each color by using all the basic bits, and it is possible to simplify the hardware structure of the frequency distribution acquisition part and to achieve Set the pattern color more precisely.

此外,所述结构中较为理想的是:所述各像素的颜色由青色的浓度值、品红色的浓度值和黄色的浓度值来表示,或者由红色的浓度值、绿色的浓度值和蓝色的浓度值来表示,所述图像形成装置还包括:图像形成部,利用所述青色的调色剂、所述品红色的调色剂、所述黄色的调色剂和黑色的调色剂来进行图像形成,或者利用所述红色的调色剂、所述绿色的调色剂和所述蓝色的调色剂和黑色的调色剂来进行图像形成;以及底色去除部,将所述各像素的所述各浓度值中对应于灰色的部分置换为黑色,其中,当所述颜色设定部设定全色花样模式时,所述底色去除部进行将所述第二颜色置换为所述黑色的100%底色去除处理。In addition, in the above structure, it is preferable that the color of each pixel is represented by a density value of cyan, a density value of magenta, and a density value of yellow, or by a density value of red, a density value of green, and a density value of blue. The image forming apparatus further includes: an image forming section that uses the cyan toner, the magenta toner, the yellow toner, and the black toner to form performing image formation, or performing image formation using the red toner, the green toner, the blue toner, and black toner; Parts corresponding to gray in each density value of each pixel are replaced with black, wherein, when the color setting part sets the full-color pattern mode, the background color removal part replaces the second color with 100% undertone removal treatment of the black.

为了提高标志、下划线、涂色部分等特定花样的颜色再现性,可考虑到用全色模式打印包括该特定花样的文件。然而,在全色模式下,对于文字不使用黑色调色剂,而往往将价格高于黑色调色剂的彩色调色剂相混合来合成黑色,用于打印。此时,与利用黑色调色剂来打印文字的情况相比,提高打印文字所需的成本。In order to improve the color reproducibility of specific patterns such as logos, underlines, colored parts, etc., it may be considered to print documents including the specific pattern in full-color mode. However, in the full-color mode, black toner is not used for characters, and color toners that are more expensive than black toner are often mixed to synthesize black for printing. In this case, the cost required to print the text increases compared to the case of printing the text using black toner.

不过,采用所述结构,底色去除部通常将各像素的青色、品红色和黄色,或者红色、绿色和蓝色的各浓度值中对应于灰色的部分置换为黑色,即进行所谓的UCR处理。However, with the above configuration, the undercolor remover usually performs so-called UCR processing by replacing the portion corresponding to gray in each density value of each pixel of cyan, magenta, and yellow, or red, green, and blue with black. .

进而,当颜色设定部设定全色花样模式时,底色去除部将被推测为文字的颜色的第二颜色以100%的比例置换为黑色。即,当设定全色花样模式时,第二颜色被置换为黑色,因此在实行全色花样模式时用黑色调色剂来打印文字。Furthermore, when the color setting unit sets the full-color pattern mode, the undercolor removing unit replaces the second color estimated to be the color of the characters with black at a rate of 100%. That is, when the full-color pattern mode is set, the second color is replaced with black, so when the full-color pattern mode is executed, characters are printed with black toner.

结果,与将高价格的多个彩色调色剂相混合来生成文字的颜色时相比,能够抑制打印成本,可容易抑制全色花样模式下的收费金额。As a result, printing costs can be suppressed compared to the case where a plurality of expensive color toners are mixed to generate the color of characters, and the charge amount in the full-color pattern mode can be easily suppressed.

此外,所述结构中较为理想的是还包括:识别信息输入部,受理用户的识别信息的输入;管理部,预先存储有表示限于黑白模式的用户的识别信息,该限于黑白模式的用户是只能实行黑白模式的用户;以及第一设定部,受理是否允许所述限于黑白模式的用户实行所述全色花样模式的设定,其中,当所述第一设定部受理允许所述限于黑白模式的用户实行所述全色花样模式的设定,且所述识别信息输入部受理表示所述限于黑白模式的用户的识别信息的输入时,所述控制部允许所述限于黑白模式的用户实行所述黑白模式和所述全色花样模式。In addition, the above structure preferably further includes: an identification information input unit that accepts input of user identification information; a management unit that stores in advance identification information indicating users limited to monochrome mode, and the users limited to monochrome mode are only A user who can execute the black and white mode; and a first setting section accepting whether to allow the user limited to the black and white mode to execute the setting of the full-color pattern mode, wherein when the first setting section accepts the permission of the limited When a user in monochrome mode sets the full-color pattern mode and the identification information input unit accepts an input of identification information indicating that the user in monochrome mode is limited, the control unit allows the user in monochrome mode to The black-and-white mode and the full-color pattern mode are implemented.

一般情况下,当提供图像数据打印服务时,向用户收费的金额有可能在黑白模式(黑白复印)下和全色模式(彩色复印)下分别不同。此时,全色模式下使用的彩色调色剂的价格高于黑白模式下使用的黑色调色剂的价格,因此在全色模式下向用户收费的金额往往高于黑白模式下向用户收费的金额。In general, when image data printing service is provided, the amount charged to the user may be different in the black and white mode (black and white copy) and the full color mode (color copy). At this time, the price of color toner used in full-color mode is higher than that of black toner used in black-and-white mode, so the amount charged to users in full-color mode is often higher than that charged in black-and-white mode amount.

然而,例如企业的商务文件那样,以黑白图像为主,仅在很小一部分区域存在标志、下划线、涂色部分等特定图像时,用户希望对于黑白图像进行黑白打印,而对特定图像进行彩色打印。However, for example, when business documents of an enterprise are dominated by black and white images, and only a small portion of specific images such as logos, underlines, and colored parts exist, users want to print black and white images in black and white, and print specific images in color .

并且,在标志、下划线、涂色部分等特定花样的图像面积较小时,由于全色花样模式下消耗的彩色调色剂的量非常少,因此全色花样模式所需的成本仅比黑白模式稍高而已。因此,即使将全色花样模式下的收费金额设定为与黑白模式大致相同,或比黑白模式稍高,服务提供方也不会发生亏损。Also, when the image area of a specific pattern such as logos, underlines, and colored parts is small, the full-color pattern mode requires only a little more cost than the black-and-white mode because the amount of color toner consumed in the full-color pattern mode is very small. only high. Therefore, even if the charging amount in the full-color pattern mode is set to be substantially the same as that in the black-and-white mode, or slightly higher than that in the black-and-white mode, the service provider will not incur a loss.

采用所述结构,当对于只可实行黑白模式的用户已做出允许实行全色花样模式的设定时,可实行全色花样模式。由此,当已做出允许实行全色花样模式的设定,而且特定图像的图像面积较小时,能够容易地向只可实行黑白模式的用户廉价地提供利用花样颜色打印特定花样的全色花样模式。With the above structure, when the user who can execute only the black-and-white mode has made a setting to allow the execution of the full-color pattern mode, the full-color pattern mode can be executed. As a result, when a setting is made to allow the full-color pattern mode, and the image area of the specific image is small, it is possible to easily and inexpensively provide a full-color pattern that prints a specific pattern in the pattern color to a user who can only execute the black-and-white mode. model.

此外,所述结构中较为理想的是还包括第二设定部,该第二设定部用于至少设定所述大小判断值。In addition, it is preferable that the above structure further includes a second setting unit for setting at least the size judgment value.

采用所述结构,服务提供方能够按照自己的情况或用户的要求来灵活地设定特定图像达何程度时设定全色花样模式。With the above structure, the service provider can flexibly set the full-color pattern mode for a specific image according to its own situation or user's requirements.

此外,所述结构中较为理想的是还包括第三设定部,该第三设定部用于至少设定所述基准比例。In addition, it is preferable that the above structure further includes a third setting unit for setting at least the reference ratio.

采用所述结构,服务提供方能够按照自己的情况或用户的要求来灵活地设定特定图像在整个图像中所占的比例达何程度时设定全色花样模式。By adopting the structure, the service provider can flexibly set the proportion of the specific image in the whole image according to its own situation or user's requirements, and set the full-color pattern mode.

此外,所述结构中较为理想的是还包括图像处理部,该图像处理部对于所述图像数据进行将所述背景色改变为预先规定的颜色的背景色变更处理。Furthermore, it is preferable that the above configuration further includes an image processing unit that performs background color changing processing of changing the background color to a predetermined color with respect to the image data.

采用所述结构,可将彩色图像的背景色改变为预先规定的颜色。由此,即使彩色图像的原稿的底色浓度较深,或者原稿的背面颜色透过正面上,从而导致彩色图像中应为背景色的像素变成其他颜色的像素时,用原来的背景色的像素颜色来置换背景色。结果,能够忠实地再现彩色图像的背景色、文字的颜色及花样颜色。With this configuration, the background color of a color image can be changed to a predetermined color. Thus, even if the background color density of the original of the color image is relatively deep, or the color of the back side of the original is reflected on the front side, so that when the pixels that should be the background color in the color image become pixels of other colors, the pixels of the original background color will be used. Pixel color to replace the background color. As a result, the background color, character color, and pattern color of a color image can be faithfully reproduced.

此外,所述结构中较为理想的是:所述图像数据获取部利用预先规定的三个要素颜色的各浓度值来表示所述各像素的颜色,并以预先规定的基本位数表示该浓度值;所述频数分布获取部,将颜色群作为所述组来获取所述频数分布,所述颜色群分别包括共享所述基本位数中预先规定的上序位的颜色;所述颜色设定部利用所述各颜色群来代替所述各颜色,并根据所述频数分布中出现次数最多的第一颜色群的出现次数、出现次数第二位的第二颜色群的出现次数以及出现次数少于第二颜色群的多个颜色群中任一颜色群的出现次数,来决定是否设定所述全色花样模式,并且,当设定所述全色花样模式时,从出现次数少于所述第二颜色群的各颜色群中分别选择出现次数最多的各颜色,并将所选择的该各颜色均设定为所述花样颜色。In addition, in the above configuration, it is preferable that the image data acquisition unit expresses the color of each pixel using each density value of predetermined three element colors, and expresses the density value with a predetermined number of basic digits. The frequency distribution acquisition unit acquires the frequency distribution by using a color group as the group, the color groups respectively including colors sharing a predetermined upper-order position in the basic number of digits; the color setting unit Use the color groups to replace the colors, and according to the number of occurrences of the first color group with the largest number of occurrences in the frequency distribution, the number of occurrences of the second color group with the second highest number of occurrences, and the number of occurrences less than The number of occurrences of any color group in the plurality of color groups of the second color group determines whether to set the full-color pattern mode, and when the full-color pattern mode is set, the number of occurrences is less than the Select the colors that appear most often in each color group of the second color group, and set the selected colors as the design colors.

采用所述结构,与利用所有基本位来获取表示各颜色的出现次数的频数分布时不同,频数分布获取部获取表示共享上序位(即,基本位的一部分)的各颜色群的出现次数的频数分布。进而,颜色设定部利用该颜色群的频数分布,分别获取第一颜色所属的颜色群、第二颜色所属的颜色群和被推测为花样颜色的颜色所属的颜色群,并根据获取的各颜色群设定全色花样模式。With this configuration, unlike when the frequency distribution representing the number of appearances of each color is obtained using all the basic bits, the frequency distribution acquisition unit obtains a frequency distribution representing the number of appearances of each color group sharing the upper-order bits (that is, a part of the basic bits). frequency distribution. Furthermore, the color setting unit acquires the color group to which the first color belongs, the color group to which the second color belongs, and the color group to which the color estimated to be the design color belongs, respectively, using the frequency distribution of the color group, and based on the acquired color Group to set the full-color pattern mode.

结果,与利用所有基本位来获取表示各颜色的出现次数的频数分布时相比,能够简化频数分布获取部的硬件结构来设定全色花样模式。As a result, it is possible to simplify the hardware configuration of the frequency distribution acquisition unit and set the full-color pattern mode compared to the case of acquiring the frequency distribution indicating the number of appearances of each color using all the basic bits.

Claims (19)

1. an image processing system, is characterized in that comprising:
Image data acquisition portion, obtains the view data that represents coloured image;
Frequency distributed acquisition portion, according to the view data of being obtained by described image data acquisition portion, gives each group by the color assignment of each pixel of this view data, to obtain the frequency of the occurrence number that represents each color, distributes; And
Color settings portion, according to the frequency of being obtained by described frequency distributed acquisition portion, distribute, the background colour that is described coloured image by the first maximum color settings of occurrence number, the second color settings that occurrence number is only second to described the first color is the color of the word in described coloured image
Wherein, when meeting the Rule of judgment that comprises rated condition, described color settings portion is only second to using occurrence number the style color that the 3rd color settings of described the second color is the color of the specific style in described coloured image, described rated condition refers to, the difference between the occurrence number sum of the object color of the regulation that comprises described the first color, the second color and described the 3rd color and the full figure prime number of described coloured image is less than the style judgment value of predetermining.
2. image processing system according to claim 1, is characterized in that:
Described object color comprises the 4th color that described the first color, described the second color, described the 3rd color and occurrence number are only second to described the 3rd color,
Described Rule of judgment also comprises miscellaneous stipulations condition, this miscellaneous stipulations condition refer to the occurrence number of described the 4th color be less than predetermine append style judgment value,
When meeting all rated conditions that described Rule of judgment comprises, described color settings portion is described style color by described the 3rd color settings.
3. image processing system according to claim 1, is characterized in that:
Described Rule of judgment also comprises miscellaneous stipulations condition, and this miscellaneous stipulations condition refers to that the occurrence number of described the 3rd color is less than the auxiliary big or small judgment value of predetermining,
When meeting all rated conditions that described Rule of judgment comprises, described color settings portion is described style color by described the 3rd color settings.
4. image processing system according to claim 1, is characterized in that:
Described image data acquisition portion utilizes each concentration value of three key element colors predetermining to represent the color of described each pixel,
Described frequency distributed acquisition portion distributes to described each concentration value on each coordinate of three-dimensional coordinate, using described each color is configured on three-dimensional coordinate as described each group, and, by this each color is associated with described occurrence number respectively, be created on the three-dimensional frequency distributed intelligence that represents described frequency distribution on three-dimensional coordinate
Selected described the 3rd color the color of described color settings portion outside specified color, this specified color, being on the three-dimensional coordinate of described three-dimensional frequency distributed intelligence, with straight line, to connect described the first color and described the second color and the color that configures in the path that forms, is again that the distance to described the first color is greater than the judging distance of predetermining and the color that is greater than described judging distance to the distance of described the second color on described three-dimensional coordinate.
5. image processing system according to claim 1, is characterized in that:
Described image data acquisition portion utilizes each concentration value of three key element colors predetermining to represent the color of described each pixel, and represents this each concentration value with the basic figure place of predetermining,
Described frequency distributed acquisition portion by the concentration value of each key element color, predetermine each on tagmeme distribute on each coordinate of three-dimensional coordinate, and the color group who shares tagmeme on this is made as to a group, each group is configured on described three-dimensional coordinate, and, by each color group and this each color group's occurrence number is associated, obtain the three-dimensional frequency distributed intelligence of the frequency distribution that represents described each color group
Described each color group of described color settings portion's utilization replaces described each color, and the selected color group as described the 3rd color the color group outside being configured in the color group in regulation region, described regulation region, the region forming from connecting first area and second area with straight line, to remove the region that this first area and second area obtain, wherein said first area is on described three-dimensional coordinate, to the distance of the color group as described the first color, to be less than the region of the Euclidean distance of predetermining, described second area is on described three-dimensional coordinate, to the distance of the color group as described the second color, to be less than the region of the Euclidean distance of predetermining.
6. image processing system according to claim 1, characterized by further comprising:
Identifying information input part, the input of the identifying information of accepted user;
Management department, the pre-stored identifying information that has the user that can only carry out white-black pattern, this white-black pattern is the pattern of the image based on described view data that only forms by a color;
Configuration part, for having, be stored in user in described management department, that can only carry out the identifying information of white-black pattern, accept the setting that whether allows to carry out monochromatic style pattern, this monochrome style pattern, be to utilize the toner of described the second color of being set by described color settings portion to print the word in described coloured image, and utilize the toner of described the 3rd color of being set by described color settings portion to print the pattern of described specific style; And
Control part, carries out image with described white-black pattern and described monochromatic style pattern and forms, wherein,
When described identifying information input part is accepted the input of the user's that can only carry out described white-black pattern identifying information, and described configuration part is when accepting the user who allows to have this identifying information and carrying out the setting of described monochromatic style pattern, the user that can only carry out described white-black pattern described in described control part allows carries out described white-black pattern and described monochromatic style pattern.
7. image processing system according to claim 1, characterized by further comprising image processing part, and this image processing part carries out the background colour of described coloured image to change into for described view data the background colour change processing of the color of predetermining.
8. an image processing system, is characterized in that comprising:
Image data acquisition portion, obtains the view data that represents coloured image;
Frequency distributed acquisition portion, according to the view data of being obtained by described image data acquisition portion, gives each group by the color assignment of each pixel of this view data, to obtain the frequency of the occurrence number that represents each color, distributes; And
Color settings portion, according to the frequency of being obtained by described frequency distributed acquisition portion, distribute, the background colour that is described coloured image by the first maximum color settings of occurrence number, the second color settings that occurrence number is only second to described the first color is the color of the word in described coloured image
Wherein, described color settings portion occurrence number in described frequency distributes is less than the style color that a plurality of color settings of described the second color are the color of the specific style in described coloured image, and, the occurrence number that is less than the occurrence number of arbitrary color of described the second color, the occurrence number of described the first color and described the second color according to described occurrence number, determine whether to set panchromatic style pattern, this panchromatic style pattern is to utilize described style color to print the pattern of described specific style
Described image processing system also comprises control part, when the described panchromatic style pattern of described color settings portion's setting, described control part utilizes the toner of described the second color to print the word in described coloured image, and utilizes the toner of described style color to print described specific style.
9. image processing system according to claim 8, it is characterized in that: when the occurrence number of described the first color and the occurrence number sum of described the second color are less than with the difference between the full figure prime number of described coloured image the big or small judgment value of predetermining, and the occurrence number of the 4th color reaches a plurality of color judgment value of predetermining when above, the described panchromatic style pattern of described color settings portion's setting, wherein said the 4th color is the color that occurrence number is only second to the 3rd color, and the 3rd color is the color that occurrence number is only second to the second color.
10. image processing system according to claim 8, it is characterized in that: when the occurrence number of described the first color and the occurrence number sum of described the second color are less than with the difference between the full figure prime number of described coloured image the big or small judgment value of predetermining, and the occurrence number of the 4th color is less than a plurality of color judgment value of predetermining, and the occurrence number of described the first color, the occurrence number of described the second color, the occurrence number sum of the occurrence number of the 3rd color and described the 4th color with the difference between the full figure prime number of described coloured image reach predetermine append a plurality of color judgment value when above, the described panchromatic style pattern of described color settings portion's setting, wherein said the 3rd color is the color that occurrence number is only second to the second color, described the 4th color is the color that occurrence number is only second to the 3rd color.
11. image processing systems according to claim 8, it is characterized in that: the occurrence number sum of the occurrence number of described the first color and described the second color with respect to the ratio of the full figure prime number of described coloured image more than the benchmark ratio of predetermining, and the occurrence number of the 4th color is when a plurality of color judgment value of predetermining are above, the described panchromatic style pattern of described color settings portion's setting, wherein said the 4th color is the color that occurrence number is only second to the 3rd color, and the 3rd color is the color that occurrence number is only second to the second color.
12. image processing systems according to claim 8, is characterized in that:
Described image data acquisition portion utilizes each concentration value of three key element colors predetermining to represent the color of described each pixel,
Described frequency distributed acquisition portion distributes to described each concentration value on each coordinate of three-dimensional coordinate, using described each color is configured on three-dimensional coordinate as described each group, and, by this each color is associated with described occurrence number respectively, be created on the three-dimensional frequency distributed intelligence that represents described frequency distribution on three-dimensional coordinate
The described color settings portion according to the rules order of the occurrence number of the remaining color outside color sets described style color, this specified color, being on the three-dimensional coordinate of described three-dimensional frequency distributed intelligence, with straight line, to connect described the first color and described the second color and the color that configures in the path that forms, is again that the distance to described the first color is greater than the judging distance of predetermining and the color that is greater than described judging distance to the distance of described the second color on described three-dimensional coordinate.
13. image processing systems according to claim 8, is characterized in that:
Described image data acquisition portion utilizes each concentration value of three key element colors predetermining to represent the color of described each pixel, and represents this each concentration value with the basic figure place of predetermining,
Described frequency distributed acquisition portion by the concentration value of each key element color, predetermine each on tagmeme distribute on each coordinate of three-dimensional coordinate, and the color group who shares tagmeme on this is made as to a group, each group is configured on described three-dimensional coordinate, and, by each color group and this each color group's occurrence number is associated, obtain the three-dimensional frequency distributed intelligence of the frequency distribution that represents described each color group
Described each color group of described color settings portion's utilization replaces described each color, according to the order that is configured in the occurrence number of the remaining color group outside the color group in regulation region, set described style color, described regulation region, the region forming from connecting first area and second area with straight line, to remove the region that this first area and second area obtain, wherein said first area is on described three-dimensional coordinate, to the distance of the color group as described the first color, to be less than the region of the Euclidean distance of predetermining, described second area is on described three-dimensional coordinate, to the distance of the color group as described style the second color, to be less than the region of the Euclidean distance of predetermining.
14. image processing systems according to claim 8, is characterized in that:
The color of described each pixel by the concentration value of cyan, the concentration value of magenta and yellow concentration value represent, or represented by red concentration value, green concentration value and blue concentration value,
Described image processing system also comprises:
Image forming part, utilize the toner of described cyan, the toner of the toner of described magenta, described yellow and the toner of black carry out image formation, or utilize the toner of the toner of described redness, the toner of described green and described blueness and the toner of black to carry out image formation; And
Undercolour removal portion, is replaced into black by the part corresponding to grey in described each concentration value of described each pixel, wherein,
When described color settings portion sets panchromatic style pattern, described undercolour removal portion carries out described the second color to be replaced into 100% undercolour removal of described black and processes.
15. image processing systems according to claim 8, characterized by further comprising:
Identifying information input part, the input of the identifying information of accepted user;
Management department, the pre-stored identifying information that has expression to be limited to the user of white-black pattern, this user who is limited to white-black pattern is the user that can only carry out white-black pattern; And
The first configuration part, accepts the setting that the user who is limited to white-black pattern described in whether allowing carries out described panchromatic style pattern, wherein,
When the setting that the user who is limited to white-black pattern described in permission carries out described panchromatic style pattern is accepted in described the first configuration part, and when described identifying information input part is accepted the user's who is limited to white-black pattern described in expression the input of identifying information, the user who is limited to white-black pattern described in described control part allows carries out described white-black pattern and described panchromatic style pattern.
16. image processing systems according to claim 9, characterized by further comprising the second configuration part, and this second configuration part is at least setting described big or small judgment value.
17. image processing systems according to claim 11, characterized by further comprising the 3rd configuration part, and the 3rd configuration part is at least setting described benchmark ratio.
18. image processing systems according to claim 8, characterized by further comprising image processing part, and this image processing part carries out described background colour to change into for described view data the background colour change processing of the color of predetermining.
19. image processing systems according to claim 8, is characterized in that:
Described image data acquisition portion utilizes each concentration value of three key element colors predetermining to represent the color of described each pixel, and represents this concentration value with the basic figure place of predetermining,
Described frequency distributed acquisition portion obtains described frequency using color group as described group and distributes, and described color group comprises respectively the color of sharing the upper tagmeme of predetermining in described basic figure place,
Described each color group of described color settings portion's utilization replaces described each color, and the first color group's that in distributing according to described frequency, occurrence number is maximum occurrence number, deputy the second color group's of occurrence number occurrence number and occurrence number are less than the occurrence number of arbitrary color group in a plurality of color groups of the second color group, determine whether setting described panchromatic style pattern, and, when setting described panchromatic style pattern, from being less than each color group of described the second color group, occurrence number selects respectively each color that occurrence number is maximum, and selected this each color is all set as to described style color.
CN201110328486.8A 2010-10-29 2011-10-25 Image forming apparatus Expired - Fee Related CN102455628B (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2010243986A JP5439339B2 (en) 2010-10-29 2010-10-29 Image forming apparatus
JP2010-243987 2010-10-29
JP2010243987A JP5241796B2 (en) 2010-10-29 2010-10-29 Image forming apparatus
JP2010-243986 2010-10-29

Publications (2)

Publication Number Publication Date
CN102455628A CN102455628A (en) 2012-05-16
CN102455628B true CN102455628B (en) 2014-08-13

Family

ID=45996405

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110328486.8A Expired - Fee Related CN102455628B (en) 2010-10-29 2011-10-25 Image forming apparatus

Country Status (2)

Country Link
US (1) US8570600B2 (en)
CN (1) CN102455628B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8462385B2 (en) * 2009-05-18 2013-06-11 Ricoh Production Print Solutions LLC Color matching for color management systems
JP4911395B1 (en) * 2010-09-28 2012-04-04 Necエンジニアリング株式会社 Image reading device
CN106780306B (en) * 2016-12-09 2020-07-24 腾讯音乐娱乐(深圳)有限公司 Reconstruction draft generation method and device
CN110519376B (en) * 2019-08-29 2022-04-12 珠海奔图电子有限公司 Image processing method and image forming apparatus applied to cloud server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1188261A (en) * 1996-11-28 1998-07-22 株式会社东芝 Image processing method and image processing device
JP2002247403A (en) * 2001-02-21 2002-08-30 Hitachi Ltd Image forming apparatus and image forming method
JP2009198792A (en) * 2008-02-21 2009-09-03 Nec Access Technica Ltd Image forming apparatus, image forming method, and image forming program

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3003375B2 (en) 1992-03-31 2000-01-24 松下電器産業株式会社 Color image processing equipment
JPH08297390A (en) 1995-04-27 1996-11-12 Canon Inc Color image processor
JP3845509B2 (en) 1997-12-19 2006-11-15 株式会社東芝 Image processing apparatus and image forming apparatus
JP2003219191A (en) 2002-01-21 2003-07-31 Sharp Corp Image processing apparatus and image forming apparatus using the same
US7317829B2 (en) * 2003-12-12 2008-01-08 Microsoft Corporation Background color estimation for scanned images
JP4603807B2 (en) * 2004-03-10 2010-12-22 富士通株式会社 Character recognition device, character recognition method, medium processing method, character recognition program, and computer-readable recording medium on which character recognition program is recorded
US7570403B2 (en) * 2005-03-16 2009-08-04 Kabushiki Kaisha Toshiba Color image processing apparatus
US7916943B2 (en) * 2006-06-02 2011-03-29 Seiko Epson Corporation Image determining apparatus, image determining method, image enhancement apparatus, and image enhancement method
US7864365B2 (en) * 2006-06-15 2011-01-04 Sharp Laboratories Of America, Inc. Methods and systems for segmenting a digital image into regions
JP4967937B2 (en) * 2007-09-06 2012-07-04 日本電気株式会社 Image processing apparatus, method, and program
EP2260090B1 (en) 2008-04-01 2013-08-28 GKN Driveline International GmbH Grease composition for use in constant velocity joints
JP4513038B2 (en) 2008-04-28 2010-07-28 ブラザー工業株式会社 Image forming system, image forming apparatus, and restriction changing program
US20090310149A1 (en) * 2008-06-13 2009-12-17 Kyocera Mita Corporation Image forming apparatus
US8401290B2 (en) * 2008-07-24 2013-03-19 Libredigital, Inc. Method and system for processing to enhance digital images
KR101114744B1 (en) * 2009-02-12 2012-03-05 전남대학교산학협력단 Method for recognizing a text from an image
US20130004066A1 (en) * 2011-07-03 2013-01-03 Butler David G Determining a background color of a document

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1188261A (en) * 1996-11-28 1998-07-22 株式会社东芝 Image processing method and image processing device
JP2002247403A (en) * 2001-02-21 2002-08-30 Hitachi Ltd Image forming apparatus and image forming method
JP2009198792A (en) * 2008-02-21 2009-09-03 Nec Access Technica Ltd Image forming apparatus, image forming method, and image forming program

Also Published As

Publication number Publication date
CN102455628A (en) 2012-05-16
US20120105880A1 (en) 2012-05-03
US8570600B2 (en) 2013-10-29

Similar Documents

Publication Publication Date Title
US8294947B2 (en) Image processing apparatus with front and back side reading units and method for correcting a color difference for a specific color
JP4496239B2 (en) Image processing method, image processing apparatus, image forming apparatus, image reading apparatus, computer program, and recording medium
US7889917B2 (en) Device and method for image color determination
CN101910955A (en) Image forming device
CN102455628B (en) Image forming apparatus
US8422078B2 (en) Method of processing neutral gray color print jobs as monochrome black during billing detection and printing as a neutral gray composite black
CN101141547B (en) Apparatus and method for deciding image color
JP2015053641A (en) Image processing apparatus, image processing method, and program
AU2012227365B2 (en) Image evaluation apparatus and method, image forming system, and program
CN102215314A (en) Image processing apparatus, image forming method and program
JP2013246396A (en) Image forming apparatus, image forming method, program, and recording medium
JP5736241B2 (en) Image forming apparatus
JP5439339B2 (en) Image forming apparatus
JP2008103917A (en) Image processing device
JP6456021B2 (en) Image processing apparatus, image processing method, and program
JP5241796B2 (en) Image forming apparatus
US20080055682A1 (en) Apparatus and Method for Deciding Image Color
JP4170247B2 (en) Image processing apparatus, image forming apparatus including the same, image processing method, program, and recording medium recording the program
JP4352734B2 (en) Image processing device
JP4958626B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP5593888B2 (en) Image processing apparatus, image forming apparatus, and program
JP5796034B2 (en) Image processing device
JP3347390B2 (en) Image processing apparatus and image processing method
JP5776379B2 (en) Image forming apparatus and image forming method
JP2008294700A (en) Image processor, and image processing program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: Osaka Prefecture, Japan

Applicant after: Kyocera Document Solutions Inc

Address before: Osaka Prefecture, Japan

Applicant before: KYOCERA Mita Corporation

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: KYOCERA CORP TO: KYOCERA DOCUMENT SOLUTIONS INC.

C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140813

Termination date: 20201025