Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2875446B2 - Contour inspection device - Google Patents
[go: Go Back, main page]

JP2875446B2 - Contour inspection device - Google Patents

Contour inspection device

Info

Publication number
JP2875446B2
JP2875446B2 JP4353553A JP35355392A JP2875446B2 JP 2875446 B2 JP2875446 B2 JP 2875446B2 JP 4353553 A JP4353553 A JP 4353553A JP 35355392 A JP35355392 A JP 35355392A JP 2875446 B2 JP2875446 B2 JP 2875446B2
Authority
JP
Japan
Prior art keywords
contour
data
image
corrected
binary image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP4353553A
Other languages
Japanese (ja)
Other versions
JPH06180745A (en
Inventor
洋一 三橋
修一 荒木
博美 茶谷
昌行 豊泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dainippon Screen Manufacturing Co Ltd
Original Assignee
Dainippon Screen Manufacturing 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 Dainippon Screen Manufacturing Co Ltd filed Critical Dainippon Screen Manufacturing Co Ltd
Priority to JP4353553A priority Critical patent/JP2875446B2/en
Publication of JPH06180745A publication Critical patent/JPH06180745A/en
Application granted granted Critical
Publication of JP2875446B2 publication Critical patent/JP2875446B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Image Analysis (AREA)
  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、画像原稿を2値画像化
した2値画像に基づいて作成される画像の輪郭の良否を
検査する輪郭検査装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a contour inspection apparatus for inspecting the contour of an image formed based on a binary image obtained by converting an image document into a binary image.

【0002】[0002]

【従来の技術】印刷用のフォント等の画像をコンピュー
タによって処理する際に、画像の輪郭を抽出することが
ある。例えば、文字原稿からアウトラインフォントを作
成する場合には、スキャナ入力装置等によって文字原稿
を2値画像化し、文字の境界部を自動追跡する自動輪郭
抽出装置によって2値画像をアウトラインフォント化す
る手法がとられている。この手法により作成されるアウ
トラインフォントは、自動輪郭抽出装置の抽出精度にも
よるが、通常、その画質が悪いことから、人為的な目視
による検査を行い、画質の修正を行なう必要があった。
具体的には、その抽出されたアウトラインフォントをコ
ンピュータのディスプレイに表示し、マウス等のポイン
ティングデバイスを用いて画面上で輪郭の修正を行なう
ことで画質の修正を行なう。
2. Description of the Related Art When an image such as a font for printing is processed by a computer, an outline of the image is sometimes extracted. For example, when an outline font is created from a character document, a method of converting the character image into a binary image using a scanner input device or the like, and converting the binary image into an outline font using an automatic contour extraction device that automatically tracks the boundaries of characters is known. Has been taken. Although the outline font created by this method depends on the extraction accuracy of the automatic contour extraction device, the image quality is usually poor. Therefore, it is necessary to perform an artificial visual inspection to correct the image quality.
Specifically, the extracted outline font is displayed on a display of a computer, and the image quality is corrected by correcting the outline on the screen using a pointing device such as a mouse.

【0003】この画質修正の作業が終了すると、次い
で、そのアウトラインフォントをペーパ等の校正出力物
に出力し、目視により人為的にそのアウトラインフォン
トが正しいか否かの検査を行なう。この検査作業によ
り、画質修正時における誤修正の箇所や、修正されてい
ない画質の悪い箇所を発見することができ、必要に応じ
て画質の修正作業に再度移される。
When the image quality correction operation is completed, the outline font is output to a proof output such as paper, and a visual inspection is performed to determine whether the outline font is correct. By this inspection work, it is possible to find an erroneous correction portion at the time of image quality correction and a portion of poor image quality that has not been corrected, and the process is shifted to the image quality correction operation again as necessary.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、前記従
来の技術では、アウトラインフォントの検査を人為的な
目視により行なっていることから、画質修正時における
誤修正の箇所を見落とすことがあった。特に大量のアウ
トラインフォントを目視検査する場合には、作業者の疲
労等から、上記見落としの発生率が格段に大きなものと
なり、さらには、作業効率が低下するといった問題も生
じた。
However, in the above-mentioned conventional technology, since the outline font is inspected by the naked eye, the erroneous correction at the time of the image quality correction may be overlooked. In particular, when visually inspecting a large number of outline fonts, the occurrence rate of the above-mentioned oversight becomes extremely large due to the fatigue of the worker and the like, and further, there is a problem that the working efficiency is reduced.

【0005】本発明の輪郭検査装置は、こうした問題点
に鑑みてなされたもので、人手による目視検査の作業に
換えて、誤って修正された輪郭を自動的に判別すること
ができ、延いては、作業効率の向上と検査精度の向上と
を図ることを目的とする。
[0005] The contour inspection apparatus of the present invention has been made in view of such a problem, and can automatically determine an erroneously corrected contour instead of a manual visual inspection operation. An object of the present invention is to improve work efficiency and inspection accuracy.

【0006】[0006]

【課題を解決するための手段】このような目的を達成す
べく、前記課題を解決するための手段として、以下に示
す構成を採った。即ち、本発明の輪郭検査装置は、画像
原稿を2値画像化した2値画像に基づいて作成される画
像の輪郭の良否を検査する輪郭検査装置であって、前記
2値画像を示す2値画像データを記憶する2値画像デー
タ記憶手段と、前記2値画像データにおいて2進数字の
一方の値で表現される領域の全領域に対する占有割合を
算出する第1の占有割合算出手段と、前記2値画像デー
タに基づいて前記画像の輪郭を示す輪郭データを生成す
る輪郭データ生成手段と、前記輪郭データを修正して修
正輪郭データを生成する修正輪郭データ生成手段と、前
記修正輪郭データにおいて前記一方の値に相当する領域
の全領域に対する占有割合を算出する第2の占有割合算
出手段と、前記第1の占有割合算出手段で算出された前
記2値画像データにおける占有割合と前記第2の占有割
合算出手段で算出された前記修正輪郭データにおける占
有割合とを比較し、その比較結果に応じて前記輪郭デー
タで示される輪郭の良否を判定する比較・判定手段とを
備えたことを、その要旨としている。
Means for Solving the Problems In order to achieve such an object, the following structure is adopted as means for solving the above-mentioned problems. That is, the contour inspection apparatus of the present invention is a contour inspection apparatus for inspecting the quality of an outline of an image created based on a binary image obtained by converting an image document into a binary image. Binary image data storage means for storing image data; first occupancy ratio calculation means for calculating an occupancy ratio of an area represented by one of binary numbers in the binary image data to an entire area; Contour data generating means for generating contour data indicating the contour of the image based on the binary image data; modified contour data generating means for modifying the contour data to generate modified contour data; Second occupancy ratio calculation means for calculating the occupancy ratio of the region corresponding to one value to the entire region, and occupancy ratio in the binary image data calculated by the first occupancy ratio calculation means Comparing / determining means for comparing the occupancy ratio in the corrected contour data calculated by the second occupancy ratio calculating means, and judging the quality of the contour indicated by the contour data in accordance with the comparison result. That is the gist.

【0007】[0007]

【作用】以上のように構成された本発明の輪郭検査装置
では、画像原稿を2値画像化した2値画像を示す2値画
像データを、2値画像データ記憶手段に記憶し、その2
値画像データにおいて2進数字の一方の値で表現される
領域の全領域に対する占有割合を、第1の占有割合算出
手段により算出する。次いで、前記2値画像に基づいて
作成される画像の輪郭を示す輪郭データを、輪郭データ
生成手段により生成し、その輪郭データを修正すること
で、修正輪郭データ生成手段により修正輪郭データを生
成し、その修正輪郭データにおいて前記一方の値に相当
する領域の全領域に対する占有割合を、第2の占有割合
算出手段により算出する。続いて、比較・判定手段によ
り、前記2値画像データにおける占有割合と前記修正輪
郭データにおける占有割合とを比較し、その比較結果に
応じて前記輪郭データで示される輪郭の良否を判定す
る。
In the contour inspection apparatus according to the present invention, the binary image data representing the binary image obtained by converting the image document into a binary image is stored in the binary image data storage means.
The occupation ratio of the region represented by one of the binary numbers in the value image data to the entire region is calculated by the first occupation ratio calculation means. Next, contour data indicating the contour of the image created based on the binary image is generated by the contour data generating means, and the contour data is corrected, whereby the corrected contour data is generated by the corrected contour data generating means. The occupation ratio of the region corresponding to the one value to the entire region in the corrected contour data is calculated by the second occupation ratio calculation means. Then, the occupation ratio in the binary image data is compared with the occupation ratio in the corrected contour data by a comparing / determining means, and the quality of the contour indicated by the contour data is determined according to the comparison result.

【0008】このため、画像原稿を2値画像化した2値
画像データに基づいて作成される画像の修正輪郭データ
が原画像としての上記2値画像データとかけ離れた形状
をもつ場合、比較・判定手段による、2値画像データと
修正輪郭データとにおける上記2つの占有割合の比較結
果は大きく相違することになり、前記修正輪郭データで
示される輪郭は不良であると判定される。即ち、原画像
から作成される画像の輪郭データが、その修正の際の修
正ミス(例えば、従来の技術で説明した人手による画質
修正の作業における誤修正)により変形された場合に
は、その輪郭は2値画像とかけ離れた形状を持ち、比較
・判定手段によりその輪郭は不良であると判定される。
For this reason, if the corrected contour data of the image created based on the binary image data obtained by converting the image document into a binary image has a shape far apart from the binary image data as the original image, the comparison / determination is performed. The result of the comparison between the two occupation ratios in the binary image data and the corrected contour data by the means is significantly different, and the contour indicated by the corrected contour data is determined to be defective. That is, if the contour data of the image created from the original image is deformed due to a correction mistake at the time of the correction (for example, an erroneous correction in a manual image quality correction operation described in the related art), the contour data Has a shape far apart from the binary image, and its outline is determined to be defective by the comparing / determining means.

【0009】[0009]

【実施例】以上説明した本発明の構成・作用を一層明ら
かにするために、以下本発明の好適な実施例について説
明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS In order to further clarify the structure and operation of the present invention described above, preferred embodiments of the present invention will be described below.

【0010】図1は本発明の一実施例としての輪郭検査
装置を具備する画像処理装置の概略構成を示すブロック
図である。同図に示すように、この画像処理装置は、C
PU1,ROM3,RAM5を備えた処理ユニット10
と、原稿OR上の画像をラスタデータとして読み込むイ
メージスキャナ12と、輪郭線抽出の指示やラスタデー
タの画面表示を行なう対話端末機14と、各種データを
格納する外部記憶装置としての磁気ディスク装置16と
から構成されている。
FIG. 1 is a block diagram showing a schematic configuration of an image processing apparatus having a contour inspection apparatus as one embodiment of the present invention. As shown in FIG.
Processing unit 10 provided with PU1, ROM3, RAM5
And an image scanner 12 for reading an image on the document OR as raster data, an interactive terminal 14 for instructing contour line extraction and displaying the raster data on a screen, and a magnetic disk device 16 as an external storage device for storing various data. It is composed of

【0011】ROM3に格納されたプログラムに従って
処理を行なうCPU1は、その処理により実現されるラ
スタ/ベクタ変換部1a,ベクタ/ラスタ変換部1bお
よび黒部割合演算部1cを備える。このCPU1は、コ
モンバス17を介して、イメージスキャナ12に直結さ
れた画像入力ポート20、対話端末機14に直結された
端末制御部22および磁気ディスク装置16に直結され
たディスク制御部24に接続されている。
The CPU 1 that performs processing according to the program stored in the ROM 3 includes a raster / vector conversion unit 1a, a vector / raster conversion unit 1b, and a black ratio calculation unit 1c realized by the processing. The CPU 1 is connected via a common bus 17 to an image input port 20 directly connected to the image scanner 12, a terminal control unit 22 directly connected to the interactive terminal 14, and a disk control unit 24 directly connected to the magnetic disk device 16. ing.

【0012】イメージスキャナ12は、原稿OR上の画
像を光学的にスキャンし白黒の2値情報として画像デー
タを読み取り、その2値情報をラスタ形式で表現して出
力するものである。なお、原稿ORは、文字(フォン
ト)が記入されたいわゆる文字原稿である。対話端末機
14は、各種処理を指示するキーボード14aおよびマ
ウス14bと、その処理結果を表示するCRTディスプ
レイ14cとを備えている。
The image scanner 12 optically scans an image on a document OR, reads image data as black and white binary information, and outputs the binary information in a raster format. The document OR is a so-called character document on which characters (fonts) are written. The interactive terminal 14 includes a keyboard 14a and a mouse 14b for instructing various processes, and a CRT display 14c for displaying the results of the processes.

【0013】次に、処理ユニット10が行なうアウトラ
インフォント作成処理ルーチンの詳細について、図2の
フローチャートに従って説明する。なお、この処理ルー
チンによれば、原稿ORに記入されたフォントの輪郭を
示すアウトラインフォントを作成するとともに、このア
ウトラインフォントの良否の検査も行う。
Next, the outline font creation processing routine performed by the processing unit 10 will be described in detail with reference to the flowchart of FIG. According to this processing routine, an outline font indicating the outline of the font written in the document OR is created, and the quality of the outline font is checked.

【0014】図2に示すように、処理ユニット10のC
PU1は、処理を開始すると、まず原稿ORに記入され
る画像を入力する処理を行なう(ステップS100)。
この画像入力は、イメージスキャナ12から読み取った
2値画像のラスタデータを画像入力ポート20を介して
取り込んで、RAM5の所定の領域に展開することより
行なわれる。次いで、この画像データ(原画像データ)
D0を磁気ディスク装置16の所定領域へ格納する処理
を行なう(ステップS110)。
As shown in FIG. 2, C of the processing unit 10
When the process is started, the PU 1 first performs a process of inputting an image to be written on the document OR (step S100).
This image input is performed by fetching raster data of a binary image read from the image scanner 12 through the image input port 20 and developing the raster data in a predetermined area of the RAM 5. Next, this image data (original image data)
A process of storing D0 in a predetermined area of the magnetic disk device 16 is performed (step S110).

【0015】続いて、ステップ110で格納された原画
像データD0を取り込んで、黒部割合演算部1cによ
り、原画像データD0の黒部割合Ra、すなわち原画像
データD0の全領域に対する黒部領域が占める割合を算
出する(ステップS120)。なお、この場合、黒部割
合Raは、原画像データD0がラスタ形式で表現されて
いるので値1(黒)で表されるビット(画素)数と全ビ
ット数とにより求められる。
Subsequently, the original image data D0 stored in step 110 is fetched, and the black portion ratio Ra of the original image data D0, that is, the ratio of the black portion to the entire region of the original image data D0 is calculated by the black portion ratio calculating section 1c. Is calculated (step S120). In this case, the black portion ratio Ra is obtained from the number of bits (pixels) represented by the value 1 (black) and the total number of bits since the original image data D0 is expressed in a raster format.

【0016】その後、ステップ110で格納された原画
像データD0を、ラスタ/ベクタ変換部1aにより、ラ
スタ形式のデータからベクトル形式のデータに変換する
(ステップS130)。このラスタ/ベクタ変換部1a
は、ラスタデータとして表現される画像上のフォントの
境界部を自動追跡することでフォントの輪郭(アウトラ
イン)をベクトルデータとして出力するもので、輪郭デ
ータD1が作成される。次いで、この輪郭データD1を
磁気ディスク装置16の所定領域へ格納する処理を行な
う(ステップS140)。
Thereafter, the original image data D0 stored in step 110 is converted from raster format data to vector format data by the raster / vector converter 1a (step S130). This raster / vector converter 1a
Outputs the outline (outline) of the font as vector data by automatically tracking the boundary of the font on the image expressed as raster data, and the outline data D1 is created. Next, a process of storing the contour data D1 in a predetermined area of the magnetic disk device 16 is performed (step S140).

【0017】続いて、ステップS140で磁気ディスク
装置16に格納された輪郭データD1の画質を修正する
輪郭修正作業を行なう(ステップS150)。この輪郭
修正作業は、従来の技術で説明したように、輪郭データ
D1をCRTディスプレイ14cに表示し、マウス14
bを用いて人為的に画面上で輪郭の修正を行なうもので
ある。こうして修正が施された修正輪郭データD2が作
成される。次いで、この修正輪郭データD2を磁気ディ
スク装置16の所定領域へ格納する処理を行なう(ステ
ップS160)。
Subsequently, in step S140, an outline correction operation for correcting the image quality of the outline data D1 stored in the magnetic disk device 16 is performed (step S150). This contour correction work is performed by displaying the contour data D1 on the CRT display 14c and
The contour is artificially corrected on the screen using b. The corrected contour data D2 thus corrected is created. Next, a process of storing the corrected contour data D2 in a predetermined area of the magnetic disk device 16 is performed (step S160).

【0018】続いて、修正輪郭データD2における黒部
割合Rbを検出するためにステップ160で格納された
修正輪郭データD2を、ベクタ/ラスタ変換部1bによ
り、ベクトル形式のデータからラスタ形式のデータに変
換する(ステップS170)。このベクタ/ラスタ変換
部1bは、修正輪郭データD2で示される輪郭を境界部
とするフォントをラスタデータとして表現するもので、
そのフォントを示す2値のラスタ形式の新画像データD
3が作成される。
Subsequently, the corrected contour data D2 stored in step 160 for detecting the black portion ratio Rb in the corrected contour data D2 is converted from vector format data to raster format data by the vector / raster converter 1b. (Step S170). The vector / raster conversion unit 1b expresses, as raster data, a font having the outline indicated by the modified outline data D2 as a boundary.
New image data D in binary raster format indicating the font
3 is created.

【0019】続いて、その新画像データD3を取り込ん
で、黒部割合演算部1cにより、新画像データD3の黒
部割合Rb、すなわち新画像データD3の全領域に対す
る黒部領域が占める割合を算出する(ステップS18
0)。なお、この場合もステップS120と同様に黒部
割合Rbは、新画像データD3における値1(黒)で表
されるビット数と全ビット数により求められる。
Subsequently, the new image data D3 is fetched, and the black portion ratio calculation section 1c calculates the black portion ratio Rb of the new image data D3, that is, the ratio of the black region to the entire region of the new image data D3 (step). S18
0). In this case, as in step S120, the black portion ratio Rb is obtained from the number of bits represented by the value 1 (black) and the total number of bits in the new image data D3.

