JPH1097664A - Region extraction method - Google Patents

Region extraction method

Info

Publication number
JPH1097664A
JPH1097664A JP8248332A JP24833296A JPH1097664A JP H1097664 A JPH1097664 A JP H1097664A JP 8248332 A JP8248332 A JP 8248332A JP 24833296 A JP24833296 A JP 24833296A JP H1097664 A JPH1097664 A JP H1097664A
Authority
JP
Japan
Prior art keywords
block
main scanning
projection histogram
extracting
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP8248332A
Other languages
Japanese (ja)
Other versions
JP3556408B2 (en
Inventor
Hiroyoshi Dobashi
浩慶 土橋
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP24833296A priority Critical patent/JP3556408B2/en
Publication of JPH1097664A publication Critical patent/JPH1097664A/en
Application granted granted Critical
Publication of JP3556408B2 publication Critical patent/JP3556408B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Inspection Of Paper Currency And Valuable Securities (AREA)

Abstract

PROBLEM TO BE SOLVED: To reduce influences caused by the conveyance nonuniformity, inclination or lateral deviation of a printed matter and to highly accurately extract a target area by calculating plural blocks having specified width in the main scanning direction of image data of the printed matter and extracting a specified area, namely, a white area in the image of the printed matter while using a shading histogram calculated in the main scanning direction for each block. SOLUTION: The image data of all the lines on one side of a printed matter P are read by an image input part 101, digitized by an A/D converting part 102 and binarized with a fixed threshold value by a binarizing processing part 103. Then, the respective blocks having specified main scanning width are calculated based on the binarized image data by a block calculating part 104, and the shading histograms in the main scanning (lateral) direction and subscanning (longitudinal) direction are calculated for each block by a shading histogram calculating part 105. Further, the area except for patterns (graphics) or characters (white area) is extracted by an area extracting part 106 while using the shading histograms.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は印刷物上の特定領域
を抽出する方法に関し、特に文字や模様等の位置が予め
分かっている印刷物の印刷欠陥や汚れを検出するために
用いられる領域抽出方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for extracting a specific area on a printed matter, and more particularly, to an area extracting method used for detecting a print defect or a stain on a printed matter in which the position of a character or a pattern is known in advance. .

【0002】[0002]

【従来の技術】従来の領域抽出方法は、印刷物の両端
(左右上下)を基準に、そこからの距離を各領域ごとに
予め規定しておき、その距離を用いて目的とする領域を
抽出している。この場合、印刷物の両端と背景とのコン
トラストを大きくして、印刷物の両端を抽出しやすいよ
うにしている。
2. Description of the Related Art In a conventional area extraction method, a distance from each end is defined in advance with respect to both ends (left, right, up and down) of a printed matter, and a target area is extracted using the distance. ing. In this case, the contrast between both ends of the printed matter and the background is increased so that both ends of the printed matter can be easily extracted.

【0003】[0003]

【発明が解決しようとする課題】従来の方法において
は、印刷物の搬送ムラや折れ、傾き、横ずれ及び汚れに
より、印刷物の両端の位置がずれ、その結果目的とする
領域の印刷物の端からの距離がずれてしまい、目的の領
域を正確に抽出することができないという問題点があっ
た。
In the conventional method, the positions of both ends of the printed material are shifted due to uneven transport, folding, inclination, lateral displacement and dirt of the printed material. As a result, the distance of the target area from the edge of the printed material is reduced. And there is a problem that a target area cannot be accurately extracted.

【0004】従って本発明は印刷物の搬送ムラや傾きや
横ずれによる影響を低減し、印刷物の上下左右の端のみ
を基準にそこからの距離で抽出したい領域を抽出する従
来方法に比べて、高精度に目的の領域を抽出することが
できる領域抽出方法を提供することを目的とする。
Accordingly, the present invention reduces the influence of unevenness of conveyance, inclination and lateral displacement of a printed matter, and achieves higher accuracy than a conventional method of extracting an area to be extracted at a distance from only the upper, lower, left and right edges of the printed matter. It is another object of the present invention to provide a region extraction method capable of extracting a target region.

【0005】[0005]

【課題を解決するための手段】上記課題を解決するため
に本発明による領域抽出方法は、印刷物の画像データを
もとに、主走査方向の特定幅を持った複数のブロックを
算出し、各ブロックごとに主走査方向の射影ヒストグラ
ムを算出し、この射影ヒストグラムを用いて印刷物画像
内の特定領域、即ち白領域を抽出する。
In order to solve the above-mentioned problems, a region extracting method according to the present invention calculates a plurality of blocks having a specific width in the main scanning direction based on image data of a printed material, and calculates each block. A projection histogram in the main scanning direction is calculated for each block, and a specific area, that is, a white area in the print image is extracted using the projection histogram.

【0006】更に、本発明の領域抽出方法は、対象とな
る印刷物の特定領域を抽出する方法において、前記印刷
物の画像データを入力する画像入力ステップと、前記画
像入力ステップで得られた画像データをもとに、特定の
主走査幅を持った複数のブロックを算出するブロック算
出ステップと、前記ブロック算出ステップより得られた
ブロックごとに主走査方向の射影ヒストグラムを算出す
る射影ヒストグラム算出ステップと、前記射影ヒストグ
ラム算出ステップより得られた射影ヒストグラムを用い
て前記特定領域を抽出する領域抽出ステップとを具備し
たことを特徴とする。
Further, the area extracting method according to the present invention is a method for extracting a specific area of a target printed matter, comprising: an image inputting step of inputting image data of the printed matter; A block calculation step of calculating a plurality of blocks having a specific main scanning width, a projection histogram calculation step of calculating a projection histogram in the main scanning direction for each block obtained from the block calculation step, An area extracting step of extracting the specific area using the projection histogram obtained from the projection histogram calculating step.

【0007】又、本発明の領域抽出方法は、対象となる
印刷物の特定領域を抽出する方法において、前記印刷物
の画像データを入力する画像入力ステップと、前記画像
入力ステップで得られた画像データをもとに、特定の主
走査幅を持ったブロックをオーパーラップさせたブロッ
クを算出するオーバーラップブロック算出ステップと、
前記オーパーラップブロック算出ステップより得られた
ブロックごとに主走査方向の射影ヒストグフムを算出す
る射影ヒストダラム算出ステップと、前記射影ヒストグ
ラム算出ステップより得られた射影ヒストグラムを用い
て前記特定領域を抽出する領域抽出ステップとを具備し
たことを持徴とする。
According to a second aspect of the present invention, in the method for extracting a specific area of a target printed matter, an image inputting step of inputting image data of the printed matter, and an image data obtained in the image inputting step are performed. An overlap block calculation step of calculating a block in which a block having a specific main scanning width is overlapped,
A projection histogram calculation step for calculating a projection histogram in the main scanning direction for each block obtained from the overlap block calculation step; and an area extraction for extracting the specific area using the projection histogram obtained from the projection histogram calculation step And the step is provided.

【0008】又、本発明の領域抽出方法は、対象となる
印刷物の特定領域を抽出する方法において、前記印刷物
の画像データを入力する画像入力ステップと、予め分か
っている模様の主走査幅を辞書として登録する主走査幅
記億ステップと、前記画像入力ステップで得られた画像
データをもとに、前記主走査幅記億ステップにより予め
分かっている模様の主走査幅に合わせたブロックを算出
する可変ブロック算出ステップと、前記可変ブロック算
出ステップより得られたブロックごとに主走査方向の射
影ヒストグラムを算出する射影ヒストグラム算出ステッ
プと、前記射影ヒストグラム算出ステップより得られた
射影ヒストグラムを用いて前記特定領域を抽出する領域
抽出ステップとを具備したことを特徴とする。
According to a second aspect of the present invention, there is provided a method for extracting a specific area of a target printed matter, comprising the steps of: inputting image data of the printed matter; Based on the main scanning width storage step to be registered as and the image data obtained in the image input step, a block corresponding to the main scanning width of the pattern known in advance by the main scanning width storage step is calculated. A variable block calculation step, a projection histogram calculation step of calculating a projection histogram in the main scanning direction for each block obtained from the variable block calculation step, and the specific area using the projection histogram obtained from the projection histogram calculation step. And an area extraction step of extracting

【0009】又、本発明の領域抽出方法は、対象となる
印刷物の特定領域を抽出する方法において、前記印刷物
の画像データを入力する画像入力ステップと、前記画像
入力ステップで得られた画像データをもとに、ある特定
の主走査幅を持ったブロックを算出するブロック算出ス
テップと、予め分かっている模様の主走査幅を辞書とし
て登録する主走査幅記億ステップと、前記主走査幅記億
ステップより、ある特定のブロックは、前記ブロック算
出ステップより得られたブロックごとに、主走査方向の
射影ヒストグラムを算出し、別のブロックでは、前記ブ
ロック算出ステップより得られたブロックを、そのブロ
ックに存在する模様の主走査幅に合わせたブロックに細
分割し、主走査方向の射影ヒストグラムを算出する射影
ヒストグラム算出ステップと、前記射影ヒストグラム算
出ステップより得られた射影ヒストグラムを用いて前記
特定領域を抽出する領域抽出ステップとを具備したこと
を特徴とする。
In the method for extracting a specific region of a target printed matter, an image inputting step for inputting image data of the printed matter, and an image data obtained in the image inputting step may be performed. A block calculation step of calculating a block having a specific main scanning width, a main scanning width storage step of registering a main scanning width of a known pattern as a dictionary, and the main scanning width storage step. From the step, for a specific block, a projection histogram in the main scanning direction is calculated for each block obtained in the block calculation step, and in another block, the block obtained in the block calculation step is added to the block. Projection histogram calculation that divides the existing pattern into blocks according to the main scanning width and calculates the projection histogram in the main scanning direction And steps, characterized by comprising a region extraction step of extracting the specific region using projection histograms obtained from the projection histogram calculation step.

【0010】更に本発明による領域抽出方法の前記ブロ
ック算出ステップは、前記画像入力ステップで得られた
画像データを2値化し、黒画素及び白画素を区別する2
値化ステップを含み、射影ヒストグラム算出ステップ
は、白画素と黒画素が混在する領域について、更に副走
査方向の射影ヒストグラムを算出する副走査方向射影ヒ
ストグラム算出ステップを含み、前記領域抽出ステップ
は前記副走査方向の射影ヒストグラムを用いて前記特定
領域を抽出するステップを含むことを特徴とする。
Further, in the block calculation step of the region extraction method according to the present invention, the image data obtained in the image input step is binarized to distinguish between black pixels and white pixels.
The projection histogram calculating step includes a sub-scanning direction projection histogram calculating step of calculating a projection histogram in the sub-scanning direction for an area where white pixels and black pixels coexist. Extracting a specific region using a projection histogram in a scanning direction.

【0011】又、本発明による領域抽出方法の前記領域
抽出ステップは、前記射影ヒストグラム内の白画素と黒
画素が混在する領域について、黒画素の画素数が所定値
以下の領域を前記特定領域として抽出するステップを含
むことを特徴とする。
In the area extracting step of the area extracting method according to the present invention, in the area where white pixels and black pixels are mixed in the projection histogram, an area where the number of black pixels is equal to or less than a predetermined value is defined as the specific area. The method includes the step of extracting.

【0012】[0012]

【発明の実施の形態】以下、印刷物の特定領域を抽出す
る本発明による領域抽出方法の実施の形態を図面を参照
して説明する。図1は、本発明の第1の実施例に係わる
領域抽出システムのブロック図である。また、図2は、
本発明の実施例に係わる領域抽出システムの処埋方法を
示すフローチャートである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of an area extracting method according to the present invention for extracting a specific area of a printed matter will be described below with reference to the drawings. FIG. 1 is a block diagram of an area extraction system according to the first embodiment of the present invention. Also, FIG.
5 is a flowchart illustrating a processing method of the region extraction system according to the embodiment of the present invention.

【0013】印刷物Pは、ラインセンサなどの画像入力
部101により、例えば印刷物の一方の面の全ラインの
画像データが読み取られ、読み取られた画像データ(ア
ナログ信号)は、AD変換部102によりデジタル化さ
れ、さらに2値化処理部103により固定閾値て2値化
される。2値化された画像データをもとに、ブロック算
出部104により、ある特定の主走査幅を持った各ブロ
ックを算出し、算出されたブロックをもとに、射影ヒス
トグラム算出部105により、ブロックごとに主走査方
向(以下、横方向)及び副走査方向(以下、縦方向)の
射影ヒストグラムを算出する。さらに、領域抽出部10
6により、射影ヒストグラムを用いて模様(図形)や文
字以外の領域を抽出する。この場合、抽出される領域は
白領域である。印刷物上の予め分かっている白領域と、
抽出された白領域が比較され、白領域中の汚れや印刷欠
陥等が後の処理で検出されるが、本発明は白領域の抽出
を目的とする。
For a printed matter P, for example, image data of all lines on one side of the printed matter is read by an image input unit 101 such as a line sensor, and the read image data (analog signal) is digitally converted by an AD conversion unit 102. And further binarized by the binarization processing unit 103 using a fixed threshold. Based on the binarized image data, each block having a specific main scanning width is calculated by the block calculating unit 104, and based on the calculated block, the block is calculated by the projection histogram calculating unit 105. The projection histograms in the main scanning direction (hereinafter, horizontal direction) and the sub-scanning direction (hereinafter, vertical direction) are calculated for each of them. Further, the region extracting unit 10
In step 6, regions other than patterns (graphics) and characters are extracted using the projection histogram. In this case, the region to be extracted is a white region. A known white area on the print,
The extracted white areas are compared, and stains, print defects, and the like in the white areas are detected in a later process. However, the present invention aims to extract white areas.

【0014】以下、各処理部を詳細に説明する。画像入
力部101は、印刷物全面の画像データをアナログ信号
として収集する。ここでは、印刷物を搬送させて画像デ
ータを読み取る場合を例に説明するが、受光部を走査さ
せて読み取る場合も同様である。
Hereinafter, each processing unit will be described in detail. The image input unit 101 collects image data of the entire printed matter as an analog signal. Here, a case where the printed matter is transported to read the image data will be described as an example, but the same applies to a case where the light receiving unit is scanned and read.

【0015】図3は、画像入力部101の構成を示して
いる。図3のように、画像入力部101は、受光部20
1、照明用光源202、基準板203から構成され、そ
れぞれ図3に示す位置に配置されている。受光部201
には、印刷物Pから垂直に反射光が入力されるか、又
は、光源202が印刷物Pの下側に配置した構成の場合
は、受光部201には透過光が入力される。照明用光源
202は、印刷物Pと受光部201を結ぶ線Lからの角
度が、0゜、もしくは、90゜に近くなることを避ける
ように設け、例えば、角度30゜〜60゜の間に設置す
る。図3は、搬送方向に対して進行方向から照明する場
合を図示してあるが、後方から照明してもよい。
FIG. 3 shows the configuration of the image input unit 101. As shown in FIG. 3, the image input unit 101 includes the light receiving unit 20.
1, a light source 202 for illumination, and a reference plate 203, which are arranged at the positions shown in FIG. Light receiving unit 201
, The reflected light is input vertically from the printed material P, or in the case where the light source 202 is arranged below the printed material P, the transmitted light is input to the light receiving unit 201. The illumination light source 202 is provided so as to avoid an angle from a line L connecting the printed matter P and the light receiving unit 201 to be close to 0 ° or 90 °, for example, installed between an angle of 30 ° to 60 °. I do. Although FIG. 3 illustrates a case where illumination is performed from the traveling direction with respect to the transport direction, illumination may be performed from behind.

【0016】また、印刷物Pは図3に示すようにローラ
により搬送され、基準板203は、画像データが読み取
られる印刷物Pの背面に配置される。この基準板203
の役割を図4に示す印刷物を例として具体的に説明す
る。図4は、白紙内に白以外のインクにより種々の矩形
模様(図形)や文字などが印刷されている画像であり、
抽出する領域は図6に示す斜線領域、すなわち、画像デ
ータの矩形模様領域と文字領域以外の領域とする。
The printed matter P is conveyed by rollers as shown in FIG. 3, and the reference plate 203 is arranged on the back of the printed matter P from which image data is read. This reference plate 203
Will be specifically described by taking the printed matter shown in FIG. 4 as an example. FIG. 4 is an image in which various rectangular patterns (graphics), characters, and the like are printed on white paper with ink other than white.
The region to be extracted is a hatched region shown in FIG. 6, that is, a region other than the rectangular pattern region and the character region of the image data.

【0017】まず、印刷物Pの背景に配置される基準板
203は、印刷物の用紙に対してコントラストの高い
色、例えば図4のように白色の用紙の場合は黒とする。
これは、画像データを解析する場合に印刷物Pの位置を
容易に決定できるようにするためである。この基準板2
03は、表裏に印刷のある印刷物Pを搬送させた場合、
インクが付着してコントラストが低下しないように、汚
れにくい物質でなければならない。
First, the reference plate 203 arranged on the background of the printed matter P is a color having a high contrast to the printed matter paper, for example, black in the case of white paper as shown in FIG.
This is so that the position of the printed matter P can be easily determined when analyzing the image data. This reference plate 2
03 is a case where a printed matter P having printing on the front and back is transported,
The material must be resistant to contamination so that the ink does not adhere and the contrast is not reduced.

【0018】AD変換部102では、画像入力部101
で取り込まれた画像データ(アナログ信号)をデジタル
信号に変換する処理を行う。2値化処理部103では、
AD変換部102により得られた濃淡画像データ(デジ
タル信号)に対して2値のデータに変換する処理を施
す。濃淡画像の2値化方法として公知である「大津の判
別分析法」などにより、2値化を行う。ここで、面像デ
ータ上では、値「1」は文章や図形などであり、値
「0」は用紙である。また、印刷物Pの背景の部分は、
値「1」となるような処理を施す。
The AD conversion unit 102 includes an image input unit 101
To convert the image data (analog signal) fetched in step into a digital signal. In the binarization processing unit 103,
The grayscale image data (digital signal) obtained by the AD converter 102 is converted into binary data. Binarization is performed by a known method of binarizing a grayscale image, such as "Otsu's discriminant analysis method". Here, on the surface image data, the value “1” is a sentence or a figure, and the value “0” is a sheet. The background portion of the printed matter P is
A process is performed so that the value becomes “1”.

【0019】ブロック算出部104と射影ヒストグラム
105と領域抽出部106では、印刷物Pの左角を抽出
し(図2のステップ11)、左角から各ブロックごとに
横方向の射影を算出する(図2のステップ12)。次
に、算出した射影ヒストグラムから白の領域を抽出し
(図2のステップ13)、さらに、縦方向の射影ヒスト
グラムを用いて(図2のステップ14)、黒領域と白領
域の混在している領域での白領域の抽出を行う(図2の
ステップ15)。このように、抽出したい領域を分割し
たブロックごとに射影処理を用いて抽出する。
The block calculator 104, the projection histogram 105, and the region extractor 106 extract the left corner of the printed matter P (step 11 in FIG. 2), and calculate the horizontal projection for each block from the left corner (FIG. 2). Step 12 of 2). Next, a white area is extracted from the calculated projection histogram (step 13 in FIG. 2), and further, a black area and a white area are mixed using a vertical projection histogram (step 14 in FIG. 2). A white region is extracted from the region (step 15 in FIG. 2). As described above, the area to be extracted is extracted using the projection processing for each divided block.

【0020】次にこの射影処理を詳細に説明する。ブロ
ック算出部104では、まず、主走査方向の左右いずれ
かの角、例えば、図7の左角(点A)の位置(座標)を
抽出する。左角(点A)の位置(座標)を抽出する場
合、画像データを左上から主走査方向及び副走査方向に
1ラインずつ走査し、左角(点A)が見つかるまで走査
していく。例えば、画像データの大きさをM×N(画
素)とし、各画素における濃度値をFij(0≦i<
M、0≦j<N.Fij=「1」or「0」)とする
と、図8に示すように、まず、画像の左上から主走査方
向に一行だけ検索し、Fij=1なる画素位置(以下、
開始位置と呼ぶ)を検出する。もし検出されなければ、
次のラインを前記同様に検索し、左角(点A)を検出す
る。前記「一行だけ検索する」とは、例えば左上から右
方向に検索する場合、Fijのiとjの値を、j=0と
して、0≦i<Mと変化させていくことを意味してい
る。
Next, this projection processing will be described in detail. The block calculation unit 104 first extracts the position (coordinates) of one of the left and right corners in the main scanning direction, for example, the left corner (point A) in FIG. When extracting the position (coordinates) of the left corner (point A), the image data is scanned one line at a time from the upper left in the main scanning direction and the sub-scanning direction until the left corner (point A) is found. For example, the size of the image data is M × N (pixels), and the density value at each pixel is Fij (0 ≦ i <
M, 0 ≦ j <N. Assuming that Fij = “1” or “0”), as shown in FIG. 8, first, only one line is searched from the upper left of the image in the main scanning direction, and a pixel position where Fij = 1 (hereinafter, referred to as “Fij = 1”).
(Referred to as a start position). If not detected,
The next line is searched in the same manner as described above, and the left corner (point A) is detected. The “search for one line” means that, for example, when searching from the upper left to the right, the values of i and j of Fij are changed to 0 ≦ i <M with j = 0. .

【0021】次に、左角(点A)をもとに、例えば図9
のように、主走査幅w×副走査幅hの大きさのブロック
を算出する。ここでw及びhは共に画素数で表されてい
る。さらに、射影ヒストグラム算出部105では、ブロ
ック算出部104より算出した各ブロックごとに、横方
向の射影ヒストグラムを算出していく。
Next, based on the left corner (point A), for example, FIG.
, A block having a size of main scanning width w × sub-scanning width h is calculated. Here, both w and h are represented by the number of pixels. Further, the projection histogram calculation unit 105 calculates a horizontal projection histogram for each block calculated by the block calculation unit 104.

【0022】ここで、ブロックの主走査幅wは、矩形模
様間の縦方向の画素数と印刷物Pの最大回転角によって
決定する。例えば、抽出したい領域の縦方向の画素数、
すなわち、矩形模様間の縦方向の画素数をc、印刷物P
の最大回転角をθとすると、 tanθ=c/w 従ってブロックの主走査幅wは、 w=c/tanθ により算出される。ここで、ブロックの主走査幅は、w
に固定する必要はなく、wより小さい値に設定しても良
い。これにより、抽出される領域が多くなり精度が向上
する。また、ブロックの副走査幅hは、画像データの縦
幅とする。
Here, the main scanning width w of the block is determined by the number of pixels in the vertical direction between the rectangular patterns and the maximum rotation angle of the printed matter P. For example, the number of pixels in the vertical direction of the region to be extracted,
That is, the number of pixels in the vertical direction between the rectangular patterns is c, and the printed matter P
Is the maximum rotation angle of θ, tan θ = c / w. Therefore, the main scanning width w of the block is calculated by w = c / tan θ. Here, the main scanning width of the block is w
Need not be fixed, and may be set to a value smaller than w. As a result, the number of regions to be extracted increases and the accuracy is improved. The sub-scanning width h of the block is the vertical width of the image data.

【0023】図10に、あるブロックの主走査方向の射
影ヒストグラムの例を示す。図10中、例ば、「D」の
部分が模様(図形)領域を示し、「H」の部分が模様
(図形)以外の領域(ここでは抽出したい領域)を示し
ている。また、印刷物P以外の領域、すなわち背景の領
域は、前記2値化処理部により、値「1」としているた
め、射影ヒストグラムにおいては、図10にハッチング
で示すような部分にあらわれる。
FIG. 10 shows an example of a projection histogram of a certain block in the main scanning direction. In FIG. 10, for example, a portion “D” indicates a pattern (graphic) region, and a portion “H” indicates a region other than the pattern (graphic) (here, a region to be extracted). Further, since the area other than the printed matter P, that is, the background area is set to the value “1” by the binarization processing unit, it appears in the projection histogram as a hatched portion in FIG.

【0024】領域抽出部106では、射影ヒストグラム
算出部105より得られた、各ブロックごとの射影ヒス
トグラムから、累積黒画素数が、「0」の領域、すなわ
ち白の領域(図10中「H」の部分)を抽出する。ま
た、累積黒画素が(w−1)以下の場合は、その領域
(図10中「C」の部分)において、副走査方向の射影
ヒストグラムを算出する。図11に、副走査方向の射影
ヒストグラムの例を示す。この射影ヒストグラムから、
前記同様に累積黒画素数が「0」の領域、すなわち白領
域(図11中「L」の部分)を抽出する。
In the area extracting section 106, the area where the cumulative number of black pixels is “0”, that is, a white area (“H” in FIG. 10) is obtained from the projection histogram for each block obtained from the projection histogram calculating section 105. Part). When the cumulative black pixel is equal to or less than (w-1), the projection histogram in the sub-scanning direction is calculated in the area ("C" in FIG. 10). FIG. 11 shows an example of a projection histogram in the sub-scanning direction. From this projection histogram,
In the same manner as described above, an area where the cumulative number of black pixels is “0”, that is, a white area (“L” in FIG. 11) is extracted.

【0025】また、画像データに例えば図12のように
ノイズが含まれていることがあるため、前記主走査方向
及び副走査方向の射影ヒストグラムにおいて、累積黒画
素数を「0」とせずに、例えば「1」以下の領域あるい
は「2」以下の領域を白領城として抽出することで精度
良く抽出したい領域を抽出することが可能である。
Further, since the image data may include noise as shown in FIG. 12, for example, the cumulative black pixel number is not set to "0" in the projection histograms in the main scanning direction and the sub-scanning direction. For example, by extracting a region equal to or smaller than "1" or a region equal to or smaller than "2" as a white castle, it is possible to accurately extract a region to be extracted.

【0026】ここで、累積黒画素が(w−1)以下の場
合に上記のように副走査方向の射影ヒストグラムを用い
て白領域を抽出する理由について説明する。累積黒画素
数が(w−1)以下という場合は、例えば、図13
(a)のように、矩形模様領域だけではなく、矩形以外
の模様(図形)や文字が印刷物Pに存在する場合、ある
いは矩形模様領域は存在するが主走査方向の幅が(w−
1)以下である場合、図13(b)のような射影ヒスト
グラムが算出される。従って、主走査方向のヒストグラ
ムだけでは図13(a)の斜線部のような領域(ブロッ
ク内で、主走査方向に黒領域と白領域が混在している領
域)が抽出できないためである。この場合、前記のよう
に累積黒画素数が(w−1)以下とすることで、図13
(b)の斜線部の領域が抽出できることになる。
Here, the reason why the white area is extracted by using the projection histogram in the sub-scanning direction when the cumulative black pixel is equal to or less than (w-1) will be described. When the cumulative number of black pixels is equal to or less than (w-1), for example, FIG.
As shown in (a), when not only a rectangular pattern area but also a pattern (graphic) or character other than a rectangle exists in the printed matter P, or a rectangular pattern area exists but the width in the main scanning direction is (w−
1) If not, a projection histogram as shown in FIG. 13B is calculated. Therefore, an area such as a hatched area in FIG. 13A (an area in which a black area and a white area are mixed in the main scanning direction in a block) cannot be extracted only by the histogram in the main scanning direction. In this case, by setting the cumulative number of black pixels to (w-1) or less as described above, FIG.
As a result, the shaded area shown in FIG.

【0027】次に本発明の第2の実施例について説明す
る。図14は、本発明の第2の実施例に係わる領域抽出
方法のブロック図である。画像入力部301とAD変換
部302及び2値化処理部303は、第1の実施例にお
ける画像入力部101とAD変換部102及び2値化処
理部103と同様である。オーパーラップブロック算出
部304により、ある特定の主走査幅を持ったブロック
をオーパーラップさせて算出し、算出されたブロックを
もとに、射影ヒストグラム算出部305により、各オー
パーラップしたブロックごとに主走査方向及び副走査方
向の射影ヒストグラムを算出する。さらに、領域抽出部
306により、射影ヒストグラムを用いて模様(図形)
や文字以外の領域を抽出する。
Next, a second embodiment of the present invention will be described. FIG. 14 is a block diagram of a region extracting method according to the second embodiment of the present invention. The image input unit 301, the AD conversion unit 302, and the binarization processing unit 303 are the same as the image input unit 101, the AD conversion unit 102, and the binarization processing unit 103 in the first embodiment. The overlap block calculation unit 304 calculates a block having a certain specific main scanning width by overlapping, and the projection histogram calculation unit 305 calculates a main block for each overlapped block based on the calculated block. A projection histogram in the scanning direction and the sub-scanning direction is calculated. Further, the region extraction unit 306 uses the projection histogram to generate a pattern (figure).
And areas other than characters.

【0028】以下に、オーパーラップブロック算出部3
04と射影ヒストグラム算出部305と領域抽出部30
6の具体的な処理方法について説明する。オーバーラッ
ブブロック算出部304では、印刷物Pの左角を抽出
し、左角からある特定の主走査幅を持ったブロックをオ
ーバーラッブさせたブロックを算出する。次に、射影ヒ
ストグラム算出部305により、各オーバーラップさせ
たブロックごとに主走査方向の射影を算出する。次に、
領域抽出部306により、射影ヒストグラム算出部30
5により算出した射影ヒストグラムから白の領域を抽出
し、さらに、副走査方向の射影ヒストグラムを用いて、
黒領域と白領域の混在している領域での白領域の抽出を
行う。このように、抽出したい領域をある特定の主走査
幅を持ったブロックをオーバーラッブさせたブロックご
とに射影処理を用いて抽出する。
Hereinafter, the overlap block calculating section 3
04, the projection histogram calculation unit 305, and the region extraction unit 30
The specific processing method 6 will be described. The overlap block calculation unit 304 extracts the left corner of the printed matter P, and calculates a block obtained by overlapping a block having a specific main scanning width from the left corner. Next, the projection histogram calculation unit 305 calculates the projection in the main scanning direction for each of the overlapped blocks. next,
The area extraction unit 306 allows the projection histogram calculation unit 30
The white area is extracted from the projection histogram calculated in step 5, and further, using the projection histogram in the sub-scanning direction,
A white region is extracted from a region where a black region and a white region are mixed. As described above, a region to be extracted is extracted using the projection processing for each block in which a block having a certain specific main scanning width is overlapped.

【0029】以下にオーバーラッブブロック算出部30
4での処理について説明する。図7の主走査方向の左右
いずれかの角、例えば左角(点A)の位置(座標)を抽
出する方法については、第1の実施例と同様である。
The overlap block calculating section 30 will now be described.
4 will be described. The method of extracting the position (coordinates) of one of the left and right corners in the main scanning direction in FIG. 7, for example, the left corner (point A), is the same as in the first embodiment.

【0030】次に、左角(点A)をもとに、主走査幅w
×副走査幅hの大きさのブロックごとに、主走査方向の
射影ヒストグラムを算出していくが、各ブロックをオー
パーラップさせてたブロック(図15参照)を算出す
る。すなわち、第1のブロックが、例えば左角(点A)
からSだけ離れた主走査幅wのブロックとすると、第2
のブロックは、例えば、左角(点A)から主走査方向に
S+(w/2)離れた距離にある主走査幅wのブロック
を算出することになる。
Next, based on the left corner (point A), the main scanning width w
The projection histogram in the main scanning direction is calculated for each block having the size of the sub-scanning width h, and a block (see FIG. 15) in which each block is overlapped is calculated. That is, the first block is, for example, the left corner (point A)
Assuming that the block has a main scanning width w separated by S from the second
For example, a block having a main scanning width w at a distance of S + (w / 2) in the main scanning direction from the left corner (point A) is calculated.

【0031】射影ヒストグラム算出部305では、オー
パーラップブロック算出部304により得られた各ブロ
ックごとに、主走査方向の射影ヒストグラムを算出して
いく。ここで、第1の実施例同様、ブロックの主走査幅
wは、矩形模様間の副走査方向の画素数と印刷物Pの最
大回転角によって決定する。例えば、抽出したい領域の
副走査方向の画素数、すなわち、矩形模様間の副走査方
向の画素数をc、印刷物Pの最大回転角をθとすると、
ブロックの主走査幅wは、 w=c/tanθ により算出される。また、ブロックの副走査幅はhは、
画像データの縦幅とする。
The projection histogram calculation unit 305 calculates a projection histogram in the main scanning direction for each block obtained by the overlap block calculation unit 304. Here, similarly to the first embodiment, the main scanning width w of the block is determined by the number of pixels between the rectangular patterns in the sub scanning direction and the maximum rotation angle of the printed matter P. For example, if the number of pixels in the sub-scanning direction of the region to be extracted, that is, the number of pixels in the sub-scanning direction between rectangular patterns is c, and the maximum rotation angle of the printed matter P is θ,
The main scanning width w of the block is calculated by w = c / tan θ. The sub-scanning width of the block is h.
The vertical width of the image data.

【0032】領域抽出部306では、各ブロックごとの
主走査方向の射影ヒストグラムから、第1の実施例と同
様に、累積黒画素数が、「0」の領域、すなわち白の領
域を抽出する。また、累積黒画素が(w−1)以下の場
合は、その領域において、副走査方向の射影ヒストグラ
ムを算出する。この射影ヒストグラムから、前記同様に
累積黒画素が「0」の領域、すなわち白領域を抽出す
る。
The region extracting unit 306 extracts a region where the cumulative number of black pixels is "0", that is, a white region, from the projection histogram in the main scanning direction for each block, as in the first embodiment. When the cumulative black pixel is equal to or less than (w-1), the projection histogram in the sub-scanning direction is calculated in the area. From this projection histogram, an area where the accumulated black pixels are “0”, that is, a white area is extracted as described above.

【0033】また、画像データに例えば図12のように
ノイズが含まれていることがあるため、前記累積黒画素
数を「0」とせずに、例えば「1」以下の領域あるいは
「2」以下の領域を白領域として抽出することで精度良
く抽出したい領域を抽出することが可能である。また、
累積黒画素が(w−1)以下の場合に上記のように副走
査方向の射影ヒストグラムを用いて白領域を抽出する理
由については、第1の実施例と同様である。
Further, since the image data sometimes includes noise as shown in FIG. 12, for example, the accumulated black pixel number is not set to "0", but is set to, for example, an area of "1" or less or "2" or less. By extracting the region as a white region, it is possible to accurately extract the region to be extracted. Also,
The reason why the white area is extracted using the projection histogram in the sub-scanning direction when the cumulative black pixel is equal to or less than (w-1) is the same as in the first embodiment.

【0034】次に本発明の第3の実施例について説明す
る。図16は、本発明の第3の実施例に係わる領域抽出
方法のブロック図である。画像入力部401とAD変換
部402及び2値化処理部403は、第1の実施例にお
ける画像入力部101とAD変換部102及び2値化処
理部103と同様である。主走査幅記憶部407は予め
分かっている模様の主走査幅を辞書として登録してい
る。可変ブロック算出部404及び主走査幅記憶部40
7により、印刷物Pの模様(模様)や文字各々に応じた
主走査幅を持ったブロックを算出し、算出された各ブロ
ックをもとに、射影ヒストグラム算出部405により、
各ブロックごとに主走査方向及び副走査方向の射影ヒス
トグラムを算出する。さらに、領域抽出部406によ
り、射影ヒストグラムを用いて模様(図形)や文字以外
の領域を抽出する。
Next, a third embodiment of the present invention will be described. FIG. 16 is a block diagram of an area extracting method according to the third embodiment of the present invention. The image input unit 401, the AD conversion unit 402, and the binarization processing unit 403 are the same as the image input unit 101, the AD conversion unit 102, and the binarization processing unit 103 in the first embodiment. The main scanning width storage unit 407 registers the main scanning width of the pattern known in advance as a dictionary. Variable block calculator 404 and main scanning width storage 40
7, a block having a main scanning width corresponding to each pattern (pattern) and characters of the printed matter P is calculated, and the projection histogram calculation unit 405 calculates a block based on the calculated blocks.
Projection histograms in the main scanning direction and the sub-scanning direction are calculated for each block. Further, the region extracting unit 406 extracts regions other than patterns (graphics) and characters using the projection histogram.

【0035】以下に、可変ブロック算出部404と射影
ヒストグラム算出部405と領域抽出部406及び主走
査幅記憶部407の具体的な処理方法について説明す
る。主走査幅記憶部407は左角から印刷物Pの模様
(図形)や文字の主走査幅を記憶している。可変ブロッ
ク算出部404では、印刷物Pの左角を抽出し、主走査
幅記憶部407からの情報をもとに、印刷物Pの模様
(図形)や文字の主走査幅に応じた各ブロックを算出す
る。さらに、射影ヒストグラム算出部405により各ブ
ロックごとに主走査方向の射影を算出する。次に、算出
した射影ヒストグラムから白の領域を抽出し、さらに、
副走査方向の射影ヒストグラムを用いて、黒領域と白領
域の混在している領域での白領域の抽出を行う。このよ
うに、抽出したい領域を印刷物Pの模様(図形)や文字
の主走査幅に応じたブロックごとに射影処理を用いて抽
出する。
A specific processing method of the variable block calculation unit 404, the projection histogram calculation unit 405, the area extraction unit 406, and the main scanning width storage unit 407 will be described below. The main scanning width storage unit 407 stores the main scanning width of a pattern (figure) or character of the printed matter P from the left corner. The variable block calculating unit 404 extracts the left corner of the printed matter P and calculates each block corresponding to the pattern (graphics) of the printed matter P and the main scanning width of the character based on the information from the main scanning width storage unit 407. I do. Further, the projection histogram calculation unit 405 calculates the projection in the main scanning direction for each block. Next, a white area is extracted from the calculated projection histogram, and further,
Using the projection histogram in the sub-scanning direction, a white region is extracted from a region where a black region and a white region are mixed. As described above, the region to be extracted is extracted by using the projection process for each block corresponding to the pattern (graphics) of the printed matter P or the main scanning width of the character.

【0036】以下に可変ブロック算出部404での処理
について説明する。図7の主走査方向の左右いずれかの
角、例えば左角(点A)の位置(座標)を抽出する方法
については、第1の実施例と同様である。
The processing in the variable block calculator 404 will be described below. The method of extracting the position (coordinates) of one of the left and right corners in the main scanning direction in FIG. 7, for example, the left corner (point A), is the same as in the first embodiment.

【0037】次に、左角(点A)をもとに、主走査幅w
×副走査幅hの大きさのブロックごとに、主走査方向の
射影ヒストグラムを算出していくが、主走査幅wの大き
さが第1の実施例や第2の実施例のように固定値ではな
く、印刷物Pの模様(図形)や文字が予め分かっている
場合は、図17に示すように、主走査幅記億部407に
より、その模様(図形)や文字の主走査方向の幅に合わ
せてブロックの主走査幅を変更して、各々ブロックを算
出する。このようにブロックの主走査幅を変更する理由
は、主走査幅wを模様(図形)や文字の幅に合わせる
と、算出されるヒストグラムが簡単な形状(主走査方向
画素数がw又は0)となり、処理速度が向上するからで
ある。
Next, based on the left corner (point A), the main scanning width w
X The projection histogram in the main scanning direction is calculated for each block having the size of the sub-scanning width h, and the size of the main scanning width w is a fixed value as in the first and second embodiments. Instead, if the pattern (graphic) or character of the printed matter P is known in advance, as shown in FIG. 17, the main scanning width storage unit 407 determines the width of the pattern (graphic) or character in the main scanning direction. In addition, the main scanning width of each block is changed, and each block is calculated. The reason for changing the main scanning width of a block in this way is that when the main scanning width w is adjusted to the width of a pattern (figure) or character, the calculated histogram has a simple shape (the number of pixels in the main scanning direction is w or 0). This is because the processing speed is improved.

【0038】射影ヒストグラム算出部405では、可変
ブロック算出部404により得られた各ブロックごと
に、主走査方向の射影ヒストグラムを算出する。ここ
で、第1の実施例同様、ブロックの主走査幅wは、矩形
模様間の副走査方向の画素数と印刷物Pの最大回転角に
よって決定する。例えば、抽出したい領域の副走査方向
の画素数、すなわち、矩形模様間の副走査方向の画素数
をc、印刷物Pの最大回転角をθとすると、ブロックの
主走査幅wは、 w=c/tanθ により算出される。また、ブロックの副走査幅hは、画
像データの縦幅とする。
The projection histogram calculation unit 405 calculates a projection histogram in the main scanning direction for each block obtained by the variable block calculation unit 404. Here, similarly to the first embodiment, the main scanning width w of the block is determined by the number of pixels between the rectangular patterns in the sub scanning direction and the maximum rotation angle of the printed matter P. For example, if the number of pixels in the sub-scanning direction of the region to be extracted, that is, the number of pixels in the sub-scanning direction between rectangular patterns is c and the maximum rotation angle of the printed matter P is θ, the main scanning width w of the block is: w = c / Tanθ. The sub-scanning width h of the block is the vertical width of the image data.

【0039】領域抽出部406では、射影ヒストグラム
算出部405により得られた各ブロックごとの主走査方
向の射影ヒストグラムから、第1の実施例と同様にし
て、累積黒画素数が、「0」の領域、すなわち白の領域
を抽出する。また、累積黒画素が(w−1)以下の場合
は、その領域において、副走査方向の射影ヒストグラム
を算出する。この射影ヒストグラムから、前記同様に累
積黒画素が「0」の領域、すなわち白領域を抽出する。
In the region extraction unit 406, the projection histogram in the main scanning direction for each block obtained by the projection histogram calculation unit 405 is used, as in the first embodiment, so that the cumulative number of black pixels is “0”. An area, that is, a white area is extracted. When the cumulative black pixel is equal to or less than (w-1), the projection histogram in the sub-scanning direction is calculated in the area. From this projection histogram, an area where the accumulated black pixels are “0”, that is, a white area is extracted as described above.

【0040】また、画像データに例えば図12のように
ノイズが含まれていることがあるため、前記累積黒画素
数が「0」とせずに、例えば「1」以下の領域あるいは
「2」以下の領域を白領域として抽出することで精度良
く抽出したい領域を抽出することが可能である。ここ
で、累積黒画素が(w−1)以下の場合に上記のように
副走査方向の射影ヒストグラムを用いて白領域を抽出す
る理由についても第1の実施例と同様である。
Further, since the image data sometimes includes noise as shown in FIG. 12, for example, the cumulative number of black pixels is not set to “0” but is set to, for example, an area of “1” or less or “2” or less. By extracting the region as a white region, it is possible to accurately extract the region to be extracted. Here, the reason why the white area is extracted using the projection histogram in the sub-scanning direction as described above when the cumulative black pixel is equal to or less than (w-1) is the same as in the first embodiment.

【0041】次に本発明の第4の実施例について説明す
る。図18は、本発明の第4の実施例に係わる領域抽出
方法のブロック図である。画像入力部501とAD変換
部502及び2値化処理部503は、第1の実施例にお
ける画像入力部101とAD変換部102及び2値化処
理部103と同様である。ブロック算出部504によ
り、ある特定の主走査幅を持ったブロックを算出し、算
出されたブロック及び、主走査幅記億部507に記憶さ
れている印刷物Pの模様(図形)や文字の主走査幅の情
報をもとに、可変射影ヒストグラム算出部505によ
り、ブロックごとに主走査方向及び副走査方向の射影ヒ
ストグラムを算出する。さらに、領域抽出部506によ
り、射影ヒストグラムを用いて模様(図形)や文字以外
の領域を抽出する。
Next, a fourth embodiment of the present invention will be described. FIG. 18 is a block diagram of an area extracting method according to the fourth embodiment of the present invention. The image input unit 501, the AD conversion unit 502, and the binarization processing unit 503 are the same as the image input unit 101, the AD conversion unit 102, and the binarization processing unit 103 in the first embodiment. A block having a specific main scanning width is calculated by the block calculating unit 504, and the calculated block and the main scanning of the pattern (figure) or character of the printed matter P stored in the main scanning width storage unit 507 are performed. Based on the information on the width, the variable projection histogram calculation unit 505 calculates the projection histogram in the main scanning direction and the sub-scanning direction for each block. Further, the area extracting unit 506 extracts an area other than a pattern (figure) or a character using the projection histogram.

【0042】以下に、ブロック算出部504と可変射影
ヒストグラム算出部505と領域抽出部506及び主走
査幅記憶部507の具体的な処理方法について説明す
る。ブロック算出部504では、印刷物Pの左角を抽出
し、左角からある特定の主走査幅を持ったブロックを算
出する。主走査幅記憶部507に記憶されている印刷物
Pの模様(図形)や文字の主走査幅の情報をもとに、ブ
ロック算出部504により算出されたブロックごとに、
その主走査幅をさらに主走査方向に分割し、その分割さ
れたブロックごとに主走査方向の射影を算出する。次
に、算出した射影ヒストグラムから白の領域を抽出し、
さらに、縦方向の射影ヒストグラムを用いて、黒領域と
白領域の混在している領域での白領域の抽出を行う。こ
のように、抽出したい領域をある特定の主走査幅をさら
に印刷物Pの模様(図形)や文字の主走査幅に応じて分
割したブロックごとに射影処理を用いて抽出する。
A specific processing method of the block calculation unit 504, the variable projection histogram calculation unit 505, the area extraction unit 506, and the main scanning width storage unit 507 will be described below. The block calculator 504 extracts the left corner of the printed matter P, and calculates a block having a specific main scanning width from the left corner. Each block calculated by the block calculator 504 based on the information of the main scan width of the pattern (graphic) or the character of the printed matter P stored in the main scan width storage unit 507.
The main scanning width is further divided in the main scanning direction, and a projection in the main scanning direction is calculated for each of the divided blocks. Next, a white area is extracted from the calculated projection histogram,
Further, a white area is extracted from an area where a black area and a white area are mixed using a vertical projection histogram. As described above, a region to be extracted is extracted using a projection process for each block obtained by further dividing a specific main scanning width according to the main scanning width of a pattern (graphic) or character of the printed matter P.

【0043】以下にブロック算出部504での処理につ
いて説明する。図7の主走査方向の左右いずれかの角、
例えば左角(点A)の位置(座標)を抽出する方法につ
いては、第1の実施例と同様である。
The processing in the block calculator 504 will be described below. Left or right corner in the main scanning direction in FIG. 7,
For example, the method of extracting the position (coordinates) of the left corner (point A) is the same as in the first embodiment.

【0044】次に、左角(点A)をもとに、主走査幅w
×副走査幅hの大きさのブロックを算出する。可変射影
ヒストグラム算出部505では、ブロック算出部504
により得られた各ブロックごとに、主走査方向の射影ヒ
ストグラムを算出していくが、主走査幅wの大きさは第
1の実施例や第2の実施例のように固定値ではあるが、
印刷物Pの模様(図形)や文字が予め分かっている場合
は、主走査幅記億部507に記億されている印刷物Pの
模様(図形)や文字の主走査幅の情報をもとに、その模
様(図形)や文字の幅に主走査幅にあわせてブロックを
算出する。更に可変射影ヒストグラム算出部505は、
ブロックの主走査幅wを細分割して、分割したブロック
ごとに、主走査方向の射影ヒストグラムを算出する。す
なわち、図19において、左から3番目のブロックTの
幅はwであるが、このブロック中の模様に合わせて、例
えば主走査幅wをw/2とw/2のブロックに分割し
て、各々主走査方向の射影ヒストグラムを算出してい
く。
Next, based on the left corner (point A), the main scanning width w
X A block having a size of the sub-scanning width h is calculated. The variable projection histogram calculation unit 505 includes a block calculation unit 504
A projection histogram in the main scanning direction is calculated for each block obtained by the above. The size of the main scanning width w is a fixed value as in the first and second embodiments.
When the pattern (graphics) and characters of the printed matter P are known in advance, based on the information of the main scanning width of the printed matter P (graphics) and characters recorded in the main scanning width storage unit 507, The block is calculated in accordance with the width of the pattern (figure) or character and the main scanning width. Further, the variable projection histogram calculation unit 505
The main scanning width w of the block is subdivided, and a projection histogram in the main scanning direction is calculated for each of the divided blocks. That is, in FIG. 19, the width of the third block T from the left is w, but, for example, the main scanning width w is divided into w / 2 and w / 2 blocks in accordance with the pattern in this block. The projection histogram in each of the main scanning directions is calculated.

【0045】ここで、第1の実施例同様、ブロックの主
走査幅wは、矩形模様間の副走査方向の画素数と印刷物
Pの最大回転角によって決定する。例えば、抽出したい
領域の副走査方向の画素数、すなわち、矩形模様間の副
走査方向の画素数をc、印刷物Pの最大回転角をθとす
ると、ブロックの主走査幅wは、 w=c/tanθ により算出される。また、ブロックの副走査幅hは、画
像データの副走査幅とする。
Here, as in the first embodiment, the main scanning width w of the block is determined by the number of pixels between the rectangular patterns in the sub scanning direction and the maximum rotation angle of the printed matter P. For example, if the number of pixels in the sub-scanning direction of the region to be extracted, that is, the number of pixels in the sub-scanning direction between rectangular patterns is c and the maximum rotation angle of the printed matter P is θ, the main scanning width w of the block is: w = c / Tanθ. The sub-scanning width h of the block is the sub-scanning width of the image data.

【0046】領域抽出部506では、可変射影ヒストグ
ラム算出部505により得られた各ブロック(細分割ブ
ロックも含む)ごとの主走査方向の射影ヒストグラムか
ら、第1の実施例と同様にして、累積黒画素数が、
「0」の領域、すなわち白の領域を抽出する。また、累
積黒画素が(w−1)以下の場合は、その領域におい
て、副走査方向の射影ヒストグラムを算出する。この射
影ヒストグラムから、前記同様に累積黒画素が「0」の
領域、すなわち白領域を抽出する。
The region extraction unit 506 calculates the cumulative black from the projection histogram in the main scanning direction for each block (including the subdivided block) obtained by the variable projection histogram calculation unit 505 in the same manner as in the first embodiment. The number of pixels is
An area of “0”, that is, a white area is extracted. When the cumulative black pixel is equal to or less than (w-1), the projection histogram in the sub-scanning direction is calculated in the area. From this projection histogram, an area where the accumulated black pixels are “0”, that is, a white area is extracted as described above.

【0047】また、画像データに例えば図12のように
ノイズが含まれていることがあるため、前記累積黒画素
数が「0」とせずに、例えば「1」以下の領域あるいは
「2」以下の領域を白領域として抽出することで精度良
く抽出したい領域を抽出することが可能である。ここ
で、累積黒画素が(w−1)以下の場合に上記のように
副走査方向の射影ヒストグラムを用いて白領域を抽出す
る理由については、第1の実施例と同様である。なお、
この発明は上記実施例に限定されるものではなく、発明
の要旨を変えない範囲において種々変形実施可能なこと
は勿論である。
Further, since the image data sometimes includes noise as shown in FIG. 12, for example, the cumulative number of black pixels is not set to "0" but is set to an area of "1" or less or "2" or less. By extracting the region as a white region, it is possible to accurately extract the region to be extracted. Here, the reason why the white area is extracted using the projection histogram in the sub-scanning direction as described above when the cumulative black pixel is equal to or less than (w-1) is the same as in the first embodiment. In addition,
The present invention is not limited to the above-described embodiment, and it is needless to say that various modifications can be made without departing from the spirit of the invention.

【0048】[0048]

【発明の効果】以上説明したように本発明によれば、縦
方向に分割したブロックごとに、印刷物Pの矩形模様な
どの濃い模様領域を基準にして、横方向及び縦方向の射
影処理を用いて、印刷物Pの抽出したい領域を抽出する
ことで、印刷物Pの搬送ムラや傾きや横ずれによる影響
を低減することが可能となり、印刷物Pの上下左右の端
を基準にそこからの距離のみで抽出したい領域を抽出す
る従来の方法に比べて、高精度に抽出することができ
る。
As described above, according to the present invention, horizontal and vertical projection processing is performed for each block divided in the vertical direction with reference to a dark pattern area such as a rectangular pattern of the printed matter P. By extracting the area of the printed matter P that is desired to be extracted, it is possible to reduce the influence of unevenness of conveyance, inclination, and lateral displacement of the printed matter P, and extract only the distance from the upper, lower, left, and right edges of the printed matter P. The extraction can be performed with higher accuracy than a conventional method of extracting a region to be processed.

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

【図1】図1は本発明の第1の実施例に係る領域抽出シ
ステムの構成を示すブロック図。
FIG. 1 is a block diagram showing a configuration of an area extraction system according to a first embodiment of the present invention.

【図2】図2は本発明の第1の実施例に係る領域抽出部
での処理方法を示すフローチャー卜。
FIG. 2 is a flowchart showing a processing method in an area extracting unit according to the first embodiment of the present invention.

【図3】図3は図1画像入力部の構成を示す図。FIG. 3 is a diagram illustrating a configuration of an image input unit in FIG. 1;

【図4】図4は印刷物画像の例を示す図。FIG. 4 is a diagram illustrating an example of a print image.

【図5】図5は画像入力部における印刷物の背景の構成
を示す図。
FIG. 5 is a diagram illustrating a configuration of a background of a printed matter in an image input unit.

【図6】図6は印刷物から抽出する領域の例を示す図。FIG. 6 is a diagram illustrating an example of an area extracted from a printed matter;

【図7】図7は画像データ上の印刷物の左角を示す図。FIG. 7 is a diagram showing a left corner of a printed matter on image data.

【図8】図8は画像データから印刷物の左角を探索する
方法を示す図。
FIG. 8 is a diagram illustrating a method of searching for a left corner of a printed matter from image data.

【図9】図9は画像データから横方向の射影ヒストグラ
ムを算出する処理を説明するための図。
FIG. 9 is a diagram for explaining a process of calculating a horizontal projection histogram from image data.

【図10】図10はあるブロックの横方向の射影ヒスト
グラムの例を示す図。
FIG. 10 is a diagram showing an example of a horizontal projection histogram of a certain block;

【図11】図11はあるブロック内での縦方向の射影ヒ
ストグラムの例を示す図。
FIG. 11 is a diagram showing an example of a vertical projection histogram in a certain block.

【図12】図12は画像データ上のノイズを示す図。FIG. 12 is a diagram showing noise on image data.

【図13】図13は画像データ上の縦方向の射影ヒスト
グラムを算出する処理を説明するための図。
FIG. 13 is a view for explaining processing for calculating a vertical projection histogram on image data.

【図14】図14は本発明の第2の実施例に係る領域抽
出システムの構成を示すブロック図。
FIG. 14 is a block diagram showing a configuration of an area extraction system according to a second embodiment of the present invention.

【図15】図15は本発明の第2の実施例に係る横方向
の射影ヒストグラムを算出する処理を説明するための
図。
FIG. 15 is a diagram for explaining a process of calculating a horizontal projection histogram according to the second embodiment of the present invention.

【図16】図16は本発明の第3の実施例に係る領域抽
出システムの構成を示すブロック図。
FIG. 16 is a block diagram showing a configuration of an area extraction system according to a third embodiment of the present invention.

【図17】図17は本発明の第3の実施例に係る横方向
の射影ヒストグラムを算出する処理を説明するための
図。
FIG. 17 is a diagram for explaining processing for calculating a horizontal projection histogram according to the third embodiment of the present invention.

【図18】図18は本発明の第4の実施例に係る領域抽
出システムの構成を示すブロツク図。
FIG. 18 is a block diagram showing a configuration of an area extraction system according to a fourth embodiment of the present invention.

【図19】図19は本発明の第4の実施例に係る横方向
の射影ヒストグラムを算出する処理を説明するための
図。
FIG. 19 is a view for explaining processing for calculating a horizontal projection histogram according to the fourth embodiment of the present invention.

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 対象となる印刷物の特定領域を抽出する
方法において、 前記印刷物の画像データを入力する画像入力ステップ
と、 前記画像入力ステップで得られた画像データをもとに、
特定の主走査幅を持った複数のブロックを算出するブロ
ック算出ステップと、 前記ブロック算出ステップより得られたブロックごとに
主走査方向の射影ヒストグラムを算出する射影ヒストグ
ラム算出ステップと、 前記射影ヒストグラム算出ステップより得られた射影ヒ
ストグラムを用いて前記特定領域を抽出する領域抽出ス
テップ、とを具備したことを特徴とする領域抽出方法。
1. A method for extracting a specific area of a target printed matter, comprising: an image inputting step of inputting image data of the printed matter; and
A block calculation step of calculating a plurality of blocks having a specific main scanning width; a projection histogram calculation step of calculating a projection histogram in the main scanning direction for each block obtained from the block calculation step; and the projection histogram calculation step An area extracting step of extracting the specific area using the projection histogram obtained as described above.
【請求項2】 対象となる印刷物の特定領域を抽出する
方法において、 前記印刷物の画像データを入力する画像入力ステップ
と、 前記画像入力ステップで得られた画像データをもとに、
特定の主走査幅を持ったブロックをブロックごとにオー
パーラップするように算出するオーバーラップブロック
算出ステップと、 前記オーパーラップブロック算出ステップより得られた
ブロックごとに主走査方向の射影ヒストグフムを算出す
る射影ヒストダラム算出ステップと、 前記射影ヒストグラム算出ステップより得られた射影ヒ
ストグラムを用いて前記特定領域を抽出する領域抽出ス
テップ、とを具備したことを持徴とする領域抽出方法。
2. A method for extracting a specific region of a target printed matter, comprising: an image inputting step of inputting image data of the printed matter; and
An overlap block calculation step of calculating a block having a specific main scanning width so as to overlap each block; and a projection calculating a projection histogram in the main scanning direction for each block obtained from the overlap block calculation step. A region extraction method characterized by comprising: a histogram calculation step; and a region extraction step of extracting the specific region using the projection histogram obtained from the projection histogram calculation step.
【請求項3】 対象となる印刷物の特定領域を抽出する
方法において、 前記印刷物の画像データを入力する画像入力ステップ
と、 予め分かっている模様の主走査幅を辞書として登録する
主走査幅記億ステップと、 前記画像入力ステップで得られた画像データをもとに、
前記主走査幅記億ステップにより予め分かっている模様
の主走査幅に合わせたブロックを算出する可変ブロック
算出ステップと、 前記可変ブロック算出ステップより得られたブロックご
とに主走査方向の射影ヒストグラムを算出する射影ヒス
トグラム算出ステップと、 前記射影ヒストグラム算出ステップより得られた射影ヒ
ストグラムを用いて前記特定領域を抽出する領域抽出ス
テップ、とを具備したことを特徴とする領域抽出方法。
3. A method for extracting a specific area of a target printed matter, comprising: an image inputting step of inputting image data of the printed matter; and a main scanning width storing a main scanning width of a known pattern as a dictionary. Step, based on the image data obtained in the image input step,
A variable block calculating step of calculating a block corresponding to a main scanning width of a pattern known in advance by the main scanning width storage step; and calculating a projection histogram in the main scanning direction for each block obtained from the variable block calculating step. A region extraction method for extracting the specific region using the projection histogram obtained from the projection histogram calculation step.
【請求項4】 対象となる印刷物の特定領域を抽出する
方法において、 前記印刷物の画像データを入力する画像入力ステップ
と、 前記画像入力ステップで得られた画像データをもとに、
ある特定の主走査幅を持ったブロックを算出するブロッ
ク算出ステップと、 予め分かっている模様の主走査幅を辞書として登録する
主走査幅記億ステップと、 前記主走査幅記億ステップより、ある特定のブロック
は、前記ブロック算出ステップより得られたブロックご
とに、主走査方向の射影ヒストグラムを算出し、別のブ
ロックでは、前記ブロック算出ステップより得られたブ
ロックを、そのブロックに存在する模様の主走査幅に合
わせたブロックに細分割し、主走査方向の射影ヒストグ
ラムを算出する射影ヒストグラム算出ステップと、 前記射影ヒストグラム算出ステップより得られた射影ヒ
ストグラムを用いて前記特定領域を抽出する領域抽出ス
テップ、とを具備したことを特徴とする領域抽出方法。
4. A method for extracting a specific area of a target printed matter, comprising: an image inputting step of inputting image data of the printed matter; and
A block calculating step of calculating a block having a specific main scanning width; a main scanning width storing step of registering a main scanning width of a known pattern as a dictionary; and a main scanning width storing step. For a specific block, a projection histogram in the main scanning direction is calculated for each block obtained in the block calculation step, and in another block, the block obtained in the block calculation step is replaced with a pattern existing in the block. A projection histogram calculating step of subdividing into blocks corresponding to the main scanning width and calculating a projection histogram in the main scanning direction; and an area extracting step of extracting the specific area using the projection histogram obtained from the projection histogram calculating step And a region extracting method.
【請求項5】 前記ブロック算出ステップは、前記画像
入力ステップで得られた画像データを2値化し、黒画素
及び白画素を区別する2値化ステップを含むことを特徴
とする請求項1乃至4内の1項に記載の領域抽出方法。
5. The block calculation step according to claim 1, wherein the block calculation step includes a binarization step of binarizing the image data obtained in the image input step to distinguish black pixels and white pixels. 2. The region extraction method according to claim 1.
【請求項6】 射影ヒストグラム算出ステップは、白画
素と黒画素が混在する領域について、更に副走査方向の
射影ヒストグラムを算出する副走査方向射影ヒストグラ
ム算出ステップを含み、 前記領域抽出ステップは前記副走査方向の射影ヒストグ
ラムを用いて前記特定領域を抽出するステップを含むこ
とを特徴とする請求項5記載の領域抽出方法。
6. The projection histogram calculating step further includes a sub-scanning direction projection histogram calculating step of calculating a projection histogram in the sub-scanning direction for an area where white pixels and black pixels coexist. The method according to claim 5, further comprising the step of extracting the specific area using a projection histogram of directions.
【請求項7】 前記領域抽出ステップは、前記射影ヒス
トグラム内の白画素と黒画素が混在する領域について、
黒画素の画素数が所定値以下の領域を前記特定領域とし
て抽出するステップを含むことを特徴とする請求項5記
載の領域抽出方法。
7. The region extracting step includes, for a region where white pixels and black pixels are mixed in the projection histogram,
6. The method according to claim 5, further comprising the step of extracting, as the specific area, an area in which the number of black pixels is equal to or less than a predetermined value.
JP24833296A 1996-09-19 1996-09-19 Area extraction method Expired - Fee Related JP3556408B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24833296A JP3556408B2 (en) 1996-09-19 1996-09-19 Area extraction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24833296A JP3556408B2 (en) 1996-09-19 1996-09-19 Area extraction method

Publications (2)

Publication Number Publication Date
JPH1097664A true JPH1097664A (en) 1998-04-14
JP3556408B2 JP3556408B2 (en) 2004-08-18

Family

ID=17176519

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24833296A Expired - Fee Related JP3556408B2 (en) 1996-09-19 1996-09-19 Area extraction method

Country Status (1)

Country Link
JP (1) JP3556408B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112183630A (en) * 2020-09-28 2021-01-05 中国平安人寿保险股份有限公司 Embedded vector generation method, device, equipment and medium based on embedded point hierarchy

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112183630A (en) * 2020-09-28 2021-01-05 中国平安人寿保险股份有限公司 Embedded vector generation method, device, equipment and medium based on embedded point hierarchy
CN112183630B (en) * 2020-09-28 2023-09-26 中国平安人寿保险股份有限公司 Embedding vector generation method, device, equipment and medium based on embedded point level

Also Published As

Publication number Publication date
JP3556408B2 (en) 2004-08-18

Similar Documents

Publication Publication Date Title
US5517587A (en) Positioning method and apparatus for line scanned images
EP1014677B1 (en) An artifact removal technique for skew corrected images
US6466340B1 (en) Image reading apparatus
JPH07141463A (en) Detection of mechanically printed amount of money in binary-coded image
CN115170525B (en) An image difference detection method and apparatus
JP2009267652A (en) Image processing apparatus, image reading apparatus, and image processing method
JPH09311905A (en) Line detection method and character recognition device
US6658166B1 (en) Correction of distortions in form processing
EP0505729B1 (en) Image binarization system
JP3378439B2 (en) Form image creation device
JP3556408B2 (en) Area extraction method
JP2022184098A (en) Image processing device, image processing method and program
JP2845370B2 (en) Character recognition method
JP3268552B2 (en) Area extraction method, destination area extraction method, destination area extraction apparatus, and image processing apparatus
JP2002133424A (en) Detecting method of inclination angle and boundary of document
JP3336046B2 (en) Image area separation device
JP3260891B2 (en) Edge extraction method
JPH10336428A (en) Image processing unit
JP2001229339A (en) Barcode reader
JP2000322685A (en) License plate reader
US20240177516A1 (en) Image processing apparatus, image processing method, and non-transitory computer-executable medium
JP2853141B2 (en) Image area identification device
JP2758255B2 (en) Form edge detection method in optical character reader
JPH08171609A (en) High-speed character string extraction device
JP3381803B2 (en) Tilt angle detector

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040225

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040427

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040512

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

Free format text: PAYMENT UNTIL: 20090521

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090521

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100521

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110521

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110521

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120521

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120521

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130521

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees