JP6624563B2 - Dimension measurement method - Google Patents

Dimension measurement method Download PDF

Info

Publication number
JP6624563B2
JP6624563B2 JP2016032502A JP2016032502A JP6624563B2 JP 6624563 B2 JP6624563 B2 JP 6624563B2 JP 2016032502 A JP2016032502 A JP 2016032502A JP 2016032502 A JP2016032502 A JP 2016032502A JP 6624563 B2 JP6624563 B2 JP 6624563B2
Authority
JP
Japan
Prior art keywords
corner
marker
surface portion
image
measured
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
JP2016032502A
Other languages
Japanese (ja)
Other versions
JP2017150908A (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.)
Panasonic Intellectual Property Management Co Ltd
Original Assignee
Panasonic Intellectual Property Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Intellectual Property Management Co Ltd filed Critical Panasonic Intellectual Property Management Co Ltd
Priority to JP2016032502A priority Critical patent/JP6624563B2/en
Priority to CN201680076223.3A priority patent/CN108474647B/en
Priority to PCT/JP2016/005154 priority patent/WO2017110071A1/en
Priority to EP16877976.7A priority patent/EP3396310B1/en
Priority to US16/062,714 priority patent/US10748297B2/en
Publication of JP2017150908A publication Critical patent/JP2017150908A/en
Application granted granted Critical
Publication of JP6624563B2 publication Critical patent/JP6624563B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/02Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B21/00Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
    • G01B21/02Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring length, width, or thickness
    • G01B21/04Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring length, width, or thickness by measuring coordinates of points
    • G01B21/045Correction of measurements

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Description

本発明は、寸法測定方法に関する。   The present invention relates to a dimension measuring method.

従来、宅配物等の被測定物を収容する直方体の収容室と、収容室の上面の一頂点に固定される撮像部と、撮像部で撮像された被測定物の画像に対して画像処理を行う画像処理部と、を備えた寸法測定装置が知られている(例えば特許文献1参照)。   Conventionally, a rectangular parallelepiped accommodation room for accommodating an object to be measured such as a home delivery object, an imaging unit fixed to one vertex of an upper surface of the accommodation room, and image processing on the image of the object measured by the imaging unit. 2. Description of the Related Art A dimension measurement device including an image processing unit for performing the measurement is known (for example, see Patent Document 1).

特開2006−119792号公報JP 2006-119792 A

特許文献1に記載の寸法測定装置では、撮像部で撮像した画像に歪みが発生すると、精度良く被測定物のサイズを得ることが困難であった。   In the dimension measurement device described in Patent Literature 1, when distortion occurs in an image captured by the imaging unit, it is difficult to accurately obtain the size of the measured object.

上記従来の問題点に鑑みて発明された本発明の目的は、精度良く被測定物のサイズが得られる、寸法測定方法を提供することである。   SUMMARY OF THE INVENTION An object of the present invention, which has been invented in view of the above-mentioned conventional problems, is to provide a dimension measuring method capable of accurately obtaining the size of an object to be measured.

上記目的を達成するために、本発明に係る一態様の寸法測定方法は、以下のような構成を備える。   In order to achieve the above object, a dimension measuring method according to one embodiment of the present invention has the following configuration.

寸法測定装置は、被測定物を出し入れ自在に収容する収容室と、前記収容室に設けられ、前記収容室に収容される前記被測定物を撮像する撮像部と、を備える。前記寸法測定装置は、前記撮像部で撮像された画像の情報に基づいて画像処理を行ない前記被測定物のサイズを測定する画像処理部を備える。   The dimension measuring device includes a storage chamber that accommodates an object to be measured in a removable manner, and an imaging unit that is provided in the accommodation chamber and captures an image of the object to be measured that is accommodated in the accommodation chamber. The dimension measuring device includes an image processing unit that performs image processing based on information on an image captured by the imaging unit and measures the size of the device under test.

前記収容室は、前記被測定物が置かれる矩形状の下面部と、前記下面部から上方に延出される矩形状の第1側面部と、前記下面部から上方に延出され、前記第1側面部に隣接する矩形状の第2側面部と、を有する。前記収容室は、前記下面部および前記第1側面部で形成される第1入隅と、前記下面部および前記第2側面部で形成される第2入隅と、前記第1側面部および前記第2側面部で形成される第3入隅と、を有する。前記収容室は、前記第1入隅、前記第2入隅および前記第3入隅が交差した部分に形成され、前記被測定物を所定位置に配置する基準点となる基準隅部を有する。前記収容室は、前記第1側面部、前記第2側面部および前記下面部の辺の位置を表示するマーカーを有する。前記収容室は、前記マーカーとして、第1マーカーと、第2マーカーと、第3マーカーと、を有する。前記第1マーカーは、前記第1側面部において前記第3入隅に沿うライン及び前記第1入隅に平行なラインを有する矩形枠状をしている。前記第2マーカーは、前記第2側面部において前記第3入隅に沿うライン及び前記第2入隅に平行なラインを有する矩形枠状をしている。前記第3マーカーは、前記下面部において前記第1入隅に沿うライン及び前記第2入隅に平行なラインを有する矩形枠状をしている。
The storage chamber has a rectangular lower surface on which the object to be measured is placed, a rectangular first side surface extending upward from the lower surface, and an upper extending from the lower surface, and A second side portion having a rectangular shape adjacent to the side portion. The accommodation room is provided with a first corner formed by the lower surface and the first side surface, a second corner formed by the lower surface and the second side surface, And a third corner formed by the second side surface. The accommodation room has a reference corner formed at a portion where the first entry corner, the second entry corner, and the third entry corner intersect, and serves as a reference point for arranging the device under test at a predetermined position. The storage chamber has a marker that indicates a position of a side of the first side surface, the second side surface, and the lower surface. The accommodation room has a first marker, a second marker, and a third marker as the markers. The first marker has a rectangular frame shape having a line along the third corner and a line parallel to the first corner on the first side surface portion. The second marker has a rectangular frame shape having a line along the third corner and a line parallel to the second corner on the second side surface. The third marker has a rectangular frame shape having a line along the first corner and a line parallel to the second corner on the lower surface.

前記画像処理部は、前記収容室に前記被測定物が配置される前の状態で、前記撮像部で撮像した前記画像に対して二値化を行なうことで二値画像を作成し、前記二値画像内の前記マーカーを識別する。前記画像処理部は、前記マーカーから前記二値画像内の前記第1側面部、前記第2側面部および前記下面部の辺に対応するエッジを識別して、前記エッジの歪みを基に歪み補正用データを作成する。前記画像処理部は、前記収容室に前記被測定物が配置された状態で、前記撮像部で撮像した前記画像に対して二値化を行なうことで二値画像を作成する。前記画像処理部は、前記二値画像内で識別された前記被測定物のエッジの歪みを前記歪み補正用データを基に補正することで補正画像を取得する。前記画像処理部は、前記補正画像の前記第1側面部、前記第2側面部および前記下面部に対応する面内を走査することで前記被測定物のサイズを測定することを特徴とする。   The image processing unit creates a binary image by performing binarization on the image captured by the imaging unit in a state before the object to be measured is arranged in the storage room. Identify the marker in the value image. The image processing unit identifies edges corresponding to the sides of the first side surface, the second side surface, and the bottom surface in the binary image from the marker, and corrects distortion based on the distortion of the edge. Create data for use. The image processing unit creates a binary image by performing binarization on the image captured by the imaging unit in a state where the object to be measured is arranged in the accommodation room. The image processing unit acquires a corrected image by correcting distortion of an edge of the device under test identified in the binary image based on the distortion correction data. The image processing unit may measure a size of the device under test by scanning an area corresponding to the first side surface, the second side surface, and the lower surface of the corrected image.

本発明の寸法測定方法では、撮像部で撮像した画像の歪みを除去し易いので、精度良く被測定物のサイズを測定できる。   According to the dimension measuring method of the present invention, since the distortion of the image captured by the imaging unit can be easily removed, the size of the measured object can be accurately measured.

図1は寸法測定装置を示した斜視図である。FIG. 1 is a perspective view showing a dimension measuring device. 図2は撮像部と画像処理部とを示したブロック図である。FIG. 2 is a block diagram illustrating the imaging unit and the image processing unit. 図3は本発明の一実施形態に係る寸法測定方法の補正モードのフローチャートである。FIG. 3 is a flowchart of a correction mode of the dimension measuring method according to one embodiment of the present invention. 図4は撮像部で撮像し二値化を行なった二値画像を示した説明図である。FIG. 4 is an explanatory diagram showing a binary image captured by the imaging unit and binarized. 図5は補正モードで補正した二値画像を示した説明図である。FIG. 5 is an explanatory diagram showing a binary image corrected in the correction mode. 図6Aは収容室に被測定物を配置した状態を撮像部で撮像した測定用画像を示した説明図である。図6Bは収容室に被測定物を配置した状態の二値画像を示した説明図である。FIG. 6A is an explanatory diagram illustrating a measurement image obtained by capturing an image of a state where an object to be measured is disposed in a storage room by an imaging unit. FIG. 6B is an explanatory diagram showing a binary image in a state where the object to be measured is arranged in the accommodation room. 図7は本発明の一実施形態に係る寸法測定方法のサイズ測定モードのフローチャートである。FIG. 7 is a flowchart of the size measuring mode of the dimension measuring method according to one embodiment of the present invention. 図8Aは図6Bの二値画像の第1側面部の側面図である。図8Bは図6Bの二値画像の下面部の平面図である。図8Cは図6Bの二値画像の下面部の平面図である。FIG. 8A is a side view of a first side portion of the binary image of FIG. 6B. FIG. 8B is a plan view of the lower surface of the binary image of FIG. 6B. FIG. 8C is a plan view of the lower surface of the binary image of FIG. 6B. 図9は本発明の一実施形態に係る寸法測定方法の補正モードの他例を示したフローチャートである。FIG. 9 is a flowchart showing another example of the correction mode of the dimension measuring method according to one embodiment of the present invention. 図10はエッジA3を平行移動した仮想線CをエッジA6に重ね合わせた状態の説明図である。FIG. 10 is an explanatory diagram of a state where the virtual line C obtained by translating the edge A3 is superimposed on the edge A6. 図11Aは寸法測定装置のマーカーの他例を示した斜視図である。図11Bは寸法測定装置のマーカーの他例を示した斜視図である。図11Cは寸法測定装置のマーカーの他例を示した斜視図である。FIG. 11A is a perspective view showing another example of the marker of the dimension measuring device. FIG. 11B is a perspective view showing another example of the marker of the dimension measuring device. FIG. 11C is a perspective view showing another example of the marker of the dimension measuring device.

<実施形態>
以下に示す本発明の一実施形態は、特に、収容室内にマーカーを設けた寸法測定方法に関する。
<Embodiment>
One embodiment of the present invention described below particularly relates to a dimension measuring method in which a marker is provided in an accommodation room.

(構成の説明)
以下、添付した図1〜図8に基づき本実施形態の寸法測定方法について説明する。
(Description of configuration)
Hereinafter, the dimension measuring method according to the present embodiment will be described with reference to FIGS.

寸法測定装置1は、宅配物等の被測定物50のサイズを測定する。ここで、被測定物50のサイズとは、被測定物50の縦、横および高さの寸法となっている。被測定物50の形状は、立方体または直方体となっている。   The dimension measuring device 1 measures the size of a measured object 50 such as a home delivery item. Here, the size of the DUT 50 is a dimension of the length, width, and height of the DUT 50. The shape of the device under test 50 is a cube or a rectangular parallelepiped.

寸法測定装置1は、図1に示すように、収容室11を備える。   As shown in FIG. 1, the dimension measuring device 1 includes a storage chamber 11.

収容室11は、寸法測定装置1の外郭を構成する外郭体111と、外郭体111の内側に形成される内部空間112と、を有する。外郭体111の形状は、直方体である。外郭体111は、下壁部20、側壁部21および上壁部25を有する。ここで、外郭体111の側壁部21には、被測定物50を内部空間112に出し入れさせるための開口である出入口261が形成される。   The accommodation room 11 has an outer shell 111 that forms the outer shell of the dimension measuring device 1, and an inner space 112 that is formed inside the outer shell 111. The shape of the outer shell 111 is a rectangular parallelepiped. The outer body 111 has a lower wall portion 20, a side wall portion 21, and an upper wall portion 25. Here, an entrance 261 is formed in the side wall 21 of the outer body 111, which is an opening through which the device under test 50 is inserted into and removed from the internal space 112.

本実施形態の寸法測定装置1では、出入口261が設けられる側を前方F、その反対側を後方Bとする。そして、ユーザーが寸法測定装置1の出入口261に向かって立ったときを基準として、右方R、左方Lを定義する。ここで、被測定物50の縦の寸法は、被測定物50の前後方向の寸法とする。被測定物50の横の寸法は、被測定物50の左右方向の寸法とする。被測定物50の高さの寸法は、被測定物50の上下方向の寸法とする。   In the dimension measuring device 1 of the present embodiment, the side where the entrance 261 is provided is defined as a front F, and the opposite side is defined as a rear B. Then, the right R and the left L are defined based on the time when the user stands toward the entrance 261 of the dimension measuring device 1. Here, the vertical dimension of the DUT 50 is the front-back dimension of the DUT 50. The horizontal dimension of the device under test 50 is the horizontal dimension of the device under test 50. The dimension of the height of the DUT 50 is the vertical dimension of the DUT 50.

下壁部20は、その形状が下方から視て矩形状に形成される。下壁部20の内部空間112側(上側)の面は、下面部201である。下面部201には、被測定物50が置かれる。   The lower wall portion 20 is formed in a rectangular shape when viewed from below. The surface on the inner space 112 side (upper side) of the lower wall portion 20 is the lower surface portion 201. The device under test 50 is placed on the lower surface 201.

側壁部21は、右壁部22、左壁部23および後壁部24を有する。右壁部22は下壁部20の右側端部から上方に延出される。左壁部23は下壁部20の左側端部から上方に延出される。後壁部24は下壁部20の後側端部から上方に延出される。   The side wall 21 has a right wall 22, a left wall 23, and a rear wall 24. The right wall 22 extends upward from the right end of the lower wall 20. The left wall 23 extends upward from the left end of the lower wall 20. The rear wall 24 extends upward from the rear end of the lower wall 20.

右壁部22は、右方から視て矩形状に形成される。右壁部22において、その内部空間112側(左側)の面を右面部221とする。左壁部23は、左方から視て矩形状に形成される。左壁部23において、その内部空間112側(右側)の面を左面部231とする。後壁部24は、後方から視て矩形状に形成される。後壁部24において、その内部空間112側(前側)の面を後面部241とする。   The right wall portion 22 is formed in a rectangular shape when viewed from the right. In the right wall portion 22, a surface on the side of the internal space 112 (left side) is referred to as a right surface portion 221. The left wall portion 23 is formed in a rectangular shape when viewed from the left. In the left wall portion 23, a surface on the side of the internal space 112 (right side) is referred to as a left surface portion 231. The rear wall portion 24 is formed in a rectangular shape when viewed from behind. In the rear wall portion 24, a surface on the side of the internal space 112 (front side) is referred to as a rear surface portion 241.

上壁部25は、右壁部22の上縁部、左壁部23の上縁部および後壁部24の上縁部に接続される。上壁部25は、上方から視て矩形状に形成される。上壁部25において、その内部空間112側(下側)の面を上面部251とする。   The upper wall 25 is connected to the upper edge of the right wall 22, the upper edge of the left wall 23, and the upper edge of the rear wall 24. The upper wall portion 25 is formed in a rectangular shape when viewed from above. In the upper wall portion 25, the surface on the inner space 112 side (lower side) is referred to as an upper surface portion 251.

外郭体111は、前方Fに開口した直方体状であり、その前方Fへの開口を出入口261とする。外郭体111には、出入口261を開閉する扉が設けられる。扉は、右壁部22の前側端部に取り付けられ、右壁部22の前側端部を軸262として回転する。扉は、閉じた状態において、前方から視て矩形状に形成される。また、扉は、閉じた状態において、外郭体111の前壁部26を構成する。扉において、その内部空間112側(後側)の面を前面部263とする。   The outer shell 111 has a rectangular parallelepiped shape opened to the front F, and the opening to the front F is defined as an entrance 261. The outer body 111 is provided with a door that opens and closes the entrance 261. The door is attached to the front end of the right wall 22 and rotates about the front end of the right wall 22 as a shaft 262. The door, when closed, is formed in a rectangular shape when viewed from the front. In addition, the door forms the front wall 26 of the outer body 111 in the closed state. In the door, the surface on the inner space 112 side (rear side) is referred to as a front surface portion 263.

収容室11の内部空間112は、下面部201、右面部221、左面部231、後面部241、上面部251および前面部263で囲まれて形成される。内部空間112は、直方体状に形成される。以下の記載において、後面部241を第1側面部242と記載し、左面部231を第2側面部232と記載する。   The internal space 112 of the accommodation room 11 is formed by being surrounded by the lower surface portion 201, the right surface portion 221, the left surface portion 231, the rear surface portion 241, the upper surface portion 251 and the front surface portion 263. The internal space 112 is formed in a rectangular parallelepiped shape. In the following description, the rear surface portion 241 is described as a first side surface portion 242, and the left surface portion 231 is described as a second side surface portion 232.

外郭体111は、下面部201と第1側面部242とが交差した部分に形成される第1入隅12を有する。外郭体111は、下面部201と第2側面部232とが交差した部分に形成される第2入隅13を有する。外郭体111は、第1側面部242と第2側面部232とが交差した部分に形成される第3入隅14を有する。外郭体111において、第1入隅12、第2入隅13および第3入隅14が交差した部分を基準隅部15とする。   The outer body 111 has a first insertion corner 12 formed at a portion where the lower surface portion 201 and the first side surface portion 242 intersect. The outer body 111 has a second insertion corner 13 formed at a portion where the lower surface portion 201 and the second side surface portion 232 intersect. The outer body 111 has a third insertion corner 14 formed at a portion where the first side surface portion 242 and the second side surface portion 232 intersect. In the outer shell 111, a portion where the first corner 12, the second corner 13, and the third corner 14 intersect is referred to as a reference corner 15.

収容室11では、被測定物50を所定位置に配置するための基準となる基準点が基準隅部15に設定される。   In the accommodation room 11, a reference point serving as a reference for arranging the device under test 50 at a predetermined position is set in the reference corner 15.

収容室11では、基準隅部15に合わせて置かれた被測定物50は、下面部201、第1側面部242および第2側面部232に接触することで、縦位置、横位置および高さ位置の位置決めが行われる。この位置決めされた被測定物50の位置が、被測定物50の所定位置となる。   In the accommodation room 11, the DUT 50 placed in accordance with the reference corner 15 contacts the lower surface portion 201, the first side surface portion 242, and the second side surface portion 232, and thereby the vertical position, the horizontal position, and the height. Positioning is performed. The position of the measured object 50 becomes a predetermined position of the measured object 50.

収容室11の内面には、図1に示すように、マーカー16が設けられる。マーカー16は、第1側面部242、第2側面部232および下面部201に設けられる。第1側面部242に設けられるマーカー16を第1マーカー161とし、第2側面部232に設けられるマーカー16を第2マーカー162とし、下面部201に設けられるマーカー16を第3マーカー163とする。   As shown in FIG. 1, a marker 16 is provided on the inner surface of the accommodation room 11. The marker 16 is provided on the first side 242, the second side 232, and the lower surface 201. The marker 16 provided on the first side surface 242 is referred to as a first marker 161, the marker 16 provided on the second side surface 232 is referred to as a second marker 162, and the marker 16 provided on the lower surface 201 is referred to as a third marker 163.

マーカー16は、矩形枠状となっている。第1側面部242において、第1マーカー161は第3入隅14に沿うラインが引かれ、その上端部および下端部のそれぞれから第1入隅12に平行なラインが引かれ、それぞれのラインの右端部を繋ぐラインが引かれる。   The marker 16 has a rectangular frame shape. In the first side surface portion 242, a line is drawn along the third corner 14 of the first marker 161, and a line parallel to the first corner 12 is drawn from each of the upper end and the lower end thereof. A line connecting the right edge is drawn.

第2側面部232において、第2マーカー162は第3入隅14に沿うラインが引かれ、その上端部および下端部のそれぞれから第2入隅13に平行なラインが引かれ、それぞれのラインの前端部を繋ぐラインが引かれる。   In the second side surface portion 232, a line is drawn along the third corner 14 of the second marker 162, and a line parallel to the second corner 13 is drawn from each of the upper end and the lower end thereof. A line connecting the front ends is drawn.

下面部201において、第3マーカー163は第1入隅12に沿うラインが引かれ、その左端部および右端部のそれぞれから第2入隅13に平行なラインが引かれ、それぞれのラインの前端部を繋ぐラインが引かれる。   In the lower surface portion 201, a line is drawn along the first corner 12 of the third marker 163, and a line parallel to the second corner 13 is drawn from each of the left end and the right end thereof, and the front end of each line is drawn. The line connecting is drawn.

本実施形態の第1マーカー161、第2マーカー162および第3マーカー163は、同じ色調であるが、それぞれの色調は異なった色調である方が好ましい。ここで、色調とは、色の明度と彩度などの色の調子のことを意味する。   Although the first marker 161, the second marker 162, and the third marker 163 of the present embodiment have the same color tone, it is preferable that each color tone is different. Here, the color tone means a color tone such as lightness and saturation of the color.

寸法測定装置1には、図1に示すように、収容室11に撮像部3が設置される。撮像部3は、収容室11の内部を全体的に撮像できる位置に配置される。本実施形態の寸法測定装置1では、撮像部3が基準隅部15の対角となる上面部251、右面部221および前面部263で形成される隅部に設置される。   As shown in FIG. 1, the imaging unit 3 is installed in the accommodation room 11 of the dimension measuring device 1. The imaging unit 3 is arranged at a position where the entire inside of the accommodation room 11 can be imaged. In the dimension measuring device 1 of the present embodiment, the imaging unit 3 is installed at a corner formed by the upper surface 251, the right surface 221, and the front surface 263, which is a diagonal of the reference corner 15.

撮像部3は、カメラ本体31と、照明具32と、を有する。   The imaging unit 3 includes a camera body 31 and a lighting device 32.

カメラ本体31には、収容室11内の全体を撮像可能なカメラが用いられる。特に、カメラ本体31には、被測定物50、下面部201、第1側面部242および第2側面部232のそれぞれの全体を撮像可能なカメラが用いられる。カメラ本体31には、CCD(Charge-Coupled Device)カメラが用いられる。カメラ本体31では、収容室11内の全体を撮影し易いように広角レンズが用いられる。   As the camera body 31, a camera capable of capturing an image of the entire inside of the accommodation room 11 is used. In particular, a camera capable of imaging the entirety of the DUT 50, the lower surface 201, the first side surface 242, and the second side surface 232 is used for the camera body 31. As the camera body 31, a CCD (Charge-Coupled Device) camera is used. In the camera body 31, a wide-angle lens is used so that the entire inside of the accommodation room 11 can be easily photographed.

照明具32は、カメラ本体31の制御部と電気的に接続される。照明具32は、収容室11内を明るくする。特に、照明具32は、被測定物50、第1入隅12、第2入隅13、第3入隅14、第1マーカー161、第2マーカー162および第3マーカー163を、カメラ本体31に明瞭に撮像させるために用いられる。照明具32には、白色LED(Light Emitting Diode)が用いられる。   The lighting fixture 32 is electrically connected to a control unit of the camera body 31. The lighting fixture 32 brightens the inside of the accommodation room 11. In particular, the lighting fixture 32 attaches the DUT 50, the first corner 12, the second corner 13, the third corner 14, the first marker 161, the second marker 162, and the third marker 163 to the camera body 31. Used for clear imaging. As the lighting device 32, a white LED (Light Emitting Diode) is used.

寸法測定装置1は、図2に示すように、画像処理部4を有する。画像処理部4は、マイクロコンピューターを備える。マイクロコンピューターは、CPU(Central Processing Unit)、メモリ等を有する。マイクロコンピューターは、メモリに格納されたプログラムをCPUが実行することにより制御を行なう。   The dimension measuring device 1 has an image processing unit 4 as shown in FIG. The image processing unit 4 includes a microcomputer. The microcomputer has a CPU (Central Processing Unit), a memory, and the like. The microcomputer controls the CPU by executing a program stored in the memory.

画像処理部4では、撮像部3で撮像された画像に対して画像処理が行われる。また、画像処理部4は、メモリに格納された被測定物50の画像の補正を行うプログラムを有する補正モード41を有する。   The image processing unit 4 performs image processing on the image captured by the imaging unit 3. Further, the image processing section 4 has a correction mode 41 having a program for correcting an image of the device under test 50 stored in the memory.

画像処理部4は、収容室11に被測定物が配置される前の状態で、下面部201、第1側面部242、第2側面部232およびマーカー16を撮像部3で撮像させることで原画像を取得する。この原画像に基づいて図3に示す補正モード41がステップS1で開始される。   The image processing unit 4 causes the imaging unit 3 to image the lower surface part 201, the first side surface part 242, the second side surface part 232, and the marker 16 in a state before the object to be measured is arranged in the accommodation room 11, and the original image is taken. Get an image. The correction mode 41 shown in FIG. 3 is started in step S1 based on the original image.

補正モード41は、ステップS2において、原画像(グレースケール画像)に対しノイズ除去を行なう。そして、ノイズ除去をした画像の情報の一つである輝度値に基づいてフィルター処理が行われる。   In the correction mode 41, in step S2, noise removal is performed on the original image (grayscale image). Then, a filtering process is performed based on the luminance value which is one of the information of the image from which the noise has been removed.

補正モード41は、ステップS3において、フィルター処理が行われた画像に対して二値化が行なわれることで、エッジを検出する。このような処理を行なった画像を二値画像42(図4参照)とする。二値画像42は、二次元画像である。二値画像42のデータは、画像処理部4のメモリに格納される。   In the correction mode 41, an edge is detected by performing binarization on the image on which the filter processing has been performed in step S3. An image on which such processing has been performed is referred to as a binary image 42 (see FIG. 4). The binary image 42 is a two-dimensional image. The data of the binary image 42 is stored in the memory of the image processing unit 4.

補正モード41は、ステップS4において、事前に取得していたマーカー16の形状や輝度値の情報により、二値画像42内のマーカー16をパターンマッチングにより識別する。   In the correction mode 41, in step S4, the marker 16 in the binary image 42 is identified by pattern matching based on the information on the shape and luminance value of the marker 16 acquired in advance.

補正モード41は、ステップS5において、識別された第1マーカー161、第2マーカー162および第3マーカー163から、二値画像42内の第1側面部242、第2側面部232および下面部201の辺を識別する。ここで、補正モード41では、二値画像42内のエッジA1〜A9が識別される。   In the correction mode 41, the first side surface portion 242, the second side surface portion 232, and the lower surface portion 201 in the binary image 42 are determined from the first marker 161, the second marker 162, and the third marker 163 identified in step S5. Identify the edge. Here, in the correction mode 41, edges A1 to A9 in the binary image 42 are identified.

補正モード41は、ステップ6において、歪み補正前の二値画像42と歪み補正後の二値画像42の座標を関連付ける、光軸中心座標、焦点距離、レンズ歪み係数などで構成される内部パラメーターを調整する。内部パラメーターは、例えば、マス目サイズが既知のチェッカーボードの撮影画像における、チェッカーボードのパターンの交点の位置を検出し、交点の間隔が均等になるように内部パラメーターを算出する。補正モードでは、ステップ6において、この事前に求めた内部パラメーターをサイズが既知の収容室11に用いてさらに収容室11に対して最適になるように調整する。この場合、内部パラメータが歪み補正用データとなる。   In the correction mode 41, in step 6, an internal parameter including an optical axis center coordinate, a focal length, a lens distortion coefficient, and the like, which associates the coordinates of the binary image 42 before distortion correction with the binary image 42 after distortion correction, is set. adjust. As the internal parameters, for example, the positions of the intersections of the checkerboard patterns in the captured image of the checkerboard with a known grid size are detected, and the internal parameters are calculated so that the intervals between the intersections are equal. In the correction mode, in step 6, the internal parameters determined in advance are used for the accommodation room 11 whose size is already known, and further adjusted so as to be optimal for the accommodation room 11. In this case, the internal parameter is distortion correction data.

補正モード41は、ステップS7において、内部パラメーターを用いてエッジA1〜A9の歪みを補正し、エッジA1〜A9を直線状とすることで、図5に示す補正した二値画像42を取得する。なお、本実施形態では補正モード41の方法として内部パラメーターを用いる公知の方法(例えば特開2015−35685号公報)を用いたが、他の公知の方法(例えば後述する特開2011−25428号公報)を用いてもよい。   In the correction mode 41, in step S7, the distortion of the edges A1 to A9 is corrected using the internal parameters, and the edges A1 to A9 are linearized, thereby acquiring the corrected binary image 42 illustrated in FIG. In the present embodiment, a known method using an internal parameter (for example, JP-A-2015-35685) is used as a method of the correction mode 41, but another known method (for example, JP-A-2011-25428 described later). ) May be used.

次に、補正モード41は、ステップ8において、収容室11の所定位置に被測定物50が配置された状態で、下面部201、第1側面部242、第2側面部232、マーカー16および被測定物50を撮像部3で撮像させることで測定用画像を取得する。そして、補正モード41は、測定用画像に対してノイズ除去、フィルター処理および二値化を行なうことで、図6Aに示すような二値画像42を取得する。   Next, in the correction mode 41, the lower surface 201, the first side surface 242, the second side surface 232, the marker 16, and the target object 50 are placed in a predetermined position of the accommodation chamber 11 in step S8. An image for measurement is obtained by causing the imaging unit 3 to image the measurement object 50. Then, the correction mode 41 obtains a binary image 42 as shown in FIG. 6A by performing noise removal, filtering, and binarization on the measurement image.

補正モード41は、ステップ9において、図6Bに示すように、内部パラメーター(歪み補正用データ)を用いてエッジA1〜A9、被測定物50のエッジT1〜T8の歪みを補正する。   6B, in the correction mode 41, the distortions of the edges A1 to A9 and the edges T1 to T8 of the device under test 50 are corrected using internal parameters (distortion correction data), as shown in FIG. 6B.

このようにして、補正モード41は、測定用画像内のエッジA1〜A9,エッジT1〜T8を補正した図6Bに示す補正画像44を取得する。   In this manner, the correction mode 41 acquires the corrected image 44 shown in FIG. 6B in which the edges A1 to A9 and the edges T1 to T8 in the measurement image are corrected.

次に、画像処理部4では、補正モード41で補正された二値画像42に対して画像処理が行われ、図7に示す被測定物50のサイズを測定するサイズ測定モード43が行なわれる。   Next, the image processing unit 4 performs image processing on the binary image 42 corrected in the correction mode 41, and performs a size measurement mode 43 for measuring the size of the DUT 50 shown in FIG.

サイズ測定モード43は、ステップS8において、同次座標を用いた射影変換処理を行うことで、図6Bに示す、被測定物50が配置された補正した二値画像42の第1側面部242を右斜め前方から視た側面図(図8A参照)を得る。さらに、サイズ測定モード43は、補正した二値画像42の下面部201を上方から視た第1平面図(図8B参照)、補正した二値画像42の下面部201を上方から視た第2平面図(図8C参照)を得る。   The size measurement mode 43 performs the projection transformation process using the homogeneous coordinates in step S8, and thereby the first side surface portion 242 of the corrected binary image 42 in which the device 50 is arranged shown in FIG. 6B. A side view (see FIG. 8A) as viewed from the oblique right front is obtained. Further, in the size measurement mode 43, a first plan view (see FIG. 8B) in which the lower surface portion 201 of the corrected binary image 42 is viewed from above, and a second plan view in which the lower surface portion 201 of the corrected binary image 42 is viewed from above. A plan view (see FIG. 8C) is obtained.

サイズ測定モード43は、ステップS13において、側面図のエッジA3の長さ方向に沿って並ぶピクセルを走査する。このとき、図8Aに示すように、エッジA9からエッジT8までのピクセル数に基づく長さとエッジA9からエッジA2までのピクセル数に基づく長さとの差である第1変化量H1を求める。   In the size measurement mode 43, in step S13, pixels arranged along the length direction of the edge A3 in the side view are scanned. At this time, as shown in FIG. 8A, a first variation H1 which is a difference between a length based on the number of pixels from the edge A9 to the edge T8 and a length based on the number of pixels from the edge A9 to the edge A2 is obtained.

サイズ測定モード43は、また、第1平面図のエッジA2の長さ方向に沿って並ぶピクセルを走査する。このとき、図8Bに示すように、エッジA5からエッジT5までのピクセル数に基づく長さとエッジA5からエッジA1までのピクセル数に基づく長さとの差である第2変化量H2を求める。   The size measurement mode 43 also scans pixels arranged along the length direction of the edge A2 in the first plan view. At this time, as shown in FIG. 8B, a second variation H2, which is a difference between the length based on the number of pixels from the edge A5 to the edge T5 and the length based on the number of pixels from the edge A5 to the edge A1, is obtained.

サイズ測定モード43は、第2平面図のエッジA1の長さ方向に沿って並ぶピクセルを走査する。このとき、図8Cに示すように、エッジA4からエッジT4までのピクセル数に基づく長さとエッジA4からエッジA2までのピクセル数に基づく長さとの差である第3変化量H3を求める。   The size measurement mode 43 scans pixels arranged along the length direction of the edge A1 in the second plan view. At this time, as shown in FIG. 8C, a third variation H3, which is a difference between the length based on the number of pixels from the edge A4 to the edge T4 and the length based on the number of pixels from the edge A4 to the edge A2, is obtained.

サイズ測定モード43では、図7に示すステップS14において、図6Bに示す補正した二値画像42内のエッジA3のピクセル数に基づく長さと実際の第3入隅14の長さとの比から、第1変化量H1に基づいて被測定物50の高さが求まる。また、同様に第2変化量H2に基づいて被測定物50の縦の長さ、第3変化量H3に基づいて被測定物50の横の長さが求まる。   In the size measurement mode 43, in Step S14 shown in FIG. 7, the ratio of the length based on the number of pixels of the edge A3 in the corrected binary image 42 shown in FIG. The height of the measured object 50 is obtained based on the one change amount H1. Similarly, the vertical length of the DUT 50 is determined based on the second variation H2, and the horizontal length of the DUT 50 is determined based on the third variation H3.

なお、補正モード41の他例として、図9に示す歪みの補正方法がある。   As another example of the correction mode 41, there is a distortion correction method shown in FIG.

この補正モード41では、ステップS16〜ステップS20が上記したステップS1〜ステップS5と同様であるので、説明を省略する。   In the correction mode 41, steps S16 to S20 are the same as steps S1 to S5 described above, and a description thereof will be omitted.

補正モード41は、ステップS21において、エッジA1〜A9とエッジA1〜A9に対応する直線とを比較しその直線に対する歪み量Yを求める。例えば、エッジA6に対して直線である仮想線Cを重ね合わせる(図10参照)ことで歪み量Yが求められる。そして、補正モード41は、ステップS22において、この歪み量Yに基づいてエッジA6を直線とする補正係数Kを求める。補正モード41は、他のエッジに対しても同様のことを行ない、それぞれの補正係数Kを求める。   In the correction mode 41, in step S21, the edges A1 to A9 are compared with the straight lines corresponding to the edges A1 to A9, and the distortion amount Y with respect to the straight lines is obtained. For example, the amount of distortion Y is obtained by superimposing a virtual line C, which is a straight line, on the edge A6 (see FIG. 10). In the correction mode 41, in step S22, a correction coefficient K that makes the edge A6 a straight line is obtained based on the distortion amount Y. The correction mode 41 performs the same for the other edges, and obtains the respective correction coefficients K.

補正モード41は、ステップS23において、それぞれの補正係数KからエッジA1〜A9の歪みを補正し、エッジA1〜A9を直線状とすることで、図6Bに示す補正した二値画像42を取得する。この場合、補正係数Kが歪み補正用データとなる。   In the correction mode 41, in step S23, the distortion of the edges A1 to A9 is corrected from the respective correction coefficients K, and the edges A1 to A9 are linearized to obtain the corrected binary image 42 illustrated in FIG. 6B. . In this case, the correction coefficient K becomes distortion correction data.

なお、画像処理部4で識別されたエッジのうちエッジA1,エッジA2,エッジA3は、撮像部3が広角レンズを用いて撮像したとしても歪み難く直線となっているため、エッジA1〜A3を用いて歪み量Yを求めてもよい。   The edges A1, A2, and A3 among the edges identified by the image processing unit 4 are straight lines that are hardly distorted even when the imaging unit 3 captures images using a wide-angle lens. The distortion amount Y may be obtained by using this.

次に、補正モード41は、ステップ24において、収容室11の所定位置に被測定物50が配置された状態で、下面部201、第1側面部242、第2側面部232、マーカー16および被測定物50を撮像部3で撮像させることで図6Aに示す測定用画像を取得する。   Next, in the correction mode 41, the lower surface 201, the first side surface 242, the second side surface 232, the marker 16, and the target object 50 are arranged in a predetermined position of the accommodation chamber 11 in step S24. By causing the imaging unit 3 to image the measurement object 50, the measurement image illustrated in FIG. 6A is acquired.

補正モード41は、ステップ25において、補正係数K(歪み補正用データ)を用いることで、図6Bに示すように、エッジA1〜A9、被測定物50のエッジT1〜T8の歪みを補正する。   The correction mode 41 corrects the distortion of the edges A1 to A9 and the edges T1 to T8 of the device under test 50 by using the correction coefficient K (distortion correction data) in step 25, as shown in FIG. 6B.

エッジA1〜A9は、それぞれに対応する補正係数Kで補正する。エッジT1の補正係数Kは、例えば、エッジA3とエッジA6に対するエッジT1の位置関係と、エッジA3の補正係数KおよびエッジA6の補正係数Kと、を比例関係とみて求める。そして、他のエッジT2〜T8に関しても同様に、エッジA1〜A9のうちの二つのエッジに対する位置関係に基づいて、補正係数Kを決定する。   The edges A1 to A9 are corrected by the corresponding correction coefficients K. The correction coefficient K of the edge T1 is determined, for example, as a proportional relation between the positional relationship of the edge T1 with respect to the edges A3 and A6, and the correction coefficient K of the edge A3 and the correction coefficient K of the edge A6. Then, for the other edges T2 to T8, similarly, the correction coefficient K is determined based on the positional relationship with respect to two of the edges A1 to A9.

なお、エッジT1〜T8の補正係数の決定の方法は上記した方法に限定されない。   Note that the method of determining the correction coefficients of the edges T1 to T8 is not limited to the method described above.

本実施形態の寸法測定装置1の構成は、上記した一態様に限定されず、以下に示す態様であってもよい。   The configuration of the dimension measuring device 1 of the present embodiment is not limited to the above-described one aspect, and may be the following aspects.

補正モード41では、撮像部3で撮像した画像のノイズ除去が移動平均フィルターやメディアンフィルターで行われてもよい。   In the correction mode 41, noise removal of the image captured by the imaging unit 3 may be performed by a moving average filter or a median filter.

補正モード41のフィルター処理では、例えば一次差分オペレータとして、SobelフィルターやPrewittフィルターが用いられる。また、フィルター処理では、二次差分オペレータが用いられてもよい。   In the filter processing in the correction mode 41, for example, a Sobel filter or a Prewitt filter is used as a primary difference operator. In the filtering process, a secondary difference operator may be used.

補正モード41では、フィルター処理が行われた画像の二値化が、移動平均法による二値化や、閾値を二つ用いた二値化であってもよい。   In the correction mode 41, the binarization of the filtered image may be binarization using a moving average method or binarization using two thresholds.

マーカー16の形状は、円状や矩形状に限定されず、他の多角形であってもよい。   The shape of the marker 16 is not limited to a circle or a rectangle, and may be another polygon.

被測定物50の形状は、立方体または直方体に限定されず、撮像部3で撮像される三面の形状が略矩形状であればよい。   The shape of the device under test 50 is not limited to a cube or a rectangular parallelepiped, and may be any shape as long as the shape of three surfaces imaged by the imaging unit 3 is substantially rectangular.

外郭体111の形状は、直方体となっているが立方体でもよく、その形状は限定されない。また、部分的に突起を有するような形状でもよい。   The shape of the outer body 111 is a rectangular parallelepiped, but may be a cube, and the shape is not limited. Moreover, the shape which has a protrusion partially may be sufficient.

内部空間112の形状は、直方体状となっているが立方体状であってもよく、その形状は限定されない。   The shape of the internal space 112 is a rectangular parallelepiped, but may be a cube, and the shape is not limited.

基準隅部15は、下面部201、右面部221、左面部231、後面部241および前面部263で形成される4つの隅部の内のいずれか1つの隅部であればよい。   The reference corner 15 may be any one of the four corners formed by the lower surface 201, the right surface 221, the left surface 231, the rear surface 241, and the front surface 263.

カメラ本体31は、CMOS(Complementary Metal Oxide Semiconductor)カメラでもよい。   The camera body 31 may be a CMOS (Complementary Metal Oxide Semiconductor) camera.

撮像部3では、撮像する画像はグレースケールでもよいし、カラーでもよい。ここで、撮像部3で撮像する画像がカラーの場合、画像処理を行う際にグレースケール画像への変換をすることが好ましい。   In the imaging unit 3, the image to be captured may be gray scale or color. Here, when the image captured by the imaging unit 3 is a color image, it is preferable to convert the image into a grayscale image when performing image processing.

撮像部3では、カメラ本体31の制御部と照明具32とが接続され、照明具32のON・OFFは、カメラ本体31の制御部で操作されているが、照明具32と画像処理部4とが接続され、画像処理部4で照明具32を操作してもよい。   In the imaging unit 3, the control unit of the camera body 31 and the lighting device 32 are connected, and ON / OFF of the lighting device 32 is operated by the control unit of the camera body 31. May be connected, and the lighting device 32 may be operated by the image processing unit 4.

撮像部3では、カメラ本体31の制御部と照明具3262とが無線で接続されてもよい。   In the imaging unit 3, the control unit of the camera body 31 and the lighting device 3262 may be wirelessly connected.

撮像部3では、カメラ本体31と照明具32とは別体で設けられてもよい。   In the imaging section 3, the camera body 31 and the lighting device 32 may be provided separately.

照明具32には、蛍光灯や電球や他の色のLEDが用いられてもよい。なお、照明具32は、画像処理部4において、カメラ本体31で撮像した画像のエッジが検出され易い色や明るさであることが好ましい。   As the lighting device 32, a fluorescent lamp, a light bulb, or an LED of another color may be used. It is preferable that the illuminator 32 has a color or brightness in which an edge of an image captured by the camera body 31 is easily detected in the image processing unit 4.

画像処理部4のCPUには、公知の様々なマイクロコンピューターが適宜利用可能される。   Various known microcomputers can be used as appropriate for the CPU of the image processing unit 4.

(効果)
上記した寸法測定装置1で用いられる寸法測定方法では、マーカー16を用いることで容易に二値画像42内の下面部201、第1側面部242および第2側面部232の辺に対応するエッジA1〜A9を識別し易い。そのため、二値画像42内のエッジA1〜A9,エッジT1〜T8の歪みを補正するための処理が容易になるので、被測定物50のサイズの測定を早めることができる。
(effect)
In the dimension measuring method used in the above-described dimension measuring apparatus 1, the edge A1 corresponding to the sides of the lower surface portion 201, the first side surface portion 242, and the second side surface portion 232 in the binary image 42 easily by using the marker 16. ~ A9 can be easily identified. Therefore, the processing for correcting the distortion of the edges A1 to A9 and the edges T1 to T8 in the binary image 42 becomes easy, so that the measurement of the size of the DUT 50 can be accelerated.

また、第1マーカー161、第2マーカー162および第3マーカー163の色調を変えることで、下面部201、第1側面部242および第2側面部232の辺に対応するエッジA1〜A9をより識別し易くなる。   Further, by changing the color tone of the first marker 161, the second marker 162, and the third marker 163, the edges A1 to A9 corresponding to the sides of the lower surface portion 201, the first side surface portion 242, and the second side surface portion 232 can be more distinguished. Easier to do.

以上説明したように、本実施形態の寸法測定方法は以下に示す構成を備える。   As described above, the dimension measuring method of the present embodiment has the following configuration.

本実施形態の寸法測定方法は、次の第1の特徴を備える。第1の特徴では、被測定物50を出し入れ自在に収容する収容室11と、収容室11に設けられ、収容室11に収容される被測定物50を撮像する撮像部3と、を備える。撮像部3で撮像された画像の情報に基づいて画像処理を行ない被測定物50のサイズを測定する画像処理部4と、を備える。   The dimension measuring method according to the present embodiment has the following first feature. The first feature is provided with a housing chamber 11 for accommodating the object 50 to be taken in and out freely, and an imaging section 3 provided in the accommodation room 11 and imaging the object 50 accommodated in the accommodation room 11. An image processing unit that performs image processing based on information of an image captured by the imaging unit and measures the size of the device under test;

収容室11は、被測定物50が置かれる矩形状の下面部201と、下面部201から上方に延出される矩形状の第1側面部242と、下面部201から上方に延出され、第1側面部242に隣接する矩形状の第2側面部232と、を有する。収容室11は、下面部201および第1側面部242で形成される第1入隅12と、下面部201および第2側面部232で形成される第2入隅13と、第1側面部242および第2側面部232で形成される第3入隅14と、を有する。収容室11は、第1入隅12、第2入隅13および第3入隅14が交差した部分に形成され、被測定物50を所定位置に配置する基準点となる基準隅部15を有する。収容室11は、第1側面部242、第2側面部232および下面部201の辺の位置を表示するマーカー16を有する。   The accommodation room 11 has a rectangular lower surface 201 on which the device under test 50 is placed, a first rectangular side surface 242 extending upward from the lower surface 201, and an upper extending from the lower surface 201, A second side surface portion 232 adjacent to the one side surface portion 242. The accommodation room 11 includes a first entry corner 12 formed by the lower surface portion 201 and the first side surface portion 242, a second entry corner 13 formed by the lower surface portion 201 and the second side surface portion 232, and a first side surface portion 242. And a third corner 14 formed by the second side surface portion 232. The accommodation room 11 has a reference corner 15 formed at a portion where the first entry corner 12, the second entry corner 13, and the third entry corner 14 intersect, and serves as a reference point for arranging the device under test 50 at a predetermined position. . The accommodation room 11 has a marker 16 that displays the positions of the sides of the first side surface portion 242, the second side surface portion 232, and the lower surface portion 201.

画像処理部4は、収容室11に被測定物50が配置される前の状態で、撮像部3で撮像した画像に対して二値化を行なうことで二値画像42を作成する。画像処理部4は、二値画像42内のマーカー16を識別し、マーカー16から二値画像42内の第1側面部242、第2側面部232および下面部201の辺に対応するエッジA1〜A9を識別して、エッジA1〜A9の歪みを基に歪み補正用データを作成する。画像処理部4は、収容室11に被測定物50が配置された状態で、撮像部3で撮像した画像に対して二値化を行なうことで二値画像42を作成する。画像処理部4は、二値画像42内で識別された被測定物50のエッジT1〜T8の歪みを歪み補正用データを基に補正することで補正画像44を取得する。画像処理部4は、補正画像44の第1側面部242、第2側面部232および下面部201に対応する面内を走査することで被測定物50のサイズを測定する。   The image processing unit 4 creates a binary image 42 by performing binarization on an image captured by the imaging unit 3 before the device under test 50 is placed in the accommodation room 11. The image processing unit 4 identifies the marker 16 in the binary image 42, and detects the edges A <b> 1 to A <b> 1 corresponding to the sides of the first side surface 242, the second side surface 232, and the lower surface 201 in the binary image 42 from the marker 16. A9 is identified, and distortion correction data is created based on the distortion of the edges A1 to A9. The image processing unit 4 creates a binary image 42 by performing binarization on an image captured by the imaging unit 3 in a state where the device 50 is arranged in the accommodation room 11. The image processing unit 4 obtains the corrected image 44 by correcting the distortion of the edges T1 to T8 of the device under test 50 identified in the binary image 42 based on the distortion correction data. The image processing unit 4 measures the size of the device under test 50 by scanning an area corresponding to the first side surface 242, the second side surface 232, and the lower surface 201 of the corrected image 44.

第1の特徴を有する寸法測定方法では、マーカー16を用いることで、容易に二値画像42内の歪みを補正することができる。   In the dimension measuring method having the first feature, the distortion in the binary image 42 can be easily corrected by using the marker 16.

第1の特徴を有する寸法測定方法は、以下の付加的な第2の特徴を有する。第2の特徴では、収容室11は、第1側面部242および第2側面部232の上縁から延出される矩形状の上面部251と、第1側面部242に対向し、被測定物50を出し入れするための出入口261と、を有する。   The dimension measuring method having the first characteristic has the following additional second characteristic. In the second feature, the accommodation room 11 faces the rectangular upper surface portion 251 extending from the upper edges of the first side surface portion 242 and the second side surface portion 232 and the first side surface portion 242, and And an entrance 261 for taking in and out of the vehicle.

撮像部3は、上面部251の出入口261側の端部における基準隅部15とは反対側の端部に設けられる。   The imaging unit 3 is provided at an end of the upper surface 251 on the side of the entrance 261 opposite to the reference corner 15.

第2の特徴を有する寸法測定方法では、下面部201、第1側面部242、第2側面部232、被測定物50およびマーカー16の全体を撮像部3が撮像し易くなる。
(マーカーの他例)
上記した実施形態の寸法測定装置1の設けられるマーカー16は、例えば図11に示すような態様であってもよい(これを他例とする)。本他例の寸法測定装置1は、特に、マーカー16の形状に関する。
In the dimension measuring method having the second feature, the imaging section 3 easily captures the entire lower surface portion 201, the first side surface portion 242, the second side surface portion 232, the measured object 50, and the marker 16.
(Other examples of markers)
The marker 16 provided in the dimension measuring device 1 of the above-described embodiment may be in a mode as shown in FIG. 11 (this is another example). The dimension measuring apparatus 1 of this other example particularly relates to the shape of the marker 16.

収容室11の内面には、図11Aに示すように、複数のマーカー16が設けられてもよい。ここで、マーカー16は、円状となっている。第1マーカー161は、第1側面部242に複数設けられる。第1マーカー161は、第1側面部242の四隅に設けられる。第2マーカー162は、第2側面部232の四隅に設けられる。第3マーカー163は、下面部201の四隅に設けられる。   As shown in FIG. 11A, a plurality of markers 16 may be provided on the inner surface of the accommodation room 11. Here, the marker 16 has a circular shape. A plurality of first markers 161 are provided on the first side surface portion 242. The first markers 161 are provided at four corners of the first side surface part 242. The second markers 162 are provided at four corners of the second side surface portion 232. The third markers 163 are provided at four corners of the lower surface portion 201.

また、収容室11の内面には、図11Bに示すように、複数のマーカー16が設けられてもよい。ここで、マーカー16は、円状となっているが、図9Aとは異なり下面部201の四隅に設けられる第3マーカー163が円の内部に色が塗られていない。   Further, a plurality of markers 16 may be provided on the inner surface of the accommodation room 11, as shown in FIG. 11B. Here, the marker 16 has a circular shape, but unlike FIG. 9A, the third markers 163 provided at the four corners of the lower surface portion 201 are not colored inside the circle.

また、収容室11の内面には、図11Cに示すように、複数のマーカー16が設けられてもよい。ここで、マーカー16は、円状となっている。第1マーカー161は、第1側面部242の第3入隅14とは反対側の両端部に設けられる。第2マーカー162は、第2側面部232の第3入隅14とは反対側の端部の両端部に設けられる。第3マーカー163は、下面部201に設けられていない。   Further, a plurality of markers 16 may be provided on the inner surface of the accommodation room 11, as shown in FIG. 11C. Here, the marker 16 has a circular shape. The first markers 161 are provided at both end portions of the first side surface portion 242 on the side opposite to the third corner 14. The second markers 162 are provided at both ends of the second side surface portion 232 at the end opposite to the third corner 14. The third marker 163 is not provided on the lower surface portion 201.

1 寸法測定装置
11 収容室
12 第1入隅
13 第2入隅
14 第3入隅
15 基準隅部
16 マーカー
201 下面部
232 第2側面部
242 第1側面部
3 撮像部
4 画像処理部
42 二値画像
44 補正画像
50 被測定物
A1〜A9 エッジ
T1〜T8 エッジ
DESCRIPTION OF SYMBOLS 1 Dimension measuring device 11 Accommodation room 12 1st corner 13 2nd corner 14 3rd corner 15 Reference corner 16 Marker 201 Lower surface part 232 Second side part 242 First side part 3 Imaging part 4 Image processing part 42 Two Value image 44 Corrected image 50 DUT A1 to A9 edge T1 to T8 edge

Claims (2)

被測定物を出し入れ自在に収容する収容室と、前記収容室に設けられ、前記収容室に収容される前記被測定物を撮像する撮像部と、前記撮像部で撮像された画像の情報に基づいて画像処理を行ない前記被測定物のサイズを測定する画像処理部と、を備え、
前記収容室は、前記被測定物が置かれる矩形状の下面部と、前記下面部から上方に延出される矩形状の第1側面部と、前記下面部から上方に延出され、前記第1側面部に隣接する矩形状の第2側面部と、前記下面部および前記第1側面部で形成される第1入隅と、前記下面部および前記第2側面部で形成される第2入隅と、前記第1側面部および前記第2側面部で形成される第3入隅と、前記第1入隅、前記第2入隅および前記第3入隅が交差した部分に形成され、前記被測定物を所定位置に配置する基準点となる基準隅部と、前記第1側面部、前記第2側面部および前記下面部の辺の位置を表示するマーカーと、を有し、
前記マーカーとして、前記第1側面部において前記第3入隅に沿うライン及び前記第1入隅に平行なラインを有する矩形枠状をした第1マーカーと、前記第2側面部において前記第3入隅に沿うライン及び前記第2入隅に平行なラインを有する矩形枠状をした第2マーカーと、前記下面部において前記第1入隅に沿うライン及び前記第2入隅に平行なラインを有する矩形枠状をした第3マーカーと、を有し、
前記画像処理部は、前記収容室に前記被測定物が配置される前の状態で、前記撮像部で撮像した前記画像に対して二値化を行なうことで二値画像を作成し、前記二値画像内の前記マーカーを識別し、前記マーカーから前記二値画像内の前記第1側面部、前記第2側面部および前記下面部の辺に対応するエッジを識別して、前記エッジの歪みを基に歪み補正用データを作成し、前記収容室に前記被測定物が配置された状態で、前記撮像部で撮像した前記画像に対して二値化を行なうことで二値画像を作成し、前記二値画像内で識別された前記被測定物のエッジの歪みを前記歪み補正用データを基に補正することで補正画像を取得し、前記補正画像の前記第1側面部、前記第2側面部および前記下面部に対応する面内を走査することで前記被測定物のサイズを測定することを特徴とする寸法測定方法。
A storage chamber that accommodates the object to be measured in and out, an imaging unit that is provided in the accommodation room and captures an image of the object to be measured that is accommodated in the accommodation room, and based on information of an image captured by the imaging unit. An image processing unit that performs image processing to measure the size of the device under test,
The storage chamber has a rectangular lower surface on which the object to be measured is placed, a rectangular first side surface extending upward from the lower surface, and an upper extending from the lower surface, and A rectangular second side surface portion adjacent to the side surface portion, a first corner formed by the lower surface portion and the first side surface portion, and a second corner formed by the lower surface portion and the second side surface portion A third corner formed by the first side surface and the second side surface and a portion where the first corner, the second corner and the third corner intersect, and A reference corner that serves as a reference point for arranging the measurement object at a predetermined position, and a marker that displays a position of a side of the first side surface, the second side surface, and the lower surface,
The marker includes a first marker having a rectangular frame shape having a line along the third corner and a line parallel to the first corner in the first side surface, and a third marker in the second side surface. A rectangular frame-shaped second marker having a line along a corner and a line parallel to the second corner; and a line along the first corner and a line parallel to the second corner on the lower surface. A third marker having a rectangular frame shape,
The image processing unit creates a binary image by performing binarization on the image captured by the imaging unit in a state before the object to be measured is arranged in the storage room. Identifying the marker in the value image, identifying the edges corresponding to the sides of the first side surface, the second side surface, and the lower surface in the binary image from the marker, and correcting the distortion of the edge. Create distortion correction data based on, in a state where the object to be measured is arranged in the storage room, to create a binary image by performing binarization on the image captured by the imaging unit, A corrected image is obtained by correcting distortion of the edge of the device under test identified in the binary image based on the distortion correction data, and the first side surface portion and the second side surface of the corrected image are obtained. The object to be measured is scanned by scanning in a plane corresponding to the part and the lower part. Dimension measuring method characterized by measuring the size.
前記収容室は、前記第1側面部および前記第2側面部の上縁から延出される矩形状の上面部と、前記第1側面部に対向し、前記被測定物を出し入れするための出入口と、を有し、
前記撮像部は、前記上面部の出入口側の端部における前記基準隅部とは反対側の端部に設けられることを特徴とする請求項1に記載の寸法測定方法。
The storage chamber has a rectangular upper surface portion extending from upper edges of the first side surface portion and the second side surface portion, and an entrance facing the first side surface portion for taking in and out the object to be measured. , And
2. The method according to claim 1, wherein the imaging unit is provided at an end of the upper surface on the entrance side opposite to the reference corner. 3.
JP2016032502A 2015-12-25 2016-02-23 Dimension measurement method Active JP6624563B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2016032502A JP6624563B2 (en) 2016-02-23 2016-02-23 Dimension measurement method
CN201680076223.3A CN108474647B (en) 2015-12-25 2016-12-16 Dimension measuring device, parcel cabinet system and dimension measuring method
PCT/JP2016/005154 WO2017110071A1 (en) 2015-12-25 2016-12-16 Size measurement device, delivery box apparatus, and size measurement method
EP16877976.7A EP3396310B1 (en) 2015-12-25 2016-12-16 Dimension measurement device, parcel locker system and dimension measurement method
US16/062,714 US10748297B2 (en) 2015-12-25 2016-12-16 Dimension measurement device, parcel locker system, and dimension measurement method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016032502A JP6624563B2 (en) 2016-02-23 2016-02-23 Dimension measurement method

Publications (2)

Publication Number Publication Date
JP2017150908A JP2017150908A (en) 2017-08-31
JP6624563B2 true JP6624563B2 (en) 2019-12-25

Family

ID=59741633

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016032502A Active JP6624563B2 (en) 2015-12-25 2016-02-23 Dimension measurement method

Country Status (1)

Country Link
JP (1) JP6624563B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7037250B2 (en) * 2018-09-20 2022-03-16 株式会社 日立産業制御ソリューションズ Object measuring equipment, object measuring method and object measuring system
JPWO2020217651A1 (en) * 2019-04-25 2020-10-29

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01141307A (en) * 1987-11-27 1989-06-02 Nishiyama:Kk Method and device for measuring volume
JP3661073B2 (en) * 1996-11-27 2005-06-15 富士通株式会社 Imaging parameter measuring method and apparatus, and recording medium
JP3477139B2 (en) * 2000-03-15 2003-12-10 株式会社横河技術情報 Gauge, dimension calibration device and dimension calibration method using the gauge
JP2002250621A (en) * 2000-12-18 2002-09-06 Olympus Optical Co Ltd Shape-measuring method and device for optical element, and its type
JP2006119792A (en) * 2004-10-20 2006-05-11 Seiko Epson Corp Kiosk terminal, program, and delivery acceptance process system
JP4825980B2 (en) * 2007-03-06 2011-11-30 国立大学法人岩手大学 Calibration method for fisheye camera.
JP5048558B2 (en) * 2008-03-14 2012-10-17 株式会社ニューフレアテクノロジー Substrate inspection method and substrate inspection apparatus
JP5447963B2 (en) * 2010-03-01 2014-03-19 サクサ株式会社 Position measurement system using 3D marker
EP2439503A1 (en) * 2010-09-30 2012-04-11 Neopost Technologies Device for determining the dimensions of a parcel
EP2437037B1 (en) * 2010-09-30 2018-03-14 Neopost Technologies Method and device for determining the three dimensions of a parcel
JP2012168800A (en) * 2011-02-15 2012-09-06 Panasonic Corp Home delivery box device
JP5749091B2 (en) * 2011-06-20 2015-07-15 三洋機工株式会社 Fastening work support device and fastening work support method
JP6055228B2 (en) * 2012-08-07 2016-12-27 中央発條株式会社 Shape measuring device
JP2014052270A (en) * 2012-09-06 2014-03-20 Shinko Denshi Kk Size measuring apparatus
DE102015101144A1 (en) * 2014-02-24 2015-08-27 Bvs Verpackungs-Systeme Gmbh Pack weighing station with volume detection and method

Also Published As

Publication number Publication date
JP2017150908A (en) 2017-08-31

Similar Documents

Publication Publication Date Title
WO2017110071A1 (en) Size measurement device, delivery box apparatus, and size measurement method
JP5690774B2 (en) Inspection method
TWI584634B (en) Electronic apparatus and method of generating depth map
TWI253006B (en) Image processing system, projector, information storage medium, and image processing method
KR101053506B1 (en) Method for adjusting parameters in distortion calibration of image acquired by camera having fish eye lens
JP2017531976A (en) System and method for dynamically calibrating an array camera
JP6624562B2 (en) Dimension measuring device
JP5849522B2 (en) Image processing apparatus, projector, projector system, image processing method, program thereof, and recording medium recording the program
CN109983401A (en) Video camera assists automatic screen fitting
JP2007194794A (en) Photographic device, and image processing method for photographed image, and program
JP6643673B2 (en) Measuring device, delivery box device
JP7010209B2 (en) Image processing equipment and methods
JP6624563B2 (en) Dimension measurement method
US20190394435A1 (en) Apparatus and method for image processing and storage medium storing program for the same
JP4182937B2 (en) Image capturing apparatus, image processing method for image capturing apparatus, and program
JP2008180602A (en) Inspection apparatus, testing method, inspection program, and computer readable medium
JP2014178141A (en) Calibration system and calibration method
JP4600019B2 (en) Imaging apparatus, image processing method, and program
KR101684244B1 (en) Board inspection method
US10721395B2 (en) Image processing apparatus, image pickup apparatus, image processing method, and non-transitory computer-readable storage medium
JP2020182127A (en) Calibration device, calibration system, and calibration method of display device
JP6908357B2 (en) Position identification device and position identification method
JP2012215631A (en) Imaging device and imaging method
JP7228112B2 (en) PROJECTION CONTROL DEVICE, PROJECTION DEVICE, PROJECTION METHOD AND PROGRAM
JP2020003878A (en) Marker and image processing device

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20170124

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181219

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190709

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190909

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20191115

R151 Written notification of patent or utility model registration

Ref document number: 6624563

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151