JPH02304690A - Method for counting stacked platelike substances - Google Patents
Method for counting stacked platelike substancesInfo
- Publication number
- JPH02304690A JPH02304690A JP12621089A JP12621089A JPH02304690A JP H02304690 A JPH02304690 A JP H02304690A JP 12621089 A JP12621089 A JP 12621089A JP 12621089 A JP12621089 A JP 12621089A JP H02304690 A JPH02304690 A JP H02304690A
- Authority
- JP
- Japan
- Prior art keywords
- data
- stacked
- threshold
- platelike
- substances
- 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
Links
Landscapes
- Image Analysis (AREA)
Abstract
Description
この発明は積重ねられた板状物、例えばカード(プリペ
イドカード、クレジットカード等)、プリント基板等の
枚数を自動的に計数する方法に関するものである。
なお以下各図において同一の符号は同一もしくは相当部
分を示す。また論理“1″、“0″は単に“l“。
“0′と記すものとする。The present invention relates to a method for automatically counting the number of stacked plate-like objects, such as cards (prepaid cards, credit cards, etc.), printed circuit boards, etc. Note that in the following figures, the same reference numerals indicate the same or corresponding parts. Also, logic “1” and “0” are simply “l”. It shall be written as "0'.
集積された板状物の枚数を自動的に計測する方法として
は、板状物の積重ね方向の全長、又は板状物の全重量を
枚数の代用値として計り、板状物の1枚当りの厚さ又は
重さからその全枚数を計測する方法が知られている。A method for automatically measuring the number of stacked plates is to measure the total length of the plates in the stacking direction or the total weight of the plates as a substitute value for the number of plates, and calculate the number of plates per plate. A method of measuring the total number of sheets from the thickness or weight is known.
しかしながら上述のような板状物の枚数計測方法では、
代用値に使う1枚当りの厚さまたは重さのばらつきが比
較的大きい場合、正確に板状物の全枚数を計測できない
欠点がある。そこで本発明は積重ねられた板状物の端面
の画像を走査して板状物の積重ね枚数を求める積重ね板
状物の計数方法を提供することにより前記の問題を解消
することを課題とする。However, in the method of counting the number of plate-like objects as described above,
If the variation in thickness or weight per sheet used as a substitute value is relatively large, there is a drawback that the total number of sheets of the plate-like object cannot be accurately measured. SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problem by providing a method for counting stacked plate-like objects by scanning an image of the end face of the stacked plate-like objects and determining the number of stacked plate-like objects.
前記の課題を解決するために本発明の方法は、r積重ね
られた板状物(計薮対象物1など)の端面についての画
像の明るさのレベルを(CCOリニヤイメージセンサ4
などを介して)この積重ねの方向に走査し、この走査に
伴って得られる前記明るさのレベル(へ/D変換器出力
デーク78など)を(演算回路10などを介し)所定の
しきい値と比較し、この比較データの繰返しの回数を(
演算回路10などを介し)計数して前記板状物の積重ね
枚数を求めるように1するものとする。In order to solve the above-mentioned problems, the method of the present invention adjusts the brightness level of the image about the end face of the stacked plate-like object (such as the metering object 1) by adjusting the brightness level of the image (CCO linear image sensor 4
etc.) in the stacking direction, and the brightness level (to/D converter output data 78, etc.) obtained with this scanning is set to a predetermined threshold value (via the arithmetic circuit 10, etc.). and the number of repetitions of this comparison data (
It is assumed that the number of stacked plate-shaped objects is determined by counting (via the arithmetic circuit 10, etc.) to obtain the stacked number of the plate-like objects.
板状物の積重ね方向の画像データをイメージセンサ、
A/D変換回路、メモリ書込み回路により画像データメ
モリに取込み、このデータを演算回路で演算処理し、積
重ね方向で繰返されるデータの回数を計数することによ
り板状物の全枚数を計数するものである。An image sensor collects image data in the stacking direction of plate-like objects,
The image data is loaded into the memory using an A/D conversion circuit and a memory writing circuit, this data is processed by an arithmetic circuit, and the total number of plates is counted by counting the number of times the data is repeated in the stacking direction. be.
以下第1図および第2図に基づいて本発明の詳細な説明
する。第1図は本発明の一実施例としての構成を示すブ
ロック図、第2図は第1図の動作説明用の図である。
第1図において1は計数の対象物でプリペイドカード等
の板状物を積重ねたものであり、この対象物1はロッド
レンズアレイ3およびCCD リニヤイメージセンサ4
とそれぞれ所定の距離を置いて配置されている。
ここでロッドレンズアレイ3は直径1〜1.5 φ程度
の円柱(棒)状のレンズ(ロッドレンズ)を複数個、そ
の円柱の軸(光軸ともいう)が互いに平行となるように
相互にほぼ密着させながら直線状に一列に配列したもの
で、この例ではこの配列(アレイ)の方向と計数対象物
1の積重ね方向とは一敗するように構成されている。
またCCD リニヤイメージセンサ4も、自身の開口部
からの入力光をその明るさに応−した電気信号に変える
CCDセンサ素子を複数個、直線状に一列に配列したも
ので、この配列の方向も、ロッドレンズアレイ3におけ
るロッドレンズの配列方向と一敗するよう構成されてい
る。
2 (2−1,2−2)は計数対象物工を照明するラン
プでイメージセンサ4の感度1分光特性およびロッドレ
ンズアレイ3の光学的特性等により発光源の種類、明る
さが決められる。またランプ2−1.2−2は対象物1
の材質(光学的特性)、厚み等により最適な位置に取付
けられる。
このようにしてロッドレンズアレイ3内の各ロッドレン
ズはそれぞれ自身の光軸の前方から入力した対象物lの
像を自身の光軸の後方にあるリニヤイメージセンサ4内
の対応するCCDセンサ素子の部分に1:lに結ぶ。
従ってリニヤイメージセンサ4のCCDセンサ素子の出
力信号をCCD駆動回路5を介し、そのセンサ素子の配
列の順に読出すことによって、計数対象物1の積重ね方
向の画像データが得られる。
ここでCCD駆動回路5はCCD リニヤイメージセン
サ4の動作に必要なシフトパルス、転送パルス。
リセットパルス等を発止する回路であり、このパルス巾
、タイミング等はイメージセンサ4の特性等により決め
られる。
なお上述の構成において、計数対象物1の鮮明な像をリ
ニヤイメージセンサ4の開口部に結ぶために、ロッドレ
ンズアレイ3はロッドレンズの光軸方向の中心がリニヤ
イメージセンサ4と対象物1との距離の172の位置に
なるように取付けられている。
またCCDリニヤイメージセンサ4の解像度はセンサ4
の画素としてのCCDセンサ素子1個の大きさで基本的
には決められ、ここでは7μmのものを使用した。また
取込む画像は対象物1の積重ね方向の1列の画像でよい
ため、画素が1列に直列に配置されたリニヤイメージセ
ンサとし、画素数は対象物の集積された寸法により決め
る。例えば画素サイズ7μmで画素数5000個とすれ
ば、7 am X5000=35mmとなり積重ねの全
長が35mm以下(実際にはもう少し余裕を取る必要が
ある)の対象物1が計数可能となる。
次に6は増幅器でリニヤイメージセンサ4より画像デー
タに対応して出力される微小な電気信号を増幅する回路
である。またこの増幅器6はイメージセンサ4の出力信
号に付随する1画像データに無関係な信号を除去する機
能を持つものとする。
7はA/D変換器で、増幅器6より出力される画像デー
タに応じたアナログ信号をデジタル信号に変換する回路
で゛あり、ここでは8ビツト出力とした。
従ってA/D変換器の出力は8本あり、人力信号の大き
さによりO〜255の範囲でデジタル値が出力される。
8はメモリ書込回路でA/D変換器7からの出力データ
を画像データメモリiの予め決められたエリアに順次書
込む回路である。9は画像データメモリで最低でも50
00画素×8ビットつまり5000バイト以上の容量が
必要である。lOは演算回路で画像データメメモリ9よ
りデータを読出して計数に必要な演算処理を行う回路で
ある。
次に第1図の計数動作の詳細を第2図を使って説明する
。第2図(1)は、計数の対象物1の積重ね方向の断面
(の輪郭)を模凝的に表した図である。
即ちこの断面は板状の対象物1の板面に垂直で、かつ積
重ね方向に平行な平面で対象物1を裁断したときの断面
を示している。
このような断面を持つ対象物1を第2図の紙面の下方か
ら上方に向けて撮像したときの画像データを前述したよ
うにCCDリニヤイメージセンサ4に取入れると、イメ
ージセンサ4からの出力信号2aは第2図(1)の断面
の変化に応じ、同図(2)のようにVda taが変化
した信号を得ることができる。
このVda taの大きさはイメージセンサ4の特性と
しては最大lv位まで得られるが、この値は飽和電圧で
あるため実際には最悪状態でも飽和電圧に達しないよう
にランプ2つの光量、イメージセンサ4での画像取込み
時間等を最適にする。またイメージセンサ出力信号4a
には真の画像データ出力(Vdata)の他に、第2図
(2)のRで示すような、イメージセンサ出力信号4a
を取出すためのパルスがノイズとして重畳されて出力さ
れる。そこで次にこのイメージセンサ出力信号4aを増
幅器6に入れ、画像データを反転増幅すると共に不必要
なノイズRを除去して第2図(3)に示す増幅器出力信
号6aを得る。更に増幅器出力信号6aをA/D変換器
7に入力し、その出力として第2図(4)のようなデジ
タル出カフaを得る。そして、このA/D変換器出力デ
ータ7aをメモリ書込回路8により前述のように画像デ
ータメモリ9に書込む。この書込回路8はDMA(Di
rect Memory Access)と呼ばれてい
る方式で、高速に画像データメモリ9にデータを書込む
。
このようにして画像データメモリ9には対象物1の断面
の変化に応じた数値が書かれる。従って、この画像デー
タメモリ9のデータを演算回路10でなんらかの演算を
させ、周期的な変化を取出せば、対象物lの計数は容易
に可能となる。この演算として例えば閾値100を設け
、この闇値と画像データメモリ9の格納データ(従って
この例ではA/D変換器出力データ7a)との大小比較
を行うこととし、(闇値)≦(データ7a)の場合“1
”、(闇値)〉(データ7a)の場合“O”とすると、
演算結果は第2図(5)のようになる。この結果より“
0”から“1”に(又はその逆に“1′から“0“に)
変化する回数を計数すれば、対象物1の積重ね枚数を判
断することができる。演算回路10はマイクロコンピュ
ータで構成した方が経済的であるが、高速性を要求され
る場合は専用のハードで構成することが必要である。ま
た上述の闇値による大小比較の他の方法トしては、A/
D変換回路7をコンパレータに置換えて、このコンパレ
ータにより闇値としてのアナログの比較基準値と増幅器
出力信号6aとを比較し、この比較した結果としての大
、小に対応する“l”、“0”のデータを画像データメ
モリ9に書込む等の方法も考えられる。The present invention will be explained in detail below based on FIGS. 1 and 2. FIG. 1 is a block diagram showing a configuration as an embodiment of the present invention, and FIG. 2 is a diagram for explaining the operation of FIG. 1. In FIG. 1, reference numeral 1 denotes an object to be counted, which is a stack of plate-like objects such as prepaid cards, and this object 1 includes a rod lens array 3 and a CCD linear image sensor 4.
and are placed at a predetermined distance from each other. Here, the rod lens array 3 includes a plurality of cylindrical (rod) shaped lenses (rod lenses) each having a diameter of approximately 1 to 1.5 φ, and are arranged so that the axes of the cylinders (also referred to as optical axes) are parallel to each other. They are arranged in a straight line in almost close contact with each other, and in this example, the direction of this arrangement (array) and the stacking direction of the objects 1 to be counted are arranged so that they are aligned. The CCD linear image sensor 4 also has a plurality of CCD sensor elements arranged in a straight line to convert the input light from its own aperture into an electrical signal corresponding to its brightness, and the direction of this arrangement is also variable. , is configured to be aligned with the arrangement direction of the rod lenses in the rod lens array 3. 2 (2-1, 2-2) are lamps that illuminate the objects to be counted, and the type and brightness of the light source are determined by the sensitivity 1 spectral characteristics of the image sensor 4 and the optical characteristics of the rod lens array 3. In addition, the lamp 2-1.2-2 is the target object 1.
It can be installed at the optimal position depending on the material (optical properties), thickness, etc. In this way, each rod lens in the rod lens array 3 transfers the image of the object l input from the front of its own optical axis to the corresponding CCD sensor element in the linear image sensor 4 located behind its own optical axis. Tie the parts 1:l. Therefore, by reading out the output signals of the CCD sensor elements of the linear image sensor 4 via the CCD drive circuit 5 in the order of the arrangement of the sensor elements, image data in the stacking direction of the objects to be counted 1 can be obtained. Here, the CCD drive circuit 5 generates shift pulses and transfer pulses necessary for the operation of the CCD linear image sensor 4. This circuit generates a reset pulse, etc., and the width, timing, etc. of this pulse are determined by the characteristics of the image sensor 4, etc. In the above configuration, in order to focus a clear image of the object to be counted 1 on the aperture of the linear image sensor 4, the rod lens array 3 is arranged such that the center of the rod lens in the optical axis direction is located between the linear image sensor 4 and the object 1. It is installed at a position of 172 with a distance of . Also, the resolution of the CCD linear image sensor 4 is
It is basically determined by the size of one CCD sensor element as a pixel, and here, a 7 μm one was used. Furthermore, since the image to be captured may be one row of images in the stacking direction of the objects 1, a linear image sensor in which pixels are arranged in series in one row is used, and the number of pixels is determined by the stacked dimensions of the objects. For example, if the pixel size is 7 μm and the number of pixels is 5000, then 7 am x 5000 = 35 mm, which makes it possible to count objects 1 whose total stacked length is 35 mm or less (in reality, it is necessary to provide a little more margin). Next, 6 is an amplifier, which is a circuit for amplifying minute electrical signals outputted from the linear image sensor 4 in accordance with image data. It is also assumed that the amplifier 6 has a function of removing signals unrelated to one image data accompanying the output signal of the image sensor 4. Reference numeral 7 denotes an A/D converter, which is a circuit that converts an analog signal corresponding to the image data outputted from the amplifier 6 into a digital signal, and here the output is 8 bits. Therefore, there are eight outputs of the A/D converter, and digital values are output in the range of 0 to 255 depending on the magnitude of the human input signal. Reference numeral 8 denotes a memory write circuit which sequentially writes output data from the A/D converter 7 into predetermined areas of the image data memory i. 9 is the image data memory, which is at least 50
A capacity of 00 pixels x 8 bits, that is, 5000 bytes or more is required. 1O is an arithmetic circuit which reads data from the image data memory 9 and performs arithmetic processing necessary for counting. Next, details of the counting operation shown in FIG. 1 will be explained using FIG. 2. FIG. 2(1) is a diagram schematically showing a cross section (outline) of the object 1 to be counted in the stacking direction. That is, this cross section shows a cross section when the object 1 is cut along a plane perpendicular to the plate surface of the plate-shaped object 1 and parallel to the stacking direction. When the image data obtained when the object 1 having such a cross section is imaged from the bottom to the top of the paper in FIG. 2 is input into the CCD linear image sensor 4 as described above, the output signal from the image sensor 4 is 2a can obtain a signal whose Vdata changes as shown in FIG. 2(2) in accordance with the change in the cross section shown in FIG. 2(1). The magnitude of Vdata can be obtained up to the maximum lv as a characteristic of the image sensor 4, but since this value is the saturation voltage, in reality, the light intensity of the two lamps and the image sensor are adjusted so that it does not reach the saturation voltage even in the worst case. Optimize the image capture time etc. in step 4. In addition, the image sensor output signal 4a
In addition to the true image data output (Vdata), the image sensor output signal 4a as shown by R in FIG.
The pulse for extraction is superimposed as noise and output. Then, this image sensor output signal 4a is input to an amplifier 6, where the image data is inverted and amplified, and unnecessary noise R is removed to obtain an amplifier output signal 6a shown in FIG. 2(3). Furthermore, the amplifier output signal 6a is input to an A/D converter 7, and a digital output signal a as shown in FIG. 2 (4) is obtained as its output. Then, this A/D converter output data 7a is written into the image data memory 9 by the memory write circuit 8 as described above. This write circuit 8 is a DMA (Di
Data is written into the image data memory 9 at high speed using a method called rect Memory Access. In this way, numerical values corresponding to changes in the cross section of the object 1 are written in the image data memory 9. Therefore, if the data in the image data memory 9 is subjected to some calculation by the calculation circuit 10 and periodic changes are extracted, it becomes possible to easily count the objects l. For this calculation, for example, a threshold value of 100 is set, and a comparison is made between this darkness value and the data stored in the image data memory 9 (therefore, in this example, the A/D converter output data 7a), and (darkness value) ≦ (data In case of 7a) “1
”, (dark value)> (data 7a), if it is “O”, then
The calculation result is as shown in FIG. 2 (5). From this result “
From “0” to “1” (or vice versa from “1’ to “0”)
By counting the number of changes, the number of stacked objects 1 can be determined. It is more economical to configure the arithmetic circuit 10 with a microcomputer, but if high speed is required, it is necessary to configure it with dedicated hardware. In addition, as for the other method of size comparison using the above-mentioned dark value, A/
The D conversion circuit 7 is replaced with a comparator, and this comparator compares the analog comparison reference value as a dark value with the amplifier output signal 6a, and "l" and "0" corresponding to large and small as a result of this comparison. A method such as writing the data of `` into the image data memory 9 may also be considered.
本発明によれば計数対象物の積重ね方向の画像データを
CCD リニヤイメージセンサに取込み、画像データの
変化を電気信号に変え、その電気信号の周期的な変化を
取出し計数して対象物の積重ね枚数を求めることとした
ので、対象物の厚みのばらつきが有っても正確に積重ね
枚数を計数することができる。According to the present invention, image data in the stacking direction of objects to be counted is captured into a CCD linear image sensor, changes in the image data are converted into electrical signals, periodic changes in the electrical signals are extracted and counted, and the number of stacked objects is counted. Since the number of stacked sheets can be accurately counted even if there are variations in the thickness of the objects.
第1図は本発明の一実施例としての構成を示すブロック
図、
第2図は第1図の動作説明用の図である。
1:計数対象物、2 (2−1、2−2) :ランプ、
3:ロッドレンズアレイ、4:CCD リニヤイメージ
センサ、5:CCD駆動回路、6:増幅器、7:八/D
変換器、8:メモリ書込回路、9:画像データメモリ、
10:演算回路。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, and FIG. 2 is a diagram for explaining the operation of FIG. 1. 1: Counting object, 2 (2-1, 2-2): Lamp,
3: Rod lens array, 4: CCD linear image sensor, 5: CCD drive circuit, 6: Amplifier, 7: 8/D
Converter, 8: Memory writing circuit, 9: Image data memory,
10: Arithmetic circuit.
Claims (1)
のレベルをこの積重ねの方向に走査し、この走査に伴っ
て得られる前記明るさのレベルを所定のしきい値と比較
し、この比較データの繰返しの回数を計数して前記板状
物の積重ね枚数を求めるようにしたことを特徴とする積
重ね板状物の計数方法。1) Scan the brightness level of the image of the end face of the stacked plate-like objects in the stacking direction, compare the brightness level obtained with this scanning with a predetermined threshold, and A method for counting stacked plate-like objects, characterized in that the number of stacked plate-like objects is determined by counting the number of times comparison data is repeated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP12621089A JPH02304690A (en) | 1989-05-19 | 1989-05-19 | Method for counting stacked platelike substances |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP12621089A JPH02304690A (en) | 1989-05-19 | 1989-05-19 | Method for counting stacked platelike substances |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH02304690A true JPH02304690A (en) | 1990-12-18 |
Family
ID=14929449
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP12621089A Pending JPH02304690A (en) | 1989-05-19 | 1989-05-19 | Method for counting stacked platelike substances |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH02304690A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0676718A1 (en) * | 1994-04-11 | 1995-10-11 | Gilles Leroux S.A. | Arrangement for optically counting stacked products |
AT524451A1 (en) * | 2020-11-25 | 2022-06-15 | Westermayer Rainer | METHOD OF DETERMINING THE NUMBER OF A QUANTITY OF FLAT OBJECTS STACKED IN A STACK |
-
1989
- 1989-05-19 JP JP12621089A patent/JPH02304690A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0676718A1 (en) * | 1994-04-11 | 1995-10-11 | Gilles Leroux S.A. | Arrangement for optically counting stacked products |
FR2718550A1 (en) * | 1994-04-11 | 1995-10-13 | Leroux Gilles Sa | Device for counting products. |
AT524451A1 (en) * | 2020-11-25 | 2022-06-15 | Westermayer Rainer | METHOD OF DETERMINING THE NUMBER OF A QUANTITY OF FLAT OBJECTS STACKED IN A STACK |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4523229A (en) | Shading correction device | |
JP2830482B2 (en) | High dynamic range imaging device | |
US3952290A (en) | Read-only optical memory system | |
EP0875044B1 (en) | Edge sensing | |
JPH02304690A (en) | Method for counting stacked platelike substances | |
JPH0284880A (en) | Control method for picture reader | |
JPH0731717B2 (en) | Optical reader | |
JPH1049654A (en) | Signal correcting method for image fetching device | |
JPH05183143A (en) | Multielement light sensor device | |
JP2587433B2 (en) | Banknote recognition device | |
JP3157833B2 (en) | Method for performing image processing operations on a two-dimensional image and apparatus for performing the method | |
JP2645198B2 (en) | Pattern recognition device | |
JP2765285B2 (en) | Displacement gauge | |
JPH0282867A (en) | image input device | |
JPH0727610A (en) | Spectrophotometer | |
JPS61709A (en) | Solar sensor | |
JPS61237575A (en) | Picture reader | |
JPS6230114Y2 (en) | ||
JP2523124B2 (en) | Image input device | |
RU1832403C (en) | Infra-red imager | |
JPS6312431B2 (en) | ||
JPH0743136A (en) | Printing area ratio measurement method and device therefor | |
JPS6219965Y2 (en) | ||
JPS63308471A (en) | Picture signal binarization device | |
JPH0814832B2 (en) | Barcode reader |