JP2002077598A - Method and device for processing image, and computer- readable recording medium on which image processing program is recorded - Google Patents

Method and device for processing image, and computer- readable recording medium on which image processing program is recorded

Info

Publication number
JP2002077598A
JP2002077598A JP2000268830A JP2000268830A JP2002077598A JP 2002077598 A JP2002077598 A JP 2002077598A JP 2000268830 A JP2000268830 A JP 2000268830A JP 2000268830 A JP2000268830 A JP 2000268830A JP 2002077598 A JP2002077598 A JP 2002077598A
Authority
JP
Japan
Prior art keywords
unit
image
size
character
font
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.)
Granted
Application number
JP2000268830A
Other languages
Japanese (ja)
Other versions
JP4360021B2 (en
Inventor
Yoshinori Tanaka
芳則 田中
Yukihiko Ichikawa
幸彦 市川
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.)
Minolta Co Ltd
Original Assignee
Minolta 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 Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP2000268830A priority Critical patent/JP4360021B2/en
Priority to US09/919,814 priority patent/US7336378B2/en
Publication of JP2002077598A publication Critical patent/JP2002077598A/en
Application granted granted Critical
Publication of JP4360021B2 publication Critical patent/JP4360021B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Image Processing (AREA)
  • Character Discrimination (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PROBLEM TO BE SOLVED: To output a quality character image at enlargement/reduction of an image. SOLUTION: In an image process, an image data is inputted and its variable power rate is set. A character is recognized in an input image data by character recognition, and then the size of the recognized character is recognized. By referencing a storage part in which the font data in a plurality of different sizes is stored, a coded character data is converted into a set magnification. Here, a font size corresponding to the character size and power variable rate is calculated and a corresponding font data is read out of a font storage part for setting, compositing outputting an image containing the magnified character region.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、文字認識機能を用
いた画像データ処理に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to image data processing using a character recognition function.

【0002】[0002]

【従来の技術】従来のディジタル複写機などにおいて、
拡大複写を行う場合には、原稿を読み取って得られた画
像データに対し、変倍率に応じた画像データの補間処理
が行われており、また、縮小複写を行う場合には、画像
データに対し、変倍率に応じた画像データの間引き処理
が行われていた。
2. Description of the Related Art In a conventional digital copying machine or the like,
When performing an enlarged copy, the image data obtained by reading the original is subjected to interpolation processing of the image data according to the scaling factor. In addition, the thinning process of the image data according to the magnification is performed.

【0003】[0003]

【発明が解決しようとする課題】しかし、単に画像デー
タの補間、間引きをおこなう従来の拡大複写、縮小複写
においては、拡大時には文字画像のアウトラインが乱れ
たり(輪郭がギザギザになったり)、縮小時には文字が
つぶれたりすることがあった。このような拡大、縮小に
よる文字品質の劣化のため、複写された文字に違和感を
感じたり、文字が読めなくなるといった問題があった。
However, in the conventional enlarged copy and reduced copy simply performing interpolation and thinning of image data, outlines of character images are disturbed (enlarged jagged outlines) at the time of enlargement, and reduced at the time of reduction. Characters sometimes collapsed. Due to the deterioration of the character quality due to such enlargement or reduction, there is a problem that the copied character feels strange or the character cannot be read.

【0004】本発明の目的は、画像の変倍処理において
品質のよい文字画像を出力できる画像処理のための装
置、方法および記録媒体を提供することである。
An object of the present invention is to provide an apparatus, a method, and a recording medium for image processing capable of outputting a high-quality character image in image scaling processing.

【0005】[0005]

【課題を解決するための手段】本発明に係る画像処理装
置は、画像データが入力される画像入力部と、画像入力
部に入力された画像データ内の文字を認識し抽出する文
字認識部と、文字認識部により認識された文字のサイズ
を認識する文字サイズ認識部と、変倍率に応じて画像デ
ータのサイズを拡大・縮小する変倍部と、変倍部の変倍
率を設定する変倍率設定部と、複数の異なるサイズのフ
ォントデータを記憶する記憶部と、文字サイズ認識部に
より認識された文字サイズと変倍率設定部により設定さ
れた変倍率とに応じたサイズのフォントデータを記憶部
を参照して設定するフォントデータ設定部と、フォント
データ設定部により設定されたフォントデータを出力す
る出力部とを備える。
An image processing apparatus according to the present invention comprises: an image input unit to which image data is input; and a character recognition unit that recognizes and extracts characters in the image data input to the image input unit. A character size recognizing unit for recognizing the size of the character recognized by the character recognizing unit, a scaling unit for enlarging or reducing the size of the image data according to the scaling factor, and a scaling factor for setting the scaling factor of the scaling unit. A setting unit, a storage unit for storing a plurality of font data of different sizes, and a storage unit for storing font data of a size corresponding to the character size recognized by the character size recognizing unit and the scaling ratio set by the scaling setting unit. A font data setting unit that sets the font data with reference to the font data setting unit, and an output unit that outputs the font data set by the font data setting unit.

【0006】好ましくは、画像処理装置は、さらに、原
稿を読み取り画像データを出力する画像読取部を備え、
画像読取部は画像データを画像入力部に出力する。ま
た、好ましくは、画像処理装置は、さらに、前記の出力
部から出力されたフォントデータに基いて用紙上に画像
を形成する画像形成部を備える。また、好ましくは、画
像処理装置は、さらに、外部装置と通信するための通信
部を備え、前記のフォントデータ設定部は、外部装置に
記憶されているフォントデータを通信部から入力して設
定できる。また、好ましくは、画像処理装置は、さら
に、前記の文字サイズ認識部により認識された文字サイ
ズと前記の変倍率設定部により設定された変倍率とに基
づいてフォントデータのサイズを補正するフォントサイ
ズ補正部を備える。また、画像処理装置において、好ま
しくは、前記の変倍部は、認識された文字に対応するフ
ォントデータが記憶部に存在しない場合、画像データ中
の文字を変倍率に応じて変倍する。
Preferably, the image processing apparatus further includes an image reading unit that reads the original and outputs image data.
The image reading section outputs the image data to the image input section. Preferably, the image processing apparatus further includes an image forming unit that forms an image on a sheet based on the font data output from the output unit. Preferably, the image processing apparatus further includes a communication unit for communicating with an external device, and the font data setting unit can input and set font data stored in the external device from the communication unit. . Preferably, the image processing device further includes a font size for correcting the size of the font data based on the character size recognized by the character size recognition unit and the scaling ratio set by the scaling ratio setting unit. A correction unit is provided. In the image processing apparatus, preferably, when the font data corresponding to the recognized character does not exist in the storage unit, the scaling unit scales the character in the image data according to the scaling factor.

【0007】本発明に係る画像処理方法は、画像データ
を入力するステップと、入力された画像データ内の文字
を認識し抽出するステップと、抽出された文字のサイズ
を認識するステップと、画像の変倍率を設定するステッ
プと、設定された変倍率に応じて画像データのサイズを
拡大・縮小するステップと、複数の異なるサイズのフォ
ントデータを記憶する記憶部を参照して、認識された文
字サイズと設定された変倍率とに応じたサイズのフォン
トデータを設定するステップと、設定されたフォントデ
ータを出力するステップとを有する。
The image processing method according to the present invention comprises the steps of inputting image data, recognizing and extracting characters in the input image data, recognizing the size of the extracted characters, A step of setting a scaling factor; a step of enlarging / reducing the size of image data according to the set scaling factor; and referring to a storage unit for storing a plurality of font data of different sizes to determine a recognized character size. And setting the font data of a size corresponding to the set scaling factor, and outputting the set font data.

【0008】本発明に係るコンピュータ読み取り可能な
記録媒体は、画像データを入力するステップと、入力さ
れた画像データ内の文字を認識し抽出するステップと、
抽出された文字のサイズを認識するステップと、画像の
変倍率を設定するステップと、設定された変倍率に応じ
て画像データのサイズを拡大・縮小するステップと、複
数の異なるサイズのフォントデータを記憶する記憶部を
参照して、認識された文字サイズと設定された変倍率と
に応じたサイズのフォントデータを設定するステップ
と、設定されたフォントデータを出力するステップとか
らなる画像処理プログラムを記録する。
[0008] A computer-readable recording medium according to the present invention comprises a step of inputting image data; a step of recognizing and extracting characters in the input image data;
A step of recognizing the size of the extracted character, a step of setting a magnification of the image, a step of enlarging / reducing the size of the image data according to the set magnification, and a step of retrieving font data of a plurality of different sizes. An image processing program comprising a step of setting font data of a size corresponding to a recognized character size and a set scaling factor with reference to a storage unit to be stored, and a step of outputting the set font data. Record.

【0009】[0009]

【発明の実施の形態】以下、添付の図面を参照して本発
明の実施の形態を説明する。なお、図面において、同じ
参照記号は同一または同等のものを示す。図1は、発明
の1実施形態におけるシステムの構成を示す。このシス
テムにおいて、原稿の画像を読み取り画像データを出力
するスキャナ100と、画像データを受け取り所定用紙
の上に画像を形成するプリンタ200とが、ネットワー
ク300を介して接続されている。ネットワーク300
には、その他に、パーソナルコンピュータ、ネットワー
クプリンタなどの外部機器500や、スタンドアロンの
デジタル複写機400が接続されている。以下に説明す
る実施形態において、プリンタ200が文字認識機能を
有している。しかし、文字認識機能は、スキャナ10
0、外部機器500またはデジタル複写機400が持っ
ていてもよい。また、スキャナ100に代えて、デジタ
ルカメラ、フィルムスキャナなどの機器を接続してもよ
い。また、プリンタ200に代えて、画像データを表示
するディスプレイ等の機器を接続してもよい。
Embodiments of the present invention will be described below with reference to the accompanying drawings. In the drawings, the same reference symbols indicate the same or equivalent ones. FIG. 1 shows the configuration of a system according to an embodiment of the present invention. In this system, a scanner 100 that reads an image of a document and outputs image data and a printer 200 that receives the image data and forms an image on a predetermined sheet are connected via a network 300. Network 300
In addition, an external device 500 such as a personal computer and a network printer, and a stand-alone digital copying machine 400 are connected to the. In the embodiment described below, the printer 200 has a character recognition function. However, the character recognition function is
0, the external device 500 or the digital copier 400 may have it. Further, instead of the scanner 100, a device such as a digital camera and a film scanner may be connected. Further, instead of the printer 200, a device such as a display for displaying image data may be connected.

【0010】図2は、図1に示したシステムのブロック
図を示す。スキャナ100は、読取部110と、それを
制御するスキャナコントローラ120とからなる。スキ
ャナコントローラ120は、スキャナコントローラ12
0全体を制御するCPU122、プログラム等を記憶す
るROM124、一時的にデータを記憶するRAM12
6、不揮発性RAM128、読取部110との接続部で
あるスキャナインターフェース130、及び、ネットワ
ーク300との接続部である通信インタフェース132
からなる。また、プリンタ200は、画像形成部210
と、それを制御するプリンタコントローラ220とから
なる。プリンタコントローラ220は、プリンタコント
ローラ120全体を制御するCPU222、プログラム
等を記憶するROM224、一時的にデータを記憶する
RAM226、不揮発性RAM228、文字認識機能を
有する画像処理部230、画像形成部210との接続部
であるプリンタインターフェース232、及び、ネット
ワーク300との接続部である通信インターフェース2
34からなる。
FIG. 2 shows a block diagram of the system shown in FIG. The scanner 100 includes a reading unit 110 and a scanner controller 120 that controls the reading unit 110. The scanner controller 120 is the scanner controller 12.
CPU 122 for controlling the entire system, ROM 124 for storing programs and the like, and RAM 12 for temporarily storing data.
6. Non-volatile RAM 128, scanner interface 130 as a connection to reading unit 110, and communication interface 132 as a connection to network 300
Consists of The printer 200 includes an image forming unit 210.
And a printer controller 220 for controlling the same. The printer controller 220 includes a CPU 222 for controlling the entire printer controller 120, a ROM 224 for storing programs and the like, a RAM 226 for temporarily storing data, a nonvolatile RAM 228, an image processing unit 230 having a character recognition function, and an image forming unit 210. A printer interface 232 as a connection unit, and a communication interface 2 as a connection unit with the network 300
34.

【0011】図3は、プリンタ200における画像処理
部230の構成を示すブロック図である。画像入力部4
00に、バスから画像データが入力され、また、スキャ
ナ100等の操作パネルで入力された変倍率に応じた倍
率が変倍率設定部402によって設定される。領域抽出
部404は、入力された画像データを、文字領域とその
他の絵柄領域とに分割する。領域分割は、たとえば、あ
る領域においてエッジと判別された画素数を計算し、閾
値を超えていれば、その領域を文字領域とし、越えてい
なければ絵柄領域とする。図4に示すように、文字領域
と絵柄領域はいずれも矩形として認識される。
FIG. 3 is a block diagram showing the configuration of the image processing section 230 in the printer 200. Image input unit 4
At 00, image data is input from the bus, and a magnification corresponding to the magnification input from the operation panel of the scanner 100 or the like is set by the magnification setting unit 402. The area extracting unit 404 divides the input image data into a character area and another picture area. In the area division, for example, the number of pixels determined to be edges in a certain area is calculated. If the number of pixels exceeds a threshold, the area is set as a character area, and if not, a picture area is set. As shown in FIG. 4, both the character area and the picture area are recognized as rectangles.

【0012】分割により得られた文字領域の画像データ
は、2値化部406に入力され、2値化される。文字領
域の画像データ中の文字画像から、OCR処理部408
にて、文字コードと文字サイズが認識される。文字変倍
部412は、フォント記憶部410にあらかじめ記憶さ
れている複数サイズのフォントデータの中から、認識さ
れた文字コード、文字サイズおよび設定された変倍率に
基づいて、所定のフォントを選択することによって、文
字サイズを拡大又は縮小する。
The image data of the character area obtained by the division is input to a binarizing section 406 and binarized. From the character image in the image data of the character area, the OCR processing unit 408
The character code and character size are recognized. The character scaling unit 412 selects a predetermined font from font data of a plurality of sizes stored in the font storage unit 410 in advance based on the recognized character code, character size, and set scaling factor. This enlarges or reduces the character size.

【0013】一方、絵柄領域の画像データは、絵柄変倍
部414に入力され、直線補間法、キュービックコンボ
リューション補間法などの拡大処理、単純間引き処理な
どの縮小処理等により変倍される。変倍された画像デー
タは、スクリーニング処理部416にて、ディザ処理や
誤差拡散処理などのスクリーニング処理が施される。
On the other hand, the image data of the picture area is input to a picture scaling section 414, and is scaled by a magnification process such as a linear interpolation method or a cubic convolution interpolation method, or a reduction process such as a simple thinning process. The scaled image data is subjected to screening processing such as dither processing and error diffusion processing in a screening processing unit 416.

【0014】次に、画像合成処理部418は、変倍され
た文字領域の画像データとスクリーニング処理された絵
柄領域の画像データとを合成し、文字コードデータとそ
の他のビットマップデータを汎用フォーマット形式(た
とえばPDF形式)へ変換する。画像出力部420は、
変倍された文字領域を含む合成画像を、RIPなどを用
いてラスターデータへ変換し、出力する。
Next, an image synthesizing processing unit 418 synthesizes the image data of the scaled character area and the image data of the picture area subjected to the screening processing, and converts the character code data and other bitmap data into a general-purpose format. (For example, PDF format). The image output unit 420
The composite image including the scaled character area is converted into raster data using RIP or the like and output.

【0015】次に、文字画像の変倍処理について詳細に
説明する。図5は、文字変倍部412における文字画像
変倍処理のフローチャートである。まず、文字認識によ
って認識されたフォントサイズに変倍率を乗じた値に基
づいて出力するフォントサイズを計算する(S50
1)。具体的な計算方法は後述する。次に、フォント記
憶部410から、ステップS501で算出されたフォン
トサイズのフォントデータを読み出す(S502)。文
字コードが認識された全文字に対して終了する(S50
3でYES)まで、ステップS501,S502の処理
を繰り返す。
Next, the scaling process of a character image will be described in detail. FIG. 5 is a flowchart of the character image scaling process in the character scaling unit 412. First, the font size to be output is calculated based on the value obtained by multiplying the font size recognized by the character recognition by the scaling factor (S50).
1). A specific calculation method will be described later. Next, the font data of the font size calculated in step S501 is read from the font storage unit 410 (S502). The process ends for all characters whose character codes have been recognized (S50).
Until (YES at 3), the processing of steps S501 and S502 is repeated.

【0016】次に、ステップS501のフォントサイズ
の計算について説明する。表1に示すようなフォントサ
イズ対応テーブルがROM224にあらかじめ記憶され
ていて、フォントサイズの計算に用いられる。このフォ
ントサイズ対応テーブルには、MSゴシック、MS明朝
などの比較的使用頻度が高いフォントのフォントサイズ
に対応する幅と高さが示されている。この例では、代表
的なフォントのみを示しているが、その他どのようなフ
ォントでも、フォントサイズに対応する幅と高さを追加
して記憶できる。また、同一フォントであっても、文字
の種類によって幅や高さが異なる場合には、全ての幅と
高さをテーブル化してもよい。全ての文字に対して幅と
高さのデータを記憶することにより、より適切な変倍処
理が可能となる。
Next, the calculation of the font size in step S501 will be described. A font size correspondence table as shown in Table 1 is stored in the ROM 224 in advance, and is used for calculating the font size. This font size correspondence table indicates the width and height corresponding to the font size of a font that is used relatively frequently, such as MS Gothic and MS Mincho. In this example, only representative fonts are shown, but any other font can additionally store a width and height corresponding to the font size. Also, even if the fonts are the same, if the width and height differ depending on the type of character, all the widths and heights may be tabulated. By storing the width and height data for all characters, more appropriate scaling processing can be performed.

【0017】[0017]

【表1】 [Table 1]

【0018】フォントサイズの計算(図5、S501)
には、図6のフローに示すように、等倍用のフォントサ
イズ計算と変倍用のフォントサイズ計算がある。具体的
には、変倍率設定部402に設定されている変倍率が
1.0(等倍)であるか否かを判断し(S601)、等
倍であれば、等倍用フォントサイズ計算(S602)に
進み、等倍でなければ変倍用フォントサイズ計算(S6
03)に進む。これらの計算は、文字領域単位で行われ
る。それぞれの具体的な計算方法は後で説明する。一つ
の文字領域ででのフォントサイズ計算が完了すれば、原
稿内の全文字領域に対してフォントサイズ計算が終了し
たか否かを判断し(S604)、終了していなければ、
ステップS601に戻り、次の文字領域に対するフォン
トサイズ計算を行う。終了していれば、図5のフローに
リターンする。
Calculation of font size (FIG. 5, S501)
As shown in the flowchart of FIG. 6, there are a font size calculation for the same magnification and a font size calculation for the magnification change. More specifically, it is determined whether or not the scaling ratio set in the scaling ratio setting unit 402 is 1.0 (actual magnification) (S601). Proceeding to S602), if it is not the same size, the font size calculation for scaling (S6)
Go to 03). These calculations are performed for each character area. Each specific calculation method will be described later. If the font size calculation for one character area is completed, it is determined whether the font size calculation has been completed for all the character areas in the document (S604).
Returning to step S601, the font size for the next character area is calculated. If the processing has been completed, the process returns to the flow in FIG.

【0019】次に、等倍用のフォントサイズの計算につ
いて、図7と図8を用いて説明する。ここでは、現状の
OCR処理技術におけるフォントサイズの認識は不確実
であるという前提に基づいて説明する。たとえば、原稿
上の文字画像のフォントサイズが10ポイントであるに
もかかわらず、OCR処理部408で誤ってフォントサ
イズを12ポイントと認識してしまった場合、出力され
た文字コードデータが文字領域からはみ出してしまうと
いう問題がある。
Next, the calculation of the font size for the same size will be described with reference to FIGS. 7 and 8. FIG. Here, the description will be given on the assumption that the recognition of the font size in the current OCR processing technology is uncertain. For example, if the font size of a character image on a document is 10 points and the OCR processing unit 408 erroneously recognizes the font size as 12 points, the output character code data is output from the character area. There is a problem that it protrudes.

【0020】図7の等倍用のフォントサイズの計算(図
6、S602)のフローでは、まず、文字認識を行った
文字領域の1行における最大の文字数と認識されたフォ
ントサイズを乗じ、最大行幅を計算する(S701)。
次に計算された最大行幅と文字領域の外接矩形の幅を比
較し(S702)、最大行幅が外接矩形の幅より大きい
場合には(S702でYES)、OCR処理部408で
認識されたフォントサイズ(デフォルト出力フォントサ
イズ)を次式に基づいて修正する(S703)。 修正後フォントサイズ=デフォルト出力フォントサイズ
×(外接矩形幅/最大行幅)
In the flow of the calculation of the font size for the same size in FIG. 7 (S602 in FIG. 6), first, the maximum number of characters in one line of the character area subjected to the character recognition is multiplied by the recognized font size to obtain the maximum size. The line width is calculated (S701).
Next, the calculated maximum line width is compared with the width of the circumscribed rectangle of the character area (S702). If the maximum line width is larger than the width of the circumscribed rectangle (YES in S702), the OCR processing unit 408 recognizes the maximum line width. The font size (default output font size) is corrected based on the following equation (S703). Corrected font size = default output font size x (circumscribed rectangle width / maximum line width)

【0021】図8の例について説明する。OCR処理部
408にて、原画像(左側の図)の文字領域の外接矩形
の幅が28.2mmであり、1行における最大文字数が
8文字であると認識している。ここで、認識されたフォ
ントがMSゴシックで、フォントサイズが12ポイント
(4.2mm、フォントサイズ対応テーブル参照)であ
る場合、最大行幅は33.6mmとなる (中央の図)。し
たがって、最大行幅が外接矩形の幅より大きいので、フ
ォントサイズを前述の式を用いて変更する。 修正後フォントサイズ=12×(28.2/33.6)=
10.07 小数点以下を四捨五入すると修正後のフォントサイズは
10ポイントとなる(右側の図)。
The example shown in FIG. 8 will be described. The OCR processing unit 408 recognizes that the width of the circumscribed rectangle of the character area of the original image (the figure on the left) is 28.2 mm, and the maximum number of characters in one line is eight. Here, when the recognized font is MS Gothic and the font size is 12 points (4.2 mm, refer to the font size correspondence table), the maximum line width is 33.6 mm (center figure). Therefore, since the maximum line width is larger than the width of the circumscribed rectangle, the font size is changed using the above-described formula. Font size after correction = 12 x (28.2 / 33.6) =
10.07 The font size after correction will be 10 points if the decimals are rounded off (right figure).

【0022】次に、変倍用のフォントサイズ計算(図
6、S605)について図9を用いて説明する。まず、
OCR処理部408にて認識した文字領域の外接矩形幅
に、スキャナ100等の操作パネルで入力された変倍率
を乗じ、変倍後の外接矩形幅を計算する(S901)。
次に、認識されたフォントサイズに同様に変倍率を乗
じ、変倍後のフォントサイズを計算する(S902)。
その後、前述の等倍用フォントサイズ計算(図7)と同
様に、変倍後のフォントサイズにて最大行幅を計算し
(S903)、最大行幅と変倍後の外接矩形の幅とを比
較し(S904)、最大行幅が外接矩形の幅より大きい
場合には(S904でYES)、認識されたフォントサ
イズを前述の式に基づいて修正する(S905)。
Next, the calculation of the font size for scaling (S605 in FIG. 6) will be described with reference to FIG. First,
The circumscribed rectangle width of the character area recognized by the OCR processing unit 408 is multiplied by the scaling factor input from the operation panel such as the scanner 100, and the circumscribed rectangle width after the scaling is calculated (S901).
Next, the recognized font size is similarly multiplied by the scaling factor to calculate the font size after scaling (S902).
After that, the maximum line width is calculated based on the font size after the scaling (S903), and the maximum line width and the width of the circumscribed rectangle after the scaling are calculated in the same manner as the above-described font size calculation for the same size (FIG. 7). If the maximum line width is larger than the width of the circumscribed rectangle (YES in S904), the recognized font size is corrected based on the above expression (S905).

【0023】なお、前述の説明では、外接矩形の幅を用
いて適切な変倍後のフォントサイズを求めた。さらに、
これに加え、外接矩形の高さを用いて最大列幅との比較
を行うことにより、確実に出力文字コードデータを文字
領域内に収めることができる。
In the above description, an appropriate font size after scaling is obtained using the width of the circumscribed rectangle. further,
In addition, by comparing the maximum character width with the maximum column width using the height of the circumscribed rectangle, the output character code data can be reliably contained in the character area.

【0024】次に、認識したフォントがフォント記憶部
410に存在しない場合を考慮した実施形態を説明す
る。図10は、この場合の文字画像変倍のフローを示
す。まず、文字認識によって認識されたフォントサイズ
に変倍率を乗じた値に基づいて出力するフォントサイズ
を計算する(S1001)。具体的な計算方法は、前述
したもの(図5、S501)と同様なので説明を省略す
る。次に、フォント記憶部410に、認識されたフォン
トが存在するか否かを判断し(S1002)、存在しな
ければ、ネットワーク300上に接続されている他の外
部機器500のフォント記憶部510(図1参照)に存
在するか否かを判断する(S1008)。外部機器50
0のフォント記憶部510に存在する場合には、次に、
変倍率に応じたフォントサイズのフォントが外部機器の
フォント記憶部510に存在するか否かを判断し(S1
009)、存在すれば、当該フォントをフォント記憶部
510から読み出す(S1010)。存在しなければ、
変倍率に応じたフォントサイズに一番近いサイズのフォ
ントを読み出し(S1011)、直線補間法、キュービ
ックコンボリューション補間法などの拡大処理、単純間
引き処理などの縮小処理等を行う(S1012)。
Next, an embodiment will be described in which the case where the recognized font does not exist in the font storage unit 410 is considered. FIG. 10 shows a flow of character image scaling in this case. First, a font size to be output is calculated based on a value obtained by multiplying a font size recognized by character recognition by a scaling factor (S1001). The specific calculation method is the same as that described above (FIG. 5, S501), and a description thereof will be omitted. Next, it is determined whether the recognized font is present in the font storage unit 410 (S1002). If not, the font storage unit 510 () of another external device 500 connected to the network 300 is determined. It is determined whether or not it exists (see FIG. 1) (S1008). External device 50
If it exists in the 0 font storage unit 510, then:
It is determined whether a font having a font size corresponding to the scaling ratio exists in the font storage unit 510 of the external device (S1).
009) If present, the font is read from the font storage unit 510 (S1010). If not,
A font having a size closest to the font size corresponding to the scaling factor is read (S1011), and enlargement processing such as linear interpolation and cubic convolution interpolation, and reduction processing such as simple thinning processing are performed (S1012).

【0025】ステップS1008において、外部機器5
00のフォント記憶部510にも、認識されたフォント
が存在しないと判断される場合には、元の画像データか
ら文字画像を抽出し(S1013)、ステップS101
2と同様の変倍処理を行い(S1014)、エッジ強調
処理等の文字画像用画像処理を行う(S1015)。
In step S1008, the external device 5
If it is determined that the recognized font does not exist in the font storage unit 510 of the 00, a character image is extracted from the original image data (S1013), and step S101 is performed.
2 is performed (S1014), and image processing for character images such as edge enhancement is performed (S1015).

【0026】ステップS1002において、フォント記
憶部410に、認識されたフォントが存在すると判断さ
れる場合には、次に、変倍率に応じたフォントサイズの
フォントがフォント記憶部410に存在するか否かを判
断し(S1003)、存在すればフォント記憶部410
から当該フォントを読み出す(S1004)。存在しな
ければ、変倍率に応じたフォントサイズに一番近いサイ
ズのフォントを読み出し(S1006)、ステップS1
012と同様の変倍処理を行う(S1007)。1文字
の変倍が終了したら、全ての文字に対して変倍処理が終
了したか否かを判断する(S1005)。全ての文字に
対して変倍処理が終了していなければ、ステップS10
02に戻り、次の文字の変倍処理を行う。終了していれ
ば、メインルーチンに戻る。
If it is determined in step S1002 that the recognized font exists in the font storage unit 410, then it is determined whether a font having a font size corresponding to the scaling factor exists in the font storage unit 410. (S1003), and if there is, the font storage unit 410
The corresponding font is read from (S1004). If not, the font of the size closest to the font size corresponding to the magnification is read out (S1006), and step S1 is executed.
The same scaling process as in 012 is performed (S1007). When the scaling of one character is completed, it is determined whether the scaling process has been completed for all the characters (S1005). If the scaling process has not been completed for all the characters, step S10
Returning to step 02, the next character is scaled. If it has ended, the process returns to the main routine.

【0027】なお、前述の実施形態においては、フォン
ト記憶部410に認識されたフォントが存在しない場合
に、外部機器500のフォント記憶部510からフォン
トを読み出したが、この外部機器500は、プリンタで
あってもよいし、ウェブページのサーバー等であっても
よい。
In the above-described embodiment, when the recognized font is not present in the font storage unit 410, the font is read from the font storage unit 510 of the external device 500. Or a web page server or the like.

【0028】また、前述の実施形態では、文字認識機能
を用いた文字画像の拡大・縮小処理について説明した
が、この拡大・縮小処理は、さらに、複数ページの画像
を1枚の用紙に縮小して出力する割り付けコピー(Nin
1処理)にも応用できる。さらに、割り付けコピーで出
力された用紙をN枚に分割拡大コピーする場合にも応用
できる。
In the above-described embodiment, the enlargement / reduction processing of the character image using the character recognition function has been described. However, this enlargement / reduction processing further reduces the image of a plurality of pages to one sheet. Output copy (Nin
1 processing). Further, the present invention can be applied to a case where a sheet output by the layout copy is divided and enlarged into N sheets.

【0029】[0029]

【発明の効果】原稿上の文字を文字認識機能を用いて認
識し、文字コード化して、変倍時には、コード化された
文字をあらかじめ記憶されているフォントサイズデータ
を使用することで、出力画像において、変倍による文字
品質の低下を防ぐ。
According to the present invention, a character on a document is recognized by using a character recognition function, converted into a character code, and at the time of zooming, the coded character is converted into an output image by using font size data stored in advance. To prevent the character quality from deteriorating due to zooming.

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

【図1】 発明の第1の実施形態のシステムの構成を示
すブロック図
FIG. 1 is a block diagram showing a configuration of a system according to a first embodiment of the present invention;

【図2】 図1のシステムの構成のブロック図FIG. 2 is a block diagram of the configuration of the system in FIG. 1;

【図3】 画像処理部の構成のブロック図FIG. 3 is a block diagram of a configuration of an image processing unit.

【図4】 画像データ処理のフローチャートFIG. 4 is a flowchart of image data processing.

【図5】 領域抽出を説明するための図FIG. 5 is a diagram for explaining region extraction;

【図6】 フォントサイズ計算のフローチャートFIG. 6 is a flowchart of font size calculation.

【図7】 等倍用フォントサイズの計算のフローチャー
FIG. 7 is a flowchart of calculating a font size for the same size.

【図8】 フォントサイズの変更を説明するための図FIG. 8 is a diagram for explaining a change in font size.

【図9】 変倍用フォントサイズの計算のフローチャー
FIG. 9 is a flowchart of calculating a font size for scaling.

【図10】 別の実施形態における文字変倍処理のフロ
ーチャート
FIG. 10 is a flowchart of a character scaling process in another embodiment.

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

100 スキャナ、 200 プリンタ、 210
画像形成部、 220 プリンタコントローラ、
230 画像処理部、 300 ネットワーク、
402 変倍率設定部、 408 OCR処理部、
410 フォント記憶部、 412 文字変倍
部、 500 外部機器、 510フォント記憶
部。
100 scanner, 200 printer, 210
Image forming unit, 220 printer controller,
230 image processing unit, 300 network,
402 scaling ratio setting unit, 408 OCR processing unit,
410 font storage unit, 412 character scaling unit, 500 external device, 510 font storage unit.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) G09G 5/26 B41J 3/12 L Fターム(参考) 2C062 AA24 AA69 5B057 CD05 5B064 AA10 AB18 5C076 AA21 AA22 BA06 5C082 AA01 AA27 AA32 AA36 BA02 BB32 BB34 BB49 CA33 CA34 CA36 CA85 DA32 MM09 MM10──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI theme coat ゛ (Reference) G09G 5/26 B41J 3/12 L F-term (Reference) 2C062 AA24 AA69 5B057 CD05 5B064 AA10 AB18 5C076 AA21 AA22 BA06 5C082 AA01 AA27 AA32 AA36 BA02 BB32 BB34 BB49 CA33 CA34 CA36 CA85 DA32 MM09 MM10

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 画像データが入力される画像入力部と、 画像入力部に入力された画像データ内の文字を認識し抽
出する文字認識部と、 文字認識部により認識された文字のサイズを認識する文
字サイズ認識部と、 変倍率に応じて画像データのサイズを拡大・縮小する変
倍部と、 変倍部の変倍率を設定する変倍率設定部と、 複数の異なるサイズのフォントデータを記憶する記憶部
と、 文字サイズ認識部により認識された文字サイズと変倍率
設定部により設定された変倍率とに応じたサイズのフォ
ントデータを記憶部を参照して設定するフォントデータ
設定部と、 フォントデータ設定部により設定されたフォントデータ
を出力する出力部とを備える画像処理装置。
An image input unit for inputting image data, a character recognition unit for recognizing and extracting characters in the image data input to the image input unit, and recognizing a size of the character recognized by the character recognition unit Character size recognition unit, scaling unit that enlarges or reduces the size of image data according to the scaling ratio, scaling unit that sets the scaling ratio of the scaling unit, and stores font data of multiple different sizes A font data setting unit for setting font data of a size corresponding to the character size recognized by the character size recognizing unit and the scaling factor set by the scaling factor setting unit by referring to the storage unit; An output unit that outputs the font data set by the data setting unit.
【請求項2】 さらに、原稿を読み取り画像データを出
力する画像読取部を備え、画像読取部は画像データを画
像入力部に出力することを特徴とする請求項1に記載さ
れた画像処理装置。
2. The image processing apparatus according to claim 1, further comprising an image reading unit that reads a document and outputs image data, wherein the image reading unit outputs the image data to an image input unit.
【請求項3】 さらに、前記の出力部から出力されたフ
ォントデータに基いて用紙上に画像を形成する画像形成
部を備えることを特徴とする請求項1または請求項2に
記載された画像処理装置。
3. The image processing apparatus according to claim 1, further comprising an image forming unit that forms an image on a sheet based on the font data output from the output unit. apparatus.
【請求項4】 さらに、外部装置と通信するための通信
部を備え、前記のフォントデータ設定部は、外部装置に
記憶されているフォントデータを通信部から入力して設
定できることを特徴とする請求項1から請求項3のいず
れかに記載された画像処理装置。
4. The communication apparatus according to claim 1, further comprising a communication unit for communicating with an external device, wherein the font data setting unit is capable of inputting and setting font data stored in the external device from the communication unit. The image processing device according to claim 1.
【請求項5】 さらに、前記の文字サイズ認識部により
認識された文字サイズと前記の変倍率設定部により設定
された変倍率とに基づいてフォントデータのサイズを補
正するフォントサイズ補正部を備えることを特徴とする
請求項1から請求項3のいずれかに記載された画像処理
装置。
5. A font size correction unit for correcting the size of font data based on the character size recognized by the character size recognition unit and the scaling ratio set by the scaling ratio setting unit. The image processing apparatus according to claim 1, wherein:
【請求項6】 前記の変倍部は、認識された文字に対応
するフォントデータが記憶部に存在しない場合、画像デ
ータ中の文字を変倍率に応じて変倍することを特徴とす
る請求項1から請求項3のいずれかに記載された画像処
理装置。
6. The variable magnification unit according to claim 1, wherein the font data corresponding to the recognized character is not stored in the storage unit, and the character in the image data is scaled according to the magnification. The image processing device according to claim 1.
【請求項7】 画像データを入力するステップと、 入力された画像データ内の文字を認識し抽出するステッ
プと、 抽出された文字のサイズを認識するステップと、 画像の変倍率を設定するステップと、 設定された変倍率に応じて画像データのサイズを拡大・
縮小するステップと、 複数の異なるサイズのフォントデータを記憶する記憶部
を参照して、認識された文字サイズと設定された変倍率
とに応じたサイズのフォントデータを設定するステップ
と、 設定されたフォントデータを出力するステップとを有す
る画像処理方法。
7. A step of inputting image data; a step of recognizing and extracting characters in the input image data; a step of recognizing a size of the extracted characters; and a step of setting a magnification of the image. , Enlarges the image data size according to the set magnification.
A step of reducing, and a step of setting font data of a size corresponding to the recognized character size and the set scaling factor with reference to a storage unit for storing a plurality of font data of different sizes; Outputting font data.
【請求項8】 画像データを入力するステップと、 入力された画像データ内の文字を認識し抽出するステッ
プと、 抽出された文字のサイズを認識するステップと、 画像の変倍率を設定するステップと、 設定された変倍率に応じて画像データのサイズを拡大・
縮小するステップと、 複数の異なるサイズのフォントデータを記憶する記憶部
を参照して、認識された文字サイズと設定された変倍率
とに応じたサイズのフォントデータを設定するステップ
と、 設定されたフォントデータを出力するステップとからな
る画像処理プログラムを記録したコンピュータ読み取り
可能な記録媒体。
8. A step of inputting image data; a step of recognizing and extracting characters in the input image data; a step of recognizing a size of the extracted characters; and a step of setting a magnification of the image. , Enlarges the image data size according to the set magnification.
A step of reducing, and a step of setting font data of a size corresponding to the recognized character size and the set scaling factor with reference to a storage unit for storing a plurality of font data of different sizes; And a computer-readable recording medium storing an image processing program comprising the steps of outputting font data.
JP2000268830A 2000-08-07 2000-09-05 Image processing apparatus and image processing method Expired - Fee Related JP4360021B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2000268830A JP4360021B2 (en) 2000-09-05 2000-09-05 Image processing apparatus and image processing method
US09/919,814 US7336378B2 (en) 2000-08-07 2001-08-02 Image processing with recognized character codes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000268830A JP4360021B2 (en) 2000-09-05 2000-09-05 Image processing apparatus and image processing method

Publications (2)

Publication Number Publication Date
JP2002077598A true JP2002077598A (en) 2002-03-15
JP4360021B2 JP4360021B2 (en) 2009-11-11

Family

ID=18755548

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000268830A Expired - Fee Related JP4360021B2 (en) 2000-08-07 2000-09-05 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP4360021B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100659268B1 (en) 2005-07-27 2006-12-20 삼성전자주식회사 User terminal device and system and method for setting borderless function
US9467577B2 (en) 2014-04-23 2016-10-11 Kyocera Document Solutions Inc. Image processing device and image forming apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100659268B1 (en) 2005-07-27 2006-12-20 삼성전자주식회사 User terminal device and system and method for setting borderless function
US9467577B2 (en) 2014-04-23 2016-10-11 Kyocera Document Solutions Inc. Image processing device and image forming apparatus

Also Published As

Publication number Publication date
JP4360021B2 (en) 2009-11-11

Similar Documents

Publication Publication Date Title
US7336378B2 (en) Image processing with recognized character codes
CN100397420C (en) Image processing device and image processing method and its program
EP2264995B1 (en) Image processing apparatus, image processing method, and computer program
JP2002165079A (en) Image processing unit and method
JPH09172543A (en) Image processor
JP4035228B2 (en) Image processing method and image processing apparatus
EP3352441A1 (en) Scanner, scanning control program, and image file generating method
JP4360021B2 (en) Image processing apparatus and image processing method
JP2662305B2 (en) Figure selection method
JP3993025B2 (en) Document image conversion method, document image conversion program, and document image conversion apparatus
JP3997696B2 (en) Apparatus, method and recording medium for image processing
US20020031270A1 (en) Image processing apparatus, image processing method, and computer readable storage medium
JP2000137801A (en) Method and device for image formation and medium storing image processing control program
JP3796769B2 (en) Output device
JP2004258724A (en) Document creation support device and method, program and recording medium
JP4374752B2 (en) Image forming apparatus
JP3711735B2 (en) Document image processing apparatus and recording medium
JPH1125283A (en) Document picture processor
JP4125245B2 (en) Document display method and document display apparatus
JP3129381B2 (en) Document information processing device
JPH04287268A (en) Image data processing system
JP3424942B2 (en) Bilingual image forming device
JP4096956B2 (en) Output device
JP2021164046A (en) Image processing apparatus, recording device, image processing method, and program
JPH01312664A (en) Automatic composing system

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20040423

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070823

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20080122

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20081212

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081224

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090218

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090324

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090422

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20090601

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090721

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090803

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120821

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130821

Year of fee payment: 4

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees