JPH04223206A - Method for processing sensor signal by ccd element - Google Patents

Method for processing sensor signal by ccd element

Info

Publication number
JPH04223206A
JPH04223206A JP41437790A JP41437790A JPH04223206A JP H04223206 A JPH04223206 A JP H04223206A JP 41437790 A JP41437790 A JP 41437790A JP 41437790 A JP41437790 A JP 41437790A JP H04223206 A JPH04223206 A JP H04223206A
Authority
JP
Japan
Prior art keywords
signal
level
voltage
peak
value
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
JP41437790A
Other languages
Japanese (ja)
Inventor
Yosaburo Nishikawa
西川 与三郎
Kazuo Muraoka
村岡 和男
Noboru Takami
高見 昇
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.)
Toyo Kikai Co Ltd
Original Assignee
Toyo Kikai 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 Toyo Kikai Co Ltd filed Critical Toyo Kikai Co Ltd
Priority to JP41437790A priority Critical patent/JPH04223206A/en
Publication of JPH04223206A publication Critical patent/JPH04223206A/en
Pending legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

PURPOSE:To obtain a binary-coded signal which is stable for a long time by holding a peak-level voltage of a light source, resetting it, performing A/D conversion and then feeding it to a microcomputer, calculating a value of a specific % of an input value and then setting it as a slice level. CONSTITUTION:A band-shaped object 1 is allowed to run between a light source 3 and a CCD element sensor 2 and an obtained 'bright' or 'dark' video signal A is binary-coded by a slide level signal for judgment. A peak-level voltage VP in the 'bright' level is held by a peak-hold circuit 5, is A/D converted by an A/D converter 6, is reset by a reset circuit 7, and a digital signal D1 with a voltage of VP is led into a microcomputer 8. A slide level voltage VS is calculated in a microcomputer 8 based on the voltage VP and 50-80% of the voltage VP is output as a digital signal D2. Video signal is processed by a comparator 10 in reference to a voltage VS which is obtained by performing D/A conversion of this signal D2 and is taken out as a binary-coded signal.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、紙、布、不織布あるい
は鋼板等の帯状物の位置、または幅寸法を計測するため
のCCD素子(電子カメラ)によるセンサー信号の処理
方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for processing sensor signals using a CCD element (electronic camera) for measuring the position or width of a strip of paper, cloth, nonwoven fabric, steel plate, or the like.

【0002】0002

【従来の技術】上記した各種の帯状物のエッジ位置の検
出や幅寸法の測定法には種々な方式が知られているが、
その代表例として蛍光灯光源とCCD素子による方法を
挙げることができる。
[Prior Art] Various methods are known for detecting the edge position and measuring the width dimension of the various strips mentioned above.
A typical example is a method using a fluorescent lamp light source and a CCD element.

【0003】この方法は、移送されている帯状物、例え
ば検反や捺染のために移送されている布生地の両エッジ
部の上方にCCD素子を、そして下方に蛍光灯(以下光
源という)をそれぞれ配設し、下方から上方へ投射する
光源からの光の1部が布生地により遮られた「暗」の部
分と、遮られずに直射された「明」の部分とをCCD素
子により映像として検出し、そのビデオ信号を処理して
二値化信号として取り出すとともに、「暗」の部分と「
明」の部分との光量変化点を読み取り、その信号をコン
トローラで数値変換して布生地のエッジ位置や幅寸法を
表示するものである。
[0003] This method uses a CCD element above both edges of a strip of material that is being transported, such as cloth that is being transported for inspection or printing, and a fluorescent lamp (hereinafter referred to as a light source) below. A CCD element images the "dark" part where part of the light from the light source projected from the bottom to the top is blocked by the fabric, and the "bright" part where it is directly illuminated without being blocked. The video signal is processed and extracted as a binary signal, and the "dark" part and the "
It reads the light intensity change point with the "bright" part, converts the signal into a numerical value using a controller, and displays the edge position and width of the cloth.

【0004】0004

【発明が解決しようとする課題】ところで、光源からの
光量はその使用時間や周囲温度等の要因によって変動し
、光量が変動すると、CCD素子により捕足された「明
」部のビデオ信号レベルが「明」、「暗」を判断するた
めに設定されているスライスレベルより下がったり、あ
るいは逆に「暗」部のビデオ信号がスライスレベルを越
えたりして二値化信号の取り出しが不能となる事態を招
くことになり、かかる事態の発生毎にスライスレベル電
圧の調整を行っているのが実情である。そして、このよ
うな事態は品種によって光透過率の異なる布生地、不織
布、紙、フィルム等の場合に多く発生する。
[Problems to be Solved by the Invention] By the way, the amount of light from a light source fluctuates depending on factors such as the time of use and ambient temperature, and when the amount of light fluctuates, the video signal level of the "bright" portion captured by the CCD element changes. If the slice level falls below the slice level set for determining "bright" and "dark," or conversely, the video signal in the "dark" area exceeds the slice level, making it impossible to extract the binarized signal. In reality, the slice level voltage is adjusted every time such a situation occurs. Such a situation often occurs in the case of cloth, nonwoven fabric, paper, film, etc., which have different light transmittances depending on the type.

【0005】本発明は、このような光源の光量変動に基
づく不都合を改善し、光量変化が生じても、その都度ス
ライスレベル電圧の調整を要することなく長時間安定し
た二値化信号を得ることを目的としているものである。
[0005] The present invention improves the inconvenience caused by variations in the light intensity of a light source, and obtains a binary signal that is stable for a long period of time without requiring adjustment of the slice level voltage each time even if the light intensity changes. The purpose is to

【0006】[0006]

【課題を解決するための手段】本発明は、上記の課題を
解決するため、実働中の光源のピークレベル電圧(「明
」部分における最大光量)をホールドしてリセットする
とともに、そのホールドしたピークレベル信号をA/D
変換してマイクロコンピュータ(以下マイコンという)
に入力し、マイコンにおいて、この入力値の50〜80
%の値を算出せ、この割引値をスライスレベルとして使
用するものである。
[Means for Solving the Problems] In order to solve the above problems, the present invention holds and resets the peak level voltage (maximum light amount in the "bright" portion) of the light source during actual operation, and also A/D level signal
Convert to microcomputer (hereinafter referred to as microcomputer)
50 to 80 of this input value on the microcontroller.
% value and use this discount value as the slice level.

【0007】即ち、蛍光灯光源とCCD素子との間にお
いてて帯状物を走行させ、該光源からの直射により得ら
れる「明」の信号レベルと、該帯状物に遮られることに
よって得られた「暗」の信号レベルとによる波形信号を
スライドレベルに基いて二値化判断するに際し、「明」
の信号のピークレベル電圧をピークホールド回路でホー
ルドするとともに、そのピークレベル電圧をA/D変換
してリセットしたのち、マイコンに入力し、マイコンに
予め設定記憶させている50〜80%の範囲の比率をピ
ークレベル値に乗じて計算させて、その値をスライスレ
ベル電圧に決定し、このスライスレベル値をD/A変換
し、このD/A変換値を基準にコンパレータで修正して
、二値化信号として取り出すようになしたものである。
That is, a strip is run between a fluorescent lamp light source and a CCD element, and a "bright" signal level obtained by direct radiation from the light source and a "bright" signal level obtained by being blocked by the strip are determined. When making a binarization judgment based on the slide level of a waveform signal with a "dark" signal level, "bright"
The peak level voltage of the signal is held in the peak hold circuit, and the peak level voltage is A/D converted and reset, and then input to the microcomputer and set in the range of 50 to 80%, which is preset and stored in the microcomputer. The ratio is multiplied by the peak level value, the value is determined as the slice level voltage, this slice level value is D/A converted, and the comparator corrects it based on this D/A converted value, and the binary value is determined. It is designed to be extracted as a conversion signal.

【0008】上記したピークレベル電圧のホールドおよ
びリセットは、一定時間毎に実施して、その時期時期の
ピークレベル電圧をA/D変換してマイコンに入力する
ことが望ましい。
It is desirable that the above-mentioned holding and resetting of the peak level voltage be carried out at regular intervals, and the peak level voltage at that period be A/D converted and input to the microcomputer.

【0009】また、マイコンによって計算されるスライ
スレベル電圧の値は、帯状物の光透過性を考慮して予め
ピークレベル電圧に対する比率でもって決定され、その
比率は50〜80%程度が好ましく、光透過率の大きい
ものに対しては80%前後、小さいものに対しては50
%程度が実用的である。
Further, the value of the slice level voltage calculated by the microcomputer is determined in advance as a ratio to the peak level voltage in consideration of the light transmittance of the strip, and the ratio is preferably about 50 to 80%. Around 80% for high transmittance, 50% for low transmittance
% is practical.

【0010】0010

【作用】ビデオ信号の光量レベルを常に監視しながらビ
デオ信号のピークレベル電圧よりも低いスライスレベル
を基準として二値化信号を処理し、帯状物のエッジ位置
や幅寸法を計測することによって、光源の光量変化が生
じても常に安定した二値化データを表示する。
[Operation] While constantly monitoring the light intensity level of the video signal, the light source is Always displays stable binary data even when changes in light intensity occur.

【0011】[0011]

【実施例】以下、本発明の実施例を略示している添付図
面にもとづいて説明すると、図1は帯状物の位置や幅計
測の基本構成を示すもので、帯状物1の上方にビデオセ
ンサーであるCCD素子センサー2、2が配設され、該
帯状物1の下方両側に蛍光灯光源3、3が該CCD素子
センサー2、2と対向して配設されていて、両者2、3
間において該帯状物1が移送され、CCD素子センサー
2からのビデオ信号はデジタルコントローラ4において
処理されるようになっている。
[Embodiment] Hereinafter, an embodiment of the present invention will be explained based on the attached drawings, which schematically show the following. Fig. 1 shows the basic configuration for measuring the position and width of a strip-like object. CCD element sensors 2, 2 are disposed, and fluorescent lamp light sources 3, 3 are disposed on both sides below the strip-shaped object 1, facing the CCD element sensors 2, 2.
The strip 1 is transferred between the two, and the video signal from the CCD element sensor 2 is processed by a digital controller 4.

【0012】図2は該コントローラ4における信号処理
のブロック図、そして図3は図2のタイミングチャート
を示している。
FIG. 2 is a block diagram of signal processing in the controller 4, and FIG. 3 shows a timing chart of FIG.

【0013】本発明は、このように光源3とCCD素子
センサー2との間に帯状物1を走行させ、CCD素子セ
ンサー2のビデオ信号A、即ち、該光源3からの直射に
より得られた「明」の信号レベルA1と該帯状物1に遮
られることにより得られた「暗」の信号レベルA2 と
に波形信号をスライスレベル信号Bで二値化判断するに
際し、この「明」の信号レベルA1 のピークレベル電
圧Vpをピークホールド回路5でホールドするとともに
、そのピークレベル電圧Vpをコンバータ6でもってA
/D変換し、リセット回路7でリセットしたのち、その
ピークレベル電圧Vpのデジタル信号D1をマイクロコ
ンピュータ8に導き入れる。マイクロコンピュータ8に
は、スライドレベル電圧Vsが入力された上記ピークレ
ベル電圧Vpの50%とする旨予め設定記憶されている
According to the present invention, the strip 1 is run between the light source 3 and the CCD sensor 2, and the video signal A of the CCD sensor 2, that is, the video signal A obtained by direct radiation from the light source 3, is When the waveform signal is binarized and determined using the slice level signal B, the "bright" signal level A1 and the "dark" signal level A2 obtained by being blocked by the strip 1 are determined. The peak level voltage Vp of A1 is held by the peak hold circuit 5, and the peak level voltage Vp of A1 is held by the converter 6.
/D conversion and reset by the reset circuit 7, the digital signal D1 of the peak level voltage Vp is introduced into the microcomputer 8. The microcomputer 8 stores in advance a setting that the slide level voltage Vs is 50% of the input peak level voltage Vp.

【0014】したがって、入力されたピークレベル電圧
Vp数値に基づき、マイコン8においてスライドレベル
Vsの数値が計算されて、ピークレベル電圧Vpの50
/100の値がデジタル信号D2 として出力され、こ
のデジタル信号をコンバータ9でD/A変換して、この
値をスライスレベル電圧Vsとし、このスライスレベル
電圧Vsを基準としてコンパレータ10でビデオ信号を
処理し、二値化信号(D)として取り出されるようにな
したものである。
Therefore, based on the input peak level voltage Vp value, the microcomputer 8 calculates the slide level Vs value, and calculates the value of the slide level Vs by 50% of the peak level voltage Vp.
A value of /100 is output as a digital signal D2, this digital signal is D/A converted by a converter 9, this value is set as a slice level voltage Vs, and a video signal is processed by a comparator 10 using this slice level voltage Vs as a reference. The signal is then extracted as a binary signal (D).

【0015】[0015]

【発明の効果】上記のような本発明のCCD素子センサ
ーからのビデオ信号Aの処理方法によれば、図3の(イ
)に示しているように、帯状物1の光透過度によって透
過光量Vdなる電圧が現われても、また、光源3の光量
のピークレベル電圧Vpが低下しても、Vp>Vs>V
dの状態が確実に維持され、図3(ロ)に示したような
二値化信号を安定して得ることができる。
Effects of the Invention According to the method for processing the video signal A from the CCD element sensor of the present invention as described above, as shown in FIG. Even if a voltage Vd appears, or even if the peak level voltage Vp of the light amount of the light source 3 decreases, Vp>Vs>V
The state d is reliably maintained, and a binary signal as shown in FIG. 3(b) can be stably obtained.

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

【図1】帯状物の位置や幅寸法の計測部の基本構成を示
した簡略図である。
FIG. 1 is a simplified diagram showing the basic configuration of a measuring section for measuring the position and width of a strip.

【図2】コントローラにおける信号処理のブロック図で
ある。
FIG. 2 is a block diagram of signal processing in a controller.

【図3】信号処理のタイミングチャートである。FIG. 3 is a timing chart of signal processing.

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

1  帯状物 2  CCD素子 3  光  源 4  コントローラ 5  ピークホールド回路 6  A/Dコンバータ 7  リセット回路 8  マイクロコンピュータ 9  D/Aコンバータ 10  コンパレータ A  ビデオ信号 A1   「明」の信号レベル A2   「暗」の信号レベル Vp  ピークレベル電圧 Vs  スライスレベル電圧 B    スライスレベル 1 Striped material 2 CCD element 3 Light source 4 Controller 5 Peak hold circuit 6 A/D converter 7 Reset circuit 8. Microcomputer 9 D/A converter 10 Comparator A Video signal A1 "Bright" signal level A2 "Dark" signal level Vp Peak level voltage Vs slice level voltage B Slice level

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  蛍光灯光源とビデオ信号を出力するC
CD素子センサーとの間に帯状物を走行させ、該光源か
らの直射により得られた「明」の信号レベルA1 と、
該帯状物に遮られることにより得られた「暗」の信号レ
ベルA2 とによる波形信号をスライスレベルBで二値
価判断するに際し、「明」の信号レベルのピークレベル
電圧Vpをピークホールド回路でホールドするとともに
、そのピークレベル電圧VpをA/D変換してリセット
したのち、マイクロコンピュータ8に入力し、コンピュ
ータにおいて該ピークレベル値の50〜80%となる範
囲において、予め設定した比率を乗じて計算させ、その
値をスライスレベル信号D2 として出力させ、このス
ライスレベル信号D2 をD/A変換し、このD/A変
換値VsのスライスレベルBを基準にコンパレータ10
で二値化信号Dとして出力するようにしたことを特徴と
するCCD素子によるセンサー信号の処理方法。
[Claim 1] A fluorescent lamp light source and a C that outputs a video signal.
A "bright" signal level A1 obtained by running a strip between the CD element sensor and direct radiation from the light source;
When making a binary value judgment of the waveform signal due to the "dark" signal level A2 obtained by being blocked by the band-shaped object at the slice level B, the peak level voltage Vp of the "bright" signal level is determined by a peak hold circuit. At the same time, the peak level voltage Vp is A/D converted and reset, then input to the microcomputer 8, and the computer multiplies it by a preset ratio within the range of 50 to 80% of the peak level value. The calculated value is output as a slice level signal D2, this slice level signal D2 is D/A converted, and the comparator 10 is converted based on the slice level B of this D/A converted value Vs.
A method of processing a sensor signal using a CCD element, characterized in that the signal is output as a binary signal D.
JP41437790A 1990-12-25 1990-12-25 Method for processing sensor signal by ccd element Pending JPH04223206A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP41437790A JPH04223206A (en) 1990-12-25 1990-12-25 Method for processing sensor signal by ccd element

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP41437790A JPH04223206A (en) 1990-12-25 1990-12-25 Method for processing sensor signal by ccd element

Publications (1)

Publication Number Publication Date
JPH04223206A true JPH04223206A (en) 1992-08-13

Family

ID=18522864

Family Applications (1)

Application Number Title Priority Date Filing Date
JP41437790A Pending JPH04223206A (en) 1990-12-25 1990-12-25 Method for processing sensor signal by ccd element

Country Status (1)

Country Link
JP (1) JPH04223206A (en)

Similar Documents

Publication Publication Date Title
CN102745134A (en) Detection apparatus and detection method
US10205886B2 (en) Imaging apparatus, control method, and storage medium
US10458924B2 (en) Inspection apparatus and inspection method
JPH04223206A (en) Method for processing sensor signal by ccd element
JP2995124B2 (en) Dimension measuring device
JPH10335071A (en) Lighting system
JPS6326841B2 (en)
DE58905217D1 (en) AUTOMATIC SCREEN ADJUSTMENT OF PIPES.
JPS63128890A (en) Image detector for surface region of travelling goods route
JP4591037B2 (en) Flicker component detection apparatus and flicker component detection method
JP2011149911A (en) Wetting detector and wetting detection method
KR0183788B1 (en) How to detect and display the lack of light in the image recording and recording device
NL8204260A (en) MEASURING DEVICE FOR MEASURING THE OPTICAL DENSITY OF BOTH THE SUBSTRATE AND OF THE IMAGES IN AN ORGINAL.
JP3755319B2 (en) Main subject detection device and apparatus using the same
JPH11183395A (en) Defect inspection equipment
JPH11295048A (en) Image processing device
JPH03194410A (en) Edge detecting method for in-furnace traveling steel belt
JPH0558313B2 (en)
JPS5744838A (en) Method for discriminating defect on surface of high temperature material
JP2557887B2 (en) Vehicle speed measurement device
JPS6089734A (en) Inspecting method of surface defect
JPS5941525B2 (en) Method and device for measuring light distribution pattern of vehicle lamps
JPS5631159A (en) Picture processor
JPS63277972A (en) Optical speed indicator
KR920005015A (en) Step Shape Detection Device