JPH06103399A - Image processor - Google Patents

Image processor

Info

Publication number
JPH06103399A
JPH06103399A JP4253209A JP25320992A JPH06103399A JP H06103399 A JPH06103399 A JP H06103399A JP 4253209 A JP4253209 A JP 4253209A JP 25320992 A JP25320992 A JP 25320992A JP H06103399 A JPH06103399 A JP H06103399A
Authority
JP
Japan
Prior art keywords
image
area
bar code
histogram
line
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
JP4253209A
Other languages
Japanese (ja)
Other versions
JP2812619B2 (en
Inventor
Motoharu Ichida
元治 市田
Hideaki Taniguchi
英明 谷口
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP4253209A priority Critical patent/JP2812619B2/en
Publication of JPH06103399A publication Critical patent/JPH06103399A/en
Application granted granted Critical
Publication of JP2812619B2 publication Critical patent/JP2812619B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To provide the means for discriminating an area of each separate image characteristic at a high speed and with high accuracy by a simpler mechanism than a conventional one, with regard to the image processor which discriminates and separates information areas having different image characteristics such as bar-code data, character data, a photograph, etc., recorded in a document (input business form), and can executes an image processing corresponding to the image characteristic of each area. CONSTITUTION:In the image processor for allowing a document to be subjected to line scan and reading it in a picture element unit, and executing a determined processing with regard to an area having a specific image characteristic in obtained image information, this image processor is constituted so that a neuro- mechanism 12 for inputting a value of a picture element of an arbitrary area is provided, and an area having a specific image characteristic is discriminated and segmented.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、原稿(入力帳票)に記
録されたバーコードデータ、文字データ、写真などの異
なる画像特性をもつ情報領域を識別して分離し、各領域
の画像特性に応じた画像処理を可能にする画像処理装置
に関する。また特に、分離されたバーコードデータを高
精度に2値コード化する手段も提供される。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention identifies and separates information areas having different image characteristics such as bar code data, character data and photographs recorded on an original (input form), and determines the image characteristics of each area. The present invention relates to an image processing device that enables appropriate image processing. Further, in particular, a means for highly accurately binary-coding the separated barcode data is also provided.

【0002】[0002]

【従来の技術】バーコード、文字、点画、写真などの画
像特性の異なる複数種類のデータが記録されている原稿
をCCDなどで一律に読み取り、多値のビデオ信号に変
換した後、それぞれのデータに応じた画像処理を行う場
合、読み取り結果の画像の領域を、データの画像特性別
に切り分けることが必要とされる。
2. Description of the Related Art A document on which a plurality of types of data having different image characteristics such as bar codes, characters, dots and photographs are recorded is uniformly read by a CCD or the like, converted into a multivalued video signal, and then each data is converted. When performing image processing according to the above, it is necessary to divide the area of the image of the read result according to the image characteristics of the data.

【0003】たとえばバーコード領域については、バー
コードを走査して各バーコードの幅、間隔を検出し、2
値コードに変換する処理が行われる。また文字、点画の
データ領域では画素単位での単純な2値化処理が行われ
る。そして写真領域では、ディザ法などによる2値化を
行って擬似中間調変換処理が行われる。
For example, in the bar code area, the bar code is scanned to detect the width and interval of each bar code, and 2
The process of converting into a value code is performed. In the character and dot data areas, simple binarization processing is performed in pixel units. Then, in the photographic region, the pseudo halftone conversion process is performed by performing binarization by the dither method or the like.

【0004】図10は、画像特性別領域識別機能を備え
た従来の画像処理装置の構成を示す。図において、1
は、画像特性の異なる複数種類のデータが記録されてい
る原稿である。2は、原稿1をラスタ走査してビデオ信
号に変換するCCDである。3は、ビデオ信号を各ライ
ンの画素単位で多値の画像データに変換するA/D変換
器である。4は、1ラインあるいは複数ライン分の画像
データを一時的に保持する入力バッファである。5は、
入力バッファ4に入力される順次のラインの画像データ
を調べて、画像特性別の領域切り出しを行う領域識別部
である。6は、領域識別部5が区分した画像特性別の各
領域の座標と画像特性種別(バーコード、文字、点画、
写真など)を登録する領域管理テーブルである。7は、
入力バッファ4に保持されていたラインごとの画像デー
タを順次格納する画像ファイルである。8,9,10は
画像特性別の処理を行う画像処理部である。
FIG. 10 shows the configuration of a conventional image processing apparatus having an image characteristic-based area identification function. In the figure, 1
Is an original in which plural kinds of data having different image characteristics are recorded. Reference numeral 2 is a CCD for raster-scanning the original 1 and converting it into a video signal. An A / D converter 3 converts a video signal into multi-valued image data in pixel units of each line. An input buffer 4 temporarily holds image data of one line or a plurality of lines. 5 is
This is an area identification unit that examines the image data of the sequential lines input to the input buffer 4 and cuts out areas according to image characteristics. Reference numeral 6 denotes coordinates and image characteristic types (bar code, characters, dot painting,
It is an area management table for registering photographs and the like). 7 is
This is an image file that sequentially stores the image data for each line held in the input buffer 4. Reference numerals 8, 9, and 10 denote image processing units that perform processing according to image characteristics.

【0005】次に領域識別部5の機能について説明す
る。図11は、CCD出力のビデオ信号波形を示し、
(a)はバーコード領域の波形、(b)は文字領域の波
形、(c)は点画の波形、(d)は写真領域の波形を表
している。図示の(a),(b),(c)のように、黒
インクの有無だけで表されるバーコード、文字、点画の
領域の画像は濃度の最大値と最小値の幅が大きく、濃度
勾配(波形のエッジ)が急峻であり、それぞれ固有の長
さの周期性をもっている。これに対して写真領域の画像
は、濃度の最大値と最小値の差が比較的小さく濃度勾配
がゆるやかであるという画像特性をもっている。
Next, the function of the area identifying section 5 will be described. FIG. 11 shows the video signal waveform of the CCD output,
(A) shows the waveform of the barcode area, (b) shows the waveform of the character area, (c) shows the waveform of the dot image, and (d) shows the waveform of the photographic area. As shown in (a), (b), and (c) in the figure, the image of the area of the bar code, the character, and the dot image represented only by the presence / absence of black ink has a wide range of the maximum and minimum densities. The slope (edge of the waveform) is steep, and each has its own periodicity of length. On the other hand, the image in the photographic area has an image characteristic that the difference between the maximum value and the minimum value of the density is relatively small and the density gradient is gentle.

【0006】領域識別部5は、これらの画像特性を利用
して画像領域の識別を行うソフトウェア機能であり、濃
度の最大値と最小値の差の検出、濃度勾配の検出、周期
性の検出などを行う複数のプログラムからなっている。
そして入力バッファ4に画像データが書き込まれるたび
に、これらの各機能を順次動作させて画像特性を調べ、
同じ画像特性をもつ領域を識別して、その領域の座標と
画像特性種別とを領域管理テーブル6に登録する。
The area discriminating section 5 is a software function for discriminating an image area by utilizing these image characteristics, and detects the difference between the maximum and minimum density values, the density gradient, the periodicity, etc. It consists of several programs that do.
Then, each time image data is written to the input buffer 4, these respective functions are sequentially operated to check the image characteristics,
A region having the same image characteristic is identified, and the coordinate of the region and the image characteristic type are registered in the region management table 6.

【0007】この領域識別部5の処理が済むと、入力バ
ッファ4の画像データは画像データファイル7に格納さ
れ、次のラインの処理が行われる。原稿1について全て
のラインの処理が済み、画像特性別の領域が決定される
と、各画像処理部8,9,10は、それぞれが受け持つ
画像特性の領域を領域管理テーブル6から認識して、画
像データファイル7から該当する画像特性の領域のみを
取り出し処理する。たとえば画像処理部8はバーコード
領域のバーコードについてコード化処理を行い、画像処
理部9は文字領域についての2値化処理を行い、画像処
理部10は写真領域についての2値化処理を行う。
When the processing of the area identifying section 5 is completed, the image data of the input buffer 4 is stored in the image data file 7 and the processing of the next line is performed. When all the lines of the original 1 have been processed and the area for each image characteristic is determined, each image processing unit 8, 9, 10 recognizes the area of the image characteristic, which the image processing section 8, 9 and 10 are responsible for, from the area management table 6. Only the area having the corresponding image characteristic is extracted from the image data file 7 and processed. For example, the image processing unit 8 performs the encoding process on the barcode in the barcode region, the image processing unit 9 performs the binarization process on the character region, and the image processing unit 10 performs the binarization process on the photographic region. .

【0008】[0008]

【発明が解決しようとする課題】従来の画像処理装置に
おける画像特性別領域識別機能は、濃度の変化幅や勾配
などを検出して領域識別を行うためにいくつかのプログ
ラムを順次実行しなければならず、プログラム量が多く
なるとともに処理に時間がかかるという問題があった。
In the conventional image characteristic-based area identification function in the image processing apparatus, some programs must be sequentially executed in order to identify the area by detecting the change width and gradient of the density. However, there is a problem that the amount of programs increases and the processing takes time.

【0009】本発明は従来よりも簡単な機構で高速高精
度に画像特性別の領域識別を行う手段を提供することを
目的としている。
An object of the present invention is to provide a means for performing high-speed and high-accuracy region identification for each image characteristic with a mechanism simpler than the conventional one.

【0010】[0010]

【課題を解決するための手段】本発明は、画像特性別の
領域識別を行う手段として、ニューロ機構(あるいはニ
ューロコンピュータ)を使用することにより課題の解決
を図るものである。
The present invention is intended to solve the problems by using a neuro mechanism (or a neuro computer) as a means for discriminating regions by image characteristics.

【0011】図1は、本発明の原理図である。図におい
て、11は入力画像データであり原稿面に対応する画像
空間が、濃度値をもつ画素のマトリックスによって構成
されている。
FIG. 1 shows the principle of the present invention. In the figure, 11 is input image data, and the image space corresponding to the document surface is composed of a matrix of pixels having density values.

【0012】12はニューロ機構であり、入力画像デー
タ11から順次小領域を切り出して画像特性を識別し、
画像特性種別を出力する。小領域は、1ライン上の連続
する8画素単位、あるいは8ライン上の8×8の画素マ
トリックス単位などの大きさで選択される。CCD出力
信号波形の忠実なプロットに支障がない限り適当な画素
間隔でサンプリングしたものを入力とすることができ
る。
Reference numeral 12 denotes a neuro mechanism, which sequentially cuts small areas from the input image data 11 to identify image characteristics,
Outputs the image characteristic type. The small area is selected in a size of 8 continuous pixel units on one line, or an 8 × 8 pixel matrix unit on 8 lines. As long as the faithful plot of the CCD output signal waveform is not hindered, the sampled data at an appropriate pixel interval can be input.

【0013】13は、画像特性識別データであり、入力
画像データ11の画像空間に対応する画像空間を画像特
性別に区分けして示すデータである。
Numeral 13 is image characteristic identification data, which is data indicating an image space corresponding to the image space of the input image data 11 divided by image characteristics.

【0014】[0014]

【作用】図1において、入力画像データ11は、原稿を
CCD等でラスタ走査し、読み取った画像信号をディジ
タル信号に変換して得られるものであり、画素マトリッ
クスのサイズは、解像度に応じて定まる。ニューロ機構
12は、予め識別が必要な画像特性の種別についてサン
プル画像を用いた学習付けが行われている。ニューロ機
構12の構成およびその学習付けの方法については、周
知の技術が利用できる。
In FIG. 1, the input image data 11 is obtained by raster-scanning an original with a CCD or the like and converting the read image signal into a digital signal, and the size of the pixel matrix is determined according to the resolution. . The neuro mechanism 12 is preliminarily learned using sample images for types of image characteristics that require identification. A well-known technique can be used for the structure of the neuro mechanism 12 and the learning method.

【0015】複数種の画像特性を識別するニューロ機構
12は、学習付けされた複数種の画像特性を検出するフ
ィルタとして機能し、入力画像データ11から順次切り
出して与えられる小領域の画素値に基づいて画像特性を
判定し、判定結果をその小領域に対応する画像特性識別
データ13として出力する。入力画像データ11の画像
空間を小領域で全て走査しつくし、画像特性の判定が終
了したとき、画像特性識別データ13は図示されている
例のように、地図状に同一画像特性領域が区画された画
像空間を示すことができる。
The neuro mechanism 12 for discriminating a plurality of types of image characteristics functions as a filter for detecting the learned plurality of types of image characteristics, and is based on pixel values of a small area given by sequentially cutting out from the input image data 11. The image characteristic is determined by outputting the determination result as the image characteristic identification data 13 corresponding to the small area. When the image space of the input image data 11 is completely scanned in a small area and the image characteristic determination is completed, the image characteristic identification data 13 is divided into the same image characteristic area in a map shape as in the illustrated example. Image space can be shown.

【0016】ニューロ機構を用いて画像特性識別するこ
とにより識別処理が高速化され、また処理対象の原稿の
画像に基づく動的な学習が可能であるため、実際の運用
における状況に対応して常に高精度の識別性能を保持さ
せることができる。
The identification process is speeded up by identifying the image characteristics using the neuro mechanism, and the dynamic learning based on the image of the document to be processed is possible. Highly accurate identification performance can be retained.

【0017】[0017]

【実施例】図2は、図1におけるニューロ機構12の実
施例概念図である。図2の(a)はニューロ構造を示
し、入力層12aと、中間層12bと、出力層12cと
で構成されている。中間層15は複数層とすることがで
きる。入力層14は、入力画像データのライン(主走査
方向)上の変位と濃度の成分をもつよう2次元に配列さ
れていて、変位に対する濃度変化の情報が与えられる。
FIG. 2 is a conceptual diagram of an embodiment of the neuromechanism 12 in FIG. 2A shows a neuro structure, which includes an input layer 12a, an intermediate layer 12b, and an output layer 12c. The intermediate layer 15 can be a plurality of layers. The input layer 14 is two-dimensionally arranged so as to have the components of the displacement and the density on the line (main scanning direction) of the input image data, and the information of the density change with respect to the displacement is given.

【0018】図2の(b)は、ニューロの入力層14に
与えるCCDの出力信号波形を示し、適当にサンプリン
グされた複数のプロット点の信号が入力層14に同時に
与えられる。このときのサンプリングでは、波形の極大
値と極小値が必ず選択されるようにサンプリング位置を
部分的に変更可能にする。
FIG. 2B shows the output signal waveform of the CCD applied to the input layer 14 of the neuron, and the signals of a plurality of appropriately sampled plot points are applied to the input layer 14 at the same time. In the sampling at this time, the sampling position can be partially changed so that the maximum value and the minimum value of the waveform are always selected.

【0019】出力層16からは、識別された画像特性と
してバーコード、文字、点画、写真の4つの画像特性種
別が選択的に出力される。本発明実施例の全体構成は、
図10に示される従来装置の領域識別部5を図1のニュ
ーロ機構12で置き換えることによって容易に実現でき
る。ただしCCD出力信号波形をサンプリングする手段
が、入力バッファ4の後に付加され、また図1の画像特
性識別データ13は、図10の領域管理テーブル6に格
納される。
From the output layer 16, four image characteristic types of bar code, character, dot image and photograph are selectively output as the identified image characteristic. The overall configuration of the embodiment of the present invention is
This can be easily realized by replacing the area identification unit 5 of the conventional device shown in FIG. 10 with the neuro mechanism 12 of FIG. However, a means for sampling the CCD output signal waveform is added after the input buffer 4, and the image characteristic identification data 13 of FIG. 1 is stored in the area management table 6 of FIG.

【0020】次に、このようにして領域識別が行われた
結果に基づく画像処理の実施例として、バーコードの読
み取り処理について説明する。図3は、バーコード読み
取り処理を行う実施例装置の構成図である。図におい
て、1は原稿、2はCCD、3はA/D変換器、6はバ
ーコード領域の座標をもつ領域管理テーブル、7は画像
データファイル、8はバーコード読み取りを行う画像処
理部、12は領域識別を行うニューロ機構、14はディ
ジタルコンパレータ、15はヒストグラム算出部、16
は浮動スライス部、17は平均スライス部、18はバー
コードデコーダを示す。
Next, a bar code reading process will be described as an example of image processing based on the result of the area identification. FIG. 3 is a block diagram of an apparatus according to an embodiment that performs a barcode reading process. In the figure, 1 is a document, 2 is a CCD, 3 is an A / D converter, 6 is an area management table having coordinates of a bar code area, 7 is an image data file, 8 is an image processing unit for reading a bar code, 12 Is a neuro mechanism for area discrimination, 14 is a digital comparator, 15 is a histogram calculation unit, 16
Is a floating slice part, 17 is an average slice part, and 18 is a bar code decoder.

【0021】次に図4を用いて図3の画像処理部8の機
能について概略的な説明を行う。図4の(a)は原稿1
に記録されているバーコードの例であり、汚れやつぶれ
の雑音によってバーの幅が太くなったり、バー間がブリ
ッジされている状態を示す。図4の(b)は、(a)に
示された読み取り位置でバーコードを走査して2値化し
た場合の読み取りエラーによる結果データを示す。また
図4の(c)は、図4の(a)のような雑音の影響がな
い場合の正しい読み取り結果データである。
Next, the function of the image processing unit 8 shown in FIG. 3 will be schematically described with reference to FIG. FIG. 4A shows a manuscript 1
It is an example of the bar code recorded in, and shows the state that the width of the bar becomes thick due to the noise of dirt and crushing, or the bars are bridged. FIG. 4B shows the result data due to a reading error when the barcode is scanned and binarized at the reading position shown in FIG. Further, FIG. 4C is correct reading result data when there is no influence of noise as in FIG. 4A.

【0022】図4の(d)は、図3のディジタルコンパ
レータ14によって単純2値化処理を行った後、ヒスト
グラム算出部15によって垂直方向の画素の値を累積し
て作成した垂直ヒストグラムと、このヒストグラムを対
象に浮動スライス部16が実行した浮動スライスを示
す。この場合雑音の影響がかなり軽減された読み取りが
可能であることがわかる。
FIG. 4D shows a vertical histogram created by accumulating the values of pixels in the vertical direction by the histogram calculation unit 15 after the simple binarization process by the digital comparator 14 of FIG. The floating slice executed by the floating slice unit 16 for the histogram is shown. In this case, it can be seen that the reading is possible with the influence of noise considerably reduced.

【0023】図4の(e)は、ヒストグラム算出部15
によってまず水平方向に画素値を累積し、水平ヒストグ
ラムを作成し、平均スライス部17で雑音の影響を受け
る領域(斜線を付して示す)を検出する過程を示す。図
4の(f)は、ヒストグラム算出部15に、図4の
(e)に示す斜線領域を除いた残りの領域で垂直方向に
画素値を累積させて垂直ヒストグラムを作成し、その結
果に平均スライス部17が平均化スライスを実行した状
態を示す。この場合はさらに信頼性の高い読み取り結果
が得られる。
FIG. 4E shows the histogram calculation unit 15
First, the process of accumulating pixel values in the horizontal direction to create a horizontal histogram and detecting a region affected by noise (shown by hatching) in the average slice unit 17 will be described. FIG. 4F shows a histogram calculation unit 15 which creates vertical histograms by accumulating pixel values in the vertical direction in the remaining area excluding the hatched area shown in FIG. The state where the slicing unit 17 executes the averaging slice is shown. In this case, a more reliable reading result can be obtained.

【0024】バーコードデコーダ18は、浮動スライス
部16あるいは平均化スライス部17のスライス出力を
選択してバーコード変換し出力する。原稿1の画像品質
が良好である場合は処理の速い浮動スライス部16を使
用し、原稿1の画像品質が悪い場合は処理時間は長くな
っても信頼性の高い平均スライス部17を選択する。
The bar code decoder 18 selects the slice output of the floating slice unit 16 or the averaging slice unit 17, converts it into a bar code, and outputs it. When the image quality of the original 1 is good, the floating slice section 16 which is fast in processing is used, and when the image quality of the original 1 is bad, the average slice section 17 which is reliable even though the processing time is long is selected.

【0025】図5、図6、図7を用いて浮動スライス処
理の詳細を説明する。図5は浮動スライス処理のフロ
ー、図6はヒストグラム例、図7は図6のヒストグラム
例に基づく浮動スライス処理結果を示している。
Details of the floating slice processing will be described with reference to FIGS. 5, 6 and 7. 5 shows a flow of the floating slice processing, FIG. 6 shows an example of a histogram, and FIG. 7 shows a result of the floating slice processing based on the example of the histogram of FIG.

【0026】図5においては垂直方向のヒストグラム
生成の処理段階を示す。ここで、X座標番号をi、Y座
標番号をjとし、vijを座標Xi ijの画素の値(1/
0)、Vi を座標Xi における黒画素のカウント値(ヒ
ストグラムの高さ)を表すものとする。まずi,jの初
期値を0とし、vijの値をVi に加算する処理Vi =V
i +vijを、jの値がバーコードのバーの高さである最
大値に達するまで繰り返す。jがバーの高さに達したと
き、Vi の値をヒストグラム値として格納し、さらにi
=i+1としてX座標を1つ進め、再び上記の処理を繰
り返し、iがバーコードの幅に達したときの浮動スラ
イス処理に移る。
FIG. 5 shows the processing steps of histogram generation in the vertical direction. Here, the X coordinate number is i, the Y coordinate number is j, and v ij is the pixel value of the coordinate X i Y ij (1 /
0) and V i represent the count value (height of the histogram) of black pixels at the coordinate X i . First i, the initial value of j is 0, the value of v ij is added to V i processing V i = V
Repeat i + v ij until the value of j reaches the maximum value, which is the bar height of the bar code. When j reaches the height of the bar, the value of V i is stored as a histogram value and i
= I + 1, the X coordinate is advanced by one, the above process is repeated again, and the process proceeds to the floating slice process when i reaches the barcode width.

【0027】の浮動スライス処理の段階では、バーコ
ードの白黒交互の領域の幅をカウントする白カウントと
黒カウントが用いられる。まず白カウントと黒カウント
の格納アドレスを初期設定し、図示の式により浮動スラ
イスレベルAを算出する。ここでnは図6の21に示さ
れるスライスレベル算出対象データを決定するための作
業番号である。
At the stage of the floating slice processing, the white count and the black count for counting the width of the black and white alternating area of the bar code are used. First, the storage addresses of the white count and the black count are initialized, and the floating slice level A is calculated by the formula shown. Here, n is a work number for determining the slice level calculation target data indicated by 21 in FIG.

【0028】n=0のときのスライス対象位置のヒスト
グラム値V0がAよりも小さければ黒、大きければ白と
判定し、白カウントあるいは黒カウントの値は初めは0
なのでそれぞれの場合に1を設定し、nの値を+1して
スライスレベルAを再び算出し、V1をAと比較してそ
の結果が黒のとき白カウントが0でなければ白から黒の
領域に切り替わったものとして、直前の白領域のカウン
ト値(白バー幅)を格納し、比較結果が白のときは同様
にして直前の黒領域のカウント値(黒バー幅)を格納す
る。次に現領域に対応する黒あるいは白のカウントを+
1し、nを+1更新してスライスレベル算出処理に戻
り、以後、バーコードの全領域がスライス処理されるま
で同じ処理を繰り返す。
If the histogram value V0 of the slice target position when n = 0 is smaller than A, it is determined to be black, and if it is larger, it is determined to be white, and the white count or the black count value is initially 0.
Therefore, in each case, 1 is set, the value of n is incremented by 1 to calculate the slice level A again, V1 is compared with A, and when the result is black, if the white count is not 0, the area from white to black The count value of the immediately preceding white area (white bar width) is stored, and when the comparison result is white, the count value of the immediately preceding black area (black bar width) is similarly stored. Next, add the black or white count corresponding to the current area +
1 and n is updated by +1 to return to the slice level calculation processing, and thereafter, the same processing is repeated until the entire area of the barcode is sliced.

【0029】図6の例では、19のバーコードイメージ
データから20のヒストグラムが生成され、21のV
n-2 〜Vn+2 のスライスレベル算出対象データをnにし
たがって順次選択しながらスライスレベルAを算出し、
図7に示す例のように白/黒判定を行い、結果として
白、黒交互の領域の幅がカウントデータを用いて得られ
ることになる。この結果に基づき、バーコードデコード
処理が行われる。
In the example of FIG. 6, 20 histograms are generated from 19 barcode image data, and 21 histograms are generated.
Slice level A is calculated while sequentially selecting slice level calculation target data from n−2 to V n + 2 according to n,
White / black determination is performed as in the example shown in FIG. 7, and as a result, the width of the alternating white and black regions is obtained using the count data. Based on this result, barcode decoding processing is performed.

【0030】次に図8および図9を用いて、平均スライ
ス処理の詳細を説明する。図8は平均スライス処理のフ
ローであり、図9はヒストグラム例を示す。図8におい
て′は主走査方向(水平方向)のヒストグラム生成処
理段階、′は′で生成したヒストグラムから雑音影
響領域を判定する処理段階、′は雑音影響領域を除い
た残りの領域で垂直方向ヒストグラムを生成する処理段
階である。
Next, details of the average slice processing will be described with reference to FIGS. 8 and 9. FIG. 8 is a flow of average slice processing, and FIG. 9 shows an example of a histogram. In FIG. 8, 'is a histogram generation processing step in the main scanning direction (horizontal direction),' is a processing step for determining a noise influence area from the histogram generated in ', and'is a vertical histogram in the remaining area excluding the noise influence area. Is a processing step for generating.

【0031】′の処理は、図5のの処理と生成する
ヒストグラムの水平/垂直の相違はあっても動作は類似
している。′ではヒストグラムHj を求めると同時に
ヒストグラムの合計SUMを算出し、ヒストグラム平均
を求める準備も行っている。′の処理では、SUMの
値をバーの高さで除算して、ヒストグラム平均を求め、
この値をヒストグラムHj が超えているときは雑音の影
響を受けているものとしてフラグをセットする処理をバ
ーの高さまで繰り返して、雑音影響領域を決定する。
′の処理では、フラグがセットされた雑音影響領域を
除いて黒画素をカウントし、垂直方向のヒストグラム生
成を行っている。点以外は、図5のの処理と同じであ
る。
The processing of'is similar in operation to the processing of FIG. 5 although there is a horizontal / vertical difference in the generated histogram. In ′, the histogram H j is calculated, and at the same time, the total SUM of the histograms is calculated, and the histogram average is also prepared. In the process of ', the SUM value is divided by the height of the bar to obtain the histogram average,
When the histogram H j exceeds this value, the process of setting the flag as being influenced by noise is repeated up to the height of the bar to determine the noise influence region.
In the process of ', the black pixels are counted except for the noise-affected area in which the flag is set, and the histogram in the vertical direction is generated. Except for the points, the processing is the same as that of FIG.

【0032】図9の例では、バーコードのイメージデー
タ19に対して′の処理で22の走査方向ヒストグラ
ムが生成され、′の処理で雑音影響領域23が検出さ
れ、′の処理で垂直方向のヒストグラム24が生成さ
れている。
In the example of FIG. 9, scanning direction histograms of 22 are generated for the bar code image data 19 by the processing of ', noise affected areas 23 are detected by the processing of' and vertical processing is performed by the processing of '. A histogram 24 has been generated.

【0033】[0033]

【発明の効果】本発明により、多様な画像特性の情報が
混在している原稿の読み取りにおいて、任意の画像特性
をもつ領域の切り出しを迅速かつ高精度に行うことがで
き、画像処理の信頼性を高めることができる。
As described above, according to the present invention, in the reading of a document in which information of various image characteristics is mixed, it is possible to cut out a region having an arbitrary image characteristic quickly and highly accurately, and to improve the reliability of image processing. Can be increased.

【0034】またバーコード領域の読み取りにおいて、
雑音による画質の劣化があっても、エラーの少ない読み
取りが可能にされる。
In reading the bar code area,
Even if the image quality is deteriorated by noise, it is possible to read with less error.

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

【図1】本発明の原理図である。FIG. 1 is a principle diagram of the present invention.

【図2】ニューロ機構の実施例概念図である。FIG. 2 is a conceptual diagram of an embodiment of a neuro mechanism.

【図3】バーコード読取り処理を行う実施例装置の構成
図である。
FIG. 3 is a configuration diagram of an apparatus according to an embodiment that performs a barcode reading process.

【図4】実施例装置のバーコード読取り機能の説明図で
ある。
FIG. 4 is an explanatory diagram of a bar code reading function of the embodiment apparatus.

【図5】本発明実施例における浮動スライス処理のフロ
ー図である。
FIG. 5 is a flow chart of floating slice processing in the embodiment of the present invention.

【図6】浮動スライス処理のヒストグラム例の説明図で
ある。
FIG. 6 is an explanatory diagram of an example of a histogram of floating slice processing.

【図7】浮動スライス処理結果の説明図である。FIG. 7 is an explanatory diagram of a floating slice processing result.

【図8】本発明実施例における平均スライス処理のフロ
ー図である。
FIG. 8 is a flowchart of average slice processing according to the embodiment of the present invention.

【図9】平均スライス処理のヒストグラム例の説明図で
ある。
FIG. 9 is an explanatory diagram of a histogram example of average slice processing.

【図10】従来の画像処理装置の構成図である。FIG. 10 is a block diagram of a conventional image processing apparatus.

【図11】CCD出力のビデオ信号波形図である。FIG. 11 is a video signal waveform diagram of a CCD output.

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

11 入力画像データ 12 ニューロ機構 13 画像特性識別データ 11 input image data 12 neuro mechanism 13 image characteristic identification data

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成4年9月28日[Submission date] September 28, 1992

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】全図[Correction target item name] All drawings

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図1】 [Figure 1]

【図7】 [Figure 7]

【図11】 FIG. 11

【図2】 [Fig. 2]

【図3】 [Figure 3]

【図4】 [Figure 4]

【図5】 [Figure 5]

【図6】 [Figure 6]

【図8】 [Figure 8]

【図9】 [Figure 9]

【図10】 [Figure 10]

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 原稿をライン走査して画素単位に読み取
り、得られた画像情報中の特定の画像特性をもつ領域に
ついて定められた処理をする画像処理装置において、 任意の領域の画素の値を入力とするニューロ機構を設け
て、上記特定の画像特性をもつ領域を、識別し切り出す
ことを特徴とする画像処理装置。
1. An image processing apparatus that performs line scanning of an original document to read it in pixel units, and performs a predetermined process on an area having specific image characteristics in the obtained image information. An image processing apparatus, characterized by providing a neuro mechanism as an input to identify and cut out a region having the above-mentioned specific image characteristics.
【請求項2】 請求項1において、切り出された領域は
バーコード領域であり、かつバーコード領域内のバーコ
ードはラインと平行に配置されており、当該バーコード
領域の画素の値をラインごとに累積して水平方向のヒス
トグラムを作成し、作成されたヒストグラムの値から雑
音の多いラインを識別し、当該雑音の多いラインを除い
た残りの各ラインについて、ライン上の同一画素位置の
画素の値を累積して垂直方向のヒストグラムを作成し、
作成されたヒストグラムの値を固定の閾値でスライスし
てバーコードを2値化することを特徴とする画像処理装
置。
2. The clipped area according to claim 1, wherein the bar code area is arranged, and the bar code in the bar code area is arranged in parallel with a line, and the pixel value of the bar code area is line by line. To create a horizontal histogram, identify noisy lines from the created histogram values, and for each of the remaining lines excluding the noisy lines, the pixels at the same pixel position on the line. Accumulate values to create a vertical histogram,
An image processing apparatus characterized by binarizing a barcode by slicing the created histogram value with a fixed threshold value.
【請求項3】 請求項1において、切り出された領域は
バーコード領域であり、かつバーコード領域内のバーコ
ードはラインと平行に配置されており、当該バーコード
領域の各ラインについてライン上の同一画素位置の画素
の値を累積することによって垂直方向のヒストグラムを
作成し、作成されたヒストグラムを浮動スライスするこ
とにより2値化することを特徴とする画像処理装置。
3. The bar code area according to claim 1, wherein the bar code area is arranged parallel to a line, and each line of the bar code area is on a line. An image processing apparatus characterized in that a histogram in the vertical direction is created by accumulating values of pixels at the same pixel position, and the created histogram is binarized by floating slice.
JP4253209A 1992-09-22 1992-09-22 Image processing device Expired - Fee Related JP2812619B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4253209A JP2812619B2 (en) 1992-09-22 1992-09-22 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4253209A JP2812619B2 (en) 1992-09-22 1992-09-22 Image processing device

Publications (2)

Publication Number Publication Date
JPH06103399A true JPH06103399A (en) 1994-04-15
JP2812619B2 JP2812619B2 (en) 1998-10-22

Family

ID=17248079

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4253209A Expired - Fee Related JP2812619B2 (en) 1992-09-22 1992-09-22 Image processing device

Country Status (1)

Country Link
JP (1) JP2812619B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011013947A (en) * 2009-07-02 2011-01-20 Casio Computer Co Ltd Barcode analyzer and program
JP2011233099A (en) * 2010-04-30 2011-11-17 Optoelectronics Co Ltd Optical information reader and optical information reading method
US10884737B2 (en) 2018-04-27 2021-01-05 Brother Kogyo Kabushiki Kaisha Image processing device and image processing method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61125684A (en) * 1984-11-22 1986-06-13 Nippon Telegr & Teleph Corp <Ntt> Bar code reader for semiconductor substrate

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61125684A (en) * 1984-11-22 1986-06-13 Nippon Telegr & Teleph Corp <Ntt> Bar code reader for semiconductor substrate

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011013947A (en) * 2009-07-02 2011-01-20 Casio Computer Co Ltd Barcode analyzer and program
JP2011233099A (en) * 2010-04-30 2011-11-17 Optoelectronics Co Ltd Optical information reader and optical information reading method
US10884737B2 (en) 2018-04-27 2021-01-05 Brother Kogyo Kabushiki Kaisha Image processing device and image processing method

Also Published As

Publication number Publication date
JP2812619B2 (en) 1998-10-22

Similar Documents

Publication Publication Date Title
CA1204672A (en) Multi-function image processing system
EP1330111B1 (en) Automatic image quality evaluation and correction technique
JP2001251507A (en) Image processor
JPH07231388A (en) System and method for detection of photo region of digital image
JPH1084475A (en) Image area discrimination method and image-processing unit
JP3040896B2 (en) Image processing device
US6192153B1 (en) Image processing device
JP2812619B2 (en) Image processing device
JPH06187496A (en) Method for discrimination of print-out
JP3073837B2 (en) Image region separation device and image region separation method
EP0870276B1 (en) A method for transforming a gray-level image into a black-and-white image
JP3479161B2 (en) Image processing device
US6650775B1 (en) Method and apparatus for implementing a streaming two-dimensional digital image segmentation
JPH0775395B2 (en) Image processing device
JP2877548B2 (en) Document image attribute discrimination method
JP3210378B2 (en) Image input device
JP3358133B2 (en) Image processing device
JPH10124665A (en) Method for processing picture and device therefor
EP0974931A1 (en) Method and apparatus for identifying a plurality of sub-images in an input image
JPH0546749B2 (en)
JP2910926B2 (en) Optimal binarization method
JP2853140B2 (en) Image area identification device
JP3020293B2 (en) Attribute determination method
JPS6331825B2 (en)
JPH0561677B2 (en)

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees