JP2016200999A - Printing instruction device, printing system, and program - Google Patents

Printing instruction device, printing system, and program Download PDF

Info

Publication number
JP2016200999A
JP2016200999A JP2015081157A JP2015081157A JP2016200999A JP 2016200999 A JP2016200999 A JP 2016200999A JP 2015081157 A JP2015081157 A JP 2015081157A JP 2015081157 A JP2015081157 A JP 2015081157A JP 2016200999 A JP2016200999 A JP 2016200999A
Authority
JP
Japan
Prior art keywords
image
code
data
code image
print data
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.)
Granted
Application number
JP2015081157A
Other languages
Japanese (ja)
Other versions
JP6507809B2 (en
Inventor
太郎 山崎
Taro Yamazaki
太郎 山崎
将之 岩澤
Masayuki Iwazawa
将之 岩澤
慎吾 加藤
Shingo Kato
慎吾 加藤
豊 小島
Yutaka Kojima
豊 小島
高野 真一
Shinichi Takano
真一 高野
一清 松下
Kazukiyo Matsushita
一清 松下
直樹 安田
Naoki Yasuda
直樹 安田
博男 吉田
Hiroo Yoshida
博男 吉田
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
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
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2015081157A priority Critical patent/JP6507809B2/en
Publication of JP2016200999A publication Critical patent/JP2016200999A/en
Application granted granted Critical
Publication of JP6507809B2 publication Critical patent/JP6507809B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

PROBLEM TO BE SOLVED: To provide a printing instruction device for, when performing printing based on image data including a gradation image and a code image, suppressing deterioration in the quality of the gradation image and deterioration in the reading accuracy of the code image.SOLUTION: A printer driver 22 provided in a computer device 20 acquires image data (object data) including a gradation image and a code image from an application 21, and detects a code image from the acquired image data. Then, the printer driver generates print data by performing halftone processing to the gradation image in the acquired image data, and generates print data indicating being the code image without performing the halftone processing to the detected code image.SELECTED DRAWING: Figure 1

Description

本発明は、印刷指示装置、印刷システム及びプログラムに関する。   The present invention relates to a print instruction apparatus, a printing system, and a program.

特許文献1には、画像データから印刷ジョブを生成する印刷ジョブ生成部と、印刷ジョブをハーフトーン処理して描画データを生成するプリンタドライバと、描画データを一時的に格納する記憶部と、記憶部から入力される描画データに基づいて描画を行うプリンタ部とを備えた描画装置が記載されている。   Patent Document 1 discloses a print job generation unit that generates a print job from image data, a printer driver that generates halftone processing of the print job to generate drawing data, a storage unit that temporarily stores drawing data, A drawing apparatus including a printer unit that performs drawing based on drawing data input from the unit is described.

特開2014−78188号公報JP 2014-78188 A

ここで、多階調で表現される濃淡画像と、コード情報を含むコード画像(例えばQRコード(株式会社デンソーウェーブの登録商標)やバーコードなどが挙げられる)とを有する画像データに基づいて印刷を行う場合について考えてみる。このとき、例えば濃淡画像及びコード画像の両者にハーフトーン処理を行った場合には、印刷されたコード画像の読取精度が低下する懸念がある。一方、例えば濃淡画像及びコード画像の両者にハーフトーン処理を行わない場合には、印刷された濃淡画像の品質が低下する懸念がある。
本発明は、濃淡画像とコード画像とを含む画像データに基づく印刷を行う場合に、濃淡画像の品質の低下及びコード画像の読取精度の低下を抑制することを目的とする。
Here, printing is performed based on image data having a grayscale image expressed in multiple gradations and a code image including code information (for example, a QR code (registered trademark of DENSO WAVE INCORPORATED) or a barcode). Consider the case of doing. At this time, for example, when halftone processing is performed on both the grayscale image and the code image, there is a concern that the reading accuracy of the printed code image may be lowered. On the other hand, for example, when the halftone process is not performed on both the grayscale image and the code image, there is a concern that the quality of the printed grayscale image is degraded.
An object of the present invention is to suppress deterioration in quality of a grayscale image and reading accuracy of a code image when performing printing based on image data including a grayscale image and a code image.

請求項1記載の発明は、濃淡画像とコード画像とを含む画像データを取得する取得手段と、前記取得手段により取得された前記画像データからコード画像を検出する検出手段と、前記取得手段が取得した前記画像データのうち、前記濃淡画像にはハーフトーン処理を施して印刷データを生成し、前記検出手段により検出された前記コード画像にはハーフトーン処理を施さずにコード画像であることを示す印刷データを生成する生成手段とを備える印刷指示装置である。
請求項2記載の発明は、前記取得手段は、前記濃淡画像及び前記コード画像がともにイメージオブジェクトに設定された前記画像データを取得し、前記検出手段は、前記画像データにおいて前記イメージオブジェクトに設定されたデータから前記コード画像を検出することを特徴とする請求項1記載の印刷指示装置である。
請求項3記載の発明は、前記生成手段は、前記濃淡画像に関する印刷データとして、印刷データを用いて記録材に画像を印刷する印刷装置にてイメージオブジェクトであることを解釈可能な制御コマンドを生成し、前記コード画像であることを示す印刷データとして、当該印刷装置にてコード画像であることを解釈可能な制御コマンドを生成することを特徴とする請求項1または2に記載の印刷指示装置である。
請求項4記載の発明は、使用者からの指示によって前記検出手段における前記コード画像の検出を実行しないように設定する設定手段をさらに備えることを特徴とする請求項1乃至3のいずれか1項に記載の印刷指示装置である。
請求項5記載の発明は、濃淡画像とコード画像とを含む画像データを取得する取得手段と、当該取得手段により取得された当該画像データからコード画像を検出する検出手段と、当該取得手段が取得した当該画像データのうち、当該濃淡画像にはハーフトーン処理を施して印刷データを生成し、当該検出手段により検出された当該コード画像にはハーフトーン処理を施さずにコード画像であることを示す印刷データを生成する生成手段と、当該生成手段により生成された印刷データを出力する出力手段とを有する印刷指示装置と、前記印刷指示装置から受け取った前記印刷データを用いて、記録材に画像を印刷する印刷装置とを備える印刷システムである。
請求項6記載の発明は、コンピュータに、濃淡画像とコード画像とを含む画像データを取得する機能と、取得した前記画像データからコード画像を検出する機能と、取得した前記画像データのうち、前記濃淡画像にはハーフトーン処理を施して印刷データを生成し、検出した前記コード画像にはハーフトーン処理を施さずにコード画像であることを示す印刷データを生成する機能とを実現させるプログラムである。
The invention according to claim 1 is an acquisition unit that acquires image data including a grayscale image and a code image, a detection unit that detects a code image from the image data acquired by the acquisition unit, and the acquisition unit acquires Among the image data, the grayscale image is subjected to halftone processing to generate print data, and the code image detected by the detection means is a code image without being subjected to halftone processing. A print instructing device including a generating unit that generates print data.
According to a second aspect of the present invention, the acquisition unit acquires the image data in which both the grayscale image and the code image are set in an image object, and the detection unit is set in the image object in the image data. The print instruction apparatus according to claim 1, wherein the code image is detected from the acquired data.
According to a third aspect of the present invention, the generation means generates a control command that can be interpreted as an image object by a printing apparatus that prints an image on a recording material using print data as print data relating to the grayscale image. The print instruction apparatus according to claim 1, wherein a control command that can be interpreted as a code image by the printing apparatus is generated as print data indicating the code image. is there.
The invention according to claim 4 further comprises setting means for setting so as not to execute the detection of the code image in the detection means according to an instruction from a user. The print instruction apparatus according to the above.
The invention according to claim 5 is an acquisition unit that acquires image data including a grayscale image and a code image, a detection unit that detects a code image from the image data acquired by the acquisition unit, and the acquisition unit acquires Among the image data, the grayscale image is subjected to halftone processing to generate print data, and the code image detected by the detection means is a code image without being subjected to halftone processing. A print instruction apparatus having a generation means for generating print data and an output means for outputting the print data generated by the generation means, and using the print data received from the print instruction apparatus, an image is recorded on a recording material. A printing system including a printing apparatus for printing.
The invention according to claim 6 is a function of acquiring image data including a grayscale image and a code image in a computer, a function of detecting a code image from the acquired image data, and among the acquired image data, A program that realizes a function of generating print data by performing halftone processing on a grayscale image, and generating print data indicating that the detected code image is a code image without performing halftone processing. .

請求項1記載の発明によれば、濃淡画像とコード画像とを含む画像データに基づく印刷を行う場合に、濃淡画像の品質の低下及びコード画像の読取精度の低下を抑制することができる。
請求項2記載の発明によれば、例えばイメージオブジェクト以外のオブジェクトを含む画像データに基づく印刷を行う場合に、画像データに施す処理を簡易にすることができる。
請求項3記載の発明によれば、印刷装置にて濃淡画像及びコード画像を印刷する処理を簡易に実行させることができる。
請求項4記載の発明によれば、例えばコード画像を含まない画像データに基づく印刷を行う場合に、画像データに施す処理を簡易にすることができる。
請求項5記載の発明によれば、濃淡画像とコード画像とを含む画像データに基づく印刷を行う場合に、濃淡画像の品質の低下及びコード画像の読取精度の低下を抑制することができる。
請求項6記載の発明によれば、濃淡画像とコード画像とを含む画像データに基づく印刷を行う場合に、濃淡画像の品質の低下及びコード画像の読取精度の低下を抑制する機能を、コンピュータにより実現できる。
According to the first aspect of the present invention, when printing based on image data including a grayscale image and a code image is performed, it is possible to suppress a decrease in the quality of the grayscale image and a decrease in the reading accuracy of the code image.
According to the second aspect of the present invention, for example, when printing based on image data including an object other than an image object is performed, the processing applied to the image data can be simplified.
According to the third aspect of the present invention, it is possible to easily execute the process of printing the grayscale image and the code image by the printing apparatus.
According to the fourth aspect of the present invention, for example, when printing based on image data not including a code image is performed, it is possible to simplify the processing applied to the image data.
According to the fifth aspect of the present invention, when printing based on image data including a grayscale image and a code image is performed, it is possible to suppress a decrease in the quality of the grayscale image and a decrease in the reading accuracy of the code image.
According to the sixth aspect of the present invention, when printing based on image data including a grayscale image and a code image is performed, the computer has a function of suppressing a decrease in the quality of the grayscale image and a decrease in the reading accuracy of the code image. realizable.

本実施の形態が適用される印刷システムの構成例を示すブロック図である。It is a block diagram which shows the structural example of the printing system to which this Embodiment is applied. コンピュータ装置のハードウェア構成例を示すブロック図である。It is a block diagram which shows the hardware structural example of a computer apparatus. 印刷データの作成処理手順の一例を示すフローチャートである。6 is a flowchart illustrating an example of a print data creation processing procedure. 印刷対象となる文書(オブジェクトデータ)の一例を示す図である。It is a figure which shows an example of the document (object data) used as printing object. 印刷データの作成処理手順の一例を説明するためのシーケンスチャートである。6 is a sequence chart for explaining an example of a print data creation processing procedure. (a)〜(c)は、図3に示すステップ109における判定手法を説明するための図である。(A)-(c) is a figure for demonstrating the determination method in step 109 shown in FIG. (a)、(b)は、バーコード形式の制御コマンドの一例を示す図である。(A), (b) is a figure which shows an example of the control command of a barcode format. (a)、(b)は、写真画像とハーフトーン処理との関係を説明するための図である。(A), (b) is a figure for demonstrating the relationship between a photographic image and a halftone process. (a)、(b)は、コード画像とハーフトーン処理との関係を説明するための図である。(A), (b) is a figure for demonstrating the relationship between a code image and a halftone process.

以下、添付図面を参照して、本発明の実施の形態について詳細に説明する。
<印刷システムの全体構成>
まず、本実施の形態に係る印刷システム1の全体構成について説明する。図1は、本実施の形態が適用される印刷システム1の構成例を示すブロック図である。この印刷システム1は、ホスト装置10と、ホスト装置10とネットワーク等を介して接続された印刷装置100とを備える。ここで、ホスト装置10は、使用者から受け付けた指示に基づいて、印刷データの作成を行う。また、印刷装置100は、ホスト装置10から送られてくる印刷データに基づき、用紙等の記録材に画像を印刷する。
Embodiments of the present invention will be described below in detail with reference to the accompanying drawings.
<Overall configuration of printing system>
First, the overall configuration of the printing system 1 according to the present embodiment will be described. FIG. 1 is a block diagram illustrating a configuration example of a printing system 1 to which the exemplary embodiment is applied. The printing system 1 includes a host device 10 and a printing device 100 connected to the host device 10 via a network or the like. Here, the host device 10 creates print data based on an instruction received from the user. The printing apparatus 100 prints an image on a recording material such as paper based on print data sent from the host apparatus 10.

ホスト装置10は、コンピュータ装置20と、コンピュータ装置20に接続される入力装置30及び表示装置40とを備える。これらのうち、コンピュータ装置20は、印刷データを作成するための各種処理を実行する。また、入力装置30は、使用者による各種指示の入力を受け付けてコンピュータ装置20に送る。さらに、表示装置40は、コンピュータ装置20から送られた使用者に提示すべき画像を表示する。   The host device 10 includes a computer device 20, an input device 30 and a display device 40 connected to the computer device 20. Among these, the computer device 20 executes various processes for creating print data. Further, the input device 30 receives input of various instructions by the user and sends it to the computer device 20. Further, the display device 40 displays an image to be presented to the user sent from the computer device 20.

印刷指示装置の一例としてのコンピュータ装置20は、アプリケーション21と、プリンタドライバ22と、スプーラ23と、言語モニタ24とを有する。これらのうち、アプリケーション21は、文書の作成等を行うソフトウェアである。また、プリンタドライバ22は、アプリケーション21で作成された文書に基づき、印刷装置100が解釈可能な印刷データを生成する。   A computer apparatus 20 as an example of a print instruction apparatus includes an application 21, a printer driver 22, a spooler 23, and a language monitor 24. Among these, the application 21 is software for creating a document and the like. The printer driver 22 generates print data that can be interpreted by the printing apparatus 100 based on the document created by the application 21.

ここで、プリンタドライバ22は、アプリケーション21から送られてきた文書を構成するオブジェクトを判別し、印刷装置100に送る印刷データとしてPDL(Page Description Language)を生成する。なお、オブジェクトとしては、図形画像を含む図形オブジェクト、文字画像を含む文字オブジェクト、写真画像やコード画像を含むイメージオブジェクト(いわゆる、ビットマップ画像)が挙げられる。プリンタドライバ22は、アプリケーション21からの命令により、文書を構成する各オブジェクトがどのような種類のオブジェクトに該当するかを把握する。さらに、スプーラ23は、プリンタドライバ22からの印刷要求に伴い、GDI(Graphics Device Interface)経由で印刷装置100に出力する印刷データを一時的に保持する。さらにまた、言語モニタ24は、印刷装置100との間でデータ等の授受を行う。   Here, the printer driver 22 determines an object constituting the document sent from the application 21 and generates PDL (Page Description Language) as print data to be sent to the printing apparatus 100. Examples of the object include a graphic object including a graphic image, a character object including a character image, and an image object including a photographic image and a code image (so-called bitmap image). The printer driver 22 grasps what kind of object each object constituting the document corresponds to a command from the application 21. Furthermore, the spooler 23 temporarily holds print data to be output to the printing apparatus 100 via GDI (Graphics Device Interface) in response to a print request from the printer driver 22. Furthermore, the language monitor 24 exchanges data and the like with the printing apparatus 100.

そして、プリンタドライバ22は、UI(User Interface)処理部221と、イメージ判定部222と、ハーフトーン処理部223と、イメージコマンド生成処理部224と、バーコード文字列変換処理部225と、バーコードコマンド生成処理部226と、その他制御コマンド生成処理部227とを備える。   The printer driver 22 includes a UI (User Interface) processing unit 221, an image determination unit 222, a halftone processing unit 223, an image command generation processing unit 224, a barcode character string conversion processing unit 225, a barcode A command generation processing unit 226 and other control command generation processing unit 227 are provided.

UI処理部221は、『コード画像最適化モード』を設定する。ここで、コード画像最適化モードは、アプリケーションにより作成される文書に含まれるコード画像の読取精度を向上させるために設定されるモードである。なお、コード画像は、コード情報を含む画像であって、バーコード等の一次元コードやQRコード等の二次元コードが含まれる。そして、コード画像最適化モードは、入力装置30を介して受け付けた使用者の指示により設定される。   The UI processing unit 221 sets “code image optimization mode”. Here, the code image optimization mode is a mode set to improve the reading accuracy of the code image included in the document created by the application. The code image is an image including code information, and includes a one-dimensional code such as a barcode and a two-dimensional code such as a QR code. The code image optimization mode is set in accordance with a user instruction received via the input device 30.

イメージ判定部222は、アプリケーション21から送られてきた文書を構成する各種オブジェクトが、イメージオブジェクトであるか否かを判定する。また、イメージ判定部222は、オブジェクトがイメージオブジェクトであると判定した場合に、コード画像最適化モードが設定されていれば、さらに、そのオブジェクトを一般的なイメージオブジェクトとして処理するか、コード画像として処理するかを決定する。付言すると、コード画像最適化モードが設定されていれば、イメージ判定部222は、文書を構成する各種オブジェクトからコード画像を検出する処理を行う。一方、コード画像最適化モードが設定されていなければ、イメージ判定部222は、文書を構成する各種オブジェクトからコード画像を検出する処理を行わない。   The image determination unit 222 determines whether or not various objects constituting the document sent from the application 21 are image objects. If the code image optimization mode is set when the image determination unit 222 determines that the object is an image object, the image determination unit 222 further processes the object as a general image object or generates a code image. Decide what to process. In other words, if the code image optimization mode is set, the image determination unit 222 performs a process of detecting a code image from various objects constituting the document. On the other hand, if the code image optimization mode is not set, the image determination unit 222 does not perform processing for detecting a code image from various objects constituting the document.

また、イメージ判定部222の決定により、オブジェクトが一般的なイメージオブジェクトとして処理される場合、後述するように、ハーフトーン処理部223によりハーフトーン処理が行われる。一方、イメージ判定部222の決定により、オブジェクトがコード画像として処理される場合、ハーフトーン処理は行われず、後述するように、バーコード文字列変換処理部225によりバーコード文字列変換処理が行われる。   Further, when the object is processed as a general image object by the determination of the image determination unit 222, halftone processing is performed by the halftone processing unit 223, as will be described later. On the other hand, when the object is processed as a code image by the determination of the image determination unit 222, the halftone process is not performed and the barcode character string conversion process is performed by the barcode character string conversion processing unit 225 as described later. .

ハーフトーン処理部223は、入力されてくるデータにハーフトーン処理を施す。ここで、コード画像最適化モードが設定されている場合、ハーフトーン処理部223は、イメージ判定部222により一般的なイメージオブジェクトとして処理することが決定されたイメージオブジェクトについて、ハーフトーン処理を施す。一方、コード画像最適化モードが設定されていない場合には、ハーフトーン処理部223は、イメージ判定部222によりイメージオブジェクトと判定されたもの全てについて、ハーフトーン処理を施す。
なお、ハーフトーン処理部223が実行するハーフトーン処理としては、濃度パターン法、ディザ法あるいは誤差拡散法など、各種処理法など、公知の手法のいずれかを用いるものであればよい。
The halftone processing unit 223 performs halftone processing on the input data. Here, when the code image optimization mode is set, the halftone processing unit 223 performs halftone processing on the image object determined to be processed as a general image object by the image determination unit 222. On the other hand, when the code image optimization mode is not set, the halftone processing unit 223 performs halftone processing on all the objects determined by the image determination unit 222 as image objects.
Note that the halftone processing executed by the halftone processing unit 223 may be any method using a known method such as various processing methods such as a density pattern method, a dither method, or an error diffusion method.

イメージコマンド生成処理部224は、ハーフトーン処理部223によりハーフトーン処理が施されたデータを、印刷装置100が解釈可能な制御コマンド(PDL)に変換する。ここで、イメージコマンド生成処理部224は、制御コマンドのコマンド種類をイメージ形式にして、オブジェクトがイメージオブジェクトであることを印刷装置100にて解釈できるように制御コマンド(印刷データ)を生成する。この制御コマンドには、イメージオブジェクトにおける画像を表すビット列も含まれている。   The image command generation processing unit 224 converts the data subjected to the halftone processing by the halftone processing unit 223 into a control command (PDL) that can be interpreted by the printing apparatus 100. Here, the image command generation processing unit 224 converts the command type of the control command into an image format, and generates a control command (print data) so that the printing apparatus 100 can interpret that the object is an image object. This control command includes a bit string representing an image in the image object.

バーコード文字列変換処理部225は、イメージ判定部222によりコード画像として処理されることが決定されたイメージオブジェクトについて、バーコード文字列変換処理を行う。バーコード文字列変換処理は、イメージオブジェクトをコード画像と捉えて、文字列や数値のデータに変換する処理である。   The barcode character string conversion processing unit 225 performs barcode character string conversion processing on the image object that is determined to be processed as a code image by the image determination unit 222. The bar code character string conversion process is a process of regarding an image object as a code image and converting it into a character string or numerical data.

バーコードコマンド生成処理部226は、バーコード文字列変換処理部225によりバーコード文字列変換処理が施されたデータを、印刷装置100が解釈可能な制御コマンド(PDL)に変換する。ここで、バーコードコマンド生成処理部226は、制御コマンドのコマンド種類をバーコード形式にして、オブジェクトがコード画像であることを示す制御コマンド(印刷データ)を生成する。付言すると、この制御コマンドは、オブジェクトがコード画像であることを印刷装置100にて解釈できるように生成される。   The barcode command generation processing unit 226 converts the data subjected to the barcode character string conversion processing by the barcode character string conversion processing unit 225 into a control command (PDL) that can be interpreted by the printing apparatus 100. Here, the barcode command generation processing unit 226 generates a control command (print data) indicating that the object is a code image by changing the command type of the control command to a barcode format. In addition, this control command is generated so that the printing apparatus 100 can interpret that the object is a code image.

その他制御コマンド生成処理部227は、アプリケーション21から送られてきた文書を構成する各種オブジェクトのうち、イメージオブジェクト以外のオブジェクト(即ち、図形オブジェクトや文字オブジェクト)について、印刷装置100が解釈可能な制御コマンド(PDL)に変換する。ここで、その他制御コマンド生成処理部227は、制御コマンドのコマンド種類を、イメージ形式やバーコード形式ではない、その他の形式(例えば、文字形式、図形形式)にして、制御コマンドを生成する。   The other control command generation processing unit 227 is a control command that can be interpreted by the printing apparatus 100 for an object other than an image object (that is, a graphic object or a character object) among various objects constituting the document sent from the application 21. (PDL). Here, the other control command generation processing unit 227 generates a control command by setting the command type of the control command to another format (for example, a character format or a graphic format) other than the image format or the barcode format.

ここで、本実施の形態では、UI処理部221が、設定手段の一例としての機能を有している。また、イメージ判定部222が、取得手段の一例としての機能を有している。さらに、イメージ判定部222は、検出手段の一例としての機能も有している。そして、ハーフトーン処理部223、イメージコマンド生成処理部224、バーコード文字列変換処理部225及びバーコードコマンド生成処理部226が、生成手段の一例として機能している。また、スプーラ23及び言語モニタ24が、出力手段の一例としての機能を有している。   Here, in the present embodiment, the UI processing unit 221 has a function as an example of a setting unit. Further, the image determination unit 222 has a function as an example of an acquisition unit. Furthermore, the image determination unit 222 also has a function as an example of a detection unit. The halftone processing unit 223, the image command generation processing unit 224, the barcode character string conversion processing unit 225, and the barcode command generation processing unit 226 function as an example of a generation unit. Further, the spooler 23 and the language monitor 24 have functions as an example of output means.

他方、印刷装置100は、トナーを用いて画像を形成するものであってもよいし、インクを用いて画像を形成するものであってもよい。また、印刷装置100は、単色(モノクロ)の画像を形成するものであってもよいし、複数色(カラー)の画像を形成するものであってもよい。   On the other hand, the printing apparatus 100 may form an image using toner or may form an image using ink. The printing apparatus 100 may form a single color (monochrome) image, or may form a plurality of colors (color).

<コンピュータ装置のハードウェア構成>
次に、コンピュータ装置20のハードウェア構成について説明する。図2は、コンピュータ装置20のハードウェア構成例を示すブロック図である。
<Hardware configuration of computer device>
Next, the hardware configuration of the computer apparatus 20 will be described. FIG. 2 is a block diagram illustrating a hardware configuration example of the computer apparatus 20.

コンピュータ装置20は、例えばパーソナルコンピュータ等により実現される。そして、コンピュータ装置20は、演算手段であるCPU(Central Processing Unit)201と、記憶手段であるメインメモリ202及びHDD(Hard Disk Drive)203とを備える。ここで、CPU201は、OS(Operating System)やアプリケーション21等の各種プログラムを実行する。また、メインメモリ202は、各種プログラムやその実行に用いるデータ等を記憶する記憶領域である。さらに、HDD203は、各種プログラムに対する入力データや各種プログラムからの出力データ等を記憶する記憶領域である。さらに、コンピュータ装置20は、入力装置30、表示装置40及び印刷装置100との通信を行うための通信インタフェース(以下、「通信I/F」と表記する)204を備えている。   The computer device 20 is realized by, for example, a personal computer. The computer device 20 includes a CPU (Central Processing Unit) 201 which is a calculation means, a main memory 202 and a HDD (Hard Disk Drive) 203 which are storage means. Here, the CPU 201 executes various programs such as an OS (Operating System) and the application 21. The main memory 202 is a storage area for storing various programs and data used for execution thereof. The HDD 203 is a storage area for storing input data for various programs, output data from the various programs, and the like. Further, the computer device 20 includes a communication interface (hereinafter referred to as “communication I / F”) 204 for performing communication with the input device 30, the display device 40, and the printing device 100.

なお、図1に示すコンピュータ装置20を構成するアプリケーション21、プリンタドライバ22、スプーラ23及び言語モニタ24の機能は、ソフトウェアとハードウェア資源とが協働することにより実現される。すなわち、コンピュータ装置20に設けられたCPU201が、各部の機能を実現するプログラムを、例えばHDD203の記憶装置からメインメモリ202に読み込んで、これらの各機能を実現する。なお、プログラムは、例えば図示しないネットワークを介してコンピュータ装置20に提供することができる。ただし、これに限られるものではなく、例えばCD−ROM等の記録媒体に格納して提供することも可能である。   Note that the functions of the application 21, the printer driver 22, the spooler 23, and the language monitor 24 that constitute the computer device 20 shown in FIG. 1 are realized by cooperation of software and hardware resources. That is, the CPU 201 provided in the computer device 20 reads a program for realizing the functions of the respective units from, for example, the storage device of the HDD 203 into the main memory 202 to realize these functions. Note that the program can be provided to the computer device 20 via, for example, a network (not shown). However, the present invention is not limited to this. For example, the program can be provided by being stored in a recording medium such as a CD-ROM.

<印刷データの作成処理手順のフローチャート>
次に、コンピュータ装置20が印刷データを作成する手順について説明する。図3は、コンピュータ装置20による印刷データの作成処理手順の一例を示すフローチャートである。
<Flowchart of print data creation processing procedure>
Next, a procedure for creating print data by the computer device 20 will be described. FIG. 3 is a flowchart illustrating an example of a print data creation processing procedure by the computer apparatus 20.

まず、使用者により、アプリケーション21にて文書の作成が行われ、且つ、この文書の印刷指示が行われる。これに伴い、プリンタドライバ22のイメージ判定部222は、アプリケーション21から文書に対応するオブジェクトデータを受信する(ステップ101)。ここで、オブジェクトデータは、画像データの一例である。   First, a user creates a document using the application 21 and issues a print instruction for the document. Accordingly, the image determination unit 222 of the printer driver 22 receives object data corresponding to the document from the application 21 (step 101). Here, the object data is an example of image data.

すると、イメージ判定部222が、受信したオブジェクトデータを解析し、オブジェクトがイメージ形式であるか否か(イメージオブジェクトであるか否か)を判定する(ステップ102)。ステップ102において否定の判断(NO)を行った場合、その他制御コマンド生成処理部227は、そのオブジェクトについて、コマンド種類をイメージ形式やバーコード形式ではないその他の形式にして、印刷装置100が解釈可能な制御コマンド(PDL)に変換する(ステップ103)。そして、後述するステップ112へ移行する。   Then, the image determination unit 222 analyzes the received object data and determines whether the object is in an image format (whether it is an image object) (step 102). When a negative determination (NO) is made in step 102, the other control command generation processing unit 227 can interpret the object by changing the command type to another format other than the image format or the barcode format, and can be interpreted by the printing apparatus 100. Is converted into a control command (PDL) (step 103). And it transfers to step 112 mentioned later.

一方、ステップ102において肯定の判断(YES)を行った場合、UI処理部221は、使用者によりコード画像最適化モードに設定されているか否かを判定する(ステップ104)。ステップ104において否定の判断(NO)を行った場合、ハーフトーン処理部223は、このオブジェクトに対してハーフトーン処理を施す(ステップ105)。次に、イメージコマンド生成処理部224は、ハーフトーン処理が施されたデータについて、コマンド種類をイメージ形式にして、印刷装置100が解釈可能な制御コマンド(PDL)に変換する(ステップ106)。そして、後述するステップ112へ移行する。   On the other hand, if an affirmative determination (YES) is made in step 102, the UI processing unit 221 determines whether or not the code image optimization mode is set by the user (step 104). If a negative determination (NO) is made in step 104, the halftone processing unit 223 performs halftone processing on this object (step 105). Next, the image command generation processing unit 224 converts the data subjected to the halftone processing into a control command (PDL) that can be interpreted by the printing apparatus 100 by converting the command type into an image format (step 106). And it transfers to step 112 mentioned later.

一方、ステップ104において肯定の判断(YES)を行った場合、イメージ判定部222は、このオブジェクトを構成する画像の解析を行い、その形状が正方形または横長長方形であるか否かを判定する(ステップ107)。ステップ107において否定の判断(NO)を行った場合、このオブジェクトは一般的なイメージオブジェクトとして処理されることとなり、ステップ105へ移行する。   On the other hand, if an affirmative determination (YES) is made in step 104, the image determination unit 222 analyzes the image constituting this object, and determines whether or not the shape is a square or a horizontally long rectangle (step). 107). If a negative determination (NO) is made in step 107, the object is processed as a general image object, and the process proceeds to step 105.

これに対し、ステップ107において肯定の判断(YES)を行った場合、イメージ判定部222は、正方形または横長長方形と判定した画像において、その短辺が4cm未満であるか否かを判定する(ステップ108)。ここで、画像が正方形と判定された場合には全ての辺の長さが同じであるため、1辺が4cm未満であるか否かの判定が行われる。ステップ108において否定の判断(NO)を行った場合、このオブジェクトは一般的なイメージオブジェクトとして処理されることとなり、ステップ105へ移行する。   On the other hand, if a positive determination (YES) is made in step 107, the image determination unit 222 determines whether or not the short side of the image determined to be a square or a horizontally long rectangle is less than 4 cm (step). 108). Here, when the image is determined to be a square, since all the sides have the same length, it is determined whether or not one side is less than 4 cm. If a negative determination (NO) is made in step 108, the object is processed as a general image object, and the process proceeds to step 105.

また、ステップ108において肯定の判断(YES)を行った場合、イメージ判定部222は、正方形または横長長方形であってその短辺が4cm未満と判定された画像のデータに関し、縦方向に連続性があるか否かを判定する(ステップ109)。ステップ109において否定の判断(NO)を行った場合、このオブジェクトは一般的なイメージオブジェクトとして処理されることとなり、ステップ105へ移行する。   If the determination in step 108 is affirmative (YES), the image determination unit 222 has continuity in the vertical direction for image data that is a square or a horizontally long rectangle and whose short side is determined to be less than 4 cm. It is determined whether or not there is (step 109). If a negative determination (NO) is made in step 109, the object is processed as a general image object, and the process proceeds to step 105.

