JPH04191986A - Character synthesizer - Google Patents

Character synthesizer

Info

Publication number
JPH04191986A
JPH04191986A JP2321005A JP32100590A JPH04191986A JP H04191986 A JPH04191986 A JP H04191986A JP 2321005 A JP2321005 A JP 2321005A JP 32100590 A JP32100590 A JP 32100590A JP H04191986 A JPH04191986 A JP H04191986A
Authority
JP
Japan
Prior art keywords
character
data
original
threshold value
binarization
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
JP2321005A
Other languages
Japanese (ja)
Inventor
Tadanori Nemoto
根本 忠徳
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2321005A priority Critical patent/JPH04191986A/en
Publication of JPH04191986A publication Critical patent/JPH04191986A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PURPOSE:To surely perform character synthesis by setting a threshold value for binarization variably, and extracting the character of a character original as character data even when the back ground of the character is not white and clear difference exists in density or tint to some extent. CONSTITUTION:The character original is read by a reading means 103 which outputs digital multivalue data, and the threshold value used for binarization in the generation of binarized character data of a synthetic character by a binarization means 105 is set variably, not as a fixed value, and plural points that become the reference of density in the character original are read in advance to decide the threshold value before the character original is read. The binarization of the character original is performed after the threshold value is calculated based on read data. Thereby, it is possible to surely extract a prescribed character in the character original.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、文字原稿を読み取って2値の文字画像データ
を生成し、別の多値画像データと合成する文字合成装置
に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a character synthesis device that reads a character manuscript, generates binary character image data, and synthesizes it with other multivalued image data.

[従来の技術〕 従来、デジタル多値データを出力する読取装置を使って
画像に文字を合成しようとする場合、まず画像読み取り
装置により文字原稿を読み取り、予め定められた閾値を
用いて2値化回路により合成文字の2値画像データを生
成し、メモリに記憶してお(。次に、文字を合成したい
画像を読み取り、メモリに記憶しておいた文字データと
合成して出力するという方法が採られていた。
[Prior Art] Conventionally, when attempting to synthesize text into an image using a reading device that outputs digital multi-valued data, the image reading device first reads the text document and then binarizes it using a predetermined threshold. Generate binary image data of composite characters using a circuit and store it in memory (Next, there is a method of reading the image in which you want to composite characters, combining it with the character data stored in memory, and outputting it. It had been taken.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら前記従来例では、読み取ったデジタル多値
の文字データを2値データ化する際に用いろ閾値が予め
定められた固定の値であるので、文字原稿によっては合
成したい文字を適切に抜き取ることができない。
However, in the conventional example, the threshold value used when converting the read digital multivalued character data into binary data is a predetermined fixed value, so depending on the text document, it may be difficult to appropriately extract the characters to be synthesized. Can not.

例えば、第5図に示すような文字を含んだ原稿があった
とする。この原稿中のある1ライン1−1′の線上の濃
度レベルを第6図に示す。ここで、文字a及び文字すの
背景は中間調であり、このエリアの濃度レベルは予め定
めである閾値より暗い側にある。従って、第5図に示す
原稿を文字合成すると、文字aおよび文字すを含む中間
調の背景も併せて抜き出されてしまい、文字aと文字す
だけを抜き出すことはできないという欠点がある。
For example, suppose there is a manuscript containing characters as shown in FIG. FIG. 6 shows the density level of one line 1-1' in this document. Here, the background of the character "a" and the character "s" are halftone, and the density level of this area is on the darker side than a predetermined threshold value. Therefore, when the original shown in FIG. 5 is subjected to character synthesis, the half-tone background including the character a and the character S is also extracted, and there is a drawback that only the character a and the character S cannot be extracted.

よって、本発明の目的は上述の点に鑑み、文字原稿の濃
度に拘りな(、確実に文字と画像の合成を可能とした文
字合成装置を提供することにある。
SUMMARY OF THE INVENTION Therefore, in view of the above-mentioned points, an object of the present invention is to provide a character compositing device that can reliably combine characters and images regardless of the density of a character document.

〔課題を解決するための手段〕[Means to solve the problem]

本発明は、文字原稿または画像原稿を読み取り、デジタ
ル多値の文字データまたは画像データを出力する読取手
段と、文字原稿中の濃度基準点を読み取り、2値化閾値
を算出する閾値決定手段と、前記読取手段から出力され
たデジタル多値の文字データを入力し、前記2値化閾値
に基づいて、2値化文字データを出力する2値化手段と
、前記読取手段から出力されたデジタル多値の画像デー
タと、前記2値化文字データを合成する合成手段とを具
備したものである。
The present invention includes: a reading unit that reads a character manuscript or an image manuscript and outputs digital multivalued character data or image data; a threshold determining unit that reads density reference points in the text manuscript and calculates a binarization threshold; Binarization means for inputting digital multi-value character data output from the reading means and outputting binary character data based on the binarization threshold; and digital multi-value output from the reading means. image data and a compositing means for composing the binarized character data.

〔作 用〕[For production]

本発明によれば、デジタル多値データを出力する読み取
り手段により文字原稿を読み取り、2値化手段により合
成文字の2値化文字データを生成する際に、2硫化する
ために用いる閾値を固定ではなく可変とし、この閾値を
決定するために、文字原稿の読み取り前に予め文字原稿
中の濃度の基準となる複数の点を読み取り、その読み取
りデータを基に閾値を算出してから文字原稿を2値化す
ることにより、文字原稿中の所定の文字を確実に抜き出
せるようにしたものである。
According to the present invention, when a character manuscript is read by the reading means for outputting digital multi-valued data and the binarized character data of a composite character is generated by the binarization means, the threshold value used for disulfuration is not fixed. In order to determine this threshold value, before reading the text document, read multiple points that serve as density standards in the text document in advance, calculate the threshold value based on the read data, and then read the text document twice. By converting it into a value, it is possible to reliably extract a predetermined character from a character manuscript.

〔実施例〕〔Example〕

以下、本発明の実施例を詳細に説明する。 Examples of the present invention will be described in detail below.

夾1血止 第1図は、本発明をカラー原稿読取装置に適用したとき
の第1の実施例を示すブロック図である。第1図におい
て、101は合成したい文字の文字原稿、102は文字
を合成したい画像の画像原稿、103は原稿を読み取る
カラー原稿読取装置、104は文字データを2値化する
際に用いる閾値を算出・保存してあく回路、105は文
字データを2値化する回路、106は2値化した文字デ
ータを記憶してお(メモリ、107は画像データと文字
データを合成する合成回路、108は演算装置、109
は操作部である。
FIG. 1 is a block diagram showing a first embodiment of the present invention applied to a color document reading device. In FIG. 1, 101 is a character original of characters to be combined, 102 is an image original of an image to be combined with characters, 103 is a color original reading device that reads the original, and 104 calculates a threshold value used when converting character data into binary data.・A storage circuit, 105 is a circuit that binarizes character data, 106 is a memory that stores the binarized character data, 107 is a synthesis circuit that synthesizes image data and character data, and 108 is a calculation circuit. equipment, 109
is the operation section.

次に、本実施例の動作を説明する。まず、カラー原稿読
取装置103で文字原稿101の中の文字の1点を読み
、C(シアン)1M(マゼンタ)。
Next, the operation of this embodiment will be explained. First, the color document reading device 103 reads one character in the character document 101, and reads C (cyan) and 1M (magenta).

Y(イエロー)、K(ブラック)の各濃度成分を閾値算
出回路104に記憶しておく。この値をそれぞれSC1
+SMl+SYI、SKI とする。
Each density component of Y (yellow) and K (black) is stored in the threshold calculation circuit 104. Each of these values is SC1
+SMl+SYI, SKI.

次に、文字原稿101の中の背景の1点を読み、この値
をそれぞれS C21S M□、Sy□+SK2とする
Next, one point on the background in the character manuscript 101 is read and these values are set as S C21S M□ and Sy□+SK2, respectively.

次に、閾値算出回路104により、各色で文字濃度と背
景濃度を比較し、文字濃度の方が濃い色のうちで、文字
濃度と背景濃度の差の最も大きい色を文字データを2値
化する際の基準色とする。その時の閾値Sを(式l)の
ように算出する。
Next, the threshold value calculation circuit 104 compares the character density and background density for each color, and among the colors in which the character density is darker, the color with the largest difference between the character density and the background density is used to binarize the character data. Use this as the standard color. The threshold value S at that time is calculated as shown in (Formula 1).

s= (S、+S、)/2   ・・・(1)例エバ、
文字濃度がツレぞt’Lsc、=DOH,S、、=DO
H。
s= (S, +S,)/2 ... (1) Example Eva,
Character density is distorted t'Lsc, =DOH,S,, =DO
H.

SY + =30)1. SX l =808、背景濃
度がそれぞれ5e2=00H。
SY + =30)1. SX l =808, background density is 5e2 = 00H, respectively.

Syt”50)1.Syi:50H,Sxz”20Hテ
あツタとする。
Syt”50) 1.Syi:50H,Sxz”20H is set.

max(Sr −St)はCyanであり、閾値は5c
=65Hとなる。
max(Sr −St) is Cyan and the threshold is 5c
=65H.

次に、文字原稿101の中の合成したい文字のエリアを
カラー原稿読取装置103で読み取り、文字データ2値
化回路105に送る。文字データを2値化する際、文字
データの各画素の濃度情報CMYKのうち2値化の基準
色に決定された色以外の濃度情報は無視し、2値化の基
準色についてその閾値を用いて2値化する。従って、各
画素単色の2値データとなる。2値化したデータはメモ
リ106に記憶される。次に合成したい文字の色を操作
部109より入力すると、この文字の色のデータが演算
装置108を介して文字合成回路107に送られる。
Next, an area of characters to be synthesized in the character original 101 is read by the color original reading device 103 and sent to the character data binarization circuit 105. When converting text data into binarization, the density information of each pixel of the text data (CMYK) other than the color determined as the reference color for binarization is ignored, and the threshold value is used for the reference color for binarization. and convert it into a binary value. Therefore, each pixel becomes monochromatic binary data. The binarized data is stored in memory 106. Next, when the color of the character to be synthesized is inputted from the operation unit 109, data on the color of this character is sent to the character synthesis circuit 107 via the arithmetic unit 108.

最後に、画像原稿102の読み取りエリアと文字合成エ
リアを指定し、カラー原稿読取装置103で画像原稿1
02を読み取る。文字合成回路107には、この画像デ
ータとメモリ106に記憶された文字2値データが送ら
れ、文字の2値データは指定された色になるように、各
画素ごとに2値のCMYKデータに変換され、合成する
際は、2値の文字データのビットがオンになっている画
素はオンになっている色をFFH,オフになっている色
をOOHとして出力し、それ以外の画素については、多
値の画像データをスルーで出力する。以上の動作の流れ
を第2図のフローチャートに示す。
Finally, specify the reading area and character composition area of the image original 102, and use the color original reading device 103 to read the image original 102.
Read 02. This image data and the character binary data stored in the memory 106 are sent to the character synthesis circuit 107, and the character binary data is converted into binary CMYK data for each pixel so that the specified color is obtained. When converted and combined, pixels whose binary character data bits are on will output the on color as FFH, and the off color as OOH, and for other pixels, , outputs multi-valued image data through. The flow of the above operation is shown in the flowchart of FIG.

これにより、文字と背景の濃度差が一番大きい色を用い
て2値の文字データを生成しているので、背景が中間調
の文字原稿も文字データの原稿として使うことができる
As a result, binary character data is generated using the color with the largest density difference between the characters and the background, so even a character original with a halftone background can be used as an original for character data.

見立土l 第2図の実施例は、第1の実施例と同じ構成である。本
実施例では、文字データを2値化する際、各画素の色味
を基準にしている。
The embodiment shown in FIG. 2 has the same structure as the first embodiment. In this embodiment, when character data is binarized, the color tone of each pixel is used as a reference.

まず、文字原稿101の中の文字の1点を読む。First, one character in the character manuscript 101 is read.

この濃度データをそれぞれS。、 SM、 SY、 S
Kとする。
Each of these concentration data is S. , SM, SY, S
Let's call it K.

この時、文字データの2値化の閾値を各色それぞれSの
±IOHの範囲とし、各画素について4色とも条件を満
たしている画素のみ文字と判断して文字の2値データを
生成する。但し、濃度の上限はFFH,下限はOOHで
あるので、閾値の上限S8.下限紅は以下のようになる
At this time, the threshold value for binarizing character data is set in the range of ±IOH of S for each color, and only pixels that satisfy the conditions for all four colors are determined to be characters, and binary data of characters is generated. However, since the upper limit of the concentration is FFH and the lower limit is OOH, the upper limit of the threshold value S8. The lower limit is as follows.

5cL=liaX(Se−10H,0OH)、 5cH
=llin(Sc+10H,FFH)Sb+L”maX
(Sb+−10H,0OH)、 SM、二m1n(S、
+lOH,FFH)Syt=llaX(Sy  IOH
,0OH)、 Syo=min(Sc+10H,FFH
)SKL”1OaX(Sx−10H,0OH)、 Sx
H=min(Sx+10H,FFH)これ以外のデータ
の流れは、第1の実施例と同じである。本実施例の流れ
を第3図のフローチャートに示す。
5cL=liaX(Se-10H,0OH), 5cH
=llin(Sc+10H,FFH)Sb+L”maX
(Sb+-10H,0OH), SM, 2m1n (S,
+lOH,FFH)Syt=llaX(Sy IOH
,0OH), Syo=min(Sc+10H,FFH
)SKL”1OaX (Sx-10H,0OH), Sx
H=min(Sx+10H, FFH) The other data flow is the same as in the first embodiment. The flow of this embodiment is shown in the flowchart of FIG.

これにより、文字原稿中の所定の色味の文字だけを2値
データ化することができる。
As a result, only characters of a predetermined color in a text document can be converted into binary data.

K血止ユ 第3図の実施例の構成も第1の実施例と同じである。本
実施例では、2値化した文字データをメモリに記憶する
とともに、パネルに表示する。この表示結果を見て、閾
値を変更したい場合は操作部を操作し、文字原稿の読み
取り閾値を変更する。閾値は何度でも変更できる。
The configuration of the embodiment shown in FIG. 3 is also the same as that of the first embodiment. In this embodiment, the binary character data is stored in the memory and displayed on the panel. If the user wants to change the threshold after looking at this display result, he or she operates the operation unit to change the reading threshold for text originals. The threshold value can be changed any number of times.

閾値決定後は、第1の実施例と同じ処理である。本実施
例の処理手順を第4図に示す。
After determining the threshold value, the process is the same as in the first embodiment. FIG. 4 shows the processing procedure of this embodiment.

これにより、閾値を微調することができ、また文字デー
タをパネルで確認できるので、所望する文字を抜き出し
て文字合成をすることができる。
As a result, the threshold value can be finely adjusted and the character data can be confirmed on the panel, so that desired characters can be extracted and character composited.

〔発明の効果〕〔Effect of the invention〕

以上説明したとおり、本発明によれば、文字原稿の文字
の背景が白でなくても、ある程度はっきりした濃度差あ
るいは色味の違いが有れば、文字データとして抜き出す
ことができる。このことにより、確実な文字合成が可能
となる。
As described above, according to the present invention, even if the background of characters in a character document is not white, if there is a certain degree of clear difference in density or color, the characters can be extracted as character data. This enables reliable character synthesis.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例を示すブロック図、 第2図は第1の実施例のフローチャート、第3図は第2
の実施例のフローチャート、第4図は第3の実施例のフ
ローチャート、第5図は文字原稿についての説明図、 第6図は第5図に示した文字原稿中の1−1゛ライン上
における濃度分布を示す図である。 101・・・文字原稿、 102・・・画像原稿、 103・・・カラー原稿読取装置、 104・・・文字合成閾値の算出・保存回路、105・
・・文字データの2値化回路、106・・・メモリ、 107・・・文字合成回路、 108・・・演算装置、 109・・・操作部。
Fig. 1 is a block diagram showing one embodiment of the present invention, Fig. 2 is a flowchart of the first embodiment, and Fig. 3 is a flowchart of the second embodiment.
FIG. 4 is a flowchart of the third embodiment, FIG. 5 is an explanatory diagram of a text manuscript, and FIG. 6 is a flowchart of the text manuscript shown in FIG. FIG. 3 is a diagram showing concentration distribution. 101... Text original, 102... Image original, 103... Color original reading device, 104... Character synthesis threshold calculation/storage circuit, 105.
...Binarization circuit for character data, 106...Memory, 107...Character synthesis circuit, 108...Arithmetic unit, 109...Operation unit.

Claims (1)

【特許請求の範囲】 1)文字原稿または画像原稿を読み取り、デジタル多値
の文字データまたは画像データを出力する読取手段と、 文字原稿中の濃度基準点を読み取り、2値化閾値を算出
する閾値決定手段と、 前記読取手段から出力されたデジタル多値の文字データ
を入力し、前記2値化閾値に基づいて、2値化文字デー
タを出力する2値化手段と、 前記読取手段から出力されたデジタル多値の画像データ
と、前記2値化文字データを合成する合成手段と を具備したことを特徴とする文字合成装置。
[Scope of Claims] 1) A reading means for reading a character original or an image original and outputting digital multivalued character data or image data, and a threshold value for reading a density reference point in the character original and calculating a binarization threshold. a determining means; a binarizing means for inputting the digital multi-valued character data output from the reading means and outputting binary character data based on the binarization threshold; 1. A character synthesizing device comprising: a synthesizing means for synthesizing the digital multivalued image data and the binarized character data.
JP2321005A 1990-11-27 1990-11-27 Character synthesizer Pending JPH04191986A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2321005A JPH04191986A (en) 1990-11-27 1990-11-27 Character synthesizer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2321005A JPH04191986A (en) 1990-11-27 1990-11-27 Character synthesizer

Publications (1)

Publication Number Publication Date
JPH04191986A true JPH04191986A (en) 1992-07-10

Family

ID=18127726

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2321005A Pending JPH04191986A (en) 1990-11-27 1990-11-27 Character synthesizer

Country Status (1)

Country Link
JP (1) JPH04191986A (en)

Similar Documents

Publication Publication Date Title
JP3676402B2 (en) Method and apparatus for cascading natural scene images
EP0635971A2 (en) An apparatus and method for enhanced colour to colour conversion
JPS60204177A (en) Picture signal processor
JPH0388569A (en) Image forming device
US6781715B1 (en) Image processing method and system
JPH04191986A (en) Character synthesizer
JPH0393355A (en) Character area separation system
JPH01292965A (en) Data synthesizing method
JPH0832820A (en) Coder for error spread binary image
JP3277818B2 (en) Multi-value image binarization device
JP2559726B2 (en) Color image processor
JP3030126B2 (en) Image processing method
JP3015048B2 (en) Image processing method
JP2777378B2 (en) Halftone area detection method
JP2972171B2 (en) Halftone area detection method
JP3500373B2 (en) Color image processing equipment
JPS59165567A (en) Adaptive binary coding device
JP3004245B2 (en) Halftone area detection method
JP2986844B2 (en) Image binarization method and apparatus
JP2935435B2 (en) Halftone image processing device
JPS62272756A (en) Pseudo halftone processer
JPS58119268A (en) Picture signal processing system
JP3590943B2 (en) Image processing device
JP2724177B2 (en) Halftone area separation method
JPH09121287A (en) Image processor