JP2001126052A - Optical character reader - Google Patents

Optical character reader

Info

Publication number
JP2001126052A
JP2001126052A JP30909099A JP30909099A JP2001126052A JP 2001126052 A JP2001126052 A JP 2001126052A JP 30909099 A JP30909099 A JP 30909099A JP 30909099 A JP30909099 A JP 30909099A JP 2001126052 A JP2001126052 A JP 2001126052A
Authority
JP
Japan
Prior art keywords
image
subtraction
subtracted
mask
information
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.)
Pending
Application number
JP30909099A
Other languages
Japanese (ja)
Inventor
Tadashi Iida
征 飯田
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP30909099A priority Critical patent/JP2001126052A/en
Publication of JP2001126052A publication Critical patent/JP2001126052A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent partial removal of necessary entry information and insufficient removal of unnecessary preprinting at the time of removing preprinting for reducing an image quantity in an optical character reader. SOLUTION: Proper processing is executed respectively in areas 300 to 302 designated in advance, thereby a synthetic mask 203 and a subtraction mask image 204 are prepared previously from an unwritten document image 201. The mask 204 is image-subtracted from a written slip image 206 to prepare a subtracted image 208 to be used for storing and transferring. The image 208 and the image 203 are image-synthesized to prepare a synthesized image 209, thereby a desired image can be obtained. Thus, information which has to be erased and information which has to be restored on the image can be controlled. Further, efficiency of storing and transferring the image can be improved by remarkably reducing an image capacity.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、記入済みの帳票イ
メージから未記入の帳票イメージ(プレ印刷情報イメー
ジ)を消去すること及び復元することができる光学式文
字読取装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an optical character reader capable of erasing and restoring a blank form image (preprint information image) from a completed form image.

【0002】[0002]

【従来の技術】一般に業務用に使用される光学式文字読
取装置は、所定の項目や利用者が手書きの文字等を記入
するための所定の記入枠(フィールド)が印刷された帳
票を用い、前記記入枠に記入された文字や印影等を光学
式に読み取る処理に利用されている。また近年の光学式
文字読取装置においては、本支店間でのデータ転送や確
認を行うために、例えば支店で入力した記入済みの帳票
イメージ全体を保管したり、本店に転送することが要求
されている。
2. Description of the Related Art An optical character reader generally used for business uses a form on which a predetermined entry field (field) for a user to write a predetermined item or a handwritten character is printed. It is used for a process of optically reading characters, imprints and the like entered in the entry frame. Also, in recent years, in order to perform data transfer and confirmation between head office and branch office, in order to perform data transfer between head office and branch office, for example, it is required to store an entire filled-out form image input at a branch office or transfer it to a head office. I have.

【0003】この帳票イメージ全体の保管及び転送は、
イメージ容量が大きく保管・転送効率が悪く、イメージ
を圧縮することによる効率化にも限界がある言う不具合
がある。この不具合を解決するために従来は、例えば特
公平4−27592号公報に記載された如く、予め未記
入の帳票イメージを記憶しておき、記入済みの帳票イメ
ージから未記入の帳票イメージを画像減算してプレ印刷
情報イメージ(印刷された所定の等項目等と未記入の枠
等とから成る帳票のイメージ情報)を消去した減算後画
像を圧縮し、この圧縮画像とプレ印刷イメージとを保管
・転送することにより、容量を大幅に減少させイメージ
の保管・転送の効率化を図ることが提案されている。ま
たこの従来技術においては、前記支店から転送されたデ
ータを復元する場合は、減算後画像と印刷情報イメージ
とを本店において合成することにより、元の記入済み帳
票イメージを復元している。
[0003] The storage and transfer of the entire form image
There is a problem that the image capacity is large, the storage / transfer efficiency is poor, and there is a limit to the efficiency by compressing the image. In order to solve this problem, conventionally, as described in Japanese Patent Publication No. 4-27592, an unfilled form image is stored in advance, and the unfilled form image is subtracted from the filled-out form image. Then, the pre-printed information image (image information of the form including the printed predetermined equal items, etc. and the unfilled frame, etc.) is deleted, the subtracted image is compressed, and the compressed image and the pre-printed image are stored. It has been proposed that the transfer greatly reduces the capacity and increases the efficiency of image storage and transfer. In this prior art, when restoring data transferred from the branch, the original filled-out form image is restored by combining the subtracted image and the print information image at the head office.

【0004】[0004]

【発明が解決しようとする課題】前述の従来技術による
光学式文字読取装置は、例えば、帳票の押印エリアに
「印」の文字がプレ印刷され、この上に捺印されている
場合、印影から「印」のイメージ部分を画像減算した際
に印影の一部が欠けてしまうと言う不具合があった。更
に従来技術は、例えば帳票に複雑で細かい網掛けのプレ
印刷がある場合、記入済み帳票イメージを読み込んだと
きの網掛けの濃淡の状態と、未記入帳票イメージを読み
込んだときの網掛けの濃淡の状態とが異なり、画像減算
したイメージに網掛けの一部が残ってしまい、イメージ
の圧縮効率が悪くなってしまうと共に復元した際に減算
後画像に残った網掛けの一部が重複し見苦しくなってし
まうと言う不具合があった。
In the optical character reading apparatus according to the above-mentioned prior art, for example, when a character "mark" is preprinted in a stamp area of a form, and the character is stamped on the character, a mark " When the image portion of the mark was subtracted from the image, there was a problem that a part of the seal was missing. Further, in the conventional technology, for example, when a form has complicated and fine pre-printing, the shading state when a filled-in form image is read, and the shading density when a blank form image is read. Is different from the state of the above, a part of the shade remains in the subtracted image, the compression efficiency of the image deteriorates, and when the image is restored, the part of the shade remaining in the subtracted image is duplicated and unsightly There was a problem that it would be.

【0005】また従来の光学式文字読取装置は、例えば
保管・転送・参照するイメージに不要なコメント等の情
報が記入又は印刷されている場合、画像減算により記入
された不要なコメントが消去できずに減算後画像に現れ
てしまい、また、プレ印刷された不要なコメントは、画
像減算することで減算後画像からは消去されるが未記入
の帳票イメージからは消去されないため未記入の帳票イ
メージと画像合成すると不要なコメントが現れてしまう
と言う不具合もあった。
Further, in the conventional optical character reading apparatus, when information such as an unnecessary comment is written or printed on an image to be stored, transferred or referred to, the unnecessary comment written by image subtraction cannot be erased. Unnecessary preprinted comments will appear in the image after subtraction, and unnecessary comments that have been preprinted will be deleted from the image after subtraction by image subtraction, but will not be deleted from the blank form image, and will be deleted from the blank form image. There was a problem that unnecessary comments appeared when images were combined.

【0006】本発明の第1の目的は、指定領域内は画像
減算の対象とせずに記入済みの帳票イメージ上の情報が
減算後画像上に現れ、また、指定領域内は画像合成の対
象とせずに減算後画像上の情報が合成後画像上に現れる
ことができる光学式文字読取装置を提供することであ
る。
It is a first object of the present invention to provide an image processing method in which information on a filled-out form image appears on an image after subtraction without being subjected to image subtraction in a designated area, and image synthesis is performed in the designated area. An object of the present invention is to provide an optical character reading device that allows information on an image after subtraction to appear on an image after composition without subtraction.

【0007】本発明の第2の目的は、指定領域内は画像
減算の対象とせずに記入済みの帳票イメージ上の情報は
減算後画像上には現れず、また、指定領域内は画像合成
の対象とせずに未記入の帳票イメージ上の情報が、合成
後画像上に現れることができる光学式文字読取装置を提
供することである。
[0007] A second object of the present invention is that the information in the filled-out form image does not appear on the image after subtraction without being subjected to image subtraction in the designated area. An object of the present invention is to provide an optical character reading apparatus that allows information on an unfilled form image to appear on a combined image without being targeted.

【0008】本発明の第3の目的は、指定領域内は画像
減算の対象とせずに記入済みの帳票イメージ上の情報は
減算後画像上には現れず、また、指定領域内は画像合成
の対象とせずに減算後画像上の情報も未記入の帳票イメ
ージ上の情報も合成後画像上には現れない様にすること
ができる光学式文字読取装置を提供することである。
[0008] A third object of the present invention is that the information in the filled-out form image does not appear on the image after the subtraction because the specified area is not subjected to image subtraction. An object of the present invention is to provide an optical character reading apparatus that can prevent information on an image after subtraction and information on an unfilled form image from appearing on an image after composition without being targeted.

【0009】[0009]

【課題を解決するための手段】前記目的を達成するため
に本発明は、印影を含む帳票イメージから未記入の帳票
イメージを元に作成した減算マスクを用いて画像減算す
ることによりプレ印刷情報を消去した減算後画像の作成
し、該減算後画像と未記入の帳票イメージを元に作成し
た合成マスクとを合成することにより印影を含む帳票イ
メージを復元する光学式文字読取装置であって、前記印
影を含む指定領域内に対し、画像減算しない減算マスク
を用いて減算し、前記定領域内に印影のイメージデータ
を含む減算後画像を作成し、該減算後画像とプレ印刷情
報を含まない合成マスクとを合成することを第1の特徴
とする。
SUMMARY OF THE INVENTION In order to achieve the above object, the present invention provides a method for preprinting information by subtracting an image from a form image including an imprint using a subtraction mask created based on an unfilled form image. An optical character reading apparatus for restoring a form image including a seal by creating an erased image after subtraction and combining the subtracted image with a synthetic mask created based on an unfilled form image, Subtraction is performed using a subtraction mask that does not perform image subtraction on the specified area including the seal imprint, and a subtracted image including the imprint image data is created in the fixed area, and the subtracted image and the preprint information are not included. The first feature is that the mask and the mask are combined.

【0010】また本発明は、網掛けを含む帳票イメージ
から未記入の帳票イメージを元に作成した減算マスクを
用いて画像減算することによりプレ印刷情報を消去した
減算後画像を作成し、該減算後画像と未記入の帳票イメ
ージを元に作成した合成マスクとを合成することにより
網掛けを含む帳票イメージを復元する光学式文字読取装
置であって、前記網掛けを含む指定領域内に対し、画像
減算を行う減算マスクを用いて減算し、前記網掛けのイ
メージデータを減算した減算後画像を作成し、該減算後
画像と網掛けのプレ印刷情報を含む成マスクとを合成す
ることを第2の特徴とする。
The present invention also provides a subtracted image in which preprinted information is deleted by subtracting an image from a form image including hatching using a subtraction mask created based on an unfilled form image, and forming the subtracted image. An optical character reading device for restoring a form image including hatching by synthesizing a post-image and a composite mask created based on an unfilled form image, for a designated area including the hatching, Subtracting using a subtraction mask that performs image subtraction, creating a subtracted image by subtracting the shaded image data, and synthesizing the subtracted image with a formed mask including preprinted shaded information. 2.

【0011】更に本発明は、認識不要な文字を含む帳票
イメージから未記入の帳票イメージを元に作成した減算
マスクを用いてを画像減算することによりプレ印刷情報
を消去した減算後画像を作成し、該減算後画像と未記入
の帳票イメージを元に作成した合成マスクとを合成する
光学式文字読取装置であって、前記認識不要な文字を含
む指定領域内に対し、画像減算を行う減算マスクを用い
て減算し、前記定領域内のイメージデータを減算した減
算後画像を作成し、該減算後画像と前記定領域内のイメ
ージデータを含まない合成マスクとを合成することを第
3の特徴とする。
Further, according to the present invention, a subtracted image in which preprinted information is erased is created by subtracting an image from a form image containing characters that do not need recognition using a subtraction mask created based on an unfilled form image. An optical character reading device for combining the subtracted image and a combined mask created based on an unfilled form image, wherein the subtraction mask performs image subtraction on a designated area including the unnecessary characters. And subtracting the image data in the fixed area to create a subtracted image, and synthesizing the subtracted image with a synthetic mask that does not include the image data in the fixed area. And

【0012】[0012]

【発明の実施の形態】以下、本発明による光学式文字読
取装置の一実施形態を図面を参照して詳細に説明する。
図1は、本実施形態による光学式文字読取装置の各処理
を説明するための図、図2は本実施形態による処理の前
後に現れる帳票又は画像を示す図、図3は本実施形態に
よる指定領域を説明するための図、図4は画像減算、画
像合成の時の各画素の色の変化を示す図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the optical character reading device according to the present invention will be described below in detail with reference to the drawings.
FIG. 1 is a diagram for explaining each process of the optical character reading apparatus according to the present embodiment, FIG. 2 is a diagram showing a form or an image appearing before and after the process according to the present embodiment, and FIG. 3 is a designation according to the present embodiment. FIG. 4 is a diagram for explaining an area, and FIG. 4 is a diagram showing a change in color of each pixel during image subtraction and image synthesis.

【0013】まず、本実施形態による光学式文字読取装
置の構成は一般的な構成であり、例えば、帳票を光学的
に走査してイメージデータを入力するためのイメージス
キャナと、該イメージスキャナにより読み込んだアナロ
グのイメージデータをディジタルデータに変換するA/
D変換器と、この変換したイメージデータから指定され
た位置の文字等の記入枠内のイメージデータを切り出
し、文字や記号として認識して文字コードに変換する認
識部と、これらを制御する制御部と、該制御部を制御す
るプログラムや読み込んだイメージデータや認識結果を
記憶する記憶部と、ディスプレイ及びキーボート他から
構成されるものである。
First, the configuration of the optical character reading apparatus according to the present embodiment is a general configuration. For example, an image scanner for optically scanning a form and inputting image data, and reading by the image scanner. A / A that converts analog image data into digital data
A D converter, a recognition unit that cuts out image data in an entry frame of a character or the like at a designated position from the converted image data, recognizes the data as a character or a symbol, and converts it into a character code, and a control unit that controls these. And a storage unit for storing a program for controlling the control unit, read image data and recognition results, a display, a keyboard, and the like.

【0014】また本発明に適用される帳票は、用紙上に
予め定められた所定の文言と、利用者が手書きで文字や
数字等を記入するための記入枠と、認証印等が捺印され
るための捺印枠とが印字され、利用者が前記記入枠に手
書きにより文字等を記入し、捺印枠に捺印された帳票を
用いるものとする。
The form applied to the present invention has a predetermined wording on paper, an entry frame for a user to enter characters and numbers by hand, and an authentication seal. It is assumed that the user writes a character or the like by hand in the entry frame and uses the form stamped on the stamp frame.

【0015】この帳票、例えば未記入の帳票は、図2
(a)の如く、金額を記入するために予め文字「円」が
印字された記入枠Aと、捺印を行うための文字「印」が
印字された捺印枠Bと、入力時のチェックに用いられる
確認枠Cと、細かい網掛けが印刷された網掛け枠Dとか
ら構成されているものとし、記入済みの帳票は、図2
(f)の如く、記入枠Aに金額「12」が記入され、捺
印枠Bに「日立」と捺印され、確認枠Cに確認済みを意
味するチェックマークが記載されたものとする。尚、実
際の帳票は、図示したものと形態が異なるものである
が、本明細書においては理解を容易にするために本願発
明と関係する記入枠A他を抽出した帳票を例にとって説
明する。
This form, for example, an unfilled form is shown in FIG.
As shown in (a), an entry frame A on which characters "yen" are printed in advance to enter the amount of money, a seal frame B on which characters "symbol" for stamping are printed, and a check box for input. It is assumed that the form includes a confirmation frame C and a hatched frame D on which fine hatching is printed.
As shown in (f), it is assumed that the amount "12" is entered in the entry frame A, "Hitachi" is stamped in the stamp frame B, and a check mark indicating that the confirmation has been made is written in the confirmation frame C. It should be noted that the actual form has a different form from that shown in the figure, but in the present specification, for ease of understanding, a form in which the entry frame A and the like related to the present invention are extracted will be described as an example.

【0016】まず、本実施形態よる光学式文字読取装置
は、処理を行うための減算マスク204及び合成マスク
203を作成する。この減算マスク204は、図2
(e)に示す如く、記入済みの帳票イメージ(図2f)
から予め印刷された文字記号等(図2[a]中の枠線や
「円」や「確認」の各文字及び網掛け部分)を除去する
ためのものであり、合成マスク203は、図2(d)に
示す如く、前記減算マスク204を用いて減算した記入
文字及び印影部分(減算後画像)と合成することにより
元のイメージを復元するためのマスク画像である。
First, the optical character reading apparatus according to the present embodiment creates a subtraction mask 204 and a composite mask 203 for performing processing. This subtraction mask 204 corresponds to FIG.
As shown in (e), the completed form image (FIG. 2f)
2 are used to remove character symbols and the like (frame lines, characters of “circle” and “confirmation” and hatched portions in FIG. 2A) printed in advance from FIG. As shown in (d), this is a mask image for restoring the original image by combining it with the input characters and the imprint part (subtracted image) subtracted using the subtraction mask 204.

【0017】これら合成マスク203及び減算マスク2
04(マスク画像)は、図1(a)に示す如く、図2
(a)の未記入帳票200を光学的に走査して図2
(b)の未記入帳票イメージ201を入力し(ステップ
100)、この帳票イメージ201のエッジ座標を元に
歪み補正やサイズ補正を行って、図2(c)に示す歪み
補正後の未記入帳票イメージ202を作成し(ステップ
101)、この帳票イメージ202に対して予め指定さ
れた各エリア内にそれぞれ指定された処理を行って各エ
リアの塗り潰す等の処理が行われる(ステップ10
2)。
The combination mask 203 and the subtraction mask 2
04 (mask image), as shown in FIG.
Optically scanning the blank form 200 shown in FIG.
The blank form image 201 of (b) is input (step 100), and distortion correction and size correction are performed based on the edge coordinates of the form image 201, and the blank form after the distortion correction shown in FIG. An image 202 is created (step 101), and a process such as filling each area is performed on each of the pre-designated areas in the form image 202 (step 10).
2).

【0018】この処理は、図3に示す如く、入力スルー
指定のエリア300に対しては合成マスク203と減算
マスク204ともに白く塗り潰す処理を行い、下段の合
成マスク画像スルー指定のエリア301に対しては減算
マスク204を黒く塗り潰す処理を行い、完全マスク指
定のエリア302に対しては合成マスク203を白く塗
り潰し、減算マスク204を黒く塗り潰す処理を行うこ
とにより、図2(d)(e)に示す各マスク203及び
204を作成するためのものである。換言すればステッ
プ102は、記入済み帳票イメージから、枠部分,文字
「円」のマージンを取った部分,読み取りが不要な部分
(確認枠Cと網掛け枠D部分)を減算する減算マスク2
04を作成し、この減算マスク204を用いて減算した
元の記入文字及び印影部分(減算後画像208)と合成
することにより元のイメージを復元するための合成マス
ク203を作成するめたの処理である。このステップ1
02によって得られた合成マスク203及び減算マスク
204は、後述する処理に用いるため記憶部等にファイ
ル出力される(ステップ103)。
In this process, as shown in FIG. 3, a process of filling the composite mask 203 and the subtraction mask 204 with white is performed on the area 300 for which the input through is specified, and the area 301 for which the synthetic mask image through is specified on the lower stage. 2 (d) and (e) by performing a process of painting the subtraction mask 204 black and performing a process of painting the composite mask 203 white and painting the subtraction mask 204 black in the area 302 designated as a complete mask. ) Are for forming the masks 203 and 204 shown in FIG. In other words, step 102 is a subtraction mask 2 for subtracting, from the filled-out form image, a frame portion, a portion with a margin of a character “circle”, and a portion that does not need to be read (a confirmation frame C and a hatched frame D).
04, and the combined mask 203 for restoring the original image by combining the original input character and the imprint part (subtracted image 208) subtracted by using the subtraction mask 204 is created. is there. This step 1
The combined mask 203 and the subtraction mask 204 obtained in step 02 are output as files to a storage unit or the like for use in processing described later (step 103).

【0019】次に前記合成マスク203及び減算マスク
204を用いてイメージの保管・転送を効率良く行う減
算後画像の作成・転送方法を図1(b)を用いて説明す
る。この処理は、まず、図2(e)に示す減算マスク2
04を記憶部から入力し(ステップ110)、次いで記
入済みの帳票205をスキャンして図2(g)の記入済
みの帳票イメージ206を取り込み(ステップ11
1)、この帳票イメージ206の歪み補正を行って図2
(h)の歪み補正後の記入済みの帳票イメージ207を
得る(ステップ112)。
Next, a method of creating and transferring an image after subtraction, which efficiently stores and transfers an image using the above-described combination mask 203 and subtraction mask 204, will be described with reference to FIG. In this process, first, the subtraction mask 2 shown in FIG.
04 is input from the storage unit (step 110), and then the filled-out form 205 is scanned to take in the filled-out form image 206 of FIG. 2 (g) (step 11).
1), the form image 206 is corrected for distortion, and FIG.
A completed form image 207 after the distortion correction of (h) is obtained (step 112).

【0020】次いで本処理は、この補正された記入済み
の帳票イメージ207から減算マスク画像204を画像
減算し、図2(i)に示す減算後画像208を作成する
(ステップ113)。この減算後画像208は、記入済
み帳票のイメージから、枠部分,文字「円」のマージン
を取った部分,読み取りが不要な部分(確認枠Cと網掛
け枠D部分)を減算したものである。
Next, in this processing, the subtraction mask image 204 is image-subtracted from the corrected filled-out form image 207, and a post-subtraction image 208 shown in FIG. 2 (i) is created (step 113). The subtracted image 208 is obtained by subtracting a frame portion, a portion with a margin of a character “circle”, and a portion that does not need to be read (a confirmation frame C and a hatched frame D) from the image of the completed form. .

【0021】ここで、画像減算の各画素の色の変化を図
4(a)を参照して説明する。この図4(a)は、各画
素の値が0の時を白、1の時を黒としており、各画素に
おいて、記入済みの帳票イメージ及び減算マスク画像共
に黒の場合のみ減算後画像上の色が白になり、その他の
場合は記入済みの帳票イメージの色が減算後画像上に現
れることを表している。
Here, the change of the color of each pixel in the image subtraction will be described with reference to FIG. In FIG. 4 (a), when the value of each pixel is 0, it is white, and when it is 1, it is black. In each pixel, only when both the filled-out form image and the subtraction mask image are black, The color becomes white, and in other cases, the color of the completed form image appears on the image after the subtraction.

【0022】従って図3の入力スルーエリア300内は
減算マスク画像の全画素が白のため、入力スルーエリア
内は画像減算では何も変化せず減算後画像には記入済み
の帳票イメージがそのまま現れることが判り、このため
当該エリア300内の文字「印」が、画像減算されてイ
メージの一部が欠けることはない。
Therefore, in the input through area 300 of FIG. 3, since all the pixels of the subtraction mask image are white, the input through area does not change by image subtraction, and the completed form image appears as it is in the subtracted image. Therefore, the character "mark" in the area 300 is not subjected to the image subtraction, so that a part of the image is not lost.

【0023】これに対してマスクスルーエリア301と
完全マスクエリア302内は、減算マスク画像の全画素
が黒のため、エリア内は画像減算では全画素が白に変化
し、減算後画像には白い塗り潰しが現れることが判る。
更に、前記処理を指定したエリア以外では未記入の帳票
イメージ上のプレ印刷の画像減算が行われる。
On the other hand, in the mask-through area 301 and the complete mask area 302, all the pixels of the subtraction mask image are black. It can be seen that the painting appears.
Further, in areas other than the area in which the above-mentioned processing is designated, pre-print image subtraction is performed on an unfilled form image.

【0024】このステップ113において画像減算が行
われた図2(i)の減算後画像208は、圧縮された後
に記憶部にファイル出力して保管し、この保管された減
算後画像208は必要で有れば本店他に転送が行われる
(ステップ115)。
The subtracted image 208 of FIG. 2 (i) to which the image subtraction has been performed in step 113 is compressed and output to a storage unit as a file for storage, and the stored subtracted image 208 is necessary. If there is, the transfer is made to the head office and the like (step 115).

【0025】前述の一連の処理によって本実施形態は、
作成した減算後画像を圧縮して保管・転送することによ
り、プレ印刷がある記入済みの帳票イメージをそのまま
圧縮するより効率を大幅に良くすることができる。
According to the above-described series of processing, the present embodiment provides:
By compressing the created subtracted image and storing / transferring it, the efficiency can be greatly improved as compared with the case where the filled-out form image with the preprint is compressed as it is.

【0026】次に、記入済みの帳票イメージを参照する
ための合成後画像の作成方法を図1(c)を用いて説明
する。この処理は、記憶した合成マスク画像203を記
憶部のファイルから入力し(ステップ120)、同様に
減算後画像208をファイルから入力し(ステップ12
1) 、これら減算後画像208と合成マスク画像20
3を画像合成して図4(a)に示す合成後画像209を
作成する。
Next, a method of creating a combined image for referring to a completed form image will be described with reference to FIG. In this process, the stored combined mask image 203 is input from a file in the storage unit (step 120), and similarly, the subtracted image 208 is input from the file (step 12).
1), the image 208 after subtraction and the composite mask image 20
3 are combined to create a combined image 209 shown in FIG.

【0027】ここで、画像合成の各画素の色の変化を図
4(b)を参照して説明する。この図4(b)は、前述
と同様に各画素の値が0の時を白、1の時を黒としてお
り、各画素において、減算後画像及び合成マスク画像の
いづれかが黒の場合は合成後画像上の色が黒になり、そ
の他の場合は合成後画像上の色が黒になることを表して
いる。言い換えれば、本図は、減算後画像と合成マスク
画像の論理和の結果が合成後画像であることを表してい
る。
Here, the change in the color of each pixel in image synthesis will be described with reference to FIG. In FIG. 4B, as in the case described above, white when the value of each pixel is 0 and black when it is 1, and when each of the post-subtraction image and the composite mask image is black, the composite is performed. This indicates that the color on the post-image is black, and in other cases the color on the post-combination image is black. In other words, this figure shows that the result of the logical sum of the subtracted image and the combined mask image is the combined image.

【0028】従って、入力スルーエリア300内(図3
参照)の捺印部分は合成マスク画像203の該当部分が
白のため、画像合成では合成後画像には減算後画像がそ
のまま現れ、未記入の帳票イメージ上の「印」の文字が
重ねて合成されることを防止する。同様にマスクスルー
エリア301内は減算後画像が白のために、合成後画像
には合成マスク画像(網掛け)がそのまま現れ、完全マ
スクエリア302内は減算後画像と合成マスク画像共に
白のため、合成後画像には白い塗り潰しが現れる(文字
「確認」等が消去される)。また、これらの処理を指定
したエリア以外では未記入の帳票上のイメージ上のプレ
印刷の画像合成が、例えば枠として行われる。この様な
一連の処理によって本実施形態は、所望した図2(j)
に示した如く、入力した帳票イメージと合致した合成後
画像209を得ることができる。以上述べた如く本実施
形態によれば、捺印枠B内の画像(印影画像)は、印影
を含む指定領域内を画像減算しない減算マスクを用い、
前記定領域内に印影のイメージデータを含む減算後画像
を作成し、該減算後画像とプレ印刷情報を含まない合成
マスクとを合成することにより、捺印枠Bに予め文字
「印」がプレ印刷されている場合であっても、文字
「印」の上に捺印された印影が減算後画像に現れ、即ち
捺印枠Bを画像減算の対象とせずに「印」の上から押印
された印影がプレ印刷の「印」と共に減算後画像に現れ
るため、印影の一部が欠けてしまうことを防止すること
ができる。また捺印枠Bを画像合成の対象とせずに減算
後画像上の情報が合成後画像上に現れるため、合成後画
像上で未記入の帳票イメージのプレ印刷の「印」が現れ
ることによる「印」の重複を防止することができる。
Therefore, in the input through area 300 (FIG. 3)
Since the corresponding portion of the composite mask image 203 is white, the subtracted image appears as it is in the composite image, and the “mark” character on the blank form image is superimposed and composited. To prevent that. Similarly, since the subtracted image is white in the mask through area 301, the combined mask image (shaded) appears as it is in the combined image, and the complete mask area 302 is white because both the subtracted image and the combined mask image are white. In addition, a white fill appears in the image after combination (characters “confirmation” and the like are deleted). In areas other than the areas where these processes are designated, preprinted image synthesis on an image of an unfilled form is performed, for example, as a frame. By this series of processes, the present embodiment is configured as shown in FIG.
As shown in (1), a combined image 209 that matches the input form image can be obtained. As described above, according to the present embodiment, the image in the seal frame B (imprint image) uses the subtraction mask that does not subtract the image in the specified area including the imprint.
A post-subtraction image including the image data of the seal imprint is created in the fixed area, and the post-subtraction image is pre-printed on the seal frame B by combining the post-subtraction image with a synthesis mask not including the pre-print information. However, even if it is performed, the seal imprinted on the character “seal” appears in the image after subtraction, that is, the seal imprinted from above the “seal” without setting the seal frame B as the image subtraction target. Since it appears in the image after the subtraction together with the “mark” of the preprint, it is possible to prevent a part of the imprint from being lost. In addition, since the information on the image after subtraction appears on the image after composition without using the sealing frame B as a target of image composition, the “mark” of the preprinted form image of the blank form image appears on the image after composition on the image after composition. Can be prevented from overlapping.

【0029】更に本実施形態によれば、網掛け枠D内
は、網掛けを含む指定領域内の減算を行う減算マスクを
用い、前記網掛けのイメージデータを減算した減算後画
像を作成し、該減算後画像と網掛けのプレ印刷情報を含
む成マスクとを合成する。これにより複雑で細かいプレ
印刷の網掛けがある場合、網掛け枠Dのエリアは、減算
後画像には網掛けが現れないためイメージの圧縮効率が
悪くならず、また、画像合成の対象としないために未記
入の帳票イメージ上の網掛けが合成後画像上に現れるた
め網掛けの一部が重複し見苦しくなることを防止するこ
とができる。
Further, according to the present embodiment, in the hatched frame D, a subtracted image is created by subtracting the shaded image data by using a subtraction mask for performing subtraction in a designated area including the shaded area. The subtracted image and the formed mask including preprinted shaded information are combined. As a result, when there is a complicated and fine hatching of the pre-print, the area of the hatching frame D does not appear in the subtracted image because the hatching does not appear, so that the compression efficiency of the image is not deteriorated and the image is not subjected to image synthesis. For this reason, shading on an unfilled form image appears on the combined image, so that it is possible to prevent a part of the shading from being duplicated and becoming unsightly.

【0030】更に本実施形態によれば確認枠C内は、こ
の枠内の認識不要な文字を含む指定領域内の減算を行う
減算マスクを用い、前記定領域内のイメージデータを減
算した減算後画像を作成し、該減算後画像と前記定領域
内のイメージデータを含まない合成マスクとを合成する
ことにより、前述の例における保管他を行うイメージに
文字「確認」の様な不要なコメントが記入されていたり
プレ印刷されている場合であっても、確認枠Cのエリア
に不要なコメントが減算後画像上に現れるのを防止する
ことができる。また不要なコメントの保管・転送・参照
を行わない様にすることができる。
Further, according to the present embodiment, the subtraction mask for subtracting the image data in the fixed area is used in the confirmation frame C by using a subtraction mask for performing subtraction in a designated area including characters that do not need to be recognized in this frame. By creating an image and synthesizing the subtracted image and a synthetic mask not including the image data in the fixed area, an unnecessary comment such as the character “confirmation” is added to the image to be stored or the like in the above example. Even if the information is entered or preprinted, it is possible to prevent unnecessary comments from appearing on the image after the subtraction in the area of the confirmation frame C. Also, it is possible to prevent unnecessary comments from being stored, transferred, or referred to.

【0031】換言すれば本実施形態の第1の特徴は、画
像減算する前に未記入の帳票イメージ上の印影の指定領
域内を予め白く塗り潰しておくことにより、記入済の帳
票イメージから未記入の帳票イメージを画像減算しても
指定領域内は記入済みの帳票イメージが減算後画像にそ
のまま現れる様にしたものである。また、画像合成する
時も指定領域内を予め、白く塗り潰しておいた未記入の
帳票イメージと減算後画像を画像合成することにより、
合成後画像には指定領域内のプレ印刷が重複しない様に
したものである。
In other words, the first feature of this embodiment is that the designated area of the seal imprint on the blank form image is filled in white before subtraction of the image, so that the blank form image is not filled out. Even if the image of the form image is subtracted, the filled form image appears in the designated area as it is in the designated area. Also, when combining images, the designated area is previously filled with white, and an unfilled form image and the subtracted image are combined to form an image.
The pre-print in the designated area is not overlapped with the combined image.

【0032】更に本実施形態の第2の特徴は、画像減算
する前に未記入の帳票イメージ上の編み目の指定領域内
を予め黒く塗り潰しておくことにより、記入済の帳票イ
メージから未記入の帳票イメージを画像減算すると指定
領域内には記入済みの帳票イメージ上の情報は、減算後
画像に全く現れない様にしたものである。また、画像合
成する時は指定領域内には全く情報の無い減算後画像と
未記入の帳票イメージを画像合成することで合成後画像
の指定領域内には未記入の帳票イメージ上のプレ印刷が
現れる様にしたものである。
Further, a second feature of the present embodiment is that, before subtraction of an image, a designated area of a stitch on an unfilled form image is filled in black in advance, so that an unfilled form is When the image is subtracted from the image, the information on the form image already written in the designated area does not appear in the image after the subtraction. Also, when combining images, pre-printing on the blank form image is performed in the designated area of the combined image by combining the subtracted image and the blank form image without any information in the designated area. It is to appear.

【0033】更に本実施形態の第3の特徴は、画像減算
する前に未記入の帳票イメージ上の指定領域内を予め黒
く塗り潰しておくことにより、記入済の帳票イメージか
ら未記入の帳票イメージを画像減算すると指定領域内に
は記入済みの帳票イメージ上の情報は減算後画像に全く
現れない様にしたものである。また、画像合成する時は
指定領域内を予め白く塗り潰しておいた未記入の帳票イ
メージと指定領域内には全く情報の無い減算後画像を画
像合成することで合成後画像の指定領域内には記入文字
もプレ印刷も全く現れない様にしたものである。
Further, a third feature of the present embodiment is that, before subtraction of an image, a designated area on an unfilled form image is painted in black in advance, so that an unfilled form image can be converted from a completed form image. When the image is subtracted, the information on the completed form image does not appear in the designated area at all in the designated area. In addition, when combining images, an unfilled form image in which the designated area is painted in white in advance and a subtracted image having no information in the designated area are combined to form an image in the designated area of the combined image. No characters or pre-printing appear at all.

【0034】尚、本発明は、次に挙げる実施態様として
も表すことができる。 <実施形態1> 記入済みの帳票イメージから未記入の
帳票イメージを画像減算することでプレ印刷情報を消去
した減算後画像の作成が可能な、また、減算後画像と未
記入の帳票イメージを画像合成することでプレ印刷情報
の復元が可能な光学式文字読取装置において、指定領域
内は画像減算の対象とせずに記入済みの帳票イメージ上
の情報が減算後画像上に現れ、また、指定領域内は画像
合成の対象とせずに減算後画像上の情報が合成後画像上
に現れることを特徴とする光学式文字読取装置。
The present invention can also be represented by the following embodiments. <Embodiment 1> An image of an unfilled form image is subtracted from a filled-out form image to create a subtracted image in which pre-print information is deleted. In an optical character reading device capable of restoring pre-print information by combining, in a designated area, information on a filled-out form image appears on the image after subtraction without being subjected to image subtraction, and the designated area An optical character reading device characterized in that information on an image after subtraction appears on an image after composition without being used as an object for image composition.

【0035】<実施形態2> 記入済みの帳票イメージ
から未記入の帳票イメージを画像減算することでプレ印
刷情報を消去した減算後画像の作成が可能な、また、減
算後画像と未記入の帳票イメージを画像合成することで
プレ印刷情報の復元が可能な光学式文字読取装置におい
て、指定領域内は画像減算の対象とせずに記入済みの帳
票イメージ上の情報は減算後画像上には現れず、また、
指定領域内は画像合成の対象とせずに未記入の帳票イメ
ージ上の情報が合成後画像上に現れることを特徴とする
光学式文字読取装置。
<Second Embodiment> An image of a blank form image is subtracted from a filled-out form image, thereby making it possible to create a subtracted image in which pre-print information is deleted. In an optical character reading device that can restore pre-print information by combining images, the information on the filled-out form image does not appear on the image after subtraction without specifying the image subtraction in the designated area ,Also,
An optical character reading device, wherein information in a blank form image appears in a combined image without being subjected to image combining in a designated area.

【0036】<実施形態3> 記入済みの帳票イメージ
から未記入の帳票イメージを画像減算することでプレ印
刷情報を消去した減算後画像の作成が可能な、また、減
算後画像と未記入の帳票イメージを画像合成することで
プレ印刷情報の復元が可能な光学式文字読取装置におい
て、指定領域内は画像減算の対象とせずに記入済みの帳
票イメージ上の情報は減算後画像上には現れず、また、
指定領域内は画像合成の対象とせずに減算後画像上の情
報も未記入の帳票イメージ上の情報も合成後画像上には
現れないことを特徴とする光学式文字読取装置。
<Embodiment 3> An image of a blank form image is subtracted from a completed form image to create a subtracted image in which preprinted information is deleted. Further, the subtracted image and an unfilled form can be created. In an optical character reading device that can restore pre-print information by combining images, the information on the filled-out form image does not appear on the image after subtraction without specifying the image subtraction in the designated area ,Also,
An optical character reading device, wherein a designated area is not subjected to image composition, and neither information on a subtracted image nor information on an unfilled form image does not appear on the composed image.

【0037】[0037]

【発明の効果】本発明によれば、記入済みの帳票イメー
ジから未記入の帳票イメージを画像減算することでプレ
印刷情報を消去した減算後画像を作成するときに、また
消去したプレ印刷情報を復元する為、減算後画像と未記
入の帳票イメージを画像合成するときに、予め領域を指
定することで減算後画像及び合成後画像の指定した領域
内には記入済みの帳票イメージ上の情報、あるいは未記
入の帳票イメージ上の情報、あるいは全く情報無しのい
づれかが現れること選択することができるので、イメー
ジ上の消去すべき情報や復元すべき情報を制御すること
ができる。また本発明によれば、イメージ容量を大幅に
減少させイメージの保管・転送の効率化を図ることがで
きる。
According to the present invention, when a pre-print information is erased by subtracting an unfilled form image from a filled-in form image to create a subtracted image, the erased pre-print information is also used. In order to restore, when combining the image after subtraction and the blank form image, by specifying the area in advance, the information on the filled-out form image in the designated area of the subtracted image and the combined image, Alternatively, it is possible to select whether information on an unfilled form image or information without any information appears, so that information to be deleted or information to be restored on the image can be controlled. Further, according to the present invention, it is possible to greatly reduce the image capacity and increase the efficiency of image storage and transfer.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施形態による光学式文字読取装置
の処理の流れを説明するための図。
FIG. 1 is a view for explaining a processing flow of an optical character reading device according to an embodiment of the present invention.

【図2】図1の各処理の前後に現れる帳票又は画像を説
明するための図。
FIG. 2 is a view for explaining a form or an image appearing before and after each processing in FIG. 1;

【図3】本発明の一実施形態における領域指定を説明す
るための図。
FIG. 3 is a view for explaining area designation according to the embodiment of the present invention;

【図4】本実施形態による画像減算及び画像合成の時の
各画素の色の変化を示した図。
FIG. 4 is a diagram showing a change in color of each pixel during image subtraction and image synthesis according to the embodiment.

【符号の説明】[Explanation of symbols]

100〜103;マスク画像作成の時の各処理ステッ
プ、110〜115;減算後画像の作成・転送の時の各
処理ステップ、120〜123;合成後画像作成・参照
の時の各処理ステップ、200;未記入帳票、201;
未記入帳票イメージ、202;歪み補正後の未記入帳票
イメージ、203;合成マスク画像、204;減算マス
ク画像、205;記入済み帳票、206;記入済み帳票
イメージ、207;歪み補正後の記入済み帳票イメー
ジ、208;減算後画像、209;合成後画像、30
0;入力スルーエリア、301;マスクスルーエリア、
302;完全マスクエリア。
100 to 103; each processing step when creating a mask image; 110 to 115; each processing step when creating and transferring an image after subtraction; 120 to 123; each processing step when creating and referencing an image after synthesis; 200 Blank form, 201;
Blank form image, 202; Blank form image after distortion correction, 203; Composite mask image, 204; Subtraction mask image, 205; Filled form, 206; Filled form image, 207; Filled form after distortion correction Image, 208; image after subtraction, 209; image after synthesis, 30
0: input through area, 301: mask through area,
302: Complete mask area.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 印影を含む帳票イメージから未記入の帳
票イメージを元に作成した減算マスクを用いて画像減算
することによりプレ印刷情報を消去した減算後画像を作
成し、該減算後画像と未記入の帳票イメージを元に作成
した合成マスクとを合成することにより印影を含む帳票
イメージを復元する光学式文字読取装置であって、前記
印影を含む指定領域内に対し、画像減算しない減算マス
クを用いて減算することにより前記定領域内に印影のイ
メージデータを含む減算後画像を作成し、該減算後画像
とプレ印刷情報を含まない合成マスクとを合成すること
を特徴とする光学式文字読取装置。
An image is subtracted from a form image including a seal image using a subtraction mask created based on an unfilled form image to create a subtracted image in which preprinted information is erased, and the subtracted image and an unprocessed image are created. An optical character reader for restoring a form image including an imprint by synthesizing a synthetic mask created based on a filled-in form image, wherein a subtraction mask that does not perform image subtraction is applied to a designated area including the imprint. Optical character reading, wherein a subtracted image including image data of a seal imprint is created in the fixed area by subtraction using the subtracted image, and the subtracted image is combined with a composite mask not including preprint information. apparatus.
【請求項2】 網掛けを含む帳票イメージから未記入の
帳票イメージを元に作成した減算マスクを用いて画像減
算することによりプレ印刷情報を消去した減算後画像を
作成し、該減算後画像と未記入の帳票イメージを元に作
成した合成マスクとを合成することにより網掛けを含む
帳票イメージを復元する光学式文字読取装置であって、
前記網掛けを含む指定領域内に対し、画像減算を行う減
算マスクを用いて減算することにより前記網掛けのイメ
ージデータを減算した減算後画像を作成し、該減算後画
像と網掛けのプレ印刷情報を含む成マスクとを合成する
ことを特徴とする光学式文字読取装置。
2. A subtracted image in which preprint information is deleted by subtracting an image from a form image including a hatched form using a subtraction mask created based on an unfilled form image, to generate a subtracted image, An optical character reading device for restoring a form image including hatching by combining a composite mask created based on an unfilled form image,
A subtracted image is subtracted by using a subtraction mask for performing image subtraction on the designated area including the shaded area, thereby creating a subtracted image by subtracting the shaded image data, and preprinting the subtracted image and the shaded area. An optical character reading device for synthesizing a synthetic mask containing information.
【請求項3】 認識不要な文字を含む帳票イメージから
未記入の帳票イメージを元に作成した減算マスクを用い
てを画像減算することによりプレ印刷情報を消去した減
算後画像を作成し、該減算後画像と未記入の帳票イメー
ジを元に作成した合成マスクとを合成する光学式文字読
取装置であって、前記認識不要な文字を含む指定領域内
に対し、画像減算を行う減算マスクを用いて減算するこ
とにより前記定領域内のイメージデータを減算した減算
後画像を作成し、該減算後画像と前記定領域内のイメー
ジデータを含まない合成マスクとを合成することを特徴
とする光学式文字読取装置。
3. A subtracted image in which preprint information is deleted by subtracting an image from a form image containing characters that do not require recognition using a subtraction mask created based on an unfilled form image, and creating a subtracted image. An optical character reading device that combines a post-image and a composite mask created based on an unfilled form image, using a subtraction mask that performs image subtraction on a designated area including the unnecessary characters. An optical character, wherein a subtracted image is created by subtracting the image data in the fixed area by subtraction, and the combined image and the combined mask not including the image data in the fixed area are created. Reader.
JP30909099A 1999-10-29 1999-10-29 Optical character reader Pending JP2001126052A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30909099A JP2001126052A (en) 1999-10-29 1999-10-29 Optical character reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30909099A JP2001126052A (en) 1999-10-29 1999-10-29 Optical character reader

Publications (1)

Publication Number Publication Date
JP2001126052A true JP2001126052A (en) 2001-05-11

Family

ID=17988777

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30909099A Pending JP2001126052A (en) 1999-10-29 1999-10-29 Optical character reader

Country Status (1)

Country Link
JP (1) JP2001126052A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114626468A (en) * 2022-03-17 2022-06-14 小米汽车科技有限公司 Method and device for generating shadow in image, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114626468A (en) * 2022-03-17 2022-06-14 小米汽车科技有限公司 Method and device for generating shadow in image, electronic equipment and storage medium
CN114626468B (en) * 2022-03-17 2024-02-09 小米汽车科技有限公司 Method, device, electronic equipment and storage medium for generating shadow in image

Similar Documents

Publication Publication Date Title
US5486686A (en) Hardcopy lossless data storage and communications for electronic document processing systems
US5029115A (en) Process for the creation of camera-ready mechanicals
CN100596164C (en) Image processing apparatus
US20070283250A1 (en) Document Processing Method and System
JP3753279B2 (en) Method and system for creating print with message
JPH03105687A (en) Picture synthesizing method
JP2001126052A (en) Optical character reader
JPH03193495A (en) Method for forgery preventing processing treatment of id card and forgery preventing id card
JP2003046746A (en) Method and apparatus for processing image
JP5923981B2 (en) Image processing apparatus and image processing program
JP4055966B2 (en) Scanner device, document scanning method, and recording medium recording scan program
CN101140621A (en) Graph and text image processing equipment and image processing method thereof
JP2002007958A (en) Slip processing method and storage medium
JP2006126834A (en) Method and system for producing print with message
JP4253077B2 (en) Raster data editing device
JP2706091B2 (en) Image processing method and image processing system
JP3823005B2 (en) Bitmap font creation device and document restoration device
JP3914767B2 (en) Image reduction conversion method, image processing apparatus, accounting processing apparatus, and image reduction conversion program
JP3896219B2 (en) Multi-product print creation device
JPH1196297A (en) Method and device for processing slip image
JP2005039801A (en) Image processing system, image processing method, and program
JPH09507998A (en) How to attach sheets
JP3174092B2 (en) Print image signal processing method
JP2001209755A (en) Device and method for correcting miswriting and computer readable recording medium with miswriting correction program stored therein
CA2077659A1 (en) Segregated format processing of combined text and pictorial image data

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20040127

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040701

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040713

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20041207