JPH0869521A - Method and device for image output - Google Patents

Method and device for image output

Info

Publication number
JPH0869521A
JPH0869521A JP7048312A JP4831295A JPH0869521A JP H0869521 A JPH0869521 A JP H0869521A JP 7048312 A JP7048312 A JP 7048312A JP 4831295 A JP4831295 A JP 4831295A JP H0869521 A JPH0869521 A JP H0869521A
Authority
JP
Japan
Prior art keywords
image
character
image data
data
memory
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
JP7048312A
Other languages
Japanese (ja)
Inventor
Hisao Aihara
久雄 相原
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP7048312A priority Critical patent/JPH0869521A/en
Publication of JPH0869521A publication Critical patent/JPH0869521A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To freely input an image irrelevantly to an arrangement position by extracting the input image in a detected area, and arranging the input image at specific predetermined output arrangement position and outputting it. CONSTITUTION: An image enlarging and reducing device 7 reads character size data out of an internal memory 5 through a CPU 16. Then the reference size value of characters which is previously stored in the internal memory 5 of the CPU 16 through an input device such as a keyboard is compared with the character size read out of the internal memory 5 and enlargement/reduction processing for sizing the character part of image data stored in the internal memory 5 almost to the size reference value of characters is performed for image data. Then the image data are read out through the CPU 16, and vertical coordinates of arrangement of each character are found; and respective character parts are outputted after moved in coordinate so that their bottom parts are arranged at coordinates of reference arrangement height stored by manual input through the keyboard.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は画像イメージ出力方法お
よび装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image and image output method and apparatus.

【0002】[0002]

【従来の技術】従来、電子ファイリングシステムは、キ
ーボードなどの入力手段からCPUに画像読み取りの指
示データが送られると、CPUは、イメージリーダ制御
装置を介してイメージリーダによって画像を画像データ
として読み込む。CPUは、その読み込んだ画像データ
を、外部記憶制御装置を介して外部記憶装置に記憶す
る。このように、従来の電子ファイリングシステムは、
画像をそのまま画像データとして記憶していた。
2. Description of the Related Art Conventionally, in an electronic filing system, when image reading instruction data is sent from an input means such as a keyboard to a CPU, the CPU reads an image as image data by an image reader through an image reader control device. The CPU stores the read image data in the external storage device via the external storage control device. Thus, the conventional electronic filing system
The image was stored as it was as image data.

【0003】この記憶に際しては、画像データをそのま
ま画素に分解し、記憶した。
In this storage, the image data was directly decomposed into pixels and stored.

【0004】[0004]

【発明が解決しようとする課題】従来技術による電子フ
ァイリングシステムは、画像をそのまま画像データとし
て読み込んでいる。従って、アンケート用紙に記入され
た手書の文字など、手書の画像は、文字が手書きのた
め、字の大きさが不揃いであり、文字の配置も文字相互
で上下し、不揃いであった。そのために、記憶装置から
読み出され、出力装置に出力された画像は、見にくく読
み取りにくいために、分かりづらいという欠点があっ
た。
The electronic filing system according to the prior art reads an image as it is as image data. Therefore, in handwritten images such as handwritten characters filled in the questionnaire sheet, the characters are handwritten, so that the sizes of the characters are not uniform, and the characters are arranged differently from each other. For this reason, the image read from the storage device and output to the output device is difficult to see because it is difficult to see and read, which is a drawback.

【0005】本発明の課題は、任意の入力位置に入力さ
れた画像イメージが、所定配置位置に配置出力できるよ
うにすることである。
An object of the present invention is to enable a graphic image input at an arbitrary input position to be arranged and output at a predetermined arrangement position.

【0006】[0006]

【課題を解決するための手段】本発明の手段および作用
は、任意の入力位置に入力された所望の画像イメージの
配置領域を検出し、上記検出された領域から、その領域
内における入力画像イメージを抽出し、上記入力画像イ
メージを予め決められた所定の出力配置位置に配置して
出力するようにしたことを特徴とする。
Means and Action of the Invention The means and operation of the present invention detect an arrangement area of a desired image input at an arbitrary input position, and detect an input image image in the area from the detected area. Is extracted, and the input image image is arranged and output at a predetermined predetermined output arrangement position.

【0007】[0007]

【実施例】以下、図1乃至図6を参照しながら、実施例
について説明する。図1は、一実施例であるイメージデ
ータファイリング装置のシステム構成図である。
EXAMPLES Examples will be described below with reference to FIGS. 1 to 6. FIG. 1 is a system configuration diagram of an image data filing apparatus that is an embodiment.

【0008】イメージリーダ14は図示しないアンケー
ト用紙の記入欄を画像として読取りそのイメージデータ
を、イメージリーダ制御装置15を介して、CPU16
に送る。この時、イメージリーダ転送装置17はイメー
ジリーダ14にイメージリーダ制御装置15を介して、
画像読取り範囲を指示する。
The image reader 14 reads an entry field on a questionnaire sheet (not shown) as an image, and the image data is read by the CPU 16 via the image reader controller 15.
Send to At this time, the image reader transfer device 17 sends the image reader 14 to the image reader 14 via the image reader control device 15.
Specify the image reading range.

【0009】本実施例の場合、画像読取り範囲はアンケ
ート用紙の記入欄である。CPU16は、イメージリー
ダ制御装置15を介してイメージリーダ14から送られ
てきたイメージデータをCPU16の内部メモリ5に一
時記憶する。文字サイズ認識装置6は、CPU16を介
して内部メモリ5に記憶されたイメージデータを読出
し、文字サイズを求め、その文字サイズデータを内部メ
モリ5に記憶する。イメージデータ拡大、縮小装置7は
CPU16を介して内部メモリ5に記憶されている文字
サイズデータを読出す。イメージデータ拡大、縮小装置
7は図示しないキーボードなどの入力装置を介してCP
U16の内部メモリ5に予め記憶した文字の大きさの基
準値と、内部メモリ5から読出した文字サイズとを比較
し、内部メモリ5に記憶されているイメージデータの文
字部が文字の大きさの基準値に近い大きさとなる拡大、
縮小処理をイメージデータに対して行う。さらにイメー
ジデータ拡大、縮小装置7は、CPU16を介して内部
メモリ5に記憶されているイメージデータを読出し、各
文字の配置の上下の座標を求め、予め内部メモリ5に手
入力によって図示しないキーボードを介して記憶してあ
る基準の配置高さの座標に、各文字部の下部が配置する
ようにイメージデータの文字部を座標移動して出力す
る。イメージデータ拡大、縮小装置7は、メモリ5に記
憶されているイメージデータの文字部の拡大、縮小を行
い、文字部の上下の配置をそろえ直したイメージデータ
を外部記憶制御装置8を介して外部記憶装置9に記憶す
る。
In the case of the present embodiment, the image reading range is the entry field on the questionnaire. The CPU 16 temporarily stores the image data sent from the image reader 14 via the image reader control device 15 in the internal memory 5 of the CPU 16. The character size recognition device 6 reads the image data stored in the internal memory 5 via the CPU 16, obtains the character size, and stores the character size data in the internal memory 5. The image data enlargement / reduction device 7 reads the character size data stored in the internal memory 5 via the CPU 16. The image data enlarging / reducing device 7 is a CP via an input device such as a keyboard (not shown).
The reference value of the character size stored in advance in the internal memory 5 of U16 is compared with the character size read from the internal memory 5, and the character part of the image data stored in the internal memory 5 indicates the character size. Expansion that is close to the standard value,
Reduction processing is performed on image data. Further, the image data enlarging / reducing device 7 reads out the image data stored in the internal memory 5 via the CPU 16, obtains the upper and lower coordinates of the arrangement of each character, and manually inputs a keyboard (not shown) into the internal memory 5 in advance. The character part of the image data is coordinate-moved and output so that the lower part of each character part is arranged at the reference coordinates of the arrangement height stored via the above. The image data enlarging / reducing device 7 enlarges / reduces the character portion of the image data stored in the memory 5, and rearranges the image data in which the upper and lower positions of the character portion are rearranged to the outside via the external storage control device 8. It is stored in the storage device 9.

【0010】図5は、本実施例のイメージデータファイ
リング装置の働きの概要を示す図である。図5において
アンケート用紙10のアンケート記入欄10aに、例え
ばアンケートの記入文字10b〜10eが記入されてい
る。
FIG. 5 is a diagram showing an outline of the operation of the image data filing apparatus of this embodiment. In FIG. 5, in the questionnaire entry field 10a of the questionnaire sheet 10, for example, questionnaire entry characters 10b to 10e are entered.

【0011】このアンケート用紙10の記入文字10b
〜10eをイメージリーダ14を介して装置主要部12
を使って外部記憶装置13に記憶すると、やや大きな記
入文字10bは少し縮小された文字画像13bに、記入
欄に対して非常に小さい文字で書かれた記入文字10c
は拡大された文字画像13cに、小さい文字で、文字相
互の配置に上下のある記入文字10dは、文字が拡大さ
れ、各文字の上下の配置が同一水平線上にそろった文字
画像13dに、文字の大きさも、文字の配置もそろって
記入されている記入文字10eは、そのままの文字画像
13eに、それぞれ変換されて記憶される。文字画像1
3d〜13eは、外部記憶装置13に記憶された文字画
像を出力した状態で図示した。
Characters 10b written on the questionnaire 10
10e through the image reader 14 and the main part 12 of the apparatus
When it is stored in the external storage device 13 using, the slightly large entry character 10b is slightly reduced in the character image 13b, and the entry character 10c written in a very small character in the entry field is written.
Is a small character in the enlarged character image 13c, and the entered character 10d in which the upper and lower positions of the characters are arranged in relation to each other is enlarged, and the upper and lower positions of each character are aligned on the same horizontal line. The written character 10e in which the size and the layout of the characters are also written is converted and stored in the character image 13e as it is. Character image 1
3d to 13e are illustrated in a state in which the character image stored in the external storage device 13 is output.

【0012】図2は、実施例の装置の処理フローチャー
トである。まず最初にイメージデータ入力S1を行う。
ここではイメージリーダ14が画像を画素に区分し、イ
メージデータとしてイメージリーダ制御装置15を介し
てCPU16に送り出す。データ切り出し処理S2はイ
メージデータ入力によって得られたイメージデータのう
ち、予め指定されている領域を切り出す。そして、文字
サイズ認識処理S3で文字サイズ認識装置6は送られて
きたデータから文字サイズを読取る。拡大/縮小処理S
4では、文字サイズ認識処理S3で読取った文字サイズ
データを使い第1にイメージデータの拡大または縮小の
処理を行い、第2に文字相互の配置の高さをそろえる処
理を行う。
FIG. 2 is a processing flowchart of the apparatus of the embodiment. First, image data input S1 is performed.
Here, the image reader 14 divides the image into pixels and sends it as image data to the CPU 16 via the image reader controller 15. The data cut-out process S2 cuts out a predesignated area in the image data obtained by inputting the image data. Then, in the character size recognition processing S3, the character size recognition device 6 reads the character size from the transmitted data. Enlargement / reduction processing S
In 4, the character size data read in the character size recognition process S3 is used to perform first the process of enlarging or reducing the image data, and secondly the process of aligning the heights of the characters.

【0013】そして次にそのデータをデータのファイリ
ング処理S5でファイリングする。即ち外部記憶装置9
に格納する。データのファイリング処理S5が完了する
と、さらに処理するデータがあるかないかの判断S6を
行う。
Then, the data is filed in a data filing process S5. That is, the external storage device 9
To be stored. When the data filing process S5 is completed, a determination S6 is made as to whether or not there is more data to be processed.

【0014】次に処理するデータがあれば(判断がYE
S)、再度最初から次のデータに対して、一連の処理を
行う。次に処理するデータがなければ(判断がNO)処
理を完了する。
If there is data to be processed next (determination is YE
S) Then, a series of processing is performed again from the beginning to the next data. If there is no data to be processed next (determination is NO), the process is completed.

【0015】図3は文字として数字の「2」を例に取っ
て、文字サイズを認識する動作の時のメモリ内容を解説
した図である。次にこの図3を使い、文字サイズ認識装
置6の動作について説明する。イメージリーダ14はC
PU16の命令によってイメージリーダ制御装置15を
介して画像を縦n個、横m個合計n×m個の画素に区分
し各画素の白黒データを例えば白は0、黒は1の2値化
データに変換して読取り、イメージデータ制御装置15
を介してデータをCPU16に送る。CPU16はイメ
ージリーダ制御装置15を介して送られてきたイメージ
データを内部メモリ5に記憶する。図3はその内部メモ
リの記憶状態を白部と黒部で示している。各画素に対応
するメモリをMで表し、画像の左下に対応するメモリを
メモリM 1,1 、その右をメモリM2,1 、画像の最も右端
上部の画素に対応するメモリをメモリMm,n という記号
で表す。
FIG. 3 shows an example of the numeral "2" as a character.
The memory contents when recognizing the character size
FIG. Next, using this Figure 3,
The operation of the device 6 will be described. The image reader 14 is C
The image reader controller 15 is activated by the instruction of the PU 16.
The image is divided into n vertical pixels and m horizontal pixels through a total of n × m pixels
Then, the black and white data of each pixel is binarized, for example, 0 for white and 1 for black
Image data controller 15 converted into data and read
To send data to the CPU 16 via. CPU16 is bad
Image sent via the page reader controller 15
The data is stored in the internal memory 5. Figure 3 shows the internal memo
The memory state of the memory is shown in white and black. Corresponding to each pixel
The memory to be stored is represented by M, and the memory corresponding to the lower left of the image is
Memory M 1,1, Memory M to the right2,1, The far right of the image
The memory corresponding to the upper pixel is a memory Mm, nSign
Expressed by

【0016】本実施例の文字の認識は、最初に文字を横
方向に1文字ずつ区別する処理を行って1文字ずつ区分
する。次にその区分した1文字の文字部の上位置座標と
下位置座標を求める処理を行い、各文字の上下の位置を
求める。
In the character recognition of the present embodiment, first, a character is laterally distinguished one by one to classify the characters one by one. Next, the process of obtaining the upper position coordinate and the lower position coordinate of the character portion of the divided one character is performed to obtain the upper and lower positions of each character.

【0017】最初に横方向の文字の区分の方法について
説明する。横方向の文字の区分は文字サイズ認識装置6
がCPU16を介してCPU16の内部メモリ5に記憶
されているイメージデータの横軸への写影を取り、その
写影の黒部の開始点と終点を識別することによって行
う。即ち文字サイズ認識装置6は左側1列目の画素に対
応するメモリに対してメモリM1,1 、メモリM1,2 の順
で各メモリに記憶されているイメージデータを縦列単位
でOR演算し、その結果をx軸写像としてx軸写像メモ
リD1 に記憶する。同様に左側から2列目の各画素につ
いても、各々の画素に対応するメモリM2,1 、メモリM
2,2 、・・・、メモリM2,12の各イメージデータをOR
演算しx軸写像を得て、その結果をx軸写像メモリD2
に記憶する。以下同様に3列目のx軸写像の結果をメモ
リD3 に記憶し、順にm列目まで各列単位で各画素に対
応するイメージデータのOR演算を行い、各列のx軸写
像のデータを各列に対応するx軸写像メモリDm m
1列からm 列を表す添字)に記憶する。
First, a method of dividing characters in the horizontal direction will be described. The character division in the horizontal direction is the character size recognition device 6.
Via the CPU 16 takes a projection of the image data stored in the internal memory 5 of the CPU 16 on the horizontal axis, and identifies the start and end points of the black portion of the projection. That is, the character size recognition device 6 performs an OR operation on the image data stored in each memory in the order of the memory M 1,1 and the memory M 1,2 with respect to the memory corresponding to the pixel on the left first column in a column unit. , And stores the result in the x-axis mapping memory D 1 as an x-axis mapping. Similarly, for each pixel in the second column from the left, the memory M 2,1 corresponding to each pixel, the memory M
2,2 , ..., OR the respective image data in the memory M 2,12
The calculation is performed to obtain the x-axis mapping, and the result is the x-axis mapping memory D 2
To memorize. Likewise the result of the third column of the x-axis mapping stored in the memory D 3, sequentially performs OR operation of the image data corresponding to each pixel in units of columns to the m-th column, the data of x-axis mapping each column below Are stored in the x-axis mapping memory D m ( m is a subscript representing 1 to m columns) corresponding to each column.

【0018】次に文字サイズ認識装置6は、CPU16
を介して内部メモリ5に記憶したx軸写像のデータをx
軸写像メモリD1 からDm までの各メモリから読出し、
1列目に対応するデータと2列目に対応するデータとを
排他的OR演算する。そして、次に2列目に対応するデ
ータと3列目に対応するデータとを排他的OR演算す
る。以上のようにして各列に対応するメモリDm のデー
タをその前後で1列目から順に排他的OR演算を繰り返
す。その排他的OR演算結果が、最初に0から1に変化
した時のメモリDm のx座標データを文字開始点座標デ
ータx1 として内部メモリ5に記憶する。さらに文字サ
イズ認識装置6はx軸写像の結果を記憶したメモリDm
相互の前後のメモリ同志で排他的OR演算を繰り返し、
次に排他的OR演算結果が0から1に変化した時のメモ
リDm-1 (即ち排他的OR演算をした前後のメモリの内
前のメモリのx座標値データ)を文字終了点座標データ
2として、内部メモリ5に記憶する。このようにして
x軸写像の結果を記憶したメモリDm の前後での排他的
OR演算を繰り返し、得られたデータの変化点のx座標
値データ(奇数回目の変化点では、排他的OR演算した
後者のメモリのx座標値データを取り、偶数回目の変化
点では、前者のメモリのx座標値データを取る)は、そ
れぞれ1回目のx座標値データx1 が最初の文字の文字
開始点を示すx座標値データで、2回目のx座標値デー
タx2 が最初の文字の文字終了点を示すx座標値データ
であり、文字サイズ認識装置6は、この文字開始点デー
タと文字終了点データx1 〜xK をCPU16を介して
メモリ5に記憶する。図3に図示する文字開始点x1
文字終了点x2 は文字2のx軸への写像の文字開始点の
メモリD4 と文字終了点のメモリD10の各座標値であ
る。
Next, the character size recognition device 6 includes a CPU 16
X-axis mapping data stored in the internal memory 5 via x
Read from each memory from the axis mapping memories D 1 to D m ,
An exclusive OR operation is performed on the data corresponding to the first column and the data corresponding to the second column. Then, an exclusive OR operation is performed on the data corresponding to the second column and the data corresponding to the third column. As described above, the exclusive OR operation is sequentially repeated from the first column before and after the data in the memory D m corresponding to each column. The x-coordinate data of the memory D m when the result of the exclusive OR operation first changes from 0 to 1 is stored in the internal memory 5 as the character start point coordinate data x 1 . Further, the character size recognition device 6 stores the result of the x-axis mapping in the memory D m.
The exclusive OR operation is repeated between the memories before and after each other,
Next, the memory D m-1 when the exclusive-OR operation result changes from 0 to 1 (that is, the x-coordinate value data of the memory before and after the exclusive-OR operation) is used as the character end point coordinate data x. 2 is stored in the internal memory 5. In this way, the exclusive OR operation before and after the memory D m storing the result of the x-axis mapping is repeated, and the x coordinate value data of the change point of the obtained data (exclusive OR operation at the change point of the odd number) The x-coordinate value data of the latter memory is taken, and the x-coordinate value data of the former memory is taken at the even-numbered change point). The x-coordinate value data x 1 of the first time is the character start point of the first character. In the x-coordinate value data indicating the second character, the second x-coordinate value data x 2 is the x-coordinate value data indicating the character end point of the first character. The data x 1 to x K are stored in the memory 5 via the CPU 16. The character start point x 1 and the character end point x 2 shown in FIG. 3 are the coordinate values of the character start point memory D 4 and the character end point memory D 10 of the mapping of the character 2 onto the x-axis.

【0019】次に文字の高さを求める文字サイズ認識装
置6の動きについて説明する。文字サイズ認識装置6は
メモリ5に記憶されている文字開始点データと文字終了
点データによって囲まれたx軸の文字に対応するイメー
ジデータに対して、各行単位で各メモリのOR演算を行
い、その結果をy軸写像データとしてy軸写像データメ
モリRn に記憶する。
Next, the operation of the character size recognition device 6 for determining the height of a character will be described. The character size recognition device 6 performs an OR operation of each memory on a line-by-line basis with respect to the image data corresponding to the x-axis character surrounded by the character start point data and the character end point data stored in the memory 5, The result is stored in the y-axis mapping data memory R n as y-axis mapping data.

【0020】次に文字サイズ認識装置6はy軸写像デー
タメモリRn に対して、画素の最下部に対応するy軸写
像メモリR1 と下から2行目のy軸写像メモリR2 とで
排他的OR演算を行う。同様に下から2行目に対応する
y軸写像メモリR2 と下から3行目に対応するy軸写像
メモリR3 とで排他的OR演算を行う。この排他的OR
演算を順に下の行から繰り返し、最初に排他的OR演算
結果が0から1になったときのy軸写像メモリRn のy
座標値データを文字下位置座標値Ll (lは画像の左側
から数えた時の文字数を示す添字)として、内部メモリ
5に記憶する。文字サイズ認識装置はLl を求めると、
y軸写像データメモリRn に対する下段の行からの排他
的OR演算を中止し、最上行のy軸写像データメモリR
n と上から2行目のy軸写像データメモリRn-1 との排
他的OR演算を行う。さらに文字サイズ認識装置6は、
上から2行目に対応するy軸写像データメモリRn-1
上から3行目に対応するy軸写像データメモリRn-2
の排他的OR演算を行う。このようにして、その結果が
最初に0から1に変化した時の後者のy軸写像データメ
モリRn のy座標値データを文字上位置座標Ul として
内部メモリ5に記憶する。
Next, the character size recognizing device 6 stores the y-axis mapping data memory R n into the y-axis mapping memory R 1 corresponding to the bottom of the pixel and the y-axis mapping memory R 2 in the second row from the bottom. Perform an exclusive OR operation. Similarly, an exclusive OR operation is performed on the y-axis mapping memory R 2 corresponding to the second row from the bottom and the y-axis mapping memory R 3 corresponding to the third row from the bottom. This exclusive OR
The operations are sequentially repeated from the bottom row, and the y of the y-axis mapping memory R n when the exclusive OR operation result first becomes 0 to 1
The coordinate value data is stored in the internal memory 5 as the character position coordinate value L l (l is a subscript indicating the number of characters when counted from the left side of the image). When the character size recognition device finds L l ,
The exclusive OR operation from the lower row to the y-axis mapping data memory R n is stopped, and the y-axis mapping data memory R n at the top row is stopped.
An exclusive OR operation is performed between n and the y-axis mapping data memory R n-1 in the second row from the top. Further, the character size recognition device 6
An exclusive OR operation is performed on the y-axis mapping data memory R n-1 corresponding to the second row from the top and the y-axis mapping data memory R n-2 corresponding to the third row from the top. Thus, the y-coordinate value data of the latter y-axis mapping data memory R n when the result first changes from 0 to 1 is stored in the internal memory 5 as the character position coordinate U l .

【0021】以上のようにして文字サイズ認識装置6は
画像の文字部に対応する文字開始点データと文字終了点
データx1 〜xK 及び文字の下端と上端を示す文字下位
置座標値Ll と文字上位置座標値Ul をCPU16を介
して内部メモリ5に記憶する。
As described above, the character size recognition device 6 causes the character start point data and the character end point data x 1 to x K corresponding to the character portion of the image and the character lower position coordinate value L l indicating the lower end and the upper end of the character. And the character position coordinate value U l are stored in the internal memory 5 via the CPU 16.

【0022】次にイメージデータ拡大、縮小装置7の働
きについて説明する。イメージデータ拡大、縮小装置7
は第1にイメージデータの文字の大きさをそろえたイメ
ージデータを外部記憶制御装置8に出力する。
Next, the operation of the image data enlarging / reducing device 7 will be described. Image data enlargement / reduction device 7
First, it outputs the image data in which the character sizes of the image data are aligned to the external storage controller 8.

【0023】以下イメージデータ拡大、縮小装置7のイ
メージデータ文字部の拡大、縮小の働きについて詳述す
る。文字サイズ認識装置6が1つの画像に対応するイメ
ージデータに対して文字サイズの各データを求める処理
を終了すると、CPU16はイメージデータ拡大、縮小
装置7の処理に入る命令をイメージデータ拡大、縮小装
置7に伝える。イメージデータ拡大、縮小装置7は、C
PU16から処理開始の命令を受けると、内部メモリ5
に記憶されている1文字目の文字上位置座標値U1 と下
位置座標値L1 を読出し、差の演算を行う。イメージデ
ータ拡大、縮小装置7はその結果を文字高さデータH1
として、文字高さを記憶する内部メモリ5にメモリH1
として記憶する。
The operation of enlarging and reducing the image data character portion of the image data enlarging / reducing device 7 will be described in detail below. When the character size recognition device 6 finishes the process of obtaining each data of character size for the image data corresponding to one image, the CPU 16 issues an instruction to the process of the image data enlargement / reduction device 7 to the image data enlargement / reduction device. Tell 7. The image data enlarging / reducing device 7 is C
When receiving a processing start instruction from the PU 16, the internal memory 5
The upper position coordinate value U 1 and the lower position coordinate value L 1 of the first character stored in are read and the difference is calculated. The image data enlarging / reducing device 7 displays the result as the character height data H 1
As the memory H 1 in the internal memory 5 for storing the character height.
Memorize as.

【0024】同様にイメージデータの各文字部に対応す
る文字上位置座標値Ul 、下位置座標値Ll について、
イメージデータ拡大、縮小装置7は各文字毎に差の演算
を繰り返す。1つのイメージデータの全ての文字に対す
る演算が終了すると、イメージデータ拡大、縮小装置7
は、文字高さを記憶する内部メモリH1 〜Hl のデータ
の平均値HM を演算し、内部メモリ5に文字高さの平均
値HM として記憶する。次にイメージデータ拡大、縮小
装置7は予め内部メモリ5に図示しないキーボード等の
入力手段によって記憶してある文字の大きさの基準値デ
ータH0 をCPU16を介して読出し、先に演算して出
した文字高さの平均値データHM との比を演算し、その
結果を拡大率データB0 として内部メモリ5に記憶す
る。さらに、イメージデータ拡大、縮小装置7は拡大率
データB0 の値を予め設定し内部メモリ5に記憶してあ
る12種類の拡大率B1(0.33倍)(( )内の数値は
実際の拡大率の数値を表す)、拡大率B2(0.41倍)、
拡大率B3(0.5 倍)、拡大率B4(0.66倍)、拡大率
B5(0.83倍)、拡大率B6(1.0 倍)、拡大率B7
(1.2 倍)、拡大率B8(1.44倍)、拡大率B9(1.8
倍)、拡大率B10(2.0 倍)、拡大率B11(2.4
倍)、拡大率B12(3.0 倍)の各倍率と比較し、最も
近い予め設定してある拡大率の値をイメージデータ文字
部の拡大率として選択し、拡大率Bとして内部メモリ5
に記憶する。
Similarly, for the character upper position coordinate value U l and lower character position coordinate value L l corresponding to each character part of the image data,
The image data enlargement / reduction device 7 repeats the difference calculation for each character. When the calculation for all the characters of one image data is completed, the image data enlargement / reduction device 7
Calculates the mean value H M of data in the internal memory H 1 to H l for storing character height, is stored in the internal memory 5 as an average value H M character height. Next, the image data enlarging / reducing device 7 reads out the reference value data H 0 of the character size stored in the internal memory 5 in advance by an input means such as a keyboard (not shown) through the CPU 16 and calculates and outputs it first. The ratio of the average character height data H M to the calculated character height is calculated, and the result is stored in the internal memory 5 as the enlargement ratio data B 0 . Further, the image data enlargement / reduction device 7 sets the value of the enlargement ratio data B 0 in advance and stores the twelve kinds of enlargement ratios B1 (0.33 times) stored in the internal memory 5 (the numerical value in the parentheses is the actual enlargement ratio). , The magnification ratio B2 (0.41 times),
Expansion rate B3 (0.5 times), expansion rate B4 (0.66 times), expansion rate B5 (0.83 times), expansion rate B6 (1.0 times), expansion rate B7
(1.2 times), magnification B8 (1.44 times), magnification B9 (1.8
), Magnification B10 (2.0 times), magnification B11 (2.4
Magnification) and magnification B12 (3.0 times), and the closest preset value of magnification is selected as the magnification of the image data character portion.
To memorize.

【0025】次にイメージデータの文字部の拡大方法に
ついて説明する。イメージデータ拡大、縮小装置7が文
字部に対して行う拡大、または、縮小のプログラムは予
めキーボード(不図示)などの入力手段によって内部メ
モリ5に記憶してある。イメージデータ拡大、縮小装置
7は、文字データに対して拡大率Bを求めると、内部メ
モリ5に記憶してある拡大手法2/1、拡大手法3/
2、拡大手法 6/5の3組の拡大手法と、縮小手法1
/2、縮小手法2/3、縮小手法5/6の3組の縮小手
法とを組み合わせて、12組の拡大・縮小処理をイメージ
データに対して実施し、その結果を外部記憶制御装置8
へ出力する。
Next, a method of enlarging the character portion of the image data will be described. A program for enlarging or reducing the image data enlarging / reducing device 7 with respect to the character portion is stored in the internal memory 5 in advance by input means such as a keyboard (not shown). When the image data enlargement / reduction device 7 obtains the enlargement ratio B for the character data, the enlargement method 2/1 and the enlargement method 3 / stored in the internal memory 5 are used.
2. Enlarging method 3 sets of enlarging method of 6/5 and reducing method 1
/ 3, reduction method 2/3, and reduction method 5/6 are combined to perform 12 sets of enlargement / reduction processing on the image data, and the result is stored in the external storage controller 8
Output to.

【0026】イメージデータ拡大・縮小装置7は、拡大
率Bが決まると、CPUを介して内部メモリ5にプログ
ラムされている上記6組の拡大・縮小手法を組み合わせ
て、各拡大率を得る。すなわち、縮小手法2/3と縮小
手法1/2を組み合わせて拡大率B1(0.33倍)を、縮
小手法5/6と縮小手法 1/2を組み合わせて拡大率
B2(0.41倍)を、拡大手法6/5と拡大手法6/5を
組み合わせて拡大率B8(1.44倍)を、拡大手法3/2
と拡大手法6/5を組み合わせて拡大率B9(1.8 倍)
を、拡大手法2/1と拡大手法6/5を組み合わせて拡
大率B11(2.4 倍)を、拡大手法2/1と拡大手法3
/2とを組み合わせて拡大率B12(3倍)を得る。イ
メージデータ拡大・縮小装置7は拡大率B3(0.5 倍)
の時は縮小手法1/2を、拡大率B4(0.66倍)の時は
縮小手法2/3を、拡大率B5(0.83倍)の時は縮小手
法5/6を、拡大率B7(1.2 倍)の時は拡大手法6/
5を、拡大率B10(2.0 倍)の時は拡大手法2/1を
単独に用いる。拡大率B6(1倍)の時は拡大・縮小手
法をとらないで、イメージデータをそのまま外部記憶制
御装置8へ出力する。
When the enlargement ratio B is determined, the image data enlargement / reduction device 7 obtains each enlargement ratio by combining the above-described six sets of enlargement / reduction techniques programmed in the internal memory 5 via the CPU. That is, the reduction method 2/3 and the reduction method 1/2 are combined to obtain the enlargement ratio B1 (0.33 times), and the reduction method 5/6 and the reduction method 1/2 are combined to obtain the enlargement ratio B2 (0.41 times). 6/5 and enlargement method 6/5 are combined to obtain enlargement ratio B8 (1.44 times) and enlargement method 3/2
And enlargement method 6/5 are combined, and enlargement ratio B9 (1.8 times)
The expansion rate B11 (2.4 times) by combining the expansion method 2/1 and the expansion method 6/5, and the expansion method 2/1 and the expansion method 3
The magnification ratio B12 (3 times) is obtained by combining the same with / 2. Image data enlargement / reduction device 7 has enlargement ratio B3 (0.5 times)
The reduction method is 1/2, the reduction method is 2/3 when the enlargement ratio is B4 (0.66 times), the reduction method is 5/6 when the enlargement ratio is B5 (0.83 times), and the enlargement ratio is B7 (1.2 times). In case of), enlargement method 6 /
5 and the enlargement method 2/1 is used independently when the enlargement ratio is B10 (2.0 times). When the enlargement ratio is B6 (1 ×), the enlargement / reduction method is not used and the image data is output as it is to the external storage control device 8.

【0027】イメージデータ拡大・縮小装置7は、各拡
大手法か縮小手法を実施してイメージデータの文字デー
タを拡大・縮小する時、次の処理をイメージデータに対
して実施し、イメージデータの拡大、又は縮小を行う。
イメージデータ拡大・縮小装置7は拡大手法(n+1/
n)を選択すると、内部メモリ5に記憶されたイメージ
データのn個のイメージデータを切り出し、n+1個の
イメージデータを内部メモリ5に出力する。この時増加
するイメージデータの種類は、n個のイメージデータの
中で黒い点を示す1か白い点を示す0の2値のうち数の
多い値を取る。黒い点を示す値1と白い点を示す値0が
同数の場合は、黒い点を示す1を内部メモリ5に出力す
る。この増加する位置は、増加する種類の点が連続する
次の座標に出力する。
The image data enlarging / reducing device 7, when enlarging / reducing character data of image data by executing each enlarging method or reducing method, performs the following processing on the image data to enlarge the image data. , Or reduce.
The image data enlargement / reduction device 7 uses the enlargement method (n + 1 /
When n) is selected, n pieces of image data of the image data stored in the internal memory 5 are cut out and n + 1 pieces of image data are output to the internal memory 5. At this time, the type of image data to be increased takes a larger value out of two values of 1 indicating a black point or 0 indicating a white point in the n image data. When the value 1 indicating a black dot and the value 0 indicating a white dot are the same number, 1 indicating a black dot is output to the internal memory 5. The increasing position is output to the next coordinate where the increasing types of points are continuous.

【0028】もし、2ヶ所以上増加する種類と同じ種類
の点がある場合は、最後に切り出した増加する種類と同
じ点の後の座標に出力する。以上の拡大手法をイメージ
データのx軸方向に下段から最上段まで実施し、続い
て、y軸方向に左側の列から最も右側の列まで行い、拡
大率(n+1/n)倍のイメージデータを得る。もし、
イメージデータ拡大・縮小装置7が選択した拡大率Bが
2組の拡大手法を組み合わせた処理の場合には、上記拡
大処理に続いて、1組目の拡大処理によって内部メモリ
5に出力し記憶したデータを再び内部メモリ5から読み
出して2組目の拡大処理を実施する。
If there is a point of the same kind as the kind of increase in two or more places, it is output to the coordinates after the same point as the kind of increase that was cut out last. The above enlarging method is performed from the lower stage to the uppermost stage in the x-axis direction of the image data, and then from the left column to the rightmost column in the y-axis direction to obtain the image data at the enlargement ratio (n + 1 / n) times. obtain. if,
In the case where the enlargement ratio B selected by the image data enlargement / reduction device 7 is a process in which two sets of enlargement methods are combined, the image data is output to and stored in the internal memory 5 by the first set of enlargement processes following the enlargement process. The data is read again from the internal memory 5 and the second set of enlargement processing is performed.

【0029】次に、イメージデータ拡大・縮小装置7
は、縮小手法(n−1/n)を選択すると、内部メモリ
5に記憶されたn個のイメージデータを切り出し、1つ
のデータを削除する。この時、削除するイメージデータ
の種類は、n個のイメージデータの中で黒点(データ1
の点)か白点(データ0の点)のうち少ない種類のイメ
ージデータを削除する。黒点と白点が同じ数の場合に
は、白点を削除する。削除する位置は、削除するイメー
ジデータが連続していない座標のイメージデータとし、
削除するイメージデータが不連続でかつ同数で2ヶ所以
上ある場合には、後から切り出したイメージデータを削
除する。以上の縮小手法をイメージデータのx軸方向に
下段から順に最上段まで実施し、内部メモリ5に出力す
る。更に、x軸方向の縮小処理が完了したイメージデー
タに、y軸方向に上記x軸方向と同様の処理を左側の列
から最も右側の列まで実施し、拡大率(n−1/n)倍
のイメージデータを得る。もし、イメージデータ拡大・
縮小装置7が2組の縮小手法を組み合わせた拡大率Bを
選択した場合には、1組目の縮小手法に続いて2組目の
縮小手法をイメージデータに実施して、拡大率Bのイメ
ージデータを外部記憶制御装置8に出力する。
Next, the image data enlargement / reduction device 7
Selects the reduction method (n-1 / n), cuts out n image data stored in the internal memory 5, and deletes one data. At this time, the type of image data to be deleted is the black dot (data 1
Of the image data of lesser number) or white points (points of data 0) are deleted. If the number of black dots and white dots is the same, the white dots are deleted. The position to delete is the image data of the coordinates where the image data to delete is not continuous,
When the image data to be deleted is discontinuous and the same number exists in two or more places, the image data cut out later is deleted. The above reduction method is performed in the x-axis direction of the image data in order from the bottom to the top, and output to the internal memory 5. Further, the same processing as in the above-mentioned x-axis direction is performed in the y-axis direction on the image data for which the reduction processing in the x-axis direction has been completed, from the left column to the rightmost column, and the enlargement ratio (n-1 / n) times is applied. Get the image data of. If image data expansion
When the reduction device 7 selects the enlargement ratio B that is a combination of the two reduction techniques, the image data of the enlargement ratio B is obtained by performing the second reduction technique on the image data after the first reduction technique. The data is output to the external storage controller 8.

【0030】図6に上記拡大率B1〜B12の各拡大手
法と縮小手法の組み合わせを示す図表を示す。図6にお
いて、左側の欄は拡大率の記号B1〜B12を示し、そ
の左側の欄の右欄には、実際の拡大率を数字で表わして
いる。同図の右側には、各拡大率に対応する拡大手法と
縮小手法の組み合わせを記載している。
FIG. 6 is a table showing combinations of the enlargement ratios B1 to B12 and the reduction techniques. In FIG. 6, the left column shows the enlargement ratio symbols B1 to B12, and the right column of the left column shows the actual enlargement ratio by numbers. On the right side of the figure, the combination of the enlargement method and the reduction method corresponding to each enlargement ratio is described.

【0031】次に、イメージデータ拡大・縮小装置7が
文字の配置の高さを揃える動作について説明する。イメ
ージデータ拡大・縮小装置7は、CPU16からイメー
ジデータの文字の配置の高さをそろえる命令を受けると
(この場合、イメージデータ拡大・縮小装置7は文字位
置整列の機能を果たす)、内部メモリ5に記憶している
文字部の下位置座標値Ll を読み出す。更に、イメージ
データ拡大・縮小装置7は予め内部メモリ5に記憶して
ある文字位置基準値L0 を読み出し、文字位置基準値L
0 と各文字部の下位置座標値Ll との差を演算し文字位
置変化量dLを算出する。次にイメージデータ拡大・縮
小装置7は、内部メモリ5のイメージデータの文字部を
読み出し、y軸方向に文字位置変化量dLだけ変位した
位置から外部記憶制御装置8にイメージデータを出力す
る。
Next, the operation of the image data enlarging / reducing device 7 for aligning the heights of character arrangement will be described. When the image data enlarging / reducing device 7 receives from the CPU 16 an instruction to align the heights of the characters in the image data (in this case, the image data enlarging / reducing device 7 performs the character position alignment function), the internal memory 5 The lower position coordinate value L 1 of the character portion stored in the memory is read. Further, the image data enlarging / reducing device 7 reads out the character position reference value L 0 stored in advance in the internal memory 5, and the character position reference value L
The difference between 0 and the lower position coordinate value L 1 of each character portion is calculated to calculate the character position change amount dL. Next, the image data enlarging / reducing device 7 reads the character portion of the image data in the internal memory 5, and outputs the image data to the external storage control device 8 from the position displaced by the character position change amount dL in the y-axis direction.

【0032】図4は、イメージデータの文字の配置の高
さを揃えて表示した概念図である。図4上は文字が右上
りに配置している文を例示している。基準位置に対して
文字位置変化量dLを変位させて図4中の同一水平線上
に文字が揃った画像が得られる。
FIG. 4 is a conceptual diagram in which the heights of the characters of the image data are displayed in a uniform manner. The upper part of FIG. 4 exemplifies a sentence in which characters are arranged on the upper right side. By displacing the character position change amount dL with respect to the reference position, an image in which characters are aligned on the same horizontal line in FIG. 4 can be obtained.

【0033】図4下は右下がりの文字配置の文を例示し
ている。図4上と同様、文字位置変化量dLを変位させ
て図4中の同一水平線上に文字が揃った画像を得る。
The lower part of FIG. 4 exemplifies a sentence in which characters are arranged downward to the right. As in the case of FIG. 4, the character position change amount dL is displaced to obtain an image in which characters are aligned on the same horizontal line in FIG.

【0034】[0034]

【発明の効果】本発明によれば、任意の入力位置に入力
された画像イメージが、所定配置位置に自動的に配置出
力されるので、画像イメージを所定配置位置に配置出力
したい場合にも、画像イメージを入力する段階では、そ
の画像イメージの配置位置を一切考慮することなく自由
に入力することができる。
According to the present invention, a picture image input at an arbitrary input position is automatically arranged and outputted at a predetermined arrangement position. Therefore, even when it is desired to arrange and output a picture image at a predetermined arrangement position, At the stage of inputting the image image, it is possible to freely input the image image without considering the arrangement position of the image.

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

【図1】一実施例のシステム構成図である。FIG. 1 is a system configuration diagram of an embodiment.

【図2】その処理フローチャートである。FIG. 2 is a processing flowchart thereof.

【図3】イメージデータのメモリ状況を表す図である。FIG. 3 is a diagram showing a memory status of image data.

【図4】文字揃えの概念図である。FIG. 4 is a conceptual diagram of character alignment.

【図5】全体の働きの概念図である。FIG. 5 is a conceptual diagram of the overall operation.

【図6】縮小・拡大の倍率の組み合わせを示す図表であ
る。
FIG. 6 is a chart showing combinations of reduction / enlargement magnifications.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06T 3/40 G06F 15/66 350 C 355 A ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G06T 3/40 G06F 15/66 350 C 355 A

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 入力された画像イメージを所定配置位置
に配置して出力する画像イメージ出力方法であって、 任意の入力位置に入力された所望の画像イメージの配置
領域を検出し、 上記検出された領域から、その領域内における入力画像
イメージを抽出し、 上記入力画像イメージを、予め決められた所定の出力配
置位置に配置して出力する、 ようにしたことを特徴とする画像イメージ出力方法
1. An image image output method for arranging an input image image at a predetermined arrangement position and outputting the image image, wherein an arrangement region of a desired image image inputted at an arbitrary input position is detected, and the detected area is detected. An image image output method, wherein an input image image in the region is extracted, the input image image is arranged at a predetermined output arrangement position, and is output.
【請求項2】 入力された画像イメージを所定配置位置
に配置して出力する画像イメージ出力装置であって、 任意の入力位置に入力された所望の画像イメージの配置
領域を検出する手段と、 上記検出された領域から、その領域内における入力画像
イメージを抽出する手段と、 上記入力画像イメージを予め決められた所定の出力配置
位置に配置して出力する手段と、 を具備したことを特徴とする画像イメージ出力装置。
2. An image image output apparatus for arranging and outputting an input image image at a predetermined arrangement position, said means for detecting an arrangement area of a desired image image inputted at an arbitrary input position, From the detected area, means for extracting an input image image in the area, and means for arranging and outputting the input image image at a predetermined output arrangement position determined in advance are provided. Image Image output device.
JP7048312A 1995-03-08 1995-03-08 Method and device for image output Pending JPH0869521A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7048312A JPH0869521A (en) 1995-03-08 1995-03-08 Method and device for image output

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7048312A JPH0869521A (en) 1995-03-08 1995-03-08 Method and device for image output

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP63054672A Division JPH01228066A (en) 1988-03-08 1988-03-08 Image data filing device

Publications (1)

Publication Number Publication Date
JPH0869521A true JPH0869521A (en) 1996-03-12

Family

ID=12799907

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7048312A Pending JPH0869521A (en) 1995-03-08 1995-03-08 Method and device for image output

Country Status (1)

Country Link
JP (1) JPH0869521A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5715089A (en) * 1980-07-03 1982-01-26 Honda Motor Co Ltd Regulator for location of handle of autobicycle
JPS5760458A (en) * 1980-09-29 1982-04-12 Mitsubishi Electric Corp Character fair copy device
JPS57105089A (en) * 1980-12-23 1982-06-30 Fujitsu Ltd Editing system of inputted hand-written sentence
JPS62123570A (en) * 1985-11-25 1987-06-04 Toshiba Corp Document editing device
JPS62151988A (en) * 1985-12-25 1987-07-06 Hitachi Ltd File system for picture data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5715089A (en) * 1980-07-03 1982-01-26 Honda Motor Co Ltd Regulator for location of handle of autobicycle
JPS5760458A (en) * 1980-09-29 1982-04-12 Mitsubishi Electric Corp Character fair copy device
JPS57105089A (en) * 1980-12-23 1982-06-30 Fujitsu Ltd Editing system of inputted hand-written sentence
JPS62123570A (en) * 1985-11-25 1987-06-04 Toshiba Corp Document editing device
JPS62151988A (en) * 1985-12-25 1987-07-06 Hitachi Ltd File system for picture data

Similar Documents

Publication Publication Date Title
JP3814320B2 (en) Image processing method and apparatus
EP0461760B1 (en) Image processing apparatus and method
JP4661909B2 (en) Information display device and program
JPH0869521A (en) Method and device for image output
JPH0863591A (en) Method and device for outputting image
JPH01228066A (en) Image data filing device
JPH06274303A (en) Multiwindow display method
JPH08202856A (en) Picture processing method
JP3521606B2 (en) Character reader
JP2939159B2 (en) Apparatus and method for aligning handwritten characters
JPH04307659A (en) Data display system
CN117113926A (en) Method, device, equipment and storage medium for realizing font turning
JP3073206B2 (en) Image recognition method and apparatus
JPH03160571A (en) Picture processing method
JPH0439710B2 (en)
JP2010009271A (en) Image processor
JPH0237391A (en) Image interpolating system
JPH0553558A (en) Information processor
JPH1021330A (en) Document picture processing system
JPH0798581A (en) Information processing system
JPH0752466B2 (en) Raster operation device and method
JPH06110600A (en) Information processing equipment provided with display tablet for character and illustration or the like
JPH05307644A (en) Character recognizing device
JPS63208986A (en) Graphic recognizing system
JPH04323725A (en) Data processor