JP7028086B2 - Shape measuring device and shape measuring method - Google Patents

Shape measuring device and shape measuring method Download PDF

Info

Publication number
JP7028086B2
JP7028086B2 JP2018128757A JP2018128757A JP7028086B2 JP 7028086 B2 JP7028086 B2 JP 7028086B2 JP 2018128757 A JP2018128757 A JP 2018128757A JP 2018128757 A JP2018128757 A JP 2018128757A JP 7028086 B2 JP7028086 B2 JP 7028086B2
Authority
JP
Japan
Prior art keywords
image
cut line
optical
unit
shape
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.)
Active
Application number
JP2018128757A
Other languages
Japanese (ja)
Other versions
JP2020008390A (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.)
Nippon Steel Corp
Original Assignee
Nippon Steel Corp
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 Nippon Steel Corp filed Critical Nippon Steel Corp
Priority to JP2018128757A priority Critical patent/JP7028086B2/en
Publication of JP2020008390A publication Critical patent/JP2020008390A/en
Application granted granted Critical
Publication of JP7028086B2 publication Critical patent/JP7028086B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、測定対象物の形状を光切断法により測定する形状測定装置および形状測定方法に関する。 The present invention relates to a shape measuring device and a shape measuring method for measuring the shape of an object to be measured by an optical cutting method.

光切断法は、相対移動する測定対象物に照射した線状光の反射光を撮像装置で撮像し、その撮像画像に写る線の曲がり具合から測定対象物の凹凸を測定する手法である。図5は、測定対象物の形状を光切断法により測定する従来の形状測定装置101を示す。形状測定装置101は、ラインレーザやスリット光等の線状光を照射する線状光源102を備え、搬送されている測定対象物100の測定面100aに対して線状光を照射する。 The light cutting method is a method in which the reflected light of linear light irradiated to a relatively moving measurement object is imaged by an image pickup device, and the unevenness of the measurement object is measured from the degree of bending of the line reflected in the image. FIG. 5 shows a conventional shape measuring device 101 that measures the shape of an object to be measured by an optical cutting method. The shape measuring device 101 includes a linear light source 102 that irradiates linear light such as a line laser or slit light, and irradiates the measurement surface 100a of the conveyed measurement object 100 with linear light.

形状測定装置101は、測定対象物100の測定面100a上に形成された光切断線L1を、エリアカメラ103により撮影し、得られた撮像画像(光切断画像とも呼ぶ)を演算処理装置104に出力する。この際、測定面100aが平坦であれば撮像画像には直線状の光切断線L1が現れる。しかし、測定面100aに凹凸がある場合には曲りのある光切断線L1が得られる。このように、光切断線L1の曲がり具合に基づき、照射断面における凹凸を測定する方法を光切断法と呼ぶ。 The shape measuring device 101 photographs the optical cutting line L1 formed on the measurement surface 100a of the measurement object 100 with the area camera 103, and the obtained captured image (also referred to as an optical cutting image) is transferred to the arithmetic processing device 104. Output. At this time, if the measurement surface 100a is flat, a linear optical cut line L1 appears in the captured image. However, when the measurement surface 100a has irregularities, a curved optical cut line L1 can be obtained. In this way, a method of measuring unevenness in the irradiation cross section based on the degree of bending of the light cutting line L1 is called a light cutting method.

光切断法では、測定対象物100と、線状光源102およびエリアカメラ103とを相対移動させているが、例えば、鉄鋼等の製造プロセスでは、固定された搬送ライン上を一様なサイズでない製品(例えば、厚み変動や、幅変動がある測定対象物100)が移動することもある。また、図6Aに示すように、測定対象物100を搬送中に、測定対象物100の幅中心が搬送ラインの幅方向中心からずれてしまい、測定対象物100が斜行してしまうこともある。 In the optical cutting method, the object to be measured 100 and the linear light source 102 and the area camera 103 are relatively moved. However, in a manufacturing process such as steel, for example, a product having a non-uniform size on a fixed transport line. (For example, the measurement object 100 having a thickness variation or a width variation) may move. Further, as shown in FIG. 6A, while the measurement object 100 is being conveyed, the width center of the measurement object 100 may be deviated from the center in the width direction of the transfer line, and the measurement object 100 may be skewed. ..

特許文献1では、例えば、測定対象物100にサイズ変動が生じたり、或いは、測定対象物100が斜行してしまったときに、エリアカメラ103のレンズに生じるフォーカスズレを自動補正する方法を提案している。また、特許文献2には、フレームの周囲に枠を設け、その枠に撮影対象物がかかったらズームアウトして視野外れを防止することが開示されている。さらに、特許文献3には、追従対象物体が移動したときに、監視用のカメラが設置された旋回台を回転させる構成が開示されている。 Patent Document 1 proposes, for example, a method of automatically correcting the focus shift that occurs in the lens of the area camera 103 when the size of the measurement object 100 fluctuates or the measurement object 100 is skewed. is doing. Further, Patent Document 2 discloses that a frame is provided around the frame, and when an object to be photographed is placed on the frame, the frame is zoomed out to prevent the field of view from being out of sight. Further, Patent Document 3 discloses a configuration in which a swivel table on which a monitoring camera is installed is rotated when a tracking target object moves.

国際公開第2016/171265号International Publication No. 2016/171265 特開2013-9435号公報Japanese Unexamined Patent Publication No. 2013-9435 特許第3960758号公報Japanese Patent No. 3960758

しかしながら、特許文献1では、エリアカメラ103の撮像視野に光切断線L1が収まっていることが必要である。そのため、図6Bに示すように、例えば湾曲状に変形した測定対象物100等が搬送されたり、或いは、測定対象物100が大きく斜行して、光切断線L1が撮像視野からはみ出してしまった場合(以下、視野外れとも呼ぶ)には、フォーカス補正ができないばかりか、光切断線L1を基に測定面100aの表面形状を測定できないという問題があった。 However, in Patent Document 1, it is necessary that the optical cut line L1 is within the imaging field of view of the area camera 103. Therefore, as shown in FIG. 6B, for example, the measurement object 100 deformed in a curved shape is transported, or the measurement object 100 is greatly skewed, and the optical cut line L1 protrudes from the imaging field of view. In this case (hereinafter, also referred to as out-of-field of view), there is a problem that not only the focus correction cannot be performed but also the surface shape of the measurement surface 100a cannot be measured based on the optical cut line L1.

また、特許文献2では、ズームアウトすることで、フレーム毎に空間分解能が変化してしまうため、測定面100aの形状測定へ適用できないという問題があった。さらに、特許文献3では、旋回台を高速に回転させ難いため、測定対象物100が搬送ライン上を高速に移動する場合、測定対象物100の急峻なサイズ変動や斜行に対して、旋回台が追従し難い。そのため、特許文献3でも、光切断線L1の視野外れが生じてしまい、光切断線L1を基に測定面100aの表面形状を測定できないという問題があった。 Further, in Patent Document 2, there is a problem that it cannot be applied to the shape measurement of the measurement surface 100a because the spatial resolution changes for each frame by zooming out. Further, in Patent Document 3, since it is difficult to rotate the swivel table at high speed, when the measurement object 100 moves at high speed on the transport line, the swivel table is subject to sudden size fluctuations and skews of the measurement object 100. Is difficult to follow. Therefore, even in Patent Document 3, there is a problem that the optical cutting line L1 is out of the field of view, and the surface shape of the measurement surface 100a cannot be measured based on the optical cutting line L1.

本発明は、上記のような問題に鑑みてなされたものであり、光切断線を基に測定対象物の表面形状を、従来よりも確実に測定できる形状測定装置および形状測定方法を提供することを目的とする。 The present invention has been made in view of the above problems, and provides a shape measuring device and a shape measuring method capable of measuring the surface shape of a measurement object based on an optical cutting line more reliably than before. With the goal.

本発明の形状測定装置は、測定対象物の測定面の形状を測定する形状測定装置において、前記測定面に線状光を照射する線状光源と、前記線状光による前記測定面上の光切断線を含む所定領域を撮像し、取得した撮像画像の一部領域を光切断線抽出画像として抽出する第1撮像部と、少なくとも前記光切断線抽出画像の撮像領域を含み、かつ、前記光切断線抽出画像の撮像領域よりも広域な前記測定面の領域を撮像した広域撮像画像を取得する第2撮像部と、前記光切断線抽出画像に基づいて前記測定対象物の表面形状を算出する演算処理装置と、を有し、前記演算処理装置は、前記広域撮像画像から光切断線位置を測定する光切断線位置測定部と、前記第1撮像部で前記光切断線抽出画像内から前記光切断線が外れる場合、前記撮像画像から前記光切断線抽出画像を抽出する抽出位置を、前記光切断線位置に基づいて、前記光切断線抽出画像内に前記光切断線が含まれる抽出位置に変更させる撮像視野制御部と、を備えるものである。 The shape measuring device of the present invention is a shape measuring device for measuring the shape of the measuring surface of an object to be measured, in which a linear light source that irradiates the measuring surface with linear light and light on the measuring surface by the linear light. A first imaging unit that captures a predetermined region including a cutting line and extracts a part of the acquired image as an optical cutting line extraction image, and at least an imaging region of the optical cutting line extraction image, and the light The surface shape of the object to be measured is calculated based on the second imaging unit that acquires a wide area image captured by imaging the area of the measurement surface that is wider than the image area of the cut line extracted image, and the optical cut line extracted image. It has an arithmetic processing apparatus, and the arithmetic processing apparatus includes an optical cutting line position measuring unit for measuring an optical cutting line position from the wide area captured image, and the first imaging unit from the inside of the optical cutting line extracted image. When the optical cutting line deviates, the extraction position for extracting the optical cutting line extraction image from the captured image is set to the extraction position where the optical cutting line is included in the optical cutting line extraction image based on the optical cutting line position. It is provided with an imaging field control unit that can be changed to.

また、本発明の形状測定装置は、測定対象物の測定面の形状を測定する形状測定装置において、前記測定面に線状光を照射する線状光源と、前記線状光による前記測定面上の光切断線を含む所定領域を撮像し、取得した撮像画像の一部領域を光切断線抽出画像として抽出する第1撮像部と、少なくとも前記光切断線抽出画像の撮像領域を含み、かつ、前記光切断線抽出画像の撮像領域よりも広域な前記測定面の領域を撮像した広域撮像画像を取得する第2撮像部と、前記光切断線抽出画像に基づいて前記測定対象物の表面形状を算出する演算処理装置と、を有し、前記演算処理装置は、前記広域撮像画像から光切断線位置を測定する光切断線位置測定部と、前記第1撮像部で前記光切断線に対するフォーカスが外れる場合、前記第1撮像部のフォーカス位置を、前記光切断線位置に基づいて、前記光切断線にフォーカスが合うフォーカス位置に変更させるフォーカス調整部と、を備えるものである。 Further, the shape measuring device of the present invention is a shape measuring device for measuring the shape of the measuring surface of an object to be measured, in which a linear light source that irradiates the measuring surface with linear light and the measuring surface by the linear light. A first imaging unit that captures a predetermined region including the optical cut line and extracts a part of the acquired image as an optical cut line extraction image, and at least an imaging region of the optical cut line extraction image, and A second image pickup unit that acquires a wide area image captured by imaging a region of the measurement surface that is wider than the image area of the light cut line extracted image, and a surface shape of the object to be measured based on the light cut line extracted image. The arithmetic processing apparatus has an arithmetic processing apparatus for calculating, and the arithmetic processing apparatus has an optical cutting line position measuring unit for measuring an optical cutting line position from the wide area captured image, and a first imaging unit for focusing on the optical cutting line. When it deviates, it is provided with a focus adjusting unit for changing the focus position of the first imaging unit to a focus position in which the light cutting line is in focus based on the light cutting line position.