【0020】その後、ステップS120で算出された原
画像データD0の黒部割合RaからステップS180で
算出された新画像データD3の黒部割合Rbを減算した
値の絶対値が、所定値R0(本実施例では、0.5
[%])以下であるか否かを判定する(ステップS19
0)。ここで、|Ra−Rb|≦R0と判定されると、
原画像データD0の黒部割合Raに対する新画像データ
D3の黒部割合Rbの偏差が許容範囲内であるとして、
処理をステップS200に進める。
Thereafter, the absolute value of the value obtained by subtracting the black portion ratio Rb of the new image data D3 calculated in step S180 from the black portion ratio Ra of the original image data D0 calculated in step S120 is a predetermined value R0 (this embodiment). Then, 0.5
[%]) Is determined (step S19).
0). Here, when it is determined that | Ra−Rb | ≦ R0,
Assuming that the deviation of the black portion ratio Rb of the new image data D3 from the black portion ratio Ra of the original image data D0 is within the allowable range,
The process proceeds to step S200.

【0021】ステップS200では、CRTディスプレ
イ14cに「検査結果=良」と表示する。その後、ステ
ップS160で磁気ディスク装置16に格納された修正
輪郭データD2をアウトラインフォントのデータとして
外部に出力する処理を行なう(ステップS210)。こ
こでは、修正輪郭データD2をアウトラインフォントと
して新たなファイル名を付けて磁気ディスク装置16に
格納するようにしてもよく、また、図示しないプリンタ
装置に印刷するようにしてもよい。その後、「エンド」
に抜けて本ルーチンの処理を終了する。
In step S200, "test result = good" is displayed on the CRT display 14c. Thereafter, a process of outputting the modified contour data D2 stored in the magnetic disk device 16 to the outside as outline font data in step S160 is performed (step S210). Here, the corrected contour data D2 may be stored in the magnetic disk device 16 with a new file name as an outline font, or may be printed on a printer device (not shown). Then "End"
To end the processing of this routine.

【0022】一方、ステップS190で、|Ra−Rb
|>R0と判定されると、原画像データD0の黒部割合
Raに対する新画像データD3の黒部割合Rbの偏差が
許容範囲外であるとして、CRTディスプレイ14cに
「検査結果=不良」と表示し(ステップS220)、そ
の後、処理をステップS150に戻し、輪郭修正作業が
再度なされるようにする。なお、この際の輪郭修正作業
においては、既に修正された後の修正輪郭データD2に
対して再度、修正を行なうようにしてもよく、また、ス
テップS130でラスタ/ベクタ変換された後の未だ修
正がなされていない輪郭データD1に対して修正を行な
うようにしてもよい。
On the other hand, in step S190, | Ra-Rb
If it is determined that |> R0, it is determined that the deviation of the black portion ratio Rb of the new image data D3 from the black portion ratio Ra of the original image data D0 is out of the allowable range, and "Inspection result = bad" is displayed on the CRT display 14c ( (Step S220) Then, the process returns to step S150, and the contour correction work is performed again. In the contour correction work at this time, the correction may be performed again on the corrected contour data D2 after the correction, and the correction after the raster / vector conversion in the step S130 is still performed. May be corrected for the contour data D1 that has not been subjected to the correction.

【0023】以上のように構成されたアウトラインフォ
ント作成処理ルーチンに従う処理により原稿OR上に記
入されたフォントに基づいてどのようにアウトラインフ
ォントが作成されるかを、具体例を挙げて次に説明す
る。
Next, how an outline font is created based on the font written on the original OR by the processing according to the outline font creation processing routine configured as described above will be described with reference to a specific example. .

【0024】いま、原稿ORには図3の(a)に示すフ
ォントが記入されているものとする。まず、ステップS
100のイメージスキャナ12による画像入力により、
図3の(b)に示すラスタ形式の原画像データD0が作
成される。なお、ここでは説明を簡易にするため、原画
像データD0は低画素数で表現しているが、実際の原画
像データD0はより高解像である。次いで、ステップS
120の黒部割合算出により、原画像データD0におけ
る値1で表されるビット数の全ビットに対する割合Ra
が算出される。原画像データD0においては、図3の
(b)に示すように全体面積が64に対して黒点数22
であるから、黒部割合Raは22÷64で34[%]と
なる。
It is assumed that the font shown in FIG. 3A is entered in the original OR. First, step S
By image input by 100 image scanners 12,
The raster-format original image data D0 shown in FIG. 3B is created. Here, for simplicity of description, the original image data D0 is represented by a low number of pixels, but the actual original image data D0 has a higher resolution. Then, step S
By calculating the black portion ratio of 120, the ratio Ra of the number of bits represented by the value 1 in the original image data D0 to all the bits is Ra
Is calculated. In the original image data D0, as shown in FIG.
Therefore, the black portion ratio Ra is 34 [%] when 22 ÷ 64.

【0025】続いて、ステップS130のラスタ/ベク
タ変換により、図3の(c)に示す輪郭データD1が自
動生成される。続いて、ステップS150の輪郭修正作
業により、その輪郭の修正が人為的に行なわれる。この
結果、図3の(d)に示す修正輪郭データD2が作成さ
れる。なお、この輪郭修正作業においては、作業者の誤
操作によって図3の(d)に示すように内側の輪郭L1
が消去されたものとする。
Subsequently, the outline data D1 shown in FIG. 3C is automatically generated by the raster / vector conversion in step S130. Subsequently, the contour is corrected artificially by the contour correcting operation of step S150. As a result, corrected contour data D2 shown in FIG. 3D is created. In this contour correction work, the inner contour L1 as shown in FIG.
Has been deleted.

【0026】その後、ステップS170のベクタ/ラス
タ変換により、図3の(d)に示す修正輪郭データD2
から図3の(e)に示すラスタ形式の新画像データD3
が自動生成される。続いて、ステップS180の黒部割
合算出により、新画像データD3における値1で表され
るビット数の全ビットに対する割合Rbが算出される。
新画像データD3においては図3の(e)に示すように
全体面積が64に対して黒点数32であるから、黒部割
合Rbは32÷64で50[%]となる。
Thereafter, the modified contour data D2 shown in FIG.
To new raster image data D3 shown in FIG.
Is automatically generated. Subsequently, the ratio Rb of the number of bits represented by the value 1 in the new image data D3 to all bits is calculated by the black portion ratio calculation in step S180.
In the new image data D3, as shown in FIG. 3 (e), the total area is 64 and the number of black spots is 32, so the black portion ratio Rb is 32 ÷ 64 and 50%.

【0027】続いて、ステップS190の比較処理によ
り、前述した両黒部割合Ra,Rbの差は50−34で
16[%]となり、この値が所定値R0以下であるか否
かを判定する。なお、所定値R0の値は前述したように
実際は0.5[%]であるが、この説明においては当初
の原画像データD0が説明の簡易化のために低画素数で
表現されていることから、例えば、5[%]をとるもの
とする。両黒部割合Ra,Rbの差は16[%]で、5
[%]以上であることから、この差は許容範囲外である
として、次いで、ステップS220により、CRTディ
スプレイ14cに「検査結果=不良」と表示される。こ
うして、図3の(d)に示す修正輪郭データD2は不良
であることを作業者に報知し、それと共に再修正が必要
であることを促す。
Subsequently, by the comparison processing in step S190, the difference between the two black portion ratios Ra and Rb is 16 [%] of 50-34, and it is determined whether or not this value is equal to or less than a predetermined value R0. The value of the predetermined value R0 is actually 0.5 [%] as described above. However, in this description, the original image data D0 is represented by a small number of pixels for simplification of the description. Therefore, for example, 5% is taken. The difference between the black portions Ra and Rb is 16 [%],
Since the difference is not less than [%], it is determined that the difference is out of the allowable range, and then, in step S220, “inspection result = defective” is displayed on the CRT display 14c. In this way, the operator is notified that the corrected contour data D2 shown in FIG. 3D is defective, and also prompts that re-correction is necessary.

【0028】一方、両黒部割合Ra,Rbの差が所定値
R0以下となると、ステップS200により、CRTデ
ィスプレイ14cに「検査結果=良」と表示され、続く
ステップS210により、図3の(d)に示す修正輪郭
データD2はアウトラインフォントとしてプリンタ装置
等に出力される。
On the other hand, when the difference between the two black portion ratios Ra and Rb becomes equal to or less than the predetermined value R0, "Inspection result = good" is displayed on the CRT display 14c in step S200, and in the subsequent step S210, FIG. Is output to a printer or the like as an outline font.

【0029】以上詳述したように、本実施例の輪郭検査
装置を具備する画像処理装置では、輪郭修正作業を経て
作成されるアウトラインフォント(修正輪郭データD
2)の誤修正による不良を、人手による目視検査の作業
に換えて、自動的に判別することができる。この結果、
検査の作業効率の向上と検査精度の向上とを図ることが
できる。
As described in detail above, in the image processing apparatus provided with the contour inspection apparatus of this embodiment, the outline font (corrected contour data D
The defect due to the erroneous correction of 2) can be automatically determined instead of the manual inspection work. As a result,
It is possible to improve the inspection work efficiency and the inspection accuracy.

【0030】なお、この実施例では、第1の占有割合算
出手段と第2の占有割合算出手段として、黒部割合演算
部1cを用いて値1のビットの占有割合を算出していた
が、これに換えて、値0のビットの占有割合を算出する
白部割合演算部を用いた構成としてもよい。
In this embodiment, as the first occupation ratio calculation means and the second occupation ratio calculation means, the occupation ratio of the bit having the value 1 is calculated by using the black portion calculation unit 1c. In place of the above, a configuration using a white portion ratio calculation unit that calculates the occupation ratio of the bit having the value 0 may be used.

【0031】また、この実施例では、修正輪郭データに
おける黒部割合検出のため、ベクトルデータ(修正輪郭
データ)をラスタデータ(新画像データ)に変換した
が、ベクトルデータより直接黒部割合Rbを求めてもよ
い。
In this embodiment, the vector data (corrected contour data) is converted into raster data (new image data) for detecting the black portion ratio in the corrected contour data. However, the black portion ratio Rb is directly obtained from the vector data. Is also good.

【0032】以上本発明の一実施例について説明した
が、本発明はこうした実施例に何等限定されるものでは
なく、例えば、アウトラインフォントに換えて図形の輪
郭を検査する構成等、本発明の要旨を逸脱しない範囲に
おいて、種々なる態様で実施し得ることは勿論である。
Although one embodiment of the present invention has been described above, the present invention is not limited to such an embodiment, and the gist of the present invention is, for example, a configuration for inspecting the outline of a figure instead of an outline font. Of course, the present invention can be implemented in various modes without departing from the scope of the present invention.

【0033】[0033]

【発明の効果】以上説明したように本発明の輪郭検査装
置では、画像原稿を2値画像化した2値画像に基づいて
作成される画像の輪郭データの修正が誤っているといっ
た不良を、人手による目視検査の作業に換えて、自動的
に判別することができ、延いては、作業効率の向上と検
査精度の向上とを図ることができる。
As described above, in the contour inspection apparatus of the present invention, the defect that the contour data of the image created on the basis of the binary image obtained by converting the image document into a binary image is erroneously corrected is manually corrected. Instead of the visual inspection operation, the determination can be made automatically, so that the working efficiency can be improved and the inspection accuracy can be improved.

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

【図1】本発明の一実施例としての輪郭検査装置を具備
する画像処理装置の概略構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a schematic configuration of an image processing apparatus including a contour inspection apparatus as one embodiment of the present invention.

【図2】処理ユニット10にて行なわれるアウトライン
フォント作成処理ルーチンを示すフローチャートであ
る。
FIG. 2 is a flowchart showing an outline font creation processing routine performed by a processing unit 10;

【図3】アウトラインフォント作成処理ルーチンに従う
処理による画像データの変化を具体例を掲げて示す説明
図である。
FIG. 3 is an explanatory diagram showing a specific example of a change in image data due to processing according to an outline font creation processing routine.

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

1…CPU 1a…ラスタ/ベクタ変換部 1b…ベクタ/ラスタ変換部 1c…黒部割合演算部 3…ROM 5…RAM 10…処理ユニット 12…イメージスキャナ 14…対話端末機 14a…キーボード 14b…マウス 14c…CRTディスプレイ 16…磁気ディスク装置 D0…原画像データ D1…輪郭データ D2…修正輪郭データ(アウトラインフォント) D3…新画像データ OR…原稿 Ra,Rb…黒部割合 DESCRIPTION OF SYMBOLS 1 ... CPU 1a ... Raster / vector conversion part 1b ... Vector / raster conversion part 1c ... Black ratio calculation part 3 ... ROM 5 ... RAM 10 ... Processing unit 12 ... Image scanner 14 ... Interactive terminal 14a ... Keyboard 14b ... Mouse 14c ... CRT display 16: Magnetic disk drive D0: Original image data D1: Outline data D2: Corrected outline data (outline font) D3: New image data OR: Original Ra, Rb: Black portion ratio

───────────────────────────────────────────────────── フロントページの続き (72)発明者 茶谷 博美 京都市上京区堀川通寺之内上る4丁目天 神北町1番地の1 大日本スクリーン製 造株式会社内 (72)発明者 豊泉 昌行 京都市上京区堀川通寺之内上る4丁目天 神北町1番地の1 大日本スクリーン製 造株式会社内 (58)調査した分野(Int.Cl.6,DB名) G06T 7/00 G06T 1/00 G09G 5/24 ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Hiromi Chatani 4-chome Ten-chome, Horikawa-dori-Terauchi, Kamigyo-ku, Kyoto 1 Dainippon Screen Mfg. Co., Ltd. (72) Inventor Masayuki Toyoizumi Kyoto 1 Dainippon screen Manufacturing Co., Ltd. in the 4-chome heaven Kamikita-cho, one address to climb inside Noriyuki Kamigyo-ku Horikawa temple (58) investigated the field (Int.Cl. 6, DB name) G06T 7/00 G06T 1/00 G09G 5/24

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 画像原稿を2値画像化した2値画像に基
づいて作成される画像の輪郭の良否を検査する輪郭検査
装置であって、 前記2値画像を示す2値画像データを記憶する2値画像
データ記憶手段と、 前記2値画像データにおいて2進数字の一方の値で表現
される領域の全領域に対する占有割合を算出する第1の
占有割合算出手段と、 前記2値画像データに基づいて前記画像の輪郭を示す輪
郭データを生成する輪郭データ生成手段と、 前記輪郭データを修正して修正輪郭データを生成する修
正輪郭データ生成手段と、 前記修正輪郭データにおいて前記一方の値に相当する領
域の全領域に対する占有割合を算出する第2の占有割合
算出手段と、 前記第1の占有割合算出手段で算出された前記2値画像
データにおける占有割合と前記第2の占有割合算出手段
で算出された前記修正輪郭データにおける占有割合とを
比較し、その比較結果に応じて前記輪郭データで示され
る輪郭の良否を判定する比較・判定手段とを備えた輪郭
検査装置。
1. An outline inspection apparatus for inspecting the quality of an outline of an image created based on a binary image obtained by converting an image document into a binary image, and storing binary image data indicating the binary image. Binary image data storage means; first occupancy ratio calculation means for calculating the occupancy ratio of the region represented by one of the binary digits in the binary image data to the entire region; Contour data generating means for generating contour data indicating the contour of the image based on the corrected contour data; and correcting the contour data to generate corrected contour data. A second occupancy ratio calculating unit for calculating an occupancy ratio of the region to be occupied in the entire region; A contour inspection device comprising: a comparison / judgment means for comparing the occupation ratio in the corrected contour data calculated by the occupancy calculating means and judging the quality of the contour indicated by the contour data according to the comparison result.
JP4353553A 1992-12-14 1992-12-14 Contour inspection device Expired - Fee Related JP2875446B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4353553A JP2875446B2 (en) 1992-12-14 1992-12-14 Contour inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4353553A JP2875446B2 (en) 1992-12-14 1992-12-14 Contour inspection device

Publications (2)

Publication Number Publication Date
JPH06180745A JPH06180745A (en) 1994-06-28
JP2875446B2 true JP2875446B2 (en) 1999-03-31

Family

ID=18431626

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4353553A Expired - Fee Related JP2875446B2 (en) 1992-12-14 1992-12-14 Contour inspection device

Country Status (1)

Country Link
JP (1) JP2875446B2 (en)

Also Published As

Publication number Publication date
JPH06180745A (en) 1994-06-28

Similar Documents

Publication Publication Date Title
US8619278B2 (en) Printed matter examination apparatus, printed matter examination method, and printed matter examination system
JP3773642B2 (en) Image processing apparatus and image forming apparatus
US20040155881A1 (en) Image filling method, apparatus and computer readable medium for reducing filling process in processing animation
JP3142550B2 (en) Graphic processing unit
US6373602B1 (en) Facsimile transmission of highlight information
US6891970B1 (en) Image processing apparatus and method
JPH07322057A (en) Increase of resolution of binary input picture and its increasing device together with improvement of appearance ofbinary input picture
JPH1063249A (en) Character pattern generator
JP6846232B2 (en) Print data processing method, print data processing device, and print data processing program
US5649028A (en) Connect-the-dots drawing production device
JP2875446B2 (en) Contour inspection device
JPH09128429A (en) Dimensional numerical value recognition method and apparatus thereof
EP0415742A2 (en) Image processing apparatus
JP2903917B2 (en) Image editing processor
JP4958868B2 (en) Document feature extraction apparatus and method
JP4858883B2 (en) Vector image drawing apparatus, vector image drawing method and program
JPH10154234A (en) Original film proof reading device in digital printing
US5291308A (en) Image processing apparatus using tonal degree conversion
JP2819961B2 (en) Printing control device
JPH0490083A (en) character recognition device
JP3270551B2 (en) Character recognition device and character recognition method
JP2732752B2 (en) Fuzzy pattern recognition device
JP2906413B2 (en) Image processing apparatus and font file management method thereof
JP2852859B2 (en) Line break processing method
JP4230478B2 (en) Document processing apparatus, method and program

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees