Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7579095B2 - Image Processing Device - Google Patents
[go: Go Back, main page]

JP7579095B2 - Image Processing Device - Google Patents

Image Processing Device Download PDF

Info

Publication number
JP7579095B2
JP7579095B2 JP2020154650A JP2020154650A JP7579095B2 JP 7579095 B2 JP7579095 B2 JP 7579095B2 JP 2020154650 A JP2020154650 A JP 2020154650A JP 2020154650 A JP2020154650 A JP 2020154650A JP 7579095 B2 JP7579095 B2 JP 7579095B2
Authority
JP
Japan
Prior art keywords
image
point
plane
image processing
point group
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
JP2020154650A
Other languages
Japanese (ja)
Other versions
JP2022048686A (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.)
Hitachi Construction Machinery Co Ltd
Original Assignee
Hitachi Construction Machinery 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 Hitachi Construction Machinery Co Ltd filed Critical Hitachi Construction Machinery Co Ltd
Priority to JP2020154650A priority Critical patent/JP7579095B2/en
Publication of JP2022048686A publication Critical patent/JP2022048686A/en
Application granted granted Critical
Publication of JP7579095B2 publication Critical patent/JP7579095B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Component Parts Of Construction Machinery (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Description

本開示は、画像処理装置に関する。 This disclosure relates to an image processing device.

従来からデジタルスチルカメラなどに用いられ、被写体面を撮影した画像の斜め撮影による歪みの補正を行う画像処理装置が知られている(下記特許文献1を参照)。この従来の画像処理装置は、被写体面を撮像する撮像手段と、この撮像手段を基準とした前記被写体面の向きを計測する平面計測手段と、この計測した被写体面の向きに基づいて前記撮像手段が撮像した画像の斜め撮影による歪みを補正する画像歪み補正手段と、を備えている(同文献、請求項1)。この従来の画像処理装置によれば、任意の被写体面を任意の視点、姿勢で撮影した場合でも、平面を計測することにより、簡便に画像の歪みを補正することができる(同文献、第0016段落および第0077段落)。 Image processing devices that are used in digital still cameras and the like and that correct distortion caused by oblique shooting of an image of a subject plane are known (see Patent Document 1 below). This conventional image processing device includes an imaging means for imaging the subject plane, a plane measurement means for measuring the orientation of the subject plane relative to the imaging means, and an image distortion correction means for correcting distortion caused by oblique shooting of the image captured by the imaging means based on the measured orientation of the subject plane (Patent Document, Claim 1). With this conventional image processing device, even if an arbitrary subject plane is captured from an arbitrary viewpoint and posture, image distortion can be easily corrected by measuring the plane (Patent Document, Paragraphs 0016 and 0077).

特開2000-307947号公報JP 2000-307947 A

たとえば、機械部品の摩耗状態などを画像に基づいて評価するためには、部品の正面を撮像面に正対させた正対画像が必要になる。しかし、部品の正面は、必ずしも平坦ではなく、異物が付着するなどして凹凸が形成されている場合がある。このような部品を被写体とした場合、前記従来の画像処理装置は、撮像手段を基準とした機械部品の向きを計測することが困難になり、撮像手段が撮像した画像の斜め撮影による歪みを補正することができないおそれがある。 For example, to evaluate the wear condition of a mechanical part based on an image, a front-on image is required in which the front of the part is directly facing the imaging surface. However, the front of a part is not necessarily flat, and may have unevenness due to the adhesion of foreign matter. When such a part is used as a subject, the conventional image processing device described above has difficulty measuring the orientation of the mechanical part based on the imaging means, and there is a risk that it will not be possible to correct distortion caused by oblique shooting of the image captured by the imaging means.

本開示は、被写体の凹凸を有する対象面を斜めから撮影した画像を、撮像面に対象面を正対させた正対画像に変換することが可能な画像処理装置を提供する。 This disclosure provides an image processing device that can convert an image of a subject's uneven surface captured from an oblique angle into a front-on image in which the subject surface is directly facing the imaging surface.

本開示の一態様は、対象物の対象面の画像を撮像装置から取得するとともに前記撮像装置と前記対象面との距離を距離センサから取得して前記対象面の画像を正対画像に変換する画像処理装置であって、前記対象面に互いに離隔した第1点群と第2点群と第3点群とを設定し、前記撮像装置から、前記第1点群の各点までの距離、前記第2点群の各点までの距離、および前記第3点群の各点までの距離を、前記距離センサから取得し、前記第1点群から選択した一の点と前記第2点群から選択した一の点と前記第3点群から選択した一の点とに基づいて平面を算出する平面算出処理をすべての点の組み合わせに対して実行して第1平面群を算出し、前記第1平面群の全平面の単位法線ベクトルを平均した平均ベクトルを法線ベクトルとし、かつ前記第1点群と前記第2点群と前記第3点群とに含まれる全点との距離の総和が最小となる第1平均平面を算出し、前記第1平均平面に基づいて前記対象面の画像を前記正対画像に変換することを特徴とする画像処理装置である。 One aspect of the present disclosure is an image processing device that acquires an image of a target surface of an object from an imaging device and acquires the distance between the imaging device and the target surface from a distance sensor to convert the image of the target surface into a front-facing image, and that sets a first point group, a second point group, and a third point group spaced apart from each other on the target surface, acquires the distance from the imaging device to each point of the first point group, the distance to each point of the second point group, and the distance to each point of the third point group from the distance sensor, calculates a first plane group by performing a plane calculation process for all combinations of points to calculate a plane based on one point selected from the first point group, one point selected from the second point group, and one point selected from the third point group, calculates a first average plane that has a normal vector that is an average vector of unit normal vectors of all planes in the first plane group and has a minimum sum of distances between the first point group, the second point group, and all points included in the third point group, and converts the image of the target surface into the front-facing image based on the first average plane.

本開示の上記一態様によれば、被写体の凹凸を有する対象面を斜めから撮影した画像を、撮像面に対象面を正対させた正対画像に変換することが可能な画像処理装置を提供することができる。 According to the above aspect of the present disclosure, it is possible to provide an image processing device capable of converting an image of a subject's uneven surface captured obliquely into a front-on image in which the surface is directly facing the imaging surface.

本開示に係る画像処理装置の一実施形態を示すブロック図。FIG. 1 is a block diagram illustrating an embodiment of an image processing device according to the present disclosure. 図1の画像処理装置の処理対象の一例を示す作業機械の側面図。2 is a side view of a work machine showing an example of a processing target of the image processing device of FIG. 1 . 図1の画像処理装置による処理の流れの一例を示すフロー図。FIG. 2 is a flow chart showing an example of a processing flow by the image processing apparatus of FIG. 1 . 図1の画像処理装置による処理の流れの一例を示すフロー図。FIG. 2 is a flow chart showing an example of a processing flow by the image processing apparatus of FIG. 1 . 図1の状態評価装置の表示装置に表示された対象面と複数の点群の画像図。2 is an image diagram of a target surface and a plurality of point clouds displayed on a display device of the condition evaluation device of FIG. 1 . 図1の表示装置に表示された機械部品とガイド線の一例を示す画像図。FIG. 2 is an image diagram showing an example of a mechanical part and a guide line displayed on the display device of FIG. 1 . 図1の画像処理装置が算出する第1平面群と単位法線ベクトルの概念図。2 is a conceptual diagram of a first group of planes and unit normal vectors calculated by the image processing device in FIG. 1 . 図1の画像処理装置が実行する平面算出処理の説明図。4 is an explanatory diagram of a plane calculation process executed by the image processing device in FIG. 1 . 図1の画像処理装置が算出する第1平均平面と平均ベクトルの概念図。3 is a conceptual diagram of a first mean plane and a mean vector calculated by the image processing device in FIG. 1 . 図1の画像処理装置が算出する第2平面群と平均ベクトルの概念図。4A and 4B are conceptual diagrams of a second group of planes and average vectors calculated by the image processing device in FIG. 1 . 図1の画像処理装置による第1/第2平均平面の回転処理の概念図。2 is a conceptual diagram of a rotation process of the first and second mean planes by the image processing device of FIG. 1 . 図1の画像処理装置による第1/第2平均平面の回転処理の概念図。2 is a conceptual diagram of a rotation process of the first and second mean planes by the image processing device of FIG. 1 . 図1の画像処理装置による第1/第2平均平面の回転処理の概念図。2 is a conceptual diagram of a rotation process of the first and second mean planes by the image processing device of FIG. 1 . 図1の画像処理装置による第1/第2平均平面の回転処理の概念図。2 is a conceptual diagram of a rotation process of the first and second mean planes by the image processing device of FIG. 1 . 図1の画像処理装置による正対画像の算出処理の概念図。2 is a conceptual diagram of a calculation process of a frontal image by the image processing device of FIG. 1 . 図1の画像処理装置による正対画像の算出処理の概念図。2 is a conceptual diagram of a calculation process of a frontal image by the image processing device of FIG. 1 . スプロケットの一部の平面図と、二種類のスプロケットの側面図。A plan view of a portion of a sprocket and a side view of two types of sprockets. 図1の画像処理装置による正対画像の二次回転の説明図。4 is an explanatory diagram of a secondary rotation of a frontal image by the image processing device of FIG. 1 .

以下、図面を参照して本開示に係る画像処理装置の一実施形態を説明する。 Below, an embodiment of an image processing device according to the present disclosure will be described with reference to the drawings.

図1は、本開示に係る画像処理装置150の一実施形態を示すブロック図である。本実施形態の画像処理装置150は、たとえば、機械部品の状態評価装置100の一部を構成している。状態評価装置100は、たとえば、機械を構成する部品の画像に基づいて、その部品の摩耗などの状態を評価する。状態評価装置100は、たとえば、撮像装置110と、距離センサ120と、入力装置130と、表示装置140と、本実施形態の画像処理装置150と、を備えている。 FIG. 1 is a block diagram showing one embodiment of an image processing device 150 according to the present disclosure. The image processing device 150 of this embodiment constitutes, for example, a part of a condition evaluation device 100 for a machine component. The condition evaluation device 100 evaluates the condition, such as wear, of a component constituting a machine, for example, based on an image of the component. The condition evaluation device 100 includes, for example, an imaging device 110, a distance sensor 120, an input device 130, a display device 140, and the image processing device 150 of this embodiment.

撮像装置110は、たとえば、デジタルカメラであり、レンズを含む光学系と、受光素子を含む電子系と、これらを保持する筐体とを備えている。撮像装置110は、たとえば、スマートフォンなどの撮像機能を備えた携帯情報端末であってもよい。距離センサ120は、たとえばTOF(Time-of-Flight)方式で対象物までの距離を測定するイメージセンサである。距離センサ120は、たとえば、パルス変調した光源を備え、光源からの発光のタイミングと、対象物の反射光をイメージセンサで受光したタイミングとの位相差情報に基づいて、対象物の対象面上の複数の点の距離を測定する。 The imaging device 110 is, for example, a digital camera, and is equipped with an optical system including a lens, an electronic system including a light receiving element, and a housing that holds these. The imaging device 110 may also be, for example, a mobile information terminal equipped with an imaging function, such as a smartphone. The distance sensor 120 is, for example, an image sensor that measures the distance to an object using a time-of-flight (TOF) method. The distance sensor 120 is, for example, equipped with a pulse-modulated light source, and measures the distances to multiple points on the object's surface based on phase difference information between the timing of light emission from the light source and the timing of light reflected from the object being received by the image sensor.

また、撮像装置110または距離センサ120は、距離を測定する対象面上の複数の点を可視化する。具体的には、撮像装置110または距離センサ120は、たとえば、距離を測定する対象面上の複数の点に可視光レーザを照射する可視化用の光源を備える。この可視化用の光源は、たとえば測距用の光源を兼ねてもよい。また、撮像装置110または距離センサ120は、他の方法によって、距離を測定する対象面上の複数の点を可視化してもよい。なお、撮像装置110は、距離センサ120を含んでもよい。 The imaging device 110 or the distance sensor 120 also visualizes multiple points on the target surface to which the distance is to be measured. Specifically, the imaging device 110 or the distance sensor 120 includes a visualization light source that irradiates multiple points on the target surface to which the distance is to be measured with a visible light laser, for example. This visualization light source may also serve as a distance measurement light source, for example. The imaging device 110 or the distance sensor 120 may also visualize multiple points on the target surface to which the distance is to be measured by other methods. The imaging device 110 may also include the distance sensor 120.

入力装置130は、たとえば、撮像装置110に設けられた操作ボタン、操作ダイヤル、もしくは、タッチセンサ、表示装置140に設けられたタッチパネル、または撮像装置110および表示装置140とは別に画像処理装置150に接続されたキーボードもしくはマイクなどを含む。状態評価装置100および画像処理装置150のオペレータは、たとえば、入力装置130を介して画像処理装置150に必要な情報を入力する。 The input device 130 includes, for example, an operation button, an operation dial, or a touch sensor provided on the imaging device 110, a touch panel provided on the display device 140, or a keyboard or microphone connected to the image processing device 150 separately from the imaging device 110 and the display device 140. The operator of the condition evaluation device 100 and the image processing device 150 inputs necessary information to the image processing device 150 via the input device 130, for example.

表示装置140は、たとえば、撮像装置110に設けられたファインダー、液晶表示装置、もしくは有機EL表示装置、または、撮像装置110とは別に画像処理装置150に接続された液晶表示装置、有機EL表示装置、もしくはスマートフォンなどの携帯情報端末を含む。 The display device 140 may include, for example, a viewfinder, a liquid crystal display device, or an organic EL display device provided in the imaging device 110, or a liquid crystal display device, an organic EL display device, or a mobile information terminal such as a smartphone that is connected to the image processing device 150 separately from the imaging device 110.

画像処理装置150は、たとえば、入出力部151と、中央処理装置(CPU)などの処理装置152と、RAMやROMなどの記憶装置153と、その記憶装置153に記憶された各種の制御プログラムと、図示を省略するタイマなどを備えたマイクロコントローラである。画像処理装置150は、記憶装置153に記憶された各種の制御プログラムを処理装置152によって実行することで、後述する様々な処理および機能を実現する。 The image processing device 150 is, for example, a microcontroller including an input/output unit 151, a processing device 152 such as a central processing unit (CPU), a storage device 153 such as a RAM or ROM, various control programs stored in the storage device 153, and a timer (not shown). The image processing device 150 realizes various processes and functions (described below) by executing the various control programs stored in the storage device 153 using the processing device 152.

入出力部151は、たとえば、撮像装置110、距離センサ120、入力装置130、および表示装置140に対して情報通信可能に接続されている。処理装置152は、たとえば、入出力部151に対して情報通信可能に接続され、入出力部151を介して撮像装置110、距離センサ120、入力装置130、表示装置140および記憶装置153との間で、制御信号や情報の授受を行う。記憶装置153は、たとえば、各種の制御プログラムやデータを記憶するとともに、処理装置152の処理結果や、撮像装置110、距離センサ120、および入力装置130から入力された情報を記憶する。 The input/output unit 151 is connected to the imaging device 110, the distance sensor 120, the input device 130, and the display device 140 so as to be able to communicate with each other. The processing device 152 is connected to the input/output unit 151 so as to be able to communicate with each other, and transmits and receives control signals and information between the imaging device 110, the distance sensor 120, the input device 130, the display device 140, and the storage device 153 via the input/output unit 151. The storage device 153 stores, for example, various control programs and data, and stores the processing results of the processing device 152 and information input from the imaging device 110, the distance sensor 120, and the input device 130.

図2は、作業機械200の一例を示す側面図である。図1に示す本実施形態の状態評価装置100の評価対象は、たとえば、作業機械200の部品である。また、図1に示す本実施形態の画像処理装置150の画像処理対象は、たとえば、作業機械200の部品である。作業機械200は、たとえば、油圧ショベルである。なお、作業機械200は、油圧ショベルに限定されず、他の作業機械であってもよい。 Figure 2 is a side view showing an example of a work machine 200. The evaluation target of the condition evaluation device 100 of this embodiment shown in Figure 1 is, for example, a part of the work machine 200. Also, the image processing target of the image processing device 150 of this embodiment shown in Figure 1 is, for example, a part of the work machine 200. The work machine 200 is, for example, a hydraulic excavator. Note that the work machine 200 is not limited to a hydraulic excavator and may be another work machine.

作業機械200は、たとえば、走行装置210と、旋回体220と、フロント作業機230と、を備えている。旋回体220は、たとえば、走行装置210の上に油圧モータまたは電動モータを備えた旋回機構を介して旋回可能に設けられている。フロント作業機230は、たとえば、ブーム231とアーム232とバケット233とが、それぞれ関節を介して連結されたリンク機構を有する。フロント作業機230は、油圧装置によって油圧シリンダ231S,232S,233Sを伸縮させることで、掘削作業やならし作業などの所望の作業を行うことができる。 The work machine 200 includes, for example, a traveling device 210, a rotating body 220, and a front work machine 230. The rotating body 220 is provided on the traveling device 210 so as to be rotatable via a rotating mechanism equipped with a hydraulic motor or an electric motor. The front work machine 230 includes, for example, a link mechanism in which a boom 231, an arm 232, and a bucket 233 are connected via joints. The front work machine 230 can perform desired work such as excavation work or leveling work by extending and retracting hydraulic cylinders 231S, 232S, and 233S using a hydraulic device.

走行装置210は、たとえば、スプロケット211と、アイドラ212と、リンクアッセンブリ213と、上部ローラ214と、下部ローラ215と、シュープレート216とを備えたクローラ式の走行装置である。スプロケット211は、たとえば、油圧装置によって駆動される油圧モータに動力伝達機構を介して接続されている。リンクアッセンブリ213は、スプロケット211、アイドラ212、上部ローラ214および下部ローラ215に架け渡されている。 The traveling device 210 is, for example, a crawler-type traveling device including a sprocket 211, an idler 212, a link assembly 213, an upper roller 214, a lower roller 215, and a shoe plate 216. The sprocket 211 is connected, for example, to a hydraulic motor driven by a hydraulic device via a power transmission mechanism. The link assembly 213 is stretched across the sprocket 211, the idler 212, the upper roller 214, and the lower roller 215.

複数のシュープレート216は、環状のリンクアッセンブリ213の外側に取り付けられ、下方側に位置する複数のシュープレート216が接地する。このような構成により、油圧モータが回転すると、スプロケット211が回転して、外側に複数のシュープレート216が取り付けられた環状のリンクアッセンブリ213が、アイドラ212、上部ローラ214および下部ローラ215の周りを回転して作業機械200を走行させる。 The shoe plates 216 are attached to the outside of the annular link assembly 213, and the shoe plates 216 located on the lower side come into contact with the ground. With this configuration, when the hydraulic motor rotates, the sprocket 211 rotates, and the annular link assembly 213 with the shoe plates 216 attached to the outside rotates around the idler 212, upper roller 214, and lower roller 215, causing the work machine 200 to travel.

たとえば、走行装置210のスプロケット211、アイドラ212、リンクアッセンブリ213、上部ローラ214、下部ローラ215などの機械部品は、部品間に入り込んだ土砂と部品との間の摩擦によって損耗が進行する。本実施形態の画像処理装置150は、このような機械部品を対象物とし、その対象物の対象面を、撮像装置110によって撮影し、その対象面の画像を処理して正対画像に変換する。 For example, mechanical parts such as the sprocket 211, idler 212, link assembly 213, upper roller 214, and lower roller 215 of the traveling device 210 are subject to wear due to friction between the parts and soil that has gotten between the parts. The image processing device 150 of this embodiment treats such mechanical parts as objects, captures the object surface of the object using the imaging device 110, and processes the image of the object surface to convert it into a front-on image.

次に、図3Aおよび図3Bを参照して、本実施形態の画像処理装置150の動作を説明する。図3Aおよび図3Bは、図1の画像処理装置150による処理の流れの一例を示すフロー図である。 Next, the operation of the image processing device 150 of this embodiment will be described with reference to Figures 3A and 3B. Figures 3A and 3B are flow diagrams showing an example of the processing flow by the image processing device 150 of Figure 1.

状態評価装置100のオペレータは、たとえば、作業機械200のスプロケット211の対象面を撮像装置110によって撮影し、その対象面の画像を画像処理装置150によって正対画像に変換することで、スプロケット211の摩耗などの状態を評価する。オペレータが状態評価装置100を起動すると、画像処理装置150は、まず、設定の表示および取得を行う処理P1を実行する。 For example, an operator of the condition evaluation device 100 photographs the target surface of the sprocket 211 of the work machine 200 using the imaging device 110, and converts the image of the target surface into a frontal image using the image processing device 150 to evaluate the condition of the sprocket 211, such as wear. When the operator starts the condition evaluation device 100, the image processing device 150 first executes process P1, which displays and acquires settings.

この処理P1において、画像処理装置150は、たとえば、後述する処理P13で用いるしきい値を表示装置140に表示させる。オペレータは、表示装置140に表示されたしきい値を確認する。このしきい値は、たとえば、後述する第1平均平面H1に対する凹凸の高さのしきい値である。また、オペレータは、表示装置140に表示されたしきい値を変更する場合は、入力装置130を操作して、新たにしきい値を入力する。この場合、画像処理装置150は、オペレータによって入力された新たなしきい値を入力装置130から取得して記憶装置153に記憶させる。 In this process P1, the image processing device 150 causes the display device 140 to display, for example, a threshold value to be used in process P13, which will be described later. The operator checks the threshold value displayed on the display device 140. This threshold value is, for example, a threshold value for the height of the unevenness relative to a first mean plane H1, which will be described later. Furthermore, if the operator wishes to change the threshold value displayed on the display device 140, he or she operates the input device 130 to input a new threshold value. In this case, the image processing device 150 obtains the new threshold value input by the operator from the input device 130 and stores it in the storage device 153.

また、この処理P1において、画像処理装置150は、たとえば、後述する処理で得られたスプロケット211の対象面211fの正対画像を回転させる二次回転の要否を、表示装置140に表示させる。オペレータは、表示装置140に表示された二次回転の要否を変更する場合は、入力装置130を操作して、新たに二次回転の要否を入力する。この場合、画像処理装置150は、オペレータによって入力された二次回転の要否を入力装置130から取得して記憶装置153に記憶させる。 In addition, in this process P1, the image processing device 150 causes the display device 140 to display, for example, the necessity of a secondary rotation, which rotates the front-on image of the target surface 211f of the sprocket 211 obtained in the process described below. When the operator wishes to change the necessity of the secondary rotation displayed on the display device 140, he or she operates the input device 130 to newly input the necessity of the secondary rotation. In this case, the image processing device 150 obtains the necessity of the secondary rotation input by the operator from the input device 130 and stores it in the storage device 153.

また、この処理P1において、画像処理装置150は、たとえば、撮像装置110による自動撮影の有無を、表示装置140に表示させる。オペレータは、表示装置140に表示された自動撮影の有無を変更する場合は、入力装置130を操作して、新たに自動撮影の有無を入力する。この場合、画像処理装置150は、オペレータによって入力された自動撮影の有無を入力装置130から取得して記憶装置153に記憶させる。 In addition, in this process P1, the image processing device 150, for example, causes the display device 140 to display whether or not automatic shooting is to be performed by the imaging device 110. When the operator wishes to change the whether or not automatic shooting is to be performed displayed on the display device 140, the operator operates the input device 130 to input a new whether or not automatic shooting is to be performed. In this case, the image processing device 150 obtains the whether or not automatic shooting is to be performed input by the operator from the input device 130 and stores it in the storage device 153.

次に、画像処理装置150は、たとえば、スプロケット211の対象面の正対画像を回転させる二次回転を行うか否かを判定する処理P2を実行する。記憶装置153に記憶された二次回転の有無が「有」(YES)の場合、画像処理装置150は、ガイド線を表示する処理P3を実行する。 Next, the image processing device 150 executes a process P2 to determine whether or not to perform a secondary rotation, for example, to rotate the front-on image of the target surface of the sprocket 211. If the presence or absence of secondary rotation stored in the storage device 153 is "yes," the image processing device 150 executes a process P3 to display guide lines.

画像処理装置150は、処理P3において、たとえば、撮像装置110のファインダーなどの表示装置140に、評価対象の部品であるスプロケット211の輪郭形状に応じたガイド線を表示させる。オペレータは、たとえば、表示装置140に表示されたガイド線とスプロケット211の輪郭形状を一致させるように、撮像装置110の姿勢を調整する。 In process P3, the image processing device 150 displays guide lines corresponding to the contour shape of the sprocket 211, which is the part to be evaluated, on the display device 140, such as the viewfinder of the imaging device 110. The operator adjusts the attitude of the imaging device 110, for example, so that the guide lines displayed on the display device 140 match the contour shape of the sprocket 211.

次に、画像処理装置150は、たとえば、撮像装置110による自動撮影の有無を判定する処理P4を実行する。記憶装置153に記憶された自動撮影の有無が「有」(YES)の場合、画像処理装置150は、自動撮影の条件を満足するか否かを判定する処理P5を実行する。 Next, the image processing device 150 executes, for example, process P4 to determine whether or not automatic shooting is performed by the imaging device 110. If the information on whether or not automatic shooting is performed stored in the storage device 153 is "yes" (YES), the image processing device 150 executes process P5 to determine whether or not the conditions for automatic shooting are satisfied.

図4は、撮像装置110のファインダー等の表示装置140に表示されたスプロケット211の対象面211fと、その対象面上の複数の点群の画像図である。図5は、表示装置140に表示されたスプロケット211とガイド線GLの一例を示す画像図である。画像処理装置150は、たとえば、図4に示すように、状態評価装置100の評価対象であるスプロケット211の対象面211fに、互いに離隔した第1点群G1と第2点群G2と第3点群G3とを設定する。 Figure 4 is an image diagram of the target surface 211f of the sprocket 211 and a plurality of point clouds on the target surface displayed on a display device 140 such as a viewfinder of the imaging device 110. Figure 5 is an image diagram showing an example of the sprocket 211 and guide line GL displayed on the display device 140. For example, as shown in Figure 4, the image processing device 150 sets a first point cloud G1, a second point cloud G2, and a third point cloud G3 that are spaced apart from each other on the target surface 211f of the sprocket 211, which is the evaluation target of the condition evaluation device 100.

第1点群G1、第2点群G2、および第3点群G3は、それぞれ、複数の点pを含んでいる。第1点群G1、第2点群G2、および第3点群G3は、たとえば、nを2以上の自然数として、それぞれn個の点pを含んでもよい。画像処理装置150は、たとえば、点pの数であるnの値、各点群の位置、および各点群に含まれる点pの位置などを、用途に応じて容易に変更することができる。 The first point group G1, the second point group G2, and the third point group G3 each include a plurality of points p. The first point group G1, the second point group G2, and the third point group G3 may each include n points p, where n is a natural number equal to or greater than 2. The image processing device 150 can easily change, for example, the value of n, which is the number of points p, the position of each point group, and the position of the points p included in each point group, depending on the application.

第1点群G1、第2点群G2、および第3点群G3の各点群に含まれる点pの数は、特に限定はされないが、たとえば、2点以上、3点以上、5点以上、または10点以上である。任意の一つの点群に含まれる任意の二つの点pの間の距離は、たとえば、任意の二つの点群のうちの一方の点群に含まれる任意の一つの点pと他方の点群に含まれる任意の一つの点pとの間の距離よりも近い。また、画像処理装置150は、各点群から1点ずつ選択した3つの点pが一直線上に存在しないように、各点群に含まれる複数の点pの位置を設定する。 The number of points p included in each of the first point group G1, the second point group G2, and the third point group G3 is not particularly limited, but may be, for example, 2 or more, 3 or more, 5 or more, or 10 or more. The distance between any two points p included in any one point group is closer than, for example, the distance between any one point p included in one of the two point groups and any one point p included in the other point group. In addition, the image processing device 150 sets the positions of the multiple points p included in each point group so that the three points p selected one by one from each point group do not exist on a straight line.

距離センサ120は、第1点群G1、第2点群G2、および第3点群G3の各々に含まれる各点pまでの距離を測定して、画像処理装置150へ出力する。また、撮像装置110または距離センサ120は、たとえば前述のように、光源から可視光レーザを照射して、距離を測定する対象面211f上の複数の点pを可視化する。 The distance sensor 120 measures the distance to each point p included in each of the first point group G1, the second point group G2, and the third point group G3, and outputs the distance to the image processing device 150. In addition, the imaging device 110 or the distance sensor 120, for example, as described above, irradiates a visible light laser from a light source to visualize multiple points p on the target surface 211f to which the distance is to be measured.

画像処理装置150は、自動撮影の条件を満足するか否かを判定する処理P5において、たとえば、図5の上図に示すように、表示装置140にガイド線GLを表示する。オペレータは、たとえば、図5の下図に示すように、スプロケット211の歯の先端などの基準点がガイド線GL上に位置するように、撮像装置110の向きを調整する。より具体的には、画像処理装置150は、たとえば、距離センサ120から得られた距離の情報に基づいて、ガイド線GL上におけるスプロケット211の輪郭を基準点として検出する。 In process P5, in which the image processing device 150 determines whether the conditions for automatic photography are satisfied, the image processing device 150 displays a guide line GL on the display device 140, for example, as shown in the upper diagram of FIG. 5. The operator adjusts the orientation of the imaging device 110 so that a reference point, such as the tip of the tooth of the sprocket 211, is positioned on the guide line GL, for example, as shown in the lower diagram of FIG. 5. More specifically, the image processing device 150 detects the outline of the sprocket 211 on the guide line GL as a reference point, for example, based on distance information obtained from the distance sensor 120.

この場合、処理P5において、画像処理装置150は、たとえば図5に示すように、ガイド線GL上の基準点の数が3点以上から2点になったと判定すると、条件を満足した(YES)と判定する。すると、画像処理装置150は、たとえば、距離センサ120からスプロケット211の基準点の座標を取得するとともに、撮像装置110によって被写体であるスプロケット211の対象面211fの画像を撮影する処理P8を実行する。 In this case, in process P5, when the image processing device 150 determines that the number of reference points on the guide line GL has decreased from three or more to two, as shown in FIG. 5, it determines that the condition is satisfied (YES). Then, the image processing device 150 executes process P8, for example, to acquire the coordinates of the reference point of the sprocket 211 from the distance sensor 120 and to capture an image of the target surface 211f of the sprocket 211, which is the subject, using the imaging device 110.

一方、前述の二次回転を行うか否かを判定する処理P2において、二次回転の有無が「無」(NO)の場合、画像処理装置150は、たとえば、第1点群G1、第2点群G2および第3点群G3を含む複数の点群を表示する処理P6を実行する。この処理P6において、画像処理装置150は、たとえば撮像装置110または距離センサ120などの光源から可視光レーザを照射して、対象面211f上に第1点群G1、第2点群G2および第3点群G3の各々の複数の点pを表示装置140に表示する。さらに、画像処理装置150は、オペレータが撮影操作を行ったか否かを判定する処理P7を実行する。 On the other hand, in process P2 for determining whether or not to perform the secondary rotation, if the presence or absence of secondary rotation is "no" (NO), the image processing device 150 executes process P6 for displaying, for example, a plurality of point clouds including the first point cloud G1, the second point cloud G2, and the third point cloud G3. In this process P6, the image processing device 150 irradiates a visible light laser from a light source such as the imaging device 110 or the distance sensor 120, and displays a plurality of points p of each of the first point cloud G1, the second point cloud G2, and the third point cloud G3 on the target surface 211f on the display device 140. Furthermore, the image processing device 150 executes process P7 for determining whether or not the operator has performed a shooting operation.

オペレータは、たとえば、表示装置140に表示された第1点群G1、第2点群G2および第3点群G3が対象面211f上に適切に位置するように撮像装置110の向きを調整して、撮像装置110のシャッターボタンを押下するなど、手動による撮影操作を行う。画像処理装置150は、オペレータが撮像操作を行った(YES)と判定すると、撮像装置110によりスプロケット211の対象面211fの画像を撮影する処理P8を実行する。画像処理装置150は、処理P7において、オペレータが撮像操作を行っていない(NO)と判定すると、判定処理P7を繰り返す。 The operator performs manual shooting operations, for example by adjusting the orientation of the imaging device 110 so that the first point group G1, the second point group G2, and the third point group G3 displayed on the display device 140 are appropriately positioned on the target surface 211f, and pressing the shutter button of the imaging device 110. If the image processing device 150 determines that the operator has performed an imaging operation (YES), it executes process P8 in which the imaging device 110 captures an image of the target surface 211f of the sprocket 211. If the image processing device 150 determines in process P7 that the operator has not performed an imaging operation (NO), it repeats the determination process P7.

また、前述の自動撮影の有無を判定する処理P4において、画像処理装置150は、自動撮影の有無が「無」(NO)の場合、オペレータが撮影操作を行ったか否かを判定する処理P7を実行する。オペレータは、たとえば、前述の処理P3で撮像装置110のファインダーなどの表示装置140に表示されたガイド線GLが、スプロケット211の歯先の基準点上に位置するように、撮像装置110の向きを調整して、手動による撮像操作を行う。 In addition, in the process P4 for determining whether automatic photography is performed as described above, if the determination of whether automatic photography is performed is "no" (NO), the image processing device 150 executes process P7 for determining whether the operator has performed a photography operation. The operator performs manual photography operation by adjusting the orientation of the imaging device 110 so that the guide line GL displayed on the display device 140, such as the viewfinder of the imaging device 110 in the process P3 described above, is positioned on the reference point of the tooth tip of the sprocket 211.

画像処理装置150は、オペレータが撮像操作を行った(YES)と判定すると、撮像装置110によりスプロケット211の対象面211fの画像を撮影する処理P8を実行し、オペレータが撮像操作を行っていない(NO)と判定すると、判定処理P7を繰り返す。 If the image processing device 150 determines that the operator has performed an imaging operation (YES), it executes process P8, in which the imaging device 110 captures an image of the target surface 211f of the sprocket 211, and if it determines that the operator has not performed an imaging operation (NO), it repeats determination process P7.

次に、画像処理装置150は、たとえば、図4に示すように、処理P8で撮影したスプロケット211の対象面211fの画像と、第1点群G1、第2点群G2および第3点群G3とを、表示装置140の画面上に重ねて表示する処理P9を実行する。さらに、画像処理装置150は、たとえば、撮像の成否を取得する処理P10を実行する。 Next, the image processing device 150 executes a process P9, for example, as shown in FIG. 4, to superimpose the image of the target surface 211f of the sprocket 211 captured in process P8 on the screen of the display device 140 along with the first point group G1, the second point group G2, and the third point group G3. Furthermore, the image processing device 150 executes a process P10 to acquire, for example, the success or failure of the image capture.

この処理P10において、画像処理装置150は、たとえば、表示装置140に撮像の成否を確認するための文字、アイコン、画像などの確認表示を表示させる。オペレータは、たとえば、表示装置140上で可視化された第1点群G1、第2点群G2および第3点群G3の各点pと、確認表示を視認する。オペレータは、たとえば、表示装置140上の確認表示に従って、タッチパネルを押下するなどして、入力装置130に撮像の成否を入力する。 In this process P10, the image processing device 150, for example, causes the display device 140 to display a confirmation display such as text, an icon, or an image for confirming whether the image capture was successful. The operator, for example, visually checks each point p of the first point group G1, the second point group G2, and the third point group G3 visualized on the display device 140, and the confirmation display. The operator, for example, inputs the success or failure of the image capture to the input device 130 by pressing a touch panel in accordance with the confirmation display on the display device 140.

より具体的には、オペレータは、たとえば、各点pがスプロケット211の対象面211f上に位置する場合に、入力装置130に撮像の成功を表す「はい」を入力し、それ以外の場合は入力装置130に撮像の失敗を表す「いいえ」を入力する。画像処理装置150は、オペレータが入力装置130を介して入力した撮像の成否を、入力装置130から取得する。 More specifically, for example, if each point p is located on the target surface 211f of the sprocket 211, the operator inputs "yes" to the input device 130, indicating that the imaging was successful, and otherwise inputs "no" to the input device 130, indicating that the imaging was unsuccessful. The image processing device 150 acquires from the input device 130 the success or failure of the imaging input by the operator via the input device 130.

次に、画像処理装置150は、入力装置130から取得した撮像の成否が、成功であるか否かを判定する処理P11を実行する。この処理P11において、画像処理装置150は、処理P10で取得した撮像の成否が、成功ではない(NO)と判定すると、前述の処理P2へ戻る。一方、この処理P11において、画像処理装置150は、処理P10で取得した撮像の成否が、成功である(YES)と判定すると、第1平均平面を算出する処理P12を実行する。 Next, the image processing device 150 executes process P11 to determine whether the imaging acquired from the input device 130 was successful. In this process P11, if the image processing device 150 determines that the imaging acquired in process P10 was not successful (NO), it returns to the above-mentioned process P2. On the other hand, in this process P11, if the image processing device 150 determines that the imaging acquired in process P10 was successful (YES), it executes process P12 to calculate the first mean plane.

図6は、処理P12で算出される第1平面群PG1と、その第1平面群PG1に含まれる各平面の単位法線ベクトルNV1,NV2,・・・,NVnの概念図である。処理P12において、画像処理装置150は、たとえば、距離センサ120から、図4に示す第1点群G1の各点pまでの距離と、第2点群G2の各点pまでの距離と、第3点群G3の各点pまでの距離とを取得する。 Figure 6 is a conceptual diagram of the first plane group PG1 calculated in process P12, and the unit normal vectors NV1, NV2, ..., NVn of each plane included in the first plane group PG1. In process P12, the image processing device 150 acquires, for example, the distance from the distance sensor 120 to each point p in the first point group G1 shown in Figure 4, the distance to each point p in the second point group G2, and the distance to each point p in the third point group G3.

画像処理装置150は、たとえば、距離センサ120を原点として、X軸、Y軸、およびZ軸からなる直交座標系を設定し、各点pの座標を算出する。さらに、画像処理装置150は、第1点群G1から選択した一の点pと、第2点群G2から選択した一の点pと、第3点群G3から選択した一の点pとに基づいて、平面を算出する平面算出処理を、すべての点pの組み合わせに対して実行する。これにより、画像処理装置150は、図6に示すような第1平面群PG1を算出することができる。 The image processing device 150, for example, sets an orthogonal coordinate system consisting of the X-axis, Y-axis, and Z-axis with the distance sensor 120 as the origin, and calculates the coordinates of each point p. Furthermore, the image processing device 150 executes a plane calculation process for all combinations of points p, in which a plane is calculated based on one point p selected from the first point group G1, one point p selected from the second point group G2, and one point p selected from the third point group G3. This allows the image processing device 150 to calculate the first plane group PG1 as shown in FIG. 6.

図7は、処理P12において画像処理装置150が実行する平面算出処理の説明図である。たとえば、第1点群G1に含まれる任意の点p1の座標を(x1,y1,z1)とし、第2点群G2に含まれる任意の点p2の座標を(x2,y2,z2)とし、第3点群G3に含まれる任意の点p3の座標を(x3,y3,z3)とする。これらの点p1、点p2および点p3を通る平面の式をax+by+cz+d=0とすると、この平面の単位法線ベクトルNVは、ベクトルV=(a,b,c)に平行である。 Figure 7 is an explanatory diagram of the plane calculation process executed by the image processing device 150 in process P12. For example, the coordinates of an arbitrary point p1 included in the first point group G1 are (x1, y1, z1), the coordinates of an arbitrary point p2 included in the second point group G2 are (x2, y2, z2), and the coordinates of an arbitrary point p3 included in the third point group G3 are (x3, y3, z3). If the equation of the plane passing through these points p1, p2, and p3 is ax + by + cz + d = 0, the unit normal vector NV of this plane is parallel to the vector V = (a, b, c).

ここで、ベクトルα=(x,y,z)=(x2-x1,y2-y1,z2-z1)とし、ベクトルα'=(x',y',z')=(x3-x1,y3-y1,z3-z1)とすると、これらの外積は、α×α'=(yz'-y'z,zx'-z'x,xy'-x'y)となる。このベクトルαとベクトルα'の外積α×α'は、上記平面の単位法線ベクトルNVと平行である。 Here, if vector α = (x, y, z) = (x2 - x1, y2 - y1, z2 - z1) and vector α' = (x', y', z') = (x3 - x1, y3 - y1, z3 - z1), then the cross product of these is α x α' = (yz' - y'z, zx' - z'x, xy' - x'y). The cross product α x α' of vector α and vector α' is parallel to the unit normal vector NV of the above plane.

したがって、(a,b,c)=α×α'とすれば、d=-(ax1+by1+cz1)となる(∵ax1+by1+cz1+d=0)。以上により、上記平面の式が求められ、単位法線ベクトルNVは、(α×α')/|α×α'|となる。なお、この単位法線ベクトルNVの-1倍も、上記平面に対して反対側の単位法線ベクトルとなるが、第1点群G1、第2点群G2、第3点群G3を固定すれば、n個の単位法線ベクトルNVのすべてが、上記平面に対して同じ側に揃う。 Therefore, if (a, b, c) = α x α', then d = -(ax1 + by1 + cz1) (∵ ax1 + by1 + cz1 + d = 0). From the above, the equation of the above plane can be found, and the unit normal vector NV is (α x α') / |α x α'|. Note that -1 times this unit normal vector NV also becomes a unit normal vector on the opposite side of the above plane, but if the first point group G1, the second point group G2, and the third point group G3 are fixed, all of the n3 unit normal vectors NV will be aligned on the same side of the above plane.

次に、画像処理装置150は、たとえば、スプロケット211の対象面211fの凹凸を、各点pの色で表示する処理P13を実行する。図8は、この処理P13で画像処理装置150によって算出される第1平均平面H1と平均ベクトルV1の概念図である。 Next, the image processing device 150 executes a process P13 in which, for example, the unevenness of the target surface 211f of the sprocket 211 is displayed in the color of each point p. Figure 8 is a conceptual diagram of the first mean plane H1 and mean vector V1 calculated by the image processing device 150 in this process P13.

この処理P13において、画像処理装置150は、まず、第1平均平面H1を算出する。第1平均平面H1は、第1平面群PG1の全平面の単位法線ベクトルNVを平均した平均ベクトルV1を法線ベクトルとし、かつ第1点群G1と第2点群G2と第3点群G3とに含まれる全点pとの距離の総和が最小となる平面である。第1点群G1と第2点群G2と第3点群G3とに含まれる全点pの数は、たとえば3n個である。第1平均平面H1の式をax+by+cz+d=0とすると、上記の平均ベクトルからa,b,cが求められ、dは最小絶対値法などによって容易に算出することができる。 In this process P13, the image processing device 150 first calculates a first average plane H1. The first average plane H1 is a plane whose normal vector is an average vector V1 obtained by averaging the unit normal vectors NV of all the planes in the first plane group PG1, and which has a minimum sum of distances to all the points p included in the first point group G1, the second point group G2, and the third point group G3. The number of all the points p included in the first point group G1, the second point group G2, and the third point group G3 is, for example, 3n. If the formula for the first average plane H1 is ax+by+cz+d=0, a, b, and c can be found from the above average vector, and d can be easily calculated using the least absolute value method or the like.

さらに処理P13において、画像処理装置150は、あらかじめ設定され、または処理P1で新たに設定されて記憶装置153に記憶されたしきい値を取得する。このしきい値は、前述のように、第1平均平面H1に対する凹凸の高さhのしきい値である。画像処理装置150は、第1点群G1、第2点群G2および第3点群G3の各点pの座標に基づいて、距離センサ120からの距離が第1平均平面H1よりも近く、第1平均平面H1から突出する高さhがしきい値Th[mm]以上である点pを、隆起点として認識する。 Furthermore, in process P13, the image processing device 150 acquires a threshold value that has been set in advance or that has been newly set in process P1 and stored in the storage device 153. As described above, this threshold value is the threshold value of the height h of the unevenness relative to the first mean plane H1. Based on the coordinates of each point p in the first point group G1, the second point group G2, and the third point group G3, the image processing device 150 recognizes, as a protruding point, a point p whose distance from the distance sensor 120 is closer than the first mean plane H1 and whose protruding height h from the first mean plane H1 is equal to or greater than the threshold value Th [mm].

また、画像処理装置150は、第1点群G1、第2点群G2および第3点群G3の各点pの座標に基づいて、距離センサ120からの距離が第1平均平面H1よりも遠く、第1平均平面H1から陥没する高さhがしきい値Td[mm]以上である点を、陥没点として認識する。画像処理装置150は、たとえば、隆起点と陥没点とそれ以外の点とを、異なる色で表示装置140に表示させる。また、画像処理装置150は、たとえば、隆起点が第1平均平面H1から突出する高さと、陥没点が第1平均平面H1から陥没する高さとを、表示装置140に表示させる。 Furthermore, based on the coordinates of each point p in the first point group G1, the second point group G2, and the third point group G3, the image processing device 150 recognizes as a sunken point a point whose distance from the distance sensor 120 is farther than the first mean plane H1 and whose height h of the sunken point from the first mean plane H1 is equal to or greater than a threshold value Td [mm]. For example, the image processing device 150 causes the display device 140 to display the protruding points, the sunken points, and other points in different colors. For example, the image processing device 150 causes the display device 140 to display the heights at which the protruding points protrude from the first mean plane H1 and the heights at which the sunken points sink from the first mean plane H1.

次に、画像処理装置150は、操作内容を取得する処理P14を実行する。この処理P14において、画像処理装置150は、たとえば、表示装置140に操作内容の選択肢を示す画像、文字、またはアイコンなどを表示させる。操作内容の選択肢は、たとえば、「再撮影」、「しきい値の変更」、「次の処理へ進む」などである。画像処理装置150は、たとえば、タッチパネルなどの入力装置130を介して、オペレータが入力した操作内容を取得する。 Next, the image processing device 150 executes process P14 to acquire the operation content. In this process P14, the image processing device 150 causes the display device 140 to display, for example, images, characters, or icons indicating options for the operation content. The options for the operation content are, for example, "take a picture again," "change the threshold," and "proceed to the next process." The image processing device 150 acquires the operation content input by the operator via the input device 130, for example, a touch panel.

オペレータは、たとえば、処理P13で表示装置140に表示された隆起点が、スプロケット211の対象面211fに付着した泥などの除去可能な異物によるものと認識した場合、その異物を除去した後に「再撮影」の選択肢を選択することができる。また、撮像装置110の被写体の対象面が、たとえば、疑似的に平面とみなせるような径の大きい球の表面の一部である場合、凹凸がなくても対象面上の点pが隆起点や陥没点として認識されることが考えられる。このような場合、オペレータが「次の処理へ進む」の選択肢を選択することで、隆起点や陥没点として認識された点pを除外することなく、対象面上のすべての点pを使用することができる。 For example, if the operator recognizes that the raised points displayed on the display device 140 in process P13 are due to removable foreign matter such as mud adhering to the target surface 211f of the sprocket 211, the operator can select the option to "take a new photograph" after removing the foreign matter. Also, if the target surface of the subject of the imaging device 110 is, for example, part of the surface of a large-diameter sphere that can be regarded as a pseudo-flat surface, it is possible that a point p on the target surface will be recognized as a raised point or a depressed point even if there are no bumps or depressions. In such a case, the operator can select the option to "proceed to next process" to use all points p on the target surface without excluding points p recognized as raised points or depressed points.

次に、画像処理装置150は、再撮影を行うか否かを判定する処理P15を実行する。この処理P15において、画像処理装置150は、前述の処理P14で取得した操作内容が「再撮影」である(YES)と判定すると、前述の処理P2に戻る。また、この処理P15において、画像処理装置150は、前述の処理P14で取得した操作内容が「再撮影」ではない(NO)と判定すると、次の処理P16を実行する。 Next, the image processing device 150 executes process P15 to determine whether or not to perform re-shooting. In this process P15, if the image processing device 150 determines that the operation content acquired in the above-mentioned process P14 is "re-shooting" (YES), it returns to the above-mentioned process P2. Also, in this process P15, if the image processing device 150 determines that the operation content acquired in the above-mentioned process P14 is not "re-shooting" (NO), it executes the next process P16.

処理P16において、画像処理装置150は、前述の処理P14で取得した操作内容が「しきい値の変更」であるか否かを判定する。画像処理装置150は、操作内容が「しきい値の変更」である(YES)と判定すると、前述の処理P1と同様に、しきい値を取得する処理P17を実行して、前述の処理P13に戻る。また、画像処理装置150は、操作内容が「しきい値の変更」ではない(NO)と判定すると、除外の有無を取得する処理P18を実行する。 In process P16, the image processing device 150 determines whether the operation content acquired in the above-mentioned process P14 is "changing the threshold value." If the image processing device 150 determines that the operation content is "changing the threshold value" (YES), it executes process P17 to acquire the threshold value, as in the above-mentioned process P1, and returns to the above-mentioned process P13. If the image processing device 150 determines that the operation content is not "changing the threshold value" (NO), it executes process P18 to acquire the presence or absence of exclusion.

処理P18において、画像処理装置150は、たとえば、表示装置140に選択肢として「正常点」と「全点」を表示させる。オペレータは、たとえば、タッチパネルを押下するなど、入力装置130を介して選択肢を選択する。画像処理装置150は、オペレータが入力した選択肢を入力装置130から取得する。 In process P18, the image processing device 150, for example, causes the display device 140 to display "normal points" and "all points" as options. The operator selects an option via the input device 130, for example, by pressing a touch panel. The image processing device 150 acquires the option input by the operator from the input device 130.

次に、画像処理装置150は、除外の有無を判定する処理P19を実行する。前述の処理P18で「全点」の選択肢が取得された場合、画像処理装置150は、処理P19において、除外なし(NO)と判定し、前述の処理P12で算出した第1平均平面H1とその法線ベクトルである平均ベクトルV1を取得する処理P20を実行する。この場合、画像処理装置150は、次の回転角度を算出する処理P22において、第1平均平面H1を使用する。 Next, the image processing device 150 executes process P19 to determine whether or not exclusion is required. If the option "all points" is obtained in the above-mentioned process P18, the image processing device 150 determines in process P19 that there is no exclusion (NO), and executes process P20 to obtain the first mean plane H1 calculated in the above-mentioned process P12 and the mean vector V1, which is its normal vector. In this case, the image processing device 150 uses the first mean plane H1 in process P22 to calculate the next rotation angle.

一方、前述の処理P18で「正常点」の選択肢が取得された場合、画像処理装置150は、処理P19において、除外あり(YES)と判定して、第2平均平面H2を算出する処理P21を実行する。 On the other hand, if the option "normal point" is obtained in the above-mentioned process P18, the image processing device 150 determines in process P19 that there is exclusion (YES) and executes process P21 to calculate the second mean plane H2.

図9は、第2平面群PG2を算出する処理P21の概念図である。前述の処理P13において隆起点または陥没点として認識した点pを除外して、それ以外の点pを使用する以外は、前述の処理P12で算出した第1平面群PG1と同様に、第2平面群PG2を算出する。このように、隆起点や陥没点を除外することで、たとえば、図6に示す第1平面群PG1において他の複数の平面の単位法線ベクトルNV1,NV2,NV3に対して大きく角度が異なる単位法線ベクトルNVnを有する平面を、図9に示す第2平面群PG2から除外することができる。 Figure 9 is a conceptual diagram of process P21 for calculating the second plane group PG2. The second plane group PG2 is calculated in the same manner as the first plane group PG1 calculated in the above-mentioned process P12, except that points p recognized as protruding points or depressed points in the above-mentioned process P13 are excluded and other points p are used. By excluding protruding points and depressed points in this way, for example, a plane having a unit normal vector NVn whose angle is significantly different from the unit normal vectors NV1, NV2, and NV3 of the other planes in the first plane group PG1 shown in Figure 6 can be excluded from the second plane group PG2 shown in Figure 9.

さらに、処理P21において、画像処理装置150は、前述の処理P13で算出した第1平均平面H1と同様に、第2平均平面H2を算出する。この場合、画像処理装置150は、次の回転角度を算出する処理P22において、第2平均平面H2を使用する。第2平均平面H2は、第2平面群PG2の全平面の単位法線ベクトルNVを平均した平均ベクトルV2を法線ベクトルとし、かつ第1点群G1と第2点群G2と第3点群G3の全点pから隆起点および陥没点を除いた残りの点pとの距離の総和が最小となる平面である。 Furthermore, in process P21, the image processing device 150 calculates a second mean plane H2 in the same manner as the first mean plane H1 calculated in the above-mentioned process P13. In this case, the image processing device 150 uses the second mean plane H2 in process P22, which calculates the next rotation angle. The second mean plane H2 is a plane whose normal vector is the average vector V2 obtained by averaging the unit normal vectors NV of all the planes in the second plane group PG2, and which is the plane that has the smallest sum of distances to the remaining points p, excluding the protruding points and the depressed points, from all the points p in the first point group G1, the second point group G2, and the third point group G3.

次に、画像処理装置150は、正対画像ではない第1平均平面H1または第2平均平面H2を、正対画像に変換するための回転角度を算出する処理P22を実行する。以下、この処理P22を、図10から図14を参照して説明する。ここで、正対画像とは、たとえば、撮像装置110の撮像面に正対する画像である。また、撮像面とは、たとえば、撮像素子の受光面であり、撮像装置110のレンズの光軸に垂直な面である。 Next, the image processing device 150 executes a process P22 to calculate a rotation angle for converting the first mean plane H1 or the second mean plane H2, which is not a front-facing image, into a front-facing image. This process P22 will be described below with reference to Figs. 10 to 14. Here, a front-facing image is, for example, an image that faces the imaging surface of the imaging device 110. The imaging surface is, for example, the light receiving surface of an imaging element, which is a surface perpendicular to the optical axis of the lens of the imaging device 110.

画像処理装置150は、たとえば、図10に示すように撮像装置110によって撮影された画像Gの全座標(x,y)に対応する第1平均平面H1または第2平均平面H2上の点(x',y',z')を求める。この点(x',y',z')は、撮像装置110のレンズの歪みがないものとみなせる場合、(x,y)からレンズへ向かうベクトルに基づいて求めてもよい。また、点(x',y',z')は、撮像装置110のレンズの歪みを考慮して求めてもよい。 The image processing device 150, for example, determines a point (x', y', z') on the first mean plane H1 or the second mean plane H2 that corresponds to all coordinates (x, y) of the image G captured by the imaging device 110 as shown in FIG. 10. If it is assumed that there is no distortion of the lens of the imaging device 110, this point (x', y', z') may be determined based on a vector from (x, y) toward the lens. Furthermore, the point (x', y', z') may be determined taking into account the distortion of the lens of the imaging device 110.

正対画像ではない第1平均平面H1または第2平均平面H2が、式:a+b+c+d=0で表され、(a,b,c)≠(0,0,c)であるとする。この場合、たとえば、図11に示すように、z←z-d/cとして座標系を取り直し、a,b,cを正規化して、式:ax+by+cz+d=0かつa+b+c=1で表される原点を通る平面としても一般性を失わない。この平面上の任意の点pは、
(c,0,-a)⊥(a,b,c)、
(0,c,-b)⊥(a,b,c)、
媒介変数s,tにより、以下の式(1)で表される。
Assume that the first average plane H1 or the second average plane H2, which is not a frontal image, is expressed by the formula: a x + by + c z + d = 0, and (a, b, c) ≠ (0, 0, c). In this case, for example, as shown in Figure 11, the coordinate system can be reset as z ← z-d/c, and a, b, and c can be normalized to a plane passing through the origin expressed by the formula: a x + by + c z + d = 0 and a 2 + b 2 + c 2 = 1, without loss of generality. Any point p on this plane is expressed by
(c, 0, -a) ⊥ (a, b, c),
(0, c, -b)⊥(a, b, c),
Using parameters s and t, it is expressed by the following equation (1).

p(x,y)=s(c,0,-a)+t(0,c,-b) ・・・(1) p(x,y)=s(c,0,-a)+t(0,c,-b)...(1)

これは、図11に示す二重三角形の平面を構成する。
この点pを、θ=arctan(a/c)として、y軸まわりに回転角度θで回転すると、以下の式(2)で表される点p'が得られる。
This constitutes the plane of the double triangle shown in FIG.
When this point p is rotated around the y axis by a rotation angle θ, where θ=arctan(a/c), a point p′ expressed by the following equation (2) is obtained.

p'(x',y')=s(c・secθ,0,0)
+t(b・sinθ,c,-b・cosθ) ・・・(2)
p'(x',y')=s(c・secθ,0,0)
+t(b・sinθ,c,−b・cosθ)...(2)

この点p'は、x軸を含み(t=0のときx軸となる)、図12に示す二重三角形の平面を構成する。この点p'を、φ=arctan(b・cosθ/c)として、x軸まわりに回転角度φで回転すると、以下の式(3)で表される点p"が得られる。 This point p' includes the x-axis (it becomes the x-axis when t = 0) and forms the plane of the double triangle shown in Figure 12. If this point p' is rotated around the x-axis by a rotation angle φ, where φ = arctan(b · cos θ/c), then point p" is obtained, as expressed by the following equation (3).

p"(x",y")=s(c・secθ,0,0)
+t(b・sinθ,b・cosθ・sinφ+c・cosφ,-b・cosθ)
=(s・D+t・a・b/D,t・c/D,0) ・・・(3)
p"(x",y")=s(c・secθ,0,0)
+t (b・sinθ, b・cosθ・sinφ+c・cosφ, -b・cosθ)
=(s・D+t・a・b/D, t・c/D, 0) ...(3)

ただし、式(3)において、D=(a+c1/2である。この点p"は、xy平面に一致するため(z座標は常に0)、正対画像であり、図13に示す二重三角形の平面を構成する。以上のように、処理P22において、画像処理装置150は、たとえば、第1平均平面H1または第2平均平面H2を撮像装置110の撮像面に平行になるように回転させて正対画像に変換するための回転角度θ,φを算出する。 However, in equation (3), D = ( a2 + c2 ) 1/2 . Since this point p" coincides with the xy plane (z coordinate is always 0), it is a front-facing image and forms the plane of the double triangle shown in Figure 13. As described above, in process P22, the image processing device 150 calculates the rotation angles θ and φ for converting the first mean plane H1 or the second mean plane H2 into a front-facing image by rotating it so that it is parallel to the imaging surface of the imaging device 110.

次に、画像処理装置150は、図3Bに示すように、正対画像を算出する処理P23を実行する。この処理P23において、画像処理装置150は、図14に示すように、撮像装置110の撮像面に平行になるように回転させた第1平均平面H1または第2平均平面H2上において、撮像装置110によって撮影された画像Gの全座標(x,y)に対応する点(x",y",z")を求める。 Next, the image processing device 150 executes a process P23 for calculating a front-facing image, as shown in FIG. 3B. In this process P23, the image processing device 150 obtains a point (x", y", z") corresponding to all coordinates (x, y) of the image G captured by the imaging device 110 on the first mean plane H1 or the second mean plane H2 rotated so as to be parallel to the imaging surface of the imaging device 110, as shown in FIG. 14.

正対画像ではないスプロケット211の対象面211fの画像を正対画像に変換するには、座標(x,y)の画素の色を、座標(x",y")の画素に移す。画素の色は、一般に、三原色(R,G,B)のそれぞれの数値で表される。x,yが正数値であっても、x",y"が正数値になるとは限らない。 To convert the image of the target surface 211f of the sprocket 211, which is not a front-on image, into a front-on image, the color of the pixel at coordinates (x, y) is transferred to the pixel at coordinates (x", y"). The color of a pixel is generally represented by the numerical values of each of the three primary colors (R, G, B). Even if x and y are positive values, this does not necessarily mean that x", y" will be positive values.

図15に示す例では、たとえば、変換前の画像における座標(x,y)の画素の領域に、変換後の画像における座標(x",y")の領域が対応している。この変換後の画像における座標(x",y")の領域は、たとえば、変換後の画像における4つの画素にまたがっている。この場合、変換前の画像の画素の三原色(R,G,B)の数値に、その変換前の画像の画素が変換後の画像の各画素と重複する面積の割合を乗じた値を、変換後の画像の各画素の三原色(R,G,B)の数値に加算する。 In the example shown in FIG. 15, for example, the area of the pixel with coordinates (x, y) in the pre-conversion image corresponds to the area of coordinates (x", y") in the post-conversion image. This area of coordinates (x", y") in the post-conversion image spans, for example, four pixels in the post-conversion image. In this case, the numerical values of the three primary colors (R, G, B) of the pixel in the pre-conversion image are multiplied by the percentage of the area that the pixel in the pre-conversion image overlaps with each pixel in the post-conversion image, and the result is added to the numerical values of the three primary colors (R, G, B) of each pixel in the post-conversion image.

より具体的には、図15に示す例において、変換後の画像における座標(x",y")の領域が、変換後の画像における4つの画素のそれぞれの面積の1/4ずつ重複しているとする。また、変換前の画像における座標(x,y)の画素の三原色の数値が、たとえば、(R,G,B)=(128,64,192)であるとする。この場合、変換前の画像における座標(x,y)の画素の三原色の数値の1/4である(R,G,B)=(32,16,48)を、変換後の画像における4つの画素のそれぞれの三原色(R,G,B)の数値に加算する。これにより、変換後の画像における4つの画素の三原色の数値を求めることができる。 More specifically, in the example shown in FIG. 15, the area at coordinates (x", y") in the converted image overlaps with 1/4 of the area of each of the four pixels in the converted image. Also, the numerical values of the three primary colors of the pixel at coordinates (x, y) in the pre-conversion image are, for example, (R, G, B) = (128, 64, 192). In this case, (R, G, B) = (32, 16, 48), which is 1/4 of the numerical values of the three primary colors of the pixel at coordinates (x, y) in the pre-conversion image, is added to the numerical values of the three primary colors (R, G, B) of each of the four pixels in the converted image. This makes it possible to determine the numerical values of the three primary colors of the four pixels in the converted image.

以上のように、画像処理装置150は、正対画像を算出する処理P23において、変換前の画像における座標(x,y)の画素の三原色の数値を、変換後の画像における画素の三原色の数値に対応させる。これにより、撮像装置110によって撮影されたスプロケット211の対象面211fの画像から、第1平均平面H1または第2平均平面H2を撮像装置110の撮像面に正対させた正対画像を生成することができる。 As described above, in process P23 for calculating a front-facing image, the image processing device 150 makes the numerical values of the three primary colors of the pixel at coordinates (x, y) in the image before conversion correspond to the numerical values of the three primary colors of the pixel in the image after conversion. This makes it possible to generate a front-facing image in which the first mean plane H1 or the second mean plane H2 is directly opposed to the imaging surface of the imaging device 110 from the image of the target surface 211f of the sprocket 211 captured by the imaging device 110.

次に、画像処理装置150は、たとえば、図3Bに示すように、二次回転の有無を判定する処理P24を実行する。この処理P24において、画像処理装置150は、記憶装置にあらかじめ記憶され、または、前述の処理P1で入力された二次回転の有無が「無」である場合、二次回転を行わない(NO)と判定して、図3Aおよび図3Bに示す処理を終了する。 Next, the image processing device 150 executes process P24 to determine whether or not a secondary rotation is to be performed, as shown in FIG. 3B, for example. In this process P24, if the information on whether or not a secondary rotation is to be performed, which is stored in advance in the storage device or input in the above-mentioned process P1, is "no," the image processing device 150 determines that a secondary rotation is not to be performed (NO), and ends the process shown in FIG. 3A and FIG. 3B.

また、処理P24において、画像処理装置150は、記憶装置にあらかじめ記憶され、または、前述の処理P1で入力された二次回転の有無が「有」である場合、二次回転を行う(YES)と判定して、正対画像を算出する処理P25を実行する。 In addition, in process P24, if the secondary rotation information stored in advance in the storage device or input in the above-mentioned process P1 is "Yes," the image processing device 150 determines that secondary rotation will be performed (YES) and executes process P25 to calculate a front-on image.

図16は、二次回転の要否を説明するためのスプロケット211の一部の平面図と、二種類のスプロケット211A,211Bの側面図である。 Figure 16 shows a plan view of a portion of a sprocket 211 to explain whether or not secondary rotation is required, and a side view of two types of sprockets 211A and 211B.

図2に示す作業機械200のスプロケット211としては、たとえば、図16に示すような二種類のスプロケット211A,211Bのいずれかを用いることができる。一方のスプロケット211Aは、たとえば、歯先211tにおける歯幅と歯底211bにおける歯幅とがおおむね等しく、他方のスプロケット211Bは、たとえば、歯先211tにおける歯幅が歯底211bにおける歯幅よりも狭くなっている。 As the sprocket 211 of the work machine 200 shown in FIG. 2, for example, one of two types of sprockets 211A and 211B as shown in FIG. 16 can be used. One of the sprockets, 211A, has, for example, a tooth width at the tooth tip 211t that is roughly equal to the tooth width at the tooth base 211b, and the other sprocket, 211B, has, for example, a tooth width at the tooth tip 211t that is narrower than the tooth width at the tooth base 211b.

歯先211tの歯幅と歯底211bの歯幅とがおおむね等しいスプロケット211Aでは、回転軸に垂直な平面を対象面211fとして画像を撮影し、その画像を正対画像に変換する。これにより、最も摩耗しやすいスプロケット211の歯の部分の状態を適切に評価することができる。 For sprocket 211A, where the tooth width at the tooth tip 211t is roughly equal to the tooth width at the tooth bottom 211b, an image is taken of a plane perpendicular to the rotation axis as the target surface 211f, and the image is converted into a front-on image. This allows the condition of the teeth of sprocket 211, which are most susceptible to wear, to be properly evaluated.

一方、歯先211tの歯幅が歯底211bの歯幅よりも狭いスプロケット211Bでは、回転軸に垂直な平面を対象面211fとして画像を撮影し、その画像を正対画像に変換しても、歯の側面が対象面211fに対して所定の角度Ψで傾斜している。そのため、このままでは、最も摩耗しやすいスプロケット211Bの歯の部分の状態を適切に評価することができない。 On the other hand, in the case of sprocket 211B, where the tooth width at the tooth tip 211t is narrower than the tooth width at the tooth base 211b, even if an image is taken with a plane perpendicular to the rotation axis as the target surface 211f and the image is converted into a front-on image, the side of the tooth is inclined at a certain angle Ψ with respect to the target surface 211f. Therefore, in this state, it is not possible to properly evaluate the condition of the tooth part of sprocket 211B, which is most susceptible to wear.

そこで、歯先211tの歯幅が歯底211bの歯幅よりも狭いスプロケット211Bでは、回転軸に垂直な対象面211fの画像を正対画像に変換し、さらに、その正対画像を所定の角度Ψで回転させる二次回転を行う必要がある。これにより、スプロケット211Bの歯の側面を新たな対象面211f’として、その対象面211f’の正対画像を得ることができる。 Therefore, for sprocket 211B, where the tooth width of the tooth tip 211t is narrower than the tooth width of the tooth bottom 211b, it is necessary to convert the image of target surface 211f perpendicular to the rotation axis into a front-facing image, and then perform a secondary rotation to rotate this front-facing image by a predetermined angle Ψ. This makes it possible to obtain a front-facing image of target surface 211f' by treating the side of the tooth of sprocket 211B as a new target surface 211f'.

より具体的には、前述の処理P8で撮影された図5の下図に示すスプロケット211Bの対象面211fの画像は、前述の処理P12から処理P23を経て、図17の上図に示すような正対画像に変換される。ここで、図17に示すように、正対画像の右方向を正方向とするx軸と、正対画像の上方向を正方向とするy軸と、正対画像に垂直なz軸とを有する直交座標系を設定する。 More specifically, the image of the target surface 211f of the sprocket 211B shown in the lower diagram of Figure 5, captured in the above-mentioned process P8, is converted into a front-facing image as shown in the upper diagram of Figure 17 through the above-mentioned processes P12 to P23. Here, as shown in Figure 17, a Cartesian coordinate system is set with an x-axis whose positive direction is to the right of the front-facing image, a y-axis whose positive direction is to the top of the front-facing image, and a z-axis perpendicular to the front-facing image.

処理P25において、画像処理装置150は、たとえば、図17の上図に示すスプロケット211Bの歯先の基準点を通るガイド線GLがx軸と平行になるように、正対画像をz軸周りに所定の角度λで回転させて、図17の中央に示すような対象面211fの正対画像を得る。画像処理装置150は、さらに、この図17の中央に示すような対象面211fの正対画像をx軸周りに所定の角度Ψで回転させる。 In process P25, the image processing device 150 rotates the front-facing image by a predetermined angle λ around the z-axis so that the guide line GL passing through the reference point of the tooth tip of the sprocket 211B shown in the upper diagram of Figure 17 becomes parallel to the x-axis, to obtain a front-facing image of the target surface 211f as shown in the center of Figure 17. The image processing device 150 further rotates this front-facing image of the target surface 211f as shown in the center of Figure 17 by a predetermined angle Ψ around the x-axis.

これにより、図17の下図に示すように、スプロケット211Bの歯の側面を対象面211f’として、対象面211f’を撮像装置110の撮像面に正対させた二次回転後の正対画像を得ることができる。以上により、処理P25が終了し、画像処理装置150は、図3Aおよび図3Bに示す処理を終了する。なお、正対画像は、記憶装置153に記憶してもよい。 As a result, as shown in the lower diagram of FIG. 17, a front-on image after the secondary rotation can be obtained in which the side of the tooth of the sprocket 211B is set as the target surface 211f' and the target surface 211f' is directly facing the imaging surface of the imaging device 110. This ends process P25, and the image processing device 150 ends the process shown in FIG. 3A and FIG. 3B. The front-on image may be stored in the storage device 153.

以下、本実施形態の画像処理装置150の作用を説明する。 The operation of the image processing device 150 of this embodiment is described below.

たとえば、作業機械200のスプロケット211の摩耗量を測定するなど、機械部品の状態を画像に基づいて評価するためには、評価精度を向上させる観点から、機械部品の正対画像が必要になる。しかし、機械部品は、たとえばスプロケット211のように、対象面211fに凹凸を有する場合や、対象面211fに泥や油などの異物が付着する場合がある。このような機械部品を被写体とした場合、前記従来の画像処理装置は、撮像手段を基準とした機械部品の向きを計測することが困難になり、撮像手段が撮像した画像の斜め撮影による歪みを補正することができないおそれがある。 For example, to evaluate the condition of a mechanical part based on an image, such as measuring the amount of wear on the sprocket 211 of the work machine 200, a front-on image of the mechanical part is required in order to improve the evaluation accuracy. However, a mechanical part, such as the sprocket 211, may have unevenness on the target surface 211f, or may have foreign matter such as mud or oil attached to the target surface 211f. When such a mechanical part is used as a subject, the conventional image processing device described above has difficulty measuring the orientation of the mechanical part based on the imaging means, and may not be able to correct distortion caused by oblique shooting of the image captured by the imaging means.

これに対し、本実施形態の画像処理装置150は、対象面211fの画像を撮像装置110から取得するとともに対象面211fとの距離を距離センサ120から取得して対象面211fの画像を正対画像に変換する装置であって、以下のような機能を有している。画像処理装置150は、対象面211fに互いに離隔した第1点群G1と第2点群G2と第3点群G3とを設定し、距離センサ120から第1点群G1の各点pまでの距離と第2点群G2の各点pまでの距離と第3点群G3の各点pまでの距離とを取得する。また、画像処理装置150は、第1点群G1から選択した一の点pと第2点群G2から選択した一の点pと第3点群G3から選択した一の点pとに基づいて平面を算出する平面算出処理をすべての点の組み合わせに対して実行して第1平面群PG1を算出する。また、画像処理装置150は、第1平面群PG1の全平面の単位法線ベクトルNVを平均した平均ベクトルV1を法線ベクトルとし、かつ第1点群G1と第2点群G2と第3点群G3とに含まれる全点pとの距離の総和が最小となる第1平均平面H1を算出する。そして、画像処理装置150は、第1平均平面H1に基づいて対象面211fの画像を正対画像に変換する。 In contrast, the image processing device 150 of this embodiment is a device that acquires an image of the target surface 211f from the imaging device 110 and acquires the distance from the target surface 211f from the distance sensor 120 to convert the image of the target surface 211f into a front-facing image, and has the following functions. The image processing device 150 sets a first point group G1, a second point group G2, and a third point group G3 that are spaced apart from each other on the target surface 211f, and acquires the distance from the distance sensor 120 to each point p of the first point group G1, the distance to each point p of the second point group G2, and the distance to each point p of the third point group G3. The image processing device 150 also executes a plane calculation process for all combinations of points to calculate a plane based on one point p selected from the first point group G1, one point p selected from the second point group G2, and one point p selected from the third point group G3, to calculate the first plane group PG1. The image processing device 150 also calculates a first average plane H1 that uses an average vector V1 obtained by averaging the unit normal vectors NV of all planes in the first plane group PG1 as a normal vector and that minimizes the sum of the distances between the first point group G1, the second point group G2, and the third point group G3 and all points p. The image processing device 150 then converts the image of the target surface 211f into a front-facing image based on the first average plane H1.

このような構成により、本実施形態の画像処理装置150は、被写体であるスプロケット211などの機械部品の凹凸を有する対象面211fを斜めから撮影した画像を、撮像装置110の撮像面に対象面211fを正対させた正対画像に変換することができる。より具体的には、本実施形態の画像処理装置150は、前述のように、対象面211fに互いに離隔した第1点群G1と第2点群G2と第3点群G3とを設定して第1平面群PG1を算出し、さらに第1平面群PG1から第1平均平面H1を算出する。これにより、対象面211fの局所的な凹凸や異物の影響が希釈され、僅少化され、または除去され、対象面211fに実質的に平行な第1平均平面H1を得ることができる。この第1平均平面H1に基づいて、対象面211fの画像を正対画像に変換することで、凹凸を有する対象面211fを斜めから撮影した画像を正対画像に変換することができる。 With this configuration, the image processing device 150 of this embodiment can convert an image of the target surface 211f having unevenness of a machine part such as a sprocket 211, which is a subject, photographed obliquely into a front-facing image in which the target surface 211f is directly faced to the imaging surface of the imaging device 110. More specifically, as described above, the image processing device 150 of this embodiment calculates a first plane group PG1 by setting a first point group G1, a second point group G2, and a third point group G3 that are spaced apart from each other on the target surface 211f, and further calculates a first average plane H1 from the first plane group PG1. As a result, the influence of local unevenness or foreign matter on the target surface 211f is diluted, reduced, or removed, and a first average plane H1 that is substantially parallel to the target surface 211f can be obtained. By converting the image of the target surface 211f into a front-facing image based on this first average plane H1, an image of the target surface 211f photographed obliquely into a front-facing image can be converted.

また、本実施形態の画像処理装置150は、第1点群G1と第2点群G2と第3点群G3とにそれぞれn個の点を設定し、平面算出処理によってn個の平面を含む第1平面群PG1を算出する。このような構成により、本実施形態の画像処理装置150は、第1点群G1と第2点群G2と第3点群G3とが、それぞれ等しい数の点pを有することになり、より平均的な第1平面群PG1を算出することができる。 Moreover, the image processing device 150 of this embodiment sets n points in each of the first point group G1, the second point group G2, and the third point group G3, and calculates the first plane group PG1 including n3 planes by plane calculation processing. With this configuration, the image processing device 150 of this embodiment can calculate a more average first plane group PG1 because the first point group G1, the second point group G2, and the third point group G3 each have an equal number of points p.

また、本実施形態の画像処理装置150は、撮像装置110から取得した対象面211fの画像を第1点群G1、第2点群G2、および第3点群G3とともに表示装置140に表示させる。このような構成により、本実施形態の画像処理装置150は、オペレータが第1点群G1、第2点群G2、および第3点群G3の位置を調整したり、撮像装置110による撮像の成否を判定したりすることが可能になる。 The image processing device 150 of this embodiment also displays the image of the target surface 211f acquired from the imaging device 110 on the display device 140 together with the first point group G1, the second point group G2, and the third point group G3. With this configuration, the image processing device 150 of this embodiment allows the operator to adjust the positions of the first point group G1, the second point group G2, and the third point group G3, and to determine whether imaging by the imaging device 110 was successful.

また、本実施形態の画像処理装置150は、第1平均平面H1までの距離がしきい値以上である点pとそれ以外の点pとを表示装置140に異なる色で表示させる。このような構成により、本実施形態の画像処理装置150は、オペレータが第1点群G1、第2点群G2、および第3点群G3の位置を調整したり、撮像装置110による撮像の成否を判定したりすることが可能になる。 The image processing device 150 of this embodiment also displays points p whose distance to the first mean plane H1 is equal to or greater than a threshold value in different colors from other points p on the display device 140. With this configuration, the image processing device 150 of this embodiment allows the operator to adjust the positions of the first point group G1, the second point group G2, and the third point group G3, and to determine whether or not imaging by the imaging device 110 has been successful.

また、本実施形態の画像処理装置150は、第1平均平面H1までの距離がしきい値以上である点pを第1点群G1と第2点群G2と第3点群G3から除外し、残存する点pのすべての組み合わせに対して平面算出処理を実行して第2平面群PG2を算出する。また、画像処理装置150は、第2平面群PG2の全平面の単位法線ベクトルNVを平均した平均ベクトルV2を法線ベクトルとし、かつ残存する点pとの距離の総和が最小となる第2平均平面H2を算出する。そして、画像処理装置150は、第2平均平面H2の法線ベクトルが正対画像の画像面の法線ベクトルと平行になるように第2平均平面H2の回転角度θ,φを算出し、回転角度θ,φに基づいて対象面211fの画像を正対画像に変換する。このような構成により、本実施形態の画像処理装置150は、対象面211fの局所的な凹凸や異物の影響を除去して、対象面211fの画像を正対画像に変換することができる。 In addition, the image processing device 150 of this embodiment excludes points p whose distance to the first mean plane H1 is equal to or greater than a threshold value from the first point group G1, the second point group G2, and the third point group G3, and performs a plane calculation process for all combinations of the remaining points p to calculate the second plane group PG2. In addition, the image processing device 150 calculates a second mean plane H2 that uses an average vector V2 obtained by averaging the unit normal vectors NV of all planes in the second plane group PG2 as a normal vector and that has the smallest sum of distances to the remaining points p. Then, the image processing device 150 calculates the rotation angles θ and φ of the second mean plane H2 so that the normal vector of the second mean plane H2 is parallel to the normal vector of the image plane of the frontal image, and converts the image of the target surface 211f into a frontal image based on the rotation angles θ and φ. With this configuration, the image processing device 150 of this embodiment can convert the image of the target surface 211f into a frontal image by removing the effects of local unevenness and foreign matter on the target surface 211f.

また、本実施形態の画像処理装置150は、第1平均平面H1までの距離のしきい値を入力装置130から取得する。このような構成により、本実施形態の画像処理装置150は、オペレータが状況に応じてしきい値を変更することが可能になる。 In addition, the image processing device 150 of this embodiment acquires a threshold value for the distance to the first mean plane H1 from the input device 130. With this configuration, the image processing device 150 of this embodiment allows the operator to change the threshold value according to the situation.

また、本実施形態の画像処理装置150は、第1平均平面H1の法線ベクトルが正対画像の画像面の法線ベクトルと平行になるように第1平均平面H1の回転角度θ,φを算出し、回転角度θ,φに基づいて対象面211fの画像を正対画像に変換する。このような構成により、本実施形態の画像処理装置150は、第1点群G1、第2点群G2、および第3点群G3に含まれるすべての点pを使用して、第1平均平面H1を算出し、さらに第1平均平面H1に基づいて、対象面211fの画像を正対画像に変換することができる。 The image processing device 150 of this embodiment also calculates the rotation angles θ and φ of the first mean plane H1 so that the normal vector of the first mean plane H1 is parallel to the normal vector of the image plane of the front-facing image, and converts the image of the target surface 211f into a front-facing image based on the rotation angles θ and φ. With this configuration, the image processing device 150 of this embodiment can calculate the first mean plane H1 using all points p included in the first point group G1, the second point group G2, and the third point group G3, and further convert the image of the target surface 211f into a front-facing image based on the first mean plane H1.

また、本実施形態の画像処理装置150は、対象面211fに対して傾斜した傾斜面である対象面211f’の画像を撮像装置110から取得するとともに、その傾斜面である対象面211f’との距離を距離センサ120から取得して対象面211f’の画像を正対画像に変換する。このような構成により、本実施形態の画像処理装置150は、たとえば、図16の下図に示すようなスプロケット211Bの歯の側面など、対象面211fに対して傾斜した傾斜面の正対画像を得ることができ、摩耗などの状態をより正確に評価することができる。 The image processing device 150 of this embodiment also obtains an image of the target surface 211f', which is an inclined surface inclined relative to the target surface 211f, from the imaging device 110, and obtains the distance from the target surface 211f', which is an inclined surface, from the distance sensor 120 to convert the image of the target surface 211f' into a front-on image. With this configuration, the image processing device 150 of this embodiment can obtain a front-on image of an inclined surface inclined relative to the target surface 211f, such as the side of a tooth of a sprocket 211B as shown in the lower diagram of Figure 16, and can more accurately evaluate the condition of wear, etc.

また、本実施形態の機械部品の状態評価装置100は、撮像装置110と、距離センサ120と、前述の画像処理装置150と、を備える。このような構成により、本実施形態の状態評価装置100は、前述の画像処理装置150と同様の効果を奏することができ、被写体の凹凸を有する対象面211fを斜めから撮影した画像を、撮像面に対象面を正対させた正対画像に変換することができる。また、機械部品の状態評価装置100が記憶装置153を備える場合には、前述のように、正対画像を記憶装置153に記憶させ、その後に正対画像を撮影した際に、過去の正対画像との差分を比較して摩耗の程度を算出することが可能になる。 The mechanical part condition evaluation device 100 of this embodiment also includes an imaging device 110, a distance sensor 120, and the image processing device 150 described above. With this configuration, the condition evaluation device 100 of this embodiment can achieve the same effect as the image processing device 150 described above, and can convert an image of the subject's uneven target surface 211f captured obliquely into a front-on image in which the target surface is directly facing the imaging surface. In addition, if the mechanical part condition evaluation device 100 includes a storage device 153, as described above, the front-on image can be stored in the storage device 153, and when a front-on image is subsequently captured, the difference between the image and the previous front-on image can be compared to calculate the degree of wear.

以上説明したように、本実施形態によれば、被写体の凹凸を有する対象面211fを斜めから撮影した画像を、撮像装置110の撮像面に対象面を正対させた正対画像に変換することが可能な画像処理装置150を提供することができる。 As described above, according to this embodiment, it is possible to provide an image processing device 150 that can convert an image of the uneven target surface 211f of a subject captured obliquely into a front-on image in which the target surface is directly opposed to the imaging surface of the imaging device 110.

以上、図面を用いて本開示に係る画像処理装置の実施形態を詳述してきたが、具体的な構成はこの実施形態に限定されるものではなく、本開示の要旨を逸脱しない範囲における設計変更等があっても、それらは本開示に含まれるものである。 The above describes in detail an embodiment of the image processing device according to the present disclosure using the drawings, but the specific configuration is not limited to this embodiment, and even if there are design changes, etc., within the scope that does not deviate from the gist of this disclosure, they are included in this disclosure.

110 撮像装置
120 距離センサ
130 入力装置
140 表示装置
150 画像処理装置
211f 対象面
211f’ 対象面(傾斜面)
G1 第1点群
G2 第2点群
G3 第3点群
H1 第1平均平面
H2 第2平均平面
NV 単位法線ベクトル
NV1 単位法線ベクトル
NV2 単位法線ベクトル
NV3 単位法線ベクトル
NVn 単位法線ベクトル
p 点
PG1 第1平面群
PG2 第2平面群
V1 平均ベクトル
V2 平均ベクトル
θ 回転角度
φ 回転角度
110 Imaging device 120 Distance sensor 130 Input device 140 Display device 150 Image processing device 211f Target surface 211f' Target surface (inclined surface)
G1 First point group G2 Second point group G3 Third point group H1 First mean plane H2 Second mean plane NV Unit normal vector NV1 Unit normal vector NV2 Unit normal vector NV3 Unit normal vector NVn Unit normal vector p Point PG1 First plane group PG2 Second plane group V1 Mean vector V2 Mean vector θ Rotation angle φ Rotation angle

Claims (5)

対象物の対象面の画像を撮像装置から取得するとともに前記撮像装置と前記対象面との距離を距離センサから取得して前記対象面の画像を正対画像に変換する画像処理装置であって、
各点群が互いに離隔し、かつ前記各点群から選択した各一の点が同一直線上に存在しないように、前記対象面に第1点群と第2点群と第3点群とを設定し、
前記第1点群と前記第2点群と前記第3点群とにそれぞれn個(nは2以上の自然数)の点を設定し、
前記撮像装置から、前記第1点群の各点までの距離、前記第2点群の各点までの距離、および前記第3点群の各点までの距離を、前記距離センサから取得し、
前記第1点群から選択した一の点と前記第2点群から選択した一の点と前記第3点群から選択した一の点とに基づいて平面を算出する平面算出処理をすべての点の組み合わせに対して実行して第1平面群を算出し、
前記平面算出処理によってn 個の平面を含む前記第1平面群を算出し、
前記第1平面群の全平面の単位法線ベクトルを平均した平均ベクトルを法線ベクトルとし、かつ前記第1点群と前記第2点群と前記第3点群とに含まれる全点との距離の総和が最小となる第1平均平面を算出し、
前記第1平均平面に基づいて前記対象面の画像を前記正対画像に変換することを特徴とする画像処理装置。
1. An image processing device that acquires an image of a target surface of an object from an imaging device, acquires a distance between the imaging device and the target surface from a distance sensor, and converts the image of the target surface into a frontal image,
setting a first point group, a second point group, and a third point group on the target surface such that the first point group, the second point group, and the third point group are spaced apart from each other and each point selected from the first point group is not on the same line ;
n points (n is a natural number equal to or greater than 2) are set in each of the first point group, the second point group, and the third point group;
acquiring, from the distance sensor, a distance from the imaging device to each point of the first point group, a distance from the imaging device to each point of the second point group, and a distance from the imaging device to each point of the third point group;
calculating a first group of planes by executing a plane calculation process for calculating a plane based on one point selected from the first group of points, one point selected from the second group of points, and one point selected from the third group of points for all combinations of points;
The first plane group including n3 planes is calculated by the plane calculation process ;
calculating a first average plane that is a normal vector obtained by averaging unit normal vectors of all planes in the first plane group, and that minimizes the sum of distances between the first point group, the second point group, and all points included in the third point group;
2. An image processing device comprising: a first mean plane that converts an image of the target surface into the front-facing image based on the first mean plane.
前記撮像装置から取得した前記対象面の画像を前記第1点群、前記第2点群、および前記第3点群とともに表示装置に表示させることを特徴とする請求項1に記載の画像処理装置。 The image processing device according to claim 1 , wherein the image of the target surface acquired from the imaging device is displayed on a display device together with the first point cloud, the second point cloud, and the third point cloud. 前記第1平均平面までの距離がしきい値以上である点とそれ以外の点とを前記表示装置に異なる色で表示させることを特徴とする請求項に記載の画像処理装置。 3. The image processing apparatus according to claim 2 , wherein points whose distance to said first mean plane is equal to or greater than a threshold value are displayed in different colors on said display device from other points. 前記第1平均平面までの距離がしきい値以上である点を前記第1点群と前記第2点群と前記第3点群から除外し、残存する点のすべての組み合わせに対して前記平面算出処理を実行して第2平面群を算出し、
前記第2平面群の全平面の単位法線ベクトルを平均した平均ベクトルを法線ベクトルとし、かつ前記残存する点との距離の総和が最小となる第2平均平面を算出し、
前記第2平均平面の前記法線ベクトルが前記正対画像の画像面の法線ベクトルと平行になるように前記第2平均平面の回転角度を算出し、
前記回転角度に基づいて前記対象面の画像を前記正対画像に変換することを特徴とする請求項1から請求項のいずれか一項に記載の画像処理装置。
excluding points whose distances to the first mean plane are equal to or greater than a threshold value from the first point group, the second point group, and the third point group, and performing the plane calculation process on all combinations of remaining points to calculate a second plane group;
a second average plane having a minimum sum of distances to the remaining points is calculated by averaging the unit normal vectors of all the planes in the second group of planes as a normal vector;
Calculating a rotation angle of the second mean plane so that the normal vector of the second mean plane is parallel to a normal vector of an image plane of the frontal image;
4. The image processing device according to claim 1 , wherein the image of the target surface is converted into the front-facing image based on the rotation angle.
前記第1平均平面の前記法線ベクトルが前記正対画像の画像面の法線ベクトルと平行になるように前記第1平均平面の回転角度を算出し、
前記回転角度に基づいて前記対象面の画像を前記正対画像に変換することを特徴とする請求項1に記載の画像処理装置。
Calculating a rotation angle of the first mean plane so that the normal vector of the first mean plane is parallel to a normal vector of an image plane of the frontal image;
The image processing apparatus according to claim 1 , wherein the image of the target surface is converted into the front-facing image based on the rotation angle.
JP2020154650A 2020-09-15 2020-09-15 Image Processing Device Active JP7579095B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020154650A JP7579095B2 (en) 2020-09-15 2020-09-15 Image Processing Device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020154650A JP7579095B2 (en) 2020-09-15 2020-09-15 Image Processing Device

Publications (2)

Publication Number Publication Date
JP2022048686A JP2022048686A (en) 2022-03-28
JP7579095B2 true JP7579095B2 (en) 2024-11-07

Family

ID=80844218

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020154650A Active JP7579095B2 (en) 2020-09-15 2020-09-15 Image Processing Device

Country Status (1)

Country Link
JP (1) JP7579095B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014061372A1 (en) 2012-10-18 2014-04-24 コニカミノルタ株式会社 Image-processing device, image-processing method, and image-processing program
JP2014194729A (en) 2013-02-27 2014-10-09 Sharp Corp Circumferential environment recognition device, autonomous mobile system using the same, and circumferential environment recognition method
JP2019192156A (en) 2018-04-27 2019-10-31 キヤノン株式会社 Image processing apparatus, image processing method and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014061372A1 (en) 2012-10-18 2014-04-24 コニカミノルタ株式会社 Image-processing device, image-processing method, and image-processing program
JP2014194729A (en) 2013-02-27 2014-10-09 Sharp Corp Circumferential environment recognition device, autonomous mobile system using the same, and circumferential environment recognition method
JP2019192156A (en) 2018-04-27 2019-10-31 キヤノン株式会社 Image processing apparatus, image processing method and program

Also Published As

Publication number Publication date
JP2022048686A (en) 2022-03-28

Similar Documents

Publication Publication Date Title
US10825198B2 (en) 3 dimensional coordinates calculating apparatus, 3 dimensional coordinates calculating method, 3 dimensional distance measuring apparatus and 3 dimensional distance measuring method using images
CN109382821B (en) Calibration methods, calibration systems and procedures
JP6693981B2 (en) Simulation device for simulating robot movement
JP5353596B2 (en) Projection display device and keystone correction method
CN105473979B (en) The production operation device of the production operation method of substrate, the shooting condition determining method of substrate and substrate
JP5257616B2 (en) Projector, program, information storage medium, and trapezoidal distortion correction method
EP3421930B1 (en) Three-dimensional shape data and texture information generation system, photographing control program, and three-dimensional shape data and texture information generation method
US20160343136A1 (en) Data-processing system and method for calibration of a vehicle surround view system
KR20210034070A (en) Calibration work support system
US20110295421A1 (en) Device and a method for restoring positional information of robot
KR20160118868A (en) System and method for displaying panorama image using single look-up table
CN115112099A (en) Position positioning device for moving body, and position positioning method for moving body
JP6846661B2 (en) Projection methods and devices for three-dimensional projection objects
JP2017110991A (en) Measurement system, measurement method, robot control method, robot, robot system, and picking device
US10721397B2 (en) Image processing system using predefined stitching configurations
WO2020003497A1 (en) Calibration device for imaging device, monitoring device, work machine and calibration method
JPWO2016031190A1 (en) Information processing apparatus and recognition support method
JP6299150B2 (en) Control device, robot, control system, control method, and control program
JP6410411B2 (en) Pattern matching apparatus and pattern matching method
JP7579095B2 (en) Image Processing Device
JP5391053B2 (en) 3D shape measuring method and 3D shape measuring apparatus
JP5561503B2 (en) Projector, program, information storage medium, and trapezoidal distortion correction method
CN111372698A (en) Work assistance system and work assistance method
JP5968370B2 (en) Three-dimensional measuring apparatus, three-dimensional measuring method, and program
CN110900606B (en) Hand-eye linkage system based on small mechanical arm and control method thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230315

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240528

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240718

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20241025

R150 Certificate of patent or registration of utility model

Ref document number: 7579095

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150