また、本発明の形状測定装置は、測定対象物の測定面の形状を測定する形状測定装置において、前記測定面に線状光を照射する線状光源と、前記線状光による前記測定面上の光切断線を含む所定領域を撮像し、取得した撮像画像の一部領域を光切断線抽出画像として抽出する第1撮像部と、少なくとも前記光切断線抽出画像の撮像領域を含み、かつ、前記光切断線抽出画像の撮像領域よりも広域な前記測定面の領域を撮像した広域撮像画像を取得する第2撮像部と、前記光切断線抽出画像に基づいて前記測定対象物の表面形状を算出する演算処理装置と、を有し、前記演算処理装置は、前記広域撮像画像から光切断線位置を測定する光切断線位置測定部と、前記第1撮像部で前記光切断線抽出画像内から前記光切断線が外れる場合、前記撮像画像から前記光切断線抽出画像を抽出する抽出位置を、前記光切断線位置に基づいて、前記光切断線抽出画像内に前記光切断線が含まれる抽出位置に変更させる撮像視野制御部と、前記第1撮像部で前記光切断線に対するフォーカスが外れる場合、前記第1撮像部のフォーカス位置を、前記光切断線位置に基づいて、前記光切断線にフォーカスが合うフォーカス位置に変更させるフォーカス調整部と、を備えるものである。 Further, the shape measuring device of the present invention is a shape measuring device for measuring the shape of the measuring surface of an object to be measured, in which a linear light source that irradiates the measuring surface with linear light and the measuring surface by the linear light. A first imaging unit that captures a predetermined region including the optical cut line and extracts a part of the acquired image as an optical cut line extraction image, and at least an imaging region of the optical cut line extraction image, and A second image pickup unit that acquires a wide area image captured by imaging a region of the measurement surface that is wider than the image area of the light cut line extracted image, and a surface shape of the object to be measured based on the light cut line extracted image. It has an arithmetic processing device for calculating, and the arithmetic processing apparatus includes an optical cutting line position measuring unit for measuring the optical cutting line position from the wide area captured image, and the optical cutting line extracted image in the first imaging unit. When the optical cutting line deviates from the above, the optical cutting line is included in the optical cutting line extraction image based on the optical cutting line extraction position at which the optical cutting line extraction image is extracted from the captured image. When the imaging field control unit that changes the extraction position and the first imaging unit are out of focus on the optical cutting line, the focus position of the first imaging unit is set to the optical cutting line based on the optical cutting line position. It is provided with a focus adjusting unit for changing the focus position to the focus position.

本発明の形状測定方法は、測定対象物の測定面の形状を測定する形状測定方法において、前記測定面に線状光を照射する照射ステップと、第1撮像部によって、前記線状光による前記測定面上の光切断線を含む所定領域を撮像し、取得した撮像画像の一部領域を光切断線抽出画像として抽出する第1撮像ステップと、少なくとも前記光切断線抽出画像の撮像領域を含み、かつ、前記光切断線抽出画像の撮像領域よりも広域な前記測定面の領域を撮像した広域撮像画像を、第2撮像部により取得する第2撮像ステップと、前記光切断線抽出画像に基づいて前記測定対象物の表面形状を算出する演算処理ステップと、を有し、前記演算処理ステップは、前記広域撮像画像から光切断線位置を測定する光切断線位置測定ステップと、前記第1撮像部で前記光切断線抽出画像内から前記光切断線が外れる場合、前記撮像画像から前記光切断線抽出画像を抽出する抽出位置を、前記光切断線位置に基づいて、前記光切断線抽出画像内に前記光切断線が含まれる抽出位置に変更させる撮像視野制御ステップと、を備えるものである。 The shape measuring method of the present invention is a shape measuring method for measuring the shape of the measuring surface of an object to be measured, wherein the measuring surface is irradiated with linear light, and the first imaging unit is used to obtain the linear light. It includes a first imaging step of imaging a predetermined region including a light cut line on a measurement surface and extracting a part of the acquired image as an optical cut line extraction image, and at least an imaging region of the optical cut line extraction image. Based on the second imaging step of acquiring a wide-area image captured by the second imaging unit, which is an image of a region of the measurement surface wider than the image area of the optical cut line extracted image, and the optical cut line extracted image. The calculation processing step includes an arithmetic processing step for calculating the surface shape of the object to be measured, and the arithmetic processing step includes an optical cutting line position measuring step for measuring the optical cutting line position from the wide area captured image, and the first imaging. When the optical cutting line deviates from the light cutting line extraction image in the unit, the extraction position for extracting the optical cutting line extraction image from the captured image is determined based on the optical cutting line position, and the optical cutting line extraction image is obtained. It is provided with an imaging field control step for changing to an extraction position including the optical cutting line.

また、本発明の形状測定方法は、測定対象物の測定面の形状を測定する形状測定方法において、前記測定面に線状光を照射する照射ステップと、第1撮像部によって、前記線状光による前記測定面上の光切断線を含む所定領域を撮像し、取得した撮像画像の一部領域を光切断線抽出画像として抽出する第1撮像ステップと、少なくとも前記光切断線抽出画像の撮像領域を含み、かつ、前記光切断線抽出画像の撮像領域よりも広域な前記測定面の領域を撮像した広域撮像画像を、第2撮像部により取得する第2撮像ステップと、前記光切断線抽出画像に基づいて前記測定対象物の表面形状を算出する演算処理ステップと、を有し、前記演算処理ステップは、前記広域撮像画像から光切断線位置を測定する光切断線位置測定ステップと、前記第1撮像部で前記光切断線に対するフォーカスが外れる場合、前記第1撮像部のフォーカス位置を、前記光切断線位置に基づいて、前記光切断線にフォーカスが合うフォーカス位置に変更させるフォーカス調整ステップと、を備えるものである。 Further, the shape measuring method of the present invention is a shape measuring method for measuring the shape of the measuring surface of a measurement object, wherein the linear light is irradiated by an irradiation step of irradiating the measuring surface with linear light and a first imaging unit. The first imaging step of imaging a predetermined region including the optical cut line on the measurement surface and extracting a part of the acquired image as an optical cut line extracted image, and at least the imaging region of the optical cut line extracted image. A second imaging step of acquiring a wide-area image captured by the second imaging unit, which includes the image of a region of the measurement surface that is wider than the image area of the optical cut line extracted image, and the optical cut line extracted image. The calculation processing step includes an arithmetic processing step for calculating the surface shape of the object to be measured based on the above, and the arithmetic processing step includes an optical cutting line position measuring step for measuring the optical cutting line position from the wide area captured image, and the first. 1 When the image pickup unit is out of focus on the light cut line, the focus adjustment step of changing the focus position of the first image pickup unit to a focus position in which the light cut line is in focus based on the light cut line position. , Is provided.

また、本発明の形状測定方法は、測定対象物の測定面の形状を測定する形状測定方法において、前記測定面に線状光を照射する照射ステップと、第1撮像部によって、前記線状光による前記測定面上の光切断線を含む所定領域を撮像し、取得した撮像画像の一部領域を光切断線抽出画像として抽出する第1撮像ステップと、少なくとも前記光切断線抽出画像の撮像領域を含み、かつ、前記光切断線抽出画像の撮像領域よりも広域な前記測定面の領域を撮像した広域撮像画像を、第2撮像部により取得する第2撮像ステップと、前記光切断線抽出画像に基づいて前記測定対象物の表面形状を算出する演算処理ステップと、を有し、前記演算処理ステップは、前記広域撮像画像から光切断線位置を測定する光切断線位置測定ステップと、前記第1撮像部で前記光切断線抽出画像内から前記光切断線が外れる場合、前記撮像画像から前記光切断線抽出画像を抽出する抽出位置を、前記光切断線位置に基づいて、前記光切断線抽出画像内に前記光切断線が含まれる抽出位置に変更させる撮像視野制御ステップと、前記第1撮像部で前記光切断線に対するフォーカスが外れる場合、前記第1撮像部のフォーカス位置を、前記光切断線位置に基づいて、前記光切断線にフォーカスが合うフォーカス位置に変更させるフォーカス調整ステップと、を備えるものである。 Further, the shape measuring method of the present invention is a shape measuring method for measuring the shape of the measuring surface of a measurement object, wherein the linear light is irradiated by an irradiation step of irradiating the measuring surface with linear light and a first imaging unit. The first imaging step of imaging a predetermined region including the optical cut line on the measurement surface and extracting a part of the acquired image as an optical cut line extracted image, and at least the imaging region of the optical cut line extracted image. A second imaging step of acquiring a wide-area image captured by the second imaging unit, which includes the image of a region of the measurement surface that is wider than the image area of the optical cut line extracted image, and the optical cut line extracted image. The calculation processing step includes an arithmetic processing step for calculating the surface shape of the object to be measured based on the above, and the arithmetic processing step includes an optical cutting line position measuring step for measuring the optical cutting line position from the wide area captured image, and the first. When the optical cut line deviates from the inside of the optical cut line extracted image in the imaging unit, the extraction position for extracting the optical cut line extracted image from the captured image is set based on the optical cut line position. When the image pickup field control step of changing the extraction position to include the light cut line in the extracted image and the focus position of the first image pickup unit are out of focus by the first image pickup unit, the focus position of the first image pickup unit is changed to the light. It includes a focus adjustment step for changing to a focus position in which the optical cutting line is in focus based on the cutting line position.

本発明によれば、広域撮像画像内に含まれた光切断線の位置に基づいて、第1撮像部が撮像画像内から抽出する光切断線抽出画像の抽出位置を変更させるようにしたことで、光切断線抽出画像内からの光切断線の視野外れを防止できる。かくして、本発明では、光切断線を基に測定対象物の表面形状を、従来よりも確実に測定できる。 According to the present invention, the extraction position of the optical cut line extracted image extracted from the captured image is changed by the first imaging unit based on the position of the optical cut line included in the wide area captured image. , It is possible to prevent the optical cut line from being out of the field of view from the extracted image. Thus, in the present invention, the surface shape of the object to be measured can be measured more reliably than before based on the optical cut line.

また、本発明によれば、広域撮像画像内に含まれた光切断線の位置に基づいて、第1撮像部のフォーカス位置を変更させるようにしたことで、第1撮像部における光切断線に対するフォーカス外れを防止できる。かくして、本発明では、光切断線を基に測定対象物の表面形状を、従来よりも確実に測定できる。 Further, according to the present invention, the focus position of the first image pickup unit is changed based on the position of the light cut line included in the wide area captured image, so that the light cut line in the first image pickup unit is changed. You can prevent out of focus. Thus, in the present invention, the surface shape of the object to be measured can be measured more reliably than before based on the optical cut line.

本発明の形状測定装置の構成を示す概略図である。It is a schematic diagram which shows the structure of the shape measuring apparatus of this invention. 図2Aは、測定面における光切断線を示した概略図であり、図2Bは、光切断線の位置がピークとなって現れるプロジェクション波形を示したグラフである。FIG. 2A is a schematic view showing a light cut line on the measurement surface, and FIG. 2B is a graph showing a projection waveform in which the position of the light cut line appears as a peak. 本発明による形状測定処理手順を示すフローチャートである。It is a flowchart which shows the shape measurement processing procedure by this invention. 他の実施形態による形状測定処理手順を示すフローチャートである。It is a flowchart which shows the shape measurement processing procedure by another embodiment. 光切断法の説明に供する概略図である。It is a schematic diagram provided for the explanation of the optical cutting method. 図6Aは、測定対象物が斜行したときの説明に供する概略図であり、図6Bは、光切断線の視野外れが生じるときの説明に供する概略図である。FIG. 6A is a schematic diagram for explaining when the object to be measured is skewed, and FIG. 6B is a schematic diagram for explaining when the optical cut line is out of the field of view.

以下図面について、本発明の一実施形態を詳述する。以下の説明において、同様の要素には同一の符号を付し、重複する説明は省略する。 Hereinafter, one embodiment of the present invention will be described in detail with reference to the drawings. In the following description, similar elements are designated by the same reference numerals, and duplicate description will be omitted.

<本発明の形状測定装置について>
図1は、本発明による形状測定装置1の構成を示す概略図である。形状測定装置1は、搬送ラインに沿って搬送方向Dに搬送される測定対象物100の測定面100aを撮像し、得られた撮像画像内から一部領域ER1を光切断線抽出画像として抽出する。ここで、光切断線抽出画像とは、撮像画像内から光切断線L1が写った領域周辺のみを関心領域(以下、ROI:Region of interestと称する)として抽出したものであり、以下、ROI画像とも称する。
<About the shape measuring device of the present invention>
FIG. 1 is a schematic view showing the configuration of the shape measuring device 1 according to the present invention. The shape measuring device 1 images the measurement surface 100a of the measurement object 100 transported in the transport direction D along the transport line, and extracts a part of the region ER1 as an optical cut line extraction image from the obtained captured image. .. Here, the optical cut line extraction image is obtained by extracting only the periphery of the region in which the optical cut line L1 is captured from the captured image as a region of interest (hereinafter referred to as ROI: Region of interest), and hereinafter, the ROI image. Also called.

形状測定装置1は、ROI画像に対して画像処理を実行することにより、測定面100aの表面形状を測定する。この形状測定装置1は、線状光源6と撮像装置2と演算処理装置3と記憶部4と表示装置5とを備えており、以下これらの構成について順番に説明する。 The shape measuring device 1 measures the surface shape of the measuring surface 100a by performing image processing on the ROI image. The shape measuring device 1 includes a linear light source 6, an image pickup device 2, an arithmetic processing device 3, a storage unit 4, and a display device 5, and these configurations will be described in order below.

線状光源6は、レーザやLED等の公知の光源からなり、測定対象物100の測定面100aに、線状光Lを照射する。測定対象物100の測定面100aの線状光Lが照射された箇所には、線状の明るい部位(光切断線)L1が形成される。光切断線L1からの反射光は撮像装置2により撮像される。撮像装置2は、ROI画像を生成する第1撮像部11aと、ROI画像の撮像領域も含みかつROI画像よりも広域な領域ER2を撮像した広域撮像画像を取得する第2撮像部11bと、第1撮像部11aのフォーカス調整を行うためのフォーカス調整用モータ12とを有する。 The linear light source 6 is composed of a known light source such as a laser or an LED, and irradiates the measurement surface 100a of the measurement object 100 with the linear light L. A linear bright portion (light cut line) L1 is formed at a portion of the measurement surface 100a of the measurement object 100 irradiated with the linear light L. The reflected light from the optical cut line L1 is imaged by the image pickup apparatus 2. The image pickup apparatus 2 includes a first image pickup unit 11a that generates an ROI image, a second image pickup unit 11b that acquires a wide area image pickup image that includes an image pickup area of the ROI image and has a wider area ER2 than the ROI image, and a second image pickup unit 11b. 1 It has a focus adjustment motor 12 for adjusting the focus of the image pickup unit 11a.

第1撮像部11aは、例えばエリアカメラであり、初めに光切断線L1が形成された測定面100aの所定領域を撮像し、撮像視野全体の全画素が露光された撮像画像を内部に取得する。その後、第1撮像部11aは、取得した撮像画像の中から、光切断線L1を含んだ一部領域ER1内の画素のみを読み出し、ROI画像として抽出する。 The first image pickup unit 11a is, for example, an area camera, first captures a predetermined region of the measurement surface 100a on which the optical cut line L1 is formed, and internally acquires an image captured by exposing all the pixels of the entire imaging field of view. .. After that, the first image pickup unit 11a reads out only the pixels in the partial region ER1 including the optical cut line L1 from the acquired captured images, and extracts them as an ROI image.

なお、ここで撮像画像とは、ディスプレイに表示される具体的な画像としての形態だけでなく、画像として生成される前の撮像データも含まれる。よって、撮像視野全体の全画素が露光された撮像データを、具体的な画像として形成することなく、露光によって取得した全画素のデータのうちから、一部領域ER1内の画素に対応した部分だけを読み出して、直接ROI画像とすることもできる。 Here, the captured image includes not only the form as a concrete image displayed on the display but also the captured data before being generated as an image. Therefore, without forming the imaging data in which all the pixels of the entire imaging field are exposed as a concrete image, only the portion corresponding to the pixels in the partial area ER1 is out of the data of all the pixels acquired by the exposure. Can also be read out and directly converted into a ROI image.

このように、第1撮像部11aは、撮像視野全体の全画素が露光された撮像画像内から、光切断線L1周辺を写したROI画像を抽出することで、撮像画像よりもデータ量が低減されたROI画像を生成する。第1撮像部11aは、測定対象物100が搬送されている間、撮像画像を所定間隔で取得してゆき、撮像画像が得られる度にROI画像を得、当該ROI画像を演算処理装置3に順次送出する。 In this way, the first imaging unit 11a extracts the ROI image that captures the periphery of the optical cut line L1 from the captured image in which all the pixels of the entire imaging field are exposed, so that the amount of data is reduced as compared with the captured image. Generate a ROI image. The first imaging unit 11a acquires captured images at predetermined intervals while the measurement object 100 is being conveyed, obtains an ROI image each time a captured image is obtained, and transfers the ROI image to the arithmetic processing device 3. Send in sequence.

ここで、高速で測定対象物100が搬送される場合や、撮像間隔を短くして高密度に形状測定を行う場合には、高フレームレートが要求されるが、第1撮像部11aで得られるフルフレーム(第1撮像部11aの撮像視野全体の撮像画像)では伝送データ量が大きく、単位時間当たりの伝送可能量の上限による制約から、十分なフレームレートが得られない。よって、第1撮像部11aにおいて光切断線L1の視野外れを防止するためにフルフレームにして視野を広くするという対処方法は好ましくない。 Here, when the object to be measured 100 is transported at high speed or when the shape is measured at high density by shortening the imaging interval, a high frame rate is required, but it can be obtained by the first imaging unit 11a. In the full frame (the image captured by the entire image pickup field of the first image pickup unit 11a), the amount of transmission data is large, and a sufficient frame rate cannot be obtained due to the limitation of the upper limit of the transmittable amount per unit time. Therefore, it is not preferable to use a full frame in the first imaging unit 11a to widen the field of view in order to prevent the optical cut line L1 from deviating from the field of view.

そのため、フルフレームで対処するのではなく、第1撮像部11aの撮像視野全体の中から、光切断線L1が写った一部領域ER1のみを抽出し、画像伝送速度を高速化することが望ましい。しかしながら、光切断線L1が写った一部領域ER1を抽出するROI画像を小さくすればするほど、光切断線L1の視野外れの可能性が高くなる。 Therefore, it is desirable to increase the image transmission speed by extracting only a part of the region ER1 in which the optical cut line L1 is captured from the entire imaging field of view of the first imaging unit 11a, instead of dealing with the full frame. .. However, the smaller the ROI image that extracts the partial region ER1 in which the optical cut line L1 is captured, the higher the possibility that the optical cut line L1 is out of the field of view.

そこで、本発明による形状測定装置1では、ROI画像を生成する第1撮像部11aとは別に、ROI画像よりも広域な測定面100a上の領域を撮像する第2撮像部11bを設けるようにした。ここで、第1撮像部11aは、従来通り光切断線L1の曲がり具合から測定面100aの凹凸を測定するためのROI画像を生成するものである。一方、第2撮像部11bは、測定面100a上で変動する光切断線L1の位置(以下、光切断線位置と称する)を測定するために、当該測定面100aを撮像するものである。 Therefore, in the shape measuring device 1 according to the present invention, in addition to the first imaging unit 11a that generates the ROI image, a second imaging unit 11b that images a region on the measurement surface 100a that is wider than the ROI image is provided. .. Here, the first imaging unit 11a generates an ROI image for measuring the unevenness of the measurement surface 100a from the bending condition of the optical cutting line L1 as in the conventional case. On the other hand, the second imaging unit 11b images the measurement surface 100a in order to measure the position of the optical cut line L1 (hereinafter, referred to as the optical cut line position) that fluctuates on the measurement surface 100a.

第2撮像部11bは、ROI画像の撮像領域を含み、かつ、ROI画像の撮像領域よりも広域な測定面100aの領域を撮像した広域撮像画像を取得する。これにより、第2撮像部11bは、ROI画像内から光切断線L1が外れた際にも、測定面100aの光切断線L1を撮像した広域撮像画像を取得し得る。そのため、第2撮像部11bは、測定対象物100のサイズ変動や、測定対象物100の斜行により、光切断線位置が変動しても、測定面100a上の光切断線L1を撮像できる視野が設定されている。 The second imaging unit 11b acquires a wide-area captured image that includes an imaging region of the ROI image and captures a region of the measurement surface 100a that is wider than the imaging region of the ROI image. As a result, the second imaging unit 11b can acquire a wide-area image taken by capturing the optical cutting line L1 on the measurement surface 100a even when the optical cutting line L1 is removed from the ROI image. Therefore, the second imaging unit 11b can image the optical cut line L1 on the measurement surface 100a even if the position of the optical cut line changes due to the size change of the measurement object 100 or the skew of the measurement object 100. Is set.

第2撮像部11bは、測定対象物100が搬送されている間、広域撮像画像を所定間隔で取得してゆき、これを演算処理装置3に順次送出する。ここで、広域撮像画像は、少なくとも第1撮像部11aで取得される撮像画像よりも低解像度または低画質でなり、撮像画像よりもデータ量が低減されている。なお、好ましくは、広域撮像画像のデータ量がROI画像と同等のデータ量となるように、低解像度または低画質の広域撮像画像とすることが望ましい。これにより、第2撮像部11bから演算処理装置3へのデータ転送速度を高速化し得、演算処理装置3は、ROI画像の取得タイミングと同等の取得タイミングで広域撮像画像を取得することも可能である。 The second image pickup unit 11b acquires wide-area captured images at predetermined intervals while the measurement object 100 is being conveyed, and sequentially sends them to the arithmetic processing unit 3. Here, the wide-area captured image has at least a lower resolution or a lower image quality than the captured image acquired by the first imaging unit 11a, and the amount of data is smaller than that of the captured image. It is preferable to use a wide-area image with low resolution or low image quality so that the amount of data in the wide-area image is the same as that of the ROI image. As a result, the data transfer speed from the second image pickup unit 11b to the arithmetic processing unit 3 can be increased, and the arithmetic processing unit 3 can acquire a wide-area captured image at an acquisition timing equivalent to the acquisition timing of the ROI image. be.

また第2撮像部11bは、単に低解像度または低画質にするのではなく、予め想定されるサイズ変動や斜行が発生する時間間隔を超えない程度にフレームレートを低下させて撮像を行ってもよい。 Further, the second image pickup unit 11b does not simply reduce the resolution or image quality, but may perform imaging by lowering the frame rate to the extent that the time interval in which the size fluctuation or skew occurs in advance is not exceeded. good.

本発明による形状測定装置1では、第2撮像部11bで得られた広域撮像画像内の光切断線位置を演算処理装置3で測定し、この光切断線位置に基づいて、第1撮像部11aで撮像画像から抽出するROI画像の抽出位置を調整する。これにより、形状測定装置1では、ROI画像による高速撮影を可能としつつ、ROI画像からの光切断線L1の視野外れを防止できる。 In the shape measuring device 1 according to the present invention, the position of the optical cut line in the wide area captured image obtained by the second image pickup unit 11b is measured by the arithmetic processing device 3, and the first image pickup unit 11a is based on the optical cut line position. Adjust the extraction position of the ROI image to be extracted from the captured image with. As a result, the shape measuring device 1 can prevent the optical cut line L1 from being out of the field of view from the ROI image while enabling high-speed imaging with the ROI image.

この場合、演算処理装置3は、第1撮像部11aからROI画像を受け取る第1画像取得部14aと、第2撮像部11bから広域撮像画像を受け取る第2画像取得部14bとを有する。第1画像取得部14aは、第1撮像部11aから逐次入力されるROI画像を、撮像視野制御部15および形状測定部17に送出する。 In this case, the arithmetic processing unit 3 has a first image acquisition unit 14a that receives an ROI image from the first image pickup unit 11a, and a second image acquisition unit 14b that receives a wide area captured image from the second image pickup unit 11b. The first image acquisition unit 14a sends the ROI image sequentially input from the first image pickup unit 11a to the image pickup field control unit 15 and the shape measurement unit 17.

形状測定部17は、ROI画像内に存在する光切断線L1の曲がり具合に基づいて測定対象物100の測定面100aの凹凸形状を算出する。測定面100aが凹凸のない平坦面である場合には、ROI画像に直線状の光切断線L1が現れる。一方、例えば測定面100aに凸形状がある場合、ROI画像には、測定面100aの凸形状によって生じた曲線部が光切断線L1に現れる。 The shape measuring unit 17 calculates the uneven shape of the measurement surface 100a of the measurement object 100 based on the bending condition of the optical cutting line L1 existing in the ROI image. When the measurement surface 100a is a flat surface without unevenness, a linear optical cut line L1 appears in the ROI image. On the other hand, for example, when the measurement surface 100a has a convex shape, a curved portion generated by the convex shape of the measurement surface 100a appears on the optical cut line L1 in the ROI image.

なお、形状測定部17による測定面100aの凹凸形状を算出する算出処理は、国際公開第2016/171265号と同じであるため、ここではその説明は省略するが、例えば、国際公開第2016/171265号に示すように、形状測定部17は、ROI画像の縦方向の各位置において、最大輝度となる水平方向の位置を特定し、光切断線L1の曲線部を求め、測定面100aの凹凸形状を算出する。 Since the calculation process for calculating the uneven shape of the measurement surface 100a by the shape measuring unit 17 is the same as that of International Publication No. 2016/171265, the description thereof is omitted here, but for example, International Publication No. 2016/171265. As shown in No. 17, the shape measuring unit 17 specifies the horizontal position where the maximum brightness is obtained at each position in the vertical direction of the ROI image, obtains the curved portion of the optical cutting line L1, and obtains the uneven shape of the measurement surface 100a. Is calculated.

形状測定部17は、算出した測定面100aの形状を形状画像として記憶部4や表示装置5に送出する。記憶部4は、形状測定部17から受け取った形状画像を記憶し、表示装置5は、形状測定部17から受け取った形状画像を表示する。表示装置5は、測定面100aの形状画像を表示することで、オペレータに対して測定面100aの凹凸の有無を通知できる。記憶部4は、測定面100aの形状画像を記憶することで、例えば、測定面100aにおいて凹凸形状のある位置を特定できる。 The shape measuring unit 17 sends the calculated shape of the measurement surface 100a as a shape image to the storage unit 4 and the display device 5. The storage unit 4 stores the shape image received from the shape measurement unit 17, and the display device 5 displays the shape image received from the shape measurement unit 17. The display device 5 can notify the operator of the presence or absence of unevenness of the measurement surface 100a by displaying the shape image of the measurement surface 100a. By storing the shape image of the measurement surface 100a, the storage unit 4 can specify, for example, a position having an uneven shape on the measurement surface 100a.

一方、第2画像取得部14bは、第2撮像部11bから逐次入力される広域撮像画像を、光切断線位置測定部16に送出する。光切断線位置測定部16は、広域撮像画像内の光切断線位置を測定する。ここで、図2Aは、第2撮像部11bにより測定面100aを撮像した広域撮像画像Aの一例である。 On the other hand, the second image acquisition unit 14b sends the wide area image captured image sequentially input from the second image pickup unit 11b to the optical cut line position measurement unit 16. The optical cut line position measuring unit 16 measures the optical cut line position in the wide area captured image. Here, FIG. 2A is an example of a wide-area image capture image A in which the measurement surface 100a is imaged by the second image pickup unit 11b.

広域撮像画像Aにおいて、測定対象物100の搬送方向をX方向とし、X方向に対して直交する光切断線L1の延伸方向をY方向とする。広域撮像画像Aは、例えば、N×M画素の画像I(x,y)であるとする(0≦x≦N-1、0≦y≦M-1)。ここで、xは各画素のX方向位置であり、yは各画素のY方向位置を示す。 In the wide area captured image A, the transport direction of the measurement object 100 is the X direction, and the extension direction of the optical cutting line L1 orthogonal to the X direction is the Y direction. The wide area captured image A is, for example, an image I (x, y) of N × M pixels (0 ≦ x ≦ N-1, 0 ≦ y ≦ M-1). Here, x is the position in the X direction of each pixel, and y indicates the position in the Y direction of each pixel.

光切断線位置測定部16は、下記式(1)に基づき、図2Aの広域撮像画像Aの水平方向(X方向)の各位置において、光切断線L1の延伸方向(縦方向、Y方向)に並ぶ各画素の輝度値の和(累積輝度値)をとり、図2Bに示すような水平方向における各位置での累積輝度値を表した波形(以下、プロジェクション波形と称する)を算出する。

Figure 0007028086000001
Based on the following formula (1), the optical cutting line position measuring unit 16 extends the optical cutting line L1 in the horizontal direction (X direction) of the wide area captured image A in FIG. 2A (longitudinal direction, Y direction). The sum of the brightness values of the pixels arranged in the line (cumulative brightness value) is taken, and a waveform representing the cumulative brightness value at each position in the horizontal direction as shown in FIG. 2B (hereinafter referred to as a projection waveform) is calculated.
Figure 0007028086000001

ここで、光切断線位置は、光切断線L1が照射されていない部分とは異なる輝度値で広域撮像画像Aに現れる。従って、プロジェクション波形においても、光切断線L1が照射されている位置の累積輝度値は、光切断線L1が照射されていない他の位置の累積輝度値と比較して、著しく高くなり、ピークとして現れる。例えば、図2Aに示すように、光切断線L1は縦方向に延びているため、図2Bに示すように、プロジェクション波形には光切断線L1の位置がピークとなって現れる。光切断線位置測定部16は、算出したプロジェクション波形において累積輝度値が著しく高くなっている位置を、光切断線位置として測定する。 Here, the position of the optical cut line appears in the wide area captured image A with a luminance value different from that of the portion not irradiated with the optical cut line L1. Therefore, even in the projection waveform, the cumulative luminance value at the position where the optical cutting line L1 is irradiated is significantly higher than the cumulative luminance value at other positions where the optical cutting line L1 is not irradiated, and as a peak. appear. For example, as shown in FIG. 2A, since the optical cutting line L1 extends in the vertical direction, the position of the optical cutting line L1 appears as a peak in the projection waveform as shown in FIG. 2B. The optical cutting line position measuring unit 16 measures the position where the cumulative luminance value is remarkably high in the calculated projection waveform as the optical cutting line position.

なお、光切断線位置は、例えば、下記式(2)に示すようにプロジェクション波形のピーク位置としてもよく、また、下記式(3)に示すように、プロジェクション波形の重心位置としてもよい。なお、広域撮像画像から光切断線L1の大まかな位置を特定できれば良いため、広域撮像画像について低解像化および低画質化し得る。

Figure 0007028086000002
Figure 0007028086000003
The optical cut line position may be, for example, the peak position of the projection waveform as shown in the following equation (2), or the center of gravity position of the projection waveform as shown in the following equation (3). Since it is sufficient that the rough position of the optical cut line L1 can be specified from the wide-area captured image, the wide-area captured image can be reduced in resolution and image quality.
Figure 0007028086000002
Figure 0007028086000003

なお、図2Aに示す広域撮像画像Aには、直線部Laと、測定面100aの凸形状によって生じた曲線部Lbとでなる光切断線L1が現れている。図1に示すように、光切断線位置測定部16は、測定した光切断線位置を光切断線位置データとして、撮像視野制御部15およびフォーカス調整部18に送出する。なお、この光切断線位置データは、図2Aに示すように、広域撮像画像Aの水平方向(X方向)での光切断線L1の位置を示すX座標データである。 In the wide area captured image A shown in FIG. 2A, an optical cut line L1 formed by a straight line portion La and a curved portion Lb generated by the convex shape of the measurement surface 100a appears. As shown in FIG. 1, the optical cutting line position measuring unit 16 sends the measured optical cutting line position as optical cutting line position data to the imaging field control unit 15 and the focus adjusting unit 18. As shown in FIG. 2A, the optical cut line position data is X coordinate data indicating the position of the optical cut line L1 in the horizontal direction (X direction) of the wide area captured image A.

ここで、記憶部4には、第1撮像部11aで取得される撮像画像内での位置と、第2撮像部11bで取得される広域撮像画像内での位置との位置関係を示した対応位置情報が予め記憶されている。撮像視野制御部15は、光切断線位置データを受け取ると、対応位置情報を参照し、光切断線位置測定部16で広域撮像画像から測定された光切断線位置を、第1撮像部11aで取得される撮像画像内での位置に変換する。 Here, the storage unit 4 shows the positional relationship between the position in the captured image acquired by the first image pickup unit 11a and the position in the wide area captured image acquired by the second image pickup unit 11b. The position information is stored in advance. When the imaging field control unit 15 receives the optical cutting line position data, the imaging field control unit 15 refers to the corresponding position information, and the optical cutting line position measured from the wide area captured image by the optical cutting line position measuring unit 16 is determined by the first imaging unit 11a. Convert to the position in the acquired captured image.

このようにして、撮像視野制御部15は、広域撮像画像内での位置で示された光切断線位置を、撮像画像内での位置として示し、これを抽出位置データとして第1画像取得部14aを介して第1撮像部11aに送出する。これにより、第1撮像部11aは、撮像画像内から抽出するROI画像の抽出位置を、抽出位置データに基づいて変更し、撮像画像内からROI画像を抽出する。なお、この実施形態の場合、第1撮像部11aは、例えば、抽出位置データの位置を中点とした所定領域を、ROI画像として撮像画像から抽出することで、光切断線L1が含まれたROI画像を生成する。 In this way, the image pickup field control unit 15 indicates the optical cut line position indicated by the position in the wide area image capture image as the position in the image capture image, and uses this as the extraction position data as the first image acquisition unit 14a. Is sent to the first image pickup unit 11a via the above. As a result, the first imaging unit 11a changes the extraction position of the ROI image to be extracted from the captured image based on the extraction position data, and extracts the ROI image from the captured image. In the case of this embodiment, the first image pickup unit 11a includes, for example, an optical cut line L1 by extracting a predetermined region having the position of the extraction position data as a midpoint from the captured image as an ROI image. Generate a ROI image.

かくして、測定対象物100のサイズ変動や、測定対象物100の斜行により、撮像画像内で光切断線位置の変動が生じ、現在のROI画像内から光切断線L1が外れる恐れがあっても、第1撮像部11aは、第2撮像部11bで取得した広域撮像画像内での光切断線位置に基づいて、撮像画像内での光切断線L1の位置ずれに追従してROI画像の抽出位置を変更できる。このように、第1撮像部11aは、ROI画像内に光切断線L1が常に写るように撮像画像からの抽出位置を変えてゆき、ROI画像内からの光切断線L1の視野外れを防止し、光切断線L1が常に含まれるROI画像を取得し続けることができる。 Thus, even if there is a possibility that the optical cut line L1 may deviate from the current ROI image due to the change in the position of the optical cut line in the captured image due to the size change of the measurement object 100 or the skew of the measurement object 100. The first imaging unit 11a extracts the ROI image by following the positional deviation of the optical cutting line L1 in the captured image based on the optical cutting line position in the wide area captured image acquired by the second imaging unit 11b. You can change the position. In this way, the first imaging unit 11a changes the extraction position from the captured image so that the optical cutting line L1 is always captured in the ROI image, and prevents the optical cutting line L1 from being out of the field of view from the ROI image. , The ROI image always including the optical cut line L1 can be continuously acquired.

かかる構成に加えて、記憶部4には、第2撮像部11bで取得される広域撮像画像内での光切断線位置と、広域撮像画像内での光切断線位置にある光切断線L1に対して第1撮像部11aがフォーカスを合わせることができるフォーカス位置との対応関係を示した合焦対応情報が予め記憶されている。フォーカス調整部18は、光切断線位置データを受け取ると、合焦対応情報を参照し、光切断線位置測定部16で広域撮像画像から測定された光切断線位置から、第1撮像部11aで撮影されている撮像画像内の光切断線L1にフォーカスが合うフォーカス位置を特定する。 In addition to this configuration, the storage unit 4 has the optical cut line position in the wide area captured image acquired by the second image pickup unit 11b and the optical cut line L1 at the optical cut line position in the wide area captured image. On the other hand, focusing correspondence information indicating the correspondence relationship with the focus position where the first image pickup unit 11a can focus is stored in advance. When the focus adjusting unit 18 receives the optical cut line position data, the focus adjusting unit 18 refers to the focusing correspondence information, and from the optical cut line position measured from the wide area captured image by the optical cut line position measuring unit 16, the first imaging unit 11a The focus position in which the light cut line L1 in the captured image is in focus is specified.

フォーカス調整部18は、合焦対応情報を基に特定したフォーカス位置をフォーカス設定データとして撮像装置2のフォーカス調整用モータ12に送出する。フォーカス調整用モータ12は、フォーカス設定データを基に、第1撮像部11aのレンズを駆動制御し、当該レンズのフォーカス位置を調整する。これにより、第1撮像部11aは、撮像画像内の光切断線L1に対して常にフォーカスを合わせることができ、撮像画像内から抽出されるROI画像において光切断線L1を細く鮮明に写すことができる。 The focus adjustment unit 18 sends the focus position specified based on the focusing correspondence information to the focus adjustment motor 12 of the image pickup apparatus 2 as focus setting data. The focus adjustment motor 12 drives and controls the lens of the first image pickup unit 11a based on the focus setting data, and adjusts the focus position of the lens. As a result, the first image pickup unit 11a can always focus on the light cut line L1 in the captured image, and can capture the light cut line L1 finely and clearly in the ROI image extracted from the captured image. can.

第1撮像部11aは、撮像画像内で光切断線L1にフォーカスが合い、かつ光切断線L1が写ったROI画像を撮像画像内から抽出し、当該ROI画像を演算処理装置3に送出する。かくして、測定対象物100のサイズ変動や、測定対象物100の斜行により、撮像画像内で光切断線位置の変動が生じ、ROI画像内で光切断線L1に対するフォーカスが外れる恐れがあっても、第1撮像部11aでは、フォーカス設定データに基づいて、ROI画像内の光切断線L1に対して常にフォーカスを合わせることができる。よって、演算処理装置3では、形状測定部17において、ROI画像に基づき光切断線L1の曲がり具合を正確に求めることができ、光切断線位置が変動しても形状測定の精度を維持できる。 The first image pickup unit 11a extracts the ROI image in which the optical cut line L1 is in focus in the captured image and the optical cut line L1 is captured from the captured image, and sends the ROI image to the arithmetic processing apparatus 3. Thus, even if the size of the measurement object 100 fluctuates or the measurement object 100 is skewed, the position of the optical cut line fluctuates in the captured image, and the optical cut line L1 may be out of focus in the ROI image. The first image pickup unit 11a can always focus on the optical cut line L1 in the ROI image based on the focus setting data. Therefore, in the arithmetic processing unit 3, the shape measuring unit 17 can accurately determine the bending condition of the optical cutting line L1 based on the ROI image, and can maintain the accuracy of the shape measurement even if the position of the optical cutting line fluctuates.

<本発明の形状測定処理>
次に、形状測定装置1にて実行される、上述した形状測定処理について、図3に示すフローチャートを用いて説明する。図3に示すように、形状測定装置1は、開始ステップからステップSP1およびステップSP9に移る。ここで、図3におけるステップSP1~ステップSP8は、第1撮像部11aに関する処理を示し、ステップSP9~ステップSP14は、第2撮像部11bに関する処理である。
<Shape measurement process of the present invention>
Next, the above-mentioned shape measurement process executed by the shape measuring device 1 will be described with reference to the flowchart shown in FIG. As shown in FIG. 3, the shape measuring device 1 moves from the start step to step SP1 and step SP9. Here, steps SP1 to SP8 in FIG. 3 show processing related to the first imaging unit 11a, and steps SP9 to SP14 are processing related to the second imaging unit 11b.

ここでは、先ず始めに第2撮像部11bに関する処理について説明する。ステップSP9において、形状測定装置1は、形状測定処理が開始されると、第2撮像部11bの初期設定を行い、次のステップSP10に移る。ここで、第2撮像部11bは、初期設定として、例えば広域撮像画像内における光切断線L1の予測位置を設定する。また、測定対象物100のサイズ変動や、測定対象物100の斜行等により、光切断線位置が変動しても、測定面100a上の光切断線L1を撮像できる十分に広い視野を設定する。 Here, first, the processing related to the second imaging unit 11b will be described. In step SP9, when the shape measurement process is started, the shape measuring device 1 performs the initial setting of the second imaging unit 11b and moves to the next step SP10. Here, the second image pickup unit 11b sets, for example, the predicted position of the optical cut line L1 in the wide area captured image as an initial setting. Further, even if the position of the optical cut line fluctuates due to the size change of the measurement object 100, the skew of the measurement object 100, or the like, a sufficiently wide field of view is set so that the optical cut line L1 on the measurement surface 100a can be imaged. ..

ステップSP10において、測定対象物100が搬送ラインに沿って搬送されているときには、ステップSP11に移る。ステップSP11において、演算処理装置3は、測定面100aを撮像した広域撮像画像を第2撮像部11bから取得し、次のステップSP12に移る。ステップSP12において、演算処理装置3は、光切断線位置測定部16によって、広域撮像画像から光切断線位置を測定し、次のステップSP13に移る。 In step SP10, when the object to be measured 100 is transported along the transport line, the process proceeds to step SP11. In step SP11, the arithmetic processing unit 3 acquires a wide-area image captured by capturing the measurement surface 100a from the second image pickup unit 11b, and moves to the next step SP12. In step SP12, the arithmetic processing unit 3 measures the optical cutting line position from the wide area captured image by the optical cutting line position measuring unit 16, and moves to the next step SP13.

ステップSP13において、撮像視野制御部15は、光切断線位置測定部16により測定した光切断線位置を光切断線位置データとして受け取ると、対応位置情報を参照し、光切断線位置データに対応した抽出位置データを特定する。また、ステップSP13において、フォーカス調整部18は、光切断線位置測定部16により測定した光切断線位置を光切断線位置データとして受け取ると、フォーカス対応情報を参照し、光切断線位置データに対応したフォーカス設定データを特定する。 In step SP13, when the imaging field control unit 15 receives the optical cutting line position measured by the optical cutting line position measuring unit 16 as the optical cutting line position data, the imaging field control unit 15 refers to the corresponding position information and corresponds to the optical cutting line position data. Identify the extraction position data. Further, in step SP13, when the focus adjusting unit 18 receives the optical cutting line position measured by the optical cutting line position measuring unit 16 as the optical cutting line position data, the focus adjusting unit 18 refers to the focus correspondence information and corresponds to the optical cutting line position data. Identify the focus setting data that has been set.

次にステップSP14に移り、撮像視野制御部15は、特定した抽出位置データを第1撮像部11aに送出し、フォーカス調整部18は、特定したフォーカス設定データを第1撮像部11aに送出して、再び上述したステップSP10に移る。このように、ステップSP10において否定結果が得られるまで、すなわち、測定対象物100が搬送し終わるまで、ステップSP11~ステップSP14を繰り返す。 Next, in step SP14, the image pickup field control unit 15 sends the specified extraction position data to the first image pickup unit 11a, and the focus adjustment unit 18 sends the specified focus setting data to the first image pickup unit 11a. , The process again proceeds to step SP10 described above. In this way, steps SP11 to SP14 are repeated until a negative result is obtained in step SP10, that is, until the measurement object 100 is completely conveyed.

次に、第1撮像部11aに関する処理について説明する。ステップSP1において、形状測定装置1は、形状測定処理が開始されると、第1撮像部11aの初期設定を行い、次のステップSP2に移る。ここで、第1撮像部11aは、初期設定として、例えば撮像画像内における光切断線L1の予測位置に基づき、撮像画像内からROI画像を抽出する初期の抽出位置と、当該光切断線L1にフォーカスを合わせる初期のフォーカス位置と、を設定する。 Next, the process relating to the first image pickup unit 11a will be described. In step SP1, when the shape measurement process is started, the shape measuring device 1 performs the initial setting of the first imaging unit 11a and moves to the next step SP2. Here, as initial settings, the first imaging unit 11a sets the initial extraction position for extracting the ROI image from the captured image and the optical cutting line L1 based on the predicted position of the optical cutting line L1 in the captured image, for example. Set the initial focus position to focus on.

なお、初期設定として用いる、撮像画像内における光切断線L1の予測位置は、過去の操業データやプロセスコンピュータ(図示せず)からの上位情報等から予め決めておくこともできる。 The predicted position of the optical cut line L1 in the captured image used as the initial setting can be determined in advance from past operation data, higher-level information from the process computer (not shown), and the like.

ステップSP2において、測定対象物100が搬送ラインに沿って搬送されているときには、ステップSP3に移る。ステップSP3において、第1撮像部11aは、抽出位置データおよびフォーカス設定データを演算処理装置3から受け取ったか否かを判断する。ステップSP3において、肯定結果が得られると、このことは抽出位置データおよびフォーカス設定データを演算処理装置3から受け取っていないことを表しており、このとき、第1撮像部11aは次にステップSP6に移る。 In step SP2, when the object to be measured 100 is transported along the transport line, the process proceeds to step SP3. In step SP3, the first imaging unit 11a determines whether or not the extraction position data and the focus setting data have been received from the arithmetic processing unit 3. If an affirmative result is obtained in step SP3, this means that the extraction position data and the focus setting data have not been received from the arithmetic processing unit 3, and at this time, the first imaging unit 11a then goes to step SP6. Move.

これに対して、ステップSP3において肯定結果が得られると、このことは抽出位置データおよびフォーカス設定データを演算処理装置3から受け取ったこと、すなわち、第2撮像部11bで取得した広域撮像画像内の光切断線位置を基に、演算処理装置3で抽出位置データおよびフォーカス設定データが特定されたことを示しており、このとき、第1撮像部11aは次のステップSP4およびステップSP5に移る。 On the other hand, when an affirmative result is obtained in step SP3, this means that the extraction position data and the focus setting data are received from the arithmetic processing device 3, that is, in the wide area captured image acquired by the second imaging unit 11b. It is shown that the extraction position data and the focus setting data are specified by the arithmetic processing apparatus 3 based on the optical cut line position. At this time, the first image pickup unit 11a moves to the next steps SP4 and SP5.

ステップSP4において、第1撮像部11aは、演算処理装置3から受け取った抽出位置データを基に、撮像画像内からROI画像を抽出する抽出位置を設定し、次のステップSP6に移る。また、ステップSP5において、第1撮像部11aは、演算処理装置3から受け取ったフォーカス設定データを基にレンズを駆動制御し、ROI画像内の光切断線L1にフォーカスが合うようにフォーカスを設定し、次のステップSP6に移る。 In step SP4, the first imaging unit 11a sets the extraction position for extracting the ROI image from the captured image based on the extraction position data received from the arithmetic processing device 3, and moves to the next step SP6. Further, in step SP5, the first imaging unit 11a drives and controls the lens based on the focus setting data received from the arithmetic processing unit 3, and sets the focus so that the optical cut line L1 in the ROI image is in focus. , Move to the next step SP6.

ステップSP6において、第1撮像部11aは、測定対象物100の測定面100aを撮像し、測定面100a上に光切断線L1が写った撮像画像を内部に取得し、次のステップSP7に移る。ステップSP7において、第1撮像部11aは、ステップSP5で設定されたフォーカス位置を基にフォーカスを合わせ、かつ、ステップSP4で設定された抽出位置で撮像画像内からROI画像を抽出し、得られたROI画像を演算処理装置3に送出して、再びステップSP2に戻る。このように、ステップSP2において否定結果が得られるまで、すなわち、測定対象物100が搬送し終わるまで、ステップSP3~ステップSP7を繰り返す。 In step SP6, the first image pickup unit 11a takes an image of the measurement surface 100a of the measurement object 100, acquires an image in which the optical cut line L1 is captured on the measurement surface 100a, and moves to the next step SP7. In step SP7, the first imaging unit 11a focuses on the focus position set in step SP5, and extracts the ROI image from the captured image at the extraction position set in step SP4 to obtain the ROI image. The ROI image is sent to the arithmetic processing apparatus 3, and the process returns to step SP2 again. In this way, steps SP3 to SP7 are repeated until a negative result is obtained in step SP2, that is, until the measurement object 100 is completely conveyed.

測定対象物100が搬送し終わり、ステップSP2において否定結果が得られると、演算処理装置3は次のステップSP8に移る。ステップSP8において、演算処理装置3は、第1撮像部11aから取得した各ROI画像から測定面100aの表面形状を算出し、当該表面形状を記憶部4や表示装置5に送出し、上述した形状算出処理を終了する。 When the measurement object 100 has been conveyed and a negative result is obtained in step SP2, the arithmetic processing unit 3 moves to the next step SP8. In step SP8, the arithmetic processing unit 3 calculates the surface shape of the measurement surface 100a from each ROI image acquired from the first image pickup unit 11a, sends the surface shape to the storage unit 4 and the display device 5, and has the above-mentioned shape. End the calculation process.

<作用および効果>
以上の構成において、第1撮像部11aは、測定面100a上の光切断線L1を含む所定領域を第1撮像部11aで撮像し、得られた撮像画像の一部領域ER1をROI画像として抽出する。第1撮像部11aは、撮像画像を取得する度に当該撮像画像からROI画像を抽出し、当該ROI画像のみを演算処理装置3に送出する。
<Action and effect>
In the above configuration, the first image pickup unit 11a takes an image of a predetermined region including the optical cut line L1 on the measurement surface 100a by the first image pickup unit 11a, and extracts a part of the obtained image pickup image ER1 as an ROI image. do. The first image pickup unit 11a extracts the ROI image from the captured image each time the captured image is acquired, and sends only the ROI image to the arithmetic processing apparatus 3.

このように、形状測定装置1では、データ量を低減したROI画像を第1撮像部11aで生成し、これを演算処理装置3へ送出することで、第1撮像部11aから演算処理装置3へのデータ転送速度を高速化できる。従って、演算処理装置3は、測定対象物100が高速に搬送されている場合や、撮像間隔を短くして高密度に形状測定を行う場合であっても、必要充分なフレームレートが得られ、高速に搬送される測定対象物100の表面形状をROI画像に基づいて算出できる。 As described above, in the shape measuring device 1, the ROI image with a reduced amount of data is generated by the first imaging unit 11a, and the ROI image is transmitted to the arithmetic processing apparatus 3 from the first imaging unit 11a to the arithmetic processing apparatus 3. Data transfer speed can be increased. Therefore, the arithmetic processing device 3 can obtain a necessary and sufficient frame rate even when the measurement object 100 is conveyed at high speed or when the shape measurement is performed at high density by shortening the imaging interval. The surface shape of the measurement object 100 transported at high speed can be calculated based on the ROI image.

これ加えて、形状測定装置1では、少なくともROI画像の撮像領域を含み、かつ、ROI画像の撮像領域よりも広域な測定面100aの領域ER2を撮像した広域撮像画像を、第2撮像部11bにより取得する。これにより、演算処理装置3では、第1撮像部11aでROI画像内から光切断線L1が外れても、第2撮像部11bで取得した広域撮像画像内の光切断線位置に基づいて、第1撮像部11aでの撮像画像内のROI画像の抽出位置を変更させることができる。 In addition, in the shape measuring device 1, the second image pickup unit 11b captures a wide area image captured by the area ER2 of the measurement surface 100a, which includes at least the image pickup area of the ROI image and is wider than the image pickup area of the ROI image. get. As a result, in the arithmetic processing apparatus 3, even if the optical cut line L1 is removed from the ROI image in the first image pickup unit 11a, the second image cut line is based on the position of the optical cut line in the wide area captured image acquired by the second image pickup unit 11b. 1 The extraction position of the ROI image in the captured image by the imaging unit 11a can be changed.

例えば、測定対象物100のサイズ変動や、測定対象物100の斜行が生じ、現在のROI画像内から光切断線L1が大きく外れる場合でも、ROI画像よりも撮像領域が広い広域撮像画像から光切断線L1の位置変化を測定でき、光切断線位置の変化に追従してROI画像の抽出位置も変更できる。これにより、演算処理装置3は、撮像領域が極めて狭いROI画像を用いても、光切断線L1を含むROI画像を常に取得できる。従って、形状測定装置1では、ROI画像からの光切断線L1の視野外れを防止でき、かくして、光切断線L1を基に測定対象物100の表面形状を、従来よりも確実に測定できる。 For example, even if the size of the measurement object 100 fluctuates or the measurement object 100 is skewed and the optical cut line L1 deviates significantly from the current ROI image, light is emitted from a wide area captured image having a wider imaging area than the ROI image. The position change of the cutting line L1 can be measured, and the extraction position of the ROI image can be changed according to the change of the optical cutting line position. As a result, the arithmetic processing unit 3 can always acquire the ROI image including the optical cut line L1 even if the ROI image having an extremely narrow imaging region is used. Therefore, the shape measuring device 1 can prevent the optical cut line L1 from being out of the field of view from the ROI image, and thus can measure the surface shape of the object to be measured 100 more reliably than before based on the optical cut line L1.

また、演算処理装置3では、第1撮像部11aで光切断線L1に対するフォーカスが外れても、第2撮像部11bで取得した広域撮像画像内の光切断線位置に基づいて、第1撮像部11aのフォーカス位置を変更させることができる。 Further, in the arithmetic processing unit 3, even if the first image pickup unit 11a loses focus on the light cut line L1, the first image pickup unit 3 is based on the position of the light cut line in the wide area captured image acquired by the second image pickup unit 11b. The focus position of 11a can be changed.

例えば、測定対象物100のサイズ変動や、測定対象物100の斜行が生じ、現在のROI画像内にある光切断線L1の位置が変更し、光切断線L1からフォーカスが大きく外れる場合でも、光切断線位置の変化に追従してフォーカス位置を変更できる。これにより、演算処理装置3は、撮像領域が極めて狭いROI画像を用いることで、光切断線L1に対するフォーカスの位置ズレが生じ易くても、光切断線L1にフォーカスが合ったROI画像を常に取得できる。従って、形状測定装置1では、第1撮像部11aでの光切断線L1に対するフォーカス外れを防止でき、かくして、光切断線L1を基に測定対象物100の表面形状を、従来よりも正確に測定できる。 For example, even if the size of the measurement object 100 fluctuates or the measurement object 100 is skewed, the position of the optical cutting line L1 in the current ROI image is changed, and the focus is greatly deviated from the optical cutting line L1. The focus position can be changed according to the change in the position of the optical cut line. As a result, the arithmetic processing unit 3 always acquires the ROI image in focus on the optical cutting line L1 even if the focus position shifts with respect to the optical cutting line L1 is likely to occur by using the ROI image having an extremely narrow imaging region. can. Therefore, the shape measuring device 1 can prevent the first imaging unit 11a from being out of focus with respect to the optical cutting line L1, and thus, the surface shape of the object to be measured 100 is measured more accurately than before based on the optical cutting line L1. can.

<他の実施形態>
なお、上述した実施形態においては、演算処理装置3によって抽出位置データおよびフォーカス設定データの両方を特定し、撮像画像からのROI画像の抽出位置と、撮像画像内の光切断線L1に対するフォーカス位置と、を同時に調整する形状測定装置1について説明したが、本発明はこれに限らず、演算処理装置3によって抽出位置データおよびフォーカス設定データのうちいずれか一方のみを特定するような形状測定装置であってもよい。
<Other embodiments>
In the above-described embodiment, both the extraction position data and the focus setting data are specified by the arithmetic processing device 3, the extraction position of the ROI image from the captured image, and the focus position with respect to the optical cut line L1 in the captured image. Although the shape measuring device 1 for simultaneously adjusting the above is described, the present invention is not limited to this, and the shape measuring device is such that the arithmetic processing device 3 specifies only one of the extraction position data and the focus setting data. You may.

また、上述した実施形態においては、現在のROI画像内に光切断線L1が写っているか否かを判断せずに、第1撮像部11aは、演算処理装置3より受け取った抽出位置データおよびフォーカス設定データを基にROI画像の抽出位置やフォーカス位置を変えるようにしたが、本発明はこれに限らない。例えば、現在のROI画像内に光切断線L1が写っているか否かを判断し、ROI画像内に光切断線L1が写っていない場合にのみ、抽出位置データおよびフォーカス設定データを基にROI画像の抽出位置やフォーカス位置を変えるようにしてもよい。 Further, in the above-described embodiment, the first imaging unit 11a receives the extraction position data and the focus from the arithmetic processing device 3 without determining whether or not the optical cut line L1 is reflected in the current ROI image. The extraction position and the focus position of the ROI image are changed based on the setting data, but the present invention is not limited to this. For example, it is determined whether or not the optical cut line L1 is shown in the current ROI image, and only when the optical cut line L1 is not shown in the ROI image, the ROI image is based on the extraction position data and the focus setting data. You may change the extraction position and the focus position of.

ここで、図3との対応部分に同一符号を付して示す図4は、他の実施形態による形状測定処理のフローチャートを示したものである。図4に示す他の実施形態による形状測定処理は、ステップSP12とステップSP13との間に、ステップSP15を設けた点で、上述した図3の形状測定処理と相違している。以下、その相違点に着目して説明する。 Here, FIG. 4, which is shown by assigning the same reference numerals to the portions corresponding to those in FIG. 3, shows a flowchart of the shape measurement process according to another embodiment. The shape measurement process according to the other embodiment shown in FIG. 4 is different from the shape measurement process of FIG. 3 described above in that step SP15 is provided between step SP12 and step SP13. Hereinafter, the differences will be described.

この場合、ステップSP12において、光切断線位置測定部16は、第2撮像部11bから取得した広域撮像画像から光切断線位置を算出すると、次のステップSP15に移る。ステップSP15において、光切断線位置測定部16は、ステップSP12で新たに光切断線位置を測定する前の光切断線位置と、ステップSP12で新たに測定した光切断線位置とが一定値以上変化しているか否かを判断する。 In this case, in step SP12, when the optical cut line position measuring unit 16 calculates the optical cut line position from the wide area image captured image acquired from the second image pickup unit 11b, the process proceeds to the next step SP15. In step SP15, the optical cutting line position measuring unit 16 changes between the optical cutting line position before newly measuring the optical cutting line position in step SP12 and the optical cutting line position newly measured in step SP12 by a certain value or more. Determine if you are doing it.

この場合、一定値としては、ステップSP12で光切断線位置を測定する前の光切断線位置から、ステップSP12で新たに測定した光切断線位置に変化すると、第1撮像部11aにおいて、光切断線位置がROI画像内から外れたり、或いは、光切断線L1に対するフォーカスが外れる変位量とする。 In this case, as a constant value, when the optical cut line position before measuring the optical cut line position in step SP12 changes to the light cut line position newly measured in step SP12, the first image pickup unit 11a cuts light. The displacement amount is such that the line position is out of the ROI image or the light cut line L1 is out of focus.

ここで、ステップSP15において肯定結果が得られると、このことは、ステップSP12で光切断線位置を測定する前の光切断線位置と、ステップSP12で新たに測定した光切断線位置とが一定値以上変化していること、すなわち、光切断線位置がROI画像内から外れたり、或いは、光切断線L1に対するフォーカスが外れるほど、光切断線位置が変化したことを表しており、このとき、光切断線位置測定部16は、次のステップSP13に移る。 Here, when an affirmative result is obtained in step SP15, this means that the optical cutting line position before measuring the optical cutting line position in step SP12 and the optical cutting line position newly measured in step SP12 are constant values. This indicates that the above changes, that is, the optical cut line position has changed so that the optical cut line position is out of the ROI image or the focus on the optical cut line L1 is out of focus. The cutting line position measuring unit 16 moves to the next step SP13.

ステップSP13において、演算処理装置3は、第2撮像部11bで取得した広域撮像画像内の光切断線位置を基に、抽出位置データおよびフォーカス設定データを特定し、上述した図3と同様にステップSP13以降を実行する。 In step SP13, the arithmetic processing unit 3 specifies the extraction position data and the focus setting data based on the optical cut line position in the wide area captured image acquired by the second imaging unit 11b, and steps in the same manner as in FIG. 3 described above. Execute SP13 or later.

一方、ステップSP15において否定結果が得られると、このことは、ステップSP12で光切断線位置を測定する前の光切断線位置と、ステップSP12で新たに測定した光切断線位置とが一定値以上変化していないこと、すなわち、光切断線位置の変位量が小さく、光切断線位置がROI画像内に留まり、光切断線L1に対するフォーカスも合っていることを表しており、このとき、光切断線位置測定部16は、再びステップSP10に戻る。 On the other hand, if a negative result is obtained in step SP15, this means that the optical cut line position before measuring the optical cut line position in step SP12 and the optical cut line position newly measured in step SP12 are equal to or more than a certain value. It means that there is no change, that is, the displacement amount of the optical cutting line position is small, the optical cutting line position stays in the ROI image, and the optical cutting line L1 is also in focus. At this time, the optical cutting line is in focus. The line position measuring unit 16 returns to step SP10 again.

この場合、演算処理装置3は、新たに抽出位置データおよびフォーカス設定データを特定せず、これら抽出位置データおよびフォーカス設定データを第1撮像部11aに送出しない。第1撮像部11aは、ステップSP3において否定結果が得られるため、撮像画像から抽出するROI画像の抽出位置や、フォーカス位置を変えずにそのまま維持する。 In this case, the arithmetic processing unit 3 does not newly specify the extraction position data and the focus setting data, and does not send the extraction position data and the focus setting data to the first imaging unit 11a. Since the negative result is obtained in step SP3, the first imaging unit 11a maintains the extraction position and the focus position of the ROI image extracted from the captured image as they are.

なお、ここでは、ステップSP12で光切断線位置を測定する前の光切断線位置と、ステップSP12で新たに測定した光切断線位置とが一定値以上変化したときに、抽出位置データおよびフォーカス設定データを演算処理装置3から第1撮像部11aに送出するようにしたが、本発明はこれに限らない。 Here, when the optical cutting line position before measuring the optical cutting line position in step SP12 and the optical cutting line position newly measured in step SP12 change by a certain value or more, the extraction position data and the focus setting are set. The data is sent from the arithmetic processing apparatus 3 to the first imaging unit 11a, but the present invention is not limited to this.

例えば、光切断線位置の変位を演算処理装置3で判断せずに、第1撮像部11aで判断するようにしてもよい。この場合、第1撮像部11aは、第2撮像部11bで広域撮像画像を取得する度に生成される抽出位置データおよびフォーカス設定データを、その都度受け取り、光切断線位置が一定値以上変化したか否かを判断する。 For example, the displacement of the optical cutting line position may be determined by the first imaging unit 11a instead of being determined by the arithmetic processing unit 3. In this case, the first image pickup unit 11a receives the extraction position data and the focus setting data generated each time the second image pickup unit 11b acquires a wide area image pickup image, and the optical cut line position changes by a certain value or more. Judge whether or not.

第1撮像部11aは、光切断線位置が一定値以上変化し、光切断線位置がROI画像内から外れたり、或いは、光切断線L1に対するフォーカスが外れると判断したときに、演算処理装置3から受け取った抽出位置データおよびフォーカス設定データを基に、ROI画像の抽出位置を変え、フォーカス位置を変える。このような実施形態であっても、上述した実施形態と同様の効果を奏することができる。 When the first image pickup unit 11a determines that the optical cut line position changes by a certain value or more and the optical cut line position is out of the ROI image or the optical cut line L1 is out of focus, the arithmetic processing apparatus 3 The extraction position of the ROI image is changed and the focus position is changed based on the extraction position data and the focus setting data received from. Even in such an embodiment, the same effect as that of the above-described embodiment can be obtained.

また、上述した実施形態においては、図2Bに示すようなプロジェクション波形を基に、広域撮像画像内の光切断線位置を測定するようにしたが、本発明はこれに限らない。光切断線位置測定部16は、例えば、広域撮像画像を2値化し、広域撮像画像内の明暗を基に光切断線位置を測定してもよい。 Further, in the above-described embodiment, the position of the optical cut line in the wide-area captured image is measured based on the projection waveform as shown in FIG. 2B, but the present invention is not limited to this. The optical cut line position measuring unit 16 may, for example, binarize the wide area captured image and measure the optical cut line position based on the brightness in the wide area captured image.

また、上述した実施形態においては、測定対象物100を搬送し、撮像装置2および線状光源6を固定するようにしたが、本発明はこれに限らず、例えば測定対象物100を静止させた状態とし、撮像装置2および線状光源6を移動させるようにしてもよい。 Further, in the above-described embodiment, the measurement object 100 is conveyed and the image pickup apparatus 2 and the linear light source 6 are fixed, but the present invention is not limited to this, and for example, the measurement object 100 is stationary. The state may be set and the image pickup apparatus 2 and the linear light source 6 may be moved.

なお、上述した実施形態において、光切断線抽出画像(ROI画像)や、広域撮像画像については、上述した撮像画像と同様に、ディスプレイに表示される具体的な画像としての形態だけでなく、画像として生成される前のデータも当然に含まれるものである。 In the above-described embodiment, the optical cut line extraction image (ROI image) and the wide-area captured image are not only in the form of a specific image displayed on the display, but also in the same manner as the above-mentioned captured image. Of course, the data before it is generated as is also included.

1 形状測定装置
3 演算処理装置
6 線状光源
11a 第1撮像部
11b 第2撮像部
15 撮像視野制御部
18 フォーカス調整部
1 Shape measuring device 3 Arithmetic processing device 6 Linear light source 11a First imaging unit 11b Second imaging unit 15 Imaging field control unit 18 Focus adjustment unit

Claims (8)

測定対象物の測定面の形状を測定する形状測定装置において、
前記測定面に線状光を照射する線状光源と、
前記線状光による前記測定面上の光切断線を含む所定領域を撮像し、取得した撮像画像の一部領域を光切断線抽出画像として抽出する第1撮像部と、
少なくとも前記光切断線抽出画像の撮像領域を含み、かつ、前記光切断線抽出画像の撮像領域よりも広域な前記測定面の領域を撮像した広域撮像画像を取得する第2撮像部と、
前記光切断線抽出画像に基づいて前記測定対象物の表面形状を算出する演算処理装置と、
を有し、
前記演算処理装置は、
前記広域撮像画像から光切断線位置を測定する光切断線位置測定部と、
前記第1撮像部で前記光切断線抽出画像内から前記光切断線が外れる場合、前記撮像画像から前記光切断線抽出画像を抽出する抽出位置を、前記光切断線位置に基づいて、前記光切断線抽出画像内に前記光切断線が含まれる抽出位置に変更させる撮像視野制御部と、
を備える、形状測定装置。
In a shape measuring device that measures the shape of the measurement surface of an object to be measured,
A linear light source that irradiates the measurement surface with linear light,
A first image pickup unit that captures a predetermined region including a light cut line on the measurement surface by the linear light and extracts a part of the acquired image as an optical cut line extraction image.
2.
An arithmetic processing unit that calculates the surface shape of the object to be measured based on the optical cut line extraction image, and
Have,
The arithmetic processing unit is
An optical cutting line position measuring unit that measures the optical cutting line position from the wide-area captured image, and a light cutting line position measuring unit.
When the optical cut line deviates from the light cut line extracted image in the first imaging unit, the extraction position for extracting the optical cut line extracted image from the captured image is set based on the light cut line position. An image pickup field control unit that changes the extraction position to include the optical cut line in the cut line extraction image, and
A shape measuring device.
測定対象物の測定面の形状を測定する形状測定装置において、
前記測定面に線状光を照射する線状光源と、
前記線状光による前記測定面上の光切断線を含む所定領域を撮像し、取得した撮像画像の一部領域を光切断線抽出画像として抽出する第1撮像部と、
少なくとも前記光切断線抽出画像の撮像領域を含み、かつ、前記光切断線抽出画像の撮像領域よりも広域な前記測定面の領域を撮像した広域撮像画像を取得する第2撮像部と、
前記光切断線抽出画像に基づいて前記測定対象物の表面形状を算出する演算処理装置と、
を有し、
前記演算処理装置は、
前記広域撮像画像から光切断線位置を測定する光切断線位置測定部と、
前記第1撮像部で前記光切断線に対するフォーカスが外れる場合、前記第1撮像部のフォーカス位置を、前記光切断線位置に基づいて、前記光切断線にフォーカスが合うフォーカス位置に変更させるフォーカス調整部と、
を備える、形状測定装置。
In a shape measuring device that measures the shape of the measurement surface of an object to be measured,
A linear light source that irradiates the measurement surface with linear light,
A first image pickup unit that captures a predetermined region including a light cut line on the measurement surface by the linear light and extracts a part of the acquired image as an optical cut line extraction image.
2.
An arithmetic processing unit that calculates the surface shape of the object to be measured based on the optical cut line extraction image, and
Have,
The arithmetic processing unit is
An optical cutting line position measuring unit that measures the optical cutting line position from the wide-area captured image, and a light cutting line position measuring unit.
Focus adjustment that changes the focus position of the first image pickup unit to a focus position that focuses on the light cut line based on the light cut line position when the first image pickup unit loses focus on the light cut line. Department and
A shape measuring device.
測定対象物の測定面の形状を測定する形状測定装置において、
前記測定面に線状光を照射する線状光源と、
前記線状光による前記測定面上の光切断線を含む所定領域を撮像し、取得した撮像画像の一部領域を光切断線抽出画像として抽出する第1撮像部と、
少なくとも前記光切断線抽出画像の撮像領域を含み、かつ、前記光切断線抽出画像の撮像領域よりも広域な前記測定面の領域を撮像した広域撮像画像を取得する第2撮像部と、
前記光切断線抽出画像に基づいて前記測定対象物の表面形状を算出する演算処理装置と、
を有し、
前記演算処理装置は、
前記広域撮像画像から光切断線位置を測定する光切断線位置測定部と、
前記第1撮像部で前記光切断線抽出画像内から前記光切断線が外れる場合、前記撮像画像から前記光切断線抽出画像を抽出する抽出位置を、前記光切断線位置に基づいて、前記光切断線抽出画像内に前記光切断線が含まれる抽出位置に変更させる撮像視野制御部と、
前記第1撮像部で前記光切断線に対するフォーカスが外れる場合、前記第1撮像部のフォーカス位置を、前記光切断線位置に基づいて、前記光切断線にフォーカスが合うフォーカス位置に変更させるフォーカス調整部と、
を備える、形状測定装置。
In a shape measuring device that measures the shape of the measurement surface of an object to be measured,
A linear light source that irradiates the measurement surface with linear light,
A first image pickup unit that captures a predetermined region including a light cut line on the measurement surface by the linear light and extracts a part of the acquired image as an optical cut line extraction image.
2.
An arithmetic processing unit that calculates the surface shape of the object to be measured based on the optical cut line extraction image, and
Have,
The arithmetic processing unit is
An optical cutting line position measuring unit that measures the optical cutting line position from the wide-area captured image, and a light cutting line position measuring unit.
When the optical cut line deviates from the light cut line extracted image in the first imaging unit, the extraction position for extracting the optical cut line extracted image from the captured image is set based on the light cut line position. An image pickup field control unit that changes the extraction position to include the optical cut line in the cut line extraction image, and
Focus adjustment that changes the focus position of the first image pickup unit to a focus position that focuses on the light cut line based on the light cut line position when the first image pickup unit loses focus on the light cut line. Department and
A shape measuring device.
前記演算処理装置は、前記光切断線抽出画像内に含まれた前記光切断線の変位量に基づき、前記測定対象物の表面形状を算出する、請求項1~3のいずれか1項に記載の形状測定装置。 The calculation processing apparatus according to any one of claims 1 to 3, wherein the arithmetic processing apparatus calculates the surface shape of the object to be measured based on the displacement amount of the optical cutting line included in the optical cutting line extracted image. Shape measuring device. 測定対象物の測定面の形状を測定する形状測定方法において、
前記測定面に線状光を照射する照射ステップと、
第1撮像部によって、前記線状光による前記測定面上の光切断線を含む所定領域を撮像し、取得した撮像画像の一部領域を光切断線抽出画像として抽出する第1撮像ステップと、
少なくとも前記光切断線抽出画像の撮像領域を含み、かつ、前記光切断線抽出画像の撮像領域よりも広域な前記測定面の領域を撮像した広域撮像画像を、第2撮像部により取得する第2撮像ステップと、
前記光切断線抽出画像に基づいて前記測定対象物の表面形状を算出する演算処理ステップと、
を有し、
前記演算処理ステップは、
前記広域撮像画像から光切断線位置を測定する光切断線位置測定ステップと、
前記第1撮像部で前記光切断線抽出画像内から前記光切断線が外れる場合、前記撮像画像から前記光切断線抽出画像を抽出する抽出位置を、前記光切断線位置に基づいて、前記光切断線抽出画像内に前記光切断線が含まれる抽出位置に変更させる撮像視野制御ステップと、
を備える、形状測定方法。
In the shape measurement method for measuring the shape of the measurement surface of the object to be measured,
An irradiation step of irradiating the measurement surface with linear light,
A first imaging step in which a predetermined region including a light cut line on the measurement surface by the linear light is imaged by the first image pickup unit, and a part of the acquired image is extracted as an optical cut line extraction image.
A second image pickup unit acquires a wide area image captured by the second imaging unit, which includes at least an image pickup area of the optical cut line extracted image and an image of a region of the measurement surface which is wider than the image pickup area of the optical cut line extracted image. Imaging step and
An arithmetic processing step for calculating the surface shape of the measurement object based on the optical cut line extraction image, and
Have,
The arithmetic processing step is
The optical cut line position measurement step for measuring the optical cut line position from the wide area captured image, and
When the optical cut line deviates from the light cut line extracted image in the first imaging unit, the extraction position for extracting the optical cut line extracted image from the captured image is set based on the light cut line position. The imaging field control step for changing the extraction position in which the optical cut line is included in the cut line extraction image, and
A shape measuring method.
測定対象物の測定面の形状を測定する形状測定方法において、
前記測定面に線状光を照射する照射ステップと、
第1撮像部によって、前記線状光による前記測定面上の光切断線を含む所定領域を撮像し、取得した撮像画像の一部領域を光切断線抽出画像として抽出する第1撮像ステップと、
少なくとも前記光切断線抽出画像の撮像領域を含み、かつ、前記光切断線抽出画像の撮像領域よりも広域な前記測定面の領域を撮像した広域撮像画像を、第2撮像部により取得する第2撮像ステップと、
前記光切断線抽出画像に基づいて前記測定対象物の表面形状を算出する演算処理ステップと、
を有し、
前記演算処理ステップは、
前記広域撮像画像から光切断線位置を測定する光切断線位置測定ステップと、
前記第1撮像部で前記光切断線に対するフォーカスが外れる場合、前記第1撮像部のフォーカス位置を、前記光切断線位置に基づいて、前記光切断線にフォーカスが合うフォーカス位置に変更させるフォーカス調整ステップと、
を備える、形状測定方法。
In the shape measurement method for measuring the shape of the measurement surface of the object to be measured,
An irradiation step of irradiating the measurement surface with linear light,
A first imaging step in which a predetermined region including a light cut line on the measurement surface by the linear light is imaged by the first image pickup unit, and a part of the acquired image is extracted as an optical cut line extraction image.
A second image pickup unit acquires a wide area image captured by the second imaging unit, which includes at least an image pickup area of the optical cut line extracted image and an image of a region of the measurement surface which is wider than the image pickup area of the optical cut line extracted image. Imaging step and
An arithmetic processing step for calculating the surface shape of the measurement object based on the optical cut line extraction image, and
Have,
The arithmetic processing step is
The optical cut line position measurement step for measuring the optical cut line position from the wide area captured image, and
Focus adjustment that changes the focus position of the first image pickup unit to a focus position that focuses on the light cut line based on the light cut line position when the first image pickup unit loses focus on the light cut line. Steps and
A shape measuring method.
測定対象物の測定面の形状を測定する形状測定方法において、
前記測定面に線状光を照射する照射ステップと、
第1撮像部によって、前記線状光による前記測定面上の光切断線を含む所定領域を撮像し、取得した撮像画像の一部領域を光切断線抽出画像として抽出する第1撮像ステップと、
少なくとも前記光切断線抽出画像の撮像領域を含み、かつ、前記光切断線抽出画像の撮像領域よりも広域な前記測定面の領域を撮像した広域撮像画像を、第2撮像部により取得する第2撮像ステップと、
前記光切断線抽出画像に基づいて前記測定対象物の表面形状を算出する演算処理ステップと、
を有し、
前記演算処理ステップは、
前記広域撮像画像から光切断線位置を測定する光切断線位置測定ステップと、
前記第1撮像部で前記光切断線抽出画像内から前記光切断線が外れる場合、前記撮像画像から前記光切断線抽出画像を抽出する抽出位置を、前記光切断線位置に基づいて、前記光切断線抽出画像内に前記光切断線が含まれる抽出位置に変更させる撮像視野制御ステップと、
前記第1撮像部で前記光切断線に対するフォーカスが外れる場合、前記第1撮像部のフォーカス位置を、前記光切断線位置に基づいて、前記光切断線にフォーカスが合うフォーカス位置に変更させるフォーカス調整ステップと、
を備える、形状測定方法。
In the shape measurement method for measuring the shape of the measurement surface of the object to be measured,
An irradiation step of irradiating the measurement surface with linear light,
A first imaging step in which a predetermined region including a light cut line on the measurement surface by the linear light is imaged by the first image pickup unit, and a part of the acquired image is extracted as an optical cut line extraction image.
A second image pickup unit acquires a wide area image captured by the second imaging unit, which includes at least an image pickup area of the optical cut line extracted image and an image of a region of the measurement surface which is wider than the image pickup area of the optical cut line extracted image. Imaging step and
An arithmetic processing step for calculating the surface shape of the measurement object based on the optical cut line extraction image, and
Have,
The arithmetic processing step is
The optical cut line position measurement step for measuring the optical cut line position from the wide area captured image, and
When the optical cut line deviates from the light cut line extracted image in the first imaging unit, the extraction position for extracting the optical cut line extracted image from the captured image is set based on the light cut line position. The imaging field control step for changing the extraction position in which the optical cut line is included in the cut line extraction image, and
Focus adjustment that changes the focus position of the first image pickup unit to a focus position that focuses on the light cut line based on the light cut line position when the first image pickup unit loses focus on the light cut line. Steps and
A shape measuring method.
前記演算処理ステップは、前記光切断線抽出画像内に含まれた前記光切断線の変位量に基づき、前記測定対象物の表面形状を算出する、請求項5~7のいずれか1項に記載の形状測定方法。 The calculation processing step is described in any one of claims 5 to 7, wherein the surface shape of the object to be measured is calculated based on the displacement amount of the optical cutting line included in the optical cutting line extracted image. Shape measurement method.
JP2018128757A 2018-07-06 2018-07-06 Shape measuring device and shape measuring method Active JP7028086B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018128757A JP7028086B2 (en) 2018-07-06 2018-07-06 Shape measuring device and shape measuring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018128757A JP7028086B2 (en) 2018-07-06 2018-07-06 Shape measuring device and shape measuring method

Publications (2)

Publication Number Publication Date
JP2020008390A JP2020008390A (en) 2020-01-16
JP7028086B2 true JP7028086B2 (en) 2022-03-02

Family

ID=69151388

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018128757A Active JP7028086B2 (en) 2018-07-06 2018-07-06 Shape measuring device and shape measuring method

Country Status (1)

Country Link
JP (1) JP7028086B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020121784A1 (en) * 2018-12-11 2020-06-18 本田技研工業株式会社 Workpiece inspection device and workpiece inspection method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001304827A (en) 2000-04-27 2001-10-31 Aisin Seiki Co Ltd Sectional shape measuring apparatus and sectional shape measuring method
US20140146142A1 (en) 2011-07-08 2014-05-29 François Duret Three-dimensional measuring device used in the dental field
JP2016517513A (en) 2013-03-15 2016-06-16 ファロ テクノロジーズ インコーポレーテッド Diagnose and eliminate multipath interference in 3D scanners with directed probing
WO2016171265A1 (en) 2015-04-22 2016-10-27 新日鐵住金株式会社 Shape-measuring device and method for measuring shape
US20180150062A1 (en) 2016-11-25 2018-05-31 Glowforge Inc. Controlled deceleration of moveable components in a computer numerically controlled machine

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2841961B2 (en) * 1991-08-22 1998-12-24 オムロン株式会社 Visual recognition device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001304827A (en) 2000-04-27 2001-10-31 Aisin Seiki Co Ltd Sectional shape measuring apparatus and sectional shape measuring method
US20140146142A1 (en) 2011-07-08 2014-05-29 François Duret Three-dimensional measuring device used in the dental field
JP2016517513A (en) 2013-03-15 2016-06-16 ファロ テクノロジーズ インコーポレーテッド Diagnose and eliminate multipath interference in 3D scanners with directed probing
WO2016171265A1 (en) 2015-04-22 2016-10-27 新日鐵住金株式会社 Shape-measuring device and method for measuring shape
US20180150062A1 (en) 2016-11-25 2018-05-31 Glowforge Inc. Controlled deceleration of moveable components in a computer numerically controlled machine

Also Published As

Publication number Publication date
JP2020008390A (en) 2020-01-16

Similar Documents

Publication Publication Date Title
KR101968439B1 (en) Shape measuring device and shape measuring method
JP2009031150A (en) Three-dimensional shape measuring device, three-dimensional shape measurement method, three-dimensional shape measurement program, and record medium
WO1994027756A1 (en) Angle of bend detector and straight line extractor used therefor, and angle of bend detecting position setting apparatus
JP2010190886A (en) Pantograph height measuring device and calibration method therefor
JP6451839B2 (en) Shape inspection method, shape inspection apparatus, and program
JP2009250844A (en) Three-dimensional shape measurement method and three-dimensional shape measurement apparatus
JP7028086B2 (en) Shape measuring device and shape measuring method
JP2016065863A (en) Steel sheet shape measurement device and its method, as well as steel sheet manufacturing apparatus using the same and its method
JP3817640B1 (en) 3D shape measurement system
JP2012194108A (en) Measurement object surface abnormality identification device
JP5303911B2 (en) Method for adjusting imaging control in automatic inspection apparatus using X-ray and automatic inspection apparatus using X-ray
JP6781963B1 (en) Measuring device and measuring method
JP2009079915A (en) Method and device for measuring micro-dimension
JP4966096B2 (en) Optical cutting three-dimensional measuring device
KR20120098386A (en) Three-dimensional shape measuring device and three-dimensional shape measuring method
JP6225719B2 (en) Straightness measuring device, straightness measuring method, and program
KR100916615B1 (en) System for measuring the wrinkle on web in R2R process
JP2015210396A (en) Aligment device, microscope system, alignment method and alignment program
JP2005223563A (en) Line sensor image reader
JP4760072B2 (en) X-ray inspection apparatus and X-ray inspection method
JP6868935B1 (en) Measuring device and measuring method
JP7304077B2 (en) Inspection result display device and inspection result display method
WO2024057962A1 (en) Inspection method, inspection device, and program
JP6113541B6 (en) Shape measuring apparatus and shape measuring method
JP6113541B2 (en) Shape measuring apparatus and shape measuring method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210303

TRDD Decision of grant or rejection written
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220106

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20220118

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220131

R151 Written notification of patent or utility model registration

Ref document number: 7028086

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151