JPH09264721A - Image processing device and method for determining measuring region - Google Patents

Image processing device and method for determining measuring region

Info

Publication number
JPH09264721A
JPH09264721A JP8074853A JP7485396A JPH09264721A JP H09264721 A JPH09264721 A JP H09264721A JP 8074853 A JP8074853 A JP 8074853A JP 7485396 A JP7485396 A JP 7485396A JP H09264721 A JPH09264721 A JP H09264721A
Authority
JP
Japan
Prior art keywords
seaweed
scanning
end position
specified
image sensor
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.)
Pending
Application number
JP8074853A
Other languages
Japanese (ja)
Inventor
Toshikazu Kamiya
東志一 神谷
Hiroaki Ichihara
廣秋 市原
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.)
Panasonic Industrial Devices SUNX Co Ltd
Original Assignee
Sunx 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 Sunx Ltd filed Critical Sunx Ltd
Priority to JP8074853A priority Critical patent/JPH09264721A/en
Publication of JPH09264721A publication Critical patent/JPH09264721A/en
Pending legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

PROBLEM TO BE SOLVED: To execute measurement on a prescribed measuring region with high accuracy insusceptible of a defective position. SOLUTION: An edge section of a laver is determined at a time when the number of dark signals involved in an image signal outputted from an image sensor is counted by an edge section determining means (step 1) and the counted value becomes a value of edge section determining information W or more (step 2). As a result, even in the case where the laver has a cutout-shaped defect, a position of the edge section of the laver is surely detected when a portion except the defect blocks a scanning line. Therefore, a starting position of a measuring region which has been changed heretofore is not changed by the position of the defect so that it is possible to obtain the accurate measurement result in terms of the prescribed measuring region.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像処理装置及び
その測定領域決定方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus and a measurement area determining method thereof.

【0002】[0002]

【従来の技術】従来より、海苔の製造工程において、海
苔の破れや孔(以下、欠点という。)を検査するために
画像処理装置を利用することが行われている。これは、
図11に示すように、海苔Nの搬送ライン21の上方に
ライン状の走査領域(以下、走査ラインL)を有するイ
メージセンサ22が設置されており、また、搬送ライン
21の下方にはイメージセンサ22に対向して光源23
が設置されている。そして、搬送されて来る海苔Nが光
源23とイメージセンサ22との間を通過することによ
り所定の測定領域に対してイメージセンサ22から画像
信号が出力され、これに基づいて欠点の検査が行われる
ようになっている。
2. Description of the Related Art Conventionally, in the process of producing seaweed, an image processing apparatus has been used to inspect the seaweed for breakage and holes (hereinafter referred to as defects). this is,
As shown in FIG. 11, an image sensor 22 having a linear scanning region (hereinafter referred to as a scanning line L) is installed above the transport line 21 for laver N, and an image sensor is provided below the transport line 21. Light source 23 facing
Is installed. Then, the seaweed N conveyed is passed between the light source 23 and the image sensor 22 to output an image signal from the image sensor 22 to a predetermined measurement region, and the defect inspection is performed based on this. It is like this.

【0003】ところで、上記検査は海苔Nの裁断工程の
前に行われるものであり、この段階では海苔Nは図12
に示すようにその周縁部が不規則な形状に曲がりくねっ
ており、最端部から検査を行うとすると最端部からわず
かにでも内側に入りこんだ部分は欠点とされてしまい、
ほとんどのものが不良品とされてしまう。そこで、検査
の始まり位置E1と終わり位置E2を海苔Nの前端部と
後端部とから内側へ所定の距離を隔てた位置に設定する
ようにしてあり、そのため、従来では図11に示すよう
にイメージセンサ22の前後両側に所定の距離を隔てて
海苔検出センサ24,25を設け、この2つの海苔検出
センサ24,25が海苔Nを検出している場合のみ検査
を行うようにしている。即ち、一方の海苔検出センサ2
5が海苔Nを検出した後、他方の海苔検出センサ24が
海苔Nを検出した位置では、イメージセンサ22の走査
ラインLは海苔Nの前端部より内側(検査の始まり位置
E1)にあり、また、その後、一方の海苔検出センサ2
5が海苔Nを検出しなくなる位置ではイメージセンサ2
2の走査ラインLは海苔Nの後端部より内側(検査の終
わり位置E2)にある。これによって、海苔Nの検査
は、前端部及び後端部より所定の距離を隔てた内側領域
であるE1からE2の間についてのみ行われることにな
る。なお、図12中、e,fは海苔検出センサ24,2
5の検出点である。
By the way, the above-mentioned inspection is carried out before the cutting step of the seaweed N. At this stage, the seaweed N is shown in FIG.
As shown in, the peripheral edge is bent into an irregular shape, and if the inspection is performed from the outermost end, the part that slightly enters inside from the outermost end is regarded as a defect,
Most of them are considered defective. Therefore, the start position E1 and the end position E2 of the inspection are set at positions separated by a predetermined distance from the front end portion and the rear end portion of the seaweed N. Therefore, as shown in FIG. Laver detection sensors 24 and 25 are provided on both front and rear sides of the image sensor 22 at a predetermined distance, and the inspection is performed only when the two laver detection sensors 24 and 25 detect the laver N. That is, one seaweed detection sensor 2
At the position where the other seaweed detection sensor 24 detects the seaweed N after 5 has detected the seaweed N, the scanning line L of the image sensor 22 is inside the front end portion of the seaweed N (starting position E1 of the inspection), and , Then one seaweed detection sensor 2
Image sensor 2 at the position where 5 does not detect seaweed N
The second scanning line L is located inside the rear end of the seaweed N (the end position E2 of the inspection). As a result, the seaweed N is inspected only between E1 and E2, which are inner regions separated by a predetermined distance from the front end portion and the rear end portion. In FIG. 12, e and f are seaweed detection sensors 24 and 2.
5 detection points.

【0004】[0004]

【発明が解決しようとする課題】ところが、図13に示
すように、たまたま、切欠状の欠点Kが海苔検出センサ
24,25の検出線g上にあるような場合には、両海苔
検出センサ24,25が海苔Nを検出するのは、その欠
点Kを通り過ぎた時点であるから、検査の始まり位置E
1はその欠点Kより内側とされる。従って、本来なら
ば、図12に示すように、海苔Nの前端部から僅かな距
離を隔てた位置E1から検査が行われるために、その位
置E1より内側まで延びている欠点K(図12中、二点
鎖線で示す部分)があればそれが測定領域内に入って欠
点と判定されるものが、たまたま欠点Kが海苔検出セン
サ24,25の検出線g上にあるために、測定領域がず
れてしまって欠点Kを欠点と判定することができずに良
品と誤判定しまうことになる。本発明は、上記事情に鑑
みてなされたもので、その目的は、欠点位置に拘らず所
定の測定領域に対して正確な測定結果を得ることができ
る画像処理装置及びその測定領域決定方法を提供すると
ころにある。
However, as shown in FIG. 13, when the notch-like defect K happens to be on the detection line g of the nori detection sensors 24 and 25, both nori detection sensors 24 are detected. , 25 detects seaweed N at the time when the defect K is passed, the start position E of the inspection is
1 is inside the defect K. Therefore, originally, as shown in FIG. 12, since the inspection is performed from the position E1 which is separated from the front end portion of the seaweed N by a short distance, the defect K extending inside the position E1 (in FIG. 12). , The part indicated by the chain double-dashed line) enters the measurement area and is determined to be a defect, but since the defect K happens to be on the detection line g of the seaweed detection sensors 24 and 25, the measurement area is The defect K is misaligned, and the defect K cannot be determined to be a defect, so that it is erroneously determined to be a good product. The present invention has been made in view of the above circumstances, and an object thereof is to provide an image processing apparatus and a measurement area determination method thereof that can obtain an accurate measurement result for a predetermined measurement area regardless of a defect position. There is a place to do it.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
に、本発明の画像処理装置は、ライン状の走査領域を有
するイメージセンサを備えるとともに、そのイメージセ
ンサと被測定物とを走査方向に対して交差する方向に相
対的に変位させることにより被測定物上の所定の測定領
域に対して画像処理がなされ、かつ、その測定領域が被
測定物の端部からの距離に基づいて決定される画像処理
装置において、ライン状の走査領域に対するイメージセ
ンサから出力される複数の画像データに基づいて被測定
物の端部を特定するための端部特定手段と、端部特定手
段によって特定された端部に基づき、その端部から所定
の距離を隔てた位置を測定領域の始端位置とする始端位
置特定手段と、端部特定手段によって特定された端部に
基づき、その端部から所定の距離を隔てた位置を測定領
域の終端位置とする終端位置特定手段とからなることに
特徴を有する。
In order to achieve the above object, an image processing apparatus according to the present invention comprises an image sensor having a linear scanning area, and the image sensor and an object to be measured are arranged in the scanning direction. Image processing is performed on a predetermined measurement area on the object to be measured by relatively displacing it in the direction intersecting with each other, and the measurement area is determined based on the distance from the end of the object to be measured. In the image processing device according to the present invention, the edge specifying means for specifying the edge of the DUT based on the plurality of image data output from the image sensor for the linear scanning area, and the edge specifying means Based on the end portion, based on the end portion specified by the start position specifying means and the end specifying means, the position separated from the end portion by a predetermined distance as the start end position of the measurement area, and the end portion thereof. Characterized in that comprising the end position specifying unit that the position spaced apart Luo predetermined distance between the end position of the measurement region.

【0006】また、本発明の画像処理装置の測定領域決
定方法は、ライン状の走査領域を有するイメージセンサ
と被測定物とを走査方向に対して交差する方向に相対的
に変位させることにより前記被測定物上の所定の測定領
域に対して画像処理を行う場合に、その測定領域の決定
を行う方法であって、ライン状の走査領域に対するイメ
ージセンサから出力される複数の画像データに基づいて
被測定物の端部を特定し、その端部からの距離に基づい
て測定領域の始端位置と終端位置とを特定することに特
徴を有する。
Further, in the measuring area determining method of the image processing apparatus of the present invention, the image sensor having a linear scanning area and the object to be measured are relatively displaced in a direction intersecting the scanning direction. A method of determining a measurement area when performing image processing on a predetermined measurement area on an object to be measured, based on a plurality of image data output from an image sensor for a linear scanning area. It is characterized in that the end of the object to be measured is specified, and the start position and the end position of the measurement region are specified based on the distance from the end.

【0007】[0007]

【本発明の作用・効果】請求項1及び請求項2の発明に
よれば、被測定物の端部が特定された後、その端部から
の距離をもって測定領域の始端位置と終端位置とが特定
される。ここで、端部の特定は、イメージセンサから出
力される複数の画像データに基づいて特定される。即
ち、ライン状の走査領域に被測定物の端部が進入する
と、それに基づいてイメージセンサから画像データが出
力されるから、このことによって被測定物の端部が特定
されるのである。
According to the first and second aspects of the present invention, after the end of the object to be measured is specified, the start position and the end position of the measurement area are determined by the distance from the end. Specified. Here, the end is specified based on a plurality of image data output from the image sensor. That is, when the end of the object to be measured enters the line-shaped scanning region, the image data is output from the image sensor based on that, so that the end of the object to be measured is specified.

【0008】従って、被測定物の一部分でも走査領域に
進入すればこれによって端部が特定されるのであるか
ら、欠点がどの位置にあっても、他の部分が走査領域に
進入することによって被測定物の端部が特定される。そ
の結果、測定領域は必ず被測定物の端部から所定の距離
に設定され、もって正確な測定結果を得ることができ
る。
Therefore, even if a part of the object to be measured enters the scanning area, the end portion is specified by this, and therefore, regardless of the position of the defect, the other part enters the scanning area and the object is detected. The edge of the measured object is specified. As a result, the measurement area is always set to a predetermined distance from the end of the object to be measured, so that an accurate measurement result can be obtained.

【0009】[0009]

【発明の実施の形態】以下、本発明の画像処理装置を具
体化した一実施形態について図1〜図8を参照して説明
する。図1中、1はイメージセンサであり、海苔Nの搬
送ライン2の上方に受光部1aを下方に向けた姿勢で設
置されている。このイメージセンサ1は、ライン状の走
査領域(以下、走査ラインL)を有しており、走査方向
が海苔Nの搬送方向aに対してほぼ直交する向きとなる
ようにに調整されている。搬送ライン2は、複数のベル
トコンベア3によって構成され、そのベルトコンベア3
の間にはイメージセンサ1に対向して光源4が設置され
ており、その上方を海苔Nが搬送されるようになってい
る。さらに、イメージセンサ1には、制御装置5が接続
されており、イメージセンサ1から図2に示すタイミン
グで出力された走査信号、画像信号、クロック信号がこ
こに入力されるようになっている。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the image processing apparatus of the present invention will be described below with reference to FIGS. In FIG. 1, reference numeral 1 denotes an image sensor, which is installed above the transport line 2 for laver N with the light receiving portion 1a facing downward. The image sensor 1 has a linear scanning region (hereinafter, scanning line L), and is adjusted so that the scanning direction is substantially orthogonal to the transport direction a of the seaweed N. The transport line 2 is composed of a plurality of belt conveyors 3, and the belt conveyors 3
A light source 4 is installed between them so as to face the image sensor 1, and the seaweed N is conveyed above the light source 4. Further, a control device 5 is connected to the image sensor 1, and the scanning signal, the image signal, and the clock signal output from the image sensor 1 at the timings shown in FIG. 2 are input thereto.

【0010】走査信号Sは、イメージセンサ1が走査中
である場合に出力(ハイレベル)され、その立ち上がり
部分は走査の開始を示す。また、走査信号Sは、走査ラ
インLに対する走査毎に出力される。クロック信号C
は、走査ラインL上の走査位置に対する走査タイミング
を示す信号であり、このクロック数を計数することによ
って走査ラインL上の走査位置を知ることができる。な
お、1走査信号S中におけるクロック数はイメージセン
サ1の解像度に対応している。画像信号Gは、クロック
信号Cに同期して出力される信号であり、受光量に応じ
て電圧値の変化するアナログ信号である。
The scanning signal S is output (high level) when the image sensor 1 is scanning, and the rising portion thereof indicates the start of scanning. Further, the scanning signal S is output for each scanning of the scanning line L. Clock signal C
Is a signal indicating the scanning timing with respect to the scanning position on the scanning line L, and the scanning position on the scanning line L can be known by counting the number of clocks. The number of clocks in one scanning signal S corresponds to the resolution of the image sensor 1. The image signal G is a signal output in synchronization with the clock signal C, and is an analog signal whose voltage value changes according to the amount of received light.

【0011】一方、制御装置5内には、図3に示すよう
に、二値化回路6、走査信号計数回路8、クロック信号
計数回路7及び中央演算処理装置(以下、CPUとい
う。)9等が設けられている。二値化回路6は、イメー
ジセンサ1から出力された画像信号Gをある一定のしき
い値により2値化するための回路であり、走査位置にお
いて光の受光があれば、ハイレベル(明信号)とされ、
光の受光がなければロウレベル(暗信号)に変換され
る。そして、このデジタル信号に変換された画像信号G
はCPU9に送られる。
On the other hand, in the control device 5, as shown in FIG. 3, a binarization circuit 6, a scanning signal counting circuit 8, a clock signal counting circuit 7, a central processing unit (hereinafter referred to as CPU) 9 and the like. Is provided. The binarization circuit 6 is a circuit for binarizing the image signal G output from the image sensor 1 with a certain threshold value. If light is received at the scanning position, it is at a high level (bright signal). ) And
If no light is received, it is converted to a low level (dark signal). Then, the image signal G converted into this digital signal
Is sent to the CPU 9.

【0012】走査信号計数回路8は、走査信号Sの数を
計数するための回路であり、走査信号Sが入力される毎
にその立ち上がりタイミングによってカウント動作が行
われるように構成されている。即ち、この走査信号計数
回路8における計数値は走査回数を示すものであり、こ
の計数値と海苔Nの搬送速度から海苔Nに対する走査ラ
インLの位置を知ることができる。また、この計数値は
カウントされる毎に逐次CPU9によって読み取られる
ようになっている。さらに、このカウント動作はCPU
9によって制御されるように構成されており、CPU9
からカウント開始信号が出力されると動作が開始し、リ
セット信号が出力されるリセットされるようになってい
る。
The scanning signal counting circuit 8 is a circuit for counting the number of scanning signals S, and is configured such that every time the scanning signal S is input, the counting operation is performed at the rising timing thereof. That is, the count value in the scan signal counting circuit 8 indicates the number of scans, and the position of the scan line L with respect to the seaweed N can be known from this count value and the transport speed of the seaweed N. The count value is read by the CPU 9 each time it is counted. Furthermore, this counting operation is performed by the CPU
9 is configured to be controlled by the CPU 9
When the count start signal is output from, the operation is started, and a reset signal is output and reset.

【0013】クロック信号計数回路7は、走査信号Sの
出力中(ハイレベル)にクロック信号Cが入力される毎
にカウント動作が行われるように構成されている。即
ち、このクロック信号計数回路7の計数値は走査ライン
L上の走査位置を示すものであり、後述する欠点検査処
理においてCPU9によって読み取られるようになって
いる。
The clock signal counting circuit 7 is constructed so that the counting operation is performed every time the clock signal C is input while the scanning signal S is being output (high level). That is, the count value of the clock signal counting circuit 7 indicates the scanning position on the scanning line L, and is read by the CPU 9 in the defect inspection processing described later.

【0014】また、制御装置5には、操作パネル10が
設けられており、そこには複数の設定キー11とモード
設定キー12が配されている。設定キー11は、欠点検
査に対する測定領域を決定するために必要な情報を入力
するためのものであり、入力された情報はメモリに記憶
されるようになっている。ここで入力される情報は、以
下に示す端部特定情報W、始端位置特定情報X、終端位
置特定情報Y、左側マスク範囲指定情報M1、右側マス
ク範囲指定情報M2である。
Further, the control device 5 is provided with an operation panel 10, in which a plurality of setting keys 11 and mode setting keys 12 are arranged. The setting key 11 is for inputting information necessary for determining the measurement area for the defect inspection, and the input information is stored in the memory. The information input here is the end part specifying information W, the start end position specifying information X, the end position specifying information Y, the left mask range specifying information M1, and the right mask range specifying information M2.

【0015】端部特定情報Wは、海苔Nの端部を特定す
るために必要な情報であり、この情報Wに基づいて特定
された位置が図7に示す海苔Nの端部位置Aである。始
端位置特定情報Xは、端部位置Aからの走査信号数であ
り、この信号数と海苔Nの搬送速度との関係で、搬送方
向aに対する測定領域の始端位置B1が特定される。終
端位置特定情報Yは、始端位置B1からの走査線号数で
あり、この信号数と海苔Nの搬送速度との関係で、搬送
方向aに対する測定領域の終端位置B2が特定される。
左側マスク範囲指定情報M1は、走査ラインL上の走査
開始位置からのクロック数であり、この指定されたクロ
ック数によって走査ラインLに対する測定開始位置C1
が特定され、この測定開始位置C1となるまで画像信号
Gは処理されない。左側マスク範囲指定情報M2は、走
査ラインL上の走査終了位置からのクロック数であり、
この指定されたクロック数によって走査ラインLに対す
る測定終了位置C2が特定され、この測定終了位置C2
となると画像信号Gの処理が終了する。
The end portion specifying information W is information necessary for specifying the end portion of the seaweed N, and the position specified based on this information W is the end portion position A of the seaweed N shown in FIG. . The starting end position specifying information X is the number of scanning signals from the end position A, and the starting end position B1 of the measurement region in the carrying direction a is specified based on the relationship between the number of signals and the carrying speed of the laver N. The end position specifying information Y is the number of scanning lines from the start position B1, and the end position B2 of the measurement area with respect to the transfer direction a is specified based on the relationship between the number of signals and the transfer speed of the seaweed N.
The left mask range designation information M1 is the number of clocks from the scan start position on the scan line L, and the measurement start position C1 for the scan line L is determined by this designated number of clocks.
Is specified, and the image signal G is not processed until the measurement start position C1 is reached. The left mask range designation information M2 is the number of clocks from the scan end position on the scan line L,
The measurement end position C2 for the scanning line L is specified by the designated number of clocks, and the measurement end position C2 is determined.
Then, the processing of the image signal G ends.

【0016】モード設定キー12は、CPU9の状態を
設定可能状態と検査可能状態とに切り換えるためのもの
であり、設定可能状態では設定キー11による各種情報
の入力が可能となり、検査可能状態では海苔Nに対して
欠点検査処理が行われる。CPU9は、端部特定手段、
測定領域の始端位置特定手段及び終端位置特定手段を備
えており、上記メモリに記憶された情報に基づいて測定
領域の決定を行い、かつその測定領域に対して欠点検査
処理を行うようになっている。
The mode setting key 12 is for switching the state of the CPU 9 between a settable state and an inspectable state. In the settable state, various kinds of information can be input by the set key 11, and in the inspectable state, nori seaweed. The defect inspection process is performed on N. CPU9 is an end part identification means,
The measuring area is provided with a starting position specifying means and an ending position specifying means for determining the measuring area based on the information stored in the memory, and performing defect inspection processing on the measuring area. There is.

【0017】端部特定手段、測定領域の始端位置特定手
段及び終端位置特定手段を図4に示すフローチャートに
基づいて説明する。CPU9は、二値化回路6によって
デジタル信号に変換された画像信号Gを監視するととも
に、1走査中における暗信号の数を計数する(ステップ
1)。そして、その計数値と予め設定された端部特定情
報Wとを比較し(ステップ2)、計数値が端部特定情報
Wより小さい場合には、ステップ1に戻り画像信号Gの
監視かつ1走査中における暗信号の計数を続ける。計数
値が端部特定情報W以上となった場合には、その時点に
おける海苔Nに対する走査ラインLの位置を端部位置A
として特定する(図7参照)。このステップ1、2が、
本発明にいう端部特定手段に相当する。
The end specifying means, the start position specifying means and the end position specifying means of the measurement area will be described with reference to the flow chart shown in FIG. The CPU 9 monitors the image signal G converted into a digital signal by the binarization circuit 6 and counts the number of dark signals in one scan (step 1). Then, the count value is compared with preset edge specifying information W (step 2). If the count value is smaller than the edge specifying information W, the procedure returns to step 1 to monitor the image signal G and perform one scan. Continue counting dark signals inside. When the count value is equal to or more than the end portion specifying information W, the position of the scanning line L with respect to the seaweed N at that time is set to the end portion position A.
(See FIG. 7). These steps 1 and 2
It corresponds to the edge specifying means in the present invention.

【0018】端部位置Aが特定されると、CPU9は走
査信号計数回路8に対してカウント開始信号を出力する
(ステップ3)。これによって、走査信号計数回路8は
カウント動作を開始し、端部位置Aが特定された後の走
査信号Sの数を計数する。さらに、CPU9は走査信号
計数回路8の計数値を読み取り、その計数値と予め設定
されている始端位置特定情報Xとの比較を行う(ステッ
プ4,5)。そして、計数値が始端位置特定情報Xより
小さい場合にはステップ4に戻り、走査信号計数回路8
の計数値が始端位置特定情報X以上となるまで読み続け
る。また、計数値が始端位置特定情報X以上となった場
合には、その時点における海苔Nに対する走査ラインL
の位置を測定領域の始端位置B1として特定する(図7
参照)。このステップ3、4、5が、本発明にいう始端
位置特定手段に相当する。
When the end position A is specified, the CPU 9 outputs a count start signal to the scanning signal counting circuit 8 (step 3). As a result, the scanning signal counting circuit 8 starts the counting operation and counts the number of scanning signals S after the end position A is specified. Further, the CPU 9 reads the count value of the scanning signal counting circuit 8 and compares the count value with the preset start position specifying information X (steps 4 and 5). If the count value is smaller than the start position specifying information X, the process returns to step 4, and the scanning signal counting circuit 8
The reading is continued until the count value of is equal to or larger than the starting position specifying information X. Further, when the count value is equal to or larger than the starting end position specifying information X, the scanning line L for the seaweed N at that time point
Is specified as the start position B1 of the measurement area (FIG. 7).
reference). The steps 3, 4, and 5 correspond to the starting end position specifying means according to the present invention.

【0019】測定領域の始端位置B1が特定された後、
CPU9は走査信号計数回路8に対してリセット信号を
出力し、一旦計数値をリセットする(ステップ6)。こ
れにより、走査信号計数回路8は始端位置B1から再び
走査信号Sの数を計数することになるとともに、特定さ
れた測定領域の始端位置B1から後述する欠点検査処理
が行われる(ステップ7)。そして、走査信号計数回路
8の計数値を読み取ってその計数値と終端位置特定情報
Yとの比較を行い(ステップ8、9)、計数値が終端位
置特定情報Yより小さい場合には、ステップ7に戻り欠
点検査処理を続ける。また、計数値が終端位置特定情報
Y以上とされた場合には、その時点における海苔Nに対
する走査ラインLの位置を測定領域の終端位置B2とし
(図7参照)、欠点検査処理を終了する。このステップ
6、8、9が、本発明にいう測定領域の終端位置特定手
段に相当する。
After the start position B1 of the measurement area is specified,
The CPU 9 outputs a reset signal to the scanning signal counting circuit 8 to reset the count value once (step 6). As a result, the scanning signal counting circuit 8 counts the number of the scanning signals S again from the starting end position B1 and the defect inspection process described later is performed from the starting end position B1 of the specified measurement region (step 7). Then, the count value of the scanning signal counting circuit 8 is read and the count value is compared with the end position specifying information Y (steps 8 and 9). If the count value is smaller than the end position specifying information Y, step 7 Return to and continue the defect inspection process. If the count value is equal to or greater than the end position specifying information Y, the position of the scanning line L with respect to the seaweed N at that time is set as the end position B2 of the measurement area (see FIG. 7), and the defect inspection process is ended. The steps 6, 8 and 9 correspond to the end position specifying means of the measurement area according to the present invention.

【0020】さらに、欠点検査処理について図5に示す
フローチャートに従って説明する。測定領域の始端位置
B1が特定された後、CPU9はクロック信号計数回路
7の計数値を読み取り(ステップ71)、その計数値と
測定開始位置C1とを比較する(ステップ72)。そし
て、測定開始位置C1より小さい場合には、計数値が測
定開始位置C1以上となるまでクロック信号計数回路7
の計数値を読み続ける。計数値が測定開始位置C1以上
とされた場合には、さらに、測定終了位置C2と比較す
る(ステップ73)。計数値が測定終了位置C2より小
さい場合には、画像信号Gの読み取りを行い(ステップ
74)、その読み込んだ画像信号Gが、暗信号である
か、明信号であるか否かの判定を行う(ステップ7
5)。そして、その判定の結果を図示しない表示装置に
出力する(ステップ76)。さらに、ステップ71で読
み取るクロック信号計数回路7の計数値が測定終了位置
C2以上とされるまで画像信号Gに対する判定を繰り返
し、計数値が測定終了位置C2以上とされたならば、そ
の時点で画像信号Gの読み取り等を終了する。
Further, the defect inspection process will be described with reference to the flowchart shown in FIG. After the start position B1 of the measurement area is specified, the CPU 9 reads the count value of the clock signal counting circuit 7 (step 71) and compares the count value with the measurement start position C1 (step 72). If it is smaller than the measurement start position C1, the clock signal counting circuit 7 is operated until the count value becomes equal to or larger than the measurement start position C1.
Continue reading the count value of. When the count value is equal to or greater than the measurement start position C1, the measurement value is further compared with the measurement end position C2 (step 73). If the count value is smaller than the measurement end position C2, the image signal G is read (step 74), and it is determined whether the read image signal G is a dark signal or a bright signal. (Step 7
5). Then, the result of the determination is output to a display device (not shown) (step 76). Further, the determination with respect to the image signal G is repeated until the count value of the clock signal counting circuit 7 read in step 71 becomes the measurement end position C2 or more. If the count value becomes the measurement end position C2 or more, the image at that point The reading of the signal G and the like are completed.

【0021】次に、本実施形態の作用について述べる。
搬送ライン2上を搬送されて来る海苔Nが、走査ライン
Lを遮ると、例えば、図6に示すような、デジタル信号
が二値化回路6からCPU9に送られる。その結果、暗
信号の数(図6では、9個)が端部特定情報W以上とな
れば、その時点における海苔Nに対する走査ラインLの
位置が端部位置Aとされる。従って、端部特定情報Wを
小さくしておけば、海苔Nの端部が少しでも走査ライン
Lを遮れば、それによって海苔Nの端部位置Aが確実に
特定される。ただし、端部特定情報Wはノイズ等による
誤動作を防止するために、ノイズ等を考慮した値に設定
しておくことが望ましい。
Next, the operation of the present embodiment will be described.
When the seaweed N conveyed on the conveyance line 2 interrupts the scanning line L, a digital signal as shown in FIG. 6 is sent from the binarization circuit 6 to the CPU 9, for example. As a result, if the number of dark signals (nine in FIG. 6) becomes equal to or more than the end portion specifying information W, the position of the scanning line L with respect to the seaweed N at that time is set as the end portion position A. Therefore, if the edge specifying information W is made small, the edge position A of the seaweed N can be surely specified by blocking the scan line L even if the edge of the seaweed N is small. However, it is desirable to set the edge specifying information W to a value that takes noise into consideration in order to prevent malfunction due to noise or the like.

【0022】海苔Nの端部位置Aが特定された後、海苔
Nが搬送方向aへと動くのに伴って、始端位置特定手段
が測定領域の始端位置B1の特定を始める。そして、海
苔Nが所定の位置まで搬送されると始端位置特定情報X
に基づいて始端位置B1が特定される。測定領域の始端
位置B1が特定されると、その位置から海苔Nに対する
欠点検査処理が開始されるとともに、終端位置特定手段
によって測定領域の終端位置B2の特定が開始される。
欠点検査処理は、海苔Nが終端位置特定情報Yによって
特定される終端位置B2に搬送されるまで行われ、海苔
Nが終端位置B2まで搬送されると、その位置で欠点検
査処理は中止される。そして、始端位置B1から終端位
置B2に至る間に欠点が確認されれば、その結果が図示
しない表示装置に表示される。
After the end position A of the seaweed N is specified, the start end position specifying means starts specifying the start end position B1 of the measurement region as the seaweed N moves in the transport direction a. Then, when the seaweed N is conveyed to a predetermined position, the start end position specifying information X
The starting end position B1 is specified based on. When the start position B1 of the measurement area is specified, the defect inspection process for the seaweed N is started from that position, and the end position specifying means starts specifying the end position B2 of the measurement area.
The defect inspection process is performed until the seaweed N is conveyed to the end position B2 specified by the end position specification information Y, and when the seaweed N is conveyed to the end position B2, the defect inspection process is stopped at that position. . Then, if a defect is confirmed between the start position B1 and the end position B2, the result is displayed on a display device (not shown).

【0023】このように、本実施形態では、海苔Nの端
部は、イメージセンサ1から出力される画像信号G中に
含まれる暗信号の数によって特定されるから、図8に示
すように、海苔Nに切欠状の欠点Kがある場合でも、欠
点K以外の部分が走査ラインLを遮ればこれによって海
苔Nの端部位置Aは特定される。従って、図示するよう
に始端位置B1と終端位置B2が特定されるから、欠点
Kを欠点と判定することができる。即ち、欠点がどの位
置にあっても海苔Nの端部は確実に特定されるから、従
来のように欠点の位置によって測定領域の始まり位置が
変わってしまうことがなく、所定の測定領域に対して正
確な測定結果を得ることができるのである。
As described above, in this embodiment, the end portion of the seaweed N is specified by the number of dark signals included in the image signal G output from the image sensor 1. Therefore, as shown in FIG. Even when the seaweed N has a notch-shaped defect K, the end position A of the seaweed N is specified by the portion other than the defect K blocking the scanning line L. Therefore, since the start position B1 and the end position B2 are specified as shown in the figure, the defect K can be determined as a defect. That is, since the end of the seaweed N is surely specified regardless of the position of the defect, the start position of the measurement region does not change depending on the position of the defect as in the conventional case, and the end position of the measurement region does not change. Therefore, accurate measurement results can be obtained.

【0024】また、本実施形態では、欠点検査を行うた
めのイメージセンサ1を用いて海苔Nの端部を特定する
ようにしているから、従来のようにイメージセンサとは
別個に海苔検出センサ等を設ける必要がなく、構成が簡
単になりかつシステム全体が小型化される。さらに、海
苔検出センサ等を用いる従来の構成では、測定領域の範
囲を広狭するためには海苔検出センサとイメージセンサ
との距離を異ならせなければならない等大変煩わしい作
業をしなければならなかったが、本実施形態では設定キ
ー11によって端部特定情報W、始端位置特定情報X、
終端位置特定情報Yを入力し直すという簡単な作業だけ
で測定領域の範囲を広狭変化させることができる。
Further, in this embodiment, since the end portion of the seaweed N is specified by using the image sensor 1 for performing the defect inspection, the seaweed detection sensor and the like are separated from the image sensor as in the conventional case. Need not be provided, which simplifies the configuration and reduces the size of the entire system. Furthermore, in the conventional configuration using the seaweed detection sensor and the like, in order to widen and narrow the range of the measurement area, the distance between the seaweed detection sensor and the image sensor has to be different, which is very troublesome work. In the present embodiment, the end key specifying information W, the start end position specifying information X, and
The range of the measurement region can be changed widely by a simple operation of re-inputting the end position specifying information Y.

【0025】なお、本発明は上記各実施形態に限定され
るものではなく、例えば次のように変形して実施するこ
とができ、これらの実施形態も本発明の技術的範囲に属
する。 (1) 上記実施形態では、端部特定手段は、1走査中
における暗信号の数が端部特定情報W以上となった場合
に海苔Nの端部を特定するように構成されていたが、連
続する暗信号の数が所定以上とされた場合に海苔の端部
を特定するようにしてもよい。例えば、図9に示すよう
に、暗信号が連続して4個確認された場合に、海苔Nの
端部の特定を行うのである。
The present invention is not limited to the above embodiments, but can be modified and implemented as follows, for example, and these embodiments also belong to the technical scope of the present invention. (1) In the above-described embodiment, the edge specifying means is configured to specify the edge of the seaweed N when the number of dark signals in one scan is equal to or greater than the edge specifying information W. The end of the seaweed may be specified when the number of continuous dark signals exceeds a predetermined value. For example, as shown in FIG. 9, when four dark signals are continuously confirmed, the end portion of the seaweed N is specified.

