JPH0656295B2 - Image processing method - Google Patents
Image processing methodInfo
- Publication number
- JPH0656295B2 JPH0656295B2 JP60298431A JP29843185A JPH0656295B2 JP H0656295 B2 JPH0656295 B2 JP H0656295B2 JP 60298431 A JP60298431 A JP 60298431A JP 29843185 A JP29843185 A JP 29843185A JP H0656295 B2 JPH0656295 B2 JP H0656295B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- image data
- data
- signal
- 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.)
- Expired - Fee Related
Links
Landscapes
- Image Analysis (AREA)
- Length Measuring Devices By Optical Means (AREA)
- Character Input (AREA)
- Processing Or Creating Images (AREA)
- Image Processing (AREA)
- Closed-Circuit Television Systems (AREA)
Description
【発明の詳細な説明】 (産業上の利用分野) 本発明は、視覚センサを用いて対象物の位置を検出する
場合の画像処理方法に関する。Description: TECHNICAL FIELD The present invention relates to an image processing method for detecting the position of an object using a visual sensor.
(従来の技術) 従来、対象物を視覚センサにより撮像して得られる画像
データを基に対象物の位置を検出することは知られてい
る。(Prior Art) Conventionally, it is known to detect the position of an object based on image data obtained by imaging the object with a visual sensor.
画像データは、視覚センサの撮像画面上の位置に対応す
るアドレスを付けたデータテーブルに書込まれるもの
で、該画像データから対象物の映像データを検索して、
対象物の位置を検出するようにしている。The image data is written in a data table with an address corresponding to the position on the imaging screen of the visual sensor, and the image data of the object is searched from the image data,
The position of the object is detected.
(発明が解決しようとする問題点) 上記のものでは、対象物の周囲に他の物即ち非対象物が
存在する場合、画像データに含まれる対象物の映像デー
タと非対象物の映像データとから夫々の映像の形状判定
処理を行なって対象物の映像を判別する必要があり、こ
の処理に時間がかかって位置検出に要する全体の処理時
間が長くなる問題がある。(Problems to be Solved by the Invention) In the above, when there is another object, that is, a non-target object around the target object, the video data of the target object and the video data of the non-target object included in the image data are Therefore, it is necessary to perform the shape determination process of each image to determine the image of the object, and this process takes time, and there is a problem that the entire processing time required for position detection becomes long.
本発明は、かかる問題点を解決すべく、非対象物の映像
データを事前にできるだけ除いて、対象物の判別処理を
迅速に行ない得られるようにした画像処理方法を提供す
ることをその目的とする。In order to solve such a problem, it is an object of the present invention to provide an image processing method capable of quickly performing determination processing of an object by removing image data of the non-object in advance as much as possible. To do.
(問題点を解決するための手段) 本発明は、上記目的を達成すべく、対象物を視覚センサ
により撮像して得られる画像データを2値化してデータ
テーブルに書込み、この画像データに基づいて対象物の
位置を検出する画像処理方法において、映像の存在する
部分の2値化信号を「1」、空白部分の2値化信号を
「0」として、データテーブルから画像データを読出す
際に、該センサの撮像画面の周縁に接するアドレスを持
つ「1」の信号の書込み箇所と、該箇所に縦横に連続し
て「1」の信号が書込まれている部分とにおいて「1」
の信号を「0」に書換えて、該センサの撮像画面の周縁
に接する映像のデータを画像データから消去し、この画
像データに基づいて対象物の判別処理を行なうようにし
たことを特徴とする。(Means for Solving the Problems) In order to achieve the above object, the present invention binarizes image data obtained by capturing an image of an object with a visual sensor and writes the image data in a data table, and based on the image data, In the image processing method for detecting the position of the object, when reading the image data from the data table, the binary signal of the portion where the video exists is set to "1" and the binary signal of the blank portion is set to "0". , "1" is written in a portion where a signal of "1" having an address in contact with the periphery of the image pickup screen of the sensor is written, and in a portion where the signal of "1" is continuously written in the vertical and horizontal directions at the portion.
Is rewritten to "0", the image data in contact with the periphery of the image pickup screen of the sensor is erased from the image data, and the object discrimination process is performed based on this image data. .
(作用) 視覚センサは、一般に対象物に対しラフに位置決めされ
て、対象物の映像が撮像画面内に収まるように該センサ
による撮像がなされる。(Operation) In general, the visual sensor is roughly positioned with respect to the target object, and the image of the target object is picked up by the sensor so that the image fits within the imaging screen.
この場合、対象物の周囲の非対象物の映像の多くは、撮
像画面から部分的に食み出し、該画面の周縁で食み出し
部分がカットされた状態に撮像される。In this case, most of the images of the non-objects around the object are partially projected from the imaging screen, and are captured in a state where the protruding part is cut off at the periphery of the screen.
従って、該画面に接する映像のデータを画像データから
消去すると、残った画像データには非対象物の画像デー
タが殆ど含まれなくなり、形状判定の対象となる映像の
数が削減されて、対象物の判別処理に要する時間が短縮
される。Therefore, if the data of the video that is in contact with the screen is deleted from the image data, the remaining image data will hardly include the image data of the non-target object, and the number of videos that are subject to shape determination will be reduced, and the target object will be reduced. The time required for the determination process of is shortened.
(実施例) 第1図及び第2図を参照して、aは自動車のリヤバンパ
ー、bは該バンパーの下側に1対に設けたマフラを示
し、排ガス測定作業において、測定棒をマフラbに挿入
する際に、予めCCDカメラから成る視覚センサ(1)
を用いてマフラbの一を検出するようにした。(Embodiment) Referring to FIGS. 1 and 2, a denotes a rear bumper of an automobile, b denotes a pair of mufflers provided under the bumper, and a measurement rod is used as a muffler b in an exhaust gas measurement operation. A visual sensor (1) consisting of a CCD camera when inserted into the
Was used to detect one of the mufflers b.
該センサ(1)は、車体を搬入セットする作業ステーシ
ョンの後方の定位置に設けられ、車体のセット位置のず
れ等により多少の変動はあるが、第2図に仮想線で示す
範囲を撮像すべく構成され、その結像面に配置したCC
D素子からの信号を第3図に示す如くアンプ(2)を介
してコンパレータ(3)と更にシリアルシフトレジスタ
(4)とに入力し、かくて得られる2値化シリアル信号
から成る画像データを、該センサ(1)の撮像画面上の
位置に対応するアドレスを付けたRAM(5)内のデー
タテーブルに書込み、この画像データからCPU(6)
により対象物即ちマフラbの映像を判別してその位置を
検出するようにした。The sensor (1) is provided at a fixed position behind the work station for loading and setting the vehicle body, and the sensor (1) images a range indicated by an imaginary line in FIG. CC that is configured to be placed on the image plane
The signal from the D element is input to the comparator (3) and the serial shift register (4) via the amplifier (2) as shown in FIG. 3, and the image data composed of the binary serial signal thus obtained is generated. , Write in a data table in the RAM (5) with an address corresponding to the position on the image pickup screen of the sensor (1), and from this image data, the CPU (6)
Thus, the image of the object, that is, the muffler b is discriminated and its position is detected.
図中(7)は画像データをRAM(5)に書込むための
アドレス信号を発生するCRTC(Cathode Ray Tube C
ontroller)、(8)はデータパス、(9)はアドレス
バスを示す。In the figure, (7) is a CRTC (Cathode Ray Tube C) that generates an address signal for writing the image data in the RAM (5).
ontroller), (8) indicates a data path, and (9) indicates an address bus.
ところで、上記画像データが表す画像は、第4図に示す
如く、撮像画面(10)内に対象物たるマフラbの映像
Bに加え、これに隣接するマフラbの映像B′と、リヤ
バンパーaの映像Aを含むもので、この場合、映像B′
及び映像Aは、該画面(10)内に入り切らずにその周
縁に接している。By the way, the image represented by the image data is, as shown in FIG. 4, in addition to the image B of the muffler b which is the object in the imaging screen (10), the image B ′ of the muffler b adjacent thereto and the rear bumper a. Image B'in this case, in this case image B '
The image A is in contact with the peripheral edge of the screen (10) without being completely inside the screen (10).
従って、画像データから撮像画面(10)の周縁に接す
る映像のデータを消去すれば、消去後の画像データに
は、第5図に示すように映像Bのデータのみが残り、こ
のデータから映像Bの形状判定を行なって、これが対象
物たるマフラの映像か否かを判別するだけで、他の映像
B′、Aの形状判定は不要となる。Therefore, if the image data in contact with the periphery of the imaging screen (10) is erased from the image data, only the image data B remains in the erased image data as shown in FIG. The shape determination of the other images B ′ and A is not necessary, only by determining the shape of the image of the muffler as the object.
ここで、映像データの消去は、上記データテーブルに書
込まれる映像の存在する部分の2値化信号を「1」、空
白部分のそれを「0」として、該テーブルから画像デー
タを読出す際に、撮像画面(10)の周縁に接するアド
レスを持つ「1」の信号の書込み箇所と、該箇所に縦横
に連続して「1」の信号が書込まれている部分とにおい
て「1」の信号を「0」に書換えることで行なわれるも
ので、映像の形状判定処理を行なう場合に比し、極めて
短時間に消去処理を行ない得られ、対象物の位置検出に
要する全体の処理時間を短縮できる。Here, the video data is erased when the image data is read from the table by setting the binary signal of the portion where the video written in the data table is present to "1" and the blank portion thereof to "0". Of the "1" signal having an address in contact with the periphery of the imaging screen (10) and a portion in which the "1" signal is continuously written in the vertical and horizontal directions. This is performed by rewriting the signal to "0", and the erasing process can be performed in an extremely short time compared to the case where the image shape determining process is performed, and the entire processing time required for detecting the position of the target object can be obtained. Can be shortened.
(発明の効果) 以上の如く本発明によるときは、対象物の周囲に存する
非対象物の映像のうち、撮像画面の周縁に接する映像の
データが対象物の判別処理に先行して画像データから消
去され、判別処理を迅速に行ない得られて、全体の処理
時間を短縮できる効果を有する。(Effects of the Invention) As described above, according to the present invention, among the images of the non-objects existing around the object, the data of the image which is in contact with the peripheral edge of the imaging screen is extracted from the image data prior to the object discrimination processing. It is erased, the discrimination process can be performed quickly, and the entire processing time can be shortened.
第1図は視覚センサと対象物との位置関係を示す平面
図、第2図は視覚センサによる撮像範囲を示す線図、第
3図は本発明方法の実施に用いられる画像処理装置のブ
ロック図、第4図は未処理の画像データに基づく画像を
示す線図、第5図は撮像画面の周縁に接する映像のデー
タを消去した後の画像データに基づく画像を示す線図で
ある。 (1)……視覚センサ (10)……撮像画面 B……対象物の映像 A、B′……撮像画面の周縁に接する映像FIG. 1 is a plan view showing a positional relationship between a visual sensor and an object, FIG. 2 is a diagram showing an imaging range by the visual sensor, and FIG. 3 is a block diagram of an image processing apparatus used for carrying out the method of the present invention. FIG. 4 is a diagram showing an image based on unprocessed image data, and FIG. 5 is a diagram showing an image based on image data after erasing image data in contact with the periphery of the image pickup screen. (1) ...... Visual sensor (10) ...... Imaging screen B …… Image of object A, B ′ …… Image in contact with the edge of the imaging screen
Claims (1)
る画像データを2値化してデータテーブルに書込み、こ
の画像データに基づいて対象物の位置を検出する画像処
理方法において、映像の存在する部分の2値化信号を
「1」、空白部分の2値化信号を「0」として、データ
テーブルから画像データを読出す際に、該センサの撮像
画面の周縁に接するアドレスを持つ「1」の信号の書込
み箇所と、該箇所に縦横に連続して「1」の信号が書込
まれている部分とにおいて「1」の信号を「0」に書換
えて、該センサの撮像画面の周縁に接する映像のデータ
を画像データから消去し、この画像データに基づいて対
象物の判別処理を行なうようにしたことを特徴とする画
像処理方法。1. An image processing method for binarizing image data obtained by picking up an image of an object by a visual sensor, writing the image data in a data table, and detecting the position of the object based on the image data. When the binary signal of the part is set to "1" and the binary signal of the blank part is set to "0", when reading image data from the data table, "1" having an address in contact with the periphery of the image pickup screen of the sensor is set. The signal of "1" is rewritten to "0" at the portion where the signal of "1" is written and the portion where the signal of "1" is continuously written in the vertical and horizontal directions, and is written on the periphery of the image pickup screen of the sensor. An image processing method characterized in that data of a video in contact is erased from image data, and an object discrimination process is performed based on the image data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60298431A JPH0656295B2 (en) | 1985-12-28 | 1985-12-28 | Image processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60298431A JPH0656295B2 (en) | 1985-12-28 | 1985-12-28 | Image processing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62157503A JPS62157503A (en) | 1987-07-13 |
| JPH0656295B2 true JPH0656295B2 (en) | 1994-07-27 |
Family
ID=17859614
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60298431A Expired - Fee Related JPH0656295B2 (en) | 1985-12-28 | 1985-12-28 | Image processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0656295B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP3309505A4 (en) * | 2015-06-11 | 2018-04-25 | Panasonic Intellectual Property Management Co., Ltd. | Dimension measurement device and dimension measurement method |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5721746B2 (en) * | 1973-09-01 | 1982-05-10 | ||
| US4041286A (en) * | 1975-11-20 | 1977-08-09 | The Bendix Corporation | Method and apparatus for detecting characteristic features of surfaces |
| JPS55155205A (en) * | 1979-05-23 | 1980-12-03 | Toshiba Corp | Form detector |
| JPS59107202A (en) * | 1982-12-10 | 1984-06-21 | Matsushita Electric Ind Co Ltd | Checking device of fitting position of minute parts |
-
1985
- 1985-12-28 JP JP60298431A patent/JPH0656295B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62157503A (en) | 1987-07-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3132565B2 (en) | Defect inspection method and apparatus | |
| JPH0810132B2 (en) | Target pattern rotation angle detection method | |
| JPH06341821A (en) | Travel lane detector | |
| JP2001281226A (en) | Fluorescent magnetic particle inspection method and fluorescent magnetic particle inspection device | |
| JP3181729B2 (en) | Method and apparatus for detecting lens contamination in coating film defect detection | |
| JPH0656295B2 (en) | Image processing method | |
| JPH05189691A (en) | Character detector and parking detector | |
| JPH1038542A (en) | Method and device for object recognition and recording medium | |
| CN116152158A (en) | Weld seam detection method, device, electronic equipment and storage medium | |
| JPH09198485A (en) | Rotation fingerprint detection method and device | |
| JPH06268922A (en) | Smear correction device | |
| JPH07272189A (en) | Vehicle identification method and vehicle number reading method | |
| JPH0525352B2 (en) | ||
| JPH11132966A (en) | Meander tracking device for defect inspection device | |
| JPH0514892A (en) | Image monitoring device | |
| JPH0155630B2 (en) | ||
| JPH0223904B2 (en) | ||
| JP3235392B2 (en) | Rotation angle detection method for target pattern | |
| JP3325191B2 (en) | Shellfish identification method | |
| JP2814315B2 (en) | Vehicle dynamics measurement device | |
| JP2966704B2 (en) | Character quality judgment method and device | |
| JPH0129643Y2 (en) | ||
| JPH11185037A (en) | Defect information processing apparatus and method | |
| JPH0125104B2 (en) | ||
| JPH0894353A (en) | Vehicle surroundings monitoring device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |