JP2008005380A - Image processor and image acquisition method for the same - Google Patents
Image processor and image acquisition method for the same Download PDFInfo
- 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
Links
Images
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
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参照)。
しかし、ホストコンピュータが画像処理装置から送信されてくるプレスキャンエラーの有無を確認し、プレスキャンエラーが発生している場合に必要なエラー処理を行ない、しかる後に、ホストコンピュータが画像処理装置に本スキャンの指令を送信するような画像取得方法では、ホストコンピュータと画像処理装置との間のトランザクションが増えるとともに、ホストコンピュータにおけるアプリケーションのエラーハンドリングが煩雑になるという問題がある。 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
複合処理装置2は、樹脂製の筺体を備えた略立方体をしており、正面側部分には電子決済を行なう小切手100を挿入する挿入口11を備えている。挿入口11から挿入された小切手100は、図3に示すように、複合処理装置2内をJ字形の搬送路12に沿って下側から上側へと搬送される。搬送中には、ホストコンピュータ3からの指令によって小切手100に対して必要な処理が行なわれ、その後、上面部分に形成された排出口13から排出される。搬送路の排出口に近い位置には、排出される直前に小切手100をスキャンするスキャナ部40がある。排出口13の後側にはロール紙排出口14が形成されており、筺体の後側部分に収納されたロール紙(不図示)に、会計の明細書や電子決済に必要な同意書などが印刷された後、ここから排出されるようになっている。
The
ホストコンピュータ3は、店員が金額や電子決済の指示を入力する入力装置を兼ねたパネル部5と会計表示部6と記憶装置7とクレジットカードリーダ部8を備えている。ホストコンピュータ3は決済機関のサーバ4と通信回線で接続されているので、小切手100に記載された口座番号等の決済情報を決済機関のサーバ4に照会して、振り出された小切手100の有効性を確認することができる。
The
図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
磁気インク文字読取部50は、挿入された小切手100の最下欄にあるMICR(Magnetic Ink Character Recognition)記録領域101(図1参照)に印刷された磁気インク文字から口座番号等の振出人の決済情報を読み取るMICRヘッド51を備えており、挿入口11に近い位置に配置されている。読み取った決済情報はCPU20からホストコンピュータ3に送信される。
The magnetic ink
裏書印字部60は振出人の認証番号、日付、使用金額等の項目を印字する。表書印字部65は、振り出された小切手100に表書きがない場合に、支払先、日付、金額等の事項を印字する。各印字部はドットインパクト方式による印字ヘッド61、66を備えており、裏書印字部60の印字ヘッド61が搬送路の上流側、表書印字部65の印字ヘッド66が下流側に配置されている。裏書印字部の印字ヘッド61と裏書印字部の印字ヘッド66はそれぞれ小切手100の表裏の面を印刷できるように搬送路12を挟んで反対側に配置
されている。各印字ヘッド61、66の搬送路12を挟んだ反対側には、それぞれプラテン62、67が配置されている。なお、印字ヘッド61、66としては、インクジェット式など、他の方式のものを用いることもできる。
The
スキャナ部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
ロール紙印字部70はサーマルライン方式の印字ヘッド(不図示)を備えており、会計の明細書や小切手を電子的に決済することへの同意書などを印刷して、ロール紙排出口14から排出する。また、ロール紙排出口14にはオートカッター(不図示)を備えており、必要な印刷が終了したロール紙が排出されると、適切な位置でロール紙を切断する。
The roll
小切手搬送部80は、挿入口11に挿入された小切手100を搬送路12に沿って排出口まで搬送する。小切手100を挟む一対の搬送ローラ81、82を備えており、この搬送ローラを駆動することにより小切手100を搬送する。搬送ローラ81、82は正逆両方向に回転制御されるものなので、小切手100は前後方向のいずれにも搬送される。
The
小切手位置検出部90は、センサ91、92、93によって搬送されてくる小切手100が各処理部の処理を開始する位置に到達したことを検出する。各センサとしては、反射型のフォトセンサ等が用いられる。小切手100が適切な位置に到達したことを検出すると、CPU20は各処理部による処理を開始する。
The check
(小切手決済システムによる決済の流れ)
図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
振り出された小切手100の表面を上にして店員が複合処理装置2の挿入口11に小切手100を挿入すると、読取指令を受信した複合処理装置2は(ST2)、読取指令に従って、小切手100を磁気インク文字読取部50まで搬送して、MICR記録領域101から口座番号等の決済情報を読み取る(ST3)。CPU20は読み取った決済情報をホストコンピュータ3へ送信する(ST4)。
When the store clerk inserts the
ホストコンピュータ3は決済情報を受信すると(ST5)、決済情報に基づいて決済機関サーバー4へ小切手100の有効性を照会する(ST6)。小切手100の有効性が確認されると(ST7)、ホストコンピュータ3は決済処理を行うとともに(ST8)、複合処理装置2に対して、小切手100の裏面に必要な裏書を印字する印字指令を送信する
。また、事前に小切手表面に表書がない旨の入力があった場合には、ホストコンピュータ3に入力された支払い金額等に基づいて必要な表書を印字する印字指令を送信する。さらに、小切手100による電子決済の証拠として小切手100の表面画像を保存するために、小切手100をスキャンして排出するスキャン開始指令を送信する(ST9)。なお、小切手100の有効性が確認されなかった場合には、ホストコンピュータ3は小切手排出命令を複合処理装置2に送信し、小切手100は複合処理装置2からを排出される(不図示)。
When the
印字指令、スキャン開始指令を受信すると(ST10)、複合処理装置2のCPU20はそれらの指令に従って、小切手100を裏書印字部60に搬送して、必要な裏書を印字する(ST11)。また、表書の印字指令を受けている場合には、小切手100を表書印字部65に搬送して、必要な表書を印字する(ST11)。
When the print command and the scan start command are received (ST10), the
印字が終了すると、CPU20は、スキャン開始指令に従って小切手100をスキャナ部40に搬送して、スキャン処理を開始する(ST12)。スキャナ部40では、まず、小切手100の所定領域を256階調でプレスキャンして(ST100)、256階調のプレスキャン画像データ(第1画像データ)を得る。そして、プレスキャン画像データから小切手100の表面全体をスキャンして得られる画像データを2値化するための閾値の算出を試みる。本例では、プレスキャン画像データからCPU20が各画素の輝度分布を算出し、この輝度分布の特徴から適切な閾値を決定する(ST101)。閾値の決定には、周知のアルゴリズムを利用することができる。
When printing is completed, the
ここで、輝度分布から閾値を決定できない場合がある。例えば、小切手の地模様が全体に暗い場合など輝度分布からその特徴を判別できない場合には、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
適切な閾値が決定されプレスキャンエラーが発生しない場合には、小切手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
次に、CPU20は、得られた256階調の画像データを、ST101で決定した閾値に基づいて2値化処理を行ない、2階調画像データ(第1の2階調画像データ)を生成する(ST104)。2階調画像データが生成されると、CPU20は、生成した2階調画像データをホストコンピュータ3に送信する(ST105)。また、本形態では、生成した2階調画像データと共に、この2階調画像データはプレスキャンエラーが発生せず、「正常」に処理されたものであることを示す属性情報をホストコンピュータ3に送信する。スキャン処理(ST12)が終了した小切手100は、そのまま搬送されて排出口13から排出される(ST13)。
Next, the
2階調画像データと属性情報を受信したホストコンピュータ3は(ST14)、小切手100の口座番号や金額等決済データと共に、それらを記憶装置7へ記録する(ST15)。そして、複合処理装置2に対して、会計の明細書および同意書の発行指令を送信する(ST16)。
The
発行指令を受信した複合処理装置2のCPU20は(ST17)、発行指令に従って、
ロール紙印字部70に、会計の明細書および正副2通の同意書を発行させる(ST18)。店では会計明細書、正副2通の同意書を排出された小切手100とともに顧客に渡す。正の同意書に買物客の署名を受けた後、回収して店で保管する。以上で、小切手100による電子決済の手続は完了する。
The
The roll
(プレスキャンエラーが発生した場合)
スキャン処理(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
しかし、本形態の複合処理装置2は、プレスキャンエラーが発生しても、エラー処理をホストコンピュータ3で行なうことなく、次の処理工程に移行するようになっている。また、プレスキャンエラーが発生した後に移行する処理工程の処理動作として、予め複数の処理動作が規定されており、いずれの処理動作を行うか設定できるようになっている。
However, even if a pre-scan error occurs, the
いずれの処理動作を行うかは、ホストコンピュータ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
第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
第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
第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
ここで、鮮鋭処理とは、小切手表面に記された文字や模様の輪郭などのエッジ領域を際立たせるように画像処理するものである。また、エッジ領域とは、対象画素と周囲画素と
の画素値(輝度)の差が予め定められた閾値以上の領域をいう。鮮鋭処理は、例えば、特開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
第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
第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
なお、スキャン処理(ST12)が終了した小切手100は排出口13から排出される(ST13)。また、複合処理装置2が送信した画像データおよび属性情報をホストコンピュータ3が受信するST14より後の小切手決済の処理は、プレスキャンエラーが発生しない場合の処理と同一である。
Note that the
以上、本形態によれば、プレスキャンエラーが発生した場合でも、ホストコンピュータ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
また、複合処理装置2には、プレスキャンエラーが発生した場合に移行する処理工程として予め複数の処理動作が規定されており、ホストコンピュータ3がスキャン開始指令を送信する工程(ST9)において設定できるようになっている。また、小切手決済システム1の初期化時などにホストコンピュータ3から送信する設定指令によって設定できるようになっている。従って、ホストコンピュータ3では、プレスキャンエラーが発生した場合でも、所望の画像処理が施された画像データを必ず取得できる。よって、ホストコンピュータ3に搭載されるアプリケーションの構築が容易になる。
In the
1・小切手決済システム、2・複合処理装置、3・レジスタ装置(ホストコンピュータ)、4・決済機関サーバ、5・パネル部、6・会計表示部、7・記憶装置、8・クレジットカードリーダ部、20、30・CPU、21・メモリ、40・スキャナ部、50・磁気インク文字読取部、60・裏書印字部、65・表書印字部、70・ロール紙印字部、80・小切手搬送部、90・小切手位置検出部、100・小切手、101・MICR記録領域
1. Check
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.
前記第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.
前記第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)ないし(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
前記受信工程において前記設定指令を受信することを特徴とする画像処理装置の画像取得方法。 In claim 4,
An image acquisition method for an image processing apparatus, wherein the setting command is received in the reception step.
前記第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.
前記読取対象の媒体は小切手であることを特徴とする画像処理装置の画像取得方法。 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.
読み取り対象の媒体の表面の読み取り動作を行なうことを特徴とする画像処理装置。 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.
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) |
-
2006
- 2006-06-26 JP JP2006174944A patent/JP2008005380A/en not_active Withdrawn
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 |