【0026】(2) また、図10に示すように、連続
する暗信号を1単位として、その数を計数し、この計数
値が所定以上とされた場合に海苔の端部を特定するよう
にしてもよい。
(2) Further, as shown in FIG. 10, the number of consecutive dark signals is counted as one unit, and when the counted value is not less than a predetermined value, the end of the seaweed is specified. May be.

【0027】(3) さらに、暗信号の数ではなく、明
信号の数が所定以下とされた場合に海苔の端部を特定す
るようにしてもよい。
(3) Furthermore, the end of the seaweed may be specified when the number of bright signals, not the number of dark signals, is set to a predetermined value or less.

【0028】(4) 上記実施形態では、光源4とイメ
ージセンサ1との間に海苔Nを通過させることによって
欠点を検査する構成のものであったが、海苔に対して光
を照射し、その反射光によって欠点を検査するようにし
てもよい。なお、この場合には、海苔の部分で光は反射
するから、この部分に対する走査では明信号がCPUに
送られることになり、上記実施形態の場合とは逆とな
る。
(4) In the above embodiment, the defect is inspected by passing the seaweed N between the light source 4 and the image sensor 1. However, the seaweed is irradiated with light and the defect is detected. The defect may be inspected by reflected light. In this case, since light is reflected at the seaweed portion, a bright signal is sent to the CPU when scanning this portion, which is the reverse of the above embodiment.

【0029】(5) 上記実施形態では、終端位置特定
手段は始端位置B1からの走査信号数によって終端位置
B2を特定するように構成されていたが、海苔の端部位
置からの走査信号数によって終端位置を特定するように
してもよい。即ち、上記実施形態では測定領域の始端位
置B1が特定された後、一旦走査信号計数回路8をリセ
ットしたが、リセットすることなく海苔の端部位置から
の走査信号数を計数し続けるようにし、かつ終端位置特
定情報を海苔の端部位置からの走査信号数としておく。
(5) In the above embodiment, the end position specifying means is configured to specify the end position B2 based on the number of scanning signals from the starting end position B1, but according to the number of scanning signals from the end position of the seaweed. The end position may be specified. That is, in the above embodiment, the scanning signal counting circuit 8 is once reset after the start position B1 of the measurement region is specified, but the number of scanning signals from the end position of the seaweed is continuously counted without resetting, Moreover, the end position specifying information is set as the number of scanning signals from the end position of the seaweed.

【0030】(6) 上記実施形態では、走査信号計数
回路8は、走査信号の立ち上がりタイミングでカウント
動作がなされるように構成されていたが、走査信号の立
ち下がりタイミングでカウント動作を行うように構成し
てもよい。
(6) In the above embodiment, the scanning signal counting circuit 8 is configured to perform the counting operation at the rising timing of the scanning signal. However, the counting operation is performed at the falling timing of the scanning signal. You may comprise.

【0031】(7) 上記実施形態では、始端位置特定
手段及び終端位置特定手段は走査信号数を計数すること
により始端位置或いは終端位置を特定する構成のもので
あったが、端部位置が特定された後、タイマ手段を用い
て始端位置或いは終端位置を特定するようにしてもよ
い。
(7) In the above-described embodiment, the start position specifying means and the end position specifying means are configured to specify the start position or the end position by counting the number of scanning signals, but the end position is specified. After that, the start position or the end position may be specified by using the timer means.

【0032】(8) 上記実施形態では、端部特定手段
は、1走査分における暗信号の数を計数し、この計数値
が端部特定情報W以上とされた場合に海苔Nの端部を特
定するように構成されていたが、複数回にわたる走査分
の暗信号の数を計数、或いは走査の途中から次の走査に
かけての暗信号の数をもって海苔の端部を特定するよう
にしてもよい。
(8) In the above embodiment, the edge specifying means counts the number of dark signals in one scanning, and when the count value is equal to or more than the edge specifying information W, the edge of the seaweed N is detected. Although it is configured to specify, the end of the seaweed may be specified by counting the number of dark signals for a plurality of scans or by the number of dark signals from the middle of one scan to the next scan. .

【0033】(9) 上記実施形態では、イメージセン
サ1から出力される画像信号Gはアナログ信号であった
が、デジタル信号であってもよく、この場合には制御装
置5内の二値化回路6は不要とされる。その他、本発明
は要旨を逸脱しない範囲内で種々変更して実施すること
ができる。
(9) In the above embodiment, the image signal G output from the image sensor 1 is an analog signal, but it may be a digital signal. In this case, the binarization circuit in the controller 5 is used. 6 is unnecessary. In addition, the present invention can be implemented with various modifications without departing from the scope.

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

【図1】本実施形態の全体を示す斜視図である。FIG. 1 is a perspective view showing the entirety of the present embodiment.

【図2】各信号のタイミングチャートである。FIG. 2 is a timing chart of each signal.

【図3】制御装置のブロック図である。FIG. 3 is a block diagram of a control device.

【図4】端部特定手段等を示すフローチャートである。FIG. 4 is a flowchart showing an end part specifying unit and the like.

【図5】欠点検査処理を示すフローチャートである。FIG. 5 is a flowchart showing a defect inspection process.

【図6】画像信号を示す波形図である。FIG. 6 is a waveform diagram showing an image signal.

【図7】海苔の測定領域を示す平面図である。FIG. 7 is a plan view showing a measurement region of seaweed.

【図8】欠点を有する海苔の平面図である。FIG. 8 is a plan view of seaweed having defects.

【図9】その他の実施形態における画像信号を示す波形
図である。
FIG. 9 is a waveform diagram showing an image signal in another embodiment.

【図10】その他の実施形態における画像信号を示す波
形図である。
FIG. 10 is a waveform chart showing an image signal in another embodiment.

【図11】従来例を示す斜視図である。FIG. 11 is a perspective view showing a conventional example.

【図12】従来例における海苔の測定領域を示す平面図
である。
FIG. 12 is a plan view showing a seaweed measurement region in a conventional example.

【図13】従来例における欠点を有する海苔の平面図で
ある。
FIG. 13 is a plan view of seaweed having a defect in the conventional example.

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

1…イメージセンサ L…走査ライン(走査領域) 1 ... Image sensor L ... Scan line (scan area)

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 ライン状の走査領域を有するイメージセ
ンサを備えるとともに、そのイメージセンサと被測定物
とを走査方向に対して交差する方向に相対的に変位させ
ることにより前記被測定物上の所定の測定領域に対して
画像処理がなされ、かつ、その測定領域が前記被測定物
の端部からの距離に基づいて決定される画像処理装置に
おいて、 ライン状の走査領域に対する前記イメージセンサから出
力される複数の画像データに基づいて前記被測定物の端
部を特定するための端部特定手段と、 前記端部特定手段によって特定された端部に基づき、そ
の端部から所定の距離を隔てた位置を前記測定領域の始
端位置とする始端位置特定手段と、 前記端部特定手段によって特定された端部に基づき、そ
の端部から所定の距離を隔てた位置を前記測定領域の終
端位置とする終端位置特定手段とからなることを特徴と
する画像処理装置。
1. An image sensor having a line-shaped scanning region is provided, and the image sensor and the object to be measured are relatively displaced in a direction intersecting with the scanning direction, whereby a predetermined amount on the object to be measured is provided. In the image processing device in which the image processing is performed on the measurement area, and the measurement area is determined based on the distance from the end of the measured object, the output from the image sensor for the linear scanning area is performed. An end part specifying means for specifying an end part of the object to be measured based on a plurality of image data, and based on the end part specified by the end part specifying means, a predetermined distance from the end part. Starting point position specifying means for setting a position as a starting end position of the measurement region, and based on the end part specified by the end part specifying means, the position at a predetermined distance from the end part is measured. An image processing apparatus comprising: an end position specifying means for setting an end position of an area.
【請求項2】 ライン状の走査領域を有するイメージセ
ンサと被測定物とを走査方向に対して交差する方向に相
対的に変位させることにより前記被測定物上の所定の測
定領域に対して画像処理を行う場合に、その測定領域の
決定を行う方法であって、 ライン状の走査領域に対する前記イメージセンサから出
力される複数の画像データに基づいて前記被測定物の端
部を特定し、その端部からの距離に基づいて前記測定領
域の始端位置と終端位置とを特定することを特徴とする
画像処理装置の測定領域決定方法。
2. An image for a predetermined measurement area on the object to be measured by relatively displacing an image sensor having a linear scanning area and the object to be measured in a direction intersecting the scanning direction. A method of determining the measurement area when performing processing, wherein the end of the object to be measured is specified based on a plurality of image data output from the image sensor for a linear scanning area, and A measurement area determination method for an image processing apparatus, characterized in that a start end position and an end position of the measurement area are specified based on a distance from an end portion.
JP8074853A 1996-03-28 1996-03-28 Image processing device and method for determining measuring region Pending JPH09264721A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8074853A JPH09264721A (en) 1996-03-28 1996-03-28 Image processing device and method for determining measuring region

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8074853A JPH09264721A (en) 1996-03-28 1996-03-28 Image processing device and method for determining measuring region

Publications (1)

Publication Number Publication Date
JPH09264721A true JPH09264721A (en) 1997-10-07

Family

ID=13559301

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8074853A Pending JPH09264721A (en) 1996-03-28 1996-03-28 Image processing device and method for determining measuring region

Country Status (1)

Country Link
JP (1) JPH09264721A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012101874A (en) * 2010-11-09 2012-05-31 Nec Corp Outline detection system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012101874A (en) * 2010-11-09 2012-05-31 Nec Corp Outline detection system

Similar Documents

Publication Publication Date Title
CA2053176C (en) Method of and apparatus for inspecting bottle or the like
US4623975A (en) Method and apparatus for detecting the profile and feeding state of paper sheets
EP0413522B1 (en) Detection of opaque foreign articles from among transparent bodies
JPH09264721A (en) Image processing device and method for determining measuring region
JPH06331317A (en) Dimension measuring device
EP0423794A2 (en) Surface inspecting apparatus
JP2924289B2 (en) Method and apparatus for measuring glass amount of circuit board
JP3240571B2 (en) Foreign matter inspection device
JPH04213007A (en) Method and apparatus for measuring shape of circular body
JP3374005B2 (en) Defect detection device for band edge
JP3413307B2 (en) Surface inspection equipment
JP3599295B2 (en) Optical dimension measuring device
JP4162426B2 (en) Pass / fail judgment output method and apparatus for measuring machine
JP4812568B2 (en) Optical measurement apparatus, optical measurement method, and optical measurement processing program
JPS6319793Y2 (en)
JP2595342B2 (en) Laser measuring device
JPH11132966A (en) Meandering following apparatus for flaw inspection apparatus
JPH10221026A (en) Method and apparatus for inspecting distortion of tile
JPS6130636B2 (en)
JPH08247730A (en) Edge detecting method of dimension measuring instrument
JPH11153548A (en) Method and apparatus for surface inspection
JPH07190956A (en) Method and apparatus for detecting defect in structure and/or pattern of material
JP3071542B2 (en) Thread break detector
JP3544748B2 (en) Surface inspection equipment
JPH0562942B2 (en)