JP2685997B2 - OCR data input processing method - Google Patents

OCR data input processing method

Info

Publication number
JP2685997B2
JP2685997B2 JP3129266A JP12926691A JP2685997B2 JP 2685997 B2 JP2685997 B2 JP 2685997B2 JP 3129266 A JP3129266 A JP 3129266A JP 12926691 A JP12926691 A JP 12926691A JP 2685997 B2 JP2685997 B2 JP 2685997B2
Authority
JP
Japan
Prior art keywords
data
ocr
program
user
data input
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.)
Expired - Lifetime
Application number
JP3129266A
Other languages
Japanese (ja)
Other versions
JPH04354080A (en
Inventor
哲昌 松梅
誠一 松崎
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP3129266A priority Critical patent/JP2685997B2/en
Publication of JPH04354080A publication Critical patent/JPH04354080A/en
Application granted granted Critical
Publication of JP2685997B2 publication Critical patent/JP2685997B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Character Discrimination (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は,OCR装置により帳票
から文字データを光学的に読み取って入力するOCRデ
ータ入力処理方法に関するものであり,特に帳票から読
み取ったOCRデータの論理エラーチェックを効率的に
行うためのOCRデータ入力処理方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an OCR data input processing method for optically reading character data from a form by an OCR device and inputting the data, and particularly to efficiently check a logical error of the OCR data read from the form. The present invention relates to an OCR data input processing method for performing the above.

【0002】[0002]

【従来の技術】図4に,従来のOCRデータ入力処理方
法の処理の流れを示す。図において,3はOCRデータ
入力プログラム,4は利用者プログラム,5および5′
はデータファイルである。
2. Description of the Related Art FIG. 4 shows a processing flow of a conventional OCR data input processing method. In the figure, 3 is an OCR data input program, 4 is a user program, and 5 and 5 '.
Is a data file.

【0003】OCRデータ入力プログラム3は,OCR
装置による帳票読み取りを制御し,帳票に記入されてい
る文字データ(ここではOCRデータという)を読み取
って汎用的なチェックを行う。その結果OCRデータの
エラーが検出されると,オペレータは修正画面上でエラ
ーを修正し,結果のデータを編集してデータファイル5
に格納する。
The OCR data input program 3 is an OCR
The reading of the form by the device is controlled, and character data (herein referred to as OCR data) written in the form is read to perform a general-purpose check. As a result, when an error in the OCR data is detected, the operator corrects the error on the correction screen, edits the resulting data, and edits the data file 5
To be stored.

【0004】従来のOCRデータ入力プログラム3の汎
用的なチェック機能は,予め設定される帳票定義体に基
づいて行われるものであり,帳票定義上で規定されてい
記入禁止領域のデータかどうか,あるいは英数字,カ
ナ等の文字種や桁数が適合しているかどうか,などの
較的単純な論理エラーに関するものである。これに対し
て,OCRデータが所定の値の範囲内にあるかどうか
や,特定の位置に特定の文字があるかどうかのような
入された文字列内容の吟味など,利用者側固有の処理に
関連する論理エラーは,OCRデータ入力プログラム3
でチェックすることができず,利用者プログラム4によ
ってチェックされる。
[0004]TraditionalOCR data input program 3
The general check function isBased on the form definition set in advance
It is done based on the form definition.
ToIs the data in the non-fillable area?, Or alphanumeric characters,
Such as whether the character type and the number of digits such asratio
It concerns relatively simple logic errors. In contrast
The OCR data is within the specified rangeplease ~
Or there is a specific character at a specific positionWhether or notRecord
User side, such as examination of entered character string contentsUniqueFor processing
Related logic error is OCR data input program 3
Cannot be checked with
Is checked.

【0005】このため,OCRデータ入力プログラム3
による帳票の読み取りが終了すると,利用者プログラム
を起動し,利用者独自の論理エラーチェックを実行す
る。利用者プログラム4は,データファイル5を読み込
み,OCRデータについて指定された論理エラーチェッ
クを行い,エラーが検出されると修正画面を呼び出して
修正を行わせ,修正処理が終了すると修正結果について
再び同様な論理エラーチェックを行って,エラーが検出
されれば修正を繰り返し,エラーが検出されなくなった
結果のデータをデータファイル5に格納する。
Therefore, the OCR data input program 3
After reading the form by, the user program is started and the user's own logical error check is executed. The user program 4 reads the data file 5, performs a specified logical error check on the OCR data, calls a correction screen to make a correction when an error is detected, and when the correction process ends, the correction result is the same again. The logical error check is performed, and if an error is detected, the correction is repeated, and the data resulting from the error not being detected is stored in the data file 5.

【0006】[0006]

【発明が解決しようとする課題】従来のOCRデータ入
力処理方法では,OCRデータ入力プログラムで行って
いた装置から読み取ったOCRデータの論理的なデータ
チェックは,あくまで汎用的なチェック機能のみであっ
た。このため,各々の利用者によって行う必要性がある
さらに複雑なデータチェックは,OCRデータエントリ
プログラムによるOCRデータの編集後,あらためて利
用者が作成した独自のプログラムにより,データファイ
ルからデータを読み込み,論理エラーチェック後,デー
タを画面表示して修正し,その後データをデータファイ
ルに格納するといった,一連の処理を行わなければなら
なかった。このため処理に時間がかかり,また利用者プ
ログラムの作成負担も大きかった。
In the conventional OCR data input processing method, the logical data check of the OCR data read from the device, which is performed by the OCR data input program, is only a general-purpose check function. . Therefore, for more complicated data check that needs to be performed by each user, after editing the OCR data by the OCR data entry program, the data is read from the data file by the original program newly created by the user, and the logical check is performed. After the error check, the data had to be displayed on the screen, corrected, and then stored in a data file. For this reason, the processing took time and the burden of creating the user program was large.

【0007】本発明は,利用者プログラムによる利用者
独自のOCRデータチェックが簡単に行われるようにし
てOCRデータ入力処理を効率化し,処理時間を短縮す
ることを目的としている。
An object of the present invention is to make the OCR data check unique to the user easy by the user program so that the OCR data input process becomes efficient and the processing time is shortened.

【0008】[0008]

【課題を解決するための手段】本発明は,OCRデータ
入力プログラムから利用者プログラムを呼び出し可能に
して,利用者プログラム側でのデータファイルの入出力
処理や画面修正処理を不要にし,利用者プログラムはO
CRデータの論理エラーチェックのみを行えばよいよう
にすることによって課題の解決を図るものである。
According to the present invention, a user program can be called from an OCR data input program, eliminating the need for data file input / output processing and screen correction processing on the user program side. Is O
This is intended to solve the problem by allowing only the logical error check of CR data to be performed.

【0009】図1は本発明の原理説明図である。図1に
おいて,1は,帳票からOCRデータを読み取るOCR
装置である。2は,OCRデータの入力処理を行う処理
装置である。
FIG. 1 is a diagram illustrating the principle of the present invention. In FIG. 1, 1 is an OCR that reads OCR data from a form.
Device. Reference numeral 2 is a processing device for inputting OCR data.

【0010】3は,OCRデータの入力処理を制御する
OCRデータ入力プログラムであり,OCRデータの読
み取り,汎用的な論理エラーのチェック,画面上でのエ
ラー修正,OCRデータの編集およびデータファイルへ
の格納を行う。4は,OCRデータについて利用者独自
の論理エラーチェックを行う利用者プログラムである。
Reference numeral 3 is an OCR data input program for controlling the input processing of the OCR data, which reads the OCR data, checks a general logic error, corrects the error on the screen, edits the OCR data, and writes the data file. Store. Reference numeral 4 is a user program for performing a user-specific logical error check on the OCR data.

【0011】5は,エラーチェックおよび修正を終了し
たOCRデータを格納するデータファイルである。OC
Rデータ入力プログラム3から利用者プログラム4へ
は,OCRデータの読み取りとエラー修正の各処理の終
了段階で呼び出しが行われる。
Reference numeral 5 is a data file for storing OCR data which has been subjected to error checking and correction. OC
The R data input program 3 is called to the user program 4 at the end stage of each processing of reading OCR data and error correction.

【0012】図1において,OCRデータ入力プログラ
ム3は,論理エラーが検出されていた場合修正画面を表
示して修正を行わせ,修正処理の終了後に再び利用者プ
ログラム4を呼び出す。利用者プログラム4は,前回と
同様に論理エラーチェックを行い,再びチェック結果を
返す。
In FIG. 1, the OCR data input program 3 displays a correction screen when a logic error is detected to make a correction, and calls the user program 4 again after the correction processing is completed. The user program 4 performs the logical error check as in the previous case, and returns the check result again.

【0013】OCRデータ入力プログラム3は,論理エ
ラーが検出されていた場合修正画面を表示してエラー修
正を行わせ,さらに利用者プログラム4を呼び出す動作
を論理エラーがなくなるまで繰り返す。論理エラーが検
出されないとき,OCRデータをデータファイル5に格
納する。
When a logic error is detected, the OCR data input program 3 displays a correction screen to correct the error, and repeats the operation of calling the user program 4 until the logic error is eliminated. When no logic error is detected, the OCR data is stored in the data file 5.

【0014】[0014]

【作用】図1において,利用者プログラム4は,OCR
データ入力プログラム3の論理エラーチェックのみを行
う副プログラムとして機能し,データファイル5の入出
力や修正処理を行う必要がない。そのためプログラム規
模を小さくでき,また帳票種別が多数あり,論理エラー
のチェック内容がそれに応じて多数ある場合にも,利用
者プログラムに作成負担が小さい。またOCRデータ入
力処理全体の手順が効率化されるため,処理時間が短縮
できる。
In FIG. 1, the user program 4 is an OCR.
It functions as a sub-program that only checks the logic error of the data input program 3, and there is no need to input / output or correct the data file 5. Therefore, the program scale can be reduced, and even when there are many types of forms and a large number of logical error check contents, the burden of creating the user program is small. Further, since the entire procedure of the OCR data input process is made efficient, the processing time can be shortened.

【0015】[0015]

【実施例】次に本発明実施例を説明する。図2に示すよ
うに,OCRデータ入力プログラム3は,利用者プログ
ラム4を呼び出す際に,1帳票単位に文字データレコー
ド6,利用者定義情報7及び補助情報8からなる通知情
報(後述)を利用者プログラムに引き渡す必要があり,
そのため呼び出し時に各情報のアドレスを利用者プログ
ラム4に通知する。
EXAMPLES Next, examples of the present invention will be described. As shown in FIG. 2, when calling the user program 4, the OCR data input program 3 uses the notification information (described later) consisting of the character data record 6, the user definition information 7 and the auxiliary information 8 for each form. Need to hand over to the
Therefore, the address of each information is notified to the user program 4 at the time of calling.

【0016】利用者プログラム4は,通知されたアドレ
スにしたがって,文字データレコード6,利用者定義情
報7,補助情報8をそれぞれ参照し,論理エラーチェッ
クを行い,エラーが検出された場合,文字データレコー
ドの管理情報にエラー状態を設定してOCRデータ入力
プログラムに通知する。
The user program 4 refers to the character data record 6, the user definition information 7, and the auxiliary information 8 in accordance with the notified address, performs a logical error check, and if an error is detected, the character data An error state is set in the management information of the record and the OCR data input program is notified.

【0017】文字データレコード6は,データ形式の版
数や,データ内項目のリジェクトおよび論理エラーの状
態を示す情報,各種のID情報などを含む管理情報とO
CRの読み取りデータからなる。1つの文字データレコ
ードには1枚の帳票のデータが格納され,データは処理
順に格納される。利用者プログラム4は,文字データレ
コード6中の所定のデータを参照して論理エラーをチェ
ックし,エラーが検出されれば,項目の情報を論理エラ
ーとし,論理エラーありをOCRデータ入力プログラム
3に通知する。
The character data record 6 includes management information including the version number of the data format, information indicating the status of rejection and logical error of items in the data, various ID information, and O.
It consists of CR read data. The data of one form is stored in one character data record, and the data is stored in the processing order. The user program 4 refers to predetermined data in the character data record 6 to check for a logical error. If an error is detected, the information on the item is treated as a logical error and the OCR data input program 3 indicates that there is a logical error. Notice.

【0018】利用者定義情報7は,文字データレコード
6中に存在する項目の位置を示す情報であり,項目のデ
ータ位置をフィールド単位で示すフィールド位置と項目
を識別する項目単位のフィールド利用者情報とを含む。
補助情報8は,利用者プログラム4の呼び出しに伴う補
助的な情報であり,OCRデータ入力プログラム3から
利用者プログラム4を呼び出したときのOCRデータ入
力プログラム3における処理段階が,OCR装置読み取
り直後であるか修正画面処理直後であるか,さらには一
括読み取りか一括修正かなどを示す。
The user definition information 7 is information indicating the position of an item existing in the character data record 6, and is a field position indicating the data position of the item in field units and field user information in item units. Including and
The auxiliary information 8 is auxiliary information that accompanies the calling of the user program 4, and the processing stage in the OCR data input program 3 when the user program 4 is called from the OCR data input program 3 is immediately after reading the OCR device. Whether it is present or just after the correction screen is processed, and whether it is a batch reading or a batch correction is indicated.

【0019】図3は本発明実施例によるOCRデータ入
力処理の全体の流れを示すフロー図である。以下に各手
順(a)〜(n)を説明する。 (a):OCR装置を駆動してホッパから帳票を1枚,
読み取り部へ給送する。 (b):読み取り部でOCRデータを読み取る。 (c):利用者プログラムを起動し,利用者独自の論理
エラーチェックを行わせる。 (d):論理エラーが検出された場合,修正画面でOC
Rデータを修正させる。 (e):リジェクトエラーの有無を調べ,有れば(l)
を,無ければ(f)を実行する。 (f):汎用的な論理エラーチェックを行うかどうかを
指示により切り分け,行う場合は(g)を,行わない場
合は(h)を実行する。 (g)汎用的な論理エラーチェックでのエラーの有無を
判定し,有れば(m)を,無ければ(h)を実行する。 (h):利用者プログラムを起動し,利用者独自の論理
エラーチェックを行わせる。 (i):論理エラーの有無を判定し,有れば(n)を,
無ければ(j)を実行する。 (j):データファイルにOCRデータを格納する。 (k):OCR装置のホッパが空でなければ(a)に戻
って次の帳票の読み取りを継続し,ホッパが空であれば
終了する。 (l):(e)でリジェクトエラーが有った場合には,
強制格納が指示されているかどうかを判定し,強制格納
をする場合には(j)でエラーのままのOCRデータを
格納し,強制格納をしない場合には(d)でリジェクト
エラーを修正する。 (m):(g)で論理エラーが有った場合には,(l)
と同様に強制格納するかしないかにより,(j)または
(d)を実行する。 (n):(i)で論理エラーが有った場合には,
(l),(m)と同様に強制格納するかしないかによ
り,(j)または(d)を実行する。
FIG. 3 is a flow chart showing the overall flow of the OCR data input processing according to the embodiment of the present invention. Below, each procedure (a)-(n) is demonstrated. (A): One sheet from the hopper by driving the OCR device,
Feed it to the reading section. (B): The reading unit reads the OCR data. (C): The user program is started and the user's own logical error check is performed. (D): When a logic error is detected, OC is displayed on the correction screen.
Modify R data. (E): Examine whether there is a reject error, and if there is, (l)
Otherwise, (f) is executed. (F): Whether or not to perform a general-purpose logical error check is discriminated according to an instruction. When it is performed, (g) is executed, and when not performed, (h) is executed. (G) The presence / absence of an error in a general-purpose logical error check is determined, and if there is, (m) is executed, and if not, (h) is executed. (H): The user program is started and the user's own logical error check is performed. (I): It is determined whether or not there is a logic error, and if there is, (n),
If there is not, execute (j). (J): Store the OCR data in the data file. (K): If the hopper of the OCR device is not empty, return to (a) to continue reading the next form, and if the hopper is empty, end it. (L): If there is a reject error in (e),
It is determined whether the forced storage is instructed. If the forced storage is performed, the error OCR data is stored in (j), and if the forced storage is not performed, the reject error is corrected in (d). (M): If there is a logic error in (g), (l)
Similarly to (1), (j) or (d) is executed depending on whether to forcibly store. (N): If there is a logic error in (i),
Similar to (l) and (m), (j) or (d) is executed depending on whether or not forced storage is performed.

【0020】[0020]

【発明の効果】以上のように本発明によれば,利用者は
OCRデータの論理エラーをチェックする機能をもつプ
ログラムだけを作成すれば,独自の任意詳細な論理エラ
ーをチェックすることが可能となり,エラーが検出され
た場合も従来のOCRデータ入力プログラムの修正画面
上で簡易に修正することができる。そしてその結果,O
CRデータの読み取りから,修正,データ格納までの一
連の流れの中で全てのエラーチェックを行うことがで
き,正しいOCRデータが得られるまでの処理時間を短
縮できる。
As described above, according to the present invention, a user can check a unique arbitrary detailed logical error by creating only a program having a function of checking a logical error of OCR data. Even if an error is detected, it can be easily corrected on the correction screen of the conventional OCR data input program. And as a result, O
All error checks can be performed in a series of flow from reading CR data to correction and data storage, and the processing time until correct OCR data is obtained can be shortened.

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

【図1】本発明の原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.

【図2】本発明実施例における利用者プログラムへの通
知情報の説明図である。
FIG. 2 is an explanatory diagram of notification information to a user program in the embodiment of the present invention.

【図3】本発明実施例によるOCRデータ入力処理の全
体の流れを示すフロー図である。
FIG. 3 is a flowchart showing the overall flow of OCR data input processing according to the embodiment of the present invention.

【図4】従来のOCRデータ入力処理方法の説明図であ
る。
FIG. 4 is an explanatory diagram of a conventional OCR data input processing method.

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

1 OCR装置 2 処理装置 3 OCRデータ入力プログラム 4 利用者プログラム 5 データファイル 1 OCR device 2 Processing device 3 OCR data input program 4 User program 5 Data file

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 CRデータ入力プログラムそなえ,
OCRデータ入力プログラムの制御のもとに,帳票に記
入されているOCRデータを読み取り,次に,読み取ら
れたデータが帳票定義に適合しているかどうかの汎用的
な論理エラーチェックを行い,必要な場合に読み取り結
果を修正させて入力するOCRデータ入力処理方法にお
いて, 読み取られたOCRデータについて利用者のデータ処理
内容に依存する利用者独自の論理エラーチェックを行う
利用者プログラムを設け, OCRデータ入力プログラム帳票から文字データを読
み取り汎用的な論理エラーチェックを行った処理段階
および読み取ったデータについて論理エラーチェック
が行われた結果によりデータのエラーを修正させた処理
段階の後のそれぞれにおいて,OCRデータ入力プログ
ラムから利用者プログラムに呼び出し関係を設定し,
それぞれの処理段階においてOCRデータ入力による汎
用的な論理エラーチェックとともに利用者プログラムに
よる利用者独自の論理エラーチェックを行わせることを
特徴とするOCRデータ入力処理方法。
1. A comprising a O CR data input program,
Under the control of the OCR data input program , read the OCR data entered in the form, and then read it.
Of whether or not the stored data conforms to the form definition
In the OCR data input processing method, which performs various logical error checks and corrects the read result when necessary, inputs the OCR data read by the user.
The user program for the user own logical error check that depends on the content provided, OCR data input program of processing steps carried out a generic logic error checking Ri taken read <br/> the character data from the form
Logical error check for and after reading Tsu data
The processing that corrected the data error according to the result of
In each subsequent stage, to set the call relation from OCR data entry program to the user program, the <br/> respective processing stages Oite OCR data input by Pan
To the user program with the purposeful logical error check
The OCR data input processing method is characterized in that the user makes a logical error check unique to the user .
JP3129266A 1991-05-31 1991-05-31 OCR data input processing method Expired - Lifetime JP2685997B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3129266A JP2685997B2 (en) 1991-05-31 1991-05-31 OCR data input processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3129266A JP2685997B2 (en) 1991-05-31 1991-05-31 OCR data input processing method

Publications (2)

Publication Number Publication Date
JPH04354080A JPH04354080A (en) 1992-12-08
JP2685997B2 true JP2685997B2 (en) 1997-12-08

Family

ID=15005328

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3129266A Expired - Lifetime JP2685997B2 (en) 1991-05-31 1991-05-31 OCR data input processing method

Country Status (1)

Country Link
JP (1) JP2685997B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2023145001A (en) 2022-03-28 2023-10-11 富士フイルムビジネスイノベーション株式会社 Information processing device and image processing program
JP2023145002A (en) 2022-03-28 2023-10-11 富士フイルムビジネスイノベーション株式会社 Information processing device and image processing program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58130670A (en) * 1982-01-28 1983-08-04 Nec Corp Picture signal connecting system using plural solid-state image pickup elements
JPS61288564A (en) * 1985-06-14 1986-12-18 Ricoh Co Ltd Intermediate gradation digital picture processor
JPH0260771A (en) * 1988-08-29 1990-03-01 Canon Inc Image processing system
JP2887840B2 (en) * 1989-04-06 1999-05-10 株式会社リコー Image reading device

Also Published As

Publication number Publication date
JPH04354080A (en) 1992-12-08

Similar Documents

Publication Publication Date Title
US5835909A (en) System and method for processing date-dependent information which spans one or two centuries
JP2685997B2 (en) OCR data input processing method
KR930003412B1 (en) Character reading system and method
JPS6358553A (en) Display system for error countermeasure of electronic computer system
JPH0512571A (en) Correction processing system for pos device
AU694689B2 (en) Local and zone time data conversion processing for date-dependent information which spans one or two centuries
JPH01258116A (en) System for setting determined value of command parameter
JPH0561894A (en) Tabling device
JPH06332749A (en) Register analysis processor
JP2606566B2 (en) Screen creation and display method for demonstration
JPS60175151A (en) Information processor
JPH05143293A (en) Initial system loading system by magnetic card
JPS63251238A (en) Shipping document automatic preparation system
JPS60252941A (en) Input processing system for registered data
JPH10105447A (en) Data processor
JPH10143135A (en) Document for machine
JPH06223123A (en) Drawing control method
JPH03233760A (en) Document generating machine
JPH08339418A (en) Processing method for ocr read data
JPS6393096A (en) Sales data processor
JPS5962943A (en) Code data input device
JPH0737010A (en) Slip image data processing method
JPH01286053A (en) Data control system over plural types of computers
JPH05135080A (en) Data processor
JPH0528429B2 (en)

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090815

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110815

Year of fee payment: 14

EXPY Cancellation because of completion of term