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
JPH0226265B2 - - Google Patents
[go: Go Back, main page]

JPH0226265B2 - - Google Patents

Info

Publication number
JPH0226265B2
JPH0226265B2 JP56102934A JP10293481A JPH0226265B2 JP H0226265 B2 JPH0226265 B2 JP H0226265B2 JP 56102934 A JP56102934 A JP 56102934A JP 10293481 A JP10293481 A JP 10293481A JP H0226265 B2 JPH0226265 B2 JP H0226265B2
Authority
JP
Japan
Prior art keywords
side edge
scanning
image
scanning direction
sub
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 - Lifetime
Application number
JP56102934A
Other languages
Japanese (ja)
Other versions
JPS584489A (en
Inventor
Atsushi Shimoyama
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP56102934A priority Critical patent/JPS584489A/en
Publication of JPS584489A publication Critical patent/JPS584489A/en
Publication of JPH0226265B2 publication Critical patent/JPH0226265B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/24Aligning, centring, orientation detection or correction of the image

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Character Input (AREA)
  • Conveying Record Carriers (AREA)

Description

【発明の詳細な説明】 本発明は光学文字読取装置等における帳票の側
端位置を検出する方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a method for detecting the side edge position of a form in an optical character reading device or the like.

一般に光学文字読取装置においては帳票を走行
させ、帳票走行方向と直角方向を主走査方向と
し、帳票走行方向の逆方向を副走査方向とし、主
走査方向には帳票の一方の側端から他方の側端ま
で、また副走査方向には1行分の文字を完全に含
む一定範囲を走査し、画像を2値情報に変換して
一たん画像メモリに記憶したあと、この中から1
文字分の画像を切出し、必要によつては後述の認
識作業を容易にするため前処理を施し、切出画像
の特徴を抽出し、これをあらかじめ別に記憶して
ある基準パターンと比較するなどして切出し画像
の認識すなわち文字の読取りをおこなつている。
こゝで帳票が正しい位置を走行せず一方に片寄つ
て走行する場合には各の切出し位置に誤差が生ず
るので、帳票の片寄り量を測定し、これによつて
切出し位置の補正をおこなつている。この片寄り
量の測定においては湿気などによる帳票幅の変化
をも考慮して帳票の両側端の位置の測定がおこな
われる。従来、この帳票の側端位置の測定は、前
記1行分の文字を含む一定範囲を画像メモリに記
憶したあと、画像メモリの上の1走査分の画像記
憶内容を調べることによつてこれをおこなつてい
た。ところが近時、ミシン目加工を施し切離した
帳票を用いることが多くこのような帳票の端部に
は第1図に示すように規則的なピツチでほゞ一定
幅の不整部3が生じ、この不整部3は通常凸状で
あることが多くその高さは2mmにも及ぶことがあ
る。このため前記の帳票の側端位置の測定値に誤
差を生じ、1文字分の画像の切出しが正確におこ
なわれず、したがつて文字の読取りが正確におこ
なわれないという問題があつた。
Generally, in an optical character reading device, a form is run, the direction perpendicular to the form running direction is the main scanning direction, the direction opposite to the form running direction is the sub-scanning direction, and the main scanning direction is from one side edge of the form to the other side. After scanning a certain range that completely includes one line of characters up to the side edge and in the sub-scanning direction, converting the image into binary information and temporarily storing it in the image memory, one of these is scanned.
The image for the characters is cut out, if necessary, preprocessing is performed to facilitate the recognition work described later, the features of the cut out image are extracted, and this is compared with a reference pattern stored separately in advance. This is used to recognize cut-out images, that is, to read characters.
If the form does not travel in the correct position but shifts to one side, an error will occur in each cutting position, so measure the amount of deviation of the form and use this to correct the cutting position. ing. In measuring the amount of deviation, the positions of both side edges of the form are measured, taking into consideration changes in the form width due to humidity and the like. Conventionally, the side edge position of a form has been measured by storing a certain range including one line of characters in an image memory, and then checking the stored image content for one scan on the image memory. I was doing it. However, recently, perforated and separated forms are often used, and as shown in FIG. This irregular portion 3 is usually convex and has a height of up to 2 mm. This causes an error in the measured value of the position of the side edge of the form, and there is a problem in that the image for one character cannot be accurately cut out, and therefore the characters cannot be read accurately.

本発明はこのような問題を解決するためになさ
れたものであつて、その目的とするところは、帳
票の側端にミシン目加工による不整部があつても
帳票の側端位置の測定が正確におこなわれ、正確
な文字読取りのおこなわれる光学文字読取装置を
得ることにある。
The present invention has been made to solve these problems, and its purpose is to make it possible to measure the position of the side edge of a form even if the side edge of the form has irregularities due to perforations. To obtain an optical character reading device which can accurately read characters.

上記の目的を達成するため、本発明は、相対移
動する帳票の相対移動方向を副走査方向とし、該
副走査方向に交叉する様に検知器を配置し、該検
知器の走査により該帳票の画像を得て、該画像か
ら帳票の側端位置を測定するものにおいて、一定
幅の不整部が所定間隔で側端位置に出現する該帳
票に対して、3回以上の走査による各測定値を、
副走査方向の間隔で少なくとも該不整部の幅以上
とし、且つ該不整部の出現間隔以内とした事によ
り得た該3回の測定値の多数決を取る手段を設
け、該多数決によつて該帳票の側端位置を決定す
ることを特徴とする。
In order to achieve the above object, the present invention sets the relative moving direction of a relatively moving form as a sub-scanning direction, arranges a detector so as to intersect with the sub-scanning direction, and detects the form by scanning with the detector. In a method that obtains an image and measures the position of the side edge of a form from the image, each measurement value is obtained by scanning three or more times for the form in which an irregular part of a constant width appears at the side edge position at a predetermined interval. of,
A means is provided for taking a majority vote of the three measurement values obtained by making the interval in the sub-scanning direction at least the width of the irregular part and within the appearance interval of the irregular part, and by the majority vote. The present invention is characterized in that the position of the side edge of the form is determined.

以下、本発明を実施例によつて詳細に説明す
る。第2図は本発明実施例の構成と機能を示すブ
ロツク図である。走査部20は帳票10の走査方
向に対し直角方向を主走査方向とし帳票走査方向
と逆の方向を副走査方向とし、主走査方向には帳
票の一方の側端から他方の側端まで、また副走査
方向には1行分の文字を完全に含む一定範囲を走
査し、画像を2値情報に変換しゲート30を介し
て画像メモリ40に記憶する。マイクロプロセツ
サ50は画像メモリ40の記憶内容を調べ、走査
部が定められた範囲の走査をおこなつたことを確
認してゲート30を閉じるとともに帳票走行制御
部60を介して帳票走行モータ70を停止し帳票
10の走行を止める。走査部20には2048個の光
検知素子を一次元状に配列してあり、これによつ
て最大215mmの長さを走査している。従つて帳票
走行面の主走査方向0.105mmの長さが1個の光検
知素子に対応している。また副走査は0.105mmの
ピツチでおこなわれる。したがつて帳票走査範囲
の画像は0.105mmの方眼に区切られ各の1区画が
画像メモリ40の各1ビツトに記憶される。帳票
側端位置の測定は以上のようにして帳票走査範囲
の画像の記憶がおこなわれたあと、画像メモリ4
0とマイクロプロセツサ50によつておこなわれ
る。第3図は帳票10の走査範囲の画像が画像メ
モリ40に記憶されている様子とマイクロプロセ
ツサ50がこれを調べて帳票の側端位置を測定す
る模様を示す図である。帳票側端位置の測定は基
準線YY′とこれから前後に18走査分離れたXX′及
びZZ′の画像メモリについておこなわれ、帳票左
端については画像メモリの記憶内容を走査して
A,B及びCの位置をそれぞれXA,YB,及び
ZCの距離として求め、図示の例ではXA=ZC≠
YBであるから多数決によつてXA=ZCが帳票左
端位置として決定される。前述のようにXX′と
YY′及びYY′とZZ′のピツチは18走査分であるが
これを帳票上の長さに換算すると0.105mm×18=
1.89mmとなる。またXX′,YY′及びZZ′の画像メ
モリは検知幅0.105mmの検知器で検知したもので
ある。すなわち前述のマイクロプロセツサ50に
よる帳票側端位置の測定は、検知幅0.105mmの検
知器を用い、帳票上を1.89mmのピツチで3回走査
したことに相当する。一方本実施例では帳票側端
の不整部3の幅は1mmまた不整部3の配列ピツチ
は6mmとした。したがつて検知器の走査のピツチ
(1.89mm)は不整部の幅に検知器の検知帳を加え
たもの(1mm+0.105mm=1.105mm)より長く且つ
不整部の配列ピツチから不整部の幅と検知器の検
知幅を減じたもの(6mm−1mm−0.105mm=4.895
mm)より短い。このため第3図においてXX′,
YY′及びZZ′のうちのいずれか1本が帳票の各側
端において不整部3を通ることはあつても同時に
2本以上が不整部3を通ることがない。
Hereinafter, the present invention will be explained in detail with reference to Examples. FIG. 2 is a block diagram showing the configuration and functions of an embodiment of the present invention. The scanning unit 20 has a main scanning direction that is perpendicular to the scanning direction of the form 10 and a sub-scanning direction that is the opposite direction to the scanning direction of the form. A certain range completely including one line of characters is scanned in the sub-scanning direction, and the image is converted into binary information and stored in the image memory 40 via the gate 30. The microprocessor 50 checks the stored contents of the image memory 40, confirms that the scanning section has scanned the predetermined range, closes the gate 30, and turns on the form running motor 70 via the form running control section 60. It stops and the running of form 10 is stopped. The scanning section 20 has 2048 photodetecting elements arranged in a one-dimensional manner, thereby scanning a maximum length of 215 mm. Therefore, a length of 0.105 mm in the main scanning direction of the form running surface corresponds to one photodetecting element. Also, sub-scanning is performed at a pitch of 0.105mm. Therefore, the image of the document scanning range is divided into squares of 0.105 mm, and one section of each section is stored in one bit of the image memory 40. The position of the side edge of the form is measured after the image of the form scanning range is stored in the image memory 4 as described above.
0 and the microprocessor 50. FIG. 3 is a diagram showing how an image of the scanning range of the form 10 is stored in the image memory 40 and how the microprocessor 50 examines this and measures the position of the side edge of the form. The position of the side edge of the form is measured using the reference line YY' and the image memory of XX' and ZZ' which are 18 scans before and after the reference line YY', and for the left edge of the form, the stored contents of the image memory are scanned and the values A, B and C are measured. The positions of XA, YB, and
Find it as the distance of ZC, and in the example shown, XA=ZC≠
Since YB, XA=ZC is determined as the left end position of the form by majority vote. As mentioned above, XX′ and
The pitch between YY' and YY' and ZZ' is 18 scans, but when converted to the length on the form, it is 0.105 mm x 18 =
It becomes 1.89mm. The image memories of XX′, YY′, and ZZ′ were detected by a detector with a detection width of 0.105 mm. That is, the measurement of the side edge position of the form by the microprocessor 50 described above corresponds to scanning the form three times at a pitch of 1.89 mm using a detector with a detection width of 0.105 mm. On the other hand, in this embodiment, the width of the irregular portion 3 at the side edge of the form was 1 mm, and the arrangement pitch of the irregular portion 3 was 6 mm. Therefore, the scanning pitch of the detector (1.89mm) is longer than the width of the irregularity plus the detection line of the detector (1mm + 0.105mm = 1.105mm), and the width of the irregularity is longer than the width of the irregularity. width minus the detection width of the detector (6 mm - 1 mm - 0.105 mm = 4.895
mm) shorter. Therefore, in Figure 3, XX′,
Although one of YY' and ZZ' may pass through the irregular portion 3 at each side edge of the form, two or more will not pass through the irregular portion 3 at the same time.

以上説明したように、本発明によれば帳票の側
端にミシン加工による不整部があつても帳票の側
端位置の測定が正確におこなわれるという効果が
ある。
As described above, according to the present invention, even if the side edges of the form have irregularities due to perforation, the position of the side edge of the form can be accurately measured.

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

第1図は端部に不整部のある帳票の拡大図、第
2図は本発明実施例の構成と機能を示すブロツ
図、第3図は本発明の実施例説明図である。 図中、10は帳票、20は走査部、30はゲー
ト、40は画像メモリ、50はマイクロプロセツ
サ、60は帳票走行制御部、70は帳票送行モー
タである。
FIG. 1 is an enlarged view of a form with irregularities at the edges, FIG. 2 is a block diagram showing the structure and function of an embodiment of the present invention, and FIG. 3 is an explanatory diagram of an embodiment of the present invention. In the figure, 10 is a form, 20 is a scanning unit, 30 is a gate, 40 is an image memory, 50 is a microprocessor, 60 is a form running control unit, and 70 is a form feeding motor.

Claims (1)

【特許請求の範囲】 1 相対移動する帳票の相対移動方向を副走査方
向とし、該副走査方向に交叉する様に検知器を配
置し、該検知器の走査により該帳票の画像を得
て、該画像から帳票の側端位置を測定するものに
おいて、 一定幅の不整部が所定間隔で側端位置に出現す
る該帳票に対して、3回以上の走査による各測定
値を、副走査方向の間隔で少なくとも該不整部の
幅以上とし、且つ該不整部の出現間隔以内とした
事により得た該3回の測定値の多数決を取る手段
を設け、該多数決によつて該帳票の側端位置を決
定することを特徴とする帳票側端検出方式。
[Claims] 1. The direction of relative movement of a relatively moving form is a sub-scanning direction, a detector is arranged so as to intersect with the sub-scanning direction, and an image of the form is obtained by scanning with the detector, In the method of measuring the side edge position of a form from the image, each measurement value obtained by scanning three or more times is calculated in the sub-scanning direction for the form in which irregular portions of a certain width appear at the side edge position at predetermined intervals. A means is provided to take a majority vote of the three measurement values obtained by making the interval at least the width of the irregular part and within the appearance interval of the irregular part, and by the majority vote, the document is A document side edge detection method characterized by determining the side edge position.
JP56102934A 1981-06-30 1981-06-30 Detecting system for end of document Granted JPS584489A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56102934A JPS584489A (en) 1981-06-30 1981-06-30 Detecting system for end of document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56102934A JPS584489A (en) 1981-06-30 1981-06-30 Detecting system for end of document

Publications (2)

Publication Number Publication Date
JPS584489A JPS584489A (en) 1983-01-11
JPH0226265B2 true JPH0226265B2 (en) 1990-06-08

Family

ID=14340666

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56102934A Granted JPS584489A (en) 1981-06-30 1981-06-30 Detecting system for end of document

Country Status (1)

Country Link
JP (1) JPS584489A (en)

Also Published As

Publication number Publication date
JPS584489A (en) 1983-01-11

Similar Documents

Publication Publication Date Title
US4430563A (en) Data processing form
US7072527B1 (en) Image correction apparatus
JPH0226265B2 (en)
US4963028A (en) Densitometric sensing device for use in printing presses
JPS58100568A (en) Skew detection method
JPS6046471B2 (en) character reading device
JPS6226683B2 (en)
JPH07192087A (en) Optical character reader
JPS6027436B2 (en) Character recognition correction method
JPH0782524B2 (en) Optical character reader
JPH0373916B2 (en)
JP2608943B2 (en) Optical mark reading method
JPS60254382A (en) Detecting method of character line
JPS59157774A (en) Character recognizing device
JP3236898B2 (en) Image processing apparatus and processing method thereof
JPS5953983A (en) Detecting and segmenting method of character
JPS62200486A (en) Character reader
JPS62169286A (en) Character segmenting system
JPH0483467A (en) Tilt correction method for read images
JPH0793479A (en) Optical character reader
JP2000099643A (en) Character recognition device and character recognition system
JPH03100972U (en)
JPH0465624A (en) End point correcting method of medium reader
JPH036553B2 (en)
JPH07121724A (en) Inclination angle detector