これに対し、ステップ109において肯定の判断(YES)を行った場合、このオブジェクトは、コード画像として処理されることとなる。そして、バーコード文字列変換処理部225は、このオブジェクトに対してバーコード文字列変換処理を施し、文字列や数値のデータに変換する(ステップ110)。次に、バーコードコマンド生成処理部226は、バーコード文字列変換処理が施されたデータについて、コマンド種類をバーコード形式にして、印刷装置100が解釈可能な制御コマンド(PDL)に変換する(ステップ111)。そして、後述するステップ112へ移行する。   On the other hand, if a positive determination (YES) is made in step 109, this object is processed as a code image. Then, the barcode character string conversion processing unit 225 performs barcode character string conversion processing on this object, and converts it into character string or numerical data (step 110). Next, the barcode command generation processing unit 226 converts the data subjected to the barcode character string conversion processing into a control command (PDL) that can be interpreted by the printing apparatus 100 by converting the command type into a barcode format ( Step 111). And it transfers to step 112 mentioned later.

なお、ステップ107〜109は、オブジェクトを構成する画像がコード画像であるか否かを判定するための手順となっている。ここで、ステップ107は、バーコードやQRコード等が、一般的に矩形状を呈していることに基づいて決められた条件である。また、ステップ108は、バーコードやQRコード等の短辺側が、一般的に4cm未満となっていることに基づいて決められた条件である。ただし、ステップ108に示す条件はバーコードやQRコード等の仕様に基づいて定めれば良いため、短辺が4cm未満とする構成に限られるものではなく、5cm未満など、値を変更しても良い。さらに、ステップ109は、バーコードやQRコード等は、一般的に縦方向に連続性を有していることに基づいて決められたものである。なお、ステップ109における縦方向の連続性の判定手法については後述する。   Steps 107 to 109 are procedures for determining whether or not the image constituting the object is a code image. Here, step 107 is a condition determined based on the fact that the barcode, QR code, etc. are generally rectangular. Step 108 is a condition determined based on the fact that the short side of a barcode, QR code or the like is generally less than 4 cm. However, since the condition shown in step 108 may be determined based on specifications such as a barcode and a QR code, it is not limited to the configuration in which the short side is less than 4 cm, and even if the value is changed, such as less than 5 cm. good. Further, step 109 is determined based on the fact that bar codes, QR codes, and the like are generally continuous in the vertical direction. The vertical continuity determination method in step 109 will be described later.

そして、ステップ103、ステップ106、またはステップ111にて得られた制御コマンド(PDL)は、印刷データとして、スプーラ23及び言語モニタ24を介して印刷装置100に出力される(ステップ112)。そして、本処理フローは終了する。   The control command (PDL) obtained in step 103, step 106, or step 111 is output as print data to the printing apparatus 100 via the spooler 23 and the language monitor 24 (step 112). Then, this processing flow ends.

なお、制御コマンド(PDL)を受け取った印刷装置100は、制御コマンド(PDL)を解釈して、記録材上に画像の印刷を行う。
ここで、印刷装置100は、制御コマンドを受け取ると、受け取った制御コマンドのコマンド種類に応じた処理を行う。具体的には、受け取った制御コマンドのコマンド種類がイメージ形式であれば、印刷装置100は、制御コマンドに基づいて写真画像を描画する処理を行う。また、受け取った制御コマンドのコマンド種類がバーコード形式であれば、印刷装置100は、制御コマンドに基づいてバーコードやQRコード等(即ち、コード画像)を描画する処理を行う。さらに、受け取った制御コマンドのコマンド種類がイメージ形式でもバーコード形式でもなければ、印刷装置100は、制御コマンドに基づいてその他の描画処理、即ち、図形や文字を描画する処理を行う。そして、印刷装置100は、描画したデータを合成して、合成したデータを記録材上に印刷する。
Upon receiving the control command (PDL), the printing apparatus 100 interprets the control command (PDL) and prints an image on the recording material.
Here, when receiving the control command, the printing apparatus 100 performs processing according to the command type of the received control command. Specifically, if the command type of the received control command is an image format, the printing apparatus 100 performs a process of drawing a photographic image based on the control command. If the command type of the received control command is a barcode format, the printing apparatus 100 performs a process of drawing a barcode, a QR code, etc. (that is, a code image) based on the control command. Further, if the command type of the received control command is neither an image format nor a barcode format, the printing apparatus 100 performs other drawing processing, that is, processing for drawing a graphic or a character based on the control command. The printing apparatus 100 combines the drawn data and prints the combined data on a recording material.

次に、上述した印刷データの作成処理手順について、具体例を挙げながら説明を行う。   Next, the above-described print data creation processing procedure will be described with specific examples.

<印刷対象となる文書の例>
図4は、印刷対象となる文書(オブジェクトデータ)60の一例を示す図である。なお、ここでは、A4サイズ縦長の用紙に画像を印刷する場合を例とする。
<Example of document to be printed>
FIG. 4 is a diagram illustrating an example of a document (object data) 60 to be printed. Here, the case where an image is printed on A4 size vertically long paper is taken as an example.

図4に示す文書60は、写真画像61と、文字画像62と、図形画像63と、コード画像64とを含んでいる。
ここで、写真画像61は、濃淡を有する画像で構成されたイメージオブジェクトである。付言すると、写真画像61は、多値(例えば256階調)の階調画像で中間色が用いられている画像(即ち、多階調において3つ以上の色が用いられた画像)を示す。また、写真画像61には、例えば、カメラ等で記録された写真のほかに、イラストレーション等も含まれる。本実施の形態では、濃淡画像の一例として、写真画像61が用いられる。
また、文字画像62は文字オブジェクトであり、図形画像63は図形オブジェクトである。
さらに、コード画像64は、2値の階調画像で構成されたイメージオブジェクトである。また、コード画像64には、多値の階調画像であっても、濃淡がなく、多階調において2つの色のみが用いられている画像も含まれる。なお、この例において、コード画像64は、QRコードで構成されているものとする。
A document 60 shown in FIG. 4 includes a photographic image 61, a character image 62, a graphic image 63, and a code image 64.
Here, the photographic image 61 is an image object composed of images having light and shade. In addition, the photographic image 61 represents an image in which intermediate colors are used in a multi-value (for example, 256 gradation) gradation image (that is, an image in which three or more colors are used in multiple gradations). The photographic image 61 includes, for example, illustrations in addition to photographs recorded by a camera or the like. In the present embodiment, a photographic image 61 is used as an example of a grayscale image.
The character image 62 is a character object, and the graphic image 63 is a graphic object.
Furthermore, the code image 64 is an image object composed of a binary gradation image. In addition, the code image 64 includes an image that has no shading and uses only two colors in the multi-gradation even if it is a multi-value gradation image. In this example, it is assumed that the code image 64 is composed of a QR code.

<印刷データの作成処理手順のシーケンスチャート>
図5は、図4に示す文書60に基づく印刷データの作成処理手順の一例を説明するためのシーケンスチャートである。なお、ここでは、使用者により、コード画像最適化モードが設定されている場合を例とする。
<Sequence chart of print data creation process>
FIG. 5 is a sequence chart for explaining an example of a print data creation processing procedure based on the document 60 shown in FIG. Here, a case where the code image optimization mode is set by the user is taken as an example.

この例では、まず、文書60のうちの写真画像61(イメージオブジェクト)が、アプリケーション21からプリンタドライバ22に送られてくる。そして、アプリケーション21では、イメージオブジェクトではあるもののコード画像とは判定されない写真画像61にハーフトーン処理を施し、コマンド種類がイメージ形式である制御コマンド(PDL)に変換して印刷装置100に向けて出力を行う。   In this example, first, a photographic image 61 (image object) in the document 60 is sent from the application 21 to the printer driver 22. Then, the application 21 performs a halftone process on the photographic image 61 that is an image object but is not determined to be a code image, converts it to a control command (PDL) whose command type is an image format, and outputs it to the printing apparatus 100. I do.

また、この例では、次に、文書60のうちの文字画像62(文字オブジェクト)が、アプリケーション21からプリンタドライバ22に送られてくる。そして、プリンタドライバ22では、イメージオブジェクトとは判定されない文字画像62にハーフトーン処理を施すことなく、コマンド種類がイメージ形式やバーコード形式ではないその他の形式である制御コマンド(PDL)に変換して印刷装置100に向けて出力を行う。   In this example, the character image 62 (character object) of the document 60 is then sent from the application 21 to the printer driver 22. The printer driver 22 converts the command type into a control command (PDL) having a command type other than the image format or the barcode format without performing halftone processing on the character image 62 that is not determined to be an image object. Output to the printing apparatus 100.

さらに、この例では、続いて、文書60のうちの図形画像63(図形オブジェクト)が、アプリケーション21からプリンタドライバ22に送られてくる。そして、プリンタドライバ22では、イメージオブジェクトとは判定されない図形画像63にハーフトーン処理を施すことなく、コマンド種類がイメージ形式やバーコード形式ではないその他の形式である制御コマンド(PDL)に変換して印刷装置100に向けて出力を行う。   Further, in this example, the graphic image 63 (graphic object) of the document 60 is subsequently sent from the application 21 to the printer driver 22. Then, the printer driver 22 converts the command type into a control command (PDL) having a command type other than the image format or the barcode format without performing a halftone process on the graphic image 63 that is not determined to be an image object. Output to the printing apparatus 100.

さらにまた、この例では、最後に、文書60のうちのコード画像64(イメージオブジェクト)が、アプリケーション21からプリンタドライバ22に送られてくる。そして、プリンタドライバ22では、イメージオブジェクトであってQRコードと判定されるコード画像64にハーフトーン処理を施さずに、バーコード文字列変換処理を実行する。そして、プリンタドライバ22は、バーコード文字列変換処理が施されたデータについて、コマンド種類がバーコード形式である制御コマンド(PDL)に変換して印刷装置100に向けて出力を行う。   Furthermore, in this example, finally, a code image 64 (image object) of the document 60 is sent from the application 21 to the printer driver 22. The printer driver 22 executes the barcode character string conversion process without performing the halftone process on the code image 64 that is an image object and is determined to be a QR code. Then, the printer driver 22 converts the data subjected to the barcode character string conversion processing into a control command (PDL) whose command type is a barcode format, and outputs the data to the printing apparatus 100.

そして、制御コマンド(PDL)を受け取った印刷装置100は、それぞれの制御コマンド(PDL)を解釈して、記録材上に画像の印刷を行う。   Upon receiving the control command (PDL), the printing apparatus 100 interprets each control command (PDL) and prints an image on the recording material.

<連続性の判定手法>
図6(a)〜(c)は、図3に示すステップ109における判定手法を説明するための図である。ここで、図6(a)はQRコードからなるコード画像64の場合を、図6(b)はバーコードからなる他のコード画像65の場合を、図6(c)は写真画像61の場合を、それぞれ例示している。なお、図6(a)〜(c)において、図中左側は各画像の全体構成を、図中右側は各画像の要部構成を、それぞれ示している。
<Continuity judgment method>
6A to 6C are diagrams for explaining the determination method in step 109 shown in FIG. Here, FIG. 6A shows the case of a code image 64 made up of a QR code, FIG. 6B shows the case of another code image 65 made up of a barcode, and FIG. 6C shows the case of a photographic image 61. Are illustrated respectively. 6A to 6C, the left side in the figure shows the overall configuration of each image, and the right side in the figure shows the main part configuration of each image.

ここで、図6(a)に示すコード画像64(QRコード)や図6(b)に示す他のコード画像65(バーコード)では、塗りつぶされる部位が、縦方向に同じ階調にて連続するようになっている。付言すると、一般にQRコードでは左上隅や左下隅、右上隅などにQRコードを示す一定のパターンが存在している。そして、図6(a)に示す例では、図中左側の左上隅の部位を画像解析することにより、図中右側に示すように、横一列の予め定められた数のドットのパターンが、縦方向に一定数連続していることが確認される。また、バーコードの場合は線の太さによってコードが示されており、図6(b)に示す例では、図中左側の左上隅の部位を画像解析することにより、図中右側に示すように、横一列の予め定められた数のドットのパターンが、縦方向に一定数連続していることが確認される。   Here, in the code image 64 (QR code) shown in FIG. 6 (a) and the other code image 65 (bar code) shown in FIG. 6 (b), the parts to be filled are continuous in the same gradation in the vertical direction. It is supposed to be. In addition, in the QR code, there is generally a certain pattern indicating the QR code at the upper left corner, the lower left corner, the upper right corner, or the like. In the example shown in FIG. 6A, by analyzing the image of the upper left corner on the left side in the figure, a pattern of a predetermined number of dots in a horizontal row becomes a vertical line as shown on the right side in the figure. It is confirmed that a certain number of continuous in the direction. In the case of a bar code, the code is indicated by the thickness of the line. In the example shown in FIG. 6B, by analyzing the image of the upper left corner on the left side in the figure, as shown on the right side in the figure. In addition, it is confirmed that a predetermined number of patterns of a predetermined number of dots in a horizontal row are continuous in a vertical direction.

これに対し、図6(c)に示す写真画像61では、塗りつぶされる部位が、縦方向に異なる階調にて連続するようになっている。そこで、図6(a)、(b)に示したような画像の場合には、図3に示すステップ109において、肯定の判断(YES)が行われる。一方、図6(c)に示したような画像の場合には、図3に示すステップ109において、否定の判断(NO)が行われる。   On the other hand, in the photographic image 61 shown in FIG. 6C, the parts to be filled are continuous with different gradations in the vertical direction. Therefore, in the case of the images as shown in FIGS. 6A and 6B, a positive determination (YES) is made in step 109 shown in FIG. On the other hand, in the case of an image as shown in FIG. 6C, a negative determination (NO) is made in step 109 shown in FIG.

<バーコード形式の制御コマンドの例>
図7(a)、(b)は、バーコード形式の制御コマンドの一例を示す図である。ここで、図7(a)は、QRコードからなるコード画像64に関する制御コマンドの場合を、図7(b)は、バーコードからなる他のコード画像65に関する制御コマンドの場合を、それぞれ例示している。即ち、図7(a)は、図6(a)に示すコード画像64に基づいて生成される制御コマンドのイメージ図を示し、図7(b)は、図6(b)に示す他のコード画像65に基づいて生成される制御コマンドのイメージ図を示している。
<Example of control command in bar code format>
FIGS. 7A and 7B are diagrams illustrating an example of a control command in the barcode format. Here, FIG. 7A illustrates the case of a control command related to a code image 64 composed of a QR code, and FIG. 7B illustrates the case of a control command related to another code image 65 composed of a barcode. ing. 7A shows an image diagram of a control command generated based on the code image 64 shown in FIG. 6A, and FIG. 7B shows another code image shown in FIG. 6B. FIG. 6 shows an image diagram of a control command generated based on 65. FIG.

ここで、図6(a)に示すコード画像64(QRコード)について、バーコード文字列変換処理部225は、バーコード文字列変換処理を行って文字列や数字に変換する。また、バーコードコマンド生成処理部226は、バーコード文字列変換処理が施されたデータについて、制御コマンドへの変換を行う。これにより、図7(a)に示す各種情報が含まれる制御コマンドが生成される。図7(a)に示す例では、制御コマンドに含まれる情報として、コマンド種類が「バーコード(バーコード形式)」であること、バーコード種類が「QRコード」であることが示されている。他に、QRコードのバージョンが「5」であること、サイズが「4」であること、解像度が「600dpi(dots per inch)」であることが示されている。さらに、元データは「123456789」であることが示されており、この元データをもとにして作成されたQRコードがコード画像64であるといえる。   Here, for the code image 64 (QR code) shown in FIG. 6A, the barcode character string conversion processing unit 225 performs a barcode character string conversion process to convert it into a character string or a number. In addition, the barcode command generation processing unit 226 converts the data subjected to the barcode character string conversion processing into a control command. Thereby, a control command including various information shown in FIG. 7A is generated. In the example shown in FIG. 7A, the information included in the control command indicates that the command type is “bar code (bar code format)” and the bar code type is “QR code”. . In addition, the QR code version is “5”, the size is “4”, and the resolution is “600 dpi (dots per inch)”. Furthermore, it is indicated that the original data is “123456789”, and it can be said that the QR code created based on this original data is the code image 64.

付言すると、図7(a)に示す情報はコード画像64に含まれており、バーコード文字列変換処理部225は、コード画像64を読み取って、図7(a)の情報を示す文字列や数値を生成する。そして、バーコードコマンド生成処理部226は、生成された文字列や数値をもとにして、図7(a)の情報が含まれる制御コマンドを生成する。   In addition, the information shown in FIG. 7A is included in the code image 64, and the bar code character string conversion processing unit 225 reads the code image 64 to read the character string indicating the information shown in FIG. Generate numbers. Then, the barcode command generation processing unit 226 generates a control command including the information of FIG. 7A based on the generated character string and numerical value.

また、図6(b)に示す他のコード画像65(バーコード)について、バーコード文字列変換処理部225は、バーコード文字列変換処理を行って文字列や数字に変換する。また、バーコードコマンド生成処理部226は、バーコード文字列変換処理が施されたデータについて、制御コマンドへの変換を行う。これにより、図7(b)に示す各種情報が含まれる制御コマンドが生成される。図7(b)に示す例では、制御コマンドに含まれる情報として、コマンド種類が「バーコード(バーコード形式)」であること、バーコード種類が「JANコード(Japanese Article Numberコード)」であることが示されている。他に、付加文字がないこと、バーコードの幅、高さが「10」、「100」であること、解像度が「600dpi(dots per inch)」であることが示されている。さらに、元データは「123123123」であることが示されており、この元データをもとにして作成されたバーコードが他のコード画像65であるといえる。   For the other code image 65 (barcode) shown in FIG. 6B, the barcode character string conversion processing unit 225 performs a barcode character string conversion process to convert it into a character string or a number. In addition, the barcode command generation processing unit 226 converts the data subjected to the barcode character string conversion processing into a control command. Thereby, a control command including various information shown in FIG. 7B is generated. In the example shown in FIG. 7B, as information included in the control command, the command type is “bar code (bar code format)”, and the bar code type is “JAN code (Japanese Article Number code)”. It has been shown. In addition, there are no additional characters, the width and height of the barcode are “10” and “100”, and the resolution is “600 dpi (dots per inch)”. Furthermore, it is indicated that the original data is “123123123”, and it can be said that the barcode created based on the original data is the other code image 65.

付言すると、図7(b)に示す情報は他のコード画像65に含まれており、バーコード文字列変換処理部225は、他のコード画像65を読み取って、図7(b)の情報を示す文字列や数値を生成する。そして、バーコードコマンド生成処理部226は、生成された文字列や数値をもとにして、図7(b)の情報が含まれる制御コマンドを生成する。   In other words, the information shown in FIG. 7B is included in another code image 65, and the bar code character string conversion processing unit 225 reads the other code image 65 and converts the information shown in FIG. Generates a string or numeric value to indicate. Then, the barcode command generation processing unit 226 generates a control command including the information of FIG. 7B based on the generated character string and numerical value.

<各種画像とハーフトーン処理との関係>
図8(a)、(b)は、写真画像61とハーフトーン処理との関係を説明するための図である。ここで、図8(a)はハーフトーン処理が施された写真画像61を、図8(b)はハーフトーン処理が施されていない写真画像61を、それぞれ示している。
<Relationship between various images and halftone processing>
FIGS. 8A and 8B are diagrams for explaining the relationship between the photographic image 61 and the halftone process. Here, FIG. 8A shows a photographic image 61 that has been subjected to halftone processing, and FIG. 8B shows a photographic image 61 that has not been subjected to halftone processing.

また、図9(a)、(b)は、コード画像64とハーフトーン処理との関係を説明するための図である。ここで、図9(a)はハーフトーン処理が施されたコード画像64を、図9(b)はハーフトーン処理が施されていないコード画像64を、それぞれ示している。ただし、図9(a)、(b)は、コード画像64の要部を拡大したものとなっている。   FIGS. 9A and 9B are diagrams for explaining the relationship between the code image 64 and the halftone process. Here, FIG. 9A shows a code image 64 that has been subjected to halftone processing, and FIG. 9B shows a code image 64 that has not been subjected to halftone processing. However, FIGS. 9A and 9B are enlarged views of the main part of the code image 64.

ここで、文書60においてイメージオブジェクトを構成する写真画像61及びコード画像64の両者にハーフトーン処理を施した場合について考えてみる。この場合は、印刷により得られる写真画像61が図8(a)に示すものとなり、また、印刷により得られるコード画像64が図9(a)に示すものとなる。すると、写真画像61の品質は良好なものとなる一方、コード画像64については、画像にぼやけが生じる分、その読取精度が低下してしまうことになる。   Here, consider a case where halftone processing is performed on both the photographic image 61 and the code image 64 constituting the image object in the document 60. In this case, a photographic image 61 obtained by printing is shown in FIG. 8A, and a code image 64 obtained by printing is shown in FIG. 9A. Then, while the quality of the photographic image 61 is good, the reading accuracy of the code image 64 is lowered because the image is blurred.

次に、文書60においてイメージオブジェクトを構成する写真画像61及びコード画像64の両者にハーフトーン処理を施さない場合について考えてみる。この場合は、印刷により得られる写真画像61が図8(b)に示すものとなり、また、印刷により得られるコード画像64が図9(b)に示すものとなる。すると、コード画像64の読取精度は良好なものとなる一方、写真画像61については、画像が2値で表現される分、その品質が低下してしまうことになる。   Next, consider a case where the halftone process is not performed on both the photographic image 61 and the code image 64 constituting the image object in the document 60. In this case, the photographic image 61 obtained by printing is as shown in FIG. 8B, and the code image 64 obtained by printing is as shown in FIG. 9B. Then, while the reading accuracy of the code image 64 is improved, the quality of the photographic image 61 is deteriorated as much as the image is expressed in binary.

これに対し、本実施の形態では、コード画像最適化モードが設定されている場合に、文書60においてイメージオブジェクトを構成する写真画像61及びコード画像64に関し、写真画像61にはハーフトーン処理を施すとともに、コード画像64にはハーフトーン処理を施さないようにした。そして、本実施の形態では、コード画像64について、プリンタドライバ22が文字列や数値に変換し、コード画像であることを示す制御コマンドを生成し、印刷装置100に出力する。そして、印刷装置100は、受け取った制御コマンドのコマンド種類に応じて、写真画像を描画したり、コード画像を描画したりする。この場合は、印刷により得られる写真画像61が図8(a)に示すものとなり、また、印刷により得られるコード画像64が図9(b)に示すものとなる。このような構成を用いることにより、写真画像61の品質が良好なものとなるとともに、コード画像64についても、その読取精度が良好なものとなる。   On the other hand, in the present embodiment, when the code image optimization mode is set, with respect to the photographic image 61 and the code image 64 constituting the image object in the document 60, the photographic image 61 is subjected to halftone processing. At the same time, the code image 64 is not subjected to halftone processing. In this embodiment, the printer driver 22 converts the code image 64 into a character string or a numerical value, generates a control command indicating that the code image is a code image, and outputs the control command to the printing apparatus 100. Then, the printing apparatus 100 draws a photographic image or a code image according to the command type of the received control command. In this case, a photographic image 61 obtained by printing is shown in FIG. 8A, and a code image 64 obtained by printing is shown in FIG. 9B. By using such a configuration, the quality of the photographic image 61 is improved and the reading accuracy of the code image 64 is also improved.

なお、本実施の形態では、使用者によりコード画像最適化モードが設定されていることを前提条件として、イメージオブジェクトにおけるコード画像64の判別を行うようにしていたが、これに限られるものではない。すなわち、常時イメージオブジェクトにおけるコード画像64の判別を行うようにしてもかまわない。   In the present embodiment, the code image 64 in the image object is determined on the assumption that the code image optimization mode is set by the user. However, the present invention is not limited to this. . That is, the code image 64 in the image object may always be discriminated.

また、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態には限定されない。本発明の精神及び範囲から逸脱することなく様々に変更したり代替態様を採用したりすることが可能なことは、当業者に明らかである。   Moreover, although this invention was demonstrated using embodiment, the technical scope of this invention is not limited to the said embodiment. It will be apparent to those skilled in the art that various modifications and alternative embodiments can be made without departing from the spirit and scope of the invention.

1…印刷システム、10…ホスト装置、20…コンピュータ装置、21…アプリケーション、22…プリンタドライバ、30…入力装置、40…表示装置、60…文書、61…写真画像、62…文字画像、63…図形画像、64…コード画像(QRコード)、65…他のコード画像(バーコード)、100…印刷装置、221…UI処理部、222…イメージ判定部、223…ハーフトーン処理部、224…イメージコマンド生成処理部、225…バーコード文字列変換処理部、226…バーコードコマンド生成処理部、227…その他制御コマンド生成処理部 DESCRIPTION OF SYMBOLS 1 ... Printing system, 10 ... Host device, 20 ... Computer device, 21 ... Application, 22 ... Printer driver, 30 ... Input device, 40 ... Display device, 60 ... Document, 61 ... Photo image, 62 ... Text image, 63 ... Graphic image, 64... Code image (QR code), 65. Other code image (bar code), 100... Printing device, 221... UI processing unit, 222. Command generation processing unit, 225... Bar code character string conversion processing unit, 226... Bar code command generation processing unit, 227.

Claims (6)

濃淡画像とコード画像とを含む画像データを取得する取得手段と、
前記取得手段により取得された前記画像データからコード画像を検出する検出手段と、
前記取得手段が取得した前記画像データのうち、前記濃淡画像にはハーフトーン処理を施して印刷データを生成し、前記検出手段により検出された前記コード画像にはハーフトーン処理を施さずにコード画像であることを示す印刷データを生成する生成手段と
を備える印刷指示装置。
An acquisition means for acquiring image data including a grayscale image and a code image;
Detecting means for detecting a code image from the image data acquired by the acquiring means;
Of the image data acquired by the acquisition unit, the grayscale image is subjected to halftone processing to generate print data, and the code image detected by the detection unit is not subjected to halftone processing. A print instructing device comprising: generating means for generating print data indicating that
前記取得手段は、前記濃淡画像及び前記コード画像がともにイメージオブジェクトに設定された前記画像データを取得し、
前記検出手段は、前記画像データにおいて前記イメージオブジェクトに設定されたデータから前記コード画像を検出すること
を特徴とする請求項1記載の印刷指示装置。
The acquisition means acquires the image data in which both the grayscale image and the code image are set in an image object,
The print instruction apparatus according to claim 1, wherein the detection unit detects the code image from data set in the image object in the image data.
前記生成手段は、前記濃淡画像に関する印刷データとして、印刷データを用いて記録材に画像を印刷する印刷装置にてイメージオブジェクトであることを解釈可能な制御コマンドを生成し、前記コード画像であることを示す印刷データとして、当該印刷装置にてコード画像であることを解釈可能な制御コマンドを生成すること
を特徴とする請求項1または2に記載の印刷指示装置。
The generation means generates a control command that can be interpreted as an image object in a printing apparatus that prints an image on a recording material using print data as print data relating to the grayscale image, and is the code image The print instruction apparatus according to claim 1, wherein a control command that can be interpreted as a code image by the printing apparatus is generated as print data indicating the print data.
使用者からの指示によって前記検出手段における前記コード画像の検出を実行しないように設定する設定手段をさらに備えること
を特徴とする請求項1乃至3のいずれか1項に記載の印刷指示装置。
The print instruction apparatus according to claim 1, further comprising a setting unit configured to set the detection unit so as not to detect the code image according to an instruction from a user.
濃淡画像とコード画像とを含む画像データを取得する取得手段と、当該取得手段により取得された当該画像データからコード画像を検出する検出手段と、当該取得手段が取得した当該画像データのうち、当該濃淡画像にはハーフトーン処理を施して印刷データを生成し、当該検出手段により検出された当該コード画像にはハーフトーン処理を施さずにコード画像であることを示す印刷データを生成する生成手段と、当該生成手段により生成された印刷データを出力する出力手段とを有する印刷指示装置と、
前記印刷指示装置から受け取った前記印刷データを用いて、記録材に画像を印刷する印刷装置と
を備える印刷システム。
Of the image data acquired by the acquisition unit, the acquisition unit that acquires image data including the grayscale image and the code image, the detection unit that detects the code image from the image data acquired by the acquisition unit, Generation means for generating print data by performing halftone processing on the grayscale image, and generating print data indicating that the code image detected by the detection means is a code image without being subjected to halftone processing; A print instruction device having output means for outputting the print data generated by the generation means;
A printing system comprising: a printing device that prints an image on a recording material using the print data received from the print instruction device.
コンピュータに、
濃淡画像とコード画像とを含む画像データを取得する機能と、
取得した前記画像データからコード画像を検出する機能と、
取得した前記画像データのうち、前記濃淡画像にはハーフトーン処理を施して印刷データを生成し、検出した前記コード画像にはハーフトーン処理を施さずにコード画像であることを示す印刷データを生成する機能と
を実現させるプログラム。
On the computer,
A function for acquiring image data including a grayscale image and a code image;
A function of detecting a code image from the acquired image data;
Of the acquired image data, halftone processing is performed on the gray image to generate print data, and print data indicating that the detected code image is a code image without performing halftone processing is generated. Program that realizes the function to perform.
JP2015081157A 2015-04-10 2015-04-10 Printing instruction device, printing system and program Active JP6507809B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015081157A JP6507809B2 (en) 2015-04-10 2015-04-10 Printing instruction device, printing system and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015081157A JP6507809B2 (en) 2015-04-10 2015-04-10 Printing instruction device, printing system and program

Publications (2)

Publication Number Publication Date
JP2016200999A true JP2016200999A (en) 2016-12-01
JP6507809B2 JP6507809B2 (en) 2019-05-08

Family

ID=57423241

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015081157A Active JP6507809B2 (en) 2015-04-10 2015-04-10 Printing instruction device, printing system and program

Country Status (1)

Country Link
JP (1) JP6507809B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2016301696B2 (en) 2015-08-05 2020-10-01 Toho Chemical Industry Co., Ltd. Polycondensation product containing phenolic copolymer and dispersant for hydraulic composition containing the same

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010021596A (en) * 2008-06-10 2010-01-28 Canon Inc Image processing device, method of controlling the same, storage medium, and program
JP2012156697A (en) * 2011-01-25 2012-08-16 Canon Inc Image forming apparatus, control method thereof, and program
JP2013054492A (en) * 2011-09-02 2013-03-21 Seiko Epson Corp Control device, control method of control device, and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010021596A (en) * 2008-06-10 2010-01-28 Canon Inc Image processing device, method of controlling the same, storage medium, and program
JP2012156697A (en) * 2011-01-25 2012-08-16 Canon Inc Image forming apparatus, control method thereof, and program
JP2013054492A (en) * 2011-09-02 2013-03-21 Seiko Epson Corp Control device, control method of control device, and program

Also Published As

Publication number Publication date
JP6507809B2 (en) 2019-05-08

Similar Documents

Publication Publication Date Title
US20110075165A1 (en) Image processing system, image processing method and computer readable medium
JP4458176B2 (en) Printing control apparatus, printing apparatus, and program
JP5863001B2 (en) Image processing apparatus, image forming apparatus, and program
JP6447564B2 (en) Image forming apparatus, program, and information processing system
JP2008077160A (en) Image processing device, image processing method, image forming apparatus, computer-executable program, and recording medium storing the program
US9338310B2 (en) Image processing apparatus and computer-readable medium for determining pixel value of a target area and converting the pixel value to a specified value of a target image data
JP6120824B2 (en) Image processing apparatus, image processing method, and program
US10140558B2 (en) Print control system, print control apparatus, and program
JP6507809B2 (en) Printing instruction device, printing system and program
JP2019098580A (en) Image forming apparatus
JP4797766B2 (en) Image processing apparatus, image forming apparatus, and image processing method
US9355473B2 (en) Image forming apparatus having color conversion capability
JP2016133901A (en) Print instruction apparatus, printing system, and program
US8675246B2 (en) Image processing device and program
JP6372365B2 (en) Printing instruction apparatus, printing system, and program
US9978005B2 (en) Printer for drawing bold character, method for controlling the same, and storage medium
JP6612167B2 (en) Rasterization processing apparatus, rasterization processing method, and program
JP6145877B2 (en) Color mode determination apparatus and program
JP2020005117A (en) Image processing device and program
JP6413783B2 (en) Printing instruction apparatus, printing system, and program
JP2011228987A (en) Image processing apparatus and image processing program
US20140153055A1 (en) Image processing apparatus, image processing method, and storage medium
JP2007081886A (en) Drawing processing apparatus
US7916351B2 (en) Image processing apparatus and method, printer device, and computer readable recording medium
JP2010245672A (en) Image processing device, printing device, image processing method, and image processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180228

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180913

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181016

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181213

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190305

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190318

R150 Certificate of patent or registration of utility model

Ref document number: 6507809

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350