JP2008005380A - Image processor and image acquisition method for the same - Google Patents

Image processor and image acquisition method for the same Download PDF

Info

Publication number
JP2008005380A
JP2008005380A JP2006174944A JP2006174944A JP2008005380A JP 2008005380 A JP2008005380 A JP 2008005380A JP 2006174944 A JP2006174944 A JP 2006174944A JP 2006174944 A JP2006174944 A JP 2006174944A JP 2008005380 A JP2008005380 A JP 2008005380A
Authority
JP
Japan
Prior art keywords
image data
image
host computer
threshold value
processing
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.)
Withdrawn
Application number
JP2006174944A
Other languages
Japanese (ja)
Inventor
Yuji Takiguchi
勇治 滝口
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 JP2006174944A priority Critical patent/JP2008005380A/en
Publication of JP2008005380A publication Critical patent/JP2008005380A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor and an image acquisition method for the same, the apparatus and the method providing prescribed image data by the main scanning performed by the image processor, even when a threshold for binarizing image data by prescanning cannot be determined. <P>SOLUTION: A complex processor 2 generates two-gradation image data, by scanning an image of a check 100 with a command from a host computer; however, even when a threshold for generating the two-gradation image data cannot be determined, shifts the present processing to a succeeding processing step, without having to execute error processings by the host computer 3. Processing steps include processing operation (STs 111 to 112) for obtaining image data of 256 gradations, processing operation (STs 121 to 124) for obtaining two-gradation image data, by executing binarizing processing after the sharpening processing of a main-scanned image and processing operation (STs 131 to 133) for obtaining two-gradation image data by using a preset threshold, and which processing operation is to be executed can be set. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、ホストコンピュータからの指令によって読み取り対象の媒体の表面をスキャンし、取得した画像データに所定の画像処理を施してホストコンピュータに転送する画像処理装置の画像取得方法に関する。   The present invention relates to an image acquisition method of an image processing apparatus that scans the surface of a medium to be read according to a command from a host computer, performs predetermined image processing on acquired image data, and transfers the image data to a host computer.

小切手を用いた電子決済では、小切手に記載された口座番号等の情報に基づいて、店のホストコンピュータと決済機関のサーバとの間で通信回線を介した決済処理が行なわれる。このため、顧客が振り出した小切手は決済機関へ持ち込む必要がないので、必要な表書および裏書がされたのち、顧客に返却されている。しかし、小切手をそのまま顧客に返却してしまうと、店には、小切手によって決済が行なわれたという証拠が残らない。そこで、店では返却前にその小切手の画像をスキャンして、得られた画像データを決済の証拠として保存するようにしている。   In electronic payment using a check, payment processing is performed between a host computer of a store and a server of a payment institution via a communication line based on information such as an account number written on the check. For this reason, there is no need to bring the check drawn out by the customer to the clearing house, so the necessary book and endorsement are made and returned to the customer. However, if the check is returned to the customer as it is, there is no evidence in the store that the payment was made with the check. Therefore, the store scans the image of the check before returning it, and stores the obtained image data as proof of payment.

小切手のスキャンはホストコンピュータに接続された画像処理装置によって行なわれる。画像処理装置は、スキャンして得られた高階調の画像データを白黒2階調の2階調画像データにする2値化処理を行なった後、ホストコンピュータに転送する。画像処理装置で2値化処理を行なうのは、画像データのデータ容量を小さくするためであり、画像データが転送される店のホストコンピュータにおいて、多くの顧客が使用した多数の小切手の画像データを長期間に亘って保存しなければならないという必要性からである。   The check scan is performed by an image processing device connected to a host computer. The image processing apparatus performs binarization processing that converts high gradation image data obtained by scanning into two gradation image data of black and white, and then transfers the data to the host computer. The image processing apparatus performs the binarization process in order to reduce the data capacity of the image data. In the store host computer to which the image data is transferred, a large number of check image data used by many customers are stored. This is because of the need to store for a long time.

2値化処理を行なうために、画像処理装置では、まず、小切手の一部をプレスキャンして、得られた情報から閾値を決定する。次に本スキャンを行って、得られた画像データをこの閾値に基づいて2階調画像データにする。しかし、小切手の中には背景全体が暗く、閾値を決定できないものがある。そこで、画像処理装置はプレスキャンによって閾値を決定できたか否かの結果(プレスキャンエラーの有無)を一旦ホストコンピュータに送信し、その通知を受けたホストコンピュータがプレスキャンエラーが発生している場合には必要なエラー処理を行ない、しかる後に本スキャンの指令を画像処理装置に出すようにしている(特許文献1、2参照)。
特開2003−150799号公報の第5図 特開2003−150800号公報の第4図
In order to perform binarization processing, the image processing apparatus first pre-scans a part of a check and determines a threshold value from the obtained information. Next, a main scan is performed, and the obtained image data is converted to two-tone image data based on this threshold value. However, some checks are too dark to determine the threshold. Therefore, the image processing apparatus once transmits a result (whether there is a pre-scan error) whether or not the threshold value can be determined by pre-scan to the host computer, and the host computer that received the notification has a pre-scan error. In this case, necessary error processing is performed, and then a main scan command is issued to the image processing apparatus (see Patent Documents 1 and 2).
FIG. 5 of JP2003-150799A FIG. 4 of Japanese Patent Laid-Open No. 2003-150800

しかし、ホストコンピュータが画像処理装置から送信されてくるプレスキャンエラーの有無を確認し、プレスキャンエラーが発生している場合に必要なエラー処理を行ない、しかる後に、ホストコンピュータが画像処理装置に本スキャンの指令を送信するような画像取得方法では、ホストコンピュータと画像処理装置との間のトランザクションが増えるとともに、ホストコンピュータにおけるアプリケーションのエラーハンドリングが煩雑になるという問題がある。   However, the host computer checks whether there is a pre-scan error transmitted from the image processing apparatus, performs necessary error processing if a pre-scan error has occurred, and then the host computer connects to the image processing apparatus. In an image acquisition method in which a scan command is transmitted, there are problems that transactions between the host computer and the image processing apparatus increase and application error handling in the host computer becomes complicated.

本発明の課題は、このような点に鑑みて、プレスキャンによって閾値が決定できない場合でも、プレスキャンエラーの処理をホストコンピュータで行うことなく本スキャンを行なって、所望の画像処理が施された画像データをホストコンピュータに転送する画像処理装置の画像取得方法を提案することにある。また、当該画像取得方法によって画像の読み取りを行なう画像処理装置を提案することにある。   In view of the above, the present invention has been made in view of the above points. Even when the threshold value cannot be determined by prescanning, the main scan is performed without performing the prescan error processing by the host computer, and the desired image processing is performed The object is to propose an image acquisition method of an image processing apparatus for transferring image data to a host computer. Another object of the present invention is to propose an image processing apparatus that reads an image by the image acquisition method.

上記課題を解決するために、本発明の画像処理装置の画像取得方法は、ホストコンピュータからスキャン開始指令を受信する受信工程と、前記スキャン開始指令を受信すると、読み取り対象の媒体の表面における少なくとも一部の領域をスキャンして、2階調よりも高い階調で第1画像データを取得するプレスキャン工程と、得られた前記第1画像データに基づき、当該第1画像データを2値化するための閾値を決定する閾値決定工程と、前記媒体の表面における少なくとも一部の領域をスキャンして、2階調よりも高い階調で第2画像データを取得する本スキャン工程と、前記閾値決定工程において前記閾値が決定されている場合に、前記第2画像データを前記閾値に基づいて2値化処理して2階調画像データを生成する2階調画像データ生成工程と、前記2階調画像データを前記ホストコンピュータに送信する画像データ送信工程と、前記閾値決定工程において前記閾値が決定不能であった場合に、前記第2画像データ、または、当該第2画像データに所定の画像処理を施して得られる第3画像データに、前記閾値が決定不能であった旨を示すエラー情報を付加して前記ホストコンピュータに送信する処理工程とを含むことを特徴とする。   In order to solve the above-described problem, an image acquisition method for an image processing apparatus according to the present invention includes a receiving step of receiving a scan start command from a host computer, and at least one on the surface of a medium to be read when the scan start command is received. The first image data is binarized on the basis of the pre-scanning step of scanning the area of the portion and acquiring the first image data with a gradation higher than two gradations, and the obtained first image data A threshold value determining step for determining a threshold value for scanning, a main scan step for scanning at least a part of the surface of the medium and acquiring second image data with a gradation higher than two gradations, and the threshold determination Two-tone image data for generating two-tone image data by binarizing the second image data based on the threshold value when the threshold value is determined in the process The second image data or the second image data when the threshold value cannot be determined in the generating step, the image data transmitting step for transmitting the two-tone image data to the host computer, and the threshold value determining step. Including a processing step of adding error information indicating that the threshold value cannot be determined to third image data obtained by performing predetermined image processing on the image data, and transmitting the error information to the host computer. To do.

本発明によれば、画像処理装置は、閾値決定工程によって閾値が決定不能な場合でも次の処理工程に移行して、得られた第2画像データ、または、第2画像データに所定の画像処理を施して得られる第3画像データをホストコンピュータに送信する。プレスキャンエラーが発生しても、そのエラー処理をホストコンピュータで行うことなく次の処理工程に移行するので、ホストコンピュータでは、プレスキャンエラー発生に伴うエラー処理、および、プレスキャンエラー発生から本スキャン工程に移行する間のトランザクション処理がなくなる。従って、ホストコンピュータに搭載されるアプリケーションのエラーハンドリングを簡略化することができる。   According to the present invention, the image processing apparatus moves to the next processing step even when the threshold value cannot be determined by the threshold value determination step, and performs predetermined image processing on the obtained second image data or second image data. The third image data obtained by applying is transmitted to the host computer. Even if a pre-scan error occurs, the host computer moves to the next processing step without performing the error processing. Therefore, the host computer scans the error from the pre-scan error occurrence and the main scan from the occurrence of the pre-scan error. There is no transaction processing during the transition to the process. Therefore, it is possible to simplify error handling of applications installed in the host computer.

また、閾値が決定不能な場合でも、第2画像データまたは第3画像データがホストコンピュータに送信されるので、ホストコンピュータはスキャン開始指令の結果として必ず画像を取得できる。さらに、ホストコンピュータに送信される画像データにはエラー情報が付加されているので、ホストコンピュータが画像データを利用する際に便利である。   Even when the threshold value cannot be determined, the second image data or the third image data is transmitted to the host computer, so that the host computer can always acquire an image as a result of the scan start command. Further, since error information is added to the image data transmitted to the host computer, it is convenient when the host computer uses the image data.

ここで、本スキャン工程で得られた2階調よりも高い階調の第2画像データがホストコンピュータに送信される場合には、第2画像データは、閾値が決定されている場合に生成される2階調画像データと比較してデータ容量は大きいが、2値化処理した場合には損失してしまう可能性がある媒体表面の情報を、損失させることなく保持しているという利点がある。   Here, when the second image data having a higher gradation than the two gradations obtained in the main scanning process is transmitted to the host computer, the second image data is generated when the threshold is determined. The data capacity is large compared to the two-tone image data, but there is an advantage that the information on the surface of the medium that may be lost when binarized is retained without being lost. .

本発明において、前記第3画像データは、前記第2画像データに鮮鋭処理を施して鮮鋭画像データを生成し、当該鮮鋭画像データを予め設定されている設定閾値に基づいて2値化処理して得られる第2の2階調画像データとすることができる。本スキャン工程で得られた第2画像データに対して、媒体表面に記された文字や記号等の輪郭を強調する鮮鋭処理をした後に2値化処理を施すので、通常の第2画像データを2値化処理した場合には損失してしまう可能性がある情報を損失させることなく第2の2階調画像データを生成できる。また、第3画像データ(第2の2階調画像データ)は2階調画像データなので、ホストコンピュータに送信される画像データのデータ容量が小さく、保存にも適している。   In the present invention, the third image data is sharpened on the second image data to generate sharp image data, and the sharp image data is binarized based on a preset threshold value. The obtained second two-tone image data can be obtained. Since the second image data obtained in the main scanning process is subjected to a sharpening process for emphasizing the outline of characters and symbols written on the surface of the medium, a binarization process is performed. The second two-tone image data can be generated without losing information that may be lost when the binarization process is performed. In addition, since the third image data (second two-tone image data) is two-tone image data, the data volume of the image data transmitted to the host computer is small and suitable for storage.

本発明において、前記第3画像データは、前記第2画像データを、予め設定されている設定閾値に基づいて2値化処理して得られる第3の2階調画像データとすることができる。この処理動作では、予め設定された設定閾値で第2画像データを2値化処理して、第3の2階調画像データを生成するので、媒体表面の情報は2値化処理の過程で損失してしまう可能性はある。しかし、ホストコンピュータからのスキャン開始指令に対して、そのトランザクションを終了させることができる。また、第3画像データ(第3の2階調画像デ
ータ)は2階調画像データなので、ホストコンピュータに送信される画像データのデータ容量が小さく、保存にも適している。
In the present invention, the third image data may be third two-tone image data obtained by binarizing the second image data based on a preset threshold value. In this processing operation, the second image data is binarized with a preset threshold value to generate third two-tone image data, so that information on the medium surface is lost during the binarization process. There is a possibility of it. However, the transaction can be terminated in response to a scan start command from the host computer. In addition, since the third image data (third two-tone image data) is two-tone image data, the data capacity of the image data transmitted to the host computer is small and suitable for storage.

また、本発明では、前記ホストコンピュータからの設定指令に基づき、前記処理工程における処理動作を次の(1)ないし(3)のいずれにするのかを設定する設定工程を含むようにすることができる。
(1)前記第2画像データに前記エラー情報を付加して前記ホストコンピュータに送信する処理動作
(2)前記第3画像データとして、前記第2画像データに鮮鋭処理を施して鮮鋭画像データを生成し、当該鮮鋭画像データを予め設定されている設定閾値に基づいて2値化処理して得られる第2の2階調画像データを採用し、これに前記エラー情報を付加して前記ホストコンピュータに送信する処理動作
(3)前記第3画像データとして、前記第2画像データを、予め設定されている設定閾値に基づいて2値化処理して得られる第3の2階調画像データを採用し、これに前記エラー情報を付加して前記ホストコンピュータに送信する処理動作
Further, the present invention can include a setting step for setting which of the following (1) to (3) the processing operation in the processing step is performed based on a setting command from the host computer. .
(1) Processing operation for adding the error information to the second image data and transmitting it to the host computer. (2) As the third image data, sharpening processing is performed on the second image data to generate sharp image data. Then, the second two-tone image data obtained by binarizing the sharp image data based on a preset threshold value is adopted, and the error information is added to the second gradation image data to the host computer. Processing operation to be transmitted (3) As the third image data, third two-tone image data obtained by binarizing the second image data based on a preset threshold value is adopted. , Processing operation to which the error information is added and transmitted to the host computer

本発明によれば、閾値決定工程によって閾値が決定不能な場合の処理工程における処理動作が(1)〜(3)のように設定されており、いずれの処理動作を行なうかは、前記ホストコンピュータからの設定指令に基づき設定される。ホストコンピュータでは、設定指令によって閾値が決定不能な場合に移行する処理動作を予め選択しておくことができるので、ホストコンピュータに搭載されるアプリケーションの構築を容易にすることができる。   According to the present invention, the processing operation in the processing step when the threshold value cannot be determined by the threshold determination step is set as (1) to (3), and which processing operation is performed depends on the host computer. Is set based on the setting command from. In the host computer, it is possible to select in advance the processing operation to be shifted when the threshold value cannot be determined by the setting command, so that it is possible to easily construct an application mounted on the host computer.

ここで、前記受信工程において前記設定指令を受信するようにしてもよい。このようにすれば、閾値決定工程によって閾値が決定不能な場合にいずれの処理動作を行なうかを、小切手の画像のスキャン開始指令と共に設定できる。スキャンエラーが発生した後の処理動作を動的に設定することができるので、柔軟性のあるアプリケーションを構築できる。   Here, the setting command may be received in the receiving step. In this way, it is possible to set which processing operation is to be performed together with the check image scan start command when the threshold value cannot be determined by the threshold value determination step. Since the processing operation after a scan error occurs can be set dynamically, a flexible application can be constructed.

本発明において、前記第1画像データおよび前記第2画像データは、256階調の画像データであることが好ましい。   In the present invention, it is preferable that the first image data and the second image data are image data of 256 gradations.

また、本発明において、前記読取対象の媒体は小切手とすることができる。   In the present invention, the medium to be read can be a check.

次に、本発明の画像処置装置は、上述した画像取得方法によって、読み取り対象の媒体の表面の読み取り動作を行なうことを特徴とする。   Next, the image treatment apparatus of the present invention is characterized in that the reading operation of the surface of the medium to be read is performed by the above-described image acquisition method.

本発明によれば、画像処理装置は、閾値決定工程によって閾値が決定不能な場合でも次の処理工程に移行して、得られた第2画像データ、または、第2画像データに所定の画像処理を施して得られる第3画像データをホストコンピュータに送信する。プレスキャンエラーが発生しても、そのエラー処理をホストコンピュータで行うことなく次の処理工程に移行するので、ホストコンピュータでは、プレスキャンエラー発生に伴うエラー処理、および、プレスキャンエラー発生から本スキャン工程に移行する間のトランザクション処理がなくなる。従って、ホストコンピュータに搭載されるアプリケーションのエラーハンドリングを簡略化することができる。   According to the present invention, the image processing apparatus moves to the next processing step even when the threshold value cannot be determined by the threshold value determination step, and performs predetermined image processing on the obtained second image data or second image data. The third image data obtained by applying is transmitted to the host computer. Even if a pre-scan error occurs, the host computer moves to the next processing step without performing the error processing. Therefore, the host computer scans the error from the pre-scan error occurrence and the main scan from the occurrence of the pre-scan error. There is no transaction processing during the transition to the process. Therefore, it is possible to simplify error handling of applications installed in the host computer.

また、閾値が決定不能な場合でも第2画像データまたは第3画像データがホストコンピュータに送信されるので、ホストコンピュータはスキャン開始指令の結果として必ず画像を取得できる。さらに、ホストコンピュータに送信される画像データにはエラー情報が付加されているので、ホストコンピュータが画像データを利用する際に便利である。   Even when the threshold value cannot be determined, the second image data or the third image data is transmitted to the host computer, so that the host computer can always acquire an image as a result of the scan start command. Further, since error information is added to the image data transmitted to the host computer, it is convenient when the host computer uses the image data.

(小切手決済システムの全体構成)
以下に、図面を参照して、本発明を適用した複合処理装置の実施の形態を説明する。図1は、本発明の実施の形態に係る複合処理装置を含む小切手決済システムの外観図である。図2は、本形態の小切手決済システムのブロック構成図である。図3は図1に示す複合処理装置の小切手の搬送路周辺の構成を示す概略断面図である。
(Overall configuration of check payment system)
Embodiments of a composite processing apparatus to which the present invention is applied will be described below with reference to the drawings. FIG. 1 is an external view of a check settlement system including a composite processing apparatus according to an embodiment of the present invention. FIG. 2 is a block diagram of the check settlement system of this embodiment. FIG. 3 is a schematic cross-sectional view showing a configuration around the check conveyance path of the combined processing apparatus shown in FIG.

図1、2に示すように、本例の小切手の処理に用いられる小切手決済システム1は、複合処理装置2とレジスタ装置(ホストコンピュータ)3を備えている。複合処理装置2はホストコンピュータ3にケーブルで接続されて、店の会計カウンターに設置される。ホストコンピュータ3は通信回線を介して決済機関のサーバ4と接続される。   As shown in FIGS. 1 and 2, the check settlement system 1 used for the check processing of this example includes a composite processing device 2 and a register device (host computer) 3. The composite processing apparatus 2 is connected to the host computer 3 with a cable and is installed at the accounting counter of the store. The host computer 3 is connected to the settlement institution server 4 via a communication line.

複合処理装置2は、樹脂製の筺体を備えた略立方体をしており、正面側部分には電子決済を行なう小切手100を挿入する挿入口11を備えている。挿入口11から挿入された小切手100は、図3に示すように、複合処理装置2内をJ字形の搬送路12に沿って下側から上側へと搬送される。搬送中には、ホストコンピュータ3からの指令によって小切手100に対して必要な処理が行なわれ、その後、上面部分に形成された排出口13から排出される。搬送路の排出口に近い位置には、排出される直前に小切手100をスキャンするスキャナ部40がある。排出口13の後側にはロール紙排出口14が形成されており、筺体の後側部分に収納されたロール紙(不図示)に、会計の明細書や電子決済に必要な同意書などが印刷された後、ここから排出されるようになっている。   The composite processing apparatus 2 has a substantially cubic shape with a resin casing, and has an insertion slot 11 for inserting a check 100 for electronic settlement on the front side portion. As shown in FIG. 3, the check 100 inserted from the insertion slot 11 is conveyed from the lower side to the upper side along the J-shaped conveyance path 12 in the composite processing apparatus 2. During the conveyance, necessary processing is performed on the check 100 according to a command from the host computer 3, and then the sheet is discharged from the discharge port 13 formed in the upper surface portion. A scanner unit 40 that scans the check 100 immediately before being discharged is located near the discharge port of the conveyance path. A roll paper discharge port 14 is formed on the rear side of the discharge port 13, and an accounting statement, an agreement necessary for electronic settlement, etc. are provided on the roll paper (not shown) stored in the rear side portion of the housing. After printing, it is discharged from here.

ホストコンピュータ3は、店員が金額や電子決済の指示を入力する入力装置を兼ねたパネル部5と会計表示部6と記憶装置7とクレジットカードリーダ部8を備えている。ホストコンピュータ3は決済機関のサーバ4と通信回線で接続されているので、小切手100に記載された口座番号等の決済情報を決済機関のサーバ4に照会して、振り出された小切手100の有効性を確認することができる。   The host computer 3 includes a panel unit 5, a transaction display unit 6, a storage device 7, and a credit card reader unit 8, which also serve as an input device for a store clerk to input an amount and an electronic payment instruction. Since the host computer 3 is connected to the settlement institution server 4 via a communication line, the settlement information such as the account number described in the check 100 is inquired to the settlement institution server 4 to check the validity of the issued check 100. Sex can be confirmed.

図2、3を参照して、小切手決済システム1のブロック構成および各処理部の構成を説明する。複合処理装置2は中央演算装置(CPU)20と、複合処理装置2を制御する基本ソフトウェアや設定情報、スキャナで読み込んだ画像データ等を格納するためのメモリ21を備えている。CPU20とホストコンピュータ3のCPU30とは指令やデータを送受信可能に接続されている。CPU20はホストコンピュータ3からの指令によって、磁気インク文字読取部50、裏書印字部60、表書印字部65、スキャナ部40、ロール紙印字部70、小切手搬送部80、小切手位置検出部90を制御して、挿入口11から挿入された小切手100を搬送しながら必要な処理を行なう。   A block configuration of the check settlement system 1 and a configuration of each processing unit will be described with reference to FIGS. The composite processing apparatus 2 includes a central processing unit (CPU) 20 and a memory 21 for storing basic software and setting information for controlling the composite processing apparatus 2, image data read by a scanner, and the like. The CPU 20 and the CPU 30 of the host computer 3 are connected so that commands and data can be transmitted and received. The CPU 20 controls the magnetic ink character reading unit 50, the end printing unit 60, the front page printing unit 65, the scanner unit 40, the roll paper printing unit 70, the check transport unit 80, and the check position detection unit 90 according to commands from the host computer 3. Then, necessary processing is performed while conveying the check 100 inserted from the insertion slot 11.

磁気インク文字読取部50は、挿入された小切手100の最下欄にあるMICR(Magnetic Ink Character Recognition)記録領域101(図1参照)に印刷された磁気インク文字から口座番号等の振出人の決済情報を読み取るMICRヘッド51を備えており、挿入口11に近い位置に配置されている。読み取った決済情報はCPU20からホストコンピュータ3に送信される。   The magnetic ink character reading unit 50 uses the magnetic ink characters printed in the MICR (Magnetic Ink Character Recognition) recording area 101 (see FIG. 1) in the lowermost column of the inserted check 100 to make payment of the account number. A MICR head 51 for reading information is provided, and is arranged at a position close to the insertion slot 11. The read settlement information is transmitted from the CPU 20 to the host computer 3.

裏書印字部60は振出人の認証番号、日付、使用金額等の項目を印字する。表書印字部65は、振り出された小切手100に表書きがない場合に、支払先、日付、金額等の事項を印字する。各印字部はドットインパクト方式による印字ヘッド61、66を備えており、裏書印字部60の印字ヘッド61が搬送路の上流側、表書印字部65の印字ヘッド66が下流側に配置されている。裏書印字部の印字ヘッド61と裏書印字部の印字ヘッド66はそれぞれ小切手100の表裏の面を印刷できるように搬送路12を挟んで反対側に配置
されている。各印字ヘッド61、66の搬送路12を挟んだ反対側には、それぞれプラテン62、67が配置されている。なお、印字ヘッド61、66としては、インクジェット式など、他の方式のものを用いることもできる。
The endorsement printing unit 60 prints items such as the identification number, date, amount of money used, etc. The front cover printing unit 65 prints matters such as the payee, date, and amount when there is no front cover on the drawn check 100. Each printing unit includes dot impact type print heads 61 and 66. The print head 61 of the endorsement printing unit 60 is arranged on the upstream side of the transport path, and the print head 66 of the cover printing unit 65 is arranged on the downstream side. . The print head 61 of the endorsement print unit and the print head 66 of the endorse print unit are arranged on opposite sides of the conveyance path 12 so that the front and back surfaces of the check 100 can be printed. Platens 62 and 67 are disposed on the opposite sides of the print heads 61 and 66 with the conveyance path 12 therebetween. As the print heads 61 and 66, other types such as an ink jet type can be used.

スキャナ部40は、裏書、表書が印字されて電子決済が完了した小切手100の表面を読み取る。排出口13の付近に取り付けられた密着型イメージセンサ41によって、搬送路12を排出口13に向かって搬送される小切手100をスキャンするようになっている。搬送路12を挟んだ反対側には、小切手100をイメージセンサに密着させながら搬送する送りローラ42が配置されている。スキャナ部40では、まず、小切手100のMICR記録領域101の後側部分の所定領域を256階調でプレスキャンする。そして得られた画像データ(第1画像デ−タ)の輝度分布から、画像データを2値化処理するための閾値を決定する。また、小切手100の表面全体を本スキャンして256階調の画像データ(第2画像データ)を得る。閾値が決定している場合には、その閾値に基づいて256階調の画像データを2値化処理し2階調画像データ(第1の2階調画像データ)を生成する。生成された2階調画像データは属性情報とともにホストコンピュータ3に送信される。また、閾値が決定しなかった場合には、後述する所定の処理動作を行なって取得した画像データをホストコンピュータに送信するようになっている。   The scanner unit 40 reads the surface of the check 100 on which the end document and the front cover are printed and the electronic payment is completed. A check 100 transported through the transport path 12 toward the discharge port 13 is scanned by a contact image sensor 41 attached in the vicinity of the discharge port 13. On the opposite side across the conveyance path 12, a feed roller 42 that conveys the check 100 in close contact with the image sensor is disposed. The scanner unit 40 first pre-scans a predetermined area in the rear portion of the MICR recording area 101 of the check 100 with 256 gradations. Then, a threshold for binarizing the image data is determined from the luminance distribution of the obtained image data (first image data). Further, the entire surface of the check 100 is scanned to obtain 256-gradation image data (second image data). When the threshold value is determined, the 256 gradation image data is binarized based on the threshold value to generate two gradation image data (first two gradation image data). The generated two-tone image data is transmitted to the host computer 3 together with the attribute information. When the threshold value is not determined, image data acquired by performing a predetermined processing operation described later is transmitted to the host computer.

ロール紙印字部70はサーマルライン方式の印字ヘッド(不図示)を備えており、会計の明細書や小切手を電子的に決済することへの同意書などを印刷して、ロール紙排出口14から排出する。また、ロール紙排出口14にはオートカッター(不図示)を備えており、必要な印刷が終了したロール紙が排出されると、適切な位置でロール紙を切断する。   The roll paper printing unit 70 is provided with a thermal line type print head (not shown), and prints an accounting statement, a consent for electronic payment of a check, etc. from the roll paper outlet 14. Discharge. Further, the roll paper discharge port 14 is provided with an auto cutter (not shown), and when the roll paper for which necessary printing is completed is discharged, the roll paper is cut at an appropriate position.

小切手搬送部80は、挿入口11に挿入された小切手100を搬送路12に沿って排出口まで搬送する。小切手100を挟む一対の搬送ローラ81、82を備えており、この搬送ローラを駆動することにより小切手100を搬送する。搬送ローラ81、82は正逆両方向に回転制御されるものなので、小切手100は前後方向のいずれにも搬送される。   The check conveyance unit 80 conveys the check 100 inserted into the insertion port 11 along the conveyance path 12 to the discharge port. A pair of transport rollers 81 and 82 sandwiching the check 100 is provided, and the check 100 is transported by driving the transport rollers. Since the transport rollers 81 and 82 are rotationally controlled in both forward and reverse directions, the check 100 is transported in both the front and rear directions.

小切手位置検出部90は、センサ91、92、93によって搬送されてくる小切手100が各処理部の処理を開始する位置に到達したことを検出する。各センサとしては、反射型のフォトセンサ等が用いられる。小切手100が適切な位置に到達したことを検出すると、CPU20は各処理部による処理を開始する。   The check position detection unit 90 detects that the check 100 conveyed by the sensors 91, 92, and 93 has reached a position where processing of each processing unit is started. As each sensor, a reflective photosensor or the like is used. When it is detected that the check 100 has reached an appropriate position, the CPU 20 starts processing by each processing unit.

(小切手決済システムによる決済の流れ)
図4を参照して、小切手決済システム1による決済の流れを説明する。顧客が、買い物や食事の支払に小切手100による電子決済を望む場合には、店員はホストコンピュータ3に支払い金額等を入力した後、電子決済を行なう指示を入力する。また、表書の有無を入力する。店員の入力が終わると、ホストコンピュータ3は複合処理装置2に対して、小切手100から決済情報を読み取る読取指令を送信する(ST1)。
(Flow of payment by check payment system)
With reference to FIG. 4, the flow of settlement by the check settlement system 1 will be described. When the customer desires electronic payment by check 100 for shopping or meal payment, the store clerk inputs the payment amount into the host computer 3 and then inputs an instruction for electronic payment. Also, enter the presence or absence of a book. When the store clerk's input is completed, the host computer 3 transmits a reading command for reading the settlement information from the check 100 to the composite processing apparatus 2 (ST1).

振り出された小切手100の表面を上にして店員が複合処理装置2の挿入口11に小切手100を挿入すると、読取指令を受信した複合処理装置2は(ST2)、読取指令に従って、小切手100を磁気インク文字読取部50まで搬送して、MICR記録領域101から口座番号等の決済情報を読み取る(ST3)。CPU20は読み取った決済情報をホストコンピュータ3へ送信する(ST4)。   When the store clerk inserts the check 100 into the insertion slot 11 of the composite processing apparatus 2 with the surface of the check 100 being swung up, the composite processing apparatus 2 that has received the reading command (ST2) removes the check 100 according to the reading command. It is conveyed to the magnetic ink character reading unit 50, and payment information such as an account number is read from the MICR recording area 101 (ST3). CPU 20 transmits the read settlement information to host computer 3 (ST4).

ホストコンピュータ3は決済情報を受信すると(ST5)、決済情報に基づいて決済機関サーバー4へ小切手100の有効性を照会する(ST6)。小切手100の有効性が確認されると(ST7)、ホストコンピュータ3は決済処理を行うとともに(ST8)、複合処理装置2に対して、小切手100の裏面に必要な裏書を印字する印字指令を送信する
。また、事前に小切手表面に表書がない旨の入力があった場合には、ホストコンピュータ3に入力された支払い金額等に基づいて必要な表書を印字する印字指令を送信する。さらに、小切手100による電子決済の証拠として小切手100の表面画像を保存するために、小切手100をスキャンして排出するスキャン開始指令を送信する(ST9)。なお、小切手100の有効性が確認されなかった場合には、ホストコンピュータ3は小切手排出命令を複合処理装置2に送信し、小切手100は複合処理装置2からを排出される(不図示)。
When the host computer 3 receives the settlement information (ST5), the host computer 3 inquires the settlement institution server 4 about the validity of the check 100 based on the settlement information (ST6). When the validity of the check 100 is confirmed (ST7), the host computer 3 performs a settlement process (ST8) and transmits a print command for printing a necessary endorsement on the back side of the check 100 to the composite processing apparatus 2. To do. In addition, if there is an input indicating that there is no book on the check surface in advance, a print command for printing the necessary book is transmitted based on the payment amount entered in the host computer 3. Further, in order to save the surface image of the check 100 as evidence of electronic payment by the check 100, a scan start command for scanning and discharging the check 100 is transmitted (ST9). If the validity of the check 100 is not confirmed, the host computer 3 transmits a check discharge command to the composite processing apparatus 2, and the check 100 is discharged from the composite processing apparatus 2 (not shown).

印字指令、スキャン開始指令を受信すると(ST10)、複合処理装置2のCPU20はそれらの指令に従って、小切手100を裏書印字部60に搬送して、必要な裏書を印字する(ST11)。また、表書の印字指令を受けている場合には、小切手100を表書印字部65に搬送して、必要な表書を印字する(ST11)。   When the print command and the scan start command are received (ST10), the CPU 20 of the combined processing apparatus 2 conveys the check 100 to the endorsement printing unit 60 and prints the necessary endorsement in accordance with these commands (ST11). If a book print command has been received, the check 100 is conveyed to the book print unit 65 to print a necessary book (ST11).

印字が終了すると、CPU20は、スキャン開始指令に従って小切手100をスキャナ部40に搬送して、スキャン処理を開始する(ST12)。スキャナ部40では、まず、小切手100の所定領域を256階調でプレスキャンして(ST100)、256階調のプレスキャン画像データ(第1画像データ)を得る。そして、プレスキャン画像データから小切手100の表面全体をスキャンして得られる画像データを2値化するための閾値の算出を試みる。本例では、プレスキャン画像データからCPU20が各画素の輝度分布を算出し、この輝度分布の特徴から適切な閾値を決定する(ST101)。閾値の決定には、周知のアルゴリズムを利用することができる。   When printing is completed, the CPU 20 conveys the check 100 to the scanner unit 40 in accordance with a scan start command, and starts scan processing (ST12). In the scanner unit 40, first, a predetermined area of the check 100 is pre-scanned with 256 gradations (ST100), and 256-gradation pre-scan image data (first image data) is obtained. Then, an attempt is made to calculate a threshold value for binarizing the image data obtained by scanning the entire surface of the check 100 from the pre-scan image data. In this example, the CPU 20 calculates the luminance distribution of each pixel from the prescan image data, and determines an appropriate threshold value from the characteristics of the luminance distribution (ST101). A known algorithm can be used to determine the threshold value.

ここで、輝度分布から閾値を決定できない場合がある。例えば、小切手の地模様が全体に暗い場合など輝度分布からその特徴を判別できない場合には、CPU20は適切な閾値を決定することができない。この場合には、CPU20はプレスキャンエラーを発生させる(ST102)。なお、CPU20がプレスキャンエラーが発生した場合の処理は後述する。   Here, the threshold value may not be determined from the luminance distribution. For example, when the feature cannot be determined from the luminance distribution, for example, when the background pattern of the check is dark, the CPU 20 cannot determine an appropriate threshold value. In this case, the CPU 20 generates a pre-scan error (ST102). The processing when the CPU 20 generates a pre-scan error will be described later.

適切な閾値が決定されプレスキャンエラーが発生しない場合には、小切手100を本スキャンして得られる画像データを2値化処理しても、小切手表面に記されたサイン、支払先、日付、金額、口座番号等の決済の証拠となる情報の損失がなく、2階調画像データからでもそれらの情報が判別が可能であると判断される。そこで、スキャナ部40は小切手100の表面全体をスキャンする本スキャンを行なう(ST103)。本スキャンによって256階調の画像データ(第2画像データ)が得られる。   If an appropriate threshold is determined and no pre-scan error occurs, the signature, payee, date, amount on the check surface will be displayed even if the image data obtained by performing the main scan of the check 100 is binarized. Therefore, it is determined that there is no loss of information that is proof of settlement such as an account number, and that the information can be discriminated even from the two-tone image data. Therefore, the scanner unit 40 performs a main scan that scans the entire surface of the check 100 (ST103). Image data of 256 gradations (second image data) is obtained by the main scan.

次に、CPU20は、得られた256階調の画像データを、ST101で決定した閾値に基づいて2値化処理を行ない、2階調画像データ(第1の2階調画像データ)を生成する(ST104)。2階調画像データが生成されると、CPU20は、生成した2階調画像データをホストコンピュータ3に送信する(ST105)。また、本形態では、生成した2階調画像データと共に、この2階調画像データはプレスキャンエラーが発生せず、「正常」に処理されたものであることを示す属性情報をホストコンピュータ3に送信する。スキャン処理(ST12)が終了した小切手100は、そのまま搬送されて排出口13から排出される(ST13)。   Next, the CPU 20 binarizes the obtained 256-gradation image data based on the threshold value determined in ST101, and generates 2-gradation image data (first 2-gradation image data). (ST104). When the two gradation image data is generated, the CPU 20 transmits the generated two gradation image data to the host computer 3 (ST105). In this embodiment, together with the generated two-tone image data, the two-tone image data is provided with attribute information indicating that the pre-scan error does not occur and is processed “normally” in the host computer 3. Send. The check 100 for which the scanning process (ST12) is completed is conveyed as it is and discharged from the discharge port 13 (ST13).

2階調画像データと属性情報を受信したホストコンピュータ3は(ST14)、小切手100の口座番号や金額等決済データと共に、それらを記憶装置7へ記録する(ST15)。そして、複合処理装置2に対して、会計の明細書および同意書の発行指令を送信する(ST16)。   The host computer 3 that has received the two-tone image data and the attribute information (ST14) records them together with the settlement data such as the account number and amount of the check 100 in the storage device 7 (ST15). Then, an accounting statement and consent issuance command are transmitted to the composite processing apparatus 2 (ST16).

発行指令を受信した複合処理装置2のCPU20は(ST17)、発行指令に従って、
ロール紙印字部70に、会計の明細書および正副2通の同意書を発行させる(ST18)。店では会計明細書、正副2通の同意書を排出された小切手100とともに顧客に渡す。正の同意書に買物客の署名を受けた後、回収して店で保管する。以上で、小切手100による電子決済の手続は完了する。
The CPU 20 of the composite processing apparatus 2 that has received the issue command (ST17)
The roll paper printing unit 70 is allowed to issue a bill of accounting and two consent forms (ST18). At the store, the account statement and two consent forms are delivered to the customer together with the discharged check 100. After receiving the shopper's signature on the positive consent form, collect it and store it at the store. This completes the electronic payment procedure using the check 100.

(プレスキャンエラーが発生した場合)
スキャン処理(ST12)において、プレスキャンから得られた情報から適切な閾値が決定されず、プレスキャンエラーが発生した場合(ST102)、それ以降に行なわれる処理を、以下に説明する。
(When a pre-scan error occurs)
In the scan process (ST12), when an appropriate threshold value is not determined from the information obtained from the prescan and a prescan error occurs (ST102), processes performed after that will be described below.

プレスキャンして得られた画像データからCPU20が適切な閾値が決定できないということは、本スキャンして得られた画像データを2値化処理した場合には、小切手表面に記された決済の証拠となる情報の一部が損失してしまう可能性が高いということである。従って、従来の複合処理装置では、発生したプレスキャンエラーをホストコンピュータに送信して、ホストコンピュータ(アプリケーション)がエラー処理を行なっていた。また、エラー処理後にホストコンピュータから新たな設定による本スキャンの指令が送られてくるのを待っていた。   The fact that the CPU 20 cannot determine an appropriate threshold value from the image data obtained by pre-scanning means that, when the image data obtained by the main scanning is binarized, evidence of the settlement written on the check surface This means that there is a high possibility that a part of the information will be lost. Therefore, in the conventional composite processing apparatus, the generated prescan error is transmitted to the host computer, and the host computer (application) performs error processing. In addition, after the error processing, the host computer waits for a command for a main scan with new settings to be sent.

しかし、本形態の複合処理装置2は、プレスキャンエラーが発生しても、エラー処理をホストコンピュータ3で行なうことなく、次の処理工程に移行するようになっている。また、プレスキャンエラーが発生した後に移行する処理工程の処理動作として、予め複数の処理動作が規定されており、いずれの処理動作を行うか設定できるようになっている。   However, even if a pre-scan error occurs, the composite processing apparatus 2 according to the present embodiment moves to the next processing step without performing error processing by the host computer 3. In addition, a plurality of processing operations are defined in advance as processing operations of processing steps to be shifted after the occurrence of a pre-scan error, and it is possible to set which processing operation is performed.

いずれの処理動作を行うかは、ホストコンピュータ3が複合処理装置2にスキャン開始指令を送信する工程(ST9)において、画像処理装置2の処理動作を予め設定しておくための設定指令を送信することにより設定できる。また、小切手決済システム1の初期化時などにホストコンピュータ3から画像処理装置2へ送信する設定指令によって、予め設定することができる。本形態では、処理動作として以下の3つが規定されている。   Which processing operation is to be performed is determined by transmitting a setting command for setting the processing operation of the image processing device 2 in advance in the step (ST9) in which the host computer 3 transmits a scan start command to the composite processing device 2. Can be set. Further, it can be set in advance by a setting command transmitted from the host computer 3 to the image processing apparatus 2 when the check settlement system 1 is initialized. In this embodiment, the following three are defined as processing operations.

第1の処理動作は、プレスキャンエラー発生後に、小切手全体を256階調で本スキャンするとともに(ST111)、得られた256階調の画像データ(第2画像データ)に画像処理を施すことなく、ホストコンピュータ3に送信するものである(ST112)。また、ホストコンピュータ3に画像データを送信する際には、「プレスキャンエラーが発生したため、設定を変更してスキャンした」旨の属性情報を付加して送信する。   In the first processing operation, after the pre-scan error occurs, the entire check is scanned in 256 gradations (ST111), and the obtained 256 gradation image data (second image data) is not subjected to image processing. Is transmitted to the host computer 3 (ST112). Further, when transmitting image data to the host computer 3, the attribute information indicating that “the pre-scan error has occurred and the setting has been changed and scanned” is added and transmitted.

第1の処理動作では、本スキャン(ST111)で得られた256階調の画像データに対して2値化処理は行なわれない。従って、画像データのデータ容量は2階調画像データに比較して大きいものとなる。しかし、2値化処理した場合には損失してしまう可能性がある決済の証拠となる情報の損失を回避することができるので、ホストコンピュータ3に送信した画像データを小切手100による決算の証拠として採用することができる。   In the first processing operation, the binarization process is not performed on the image data of 256 gradations obtained in the main scan (ST111). Accordingly, the data capacity of the image data is larger than that of the two gradation image data. However, since it is possible to avoid the loss of information that is evidence of settlement that may be lost if binarization processing is performed, the image data transmitted to the host computer 3 is used as evidence of the settlement by the check 100. Can be adopted.

第2の処理動作は、プレスキャンエラー発生後に、小切手全体を256階調で本スキャンするとともに(ST121)、得られた256階調の画像データ(第2画像データ)に対して鮮鋭処理(ST122)と2値化処理(ST123)とをこの順番で行い、2階調画像データ(第3画像データ:第2の2階調画像データ)を生成するものである。生成された2階調画像データは、「プレスキャンエラーが発生したため、設定を変更してスキャンした」旨の属性情報と共にホストコンピュータ3に送信される(ST124)。   In the second processing operation, after the pre-scan error occurs, the entire check is subjected to main scanning with 256 gradations (ST121), and the obtained 256 gradation image data (second image data) is sharpened (ST122). ) And binarization processing (ST123) are performed in this order to generate two-tone image data (third image data: second two-tone image data). The generated two-tone image data is transmitted to the host computer 3 together with attribute information indicating that “the pre-scan error has occurred and the setting has been changed and scanned” (ST124).

ここで、鮮鋭処理とは、小切手表面に記された文字や模様の輪郭などのエッジ領域を際立たせるように画像処理するものである。また、エッジ領域とは、対象画素と周囲画素と
の画素値(輝度)の差が予め定められた閾値以上の領域をいう。鮮鋭処理は、例えば、特開2004−54510号公報に開示の方法を採用することができる。
Here, the sharpening process is an image process in which an edge region such as an outline of a character or a pattern written on the surface of a check is highlighted. An edge region is a region where a difference in pixel value (luminance) between a target pixel and surrounding pixels is equal to or greater than a predetermined threshold. For the sharpening process, for example, a method disclosed in Japanese Patent Application Laid-Open No. 2004-54510 can be employed.

本スキャンにより得られた256階調の画像データを鮮鋭処理すれば、全体に暗い色調の背景が除去されて、小切手100の表面に記された文字等の輪郭が強調された鮮鋭画像データが得られる。従って、この鮮鋭画像データに対して2値化処理を行なえば、通常の状態の画像データを2値化処理した場合には損失してしまう可能性がある決済の証拠となる情報を、損失させることなく2値化して2階調画像データを生成することができる。また、最終的に2階調画像データが取得されるので、データ容量も小さく、画像データの転送および保存に適している。なお、2値化処理の閾値は、複合処理装置2に予め設定されている設定閾値が用いられるが、設定指令またはスキャン開始指令のコマンドの引数の値により、設定閾値の値を所望の値に変更できるようにしてもよい。   If the image data of 256 gradations obtained by the main scan is sharpened, the background of the dark tone is removed as a whole, and sharp image data in which the contours of characters and the like written on the surface of the check 100 are emphasized is obtained. It is done. Therefore, if binarization processing is performed on this sharp image data, information that is evidence of settlement that may be lost when image data in a normal state is binarized is lost. Bi-level image data can be generated without being binarized. In addition, since two-gradation image data is finally obtained, the data capacity is small, and it is suitable for transfer and storage of image data. The threshold value for the binarization process is a setting threshold value that is set in advance in the composite processing apparatus 2, but the value of the setting threshold value is set to a desired value depending on the value of an argument of the command for the setting command or the scan start command. You may make it changeable.

第3の処理動作は、プレスキャンエラーが発生した後、複合処理装置2のメモリ21に予め設定されている基準の設定値を変更せずに本スキャンおよび2値化処理を行ない、生成した2階調画像データをホストコンピュータ3に送信するものである。図4を参照して説明すると、複合処理装置2に予め設定されている基準の設定階調である256階調で本スキャンするとともに(ST131)、得られた256階調の画像データ(第2画像データ)に対して、予め設定されている基準の設定閾値に基づいて2値化処理を行って(ST132)、2階調画像データ(第3画像データ:第3の2階調画像データ)を生成する。生成された2階調画像データは、「プレスキャンエラーが発生したが、設定を変更せずスキャンした」旨の属性情報と共に、ホストコンピュータ3に送信される(ST133)。   The third processing operation is performed by performing the main scan and binarization processing without changing the reference setting value preset in the memory 21 of the composite processing apparatus 2 after the pre-scan error occurs. The gradation image data is transmitted to the host computer 3. Referring to FIG. 4, the main scan is performed with 256 gradations, which is a reference gradation set in advance in the composite processing apparatus 2 (ST131), and the obtained 256 gradation image data (second image). The image data) is binarized based on a preset reference threshold value (ST132), and two-tone image data (third image data: third two-tone image data) Is generated. The generated two-tone image data is transmitted to the host computer 3 together with attribute information indicating that “a pre-scan error has occurred, but scanning has been performed without changing the setting” (ST133).

第3の処理動作によれば、生成された2階調画像データからは、決済の証拠となる情報が判別できない可能性がある。しかし、小切手100の表面をスキャンした画像データが必要になるのは、電子決済によるトラブルが発生した場合のみであり、多くの場合には必要となることがないという経験則から、このような処理を選択することができる。また、複合処理装置2は、ホストコンピュータ3からのスキャン開始指令に対し、データ容量の小さい2階調画像データを送信して、そのトランザクションを終了させることができる。   According to the third processing operation, there is a possibility that information as evidence of settlement cannot be determined from the generated two-tone image data. However, the image data obtained by scanning the surface of the check 100 is necessary only when a trouble occurs due to electronic payment, and from such an empirical rule that it is not necessary in many cases, such processing is necessary. Can be selected. In response to a scan start command from the host computer 3, the composite processing apparatus 2 can transmit two-gradation image data with a small data capacity and terminate the transaction.

なお、スキャン処理(ST12)が終了した小切手100は排出口13から排出される(ST13)。また、複合処理装置2が送信した画像データおよび属性情報をホストコンピュータ3が受信するST14より後の小切手決済の処理は、プレスキャンエラーが発生しない場合の処理と同一である。   Note that the check 100 for which the scanning process (ST12) has been completed is discharged from the discharge port 13 (ST13). Further, the check settlement process after ST14 in which the host computer 3 receives the image data and attribute information transmitted by the multi-processing apparatus 2 is the same as the process when no pre-scan error occurs.

以上、本形態によれば、プレスキャンエラーが発生した場合でも、ホストコンピュータ3は発生したエラーを処理することなく、画像処理装置2が次の処理工程(ST111〜112、ST121〜124、ST131〜133)に移行して、第2の画像データまたは第3の画像データを生成して、ホストコンピュータ3に送信する。プレスキャンエラー発生に伴うエラー処理およびトランザクション処理がなくなるので、ホストコンピュータ3に搭載されるアプリケーションのエラーハンドリングを簡略化することができる。   As described above, according to the present embodiment, even when a prescan error occurs, the host computer 3 does not process the generated error, and the image processing apparatus 2 performs the next processing step (ST111-112, ST121-124, ST131- 133), the second image data or the third image data is generated and transmitted to the host computer 3. Since error processing and transaction processing accompanying the occurrence of a prescan error are eliminated, error handling of an application installed in the host computer 3 can be simplified.

また、複合処理装置2には、プレスキャンエラーが発生した場合に移行する処理工程として予め複数の処理動作が規定されており、ホストコンピュータ3がスキャン開始指令を送信する工程(ST9)において設定できるようになっている。また、小切手決済システム1の初期化時などにホストコンピュータ3から送信する設定指令によって設定できるようになっている。従って、ホストコンピュータ3では、プレスキャンエラーが発生した場合でも、所望の画像処理が施された画像データを必ず取得できる。よって、ホストコンピュータ3に搭載されるアプリケーションの構築が容易になる。   In the composite processing apparatus 2, a plurality of processing operations are defined in advance as processing steps to be shifted when a pre-scan error occurs, and can be set in the step (ST9) in which the host computer 3 transmits a scan start command. It is like that. In addition, it can be set by a setting command transmitted from the host computer 3 when the check settlement system 1 is initialized. Therefore, even if a prescan error occurs, the host computer 3 can always acquire image data that has undergone desired image processing. Therefore, it is easy to construct an application installed in the host computer 3.

本発明を適用した複合処理装置を含む小切手決済システムの外観図である。1 is an external view of a check settlement system including a composite processing apparatus to which the present invention is applied. 小切手決済システムのブロック構成図である。It is a block block diagram of a check settlement system. 複合処理装置の小切手の搬送路周辺の構成を示す概略断面図である。It is a schematic sectional drawing which shows the structure around the conveyance path of the check of a composite processing apparatus. 小切手決済システムの処理の流れを示すフロー図である。It is a flowchart which shows the flow of a process of a check payment system.

符号の説明Explanation of symbols

1・小切手決済システム、2・複合処理装置、3・レジスタ装置(ホストコンピュータ)、4・決済機関サーバ、5・パネル部、6・会計表示部、7・記憶装置、8・クレジットカードリーダ部、20、30・CPU、21・メモリ、40・スキャナ部、50・磁気インク文字読取部、60・裏書印字部、65・表書印字部、70・ロール紙印字部、80・小切手搬送部、90・小切手位置検出部、100・小切手、101・MICR記録領域 1. Check payment system 2. Compound processing device 3. Register device (host computer) 4. Settlement server 5. Panel unit 6. Accounting display unit 7. Storage device 8. Credit card reader unit 20, 30 CPU, 21 memory, 40 scanner unit, 50 magnetic ink character reading unit, 60 endorsement printing unit, 65 cover printing unit, 70 roll paper printing unit, 80 check transport unit, 90・ Check position detection unit, 100 ・ Check, 101 ・ MICR recording area

Claims (8)

ホストコンピュータからスキャン開始指令を受信する受信工程と、
前記スキャン開始指令を受信すると、読み取り対象の媒体の表面における少なくとも一部の領域をスキャンして、2階調よりも高い階調で第1画像データを取得するプレスキャン工程と、
得られた前記第1画像データに基づき、当該第1画像データを2値化するための閾値を決定する閾値決定工程と、
前記媒体の表面における少なくとも一部の領域をスキャンして、2階調よりも高い階調で第2画像データを取得する本スキャン工程と、
前記閾値決定工程において前記閾値が決定されている場合に、前記第2画像データを前記閾値に基づいて2値化処理して第1の2階調画像データを生成する2階調画像データ生成工程と、
前記第1の2階調画像データを前記ホストコンピュータに送信する画像データ送信工程と、
前記閾値決定工程において前記閾値が決定不能であった場合に、前記第2画像データ、または、当該第2画像データに所定の画像処理を施して得られる第3画像データに、前記閾値が決定不能であった旨を示すエラー情報を付加して前記ホストコンピュータに送信する処理工程とを含むことを特徴とする画像処理装置の画像取得方法。
A receiving step of receiving a scan start command from the host computer;
When receiving the scan start command, a pre-scan process of scanning at least a part of the surface of the medium to be read and acquiring the first image data with a gradation higher than two gradations;
A threshold value determining step for determining a threshold value for binarizing the first image data based on the obtained first image data;
A main scanning step in which at least a part of the surface of the medium is scanned to acquire second image data with a gradation higher than two gradations;
A two-tone image data generating step for generating first two-tone image data by binarizing the second image data based on the threshold value when the threshold value is determined in the threshold value determining step. When,
An image data transmission step of transmitting the first two-tone image data to the host computer;
When the threshold value cannot be determined in the threshold value determination step, the threshold value cannot be determined for the second image data or the third image data obtained by performing predetermined image processing on the second image data. An image acquisition method for an image processing apparatus, comprising: a processing step of adding error information indicating that the error has occurred and transmitting the error information to the host computer.
請求項1において、
前記第3画像データは、前記第2画像データに鮮鋭処理を施して鮮鋭画像データを生成し、当該鮮鋭画像データを予め設定されている設定閾値に基づいて2値化処理して得られる第2の2階調画像データであることを特徴とする画像処理装置の画像取得方法。
In claim 1,
The third image data is a second image obtained by sharpening the second image data to generate sharp image data, and binarizing the sharp image data based on a preset threshold value. An image processing method for an image processing apparatus, characterized in that the image data is two-tone image data.
請求項1において、
前記第3画像データは、前記第2画像データを、予め設定されている設定閾値に基づいて2値化処理して得られる第3の2階調画像データであることを特徴とする画像処理装置の画像取得方法。
In claim 1,
The third image data is third two-tone image data obtained by binarizing the second image data based on a preset threshold value. Image acquisition method.
請求項1において、
前記ホストコンピュータからの設定指令に基づき、前記処理工程における処理動作を次の(1)ないし(3)のいずれにするのかを設定する設定工程を含むことを特徴とする画像処理装置の画像取得方法。
(1)前記第2画像データに前記エラー情報を付加して前記ホストコンピュータに送信する処理動作
(2)前記第3画像データとして、前記第2画像データに鮮鋭処理を施して鮮鋭画像データを生成し、当該鮮鋭画像データを予め設定されている設定閾値に基づいて2値化処理して得られる第2の2階調画像データを採用し、これに前記エラー情報を付加して前記ホストコンピュータに送信する処理動作
(3)前記第3画像データとして、前記第2画像データを、予め設定されている設定閾値に基づいて2値化処理して得られる第3の2階調画像データを採用し、これに前記エラー情報を付加して前記ホストコンピュータに送信する処理動作
In claim 1,
An image acquisition method for an image processing apparatus, comprising: a setting step for setting which of the following (1) to (3) a processing operation in the processing step is performed based on a setting command from the host computer .
(1) Processing operation for adding the error information to the second image data and transmitting it to the host computer. (2) As the third image data, sharpening processing is performed on the second image data to generate sharp image data. Then, the second two-tone image data obtained by binarizing the sharp image data based on a preset threshold value is adopted, and the error information is added to the second gradation image data to the host computer. Processing operation to be transmitted (3) As the third image data, third two-tone image data obtained by binarizing the second image data based on a preset threshold value is adopted. , Processing operation to which the error information is added and transmitted to the host computer
請求項4において、
前記受信工程において前記設定指令を受信することを特徴とする画像処理装置の画像取得方法。
In claim 4,
An image acquisition method for an image processing apparatus, wherein the setting command is received in the reception step.
請求項1ないし5のうちのいずれかの項において、
前記第1画像データおよび前記第2画像データは、256階調の画像データであること
を特徴とする画像処理装置の画像取得方法。
In any one of claims 1 to 5,
The image acquisition method for an image processing apparatus, wherein the first image data and the second image data are image data of 256 gradations.
請求項1ないし6のうちのいずれかの項において、
前記読取対象の媒体は小切手であることを特徴とする画像処理装置の画像取得方法。
In any one of claims 1 to 6,
An image acquisition method for an image processing apparatus, wherein the medium to be read is a check.
請求項1ないし7のうちのいずれかの項に記載の画像取得方法によって、
読み取り対象の媒体の表面の読み取り動作を行なうことを特徴とする画像処理装置。
By the image acquisition method according to any one of claims 1 to 7,
An image processing apparatus for performing a reading operation on a surface of a medium to be read.
JP2006174944A 2006-06-26 2006-06-26 Image processor and image acquisition method for the same Withdrawn JP2008005380A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006174944A JP2008005380A (en) 2006-06-26 2006-06-26 Image processor and image acquisition method for the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006174944A JP2008005380A (en) 2006-06-26 2006-06-26 Image processor and image acquisition method for the same

Publications (1)

Publication Number Publication Date
JP2008005380A true JP2008005380A (en) 2008-01-10

Family

ID=39009372

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006174944A Withdrawn JP2008005380A (en) 2006-06-26 2006-06-26 Image processor and image acquisition method for the same

Country Status (1)

Country Link
JP (1) JP2008005380A (en)

Similar Documents

Publication Publication Date Title
US7584148B2 (en) Apparatus and method for processing a check, and a computer-readable recording medium storing a check processing control program
US9070163B2 (en) Check processing method, check processing program medium, and check processing apparatus
US7443525B2 (en) Image data processing method, image scanning apparatus, POS terminal, and electronic payment system
US7426291B2 (en) Apparatus and method for binarizing images of negotiable instruments using a binarization method chosen based on an image of a partial area
US7266230B2 (en) Method of providing an indication of quality of a document image and an apparatus therefor
AU2004233450B2 (en) Electronic Check Conversion Method
JP4003428B2 (en) Check processing apparatus and check processing method
US7143942B2 (en) Card processing apparatus and system, POS terminal for card processing, and credit card processing control method
US20030075596A1 (en) Negotiable instrument processing device, negotiable instrument processing method and negotiable instrument processing system
US7066668B2 (en) Method of creating an image replacement document for use in a check truncation environment and an apparatus therefor
US10552901B2 (en) Method of operating an image-based self-service check depositing terminal
JP2008005380A (en) Image processor and image acquisition method for the same
JP2001134702A (en) Information system, terminal, information server, consumer premises equipment, control method therefor and information recording medium
US20030126081A1 (en) Check processing method and apparatus, and a computer-readable recording medium storing a check processing control program
JP3885885B2 (en) Image processing apparatus and image processing method for securities
US20090016594A1 (en) Bank document image viewing apparatus and methods of a financial institution presenting an image of a bank document in a check truncation environment
JP5886181B2 (en) Barcode image correction device, passbook processing device, and automatic transaction device
JP4151329B2 (en) Processing apparatus and processing method for securities such as checks
JP2005269057A (en) Image reading apparatus and image reading method
KR101471674B1 (en) Bankbook/slip printer and operating method thereof
JP2006174498A (en) Recording medium processing method, recording medium processing apparatus, and recording medium processing program
JP2005031971A (en) Image reader
JP2004341934A (en) Check processor, host computer of check processor, check processing system, check reading method, and check reading program
RU73990U1 (en) AUTOMATIC BANK OFFICE
JP2003150800A (en) Method and device for processing recording medium, method and device for controlling this device, program for executing this processing method on computer, and computer readable recording medium with this program recorded thereon

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20090901