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

JPS5916315B2 - Optimal level selection device - Google Patents

Optimal level selection device

Info

Publication number
JPS5916315B2
JPS5916315B2 JP50078724A JP7872475A JPS5916315B2 JP S5916315 B2 JPS5916315 B2 JP S5916315B2 JP 50078724 A JP50078724 A JP 50078724A JP 7872475 A JP7872475 A JP 7872475A JP S5916315 B2 JPS5916315 B2 JP S5916315B2
Authority
JP
Japan
Prior art keywords
output
selection
circuit
value
level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP50078724A
Other languages
Japanese (ja)
Other versions
JPS522338A (en
Inventor
哲夫 三浦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP50078724A priority Critical patent/JPS5916315B2/en
Publication of JPS522338A publication Critical patent/JPS522338A/en
Publication of JPS5916315B2 publication Critical patent/JPS5916315B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Description

【発明の詳細な説明】 この発明は書状に記載された文字のような2次元的な図
形を光学的に走査し、その走査信号を変換して得た多値
化ディジタル信号から、前記図形の濃淡に応じた二値化
ディジタル信号を得るようにした図形走査装置における
二値化基準の最適準位を選択する装置に関するものであ
る。
DETAILED DESCRIPTION OF THE INVENTION This invention optically scans a two-dimensional figure, such as a character written on a letter, and converts the scanning signal to obtain a multilevel digital signal. The present invention relates to a device for selecting the optimum level of a binarization standard in a graphic scanning device which obtains a binarized digital signal according to shading.

白紙などの表面に記載された印字、手書き文字その他の
図形などは、原則とし秩’゛黒’’二種の信号として検
出され得るものであるが、例えば文字ごとの素線の太さ
、字型の特殊性(字型の不均一性)、部分的な切れ、か
すれなどをはじめとする各種の要因から、これらを光学
的に走査して変換したディジタル信号は自ずと多値であ
り、これを例えば単純平均値として出力するのみにおい
ては、文字などを正確に再生復元させることは困難であ
る。
Printed characters, handwritten characters, and other figures written on the surface of blank paper can, in principle, be detected as two types of signals: "chichi" and "black." Due to various factors such as the uniqueness of the type (non-uniformity of the character shape), partial cuts, blurring, etc., the digital signals obtained by optically scanning and converting these are naturally multi-valued. For example, it is difficult to accurately reproduce and restore characters, etc., only by outputting them as simple average values.

したがつて、このような場合においては、図形走査情報
を一定の基準値に照合させて単純化するために、例えば
濃淡準位選択装置から与えられる閾値によつて前記図形
から得られた多値の濃淡ディジタル情報を二値化する手
段を採用するもので0 あるが、このようにして二値化
された図形からの情報は、前記閾値の選択如何によつて
その品質が極端に左右されるものであることが知られて
いる。
Therefore, in such a case, in order to simplify the figure scanning information by comparing it with a certain reference value, for example, the multivalued value obtained from the figure by the threshold value given from the density level selection device is This method employs a method of binarizing the gray level digital information of 0. However, the quality of the information from the figures binarized in this way is extremely influenced by the selection of the threshold value. It is known to be a thing.

この発明は以上のような従来の諸点に鑑みてなされたも
のであつて、図形走査処理情報を処理す5 ることによ
つて最適なる二値化基準を選定できるようにし、例えば
、郵便物自動処理システムにおける郵便番号OCR出力
系に最適なる二値化機構を提供しようとするものであり
、詳しくは、図形を光学的に走査して得た多値の濃淡デ
ィジタル情0 報を濃淡レベルの区分ごとに加算し、各
レベルの生起頻度を計数する複数個の加算器と、隣接す
る一対の加算器における加算値を順次読み出す選択回路
と、同選択回路における一対の出力を比較減算する比較
器と、同比較器の出力を受け異なる25つの閾値と比較
し加算器の計数値の変動の仕方に応じて3つの出力を出
す三値化回路と、三値化回路の出力を受けて2値化する
ための閾値に対応するタイミングを作り出す論理回路と
を備えたことを特徴とする最適準位選択装置である。”
0 以下添付図面に示す一実施例を参照してこの発明を
詳細に説明すると、第1図はこの発明の一実施例を示す
ブロック図、第2図は第1図における論理回路部の一構
成例を示すブロック図、第3図a、bは、第1図におけ
る各加算器の濃度分布を05示す図であり、aは文字品
質の良い場合、bは文字品質の悪い場合を示し縦軸は各
単位ごとの出現頻度、横軸は濃度準位を示したものであ
る。
The present invention has been made in view of the above-mentioned conventional points, and by processing graphic scanning processing information5, it is possible to select the optimum binarization standard. The purpose is to provide a binarization mechanism that is optimal for the postal code OCR output system in a processing system, and more specifically, it divides multivalued grayscale digital information obtained by optically scanning a figure into grayscale levels. a plurality of adders that count the frequency of occurrence of each level, a selection circuit that sequentially reads out the added values of a pair of adjacent adders, and a comparator that compares and subtracts a pair of outputs from the same selection circuit. , a ternarization circuit that receives the output of the comparator, compares it with 25 different threshold values, and outputs three outputs depending on how the count value of the adder changes, and a ternarization circuit that receives the output of the ternarization circuit and converts it into two values. An optimal level selection device characterized by comprising a logic circuit that generates timing corresponding to a threshold value for determining the optimum level. ”
0 The present invention will be described in detail below with reference to an embodiment shown in the attached drawings. FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 shows a configuration of the logic circuit section in FIG. 1. The block diagram illustrating an example, Figures 3a and 3b, is a diagram showing the density distribution of each adder in Figure 1, where a indicates the case of good character quality and b indicates the case of poor character quality, and the vertical axis is the appearance frequency of each unit, and the horizontal axis shows the concentration level.

これらの図において、フライング・スポツト・スキヤナ
のような光学的走査装置からなる走査器1は、図示しな
い搬送手段によつて一定方向に移送される文書、郵便物
などの資料2に表記された文字などの図形を走査するよ
うにしており、資料2を走査して得た光学的情報を、例
えば太陽電池などのような光電変換器3にて電気信号に
変換しA−D変換器4を介して記憶装置5に供給される
ようになつており、同記憶装置5において、資料2に表
記された図形を、その濃淡に対応した多値のデイジタル
情報として記憶するようになつている。また、前記A−
D変換器4に入力系路Aを介して接続された複数個の加
算器Al,A2・・・An−,,Anは、例えば加算器
A1を淡色(白)の最大レベルに対応させ、Anを濃色
(黒)の最大レベルに対応させてその間をそれぞれある
一定間隔のレベルごとに区分し、前記多値のデイジタル
情報を最大n個に区分してそれぞれの区分ごとに各加算
器で各区分(レベノ(ハ)の生起数が加算されるように
したものである。
In these figures, a scanner 1 consisting of an optical scanning device such as a flying spot scanner scans characters written on materials 2 such as documents and mail that are transported in a fixed direction by a conveying means (not shown). The optical information obtained by scanning the document 2 is converted into an electrical signal by a photoelectric converter 3 such as a solar cell, and then sent via an A-D converter 4. The data is supplied to the storage device 5, and the storage device 5 stores the graphics written in the document 2 as multivalued digital information corresponding to the shading of the graphics. In addition, the above A-
A plurality of adders Al, A2, . corresponds to the maximum level of dark color (black), and divides it into levels at a certain interval between them, divides the multivalued digital information into a maximum of n pieces, and uses each adder for each division. The number of occurrences of the category (Leveno (c)) is added.

さらに、制御系路Fを介して走査器1に接続された制御
部6は、制御入力系路A′を経て前記複数個の加算器A
l,A2・・・An−1,Anとそれぞれ接続し、また
、制御系路Sを経て選択回路7、計数器8にそれぞれ接
続して、加算器Al,A2・・・・・・An−1,An
1選択回路7および計数器8を所定のタイミングで作動
させるようにしたものであるが、前記加算器Al,A2
・・・.An?1,Anはそれぞれ選択回路7に接続さ
れていて、制御部6からの制御信号によつて隣接する一
対の加算器、例えばAl7A2)A2FA3)100A
n−1?An−]FA[1の加算内容を順次読み出して
比較器9に送出できるようにしたものであり、計数器8
は前記制御信号の発生送入回数を計数すると同時に、こ
の計数値Dを再生出力レジスタ12に送入するようにな
つている。
Furthermore, the control unit 6 connected to the scanner 1 via the control system F connects the plurality of adders A through the control input system A'.
l, A2...An-1, An, respectively, and are also connected to the selection circuit 7 and the counter 8 via the control path S, and adders Al, A2...An- 1.An
1 selection circuit 7 and counter 8 are operated at predetermined timing, and the adders Al, A2
・・・. An? 1 and An are each connected to a selection circuit 7, and a pair of adjacent adders, e.g., Al7A2)A2FA3)100A
n-1? An-]FA[1 addition contents can be sequentially read out and sent to the comparator 9, and the counter 8
is designed to count the number of times the control signal is generated and sent, and at the same time send this counted value D to the reproduction output register 12.

前記比較器9は、選択回路7から送出された隣接する加
算器の内容7A,7Bを比較減算し、7B−7Aを三値
回路10へ送出する。
The comparator 9 compares and subtracts the contents 7A and 7B of adjacent adders sent from the selection circuit 7, and sends 7B-7A to the ternary circuit 10.

三値回路10においては、2つの閾値をもち、入力が第
1の閾値より小のとき、第1及び第2の閾値の間にある
とき、及び第2の閾値より大きいときにそれぞれ応じて
、出力101,102,103を出力する。ここで第1
の閾値はある大きさをもつた負の値、第2の閾値はある
大きさをもつた正の値にそれぞれ設定される。したがつ
て7B−7Aが大きな負の値となつたときには出力10
1が、7B−7Aが大きな正の値となつたときには出力
103が、その間では出力102が出力されることにな
る。三値回路10の出力は論理回路11に送られる。
The ternary circuit 10 has two thresholds, and depending on when the input is smaller than the first threshold, between the first and second thresholds, and larger than the second threshold, Outputs 101, 102, and 103 are output. Here the first
The threshold value is set to a negative value with a certain size, and the second threshold value is set to a positive value with a certain size. Therefore, when 7B-7A becomes a large negative value, the output is 10
When 1 and 7B-7A become large positive values, output 103 is output, and during that time, output 102 is output. The output of the ternary circuit 10 is sent to the logic circuit 11.

論理回路11の構成を第2図に示す。論理回路11は第
2図に示すように三値回路10の出力のうち101,1
02を受けている。今、濃度準位に対する加算値の変化
を第3図aのように考えて、論理回路の説明をしてゆく
。第3図aの点P1の所で前述の7B−7Aの値が大き
く負になり、大きな負の傾斜であることを検知し、三値
回路10から出力101が発生し、フリツプフロツプF
Flをセツトする。その後計数器8(第1図)からの制
御信号の発生の推移により、第3図の点P2の所で三値
回路10から出力102が出力される。フリツプフロツ
プFFlからのセツト出力と出力102はアンドゲート
ANDで積がとられ、フリツプフロツプFF2をセツト
する。フリツプフロツプFF2の出力は論理回路11の
出力として、再生出力レジスタ12に送られる。論理回
路11から出力が出るタイミングの意味について説明す
ると、第3図aの場合、図形走査情報において地色に相
当する濃度の所が多く、また文字に相当する濃度も図の
右側に顕著に出ており、比較的良好な品質である。した
がつて、この場合中間レベルの所の濃度準位の閾値で二
値化すれば、良好な二値信号が得られることがわかる。
論理回路11の出力タイミングはこの適当な濃度準位を
表わしており、この出力で計数器8の計数値Dをレジス
タ12にセツトすれば、この値が二値化のための閾値を
表わす。次に第3図bに示すような走査対象の品質が良
くない場合について説明する。
The configuration of the logic circuit 11 is shown in FIG. As shown in FIG.
I am receiving 02. Now, the logic circuit will be explained by considering the change in the addition value with respect to the concentration level as shown in FIG. 3a. At point P1 in FIG. 3A, the value of 7B-7A becomes significantly negative, a large negative slope is detected, and output 101 is generated from the three-value circuit 10, and the flip-flop F
Set Fl. Thereafter, depending on the progression of the generation of the control signal from the counter 8 (FIG. 1), an output 102 is output from the three-value circuit 10 at point P2 in FIG. The set output from flip-flop FF1 and output 102 are multiplied by an AND gate to set flip-flop FF2. The output of the flip-flop FF2 is sent to the reproduction output register 12 as the output of the logic circuit 11. To explain the meaning of the timing at which the output is output from the logic circuit 11, in the case of FIG. The quality is relatively good. Therefore, it can be seen that in this case, if binarization is performed using the threshold value of the concentration level at the intermediate level, a good binary signal can be obtained.
The output timing of the logic circuit 11 represents this appropriate concentration level, and if the count value D of the counter 8 is set in the register 12 at this output, this value represents the threshold value for binarization. Next, a case where the quality of the scanning object is poor as shown in FIG. 3b will be explained.

この場合文字の濃度が低く、地色レベルに近いものが多
くなつており、したがつて文字部分に相当する極大値が
なく、中間レベルとの区別が困難である。しかし、この
場合も文字部分で比較的平担な勾配が出現することが期
待でき、第3図aと同様に適切な閾値レベルが求まる。
すなわち点P3で三値回路10から出力101が出、P
4で出力102が出力して、閾値が決まる。したがつて
、再生出力レジスタ12は、論理回路11の出力パルス
によつて前記計数器8の計数値Dをセツトし、所定の閾
値を算出するものであつて、同閾値にもとづいて前記記
憶装置5に記憶された図形にもとづく多値の濃淡デイジ
タル情報を二値化することができるものであるが、この
場合の閾値は、個々の図形ごとの走査で得られた図形に
もとづく多値の濃淡デイジタル情報にもとづいて設定さ
れたものであるから、当該多値の濃淡デイジタル情報に
最適なる二値化認識を行ない得る最適準位を図形ごとに
得られるものであつて、高品質、高信頼性の二値化信号
を得ることができる。
In this case, the density of the characters is low, and many of them are close to the ground color level, so there is no maximum value corresponding to the character part, and it is difficult to distinguish it from the intermediate level. However, in this case as well, it can be expected that a relatively flat slope will appear in the character portion, and an appropriate threshold level can be found in the same manner as in FIG. 3a.
That is, the output 101 is output from the three-value circuit 10 at point P3, and P
4, the output 102 is output and the threshold value is determined. Therefore, the reproduction output register 12 sets the count value D of the counter 8 using the output pulse of the logic circuit 11, and calculates a predetermined threshold value. It is possible to binarize multi-value shading digital information based on the figures stored in 5. In this case, the threshold value is the multi-value shading digital information based on the figure obtained by scanning each individual figure. Since it is set based on digital information, it is possible to obtain the optimum level for each figure that can perform the optimal binarization recognition for the multivalued gray scale digital information, and is of high quality and high reliability. It is possible to obtain a binary signal of

そのために、各準位ごとの出現頻度を縦軸に、濃度準位
を横軸に示した第3図の濃度分布図において、濃淡が明
確に区分されて示された図形品質の良い場合(同図a)
はもとより、濃淡分布が明確でない図形品質の悪い場合
(同図b)であつても、これらの図形品質に対応した閾
値を設定し得るものであるために、良好なる二値化信号
を得ることが可能となる。
For this reason, in the concentration distribution map shown in Figure 3, which shows the appearance frequency of each level on the vertical axis and the concentration level on the horizontal axis, in the case of good graphic quality (the same Diagram a)
In addition, even in the case of poor graphic quality where the density distribution is not clear (see figure b), it is possible to set a threshold that corresponds to the graphic quality, so it is possible to obtain a good binarized signal. becomes possible.

以上詳述したように、この発明の選択装置においては、
図形を光学的に走査して得た多値の濃淡デイジタル情報
にもとづいて選定、設定された閾値を用いて前記情報を
二値化するものであるから、たとえ図形に力ズレや部分
的な切れがあろうとも、当該図形に最適なる閾値がその
都度設定されることになり、いかなる図形に対しても高
品質、高信頼性の二値化情報を得ることができ、殊に図
形品質が不均一な資料を対象とする図形走査装置におけ
る最適準位選択装置として有効である。
As detailed above, in the selection device of the present invention,
Since the information is binarized using a threshold value selected and set based on the multivalued grayscale digital information obtained by optically scanning the figure, even if the figure has a force deviation or partial cut, Regardless of the shape, the optimal threshold for the shape is set each time, and high-quality and highly reliable binarized information can be obtained for any shape, especially if the shape quality is poor. It is effective as an optimal level selection device in a graphic scanning device that targets uniform materials.

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

第1図はこの発明の一実施例を示すプロツク図、第2図
はその一部のプロツク図、第3図は走査によつて得た多
値の濃淡デイジタル情報の分布図で縦軸は濃度準位ごと
の出現頻度を、横軸は濃度準位をそれぞれ示している。 1・・・・・・走査器、2・・・・・・資料、3・・・
・・・光電変換器、4・・・・・・A−D変換器、5・
・・・・・記憶装置、6・・・・・・制御部、7・・・
・・・選択回路、8・・・・・・計数器、9・・・・・
・比較器、10・・・・・・三値化回路、11・・・・
・・論理回路、12・・・・・・再生出力レジスタ、A
l,A2,・・・An−1,An・・・・・・加算器。
Fig. 1 is a block diagram showing one embodiment of the present invention, Fig. 2 is a partial block diagram thereof, and Fig. 3 is a distribution diagram of multivalued grayscale digital information obtained by scanning, and the vertical axis is the density. The frequency of appearance for each level is shown, and the horizontal axis shows the concentration level. 1...Scanner, 2...Document, 3...
...Photoelectric converter, 4...A-D converter, 5.
...Storage device, 6...Control unit, 7...
...Selection circuit, 8...Counter, 9...
・Comparator, 10...Thinarization circuit, 11...
...Logic circuit, 12...Reproduction output register, A
l, A2, . . . An-1, An . . . Adder.

Claims (1)

【特許請求の範囲】[Claims] 1 図形を光学的に走査して得た多値の濃淡デイ ジタ
ル情報を濃淡レベルの区分ごとに生起数加算する複数個
の加算器と、隣接する一対の前記加算器における加算値
を順次読み出す選択回路と、前記選択回路における一対
の出力を減算する比較器と、前記比較器の出力を受け減
算結果があらかじめ定められた値となつたとき出力を出
す論理回路と、前記論理回路からの出力のタイミングを
基に閾値を決める手段とを具備することを特徴とする最
適準位選択装置。
1. A selection of a plurality of adders that add the number of occurrences of multivalued grayscale digital information obtained by optically scanning a figure for each grayscale level division, and a selection of sequentially reading out the added values in a pair of adjacent adders. a comparator that subtracts a pair of outputs from the selection circuit; a logic circuit that receives the output of the comparator and outputs an output when the subtraction result becomes a predetermined value; An optimal level selection device comprising: means for determining a threshold value based on timing.
JP50078724A 1975-06-24 1975-06-24 Optimal level selection device Expired JPS5916315B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP50078724A JPS5916315B2 (en) 1975-06-24 1975-06-24 Optimal level selection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP50078724A JPS5916315B2 (en) 1975-06-24 1975-06-24 Optimal level selection device

Publications (2)

Publication Number Publication Date
JPS522338A JPS522338A (en) 1977-01-10
JPS5916315B2 true JPS5916315B2 (en) 1984-04-14

Family

ID=13669818

Family Applications (1)

Application Number Title Priority Date Filing Date
JP50078724A Expired JPS5916315B2 (en) 1975-06-24 1975-06-24 Optimal level selection device

Country Status (1)

Country Link
JP (1) JPS5916315B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0677269B2 (en) * 1984-03-10 1994-09-28 日本電気株式会社 Graphic quantizer
JPS60199406A (en) * 1984-03-26 1985-10-08 アイシン精機株式会社 Elastic support
JPS60207613A (en) * 1984-03-29 1985-10-19 アイシン精機株式会社 Elastic support

Also Published As

Publication number Publication date
JPS522338A (en) 1977-01-10

Similar Documents

Publication Publication Date Title
JP2744619B2 (en) Image processing device
JP3313399B2 (en) Image processing device
GB2143102A (en) Image processing apparatus which discriminates between different image data
JP2727549B2 (en) Optimal image quality selection device
JPS6198069A (en) Image processing device
JP2967014B2 (en) Image processing device
JP4447194B2 (en) Image binarization method
JPS5916315B2 (en) Optimal level selection device
US5301039A (en) Image processing apparatus with pixel tone discrimination
JPH0654180A (en) Method and device for image area separation
JPS5813944B2 (en) optical character reader
EP0504576A2 (en) Document scanner
JP3358133B2 (en) Image processing device
JP2877548B2 (en) Document image attribute discrimination method
JPS6226227B2 (en)
JPH04134578A (en) Picture binarizing system
JP2757868B2 (en) Image information binarization processing circuit
JPS6248874B2 (en)
JP2897351B2 (en) Marker removal device
JPH01292477A (en) Image processor
JPH05282489A (en) Method for deciding attribute of document image
JPH06303424A (en) Dot area discrimination device
JPS58104571A (en) Picture signal binary-coding system
JPH0677269B2 (en) Graphic quantizer
JPH06131498A (en) Total decision system for recognition result of optical type character recognizing device