JP6413811B2 - Cylindrical product inspection apparatus and cylindrical product inspection method - Google Patents

Cylindrical product inspection apparatus and cylindrical product inspection method Download PDF

Info

Publication number
JP6413811B2
JP6413811B2 JP2015017516A JP2015017516A JP6413811B2 JP 6413811 B2 JP6413811 B2 JP 6413811B2 JP 2015017516 A JP2015017516 A JP 2015017516A JP 2015017516 A JP2015017516 A JP 2015017516A JP 6413811 B2 JP6413811 B2 JP 6413811B2
Authority
JP
Japan
Prior art keywords
images
cylindrical product
image
cylindrical
inspection
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
Application number
JP2015017516A
Other languages
Japanese (ja)
Other versions
JP2016142592A (en
Inventor
信之 伊東
信之 伊東
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2015017516A priority Critical patent/JP6413811B2/en
Publication of JP2016142592A publication Critical patent/JP2016142592A/en
Application granted granted Critical
Publication of JP6413811B2 publication Critical patent/JP6413811B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Description

本件は、円筒製品検査装置および円筒製品検査方法に関する。   This case relates to a cylindrical product inspection apparatus and a cylindrical product inspection method.

円筒形の検査対象を回転させ、当該検査対象をカメラで撮影し、カメラの出力を平面展開することで外観検査を行う検査手法が開示されている(例えば、特許文献1参照)。   An inspection method is disclosed in which an appearance inspection is performed by rotating a cylindrical inspection object, photographing the inspection object with a camera, and developing the output of the camera on a plane (see, for example, Patent Document 1).

特開平7−45678号公報Japanese Patent Laid-Open No. 7-45678

しかしながら、得られた画像から円筒側面を合成するために所定の時間間隔で円筒側面を順次撮像しようとすると、制御装置の負荷などに起因して、撮像のタイミングが目標タイミングからずれることがある。この場合、得られた画像から円筒側面を高精度で合成できない場合がある。その結果、検査精度が低下することになる。   However, if an attempt is made to sequentially capture the cylindrical side surface at predetermined time intervals in order to synthesize the cylindrical side surface from the obtained image, the imaging timing may deviate from the target timing due to the load of the control device or the like. In this case, the cylindrical side surface may not be synthesized with high accuracy from the obtained image. As a result, the inspection accuracy is lowered.

本件は上記課題に鑑みなされたものであり、検査精度低下を抑制することができる円筒製品検査装置および円筒製品検査方法を提供することを目的とする。   This case is made in view of the said subject, and aims at providing the cylindrical product inspection apparatus and cylindrical product inspection method which can suppress a test | inspection precision fall.

1つの態様では、円筒製品検査装置は、円筒軸を回転軸として回転する円筒製品の側面を順次撮像する撮像装置と、前記撮像装置が取得した複数の画像のうち経時的に連続する2枚の画像を比較することによって得られる前記2枚画像間の移動量がしきい値以上であるか判定する判定部と、前記複数の画像のそれぞれから所定の幅部分を切り出して前記側面の画像を合成する合成部と、前記しきい値以上であると判定された場合に、前記2枚の画像のうち後の画像の回転方向後側の切り出し幅を大きくする補正部と、を備える。 In one aspect, the cylindrical product inspection device includes: an imaging device that sequentially images the side surface of a cylindrical product that rotates about a cylindrical axis; and two continuous images of a plurality of images acquired by the imaging device. A determination unit that determines whether the amount of movement between the two images obtained by comparing the images is equal to or greater than a threshold value, and a predetermined width portion is cut out from each of the plurality of images and the image on the side surface is synthesized And a correction unit that increases a cutout width on the rear side in the rotation direction of the subsequent image of the two images when it is determined that the value is equal to or greater than the threshold value.

1つの態様では、円筒製品検査方法は、円筒軸を回転軸として円筒製品を回転させつつ、前記円筒製品の側面を順次撮像し、得られた複数の画像のそれぞれから所定の幅部分を切り出して前記側面の画像を合成する場合において、経時的に連続する2枚の画像を比較することによって得られる当該2枚の画像間の移動量がしきい値以上であるか判定し、前記しきい値以上である場合に、当該2枚の画像のうち後の画像の回転方向後側の切り出し幅を大きくする。 In one aspect, the cylindrical product inspection method sequentially images the side surfaces of the cylindrical product while rotating the cylindrical product about the cylindrical axis as a rotation axis, and cuts out a predetermined width portion from each of the obtained plurality of images. In the case of synthesizing the side images, it is determined whether the amount of movement between the two images obtained by comparing two images that are continuous over time is equal to or greater than a threshold value, In such a case, the cutout width on the rear side in the rotation direction of the subsequent image of the two images is increased.

検査精度低下を抑制することができる。   A decrease in inspection accuracy can be suppressed.

(a)および(b)は円筒製品の検査を例示する図である。(A) And (b) is a figure which illustrates the test | inspection of a cylindrical product. (a)は円筒製品検査装置の上面図であり、(b)は円筒製品検査装置の側面図である。(A) is a top view of a cylindrical product inspection apparatus, (b) is a side view of a cylindrical product inspection apparatus. (a)は背面照明が無い場合に得られた画像を例示する図であり、(b)は背面照明で円筒製品の背面に光を照射した状態で得られた画像を例示する図である。(A) is a figure which illustrates the image obtained when there is no back lighting, (b) is a figure which illustrates the image obtained in the state which irradiated the light to the back of a cylindrical product with back lighting. (a)は制御装置のハードウェア構成を説明するためのブロック図であり、(b)は制御装置の機能ブロック図である。(A) is a block diagram for demonstrating the hardware constitutions of a control apparatus, (b) is a functional block diagram of a control apparatus. 切り出し部分を例示する図である。It is a figure which illustrates the cutout part. (a)〜(c)は移動量判定部による判定について説明するための図である。(A)-(c) is a figure for demonstrating the determination by the movement amount determination part. 切り出し幅の補正について例示する図である。It is a figure illustrated about correction of cutout width. 円筒製品検査装置が円筒製品を検査する際に実行するフローチャートの一例である。It is an example of the flowchart performed when a cylindrical product inspection apparatus test | inspects a cylindrical product.

実施例の説明に先立って、円筒製品の検査の概略について説明する。   Prior to the description of the examples, an outline of inspection of cylindrical products will be described.

図1(a)および図1(b)は、円筒製品の検査を例示する図である。例えば、円筒製品の検査においては、図1(a)で例示するように、円筒軸を回転軸として円筒製品を回転させながら、ラインカメラで円筒製品を撮像する。撮像によって得られたライン画像をつなぎ合わせることによって、円筒側面の画像を合成することができる。しかしながら、この方法では、検査対象の本数分のカメラと照明が必要となり、設備投資が大きくなる。それにより、コスト抑制のニーズに合わなくなる。   FIG. 1A and FIG. 1B are diagrams illustrating an inspection of a cylindrical product. For example, in the inspection of a cylindrical product, as illustrated in FIG. 1A, the cylindrical product is imaged with a line camera while the cylindrical product is rotated about the cylindrical axis. An image of the cylindrical side surface can be synthesized by connecting line images obtained by imaging. However, this method requires as many cameras and illuminations as the number of objects to be inspected, which increases capital investment. As a result, it will not meet the cost control needs.

そこで、エリアカメラ等を用いて検査することが考えられる。例えば図1(b)で例示するように、エリアカメラを用い、円筒軸を回転軸として円筒製品を回転させながら円筒側面を含むエリアを順次撮像し、得られた画像の所定の幅部分(例えば所定幅の頂上部分)を短冊状に切り出し、切り出した短冊状の部分画像をつなぎ合わせる手法が考えられる。この場合においても、円筒側面の画像を合成することができる。   Therefore, it is conceivable to perform inspection using an area camera or the like. For example, as illustrated in FIG. 1B, an area camera is used to sequentially image areas including the cylindrical side surface while rotating the cylindrical product about the cylindrical axis as a rotation axis, and a predetermined width portion (for example, A method is conceivable in which a top portion having a predetermined width is cut out in a strip shape, and the cut-out strip-like partial images are connected. Even in this case, an image of the cylindrical side surface can be synthesized.

しかしながら、例えばPC(パーソナルコンピュータ)などの汎用の制御装置を用いて順次撮像する場合、制御装置の負荷状況に応じて撮影タイミングが目標のタイミングからずれる場合がある。例えば、負荷が大きいと撮像の間隔が大きくなることがある。この場合、短冊状に切り出した画像に絵柄の欠落などが発生し、つなぎ合わせた画像が実際の円筒側面の絵柄と異なり、検査精度が低下するおそれがある。画像専用の取り込み装置を用いることも考えられるが、コストがかかる。以下の実施例では、検査精度を向上させることができる円筒製品検査装置および円筒製品検査方法について説明する。   However, when imaging is performed sequentially using a general-purpose control device such as a PC (personal computer), the shooting timing may deviate from the target timing depending on the load status of the control device. For example, when the load is large, the imaging interval may increase. In this case, a missing pattern or the like occurs in the image cut out in a strip shape, and the joined image is different from the actual pattern on the side surface of the cylinder, and the inspection accuracy may be lowered. Although it is conceivable to use a dedicated image capturing device, it is expensive. In the following embodiments, a cylindrical product inspection apparatus and a cylindrical product inspection method capable of improving inspection accuracy will be described.

図2(a)および図2(b)は、実施例1に係る円筒製品検査装置100の全体構成を例示する図である。図2(a)は、円筒製品検査装置100の上面図である。図2(b)は、円筒製品検査装置100の側面図である。   2A and 2B are diagrams illustrating the overall configuration of the cylindrical product inspection apparatus 100 according to the first embodiment. FIG. 2A is a top view of the cylindrical product inspection apparatus 100. FIG. 2B is a side view of the cylindrical product inspection apparatus 100.

図2(a)で例示するように、円筒製品検査装置100は、固定部10、回転装置20、背面照明30、撮像用照明40、撮像装置50、制御装置60などを備える。固定部10には、検査対象の円筒製品70のいずれかの底面が固定されている。円筒製品70として金属製品を用いる場合には、固定部10として磁石などを用いることができる。円筒製品70は、円筒状のものであれば特に限定されるものではない。本実施例においては、円筒製品70は、一例として乾電池である。   As illustrated in FIG. 2A, the cylindrical product inspection device 100 includes a fixing unit 10, a rotation device 20, a back illumination 30, an imaging illumination 40, an imaging device 50, a control device 60, and the like. Any one bottom surface of the cylindrical product 70 to be inspected is fixed to the fixing portion 10. When a metal product is used as the cylindrical product 70, a magnet or the like can be used as the fixed portion 10. The cylindrical product 70 is not particularly limited as long as it is cylindrical. In the present embodiment, the cylindrical product 70 is a dry battery as an example.

回転装置20は、モータなどであり、制御装置60の指示に従って固定部10を回転させる。それにより、円筒製品70は、円筒軸を回転軸として回転する。背面照明30は、円筒製品70を挟んで撮像装置50と反対側に配置され、円筒製品70に対して光を照射する。本実施例においては、背面照明30は、円筒製品70の背面(側面の底部)に対して光が照射されるように配置されている。撮像用照明40は、例えば円筒製品70を挟んで回転装置20と反対側に配置され、円筒製品70に対する撮像装置50の撮像範囲に対して光を照射する。本実施例においては、撮像用照明40は、円筒製品70の側面の頂上部に対して光が照射されるように配置されている。   The rotating device 20 is a motor or the like, and rotates the fixing unit 10 in accordance with an instruction from the control device 60. Thereby, the cylindrical product 70 rotates about the cylindrical axis as a rotation axis. The backlight 30 is disposed on the opposite side of the imaging device 50 with the cylindrical product 70 interposed therebetween, and irradiates the cylindrical product 70 with light. In the present embodiment, the backlight 30 is arranged so that light is irradiated to the back surface (bottom portion of the side surface) of the cylindrical product 70. The imaging illumination 40 is disposed, for example, on the opposite side of the rotating device 20 with the cylindrical product 70 interposed therebetween, and irradiates light onto the imaging range of the imaging device 50 with respect to the cylindrical product 70. In the present embodiment, the imaging illumination 40 is arranged so that light is applied to the top of the side surface of the cylindrical product 70.

撮像用照明40が円筒製品70の側面の頂上部に対して光を照射することから、撮像装置50は、円筒製品70の側面頂上部を精度良く撮像することができる。また、背面照明30が円筒製品70の背面側から光を照射することから、撮像装置50から見た円筒製品70の側面と背景との境界にコントラストが現れる。それにより、撮像装置50の撮像によって得られた画像において、円筒製品70の外形の認識が容易となる。すなわち、背面照明30と撮像用照明40とを用いることで、撮像装置50は、円筒製品70の外形を精度良く認識しつつ、円筒製品70の側面頂上部を精度良く撮像することができる。   Since the imaging illumination 40 irradiates the top of the side surface of the cylindrical product 70 with light, the imaging device 50 can accurately image the top of the side surface of the cylindrical product 70. Further, since the back illumination 30 irradiates light from the back side of the cylindrical product 70, contrast appears at the boundary between the side surface of the cylindrical product 70 and the background viewed from the imaging device 50. Thereby, the outer shape of the cylindrical product 70 can be easily recognized in the image obtained by the imaging of the imaging device 50. That is, by using the back illumination 30 and the imaging illumination 40, the imaging device 50 can accurately capture the top of the side surface of the cylindrical product 70 while accurately recognizing the outer shape of the cylindrical product 70.

図3(a)は、背面照明30が備わっていない場合に撮像装置50の撮像によって得られた画像を例示する図である。図3(a)で例示するように、背面照明30が備わっていないと円筒製品70の側面と背景との境界にコントラストが現れにくくなる。これに対して、図3(b)は、背面照明30で円筒製品70の背面に光を照射した状態で撮像装置50の撮像によって得られた画像を例示する図である。図3(b)で例示するように、背面照明30を用いると円筒製品70の側面と背景との境界にコントラストが現れるため、円筒製品70の外形の認識が容易となる。なお、図3(a)および図3(b)では、画像に影となって現れる部分に網掛け等の模様を付してある。   FIG. 3A is a diagram illustrating an image obtained by imaging by the imaging device 50 when the backlight 30 is not provided. As illustrated in FIG. 3A, if the backlight 30 is not provided, contrast is unlikely to appear at the boundary between the side surface of the cylindrical product 70 and the background. On the other hand, FIG. 3B is a diagram illustrating an image obtained by imaging with the imaging device 50 in a state in which light is applied to the back surface of the cylindrical product 70 with the back illumination 30. As illustrated in FIG. 3B, when the backlight 30 is used, contrast appears at the boundary between the side surface and the background of the cylindrical product 70, so that the outer shape of the cylindrical product 70 can be easily recognized. In FIGS. 3A and 3B, a shaded pattern is added to a portion that appears as a shadow in the image.

撮像装置50は、円筒製品70を挟んで背面照明30と反対側に配置されており、円筒製品70の側面頂上部と対向している。撮像装置50は、例えばCMOS(Complementary Metal Oxide Semiconductor)カメラ、CCD(Charge Coupled Device)カメラなどである。撮像装置50は、エリアカメラとして用いられる。撮像装置50は、制御装置60の指示に従って、円筒製品70の側面を頂上側から経時的に順次撮像する。   The imaging device 50 is disposed on the opposite side of the backlight unit 30 with the cylindrical product 70 interposed therebetween, and faces the top of the side surface of the cylindrical product 70. The imaging device 50 is, for example, a CMOS (Complementary Metal Oxide Semiconductor) camera, a CCD (Charge Coupled Device) camera, or the like. The imaging device 50 is used as an area camera. In accordance with an instruction from the control device 60, the imaging device 50 sequentially images the side surfaces of the cylindrical product 70 from the top side in time.

撮像装置50によって得られた画像は、制御装置60に送られる。制御装置60は、撮像装置50によって得られた複数の画像を合成し、得られた合成画像を用いて検査を行う。図4(a)は、制御装置60のハードウェア構成を説明するためのブロック図である。図4(a)で例示するように、制御装置60は、CPU101、RAM102、記憶装置103、インタフェース104などを備える。これらの各機器は、バスなどによって接続されている。CPU(Central Processing Unit)101は、中央演算処理装置である。CPU101は、1以上のコアを含む。RAM(Random Access Memory)102は、CPU101が実行するプログラム、CPU101が処理するデータなどを一時的に記憶する揮発性メモリである。記憶装置103は、不揮発性記憶装置である。記憶装置103として、例えば、ROM(Read Only Memory)、フラッシュメモリなどのソリッド・ステート・ドライブ(SSD)、ハードディスクドライブに駆動されるハードディスクなどを用いることができる。   The image obtained by the imaging device 50 is sent to the control device 60. The control device 60 synthesizes a plurality of images obtained by the imaging device 50 and performs an inspection using the obtained synthesized image. FIG. 4A is a block diagram for explaining the hardware configuration of the control device 60. As illustrated in FIG. 4A, the control device 60 includes a CPU 101, a RAM 102, a storage device 103, an interface 104, and the like. Each of these devices is connected by a bus or the like. A CPU (Central Processing Unit) 101 is a central processing unit. The CPU 101 includes one or more cores. A RAM (Random Access Memory) 102 is a volatile memory that temporarily stores programs executed by the CPU 101, data processed by the CPU 101, and the like. The storage device 103 is a nonvolatile storage device. As the storage device 103, for example, a ROM (Read Only Memory), a solid state drive (SSD) such as a flash memory, a hard disk driven by a hard disk drive, or the like can be used.

図4(b)は、制御装置60の機能ブロック図である。CPU101が記憶装置103に記憶されているプログラムを実行することによって、図4(b)で例示するように、制御装置60に、保存部61、切り出し部62、移動量判定部63、補正部64、合成部65、検査部66などが実現される。なお、制御装置60の各部は、専用の回路などのハードウェアであってもよい。   FIG. 4B is a functional block diagram of the control device 60. When the CPU 101 executes the program stored in the storage device 103, as illustrated in FIG. 4B, the control device 60 includes the storage unit 61, the cutout unit 62, the movement amount determination unit 63, and the correction unit 64. The combining unit 65, the inspection unit 66, and the like are realized. Note that each unit of the control device 60 may be hardware such as a dedicated circuit.

保存部61は、撮像装置50が所定の撮像間隔(標準フレームレートから求まる撮像間隔)で順次取得する画像(フレーム)を受け取り、円筒製品70の側面全周に相当する枚数の画像を時刻データと関連付けて保存する。この側面全周に相当する枚数は、回転装置20の回転速度と撮像装置50の撮像間隔とから算出することができる。本実施例においては、一例として、30枚の画像(フレーム0〜フレーム29)が保存部61に保存される。   The storage unit 61 receives images (frames) sequentially acquired by the imaging device 50 at a predetermined imaging interval (imaging interval determined from the standard frame rate), and sets the number of images corresponding to the entire circumference of the cylindrical product 70 as time data. Associate and save. The number corresponding to the entire circumference of the side surface can be calculated from the rotation speed of the rotating device 20 and the imaging interval of the imaging device 50. In the present embodiment, as an example, 30 images (frame 0 to frame 29) are stored in the storage unit 61.

切り出し部62は、保存部61に保存された画像のそれぞれから所定の幅部分を短冊状に切り出す。図5で例示するように、円筒製品70が円筒の形状を有しているため、反射光量を均一にすることは困難である。例えば、円筒側面のいずれかの箇所にピントを合わせると、円筒製品70の高低差に起因してピントが合わなくなる箇所が現れる。そこで、本実施例においては、切り出し部62は、画像における高低差を抑制するために、円筒側面の頂上付近の所定幅部分を切り出す。   The cutout unit 62 cuts out a predetermined width portion from each of the images stored in the storage unit 61 into a strip shape. As illustrated in FIG. 5, since the cylindrical product 70 has a cylindrical shape, it is difficult to make the amount of reflected light uniform. For example, when focusing on any part of the cylindrical side surface, a part where the focus is not achieved due to the height difference of the cylindrical product 70 appears. Therefore, in the present embodiment, the cutout unit 62 cuts out a predetermined width portion near the top of the cylindrical side surface in order to suppress the height difference in the image.

保存部61には30枚の画像が保存されているため、図5で例示するように、切り出し部62は、円筒製品70の側面の頂上から回転方向前側に6度、回転方向後側に6度の合計12度の領域を切り出す。この12度の回転角度に相当する幅は、回転装置20の回転角度、撮像装置50の解像度などから算出することができる。なお、切り出し部62は、保存部61に保存された画像から、短冊状の画像の他に、円筒製品70の外形に沿って画像を切り出す。この外形画像については、移動量判定部63の判定に用いられる。また、外形画像の切り出しについては、輝度値などに基づいて行うことができる。   Since 30 images are stored in the storage unit 61, as illustrated in FIG. 5, the cutout unit 62 is 6 degrees from the top of the side surface of the cylindrical product 70 to the front side in the rotation direction and 6 ° to the rear side in the rotation direction. A region of 12 degrees in total is cut out. The width corresponding to the rotation angle of 12 degrees can be calculated from the rotation angle of the rotation device 20, the resolution of the imaging device 50, and the like. The cutout unit 62 cuts out an image from the image stored in the storage unit 61 along the outer shape of the cylindrical product 70 in addition to the strip-shaped image. This outer shape image is used for determination by the movement amount determination unit 63. In addition, the cutout of the outline image can be performed based on a luminance value or the like.

移動量判定部63は、保存部61に保存された経時的に連続する各2枚の画像を比較することによって得られる当該2枚の画像の移動量がしきい値以上であるか否かを判定する。図6(a)〜図6(c)は、移動量判定部63による判定について説明するための図である。図6(a)は、経時的に連続する前後2枚のフレームの外形画像を例示する図である。一例として、図6(a)の左図はフレーム0の外形画像であり、右図はフレーム1の外形画像である。なお、本実施例においては、円筒製品70のマイナス極側(底面側)から見て左回りに回転する。また、フレーム0とフレーム1との重なりの比較を容易とするためにフレーム1では文字を白抜きで表しているが、実際にはフレーム0とフレーム1とで、文字の書体は同じである。   The movement amount determination unit 63 determines whether or not the movement amount of the two images obtained by comparing the two images stored in the storage unit 61 with time and continuous is greater than or equal to a threshold value. judge. FIG. 6A to FIG. 6C are diagrams for explaining determination by the movement amount determination unit 63. FIG. 6A is a diagram illustrating an outer shape image of two front and rear frames that are continuous over time. As an example, the left figure of FIG. 6A is the outline image of frame 0, and the right figure is the outline image of frame 1. In this embodiment, the cylindrical product 70 rotates counterclockwise as viewed from the negative pole side (bottom surface side). Further, in order to facilitate the comparison of the overlap between the frame 0 and the frame 1, the characters are shown in white in the frame 1, but the character typefaces are actually the same in the frames 0 and 1.

移動量判定部63は、フレーム0の外形画像をテンプレート画像として用いる。この場合において、図6(a)で例示するように、移動量判定部63は、回転方向側端の所定幅をカットする。図6(b)の左図は、カット後のテンプレート画像である。所定幅をカットするのは、フレーム1の外形画像において比較対象が無いからである。次に、移動量判定部63は、フレーム1の外形画像をマッチング対象の画像(マッチング画像)として用い、テンプレートマッチングによりテンプレート画像とマッチング画像との類似度が最大となる位置を探す。次に、図6(c)で例示するように、移動量判定部63は、マッチング画像において類似度が最大となる位置から、テンプレート画像の初期位置を差し引いた値を移動量aとして抽出する。   The movement amount determination unit 63 uses the outline image of frame 0 as a template image. In this case, as illustrated in FIG. 6A, the movement amount determination unit 63 cuts a predetermined width at the rotation direction side end. The left figure of FIG.6 (b) is the template image after a cut. The predetermined width is cut because there is no comparison target in the outline image of the frame 1. Next, the movement amount determination unit 63 uses the outline image of the frame 1 as a matching target image (matching image), and searches for a position where the similarity between the template image and the matching image is maximized by template matching. Next, as illustrated in FIG. 6C, the movement amount determination unit 63 extracts a value obtained by subtracting the initial position of the template image from the position where the similarity is the maximum in the matching image as the movement amount a.

ここで、目標の移動量bは、例えばb=Δt×Aで表すことができる。係数Aは、予め、撮像装置50の解像度、回転装置20の回転速度等から求めた係数(ピクセル/ms)である。Δtは、標準フレームレートから求まる撮像間隔時間(ms)である。移動量aが目標の移動量bよりも大きいと、フレーム1の撮像タイミングが遅れていることになる。そこで、移動量判定部63は、移動量aがしきい値以上であるか否かを判定する。この場合のしきい値として、目標移動量bより大きい値を用いることができる。   Here, the target movement amount b can be represented by b = Δt × A, for example. The coefficient A is a coefficient (pixel / ms) obtained in advance from the resolution of the imaging device 50, the rotation speed of the rotation device 20, and the like. Δt is an imaging interval time (ms) obtained from the standard frame rate. If the movement amount a is larger than the target movement amount b, the imaging timing of the frame 1 is delayed. Therefore, the movement amount determination unit 63 determines whether or not the movement amount a is equal to or greater than a threshold value. As a threshold value in this case, a value larger than the target movement amount b can be used.

移動量aがしきい値以上であると判定された場合、補正部64は、切り出し部62による切り出し幅を目標の切り出し幅(設定値)よりも大きくする。例えば、図7で例示するように、補正部64は、円筒製品70の中心より左側(回転方向前側)の切り出し位置については補正せず、円筒製品70の中心より右側(回転方向後側)の切り出し位置については、(a―b)だけ右側(回転方向後側)に補正する。それにより、切り出し幅は、目標移動量bから実際の移動量aに広がることになる。   When it is determined that the movement amount a is equal to or larger than the threshold value, the correction unit 64 makes the cutout width by the cutout unit 62 larger than the target cutout width (set value). For example, as illustrated in FIG. 7, the correction unit 64 does not correct the cut-out position on the left side (front side in the rotation direction) from the center of the cylindrical product 70 and is on the right side (back side in the rotation direction) from the center of the cylindrical product 70. The cutout position is corrected to the right side (back side in the rotation direction) by (ab). Thereby, the cut-out width increases from the target movement amount b to the actual movement amount a.

合成部65は、各フレームに対して切り出し部62が切り出した画像を時系列に沿ってつなぎ合わせることによって、円筒製品70の側面の画像を合成する。例えば、合成部65は、円筒製品70の側面全体の画像を合成する。次に、検査部66は、合成画像に対して検査を行う。例えば、検査部66は、合成画像と予め作成された基準画像とを照合し、両者の類似度がしきい値以上となっていれば当該円筒製品70の検査を合格と判定する。   The synthesizing unit 65 synthesizes the images of the side surfaces of the cylindrical product 70 by joining the images cut out by the cut-out unit 62 to each frame in time series. For example, the synthesis unit 65 synthesizes an image of the entire side surface of the cylindrical product 70. Next, the inspection unit 66 inspects the composite image. For example, the inspection unit 66 collates the composite image with a reference image created in advance, and determines that the inspection of the cylindrical product 70 is acceptable if the similarity between the two is equal to or greater than a threshold value.

図8は、円筒製品検査装置100が円筒製品70を検査する際に実行するフローチャートの一例である。図8で例示するように、保存部61は、撮像装置50が順次取得する画像を受け取り、円筒製品70の側面全周に相当する枚数(一例として30枚)の画像を時刻データと関連付けて保存する(ステップS1)。次に、合成部65は、合成画像を生成するための合成画像領域を確保する(ステップS2)。具体的には、合成部65は、円筒製品70の側面全周に相当する枚数の画像(フレーム0〜フレーム29)を得るために経過した時間に、回転装置20の回転の時間あたりの撮像装置50におけるピクセル数を掛け合わせる。   FIG. 8 is an example of a flowchart executed when the cylindrical product inspection apparatus 100 inspects the cylindrical product 70. As illustrated in FIG. 8, the storage unit 61 receives images sequentially acquired by the imaging device 50, and stores the number of images corresponding to the entire circumference of the side surface of the cylindrical product 70 (for example, 30 images) in association with time data. (Step S1). Next, the composition unit 65 secures a composite image region for generating a composite image (step S2). Specifically, the combining unit 65 captures the number of images (frame 0 to frame 29) corresponding to the entire circumference of the side surface of the cylindrical product 70 and the imaging device per rotation time of the rotation device 20. Multiply by the number of pixels at 50.

次に、切り出し部62は、保存部61に保存されたそれぞれの画像における目標の切り出し位置(設定値)を計算する(ステップS3)。次に、移動量判定部63は、所定枚数(円筒製品70の側面全周に相当する枚数)分の処理が完了しているか否かを判定する(ステップS4)。ステップS4の実行によって、画像の切り出しが完了したか判定することができる。   Next, the cutout unit 62 calculates a target cutout position (set value) in each image stored in the storage unit 61 (step S3). Next, the movement amount determination unit 63 determines whether or not processing for a predetermined number (the number corresponding to the entire circumference of the side surface of the cylindrical product 70) has been completed (step S4). By executing step S4, it is possible to determine whether the image clipping has been completed.

ステップS4で「No」と判定された場合、移動量判定部63は、1フレーム前の画像(例えばフレーム0)の外形画像から得られたテンプレート画像と、次のフレームの画像(例えばフレーム1)の外形画像(マッチング画像)とのマッチング処理を行う。それにより、フレーム0からのフレーム1の移動量を抽出する(ステップS5)。次に、移動量判定部63は、ステップS5で抽出された移動量がしきい値以上であるか否かを判定する(ステップS6)。この場合のしきい値として、目標移動量の所定倍などの、目標移動量よりも大きい値を用いることができる。なお、フレーム0については1つ前のフレームが存在しないため、移動量はしきい値未満となる。   When it is determined “No” in step S4, the movement amount determination unit 63 determines the template image obtained from the outline image of the previous frame (for example, frame 0) and the next frame (for example, frame 1). A matching process with the external shape image (matching image) is performed. Thereby, the movement amount of frame 1 from frame 0 is extracted (step S5). Next, the movement amount determination unit 63 determines whether or not the movement amount extracted in step S5 is greater than or equal to a threshold value (step S6). As a threshold value in this case, a value larger than the target movement amount, such as a predetermined multiple of the target movement amount, can be used. For frame 0, since the previous frame does not exist, the movement amount is less than the threshold value.

ステップS6で「No」と判定された場合、補正部64は、切り出し幅を補正しない。それにより、切り出し部62は、フレーム1において、目標の切り出し位置で、目標の切り出し幅の部分を切り出す(ステップS7)。ステップS6で「Yes」と判定された場合、補正部64は、切り出し幅を大きくする補正を行う。それにより、切り出し部62は、フレーム1において目標の切り出し幅よりも広い幅の部分を切り出す(ステップS8)。ステップS7またはステップS8の実行後、合成部65は、切り出した部分(短冊)を合成画像領域に貼り付ける(ステップS9)。その後、ステップS4から再度実行される。なお、この場合、前回よりも経時的に次の2枚のフレームを用いて、マッチング処理が行われることになる。また、ステップS9では、経時的に連続する切り出し部分が順に貼り付けられることになる。   When it is determined “No” in step S6, the correction unit 64 does not correct the cutout width. Thereby, the cutout unit 62 cuts out the portion of the target cutout width at the target cutout position in the frame 1 (step S7). When it is determined as “Yes” in step S <b> 6, the correction unit 64 performs correction to increase the cut-out width. Accordingly, the cutout unit 62 cuts out a portion having a width wider than the target cutout width in the frame 1 (step S8). After execution of step S7 or step S8, the compositing unit 65 pastes the cut-out part (strip) into the composite image area (step S9). Thereafter, the process is executed again from step S4. In this case, the matching process is performed using the next two frames over time from the previous time. In step S9, cutout portions that are continuous with time are sequentially pasted.

ステップS4で「Yes」と判定された場合、合成部65は合成画像を完成させることになる(ステップS10)。次に、検査部66は、合成画像と基準画像とを比較する(ステップS11)。例えば、検査部66は、両画像の類似度を算出する。次に、検査部66は、両者に差異があるか否かを判定する(ステップS12)。例えば、両画像の類似度がしきい値以下であるか否かを判定する。ステップS12で「Yes」と判定された場合、検査部66は、検査不合格であると判定する。ステップS12で「No」と判定された場合、検査部66は、検査合格であると判定する。   If “Yes” is determined in step S4, the synthesizing unit 65 completes the synthesized image (step S10). Next, the inspection unit 66 compares the composite image with the reference image (step S11). For example, the inspection unit 66 calculates the similarity between both images. Next, the inspection unit 66 determines whether or not there is a difference between the two (step S12). For example, it is determined whether the similarity between both images is equal to or less than a threshold value. When it is determined as “Yes” in Step S <b> 12, the inspection unit 66 determines that the inspection has failed. When it is determined as “No” in Step S12, the inspection unit 66 determines that the inspection is passed.

本実施例によれば、経時的に連続する2枚の画像間の移動量がしきい値以上である場合に当該2枚の画像のうち後の画像の切り出し幅が大きくなることから、円筒製品の側面の欠落が抑制される。それにより、制御装置60の負荷等に起因して撮像装置50の撮像タイミングにズレが生じても、円筒製品の検査精度の低下が抑制される。   According to this embodiment, when the amount of movement between two images that are continuous over time is equal to or greater than a threshold value, the cutout width of the subsequent image of the two images increases, so that the cylindrical product The omission of the side surface of the is suppressed. Thereby, even if the imaging timing of the imaging device 50 is shifted due to the load of the control device 60 or the like, a decrease in the inspection accuracy of the cylindrical product is suppressed.

また、背面照明30が円筒製品70を挟んで撮像装置50と反対側から円筒製品70に光を照射することから、撮像装置50が取得する画像において円筒製品70の外形の切り出しが容易となる。それにより、経時的に連続する2枚の画像間の移動量の判定精度が向上する。さらに、撮像用照明40が、撮像装置50の撮像範囲に対して光を照射することから、撮像装置50による円筒製品70の撮像精度が向上する。また、経時的に連続する2枚の画像間の類似度を算出する際に、前の画像において円筒製品70の回転方向側端の所定幅がカットされることから、当該類似度の算出精度が向上する。   Further, since the back illumination 30 irradiates light to the cylindrical product 70 from the opposite side of the imaging device 50 with the cylindrical product 70 interposed therebetween, it becomes easy to cut out the outer shape of the cylindrical product 70 in the image acquired by the imaging device 50. Thereby, the determination accuracy of the movement amount between two images that are continuous with time is improved. Furthermore, since the imaging illumination 40 irradiates light to the imaging range of the imaging device 50, the imaging accuracy of the cylindrical product 70 by the imaging device 50 is improved. In addition, when calculating the similarity between two images that are continuous over time, the predetermined width at the rotation direction side end of the cylindrical product 70 is cut in the previous image, so that the calculation accuracy of the similarity is high. improves.

なお、上記実施例においては、撮像装置50は1本の円筒製品70を撮像しているが、同期して回転する複数の円筒製品70を同時に撮像してもよい。この場合、撮像装置50の台数を抑制することができることから、コストを低減することができる。   In the above-described embodiment, the imaging device 50 images one cylindrical product 70, but a plurality of cylindrical products 70 that rotate in synchronization may be imaged simultaneously. In this case, since the number of the imaging devices 50 can be suppressed, the cost can be reduced.

また、上記実施例においては、経時的に連続する2枚の画像間の移動量がしきい値以上の場合に当該移動量に相当する幅の画像が切り出されているが、設定値よりも大きい幅の画像が切り出されればよい。この場合においても、合成画像において円筒側面の欠落が抑制される。   In the above embodiment, when the movement amount between two images that are continuous over time is equal to or larger than the threshold value, an image having a width corresponding to the movement amount is cut out, but is larger than the set value. An image having a width may be cut out. Even in this case, the lack of the cylindrical side surface in the composite image is suppressed.

以上、本発明の実施例について詳述したが、本発明は係る特定の実施例に限定されるものではなく、特許請求の範囲に記載された本発明の要旨の範囲内において、種々の変形・変更が可能である。   Although the embodiments of the present invention have been described in detail above, the present invention is not limited to such specific embodiments, and various modifications and changes can be made within the scope of the gist of the present invention described in the claims. It can be changed.

10 固定部
20 回転装置
30 背面照明
40 撮像用照明
50 撮像装置
60 制御装置
61 保存部
62 切り出し部
63 移動量判定部
64 補正部
65 合成部
66 検査部
70 円筒製品
100 円筒製品検査装置
DESCRIPTION OF SYMBOLS 10 Fixing part 20 Rotating device 30 Back surface illumination 40 Imaging illumination 50 Imaging apparatus 60 Control apparatus 61 Storage part 62 Cutout part 63 Movement amount determination part 64 Correction part 65 Composition part 66 Inspection part 70 Cylindrical product 100 Cylindrical product inspection apparatus

Claims (4)

円筒軸を回転軸として回転する円筒製品の側面を順次撮像する撮像装置と、
前記撮像装置が取得した複数の画像のうち経時的に連続する2枚の画像を比較することによって得られる前記2枚の画像間の移動量がしきい値以上であるか判定する判定部と、
前記複数の画像のそれぞれから所定の幅部分を切り出して前記側面の画像を合成する合成部と、
前記しきい値以上であると判定された場合に、前記2枚の画像のうち後の画像の回転方向後側の切り出し幅を大きくする補正部と、を備えることを特徴とする円筒製品検査装置。
An imaging device that sequentially images the side surfaces of a cylindrical product that rotates about a cylindrical axis;
A determination unit that determines whether or not a movement amount between the two images obtained by comparing two images that are continuous over time among the plurality of images acquired by the imaging device is equal to or greater than a threshold;
A combining unit that cuts out a predetermined width portion from each of the plurality of images and combines the side images;
A cylindrical product inspection device comprising: a correction unit that increases a cut-out width on the rear side in the rotation direction of the subsequent image of the two images when it is determined that the threshold value is equal to or greater than the threshold value. .
前記円筒製品を挟んで前記撮像装置と反対側から前記円筒製品に光を照射する照明をさらに備えることを特徴とする請求項1記載の円筒製品検査装置。   The cylindrical product inspection apparatus according to claim 1, further comprising an illumination that irradiates the cylindrical product with light from a side opposite to the imaging device with the cylindrical product interposed therebetween. 前記判定部は、前記2枚の画像を比較する際に、前の画像のうち回転方向の前側端の所定幅をカットした上で比較することを特徴とする請求項1または2記載の円筒製品検査装置。   3. The cylindrical product according to claim 1, wherein the determination unit compares the two images after cutting a predetermined width at a front side end in a rotation direction in a previous image. 4. Inspection device. 円筒軸を回転軸として円筒製品を回転させつつ、前記円筒製品の側面を順次撮像し、
得られた複数の画像のそれぞれから所定の幅部分を切り出して前記側面の画像を合成する場合において、経時的に連続する2枚の画像を比較することによって得られる当該2枚の画像間の移動量がしきい値以上であるか判定し、前記しきい値以上である場合に、当該2枚の画像のうち後の画像の回転方向後側の切り出し幅を大きくする、ことを特徴とする円筒製品検査方法。
While rotating the cylindrical product about the cylindrical axis as a rotation axis, sequentially image the side surface of the cylindrical product,
When a predetermined width portion is cut out from each of a plurality of obtained images and the side image is synthesized, movement between the two images obtained by comparing two images that are continuous over time It is determined whether the amount is equal to or greater than a threshold value, and when the amount is equal to or greater than the threshold value, a cutout width on the rear side in the rotation direction of the subsequent image of the two images is increased. Product inspection method.
JP2015017516A 2015-01-30 2015-01-30 Cylindrical product inspection apparatus and cylindrical product inspection method Expired - Fee Related JP6413811B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015017516A JP6413811B2 (en) 2015-01-30 2015-01-30 Cylindrical product inspection apparatus and cylindrical product inspection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015017516A JP6413811B2 (en) 2015-01-30 2015-01-30 Cylindrical product inspection apparatus and cylindrical product inspection method

Publications (2)

Publication Number Publication Date
JP2016142592A JP2016142592A (en) 2016-08-08
JP6413811B2 true JP6413811B2 (en) 2018-10-31

Family

ID=56570205

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015017516A Expired - Fee Related JP6413811B2 (en) 2015-01-30 2015-01-30 Cylindrical product inspection apparatus and cylindrical product inspection method

Country Status (1)

Country Link
JP (1) JP6413811B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI642902B (en) * 2017-11-28 2018-12-01 寶成工業股份有限公司 Visual detection device for roughing upper

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06284321A (en) * 1992-10-09 1994-10-07 Sony Corp Panorama picture preparing method and device
JP4565252B2 (en) * 2007-03-07 2010-10-20 株式会社野毛電気工業 Method for detecting a defective part of a moving article
JP2011508234A (en) * 2007-12-28 2011-03-10 ローベルト ボツシユ ゲゼルシヤフト ミツト ベシユレンクテル ハフツング Method and apparatus for inspecting ring components manufactured in or for a drive belt manufacturing process
JP5279017B2 (en) * 2008-12-02 2013-09-04 国立大学法人 東京大学 Imaging apparatus and imaging method
JP2010175281A (en) * 2009-01-27 2010-08-12 Kokusai Gijutsu Kaihatsu Co Ltd Apparatus for forming image of appearance surface
JP2012108778A (en) * 2010-11-18 2012-06-07 Fujitsu Semiconductor Ltd Image processing device, imaging device and image processing method

Also Published As

Publication number Publication date
JP2016142592A (en) 2016-08-08

Similar Documents

Publication Publication Date Title
JP6961797B2 (en) Methods and devices for blurring preview photos and storage media
US10306141B2 (en) Image processing apparatus and method therefor
KR101455018B1 (en) Image capturing apparatus, image capturing method, and computer-readable recording medium
US20170061701A1 (en) Color-based depth smoothing of scanned 3d model to enhance geometry in 3d printing
US8411996B2 (en) Method and apparatus for generating panorama
CN107220954B (en) 3D scanning system based on mobile terminal
WO2020001219A1 (en) Image processing method and apparatus, storage medium, and electronic device
US9554121B2 (en) 3D scanning apparatus and method using lighting based on smart phone
US10142541B2 (en) Image processing apparatus, imaging apparatus, and control method of image processing apparatus
WO2022134718A1 (en) Image processing method and chip, and electronic device
CN109068060A (en) Image processing method and device, terminal device, computer readable storage medium
US8466981B2 (en) Electronic camera for searching a specific object image
US7970238B2 (en) Method and apparatus for acquiring image of internal structure, and computer product
JP6413811B2 (en) Cylindrical product inspection apparatus and cylindrical product inspection method
US20110273578A1 (en) Electronic camera
US10212412B2 (en) Method of increasing photographing speed of photographing device
US8964044B2 (en) Image processing apparatus and image processing method
EP3798968B1 (en) Image processing method and device, electronic device, computer apparatus, and storage medium
US8538142B2 (en) Face-detection processing methods, image processing devices, and articles of manufacture
US20130083963A1 (en) Electronic camera
JPWO2022145054A5 (en) Image processing device, image processing method, and image processing program
WO2022059335A1 (en) Three-dimensional model generation method and three-dimensional model generation device
US12097421B2 (en) Golf ball set-top detection method, system and storage medium
US20220088455A1 (en) Golf ball set-top detection method, system and storage medium
JP4920525B2 (en) Image processing apparatus, image processing method, and image processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20171113

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180613

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180619

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180815

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: 20180904

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180917

R150 Certificate of patent or registration of utility model

Ref document number: 6413811

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees