JPH05324902A - Image input method - Google Patents

Image input method

Info

Publication number
JPH05324902A
JPH05324902A JP4132943A JP13294392A JPH05324902A JP H05324902 A JPH05324902 A JP H05324902A JP 4132943 A JP4132943 A JP 4132943A JP 13294392 A JP13294392 A JP 13294392A JP H05324902 A JPH05324902 A JP H05324902A
Authority
JP
Japan
Prior art keywords
image
character
recognition
read
rotated
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
JP4132943A
Other languages
Japanese (ja)
Inventor
Kazunori Aiko
一典 愛甲
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP4132943A priority Critical patent/JPH05324902A/en
Publication of JPH05324902A publication Critical patent/JPH05324902A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)
  • Character Discrimination (AREA)

Abstract

(57)【要約】 【目的】画像入力の際に、読み取った原稿画像の向きを
ディプレイ上で確認する必要なく、効率的な作業を行う
ことができる。 【構成】まず、ステップ21でカウンタ4を1に、カウ
ンタ5,6を0に初期化する。ステップ22で原稿画像
から文字を切り出し、ステップ23で切り出し文字を認
識処理し、ステップ24で認識が成功した場合は、ステ
ップ25でカウンタ5を+1する。認識が成功しない場
合は、ステップ26で切り出し文字を180°回転し、
この180°回転した文字について、ステップ27で認
識処理し、ステップ28で認識が成功した場合は、ステ
ップ29でカウンタ6を+1する。これらの処理を終了
すると、ステップ31でカウンタ4に1を加算する。以
上の処理を6回繰り返し、最終的にステップ32で認識
成功の回数が多い方向が正しい方向とし、逆方向であれ
ば、ステップ33で原稿画像を180°回転する。
(57) [Summary] [Purpose] When inputting an image, it is possible to perform efficient work without having to confirm the orientation of the read original image on the display. [Structure] First, in step 21, the counter 4 is initialized to 1, and the counters 5 and 6 are initialized to 0. In step 22, a character is cut out from the original image, in step 23, the cut-out character is recognized, and if the recognition is successful in step 24, the counter 5 is incremented by 1 in step 25. If the recognition is not successful, the cut-out character is rotated 180 ° in step 26,
The character rotated by 180 ° is subjected to recognition processing in step 27, and if recognition is successful in step 28, the counter 6 is incremented by 1 in step 29. When these processes are completed, 1 is added to the counter 4 in step 31. The above process is repeated 6 times, and finally the direction in which the number of times of successful recognition is large is the correct direction in step 32, and if it is the opposite direction, the original image is rotated 180 ° in step 33.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、スキャナで読み取った
原稿画像を光ディスクなどの記録媒体に登録する画像フ
ァイリングシステムなどに用いられる画像入力方法に関
するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image input method used in an image filing system for registering a document image read by a scanner in a recording medium such as an optical disk.

【0002】[0002]

【従来の技術】従来より、画像ファイリングシステムに
おいては、複数頁からなる文書を自動的に連続して読み
込んだ後に、キーワードを付与して記録媒体に登録する
ことができる。この機能を用いると、作業者は複数頁を
読み取っている間は、文書登録作業から開放されるた
め、作業の効率化が図れる。ところが、このように複数
頁からなる文書を登録する場合、文書中の一部の頁の向
きが逆になっていることがあり、そのままでは、その頁
だけ逆向きのまま登録される。このようなことを防止す
るために、従来は一枚読み取るごとに原稿の向きをディ
プレイ上で確認したり、あるいは、一旦全頁を読み取っ
た後、ディスプレイ上に1頁ずつ表示させて、各頁の向
きを確認したりして、逆向きのものがあれば、その都度
画像を180°回転させていた。
2. Description of the Related Art Conventionally, in an image filing system, a document consisting of a plurality of pages can be automatically and continuously read, and then a keyword can be added and registered in a recording medium. When this function is used, the worker is relieved from the document registration work while reading a plurality of pages, so that the work efficiency can be improved. However, when a document having a plurality of pages is registered in this way, some pages in the document may be reversed in direction, and as it is, only that page is registered in reverse direction. In order to prevent such a situation, conventionally, the direction of the document is checked on the display every time one sheet is read, or after all pages have been read once, one page is displayed on the display to display each page. The orientation of the page was checked, and if there was an opposite orientation, the image was rotated 180 ° each time.

【0003】[0003]

【発明が解決しようとする課題】このように、上記従来
の画像入力方法では、せっかく複数頁を自動的に連続し
て読み込んだとしても、結局全頁にわたって、作業者が
ディスプレイ上で画像の向きを確認しなければならない
という問題点を有しており、作業効率の向上が求められ
ている。
As described above, in the above-described conventional image input method, even if a plurality of pages are automatically and continuously read, the operator will end up with the orientation of the image on the display over the entire page. Therefore, there is a problem that it is necessary to confirm the above, and improvement of work efficiency is required.

【0004】本発明は上記問題を解決するもので、読み
取った原稿画像の向きをディスプレイ上で確認する必要
はなく、効率的な作業を行うことができる画像入力方法
を提供することを目的とするものである。
The present invention solves the above problems, and an object of the present invention is to provide an image input method which enables efficient work without the need to confirm the orientation of the read original image on the display. It is a thing.

【0005】[0005]

【課題を解決するための手段】上記課題を解決するため
に、本発明の画像入力方法は、読み取った原稿画像から
切り出された文字データを文字認識する第1のステップ
と、前記第1のステップにおける文字認識結果に基づい
て、原稿画像の向きを判別する第2のステップと、前記
第2のステップにおける判別結果に基づいて、読み取っ
た原稿画像を180°回転させる第3のステップと、前
記第3のステップにおける180°回転させた文字デー
タを文字認識する第4のステップと、前記第4のステッ
プにおける文字認識結果に基づいて、前記180°回転
させた文字データの向きを判別する第5のステップと、
これらの判別を切り出された他の文字データに対して複
数回繰り返す第6のステップと、前記第2のステップと
第4のステップにおける認識成功回数を比較し、その結
果に基づいて、読み取った原稿画像を180°回転させ
る第7のステップと有する構成にしたものである。
In order to solve the above-mentioned problems, the image input method of the present invention includes a first step of recognizing character data cut out from a read original image, and the first step. A second step of determining the orientation of the original image based on the result of character recognition in step 3, and a third step of rotating the read original image by 180 ° based on the determination result in the second step; A fourth step of recognizing the character data rotated by 180 ° in step 3 and a fifth step of determining the orientation of the character data rotated by 180 ° based on the character recognition result in the fourth step. Steps,
The sixth step in which these determinations are repeated a plurality of times for other cut out character data and the number of successful recognitions in the second step and the fourth step are compared, and based on the result, the read original is read. The configuration has a seventh step of rotating the image by 180 °.

【0006】[0006]

【作用】上記構成により、読み取った原稿画像から切り
出された文字画像を認識することによって原稿画像の向
きを判別し、その判別結果に応じて、読み取った文字画
像を180°回転させ、180°回転させる前に認識成
功した回数と180°回転させた後の認識成功した回数
とを比較し、認識成功の回数が多い方向が正しい方向と
して、原稿画像全体を回転させるか否かを判定する。
With the above structure, the orientation of the original image is determined by recognizing the character image cut out from the read original image, and the read character image is rotated 180 ° and rotated 180 ° according to the determination result. The number of successful recognitions before the rotation is compared with the number of successful recognitions after the 180 ° rotation, and it is determined whether or not the entire original image is rotated with the direction having the largest number of successful recognitions as the correct direction.

【0007】[0007]

【実施例】以下、本発明の一実施例について、図面を用
いて説明する。図1は本発明の一実施例における画像入
力方法を用いた画像ファイリングシステムのブロック図
である。図1において、1はシステムの制御およびデー
タ処理を行う中央演算処理装置(以下CPUという)、
2はプログラムを記憶する読みだし専用メモリ(以下R
OMという)であり、CPU1はROM2内のプログラ
ムに従ってシステムの制御およびデータ処理などを行
う。3はランダムアクセスメモリ(以下RAMとい
う)、4,5,6はカウンタ、7は文字認識を行うため
に原稿画像から切り出された文字画像を記憶しておく認
識文字記憶領域、8はイメージメモリ、9は光ディスク
などの外部記憶装置、10はキーボードやマウスなどの
入力部、11はCRT表示装置(以下CRTという)、
12は原稿を読み取るイメージスキャナ、13はプリン
タである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of an image filing system using an image input method according to an embodiment of the present invention. In FIG. 1, reference numeral 1 denotes a central processing unit (hereinafter referred to as CPU) that controls the system and performs data processing,
2 is a read-only memory (hereinafter R
OM), and the CPU 1 controls the system and processes data according to the programs stored in the ROM 2. 3 is a random access memory (hereinafter referred to as RAM), 4, 5 and 6 are counters, 7 is a recognized character storage area for storing a character image cut out from an original image for character recognition, 8 is an image memory, Reference numeral 9 is an external storage device such as an optical disk, 10 is an input unit such as a keyboard or mouse, 11 is a CRT display device (hereinafter referred to as CRT),
Reference numeral 12 is an image scanner for reading a document, and 13 is a printer.

【0008】このように構成された画像ファイリングシ
ステムについて、以下、その動作を図2のフローチャー
トを用いて説明する。まず、原稿画像がイメージスキャ
ナ12で光学的に読み取られ(ステップ1)、2値化さ
れた画像データとしてイメージメモリ8に書き込まれる
(ステップ2)。次に、イメージメモリ8内の原稿画像
の向きが自動判別されて、必要に応じて180°回転さ
れ(ステップ3)、さらに次の頁に進む(ステップ
4)。
The operation of the image filing system thus configured will be described below with reference to the flowchart of FIG. First, a document image is optically read by the image scanner 12 (step 1) and written in the image memory 8 as binarized image data (step 2). Next, the orientation of the original image in the image memory 8 is automatically determined and rotated by 180 ° if necessary (step 3), and the process proceeds to the next page (step 4).

【0009】ステップ1からステップ4までの処理は、
登録する文書の全頁を読み取るまで繰り返される。その
結果、イメージメモリ8には図4に示すように複数頁の
画像データガ記憶される。読み取られた文書の画像デー
タは、入力部10から入力されるキーワード(ステップ
5)とともに、外部記憶装置9に記憶される(ステップ
6)。外部記憶装置9に記憶された画像データは、入力
部10から入力されるキーワードによって検索され、C
RT11やプリンタ13に出力される。
The processing from step 1 to step 4 is
The process is repeated until all pages of the document to be registered are read. As a result, a plurality of pages of image data are stored in the image memory 8 as shown in FIG. The image data of the read document is stored in the external storage device 9 together with the keyword (step 5) input from the input unit 10 (step 6). The image data stored in the external storage device 9 is searched for by the keyword input from the input unit 10, and C
It is output to the RT 11 and the printer 13.

【0010】以下、上述したステップ3における処理に
ついて、図3のフローチャートを用いて詳細に説明す
る。まず、カウンタ4が1に、また、カウンタ5と6が
0に初期化される(ステップ21)。初期化が終わる
と、イメージメモリ8に記憶されている原稿画像から、
1文字の画像データが切り出されて認識文字記憶領域7
に複写される(ステップ22)。次に、認識文字記憶領
域7内の文字画像データは文字認識処理され(ステップ
23)、認識に成功した場合にはカウンタ5の値が1イ
ンクリメントされ(ステップ24,25)、失敗した場
合には認識文字記憶領域7内の文字画像データが180
°回転される(ステップ24,26)。続いて、180
°回転した文字画像データが認識処理されて(ステップ
27)、認識に成功した場合にはカウンタ6が1インク
リメントされる(ステップ28,29)。
The process in step 3 described above will be described in detail below with reference to the flowchart of FIG. First, the counter 4 is initialized to 1, and the counters 5 and 6 are initialized to 0 (step 21). When initialization is complete, the original image stored in the image memory 8
Image data of one character is cut out and recognized character storage area 7
(Step 22). Next, the character image data in the recognized character storage area 7 is subjected to character recognition processing (step 23), the value of the counter 5 is incremented by 1 when the recognition is successful (steps 24 and 25), and when the recognition fails. The character image data in the recognized character storage area 7 is 180
It is rotated (steps 24 and 26). Then 180
The rotated character image data is subjected to recognition processing (step 27), and if the recognition is successful, the counter 6 is incremented by 1 (steps 28 and 29).

【0011】ここで、画像データからの文字画像の切り
出しについて説明する。イメージメモリ8内の画像デー
タは、図5に示すように、論理的に6つのブロックに分
割され、各ブロックごとに左上隅にも最も近い文字が切
り出される。ステップ22からステップ30までの処理
は、カウンタ4を1回ごとに1インクリメントしながら
(ステップ31)、原稿画像中の文字に対して繰り返さ
れる。その結果、カウンタ5には回転前の文字画像デー
タの認識成功回数が、また、カウンタ6には回転後の文
字画像データの認識成功回数が、それぞれ記憶されるこ
とになる。
Here, the extraction of a character image from image data will be described. As shown in FIG. 5, the image data in the image memory 8 is logically divided into six blocks, and the character closest to the upper left corner is cut out for each block. The processing from step 22 to step 30 is repeated for the characters in the original image while incrementing the counter 4 by 1 each time (step 31). As a result, the counter 5 stores the number of successful recognitions of the character image data before rotation, and the counter 6 stores the number of successful recognitions of the character image data after rotation.

【0012】6文字に対して処理が終わると、カウンタ
5とカウンタ6の値が比較されて(ステップ30)、カ
ウンタ6の値の方が大きければイメージメモリ8内の画
像データは180°回転される(ステップ33)。つま
り、各文字に対して180°回転の前後で文字認識を行
い、認識に成功した回数が多い方を正しい向きであると
判断し、回転後の認識回数が多い場合は、読み取った画
像データをイメージメモリ8内で180°回転させる。
When the processing for 6 characters is completed, the values of the counter 5 and the counter 6 are compared (step 30), and if the value of the counter 6 is larger, the image data in the image memory 8 is rotated by 180 °. (Step 33). In other words, character recognition is performed for each character before and after 180 ° rotation, and the one with the most successful recognition is determined to be the correct orientation. If the number of recognitions after the rotation is large, the read image data is Rotate 180 ° in the image memory 8.

【0013】以上のように本実施例では、イメージスキ
ャナ12から読み込んだ原稿画像から文字データを切り
出し、認識を行うことによって、自動的に原稿の向きを
判別し、逆向きに読み取られた頁は、自動的に180°
反転して、外部記憶装置9に記録されるため、文書登録
時には、作業者は原稿セットと、読み取り終了後のキー
ワード登録のみ行えばよく、手間のかからない、効率的
な文書登録作業が可能となる。
As described above, in the present embodiment, the character data is cut out from the document image read from the image scanner 12 and recognized to automatically determine the orientation of the document, and the page read in the reverse direction is detected. , Automatically 180 °
Since the image is inverted and recorded in the external storage device 9, at the time of document registration, the operator only has to set the original document and register the keyword after the reading is completed, which enables efficient and efficient document registration work. ..

【0014】[0014]

【発明の効果】以上のように、本発明によれば、読み取
った原稿画像から切り出された文字データを文字認識
し、この文字認識結果に基づいて、前記文字データの向
きを判別し、この判別結果に基づいて、前記文字データ
を180°回転させ、さらに180°回転させた文字デ
ータを文字認識して、この文字認識結果に基づいて18
0°回転させた文字データの向きを判別し、これらの判
別を切り出された他の文字データを含めて複数回繰り返
し、180°回転した場合と回転しない場合の認識成功
回数を比較し、その結果に基づいて読み取った原稿画像
を180°回転させるようにするので、登録する原稿中
に逆向きにセットされた原稿が含まれていたとしても、
それを自動的に反転し登録される。そのため、作業者
は、従来のようにディスプレイをみながら読み取った画
像の向きを確認する必要がなく、手間のかからない効率
的な登録作業が可能となる。
As described above, according to the present invention, the character data cut out from the read original image is character-recognized, the direction of the character data is judged based on the character recognition result, and this judgment is performed. Based on the result, the character data is rotated by 180 °, and the character data rotated by 180 ° is subjected to character recognition.
The direction of the character data rotated by 0 ° is discriminated, and the discrimination is repeated a plurality of times including other character data cut out, and the number of successful recognitions when rotated 180 ° and when not rotated are compared. Since the original image read based on is rotated by 180 °, even if the original to be registered includes an original set in the opposite direction,
It is automatically inverted and registered. Therefore, it is not necessary for the worker to check the orientation of the image read while looking at the display as in the conventional case, and efficient registration work can be performed without any trouble.

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

【図1】本発明の一実施例の画像入力方法を用いた電子
ファイリングシステムのブロック図である。
FIG. 1 is a block diagram of an electronic filing system using an image input method according to an embodiment of the present invention.

【図2】本発明の一実施例の画像入力方法のフローチャ
ートである。
FIG. 2 is a flowchart of an image input method according to an embodiment of the present invention.

【図3】本発明の一実施例の画像入力方法の要部の詳細
フローチャートである。
FIG. 3 is a detailed flowchart of a main part of the image input method according to the embodiment of the present invention.

【図4】本発明の一実施例の画像入力方法における画像
データの記憶状態を説明する図である。
FIG. 4 is a diagram illustrating a storage state of image data in the image input method according to the embodiment of the present invention.

【図5】本発明の一実施例の画像入力方法における文字
切り出しを説明する図である。
FIG. 5 is a diagram illustrating character segmentation in the image input method according to the embodiment of the present invention.

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

1 CPU 2 ROM 3 RAM 8 イメージメモリ 9 外部記憶装置 10 入力部 11 CRT 12 イメージスキャナ 13 プリンタ 1 CPU 2 ROM 3 RAM 8 Image Memory 9 External Storage Device 10 Input Unit 11 CRT 12 Image Scanner 13 Printer

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 イメージスキャナで読み取った原稿画像
を光ディスクなどの記録媒体に記録するに際し、読み取
った原稿画像から切り出された文字データを文字認識す
る第1のステップと、 前記第1のステップにおける文字認識結果に基づいて、
前記文字データの向きを判別する第2のステップと、 前記第2のステップにおける判別結果に基づいて、前記
文字データを180°回転させる第3のステップと、 前記第3のステップにおける180°回転させた文字デ
ータを文字認識する第4のステップと、 前記第4のステップにおける文字認識結果に基づいて、
前記180°回転させて文字データの向きを判別する第
5のステップと、 これらの判別を切り出された他の文字データを含めて複
数回繰り返す第6のステップと、 前記第2のステップと第5のステップにおける認識成功
回数を比較し、その結果に基づいて、読み取った原稿画
像を180°回転させる第7のステップとを有すること
を特徴とする画像入力方法。
1. When recording a document image read by an image scanner on a recording medium such as an optical disc, a first step of recognizing character data cut out from the read document image, and a character in the first step. Based on the recognition result,
A second step of determining the orientation of the character data, a third step of rotating the character data by 180 ° based on the determination result of the second step, and a 180 ° rotation of the third step. A fourth step of recognizing the character data obtained by the character recognition, and a character recognition result in the fourth step,
A fifth step of determining the orientation of the character data by rotating it by 180 °, a sixth step of repeating these determinations a plurality of times including other cut out character data, the second step and the fifth step And a seventh step of rotating the read original image by 180 ° based on the result of comparison of the number of successful recognitions in the step.
JP4132943A 1992-05-26 1992-05-26 Image input method Pending JPH05324902A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4132943A JPH05324902A (en) 1992-05-26 1992-05-26 Image input method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4132943A JPH05324902A (en) 1992-05-26 1992-05-26 Image input method

Publications (1)

Publication Number Publication Date
JPH05324902A true JPH05324902A (en) 1993-12-10

Family

ID=15093128

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4132943A Pending JPH05324902A (en) 1992-05-26 1992-05-26 Image input method

Country Status (1)

Country Link
JP (1) JPH05324902A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6804414B1 (en) 1998-05-01 2004-10-12 Fujitsu Limited Image status detecting apparatus and document image correcting apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6804414B1 (en) 1998-05-01 2004-10-12 Fujitsu Limited Image status detecting apparatus and document image correcting apparatus

Similar Documents

Publication Publication Date Title
JPH0750483B2 (en) How to store additional information about document images
US6320983B1 (en) Method and apparatus for character recognition, and computer-readable recording medium with a program making a computer execute the method recorded therein
JP3854024B2 (en) Character recognition preprocessing apparatus and method, and program recording medium
JPS6145372A (en) Picture character recognizer
WO1992006449A1 (en) Character recognition methods and apparatus for locating and extracting predetermined data from a document
EP0433359A1 (en) Image recognition
JPH05324902A (en) Image input method
JPH08180068A (en) Electronic filing equipment
JP3458001B2 (en) Image file device
JP3090070B2 (en) Form identification method and device
JP2751865B2 (en) String recognition device
JPH11312215A (en) Two-dimensional code decoding device and storage medium
JP3251704B2 (en) Recognition processing device
JP2829002B2 (en) Character recognition device
EP0370766B1 (en) Sorting method and apparatus
JPH10302025A (en) Handwritten character recognition device and program recording medium thereof
JPS58106665A (en) Character line cutout method
JPS6017566A (en) Image storage retrieval device
JPH04348475A (en) Method and device for retrieving image information
JP2002042138A (en) Image collating device, image collating method, and computer-readable recording medium recording program executing its method on computer
JPS61133487A (en) Character recognizing device
JP4270767B2 (en) Ruled line information processing method, ruled line information processing program, image processing apparatus, and storage medium
JPH1091719A (en) How to manage character recognition status
JPH02202687A (en) Method for discriminating similar character
JPH0696277A (en) Alphabet recognizing device