JP2007133715A - Method and apparatus for processing image - Google Patents

Method and apparatus for processing image Download PDF

Info

Publication number
JP2007133715A
JP2007133715A JP2005326991A JP2005326991A JP2007133715A JP 2007133715 A JP2007133715 A JP 2007133715A JP 2005326991 A JP2005326991 A JP 2005326991A JP 2005326991 A JP2005326991 A JP 2005326991A JP 2007133715 A JP2007133715 A JP 2007133715A
Authority
JP
Japan
Prior art keywords
image
images
product
imaging
stored
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.)
Granted
Application number
JP2005326991A
Other languages
Japanese (ja)
Other versions
JP4829594B2 (en
Inventor
Tasuku Yuguchi
翼 湯口
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.)
Optex FA Co Ltd
Original Assignee
Optex FA 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 Optex FA Co Ltd filed Critical Optex FA Co Ltd
Priority to JP2005326991A priority Critical patent/JP4829594B2/en
Publication of JP2007133715A publication Critical patent/JP2007133715A/en
Application granted granted Critical
Publication of JP4829594B2 publication Critical patent/JP4829594B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a method and an apparatus for processing images, enabling improvement of inspection efficiency, as well as reduction of a processing time and miniaturization, even a certain amount of deviation between a product inspection range and an imaging range is produced at the time of imaging. <P>SOLUTION: Even if a certain amount of deviation is produced between the inspection range of a product P and the imaging range at the time of imaging, each of n consecutive images imaging the product P is stored in a (1/n) area, an area for one image, of an image memory 3, and decision is made thereupon. Accordingly, the processing time can be reduced because readout of only the image in the (1/n) area is sufficient in each, and miniaturization can be attained because the n images are stored in the area for one image of the image memory 3. Furthermore, through the decision based on n images deviating before and after at the time of imaging, tolerance between the inspection range and the imaging range can be increased. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、撮像した製品を画像処理して、製品の良否を判定する画像処理方法および装置に関し、特に、撮像時に製品の検査範囲と撮像範囲の若干のずれの発生における検査効率の向上に関する。   The present invention relates to an image processing method and apparatus for performing image processing on an imaged product to determine the quality of the product, and more particularly to improving inspection efficiency when a slight shift occurs between the inspection range of the product and the imaging range during imaging.

図1に示すように、従来から画像処理装置として、搬送コンベアのような搬送機構4で多数の製品Pを次々に搬送させながら、撮像カメラ(イメージセンサ)2で撮像した製品Pの撮像データを画像処理部5で画像処理して、製品Pの良否を判定するものが知られている。通常、撮像した製品Pの画像処理に所定時間(例えば、数10ms)を要することから、撮像カメラ2に撮像タイミングを与えるために、各製品Pの通過を検出して撮像要求信号を出力する光電センサのような同期センサ1を用いる。   As shown in FIG. 1, as a conventional image processing apparatus, imaging data of a product P imaged by an imaging camera (image sensor) 2 while conveying a number of products P one after another by a conveyance mechanism 4 such as a conveyance conveyor. An image processing unit 5 that performs image processing to determine the quality of a product P is known. Usually, since a predetermined time (for example, several tens of milliseconds) is required for image processing of the imaged product P, in order to give an imaging timing to the imaging camera 2, a photoelectric that detects the passage of each product P and outputs an imaging request signal A synchronous sensor 1 such as a sensor is used.

図6(A)に示すように、撮像カメラ(イメージセンサ)2で製品Pの撮像対象部位を撮像する場合、当該検査範囲と撮像カメラ2の撮像範囲とが一致するように設置して、同期センサ1からの撮像要求信号が入力したとき、この入力に基づく撮像タイミングで撮像を行う。   As shown in FIG. 6A, when the imaging camera (image sensor) 2 captures an imaging target part of the product P, the inspection range and the imaging range of the imaging camera 2 are installed so as to coincide with each other. When an imaging request signal from the sensor 1 is input, imaging is performed at an imaging timing based on this input.

ところで、図6(B)に示すように、撮像時に搬送コンベア4の振動等を起因として製品Pの姿勢が若干傾いた場合、同期センサ1からの撮像要求信号の入力タイミングがずれて撮像タイミングがずれ、撮像範囲と検査範囲とが一致しないため、良品を不良品と判断してしまうことから、検査効率が低下する。   By the way, as shown in FIG. 6B, when the posture of the product P is slightly inclined due to the vibration of the transport conveyor 4 or the like during imaging, the input timing of the imaging request signal from the synchronization sensor 1 is shifted and the imaging timing is changed. Since the image pickup range and the inspection range do not match, the non-defective product is judged as a defective product, and the inspection efficiency is lowered.

このような場合、従来から、撮像範囲と検査範囲の若干のずれを許容できるように、高解像度の画像処理装置を使用して、撮像カメラ2の撮像範囲を広げる方法が知られているが、装置の高コスト化の問題がある。また、撮像するカメラの光学系を変更して撮像範囲を広げる方法も知られているが、検査対象物が小さく撮像されるため精度が低下し、誤検出率が高くなる。   In such a case, conventionally, there has been known a method of widening the imaging range of the imaging camera 2 using a high-resolution image processing apparatus so as to allow a slight shift between the imaging range and the inspection range. There is a problem of high cost of the apparatus. In addition, there is known a method of expanding an imaging range by changing an optical system of a camera that captures an image. However, since an inspection object is captured in a small size, accuracy is lowered and a false detection rate is increased.

一方、複数の製品の各ずれに対して、同期センサが作動してから複数回撮像し、これらの撮像データを統計処理して平均値などを演算することも知られている(例えば、特許文献1)。また、同期センサの作動で複数回撮像し、その画像を大容量のメモリに保存して後で処理する方法も知られている(例えば、特許文献2)。
特開2004−145504号公報 特開平8−70420号公報
On the other hand, it is also known that for each shift of a plurality of products, imaging is performed a plurality of times after the synchronization sensor is activated, and the image data is statistically processed to calculate an average value or the like (for example, patent document) 1). A method is also known in which an image is captured a plurality of times by the operation of a synchronous sensor, the image is stored in a large-capacity memory, and processed later (for example, Patent Document 2).
JP 2004-145504 A JP-A-8-70420

しかし、特許文献1は、複数の製品について所定時間を要する画像処理を複数回行ったうえで、これらの画像データの統計処理を行うので、処理に時間がかかる。また、特許文献2は、複数の画像を保存するための大容量のメモリが必要となり、大型化する。   However, since Patent Document 1 performs statistical processing of these image data after performing image processing that requires a predetermined time for a plurality of products a plurality of times, the processing takes time. Further, Patent Document 2 requires a large-capacity memory for storing a plurality of images, which increases the size.

本発明は、前記の問題点を解決して、撮像時に製品の検査範囲と撮像範囲の若干のずれが発生しても、処理時間の短縮化および小型化を実現しつつ、検査効率を向上できる画像処理方法および装置を提供することを目的としている。   The present invention solves the above-described problems, and can improve the inspection efficiency while reducing the processing time and reducing the size even if there is a slight deviation between the inspection range of the product and the imaging range during imaging. An object of the present invention is to provide an image processing method and apparatus.

前記目的を達成するために、本発明に係る画像処理方法および装置は、搬送機構により順次搬送される複数の製品についてそれぞれ撮像を要求する撮像要求信号の入力に基づき、該製品の検査対象部位を当該検査範囲と撮像範囲を一致させてイメージセンサでスキャンしながら撮像し、撮像した検査対象部位の撮像データを画像処理して画像メモリに記憶させ、この画像に基づき製品の良否を判定するものであって、1回の撮像要求信号の入力に対して、連続してn(nは2以上の整数)枚撮像し、各画像を画像メモリの画像1枚分のエリアのうち(1/n)エリアにそれぞれ格納することにより、n枚の画像を該画像1枚分のエリアに格納し、この格納されたn枚の画像についてそれぞれ製品OK・NGを判定し、その結果、少なくともいずれか1枚の画像についてOKの場合に製品OKと判定し、全画像についてNGの場合に製品NGと判定する、という第1の処理を行う。   In order to achieve the above object, an image processing method and apparatus according to the present invention determines an inspection target part of a product based on an input of an imaging request signal for requesting imaging for each of a plurality of products sequentially transported by a transport mechanism. The inspection range and the imaging range are matched to capture an image while scanning with an image sensor, and the captured image data of the region to be inspected is image-processed and stored in an image memory, and the quality of the product is determined based on this image. In response to one input of an imaging request signal, n (n is an integer greater than or equal to 2) images are continuously captured, and each image is (1 / n) of the area for one image in the image memory. By storing each image in the area, n images are stored in the area corresponding to one image, and the product OK / NG is determined for each of the stored n images. Determining a product OK when the one image of OK or Re, determines a product NG, the first process of performing in the case of NG for all images.

この構成によれば、撮像時に製品Pの検査範囲と撮像範囲の若干のずれが発生しても、製品を撮像した連続n枚の画像について画像メモリの画像1枚分の(1/n)エリアにそれぞれ格納し、判定しているので、それぞれ(1/n)エリアの画像だけ読み出せばよいから、処理時間を短縮化できるとともに、n枚の画像を画像メモリの画像1枚分のエリアに格納しているので、画像メモリを小型化することができる。しかも、撮影時のずれ前後n枚の画像に基づく判定により、検査範囲と撮像範囲のずれの許容性を高めることができる。したがって、撮像時に製品の検査範囲と撮像範囲の若干のずれが発生しても、処理時間の短縮化および装置の小型化を実現しつつ、検査効率を向上できる。   According to this configuration, even if there is a slight deviation between the inspection range and the imaging range of the product P during imaging, the (1 / n) area of one image in the image memory for consecutive n images of the product. Therefore, it is only necessary to read out each (1 / n) area image, so that the processing time can be shortened and n images are stored in an area of one image in the image memory. Since it is stored, the image memory can be reduced in size. In addition, it is possible to increase the tolerance of the shift between the inspection range and the imaging range by the determination based on n images before and after the shift at the time of shooting. Therefore, even if there is a slight deviation between the product inspection range and the imaging range during imaging, the inspection efficiency can be improved while shortening the processing time and reducing the size of the apparatus.

好ましくは、前記第1の処理が、前記1回の撮像要求信号の入力に対して、連続して2枚撮像し、いずれか一方の画像についてスキャン偶数行を、他方の画像についてスキャン奇数行をそれぞれ間引きしたうえでこれら2枚の画像を画像メモリの画像1枚分のエリアの(1/2)エリアにそれぞれ格納し、この格納された2枚の画像についてそれぞれ製品OK・NGを判定する。したがって、簡単な構造で、処理時間の短縮化および装置の小型化を実現できる。   Preferably, in the first process, two images are continuously captured in response to the input of the one imaging request signal, and an even-numbered scan row is set for one image and an odd-numbered scan row is set for the other image. These two images are respectively thinned and stored in (1/2) area of one image memory area, and the product OK / NG is determined for each of the two stored images. Therefore, the processing time can be shortened and the apparatus can be downsized with a simple structure.

好ましくは、前記第1の処理と、1回の撮像要求入力に対して、1枚撮像し、この画像を画像メモリの画像1枚分のエリアに格納して、この格納された1枚の画像について製品のOK・NG判定する第2の処理と、を切り換え可能とする。したがって、必要に応じて検査範囲と撮像範囲のずれがない場合にも対応できる。   Preferably, in response to the first processing and one imaging request input, one image is captured, this image is stored in an area of one image in the image memory, and the stored one image It is possible to switch between the second process for determining whether the product is OK / NG. Therefore, it is possible to cope with a case where there is no deviation between the inspection range and the imaging range as necessary.

以下、本発明の実施形態を図面にしたがって説明する。
図2は、本発明の一実施形態に係る画像処理装置を示すブロック図である。本装置は、搬送機構4(例えば、図1の搬送コンベア)により順次搬送される複数の製品Pについて、それぞれの製品Pを検出して撮像を要求する撮像要求信号を出力する例えば同期センサのような撮像要求信号出力部1と、同期センサ1からの撮像要求信号の入力に基づき、製品Pの検査対象部位を当該検査範囲と撮像範囲を一致させてスキャンしながら撮像する撮像カメラ(イメージセンサ)2と、撮像した製品Pの撮像データを画像処理して該画像を画像メモリ3に記憶させ、この画像に基づき製品Pの良否を判定する画像処理部5とを備えている。同期センサ1と撮像カメラ2の位置は固定されている。例えば、撮像カメラ2にはCCDカメラ、同期センサ1には反射型の光電センサが用いられる。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 2 is a block diagram showing an image processing apparatus according to an embodiment of the present invention. This apparatus detects, for a plurality of products P sequentially transported by a transport mechanism 4 (for example, the transport conveyor of FIG. 1), outputs each image P and requests an image capturing request signal, such as a synchronous sensor. An imaging camera (image sensor) that captures an image of an inspection target part of product P while scanning the inspection range and the imaging range in accordance with the imaging request signal output unit 1 and the input of the imaging request signal from the synchronization sensor 1 2 and an image processing unit 5 that performs image processing on captured image data of the product P, stores the image in the image memory 3, and determines the quality of the product P based on the image. The positions of the synchronization sensor 1 and the imaging camera 2 are fixed. For example, a CCD camera is used for the imaging camera 2, and a reflective photoelectric sensor is used for the synchronization sensor 1.

図6(A)に示すように、例えば、製品Pは包装箱に収納された食品であり、製品Pの検査対象部位は、その食品の賞味期限の文字(2段の日付)が包装箱に印字されたものであり、この印字された文字が検査範囲である。撮像カメラ2は、当該検査範囲と撮像範囲が一致するように設置されて、これを撮像する。本発明は、撮像時における製品Pの若干の姿勢の傾きによる撮像タイミングのずれにより、撮像範囲と検査範囲とが一致しない場合に(図6(B))、この撮像範囲と検査範囲の若干のずれを許容して、可及的に良品を不良品として誤検査することを減少させて、検査効率を向上させるものである。   As shown in FIG. 6 (A), for example, the product P is food stored in a packaging box, and the inspection target part of the product P has a letter of expiration date (two-stage date) of the food on the packaging box. The printed character is the inspection range. The imaging camera 2 is installed so that the inspection range and the imaging range coincide with each other, and images this. In the present invention, when the imaging range does not coincide with the inspection range due to a difference in imaging timing due to a slight inclination of the product P during imaging (FIG. 6B), the imaging range and the inspection range are slightly different. The inspection efficiency is improved by allowing the deviation and reducing the erroneous inspection of a non-defective product as a defective product as much as possible.

図2に示すように、前記画像処理部5は、前記した画像メモリ3、格納処理部6、判定部7およびメモリ9を備えている。格納処理部6は、1回の撮像要求信号の入力に対して、連続してn(nは2以上の整数)枚撮像し、各画像を画像メモリ3の画像1枚分のエリアのうち(1/n)エリアにそれぞれ格納して、全画像を該画像1枚分のエリアに格納する。メモリ9は、製品Pの検査対象部位における文字情報や基準画像などを記憶する。   As shown in FIG. 2, the image processing unit 5 includes the image memory 3, the storage processing unit 6, the determination unit 7, and the memory 9. The storage processing unit 6 continuously captures n (n is an integer of 2 or more) images in response to one input of the imaging request signal, and each image is stored in an area of one image in the image memory 3 ( 1 / n), each image is stored, and all images are stored in the area for one image. The memory 9 stores character information, a reference image, and the like in the inspection target part of the product P.

判定部7は、画像メモリ3の画像1枚分のエリアに格納されたn枚の画像について、各画像をその(1/n)エリアに格納された状態でそれぞれ読み出して、2値情報による文字認識やメモリ9に記憶された基準画像とのパターンマッチングなどの周知の画像処理方法により、それぞれ製品OK・NGを判定する。判定部9は、その結果、少なくともいずれか1枚の画像についてOKの場合に製品OKと判定し、全画像についてNGの場合に製品NGと判定する。これら格納処理部6と判定部7の動作により、第1の処理が行われる。   The determination unit 7 reads out each of the images stored in the (1 / n) area of the n images stored in the area for one image of the image memory 3, and reads the characters based on the binary information. Each product OK / NG is determined by a known image processing method such as recognition or pattern matching with a reference image stored in the memory 9. As a result, the determination unit 9 determines that the product is OK when at least one of the images is OK, and determines that the product is NG when all the images are NG. The first processing is performed by the operations of the storage processing unit 6 and the determination unit 7.

この例では、第1の処理として、格納処理部6が、1回の撮像要求信号の入力に対して、連続して2枚撮像し、いずれか一方の画像についてスキャン偶数行を、他方の画像についてスキャン奇数行をそれぞれ間引きしたうえでこれら2枚の画像を画像メモリの画像1枚分のエリアのそれぞれ(1/2)エリアに格納し、判定部7が、前記スキャン奇数行または偶数行の隔行ごとに間引きされて縦方向の解像度が1/2にされた2枚の画像を、その(1/2)エリアに格納された状態でそれぞれ読み出して、それぞれ製品OK・NGを判定する。   In this example, as the first processing, the storage processing unit 6 continuously captures two images in response to one input of the imaging request signal, scans even rows for one image, and the other image Each of the odd-numbered scans is thinned out, and these two images are stored in each (1/2) area of the area of one image in the image memory. Two images, which are thinned out every other row and whose vertical resolution is halved, are read out while being stored in the (1/2) area, and the product OK / NG is determined.

また、画像処理部5は、前記第1の処理と、1回の撮像要求信号の入力に対して、1枚撮像し、この画像を画像メモリ3の画像1枚分のエリアに格納して、この格納された1枚の画像について製品OK・NGを判定する第2の処理と、を切り換え可能な処理切換部8を備えている。この処理切換部8は、製品Pの種類によってはその姿勢に傾きが生じない場合や、搬送コンベア4に製品Pをガイドするガイド機構を設けることなどにより、製品Pの姿勢が傾かない処置が施されて、撮像タイミングのずれが生じないような場合に、第2の処理に切り換えるものである。   In addition, the image processing unit 5 captures one image in response to the first processing and one input of the imaging request signal, and stores this image in an area for one image of the image memory 3, A process switching unit 8 capable of switching between the second process for determining the product OK / NG for one stored image is provided. The process switching unit 8 is configured to prevent the posture of the product P from being tilted, for example, when the posture does not tilt depending on the type of the product P, or by providing a guide mechanism for guiding the product P on the transport conveyor 4. Thus, when the imaging timing does not shift, the process is switched to the second process.

上記構成の本装置における画像処理動作の一例を、図3のフローチャートに基づいて説明する。まず、製品Pが通過すると、同期センサ1が作動してこれを検出し、撮像要求信号を画像処理部5に出力する(ステップS1)。撮像要求信号の入力に基づき、撮像カメラ2は1回目の撮像を開始する(ステップS2)。1回目の撮像完了後、この1枚目の画像について画像メモリ3の所定エリアにおける画像1枚分のエリアの偶数行にのみ(1/2エリア)保存する、つまり奇数行を捨てる間引き動作がなされて保存する(ステップS3)。   An example of the image processing operation in the apparatus having the above configuration will be described based on the flowchart of FIG. First, when the product P passes, the synchronous sensor 1 is activated and detected, and an imaging request signal is output to the image processing unit 5 (step S1). Based on the input of the imaging request signal, the imaging camera 2 starts the first imaging (step S2). After the completion of the first imaging, the first image is stored only in an even numbered line (1/2 area) in an area of one image in a predetermined area of the image memory 3, that is, a thinning operation is performed to discard the odd numbered lines. (Step S3).

つぎに、撮像カメラ2は1回目の撮像に連続して(例えば、13msec間隔)、2回目の撮像を開始する(ステップS4)。2回目の撮像完了後、この2枚目の画像について画像メモリ3の前記エリアにおける画像1枚分のエリアの奇数行にのみ(1/2エリア)保存する、つまり偶数行を捨てる間引き動作がなされて保存する(ステップS5)。図4は、画像メモリ3の画像1枚分のエリアにおける、製品Pの検査対象部位の文字の一部である例えば「2」についての保存状態を示すもので、(A)は1枚目の画像が偶数行に保存された状態、(B)は2枚目の画像が奇数行に保存された状態を示す。両画像は、スキャン奇数行または偶数行が間引きされて縦の解像度が1/2になっている。この図では、1枚目の画像と2枚目の画像を同一に描いているが、実際には、両画像には撮像タイミングの時間差(13msec)があるので、搬送コンベア4の搬送速度に応じて、(B)の画像は(A)の画像から若干ずれている。この両画像の撮像タイミングの時間差は、搬送コンベア4の速度に応じて、撮像時の製品Pの姿勢のずれの発生タイミングに対応して設定される。これにより、画像メモリ3の画像1枚分のエリアにずれ前後の2枚の画像が記憶される。   Next, the imaging camera 2 starts the second imaging continuously (for example, at an interval of 13 msec) after the first imaging (step S4). After completion of the second imaging, the second image is stored only in the odd-numbered rows (1/2 area) in the area of one image in the area of the image memory 3, that is, a thinning operation is performed to discard the even-numbered rows. (Step S5). FIG. 4 shows a storage state of, for example, “2” which is a part of the character of the inspection target part of the product P in the area of one image in the image memory 3. A state in which the image is stored in the even-numbered rows and (B) shows a state in which the second image is stored in the odd-numbered rows. In both images, the odd-numbered or even-numbered scans are thinned out and the vertical resolution is halved. In this figure, the first image and the second image are drawn in the same way, but in reality, there is a time difference (13 msec) between the imaging timings of both images, so depending on the transport speed of the transport conveyor 4 Thus, the image of (B) is slightly shifted from the image of (A). The time difference between the imaging timings of the two images is set in accordance with the timing of occurrence of the deviation of the posture of the product P during imaging according to the speed of the conveyor 4. As a result, the two images before and after the shift are stored in the area of one image in the image memory 3.

つぎに、1枚目の偶数行の画像について、縦方向の解像度が1/2の状態で前記文字認識やパターンマッチングなどの画像処理が行われたうえで画像メモリ3から読み出されて(ステップS6)、1枚目の画像について製品Pの良否が判定される(ステップS7)。1枚目の画像についてOKの場合に製品OKが出力される(ステップS10)。ステップS7で1枚目の画像についてNGの場合、2枚目の奇数行の画像について、同様に画像処理されたうえで読み出されて(ステップS8)、2枚目の画像について製品Pの良否が判定される(ステップS9)。2枚目の画像についてOKの場合に製品OKが出力される(ステップS10)。2枚目の画像についてNGの場合、2枚の画像のすべてについてNGであるので、製品NGが出力される(ステップS11)。こうして、第1の処理が行われる。   Next, image processing such as character recognition and pattern matching is performed on the first even-numbered line image in a state where the vertical resolution is ½, and then read out from the image memory 3 (step). S6) The quality of the product P is determined for the first image (step S7). If the first image is OK, the product OK is output (step S10). In the case where the first image is NG in step S7, the second odd-numbered row image is similarly processed and read out (step S8), and the quality of the product P is determined for the second image. Is determined (step S9). If the second image is OK, the product OK is output (step S10). In the case of NG for the second image, since all the two images are NG, the product NG is output (step S11). Thus, the first process is performed.

また、製品Pの種類や製品Pが傾かない処置によってその姿勢に傾きが生じず、撮像タイミングのずれが生じないような場合には、処理切換部8の切り換えにより、図5のフローチャートに示すように以下の第2の処理が行われる。   If the posture of the product P or the product P is not tilted and the posture is not tilted and the imaging timing is not shifted, the process switching unit 8 is switched as shown in the flowchart of FIG. The following second process is performed.

まず、製品Pが通過すると、同期センサ1が作動してこれを検出し、撮像要求信号を画像処理部5に出力する(ステップS31)。撮像要求信号の入力に基づき、撮像カメラ2は撮像を開始する(ステップS32)。撮像完了後、画像メモリ3の所定エリアにおける画像1枚分のエリアに保存する(ステップS33)。   First, when the product P passes, the synchronous sensor 1 is activated and detected, and an imaging request signal is output to the image processing unit 5 (step S31). Based on the input of the imaging request signal, the imaging camera 2 starts imaging (step S32). After completion of imaging, the image is stored in an area for one image in a predetermined area of the image memory 3 (step S33).

つぎに、同様に画像処理されたうえで画像メモリ3から読み出されて(ステップS34)、製品Pの良否が判定される(ステップS35)。この画像についてOKの場合に製品OKが出力される(ステップS36)。この画像についてNGの場合、製品NGが出力される(ステップS37)。こうして、第2の処理が行われる。   Next, the image is processed in the same manner and then read out from the image memory 3 (step S34), and the quality of the product P is determined (step S35). If this image is OK, the product OK is output (step S36). If the image is NG, the product NG is output (step S37). Thus, the second process is performed.

こうして、処理切換部8の切り換えにより、製品Pの姿勢の傾きがないため撮像タイミングのずれがなく、検査範囲に対する撮像範囲のずれがないような場合にも対応できる。この場合、第2の処理は、第1の処理に比べて、画像1枚のみについて格納、判定されるので、より処理時間の短縮化を図ることができる。   In this way, the processing switching unit 8 can be switched to cope with a case where there is no shift in the imaging timing because there is no inclination of the posture of the product P, and there is no shift in the imaging range with respect to the inspection range. In this case, since the second process is stored and determined for only one image as compared with the first process, the processing time can be further shortened.

以上のように、本発明によれば、撮像時に製品Pの検査範囲と撮像範囲の若干のずれが発生しても、製品Pを撮像した連続2枚の画像について画像メモリ3の画像1枚分の(1/2)エリアにそれぞれ格納し、判定しているので、それぞれ(1/2)エリアの画像だけ読み出せばよいから、処理時間を短縮化できるとともに、2枚の画像を画像メモリ3の画像1枚分のエリアに格納しているので、画像メモリ3を小型化することができる。しかも、スキャン奇数行または偶数行が間引きされて縦方向の解像度が1/2になるものの、撮影時のずれ前後の2枚の画像に基づく判定により、検査範囲と撮像範囲のずれの許容性を高めることができる。したがって、撮像時に製品Pの検査範囲と撮像範囲の若干のずれが発生しても、処理時間の短縮化および装置の小型化を実現しつつ、検査効率を向上できる。   As described above, according to the present invention, even if there is a slight deviation between the inspection range and the imaging range of the product P during imaging, two images obtained by imaging the product P are equivalent to one image in the image memory 3. Since each image is stored and determined in each (1/2) area, it is only necessary to read out the image in the (1/2) area. Therefore, the processing time can be shortened and two images are stored in the image memory 3. Therefore, the image memory 3 can be reduced in size. In addition, although the odd-numbered or even-numbered scans are thinned out and the vertical resolution is halved, the determination based on the two images before and after the shift at the time of shooting allows the tolerance of the shift between the inspection range and the imaging range. Can be increased. Therefore, even if a slight deviation occurs between the inspection range of the product P and the imaging range during imaging, the inspection efficiency can be improved while shortening the processing time and reducing the size of the apparatus.

なお、上記実施形態では、2枚の画像を画像メモリ3の画像1枚分のエリアに格納する際、いずれか一方の画像についてスキャン偶数行を、他方の画像についてスキャン奇数行をそれぞれ間引きして格納しているが、これに限定するものではなく、いずれか一方の画像について画像1枚分の上半分のエリアに、他方の画像について下半分のエリアに圧縮して格納するようになどしてもよい。ただ圧縮処理は間引きに比べると処理時間がより多くかかる。   In the above embodiment, when two images are stored in the area of one image of the image memory 3, the scan even rows are thinned out for either one image, and the scan odd rows are thinned out for the other image. However, the present invention is not limited to this. For example, one of the images may be compressed and stored in the upper half area for one image, and the other image may be stored in the lower half area. Also good. However, compression processing takes more processing time than decimation.

また、上記実施形態では、2回連続撮像し、2枚の画像を画像1枚分のエリアに格納し、2枚の画像について判定しているが、3回以上連続撮像し、上記間引きや圧縮などにより3枚以上の画像を画像1枚分のエリアに格納し、3枚以上の画像について判定してもよい。   In the above-described embodiment, two continuous images are taken, two images are stored in an area for one image, and the determination is made for two images. For example, three or more images may be stored in an area for one image, and three or more images may be determined.

なお、上記実施形態では、第1の処理と第2の処理を切り換える処理切換部8が設けられているが、第1の処理のみを行って、処理切換部8を省略してもよい。   In the above embodiment, the process switching unit 8 for switching between the first process and the second process is provided. However, the process switching unit 8 may be omitted by performing only the first process.

搬送コンベア、同期センサ、撮像カメラおよび画像処理部を備えた画像処理装置の構成図である。It is a block diagram of the image processing apparatus provided with the conveyance conveyor, the synchronous sensor, the imaging camera, and the image process part. 本発明の一実施形態に係る画像処理装置を示すブロック図である。1 is a block diagram illustrating an image processing apparatus according to an embodiment of the present invention. 第1の処理による画像処理動作を示すフローチャート図である。It is a flowchart figure which shows the image processing operation by a 1st process. 各画像が画像メモリの偶数行または奇数行に格納された状態を示す構成図である。It is a block diagram which shows the state in which each image was stored in the even-numbered line or the odd-numbered line of the image memory. 第2の処理による画像処理動作を示すフローチャート図である。It is a flowchart figure which shows the image processing operation by a 2nd process. 画像範囲と撮像範囲との一致、不一致を示す構成図である。It is a block diagram which shows the agreement and discrepancy of an image range and an imaging range.

符号の説明Explanation of symbols

1:撮像要求信号出力部(同期センサ)
2:イメージセンサ(撮像カメラ)
3:画像メモリ
4:搬送機構(搬送コンベア)
5:画像処理部
6:格納処理部
7:判定部
8:処理切換部
P:製品
1: Imaging request signal output unit (synchronous sensor)
2: Image sensor (imaging camera)
3: Image memory 4: Conveyance mechanism (conveyor)
5: Image processing unit 6: Storage processing unit 7: Determination unit 8: Process switching unit P: Product

Claims (6)

搬送機構により順次搬送される複数の製品についてそれぞれ撮像を要求する撮像要求信号の入力に基づき、該製品の検査対象部位を当該検査範囲と撮像範囲を一致させてイメージセンサでスキャンしながら撮像し、撮像した検査対象部位の撮像データを画像処理して画像メモリに記憶させ、この画像に基づき製品の良否を判定する画像処理方法であって、
1回の撮像要求信号の入力に対して、連続してn(nは2以上の整数)枚撮像し、各画像を画像メモリの画像1枚分のエリアのうち(1/n)エリアにそれぞれ格納することにより、n枚の画像を該画像1枚分のエリアに格納し、この格納されたn枚の画像についてそれぞれ製品OK・NGを判定し、その結果、少なくともいずれか1枚の画像についてOKの場合に製品OKと判定し、全画像についてNGの場合に製品NGと判定する、という第1の処理を行う画像処理方法。
Based on the input of an imaging request signal for requesting imaging for each of a plurality of products sequentially transported by the transport mechanism, the inspection target part of the product is imaged while being scanned with an image sensor so that the inspection range matches the imaging range, An image processing method for image-capturing imaging data of a region to be inspected and storing it in an image memory, and determining the quality of a product based on the image,
In response to a single input of an imaging request signal, n (n is an integer of 2 or more) images are taken continuously, and each image is respectively (1 / n) of one image memory area. By storing, n images are stored in an area corresponding to the one image, and the product OK / NG is determined for each of the stored n images, and as a result, at least one of the images is determined. An image processing method for performing a first process of determining that the product is OK in the case of OK and determining that the product is NG in the case of NG for all the images.
請求項1において、
前記第1の処理が、前記1回の撮像要求信号の入力に対して、連続して2枚撮像し、いずれか一方の画像についてスキャン偶数行を、他方の画像についてスキャン奇数行をそれぞれ間引きしたうえでこれら2枚の画像を画像メモリの画像1枚分のエリアの(1/2)エリアにそれぞれ格納し、この格納された2枚の画像についてそれぞれ製品OK・NGを判定する、画像処理方法。
In claim 1,
In the first process, two images are continuously captured in response to the input of the one imaging request signal, and the even-numbered scan row is thinned out for one image and the odd-numbered scan row is thinned out for the other image. Then, these two images are respectively stored in the (1/2) area of the area of one image in the image memory, and the product OK / NG is determined for each of the two stored images. .
請求項1において、さらに、
前記第1の処理と、
1回の撮像要求入力に対して、1枚撮像し、この画像を画像メモリの画像1枚分のエリアに格納して、この格納された1枚の画像について製品のOK・NG判定する第2の処理と、を切り換え可能とする、画像処理方法。
The claim 1, further comprising:
The first process;
In response to a single imaging request input, one image is captured, this image is stored in an area for one image in the image memory, and the second OK / NG determination of the product is performed for the stored one image. An image processing method that makes it possible to switch between these processes.
搬送機構により順次搬送される複数の製品についてそれぞれ撮像を要求する撮像要求信号を出力する撮像要求信号出力部と、前記撮像要求信号の入力に基づき該製品の検査対象部位を当該検査範囲と撮像範囲を一致させてスキャンしながら撮像するイメージセンサと、撮像した検査対象部位の撮像データを画像処理して画像メモリに記憶させ、この画像に基づき製品の良否を判定する画像処理部とを備えた画像処理装置であって、
前記画像処理部は格納処理部と判定部を備え、
格納処理部が、1回の撮像要求信号の入力に対して、連続してn(nは2以上の整数)枚撮像し、各画像を画像メモリの画像1枚分のエリアのうち(1/n)エリアにそれぞれ格納することにより、n枚の画像を該画像1枚分のエリアに格納し、
判定部が、格納されたn枚の画像についてそれぞれ製品OK・NGを判定し、その結果、少なくともいずれか1枚の画像についてOKの場合に製品OKと判定し、全画像についてNGの場合に製品NGと判定する、という第1の処理を行う画像処理装置。
An imaging request signal output unit that outputs an imaging request signal for requesting imaging for each of a plurality of products that are sequentially conveyed by a conveyance mechanism, and an inspection range and an imaging range of an inspection target portion of the product based on the input of the imaging request signal An image sensor including an image sensor that scans images while matching them, and an image processing unit that performs image processing on the captured image data of the examination site and stores the image data in an image memory, and determines the quality of the product based on the image A processing device comprising:
The image processing unit includes a storage processing unit and a determination unit,
The storage processing unit continuously captures n (n is an integer of 2 or more) in response to a single imaging request signal input, and each image is (1 / of the area of one image in the image memory. n) By storing each in the area, n images are stored in the area for one image,
The determination unit determines the product OK / NG for each of the stored n images, and as a result, determines that the product is OK when at least one of the images is OK, and the product when all the images are NG. An image processing apparatus that performs a first process of determining NG.
請求項4において、
前記第1の処理は、
前記格納処理部が、前記1回の撮像要求入力に対して、連続して2枚撮像し、いずれか一方の画像についてスキャン偶数行を、他方の画像についてスキャン奇数行をそれぞれ間引きしたうえでこれら2枚の画像を画像メモリの画像1枚分のエリアの(1/2)エリアにそれぞれ格納し、
前記判定部が、前記格納された2枚の画像についてそれぞれ製品OK・NGを判定する、ものである画像処理装置。
In claim 4,
The first process includes
The storage processing unit continuously captures two images in response to the one imaging request input, thins out even-numbered scans for one image, and scans odd-numbered rows for the other image. Two images are stored in the (1/2) area of one image area of the image memory,
An image processing apparatus in which the determination unit determines a product OK / NG for each of the two stored images.
請求項4において、さらに、
前記第1の処理と、
1回の撮像要求入力に対して、1枚撮像し、この画像を画像メモリの画像1枚分のエリアに格納して、この格納された1枚の画像について製品OK・NGを判定する第2の処理と、
を切り換え可能な処理切換部を備えている、画像処理装置。
In claim 4, further:
The first process;
In response to one imaging request input, one image is captured, this image is stored in an area of one image in the image memory, and the product OK / NG is determined for this stored one image. And processing
An image processing apparatus provided with a process switching unit capable of switching between.
JP2005326991A 2005-11-11 2005-11-11 Image processing method and apparatus Expired - Fee Related JP4829594B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005326991A JP4829594B2 (en) 2005-11-11 2005-11-11 Image processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005326991A JP4829594B2 (en) 2005-11-11 2005-11-11 Image processing method and apparatus

Publications (2)

Publication Number Publication Date
JP2007133715A true JP2007133715A (en) 2007-05-31
JP4829594B2 JP4829594B2 (en) 2011-12-07

Family

ID=38155312

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005326991A Expired - Fee Related JP4829594B2 (en) 2005-11-11 2005-11-11 Image processing method and apparatus

Country Status (1)

Country Link
JP (1) JP4829594B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6280779A (en) * 1985-10-04 1987-04-14 Toshiba Corp Character reader
JPH11211420A (en) * 1998-01-20 1999-08-06 Fuji Mach Mfg Co Ltd Optical dimension measurement and device therefor
JPH11237212A (en) * 1998-02-20 1999-08-31 Matsushita Electric Ind Co Ltd Image recognizing method
JP2000137004A (en) * 1998-11-02 2000-05-16 Canon Inc Surface inspection device and surface inspection method
JP2001043317A (en) * 1999-08-02 2001-02-16 Hitachi Eng Co Ltd Character inspection device and its dictionary automatic generation method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6280779A (en) * 1985-10-04 1987-04-14 Toshiba Corp Character reader
JPH11211420A (en) * 1998-01-20 1999-08-06 Fuji Mach Mfg Co Ltd Optical dimension measurement and device therefor
JPH11237212A (en) * 1998-02-20 1999-08-31 Matsushita Electric Ind Co Ltd Image recognizing method
JP2000137004A (en) * 1998-11-02 2000-05-16 Canon Inc Surface inspection device and surface inspection method
JP2001043317A (en) * 1999-08-02 2001-02-16 Hitachi Eng Co Ltd Character inspection device and its dictionary automatic generation method

Also Published As

Publication number Publication date
JP4829594B2 (en) 2011-12-07

Similar Documents

Publication Publication Date Title
US4803734A (en) Method of and apparatus for detecting pattern defects
US7366343B2 (en) Pattern inspection method and apparatus
JP7017207B2 (en) Image inspection device and its image inspection method
US7415362B2 (en) Image defect inspection apparatus
JPH11248641A (en) Device and method for inspecting surface defect
JP3152203B2 (en) Appearance inspection device
JP2020003228A (en) Press component inspection device and press component inspection method
JP4829594B2 (en) Image processing method and apparatus
JP2006058945A (en) Method and device for correcting rolling shutter image
JP2002310937A (en) Method and apparatus for inspection of defect
JP3658137B2 (en) Moving object recognition method
JP2001325587A (en) Outward appearance inspecting device
JP3278518B2 (en) Method and apparatus for detecting structural and / or pattern defects of an object
JPS62154076A (en) Picture processing method
JP2000221514A (en) Method for inspecting rib omission of color filter substrate with rib
JP2809297B2 (en) Moving object imaging apparatus and imaging method
JPH11257927A (en) Pick-up image expansion-contraction distortion detector
JPH08171639A (en) Method and device for inspecting image
JPH05128256A (en) Defective picture processor and still picture fetching device
JP2000134412A (en) Image photographing device and image reader
JP2003304395A (en) Image processing apparatus and film scanner
JPH04294260A (en) Inspecting apparatus for printed pattern quality
JP2007135031A (en) Image processing method and apparatus
JP2002176587A (en) Picture input device
JPH11328409A (en) Device for inspecting sheet material defect

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080805

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100928

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101117

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110322

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110425

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110913

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110916

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140922

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees