JP2014052884A - Image processor, image processing system and printing method - Google Patents

Image processor, image processing system and printing method Download PDF

Info

Publication number
JP2014052884A
JP2014052884A JP2012197521A JP2012197521A JP2014052884A JP 2014052884 A JP2014052884 A JP 2014052884A JP 2012197521 A JP2012197521 A JP 2012197521A JP 2012197521 A JP2012197521 A JP 2012197521A JP 2014052884 A JP2014052884 A JP 2014052884A
Authority
JP
Japan
Prior art keywords
image data
text
resolution
printer
logo
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
JP2012197521A
Other languages
Japanese (ja)
Other versions
JP2014052884A5 (en
JP6145978B2 (en
Inventor
Akio Takamoto
明男 高本
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2012197521A priority Critical patent/JP6145978B2/en
Priority to CN201310198531.1A priority patent/CN103516952B/en
Priority to EP13172202.7A priority patent/EP2677418B1/en
Priority to US13/922,906 priority patent/US9135534B2/en
Publication of JP2014052884A publication Critical patent/JP2014052884A/en
Publication of JP2014052884A5 publication Critical patent/JP2014052884A5/ja
Application granted granted Critical
Publication of JP6145978B2 publication Critical patent/JP6145978B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

PROBLEM TO BE SOLVED: To maintain printing quality of text without needing a change in an application even in the case of replacing to a printer having different resolution.SOLUTION: A printer driver 12 of this invention has an image data acquisition part 120 for acquiring first image data including information of text corresponding to the resolution of an old printer, a text analysis part 131 for analyzing the information of the text corresponding to the resolution of the old printer, and an image data generation part 160 for generating second image data including information of text corresponding to the resolution of a new printer 2 on the basis of an analysis result of the text analysis part 131.

Description

本発明は、プリンターの解像度に応じて、画像データの拡大/縮小処理を行う画像処理装置、画像処理システムおよび印刷方法に関する。   The present invention relates to an image processing apparatus, an image processing system, and a printing method for performing enlargement / reduction processing of image data in accordance with the resolution of a printer.

従来、解像度(画素数)の異なるプリンターに置き換えた場合の問題点を解決するための技術として、特許文献1が提案されている。当該特許文献1は、ホストから送信されたバーコードコード描画コマンドを解釈してイメージ展開する機能を備えたプリンターに関するものであり、オペレーターによりバーコードの拡大縮小率を入力可能とすることで、プリンターのエンジン特性、解像度、搬送方向等の違いによる、バーコードの縮みや間延びを防止するものである。   Conventionally, Patent Document 1 has been proposed as a technique for solving the problems in the case of replacement with a printer having a different resolution (number of pixels). Patent Document 1 relates to a printer having a function of interpreting a barcode code drawing command transmitted from a host and developing an image. By enabling an operator to input a barcode enlargement / reduction ratio, This prevents bar codes from shrinking or extending due to differences in engine characteristics, resolution, conveyance direction, and the like.

特開2003−251863号公報JP 2003-251863 A

ところで、解像度の異なるプリンターに置き換えた場合、バーコード画像だけでなく、テキストの印刷品質に影響を及ぼす場合がある。例えば、プリンターの置き換えにより、ホスト(アプリケーション)が想定している解像度と、プリンターの解像度とが異なる場合であって、ホストからテキスト印刷コマンドではなく、テキストの情報を含む画像データが送信される場合などである。このような場合、プリンタードライバーやプリンター内で、画像データの拡大/縮小処理が行われるため、画像が崩れてしまい、テキストの印刷品質が悪化してしまう。このような不具合を解決するため、プリンターの置き換えと共にアプリケーションを変更し、プリンターの解像度に見合った画像データを生成することが望ましいが、アプリケーションの変更には多額のコストを要するため、解決策として現実的ではない。   By the way, when the printer is replaced with a printer having a different resolution, the print quality of text as well as the barcode image may be affected. For example, when the resolution assumed by the host (application) differs from the resolution of the printer due to printer replacement, and image data including text information is sent from the host instead of a text print command Etc. In such a case, the image data is enlarged / reduced in the printer driver or the printer, so that the image is destroyed and the print quality of the text is deteriorated. In order to solve such problems, it is desirable to change the application together with the replacement of the printer and generate image data that matches the resolution of the printer, but since changing the application requires a large amount of money, it is a practical solution. Not right.

本発明は、このような問題点に鑑み、解像度の異なるプリンターへの置き換えを行った場合でも、アプリケーションの変更を必要とすることなく、テキストの印刷品質を維持することが可能な画像処理装置、画像処理システムおよび印刷方法を提供することを課題とする。   In view of such problems, the present invention provides an image processing apparatus capable of maintaining the print quality of text without requiring application changes even when replacement with a printer having a different resolution is performed. An object is to provide an image processing system and a printing method.

本発明の画像処理装置は、テキストの情報を含む第1の方向に第1の解像度の第1の画像データを取得する画像データ取得部と、画像データ取得部で取得された第1の画像データに含まれるテキストの情報を解析するテキスト解析部と、テキスト解析部で解析された解析結果に基づいて、テキストの情報を含む第1の方向に第2の解像度の第2の画像データを生成する画像データ生成部と、を備えることを特徴とする。   An image processing apparatus according to the present invention includes an image data acquisition unit that acquires first image data having a first resolution in a first direction including text information, and first image data acquired by the image data acquisition unit. Based on the analysis result analyzed by the text analysis unit, the second image data having the second resolution in the first direction including the text information is generated based on the analysis result analyzed by the text analysis unit. And an image data generation unit.

本発明の画像処理システムは、テキストの情報を含む含む第1の方向に第1の解像度の第1の画像データを生成するアプリケーションを実行させる実行部、アプリケーションで生成された第1の画像データを取得する画像データ取得部、画像データ取得部で取得された第1の画像データに含まれるテキストの情報を解析するテキスト解析部、テキスト解析部で解析された解析結果に基づいて、テキストの情報を含む第1の方向に第2の解像度の第2の画像データを生成する画像データ生成部、および画像データ生成部で生成された第2の画像データを送信する送信部を有する画像処理装置と、画像処理装置の送信部で送信された第2の画像データを受信する受信部、第1の方向に第2の解像度で印刷を行う印刷ヘッド、および受信部で受信された第2の画像データを印刷ヘッドで印刷させる制御部を有するプリンターと、を備えたことを特徴とする。   The image processing system of the present invention includes an execution unit that executes an application that generates first image data having a first resolution in a first direction including text information, and the first image data generated by the application. The image data acquisition unit to acquire, the text analysis unit to analyze the text information included in the first image data acquired by the image data acquisition unit, the text information based on the analysis result analyzed by the text analysis unit An image processing device having an image data generation unit that generates second image data of the second resolution in a first direction including the transmission unit that transmits the second image data generated by the image data generation unit; A reception unit that receives the second image data transmitted by the transmission unit of the image processing apparatus, a print head that performs printing at the second resolution in the first direction, and a reception unit that receives the second image data. A printer having a control unit for printing the second image data to the print head, characterized by comprising a.

本発明の印刷方法は、テキストの情報を含む第1の方向に第1の解像度の第1の画像データを生成し、生成された第1の画像データに含まれるテキストの情報を解析し、解析結果に基づいて、解析されたテキストの情報を含む第1の方向に第2の解像度の第2の画像データを生成し、生成された第2の画像データを第2の解像度で印刷することを特徴とする。   The printing method of the present invention generates first image data having a first resolution in a first direction including text information, analyzes the text information included in the generated first image data, and performs analysis. Based on the result, generating second image data having the second resolution in the first direction including the analyzed text information, and printing the generated second image data at the second resolution. Features.

本発明の構成によれば、テキストの情報を含む第1の方向(印刷用紙の幅方向)に第1の解像度の第1の画像データを、OCR(Optical Character Recognition)等の技術を用いてテキスト解析し、その解析結果に基づいて、テキストの情報を含む第1の方向に第2の解像度の第2の画像データを生成するため、置き換え前のプリンターの解像度(第1の解像度)と、置き換え後のプリンターの解像度(第2の解像度)が異なる場合でも、アプリケーションの変更を必要とすることなく、テキストの印刷品質の劣化を防ぐことができる。つまり、置き換え後のプリンターの解像度に応じて、単純に拡大/縮小処理を行うと、文字が潰れたり変形したりしてしまう可能性があるが、一旦テキストを解析して、第2の解像度に対応したテキストの情報に変換するため、そのような不具合がない。
なお、「画像処理装置」は、ホストとプリンターとを備える印刷システムにおいて、ホスト側に搭載されても良いし、プリンター側に搭載されても良い。前者の場合、画像処理装置は、プリンタードライバーとして実装可能である。
また、「第2の解像度に対応したテキストの情報」は、第2の解像度に対応したテキスト画像データであっても良い。この構成によれば、画像処理装置で、第2の解像度に対応したテキスト画像データを含む第2の画像データを生成することができる。
According to the configuration of the present invention, the first image data having the first resolution in the first direction (the width direction of the printing paper) including the text information is converted into the text using a technique such as OCR (Optical Character Recognition). In order to generate the second image data of the second resolution in the first direction including the text information based on the analysis result, the replacement with the resolution of the printer before the replacement (first resolution) Even when the resolution of the subsequent printer (second resolution) is different, it is possible to prevent deterioration of the print quality of the text without requiring an application change. In other words, if the enlargement / reduction process is simply performed according to the resolution of the printer after replacement, characters may be crushed or deformed, but once the text is analyzed, the second resolution is obtained. There is no such problem because it is converted into corresponding text information.
The “image processing apparatus” may be mounted on the host side or the printer side in a printing system including a host and a printer. In the former case, the image processing apparatus can be implemented as a printer driver.
The “text information corresponding to the second resolution” may be text image data corresponding to the second resolution. According to this configuration, the image processing apparatus can generate second image data including text image data corresponding to the second resolution.

上記の画像処理装置において、テキスト解析部で解析された解析結果に基づいて、プリンターに印刷させる印刷コマンドを生成する印刷コマンド生成部を備えることを特徴とする。   The image processing apparatus includes a print command generation unit that generates a print command to be printed by the printer based on the analysis result analyzed by the text analysis unit.

本発明の構成によれば、画像処理装置で、第2の解像度に対応したテキストの情報をプリンターに印刷させる印刷コマンドを生成することができる。本構成の場合、画像処理装置は、プリンタードライバーとしてホスト側に搭載される。   According to the configuration of the present invention, the image processing apparatus can generate a print command that causes the printer to print text information corresponding to the second resolution. In the case of this configuration, the image processing apparatus is mounted on the host side as a printer driver.

上記の画像処理装置において、第1の方向に第1の解像度とは異なる解像度のロゴ画像データを記憶するロゴ画像データ記憶部と、第1の画像データに含まれるロゴ画像データの有無を解析するロゴ解析部と、を備え、ロゴ解析部で第1の画像データに含まれるロゴ画像データが有ると解析されたとき、画像データ生成部は、第1の画像データに含まれるロゴデータ画像データをロゴ画像データ記憶部に記憶されたロゴ画像データに置換して、第2の画像データを生成することを特徴とする。   In the above image processing apparatus, a logo image data storage unit that stores logo image data having a resolution different from the first resolution in the first direction and the presence / absence of logo image data included in the first image data are analyzed. A logo analysis unit, and when the logo analysis unit analyzes that the logo image data included in the first image data is present, the image data generation unit converts the logo data image data included in the first image data The second image data is generated by replacing the logo image data stored in the logo image data storage unit.

上記の画像処理装置において、画像データ生成部は、ロゴ画像データ記憶部に記憶されたロゴ画像データを第2の解像度に対応したロゴ画像データに変換し、第1の画像データに含まれるロゴデータ画像データを、当該第2の解像度に対応したロゴ画像データに置換することを特徴とする。   In the image processing apparatus, the image data generation unit converts the logo image data stored in the logo image data storage unit into logo image data corresponding to the second resolution, and includes the logo data included in the first image data. The image data is replaced with logo image data corresponding to the second resolution.

本発明の構成によれば、第1の画像データにロゴ画像データが含まれる場合でも、これを第2の解像度に対応したロゴ画像データに置換するため、ロゴ画像の印刷品質の劣化を防ぐことができる。
なお、「ロゴ解析部」は、パターンマッチング等の照合技術を用いて、解析を行うことが考えられる。この場合、ロゴ画像データ記憶部に記憶されているロゴ画像データと照合を行えば良い。
According to the configuration of the present invention, even when logo image data is included in the first image data, this is replaced with the logo image data corresponding to the second resolution, thereby preventing the print quality of the logo image from deteriorating. Can do.
Note that the “logo analysis unit” may perform analysis using a matching technique such as pattern matching. In this case, it is only necessary to collate with the logo image data stored in the logo image data storage unit.

上記の画像処理装置において、画像データ取得部で取得される第1の画像データは、第1の方向に第1の幅の記録紙に印刷される画像データであり、画像データ生成部で生成される第2の画像データが第1の方向に第1の幅と異なる第2の幅の記録紙に印刷される画像データであるとき、画像データ生成部は、第2の画像データを第2の幅に対応させて生成することを特徴とする。   In the image processing apparatus, the first image data acquired by the image data acquisition unit is image data printed on a recording sheet having a first width in the first direction, and is generated by the image data generation unit. When the second image data is image data printed on a recording sheet having a second width different from the first width in the first direction, the image data generation unit converts the second image data to the second image data. It is generated according to the width.

本発明の構成によれば、解像度が異なる場合だけでなく、置き換え前後のプリンターで用いる記録紙のドット数や長さが異なる場合にも、同様の効果を奏する。例えば、記録紙の用紙幅のドット数512dotから用紙幅のドット数752dotのプリンターに置き換えた場合、画像処理装置により画像データを約1.46倍拡大することで、用紙幅に見合った見栄えの良い印刷結果を実現できるが、この拡大処理によってテキストの印刷品質が悪化してしまう。このため、本発明を適用することにより、置き換え前後のプリンターで用いる用紙幅の違いを吸収すべく、画像処理装置で画像データの拡大/縮小処理を行う場合でも、テキストの印刷品質の劣化を防ぐことができる。   According to the configuration of the present invention, the same effect can be obtained not only when the resolution is different, but also when the number of dots and the length of the recording paper used in the printer before and after replacement are different. For example, when a printer having a recording paper width of 512 dots is replaced with a printer having a paper width of 752 dots, the image processing apparatus enlarges the image data by about 1.46 times, so that it looks good in accordance with the paper width. Although the print result can be realized, the print quality of the text is deteriorated by this enlargement process. For this reason, by applying the present invention, even when image data enlargement / reduction processing is performed in the image processing apparatus in order to absorb the difference in paper width used in the printer before and after replacement, deterioration of text print quality is prevented. be able to.

上記の画像処理装置画像データ生成部は、テキスト解析部で解析された解析結果に基づいて、第2の画像データとは異なる第3の画像データを生成することを特徴とする。   The image processing apparatus image data generation unit generates third image data different from the second image data based on the analysis result analyzed by the text analysis unit.

本発明の構成によれば、画像処理装置により第3の画像データを生成するため、例えばアプリケーションで生成されたレシートデータにクーポンデータを付加するなどの付加機能を実現できる。
なお、「第3の画像データ」としては、上記のクーポンデータに限らず、領収書、保証書、品質証明書、広告などのデータを生成しても良い。
According to the configuration of the present invention, since the third image data is generated by the image processing apparatus, an additional function such as adding coupon data to receipt data generated by an application can be realized.
The “third image data” is not limited to the coupon data described above, and data such as a receipt, a guarantee, a quality certificate, and an advertisement may be generated.

本発明の一実施形態に係る印刷システムのシステム構成図である。1 is a system configuration diagram of a printing system according to an embodiment of the present invention. 第1実施形態に係る印刷処理の流れを示すフローチャートである。4 is a flowchart illustrating a flow of printing processing according to the first embodiment. 第1実施形態に係る印刷システムの機能ブロック図である。1 is a functional block diagram of a printing system according to a first embodiment. プリンター置き換え前後の印刷結果の一例を示す図である。FIG. 6 is a diagram illustrating an example of a printing result before and after replacement of a printer. 第2実施形態に係る印刷処理の流れを示すフローチャートである。10 is a flowchart illustrating a flow of a printing process according to the second embodiment. 第3実施形態に係る印刷処理の流れを示すフローチャートである。10 is a flowchart illustrating a flow of a printing process according to a third embodiment.

[第1実施形態]
以下、本発明の一実施形態に係る画像処理装置、画像処理システムおよび印刷方法について、添付図面を参照しながら詳細に説明する。第1実施形態では、テキストおよび/またはロゴ画像を含む画像データの印刷を行う場合であって、本発明の画像処理装置を、プリンタードライバー12として実装する場合について例示する。
[First Embodiment]
Hereinafter, an image processing apparatus, an image processing system, and a printing method according to an embodiment of the present invention will be described in detail with reference to the accompanying drawings. The first embodiment exemplifies a case where image data including text and / or a logo image is printed, and the image processing apparatus of the present invention is mounted as the printer driver 12.

図1は、印刷システムSY(画像処理システム)のシステム構成図である。印刷システムSYは、上位装置となるPC1と、PC1からの印刷指令に基づいて印刷を行うプリンター2と、を備える。パーソナルコンピューター(以下、「PC」と表記する)1とプリンター2は、ケーブルまたはLAN等のネットワークを介して接続される。   FIG. 1 is a system configuration diagram of a printing system SY (image processing system). The printing system SY includes a PC 1 serving as a host device and a printer 2 that performs printing based on a print command from the PC 1. The personal computer (hereinafter referred to as “PC”) 1 and the printer 2 are connected via a network such as a cable or a LAN.

PC1は、所定の解像度および用紙(用紙の幅方向・搬送方向におけるドット数や長さ)に対応した画像データを生成するアプリケーション11と、プリンター2に対応したプリンタードライバー12と、印刷対象となる画像データなど各種情報を表示するディスプレイ13と、各種情報を入力するキーボード14およびマウス15と、を備えている。アプリケーション11としては、会計レシートを発行するPOS(Point Of Sales)アプリケーションや、医療現場で用いられる帳票アプリケーションなどがある。一方、プリンター2は、PC1とのデータ入出力制御および印刷制御など各種制御を行うプリンター制御部21と、印刷ヘッドおよび用紙搬送機構を含む印刷機構22と、を備えている。   The PC 1 has an application 11 that generates image data corresponding to a predetermined resolution and paper (number of dots and length in the paper width direction and conveyance direction), a printer driver 12 corresponding to the printer 2, and an image to be printed. A display 13 for displaying various information such as data, and a keyboard 14 and a mouse 15 for inputting various information are provided. Examples of the application 11 include a POS (Point Of Sales) application for issuing an accounting receipt and a form application used in a medical field. On the other hand, the printer 2 includes a printer control unit 21 that performs various controls such as data input / output control and printing control with the PC 1, and a printing mechanism 22 including a print head and a paper transport mechanism.

本実施形態のプリンター2は、用紙幅方向(第1の方向)における解像度360dpi/用紙幅のドット数752dot(用紙幅の長さ2.0インチ)の長尺状用紙に対応しており、用紙幅方向(第1の方向)における解像度180dpi/用紙幅のドット数512dot(用紙幅の長さ2.8インチ)の旧プリンター(図示省略)から置き換えられたものとする。なお、本実施形態では、「用紙幅方向の解像度」と、「(用紙幅方向に直交する)用紙搬送方向(用紙長手方向)の解像度」が同じであるものとする。以下、特に記載しない場合は、「解像度」=「用紙幅方向の解像度」を意味する。また、アプリケーション11は、旧プリンターの解像度および用紙幅に対応した画像データ(第1の画像データ,以下、「旧プリンター用の画像データ」と称する)を生成するものであり、当該画像データには、テキストおよび/またはロゴ画像が含まれているものとする。   The printer 2 of the present embodiment corresponds to a long sheet having a resolution of 360 dpi / paper width of 752 dots (paper width of 2.0 inches) in the paper width direction (first direction). It is assumed that the printer has been replaced with an old printer (not shown) having a resolution of 180 dpi / paper width of 512 dots (paper width of 2.8 inches) in the width direction (first direction). In this embodiment, it is assumed that “the resolution in the paper width direction” and “the resolution in the paper conveyance direction (paper longitudinal direction) (perpendicular to the paper width direction)” are the same. Hereinafter, unless otherwise specified, it means “resolution” = “resolution in the paper width direction”. The application 11 generates image data corresponding to the resolution and paper width of the old printer (first image data, hereinafter referred to as “image data for the old printer”). , Text and / or logo images.

このようなシステム構成では、プリンター2とアプリケーション11の仕様の違い(対応する解像度および用紙幅の違い)を吸収すべく、プリンタードライバー12による画像データの拡大/縮小処理が必要となる。そのため、本実施形態では、プリンタードライバー12によりテキスト解析およびパターンマッチングを行い、新プリンター2の解像度および用紙幅に対応した画像データ(第2の画像データ,以下、「新プリンター2用の画像データ」と称する)を生成することにより、印刷品質を確保している。なお、「ロゴ画像」とは、プリンタードライバー12内に、予め記憶されているロゴ用の画像データと類似する画像(解像度が異なる画像)を指すものとする。   In such a system configuration, enlargement / reduction processing of image data by the printer driver 12 is necessary to absorb the difference in specifications between the printer 2 and the application 11 (corresponding difference in resolution and paper width). Therefore, in this embodiment, text analysis and pattern matching are performed by the printer driver 12, and image data corresponding to the resolution and paper width of the new printer 2 (second image data, hereinafter, "image data for the new printer 2"). The printing quality is ensured. The “logo image” refers to an image similar to logo image data stored in advance in the printer driver 12 (an image having a different resolution).

図2は、第1実施形態に係る印刷処理の大まかな流れを示す簡易フローチャートである。まず、アプリケーション11は、旧プリンター用の画像データ(テキストおよび/またはロゴ画像を含む)を生成する(S01)。次に、プリンタードライバー12は、OCR(Optical Character Recognition)機能を用いたテキスト解析、および/またはパターンマッチングによるロゴ画像の検出を行う(S02)。ここで、旧プリンター用の画像データにテキストが含まれるか否かを判別し、含まれる場合は(S03:Yes)、テキストを抽出して、新プリンター2の解像度および用紙幅に対応したテキスト画像データに変換する(S04)。また、テキストが含まれない場合は(S03:No)、S04を省略する。続いて、プリンタードライバー12は、旧プリンター用の画像データにロゴ画像が含まれるか否かを判別し、含まれる場合は(S05:Yes)、旧プリンター用のロゴ画像データを、新プリンター2用のロゴ画像データに置換する(S06)。また、ロゴ画像が含まれない場合は(S05:No)、S06を省略する。その後、新プリンター2用のテキスト画像データおよび/またはロゴ画像データをプリンター2に送信する(S07)。プリンター2は、受信した新プリンター2用のテキスト画像データおよび/またはロゴ画像データを、所定の印刷用紙に印刷する(S08)。   FIG. 2 is a simplified flowchart showing a rough flow of the printing process according to the first embodiment. First, the application 11 generates image data (including text and / or logo images) for the old printer (S01). Next, the printer driver 12 performs text analysis using an OCR (Optical Character Recognition) function and / or logo image detection by pattern matching (S02). Here, it is determined whether or not text is included in the image data for the old printer, and if included (S03: Yes), the text is extracted and the text image corresponding to the resolution and paper width of the new printer 2 is extracted. Data is converted (S04). If no text is included (S03: No), S04 is omitted. Subsequently, the printer driver 12 determines whether or not a logo image is included in the image data for the old printer. If included (S05: Yes), the logo image data for the old printer is used for the new printer 2. (S06). If the logo image is not included (S05: No), S06 is omitted. Thereafter, text image data and / or logo image data for the new printer 2 is transmitted to the printer 2 (S07). The printer 2 prints the received text image data and / or logo image data for the new printer 2 on a predetermined printing paper (S08).

なお、アプリケーション11が生成する旧プリンター用の画像データは、テキストやロゴ画像以外の情報が含まれる場合も考えられる。この場合は、テキストやロゴ画像以外の画像データ部分を、置き換え前後のプリンター2の解像度および用紙幅の違いに応じて、拡大/縮小処理するものとする。この場合、プリンタードライバー12に、旧プリンターの解像度および用紙幅を設定し、自身が対応する新プリンター2との仕様の違いに応じて、拡大/縮小処理を行っても良い。例えば、本実施形態のように、置き換え前後のプリンター2の解像度および用紙幅の長さが異なることにより、用紙幅のドット数512dotから752dotに変更する場合、画像データを用紙幅方向に約1.46倍拡大すれば良い。また、仮に解像度のみ、180dpiから360dpiに変更する場合、画像データを用紙幅方向に2倍拡大すれば良い。また、拡大率または縮小率をユーザーが設定可能としても良い。なお、旧プリンター用の画像データにバーコード画像や2次元コード画像が含まれる場合は、単純に拡大/縮小処理すると、印刷結果をバーコードリーダー等で読み取る際に、正確な読取結果が得られなくなる可能性があるため、これらのコード画像領域を除いて拡大/縮小処理することが好ましい。   Note that the image data for the old printer generated by the application 11 may include information other than text and logo images. In this case, image data portions other than text and logo images are enlarged / reduced according to the difference in resolution and paper width of the printer 2 before and after replacement. In this case, the resolution and paper width of the old printer may be set in the printer driver 12, and the enlargement / reduction process may be performed according to the difference in specifications with the new printer 2 that it corresponds to. For example, when the number of dots of the paper width is changed from 512 dots to 752 dots by changing the resolution and paper width length of the printer 2 before and after replacement as in the present embodiment, the image data is about 1. What is necessary is just to enlarge 46 times. If only the resolution is changed from 180 dpi to 360 dpi, the image data may be enlarged twice in the paper width direction. Also, the user may be able to set the enlargement rate or reduction rate. If the image data for the old printer includes a barcode image or a two-dimensional code image, an accurate reading result can be obtained when the printing result is read by a barcode reader or the like by simply performing enlargement / reduction processing. Since there is a possibility of disappearing, it is preferable to perform enlargement / reduction processing excluding these code image areas.

次に、図3を参照し、印刷システムSYの機能構成について説明する。アプリケーション11は、主な機能構成として、実行部110を備えている。実行部110は、アプリケーション11の実行環境である。   Next, the functional configuration of the printing system SY will be described with reference to FIG. The application 11 includes an execution unit 110 as a main functional configuration. The execution unit 110 is an execution environment for the application 11.

プリンタードライバー12は、主な機能構成として、画像データ取得部120、解析部130、画像データ生成部160、送信部170、ロゴ画像データ記憶部180および付加画像フォーム記憶部190を備えている。   The printer driver 12 includes an image data acquisition unit 120, an analysis unit 130, an image data generation unit 160, a transmission unit 170, a logo image data storage unit 180, and an additional image form storage unit 190 as main functional configurations.

画像データ取得部120は、アプリケーション11(実行部110)より、旧プリンター用の画像データを取得する。当該、画像データは、解像度180dpiの旧プリンターで、用紙幅のドット数512dotのレシート用紙(記録紙)に印刷される画像データである。解析部130は、テキスト解析部131およびロゴ解析部132を含む。テキスト解析部131は、旧プリンター用の画像データに含まれるテキストの情報を解析する。ここで「解析」とは、旧プリンター用の画像データを画像として読み取り、テキスト部分を文字認識することを指す。例えば、図4(a)は、旧プリンター(解像度180dpi/用紙幅のドット数512dot)の印刷結果であり、アプリケーション11として、POSアプリケーションを用いた場合に発行されるレシートの画像データR1の一例を示している。同図において、符号L1は、旧プリンター用のロゴ画像データ、符号T1は、旧プリンター用のテキスト画像データを示す。テキスト解析部131は、レシートの画像データR1を画像として読み取り、テキスト画像データT1からテキストを抽出するための文字認識を行う。   The image data acquisition unit 120 acquires image data for the old printer from the application 11 (execution unit 110). The image data is image data printed on a receipt paper (recording paper) having a paper width of 512 dots by an old printer having a resolution of 180 dpi. The analysis unit 130 includes a text analysis unit 131 and a logo analysis unit 132. The text analysis unit 131 analyzes text information included in the image data for the old printer. Here, “analysis” refers to reading the image data for the old printer as an image and recognizing the text portion. For example, FIG. 4A shows a print result of an old printer (resolution 180 dpi / paper width 512 dots), and an example of receipt image data R1 issued when a POS application is used as the application 11. Show. In the same figure, the code | symbol L1 shows the logo image data for old printers, and the code | symbol T1 shows the text image data for old printers. The text analysis unit 131 reads the receipt image data R1 as an image, and performs character recognition for extracting text from the text image data T1.

一方、ロゴ解析部132は、旧プリンター用の画像データに含まれるロゴ画像データの有無を解析する。つまり、旧プリンターの解像度(解像度180dpi)に対応したロゴ画像データL1が含まれるか否かを解析する。ここで「解析」とは、旧プリンター用の画像データ(レシートの画像データR1)を読み取り、ロゴ画像データ記憶部180に記憶されている新プリンター2用のロゴ画像データとのパターンマッチングを行うことを指す。例えば、図4(b)は、新プリンター2(解像度360dpi/用紙幅のドット数752dot)により発行されるレシートおよびクーポンの画像データR2,Cの一例を示している。ロゴ解析部132は、同図に示すロゴ画像データL2を用い、アプリケーション11から取得したレシートの画像データR1に、ロゴ画像データL1が含まれるか否かを解析する。クーポンについては、後述する。   On the other hand, the logo analysis unit 132 analyzes the presence / absence of logo image data included in the image data for the old printer. That is, it is analyzed whether the logo image data L1 corresponding to the resolution of the old printer (resolution 180 dpi) is included. Here, “analysis” refers to reading image data for the old printer (receipt image data R1) and performing pattern matching with the logo image data for the new printer 2 stored in the logo image data storage unit 180. Point to. For example, FIG. 4B shows an example of receipt and coupon image data R2 and C issued by the new printer 2 (resolution 360 dpi / number of dots of paper width 752 dots). The logo analysis unit 132 analyzes whether the logo image data L1 is included in the receipt image data R1 acquired from the application 11, using the logo image data L2 shown in FIG. The coupon will be described later.

ロゴ画像データ記憶部180は、上記の通り、新プリンター2用のロゴ画像データを記憶する。付加画像フォーム記憶部190は、クーポンの印刷フォームを記憶する。なお、本実施形態では、印刷フォームとして、図4(b)のクーポンに表記された写真およびテキスト(有効期限を示すテキスト41を除く)の情報を含む、新プリンター2の仕様に対応した画像データを記憶しているものとする。   As described above, the logo image data storage unit 180 stores the logo image data for the new printer 2. The additional image form storage unit 190 stores a coupon print form. In the present embodiment, image data corresponding to the specifications of the new printer 2 including the information of the photograph and text (excluding the text 41 indicating the expiration date) shown on the coupon of FIG. Is remembered.

画像データ生成部160は、図4(b)に示すレシートの画像データR2(第2の画像データ)と、クーポンの画像データC(付加画像データ)を生成する。画像データ生成部160は、レシートの画像データR2が、旧プリンターで用いていた用紙幅(第1の幅)のドット数と異なる用紙幅(第2の幅)のドット数に印刷される画像データである場合、新プリンター2で用いる用紙幅のドット数(752dot)に対応させて、レシートの画像データR2およびクーポンの画像データCを生成する。なお、クーポンの画像データCを生成する場合、プリンター2によりレシートの印刷後切断処理が行われ、さらにその後クーポンの印刷が行われるように、別の画像データとして生成しても良いし、レシートとクーポンが繋がった状態で発行されるように、1つの画像データとして生成しても良い。また、プリンター2がハーフカット機能を有している場合、レシートとクーポンの間がハーフカットされるように、画像データを生成しても良い。   The image data generation unit 160 generates receipt image data R2 (second image data) and coupon image data C (additional image data) shown in FIG. The image data generation unit 160 prints the image data R2 of the receipt on the number of dots of the paper width (second width) different from the number of dots of the paper width (first width) used in the old printer. , The receipt image data R2 and the coupon image data C are generated in correspondence with the number of dots of the paper width (752 dots) used in the new printer 2. In addition, when generating the image data C of the coupon, it may be generated as separate image data so that the printer 2 performs a cutting process after printing the receipt, and further prints the coupon. You may produce | generate as one image data so that it may be issued in the state in which the coupon was connected. Further, when the printer 2 has a half-cut function, the image data may be generated so that the space between the receipt and the coupon is half-cut.

まず、画像データ生成部160は、テキスト解析部131の解析結果を、新プリンター2に対応したテキストの情報に変換する。本実施形態では、「テキストの情報」として、新プリンター2の仕様(解像度360dpi/用紙幅のドット数752dot)に対応したテキスト画像データT2を生成する。また、ロゴ解析部132により、旧プリンター用の画像データから、旧プリンターの解像度に対応したロゴ画像データL1が検出された場合、当該ロゴ画像データL1を、新プリンター2の仕様に対応したロゴ画像データL2に置換する。   First, the image data generation unit 160 converts the analysis result of the text analysis unit 131 into text information corresponding to the new printer 2. In this embodiment, text image data T2 corresponding to the specifications of the new printer 2 (resolution 360 dpi / number of dots of paper width 752 dots) is generated as “text information”. Further, when the logo analysis unit 132 detects the logo image data L1 corresponding to the resolution of the old printer from the image data for the old printer, the logo image data L1 is converted to the logo image corresponding to the specifications of the new printer 2. Replace with data L2.

また、画像データ生成部160は、テキスト解析部131により、テキスト画像データT1から所定のテキスト(キーワード)を検出した場合、これに関連するクーポンの画像データC(新プリンター2の仕様に対応した画像データ)を生成し、レシートの画像データR2に付加する。図4(b)では、キーワード「apples」の検出に伴い、りんご用の割引クーポンを発行する場合を示している。また、画像データ生成部160は、クーポンの画像データCを生成する際、現在日時に応じて有効期限を決定し、当該有効期限のテキスト41を、付加画像フォーム記憶部190から読み出した印刷フォームに挿入する。   In addition, when the text analysis unit 131 detects a predetermined text (keyword) from the text image data T1, the image data generation unit 160 has associated coupon image data C (an image corresponding to the specifications of the new printer 2). Data) is generated and added to the receipt image data R2. FIG. 4B shows a case where a discount coupon for apples is issued with the detection of the keyword “apples”. Further, when generating the image data C of the coupon, the image data generation unit 160 determines an expiration date according to the current date and time, and the expiration date text 41 is printed on the print form read from the additional image form storage unit 190. insert.

なお、付加画像フォーム記憶部190には、複数種類のキーワードや商品に関連付けて、多数の印刷フォームを記憶しておいても良い。また、テキスト画像データT2の解析結果から、顧客IDを抽出可能な場合、当該顧客IDを引数として不図示の顧客データベースを参照し、会計日が顧客の誕生日月に該当する場合に、誕生日クーポンを発行しても良い。また、顧客データベースを参照し、顧客の性別、年齢、購入頻度に応じて、その顧客に合ったクーポンを発行しても良い。   The additional image form storage unit 190 may store a large number of print forms in association with a plurality of types of keywords and products. If the customer ID can be extracted from the analysis result of the text image data T2, the customer database (not shown) is referred to with the customer ID as an argument, and the date of birth corresponds to the birthday of the customer. A coupon may be issued. Further, referring to the customer database, a coupon suitable for the customer may be issued according to the sex, age, and purchase frequency of the customer.

送信部170は、画像データ生成部160で生成された新プリンター2用の画像データを、プリンター2に送信する。一方、プリンター2(新プリンター2)は、主な機能構成として、受信部210および印刷部220を備えている。受信部210は、プリンタードライバー12(送信部170)から送信された新プリンター2用の画像データを受信する。印刷部220は、プリンター制御部21および印刷機構22を含み、受信部210で受信した新プリンター2用の画像データを印刷する。   The transmission unit 170 transmits the image data for the new printer 2 generated by the image data generation unit 160 to the printer 2. On the other hand, the printer 2 (new printer 2) includes a receiving unit 210 and a printing unit 220 as main functional configurations. The reception unit 210 receives image data for the new printer 2 transmitted from the printer driver 12 (transmission unit 170). The printing unit 220 includes the printer control unit 21 and the printing mechanism 22, and prints image data for the new printer 2 received by the receiving unit 210.

以上説明したとおり、第1実施形態によれば、旧プリンター用のテキスト画像データT1を、OCR技術によりテキスト解析し、その解析結果を、新プリンター2用のテキスト画像データT2に変換するため、置き換え前後のプリンター2の解像度が異なり、拡大/縮小処理が必要な場合でも、アプリケーション11の変更を必要とすることなく、テキストの印刷品質を維持することができる。つまり、単純に拡大/縮小処理を行うのではなく、テキスト解析した結果を、新プリンター2の解像度に合わせて画像データ化することで、文字が潰れたり変形したりしてしまう不具合を解消できる。また、解像度が異なる場合だけでなく、置き換え前後のプリンター2で用いる用紙幅のドット数や長さが異なる場合でも、テキストの印刷品質の劣化を防ぐことができる。   As described above, according to the first embodiment, the text image data T1 for the old printer is subjected to text analysis by the OCR technique, and the analysis result is converted to the text image data T2 for the new printer 2, so that replacement is performed. Even when the resolutions of the front and rear printers 2 are different and enlargement / reduction processing is necessary, the print quality of the text can be maintained without requiring the application 11 to be changed. That is, instead of simply performing enlargement / reduction processing, the text analysis result is converted into image data in accordance with the resolution of the new printer 2, thereby eliminating the problem that characters are crushed or deformed. Further, not only when the resolution is different, but also when the number of dots and the length of the paper width used in the printer 2 before and after the replacement are different, it is possible to prevent the text print quality from being deteriorated.

また、レシートの画像データR1にロゴ画像データL1が含まれる場合でも、これを新プリンター2に対応したロゴ画像データL2に置換するため、テキストだけでなく、ロゴ画像の印刷品質も確保できる。   Further, even when the logo image data L1 is included in the receipt image data R1, this is replaced with the logo image data L2 corresponding to the new printer 2, so that not only the text but also the print quality of the logo image can be ensured.

また、テキスト解析部131の解析結果に基づいて、クーポン用の画像データC(第3の画像データ)を生成するため、アプリケーション11を変更することなく、クーポンの印刷機能を付加することができる。   Further, since the coupon image data C (third image data) is generated based on the analysis result of the text analysis unit 131, a coupon printing function can be added without changing the application 11.

なお、上記の実施形態では、「第3の画像データ」として、クーポンの画像データを生成する場合を例示したが、クーポンに限らず、テキスト解析部131の解析結果に基づいて、領収書、保証書、品質証明書、広告などのデータを付加しても良い。   In the above embodiment, the case where the image data of the coupon is generated as the “third image data” is exemplified. Data such as quality certificates and advertisements may be added.

また、ロゴ画像データ記憶部180および付加画像フォーム記憶部190では新プリンター2に対応したロゴ画像データおよび付加画像フォームを記憶しているものとしたが、想定される最大解像度のロゴ画像データおよび付加画像フォームを記憶しておき、新プリンター2の仕様(解像度や用紙幅)に合わせて、画像データの縮小処理を行ったものを用いても良い。この構成によれば、種々の仕様に対応したプリンタードライバー12で、共通のロゴ画像データおよび付加画像フォームを用いることができる。また、カラー印刷可能なプリンター2に置き換えられることを考慮し、カラー印刷に対応したロゴ画像データおよび付加画像フォームを記憶しておく構成でも良い。この場合、モノクロ対応のプリンタードライバー12では、カラーデータをモノクロデータに変換して用いる。   In addition, the logo image data storage unit 180 and the additional image form storage unit 190 store the logo image data and the additional image form corresponding to the new printer 2. An image form may be stored and the image data reduced according to the specifications (resolution and paper width) of the new printer 2 may be used. According to this configuration, the common logo image data and the additional image form can be used by the printer driver 12 corresponding to various specifications. In consideration of replacement with a printer 2 capable of color printing, a configuration in which logo image data corresponding to color printing and an additional image form are stored may be used. In this case, the monochrome printer driver 12 converts the color data into monochrome data and uses it.

[第2実施形態]
次に、図5を参照し、本発明の第2実施形態について説明する。上記の第1実施形態では、プリンタードライバー12において、旧プリンター用のテキストを、新プリンター2用のテキスト画像データに変換したが、本実施形態では、テキスト画像データではなく、テキスト印刷コマンドに変換する点で異なる。つまり、本実施形態では、プリンター2が、テキスト印刷コマンドを解釈可能であることを前提としている。以下、第1実施形態と異なる点を中心に説明する。なお、本実施形態において、第1実施形態と同様の構成部分については同様の符号を付し、詳細な説明を省略する。また、第1実施形態と同様の構成部分について適用される変形例は、本実施形態についても同様に適用される。
[Second Embodiment]
Next, a second embodiment of the present invention will be described with reference to FIG. In the first embodiment, the printer driver 12 converts the text for the old printer into the text image data for the new printer 2, but in this embodiment, the text is converted into a text print command instead of the text image data. It is different in point. That is, in the present embodiment, it is assumed that the printer 2 can interpret the text print command. Hereinafter, a description will be given focusing on differences from the first embodiment. In the present embodiment, the same components as those in the first embodiment are denoted by the same reference numerals, and detailed description thereof is omitted. Moreover, the modification applied about the component similar to 1st Embodiment is applied similarly about this embodiment.

図5は、第2実施形態に係る印刷処理の大まかな流れを示す簡易フローチャートである。まず、アプリケーション11は、旧プリンター用の画像データを生成する(S11)。次に、プリンタードライバー12は、OCR解析およびロゴ画像のパターンマッチングを行う(S12)。ここまでは、第1実施形態と同様である。その後、プリンタードライバー12は、旧プリンター用の画像データにテキストが含まれるか否かを判別し、含まれる場合は(S13:Yes)、テキストを抽出して、テキスト印刷コマンドに変換する(S14,印刷コマンド生成部)。当該テキスト印刷コマンドは、プリンター2で解釈可能な印刷コマンドである。また、新プリンター2の解像度および用紙幅に対応したフォントサイズを指定しても良い。さらに、新プリンター2の解像度および用紙幅だけでなく、用紙幅方向(行方向)における文字数を考慮し、適切なフォントサイズを指定しても良い。また、テキストが含まれない場合は(S13:No)、S14を省略する。続いて、プリンタードライバー12は、旧プリンター用の画像データにロゴ画像が含まれるか否かを判別し、含まれる場合は(S15:Yes)、旧プリンター用のロゴ画像データを、新プリンター2用のロゴ画像データに置換する(S16)。また、ロゴ画像が含まれない場合は(S15:No)、S16を省略する。その後、テキスト印刷コマンドおよび/または新プリンター2用のロゴ画像データをプリンター2に送信する(S17)。プリンター2は、受信したテキスト印刷コマンドを解釈し(S18)、その解釈結果および/または新プリンター2用のロゴ画像データを、所定の印刷用紙に印刷する(S19)。   FIG. 5 is a simplified flowchart showing a rough flow of the printing process according to the second embodiment. First, the application 11 generates image data for the old printer (S11). Next, the printer driver 12 performs OCR analysis and pattern matching of the logo image (S12). Up to this point, the process is the same as in the first embodiment. Thereafter, the printer driver 12 determines whether or not text is included in the image data for the old printer. If the text is included (S13: Yes), the printer driver 12 extracts the text and converts it into a text print command (S14, Print command generator). The text print command is a print command that can be interpreted by the printer 2. Further, a font size corresponding to the resolution and paper width of the new printer 2 may be designated. Furthermore, not only the resolution and paper width of the new printer 2 but also the number of characters in the paper width direction (line direction) may be considered to specify an appropriate font size. If the text is not included (S13: No), S14 is omitted. Subsequently, the printer driver 12 determines whether or not a logo image is included in the image data for the old printer. If included (S15: Yes), the logo image data for the old printer is used for the new printer 2. (S16). If no logo image is included (S15: No), S16 is omitted. Thereafter, a text print command and / or logo image data for the new printer 2 is transmitted to the printer 2 (S17). The printer 2 interprets the received text print command (S18), and prints the interpretation result and / or logo image data for the new printer 2 on a predetermined printing paper (S19).

以上説明したとおり、第2実施形態によれば、プリンタードライバー12により、旧プリンター用の画像データに含まれるテキストの情報を、テキスト画像データではなくテキスト印刷コマンドに変換するため、第1実施形態と比較して、プリンター2へのデータ送信量を減らすことができる。   As described above, according to the second embodiment, the printer driver 12 converts the text information included in the image data for the old printer into the text print command instead of the text image data. In comparison, the amount of data transmitted to the printer 2 can be reduced.

なお、本実施形態と第1実施形態を組み合わせ、抽出したテキストを、テキスト画像データに変換するか、テキスト印刷コマンドに変換するかを、ユーザーが任意に設定可能としても良い。   Note that the present embodiment may be combined with the first embodiment, and the user may arbitrarily set whether to convert the extracted text into text image data or text print commands.

[第3実施形態]
次に、図6を参照し、本発明の第3実施形態について説明する。上記の第1,第2実施形態では、プリンタードライバー12により、OCR解析やパターンマッチングを行ったが、本実施形態では、プリンター2により行う点で異なる。つまり、本実施形態は、本発明の「画像処理装置」を、プリンター2で実現している。以下、上記の各実施形態と異なる点を中心に説明する。なお、本実施形態でも、上記の各実施形態と同様の構成部分について適用される変形例は、同様に適用される。
[Third Embodiment]
Next, a third embodiment of the present invention will be described with reference to FIG. In the first and second embodiments described above, OCR analysis and pattern matching are performed by the printer driver 12, but in the present embodiment, the printer 2 is different. That is, in this embodiment, the “image processing apparatus” of the present invention is realized by the printer 2. The following description will focus on differences from the above embodiments. In the present embodiment, the modification applied to the same components as those in each of the above embodiments is similarly applied.

図6は、第3実施形態に係る印刷処理の大まかな流れを示す簡易フローチャートである。まず、アプリケーション11は、旧プリンター用の画像データを生成する(S21)。次に、プリンタードライバー12は、プリンター2に対し、旧プリンター用の画像データの印刷指令を行う(S22)。プリンター2は、プリンタードライバー12から旧プリンター用の画像データを取得し、OCR解析およびロゴ画像のパターンマッチングを行う(S23)。ここで、旧プリンター用の画像データにテキストが含まれるか否かを判別し、含まれる場合は(S24:Yes)、テキストを抽出して、新プリンター2用のテキスト画像データに変換する(S25)。また、テキストが含まれない場合は(S24:No)、S25を省略する。続いて、プリンター2は、旧プリンター用の画像データにロゴ画像が含まれるか否かを判別し、含まれる場合は(S26:Yes)、旧プリンター用のロゴ画像データを、新プリンター2用のロゴ画像データに置換する(S27)。また、ロゴ画像が含まれない場合は(S26:No)、S27を省略する。その後、新プリンター2用のテキスト画像データおよび/またはロゴ画像データを、所定の印刷用紙に印刷する(S28)。   FIG. 6 is a simplified flowchart showing a rough flow of the printing process according to the third embodiment. First, the application 11 generates image data for the old printer (S21). Next, the printer driver 12 instructs the printer 2 to print image data for the old printer (S22). The printer 2 acquires image data for the old printer from the printer driver 12, and performs OCR analysis and logo image pattern matching (S23). Here, it is determined whether or not text is included in the image data for the old printer. If the text is included (S24: Yes), the text is extracted and converted to text image data for the new printer 2 (S25). ). If the text is not included (S24: No), S25 is omitted. Subsequently, the printer 2 determines whether or not a logo image is included in the image data for the old printer. If included (S26: Yes), the logo image data for the old printer is used as the logo image data for the new printer 2. Replace with logo image data (S27). If no logo image is included (S26: No), S27 is omitted. Thereafter, text image data and / or logo image data for the new printer 2 is printed on a predetermined printing paper (S28).

以上説明したとおり、第3実施形態によれば、プリンター2側でOCR解析やパターンマッチングを行うため、プリンタードライバー12の処理負荷を軽減できる。また、PC1がドライバーレスの場合(例えば、PC1をクラウドコンピューティングで動作させる場合など)でも、本発明の効果を奏することができる。   As described above, according to the third embodiment, since the OCR analysis and pattern matching are performed on the printer 2 side, the processing load on the printer driver 12 can be reduced. Even when the PC 1 is driverless (for example, when the PC 1 is operated by cloud computing), the effects of the present invention can be achieved.

以上、第1ないし第3実施形態を示したが、各実施形態に示したプリンタードライバー12またはプリンター2の各構成要素をプログラムとして提供することが可能である。また、そのプログラムを各種記録媒体(CD−ROM、フラッシュメモリー等)に格納して提供することも可能である。すなわち、コンピューターをプリンタードライバー12またはプリンター2の各構成要素として機能させるためのプログラム、およびそれを記録した記録媒体も、本発明の権利範囲に含まれる。   Although the first to third embodiments have been described above, it is possible to provide each component of the printer driver 12 or the printer 2 described in each embodiment as a program. Further, the program can be provided by being stored in various recording media (CD-ROM, flash memory, etc.). That is, a program for causing a computer to function as each component of the printer driver 12 or the printer 2 and a recording medium on which the program is recorded are also included in the scope of rights of the present invention.

また、上記の各実施形態では、置き換え前後のプリンター2の解像度および用紙幅が異なる場合を例示したが、「解像度のみ」または「用紙幅のみ(用紙幅のドット数のみ、または用紙幅の長さのみ)」が異なる場合にも適用可能である。その他、本発明の要旨を逸脱しない範囲で、適宜変更が可能である。   In each of the above embodiments, the case where the resolution and the paper width of the printer 2 before and after replacement are different is illustrated, but “resolution only” or “paper width only (only the number of dots in the paper width, or the length of the paper width). Only) ”is also applicable. Other modifications can be made as appropriate without departing from the scope of the present invention.

1…PC 2…プリンター 11…アプリケーション 12…プリンタードライバー 13…ディスプレイ 14…キーボード 15…マウス 21…プリンター制御部 22…印刷機構 110…実行部 120…画像データ取得部 130…解析部 131…テキスト解析部 132…ロゴ解析部 160…画像データ生成部 170…送信部 180…ロゴ画像データ記憶部 190…付加画像フォーム記憶部 210…受信部 220…印刷部 C…クーポンの画像データ L1…旧プリンター用のロゴ画像データ L2…新プリンター用のロゴ画像データ R1…旧プリンター用のレシートの画像データ R2…新プリンター用のレシートの画像データ SY…印刷システム T1…旧プリンター用のテキスト画像データ T2…新プリンター用のテキスト画像データ   DESCRIPTION OF SYMBOLS 1 ... PC 2 ... Printer 11 ... Application 12 ... Printer driver 13 ... Display 14 ... Keyboard 15 ... Mouse 21 ... Printer control part 22 ... Printing mechanism 110 ... Execution part 120 ... Image data acquisition part 130 ... Analysis part 131 ... Text analysis part 132 ... Logo analysis unit 160 ... Image data generation unit 170 ... Transmission unit 180 ... Logo image data storage unit 190 ... Additional image form storage unit 210 ... Reception unit 220 ... Printing unit C ... Coupon image data L1 ... Logo for old printer Image data L2 ... Logo image data for new printer R1 ... Receipt image data for old printer R2 ... Receipt image data for new printer SY ... Printing system T1 ... Text image data for old printer T2 ... For new printer Te Strike image data

Claims (8)

テキストの情報を含む第1の方向に第1の解像度の第1の画像データを取得する画像データ取得部と、
前記画像データ取得部で取得された前記第1の画像データに含まれる前記テキストの情報を解析するテキスト解析部と、
前記テキスト解析部で解析された解析結果に基づいて、前記テキストの情報を含む前記第1の方向に第2の解像度の第2の画像データを生成する画像データ生成部と、を備えることを特徴とする画像処理装置。
An image data acquisition unit that acquires first image data having a first resolution in a first direction including text information;
A text analysis unit that analyzes information of the text included in the first image data acquired by the image data acquisition unit;
An image data generation unit configured to generate second image data having a second resolution in the first direction including the text information based on an analysis result analyzed by the text analysis unit. An image processing apparatus.
前記テキスト解析部で解析された前記解析結果に基づいて、プリンターに印刷させる印刷コマンドを生成する印刷コマンド生成部を備える請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, further comprising: a print command generation unit that generates a print command to be printed by a printer based on the analysis result analyzed by the text analysis unit. 前記第1の方向に前記第1の解像度とは異なる解像度のロゴ画像データを記憶するロゴ画像データ記憶部と、
前記第1の画像データに含まれるロゴ画像データの有無を解析するロゴ解析部と、を備え、
前記ロゴ解析部で前記第1の画像データに含まれるロゴ画像データが有ると解析されたとき、前記画像データ生成部は、前記第1の画像データに含まれるロゴデータ画像データを前記ロゴ画像データ記憶部に記憶されたロゴ画像データに置換して、前記第2の画像データを生成する請求項1または2に記載の画像処理装置。
A logo image data storage unit for storing logo image data of a resolution different from the first resolution in the first direction;
A logo analysis unit that analyzes the presence or absence of logo image data included in the first image data,
When the logo analysis unit analyzes that there is logo image data included in the first image data, the image data generation unit converts the logo data image data included in the first image data into the logo image data. The image processing apparatus according to claim 1, wherein the second image data is generated by replacing with logo image data stored in a storage unit.
前記画像データ生成部は、前記ロゴ画像データ記憶部に記憶されたロゴ画像データを前記第2の解像度に対応したロゴ画像データに変換し、前記第1の画像データに含まれるロゴデータ画像データを、当該第2の解像度に対応したロゴ画像データに置換する請求項3に記載の画像処理装置。   The image data generation unit converts logo image data stored in the logo image data storage unit into logo image data corresponding to the second resolution, and converts the logo data image data included in the first image data. The image processing apparatus according to claim 3, wherein the image data is replaced with logo image data corresponding to the second resolution. 前記画像データ取得部で取得される前記第1の画像データは、前記第1の方向に第1の幅の記録紙に印刷される画像データであり、
前記画像データ生成部で生成される前記第2の画像データが前記第1の方向に前記第1の幅と異なる第2の幅の記録紙に印刷される画像データであるとき、前記画像データ生成部は、前記第2の画像データを前記第2の幅に対応させて生成する請求項1ないし4のいずれか1項に記載の画像処理装置。
The first image data acquired by the image data acquisition unit is image data printed on a recording sheet having a first width in the first direction;
When the second image data generated by the image data generation unit is image data printed on recording paper having a second width different from the first width in the first direction, the image data generation The image processing apparatus according to claim 1, wherein the unit generates the second image data in association with the second width.
前記画像データ生成部は、前記テキスト解析部で解析された前記解析結果に基づいて、前記第2の画像データとは異なる第3の画像データを生成する請求項1ないし5のいずれか1項に記載の画像処理装置。   The said image data generation part produces | generates 3rd image data different from a said 2nd image data based on the said analysis result analyzed by the said text analysis part. The image processing apparatus described. テキストの情報を含む第1の方向に第1の解像度の第1の画像データを生成するアプリケーションを実行させる実行部、前記アプリケーションで生成された前記第1の画像データを取得する画像データ取得部、前記画像データ取得部で取得された前記第1の画像データに含まれる前記テキストの情報を解析するテキスト解析部、前記テキスト解析部で解析された解析結果に基づいて、前記テキストの情報を含む前記第1の方向に第2の解像度の第2の画像データを生成する画像データ生成部、および前記画像データ生成部で生成された前記第2の画像データを送信する送信部を有する画像処理装置と、
前記画像処理装置の前記送信部で送信された前記第2の画像データを受信する受信部、前記第1の方向に前記第2の解像度で印刷を行う印刷ヘッド、および前記受信部で受信された前記第2の画像データを前記印刷ヘッドで印刷させる制御部を有するプリンターと、を備えたことを特徴とする画像処理システム。
An execution unit that executes an application that generates first image data having a first resolution in a first direction including text information; an image data acquisition unit that acquires the first image data generated by the application; A text analysis unit that analyzes the information on the text included in the first image data acquired by the image data acquisition unit; and the text analysis unit that includes the text information based on an analysis result analyzed by the text analysis unit. An image processing apparatus comprising: an image data generation unit that generates second image data having a second resolution in a first direction; and a transmission unit that transmits the second image data generated by the image data generation unit; ,
A reception unit that receives the second image data transmitted by the transmission unit of the image processing apparatus, a print head that performs printing at the second resolution in the first direction, and a reception unit that receives the second image data. An image processing system comprising: a printer having a control unit configured to print the second image data with the print head.
テキストの情報を含む第1の方向に第1の解像度の第1の画像データを生成し、
生成された前記第1の画像データに含まれるテキストの情報を解析し、
解析結果に基づいて、解析されたテキストの情報を含む前記第1の方向に第2の解像度の第2の画像データを生成し、
生成された前記第2の画像データを前記第2の解像度で印刷することを特徴とする印刷方法。
Generating first image data having a first resolution in a first direction including text information;
Analyzing text information included in the generated first image data;
Generating second image data of the second resolution in the first direction including information of the analyzed text based on the analysis result;
A printing method comprising printing the generated second image data at the second resolution.
JP2012197521A 2012-06-21 2012-09-07 Image processing apparatus, image processing system, and printing method Expired - Fee Related JP6145978B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2012197521A JP6145978B2 (en) 2012-09-07 2012-09-07 Image processing apparatus, image processing system, and printing method
CN201310198531.1A CN103516952B (en) 2012-06-21 2013-05-24 Image processing apparatus, image processing system and Method of printing
EP13172202.7A EP2677418B1 (en) 2012-06-21 2013-06-17 Image processing device, image processing system, and printing method
US13/922,906 US9135534B2 (en) 2012-06-21 2013-06-20 Image processing device, image processing system, and printing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012197521A JP6145978B2 (en) 2012-09-07 2012-09-07 Image processing apparatus, image processing system, and printing method

Publications (3)

Publication Number Publication Date
JP2014052884A true JP2014052884A (en) 2014-03-20
JP2014052884A5 JP2014052884A5 (en) 2015-09-17
JP6145978B2 JP6145978B2 (en) 2017-06-14

Family

ID=50611312

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012197521A Expired - Fee Related JP6145978B2 (en) 2012-06-21 2012-09-07 Image processing apparatus, image processing system, and printing method

Country Status (1)

Country Link
JP (1) JP6145978B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016107457A (en) * 2014-12-04 2016-06-20 セイコーエプソン株式会社 Printer and control method for printer
JP2018022240A (en) * 2016-08-01 2018-02-08 東芝テック株式会社 Server device and program

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09218959A (en) * 1996-02-13 1997-08-19 Ricoh Co Ltd Image processor
JP2002287940A (en) * 2000-12-28 2002-10-04 Seiko Epson Corp Logo data preparing device, logo data preparing method, and recording medium
JP2007011514A (en) * 2005-06-28 2007-01-18 Star Micronics Co Ltd Print system, control method of print system and program
JP2010017933A (en) * 2008-07-10 2010-01-28 Seiko Epson Corp Printer, printer control method, and driver
JP2010204856A (en) * 2009-03-02 2010-09-16 Toshiba Tec Corp Information processing apparatus and conversion information change program
JP2012106431A (en) * 2010-11-18 2012-06-07 Seiko Epson Corp Recording apparatus, recording system, method for controlling of recording apparatus, and program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09218959A (en) * 1996-02-13 1997-08-19 Ricoh Co Ltd Image processor
JP2002287940A (en) * 2000-12-28 2002-10-04 Seiko Epson Corp Logo data preparing device, logo data preparing method, and recording medium
JP2007011514A (en) * 2005-06-28 2007-01-18 Star Micronics Co Ltd Print system, control method of print system and program
JP2010017933A (en) * 2008-07-10 2010-01-28 Seiko Epson Corp Printer, printer control method, and driver
JP2010204856A (en) * 2009-03-02 2010-09-16 Toshiba Tec Corp Information processing apparatus and conversion information change program
JP2012106431A (en) * 2010-11-18 2012-06-07 Seiko Epson Corp Recording apparatus, recording system, method for controlling of recording apparatus, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016107457A (en) * 2014-12-04 2016-06-20 セイコーエプソン株式会社 Printer and control method for printer
JP2018022240A (en) * 2016-08-01 2018-02-08 東芝テック株式会社 Server device and program
JP2021108171A (en) * 2016-08-01 2021-07-29 東芝テック株式会社 Distribution system and distribution server

Also Published As

Publication number Publication date
JP6145978B2 (en) 2017-06-14

Similar Documents

Publication Publication Date Title
US9135534B2 (en) Image processing device, image processing system, and printing method
US9030704B2 (en) Function expansion method using print data for a point-of-sale terminal
US9013752B2 (en) Image processing device, printing device, and image processing method
US9110615B2 (en) Point of sale control device, control method, and storage medium storing a program for a point of sale device
US9058139B2 (en) Function expansion method using print data, and function expansion device
US10102457B2 (en) Host device, printing system, and data processing method
US9898691B2 (en) Control device, control system, and control method of a control device
US20130314726A1 (en) Media Processing Device and POS System
JP6155808B2 (en) CONTROL DEVICE, CONTROL SYSTEM, AND CONTROL DEVICE CONTROL METHOD
JP6145978B2 (en) Image processing apparatus, image processing system, and printing method
US10048901B2 (en) Control device, control method of a control device, and storage medium
US9990572B2 (en) Information processing apparatus, print data generation method, and storage medium
JP2007011515A (en) Print system, control method of print system and program
JP6394303B2 (en) Driver program, printing system, and data processing method
JP6186846B2 (en) CONTROL DEVICE, CONTROL SYSTEM, AND CONTROL DEVICE CONTROL METHOD
JP2007011514A (en) Print system, control method of print system and program
JP6019749B2 (en) Medium processing apparatus and POS system
JP2017111466A (en) Printer and printer control method
JP2012111217A (en) Printer and graphics printing method

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150803

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150803

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160628

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160705

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160727

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20161108

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20161213

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: 20170418

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170501

R150 Certificate of patent or registration of utility model

Ref document number: 6145978

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees