JP2023167689A - Inspecting device, inspecting method and program - Google Patents

Inspecting device, inspecting method and program Download PDF

Info

Publication number
JP2023167689A
JP2023167689A JP2022079050A JP2022079050A JP2023167689A JP 2023167689 A JP2023167689 A JP 2023167689A JP 2022079050 A JP2022079050 A JP 2022079050A JP 2022079050 A JP2022079050 A JP 2022079050A JP 2023167689 A JP2023167689 A JP 2023167689A
Authority
JP
Japan
Prior art keywords
data
design
measured
dimension
outline
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.)
Pending
Application number
JP2022079050A
Other languages
Japanese (ja)
Inventor
哲郎 西田
Tetsuo Nishida
和之 銭尾
Kazuyuki Zenio
雄太 田口
Yuta Taguchi
昭博 青井
Akihiro Aoi
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.)
MITSUTECH KK
Original Assignee
MITSUTECH KK
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 MITSUTECH KK filed Critical MITSUTECH KK
Priority to JP2022079050A priority Critical patent/JP2023167689A/en
Publication of JP2023167689A publication Critical patent/JP2023167689A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Image Analysis (AREA)

Abstract

To provide an inspecting device that can easily and surely compare a dimension on a design drawing with an actual measured value.SOLUTION: An inspecting device according to an aspect of the present invention is an inspecting device for inspecting a dimension of a measured object, and includes: design information obtaining means for capturing a contour line of the measured object, a designed dimension value, and a design drawing including a dimension line which associates the contour line with the designed dimension value, and a dimension auxiliary line; contour image obtaining means for capturing a contour image of the measured object corresponding to the design drawing; superimposing means for superimposing design drawing data obtained by the design information obtaining means and contour data on the measured object obtained by the contour image obtaining means with each other; actual measured data extracting means for extracting actual measured data on the measured object from the contour data; dimension line data extracting means for extracting, using the contour data superimposed by the superimposing means, the dimension line and the dimension auxiliary line from the design drawing data; design data extracting means; comparing means; and evaluating means.SELECTED DRAWING: Figure 1

Description

本発明は、検査装置、検査方法及びプログラムに関する。 The present invention relates to an inspection device, an inspection method, and a program.

一般に、形状検査装置は画像センサ等によって、被測定物の各部位の寸法を測定する。また、測定した寸法は、被測定物の品質を評価するために、設計図面の寸法等と比較される。比較の際には、設計図面上の寸法を、測定した寸法と比較可能となるように入力する作業が発生する場合がある。特に、設計図面が紙媒体に記録されている場合、目視で読み取った設計図面上の寸法を手動で入力することを要する。したがって、このような作業の省力化及び作業時間の短縮が望まれている。 Generally, a shape inspection device measures the dimensions of each part of an object to be measured using an image sensor or the like. Furthermore, the measured dimensions are compared with the dimensions of the design drawing, etc., in order to evaluate the quality of the object to be measured. When making a comparison, it may be necessary to input the dimensions on the design drawing so that they can be compared with the measured dimensions. In particular, when the design drawings are recorded on paper media, it is necessary to manually input the dimensions on the design drawings that have been visually read. Therefore, it is desired to save labor and shorten the working time of such work.

特許文献1には、CADデータ等から作成された設計データを用いて、測定された寸法値に近い設計値からなる設計値情報を設計データから抽出する設計値情報抽出手段を備える測定設定データ作成装置が記載されている。また、特許文献1には、測定対象箇所に関連付けた上記設計値情報等(測定設定データ)を基に、被測定物の寸法測定や公差と比較した評価がさらに実行されることが記載されている。 Patent Document 1 discloses a measurement setting data creation method that includes a design value information extraction means for extracting design value information consisting of design values close to measured dimension values from the design data using design data created from CAD data or the like. The equipment is described. Further, Patent Document 1 describes that dimension measurement of the object to be measured and evaluation in comparison with tolerances are further performed based on the above-mentioned design value information etc. (measurement setting data) associated with the measurement target location. There is.

特開2012-37257号公報Japanese Patent Application Publication No. 2012-37257

しかしながら、特許文献1において、設計データは、形状線の位置情報、寸法線の位置情報、寸法線に関連付けられた設計値及び公差等を予め含んでいることが前提となっている。このため、特許文献1の測定設定データ作成装置を用いて、紙媒体の設計図面等から設計値情報を直接抽出することは困難である。この点に関しては、予めOCR等を用いて設計図面を機械的に読み取る方法も考えられる。しかしながら、寸法線に関連付けられた設計値等を抽出するためには、設計図面に記載された被測定物の外形線と寸法補助線とを識別する必要がある。被測定物の外形線と寸法補助線とが同じ線種で記載されている場合、例えば線種によってこれらを識別することは困難である。このため、設計図面から設計値情報を機械的に抽出することは容易ではない。 However, in Patent Document 1, it is assumed that the design data includes in advance position information of shape lines, position information of dimension lines, design values and tolerances associated with the dimension lines, and the like. For this reason, it is difficult to directly extract design value information from a design drawing on a paper medium using the measurement setting data creation device of Patent Document 1. Regarding this point, a method of mechanically reading the design drawings in advance using OCR or the like may be considered. However, in order to extract the design values associated with the dimension lines, it is necessary to identify the outline of the object to be measured and the dimension extension lines described in the design drawing. When the outline line and the dimension extension line of the object to be measured are written with the same line type, it is difficult to distinguish them by the line type, for example. Therefore, it is not easy to mechanically extract design value information from design drawings.

本発明はこのような事情に基づいてなされたものであり、設計図面上の寸法を実測値と容易かつ確実に比較可能な検査装置を提供することを目的とする。 The present invention has been made based on such circumstances, and an object of the present invention is to provide an inspection device that can easily and reliably compare dimensions on a design drawing with actual measurements.

上記課題を解決するためになされた本発明の一態様に係る検査装置は、被測定物の寸法を検査する検査装置であって、上記被測定物の外形線、設計寸法値及び上記外形線と上記設計寸法値とを対応づける寸法補助線を含む設計図面を取り込む設計情報取得手段と、上記設計図面に対応する上記被測定物の外形画像を取り込む外形画像取得手段と、上記設計情報取得手段で取得した設計図面データと、上記外形画像取得手段で取得した上記被測定物の外形データとを重ね合わせる重ね合わせ手段と、上記外形データから上記被測定物の実測データを抽出する実測データ抽出手段と、上記重ね合わせ手段で重ね合わせされた上記外形データを用いて上記設計図面データから上記寸法補助線を抽出する補助線抽出手段と、上記補助線抽出手段で抽出された上記寸法補助線を用いて、上記設計図面データから上記被測定物の設計データを抽出する設計データ抽出手段と、上記実測データと上記設計データとを対応づけしつつ比較する比較手段と、上記設計データを基に上記実測データを評価する評価手段とを備える。 An inspection device according to an aspect of the present invention made to solve the above problems is an inspection device that inspects the dimensions of a workpiece, and includes an outline, a design dimension value, and an outline of the workpiece. a design information acquisition means for importing a design drawing including dimension extension lines that corresponds to the design dimension values; an external image acquisition means for importing an external image of the object to be measured corresponding to the design drawing; a superimposition means for superimposing the acquired design drawing data and the external shape data of the object to be measured acquired by the external image acquisition means; an actual measurement data extraction means for extracting actual measurement data of the object to be measured from the external shape data; , an auxiliary line extracting means for extracting the dimensional extension line from the design drawing data using the external shape data superimposed by the superimposing means, and using the dimensional extension line extracted by the auxiliary line extracting means. , a design data extraction means for extracting design data of the object to be measured from the design drawing data; a comparison means for comparing the actual measurement data and the design data while associating them; and an evaluation means for evaluating.

本発明の一態様に係る検査装置は、設計図面上の寸法を実測値と容易かつ確実に比較可能である。 The inspection device according to one aspect of the present invention can easily and reliably compare dimensions on a design drawing with actual measurements.

図1は、本発明の一実施形態に係る検査装置の構成を示すブロック図である。FIG. 1 is a block diagram showing the configuration of an inspection device according to an embodiment of the present invention. 図2は、図1の検査装置が読み取る設計図面を示す模式図である。FIG. 2 is a schematic diagram showing a design drawing read by the inspection device of FIG. 図3は、図1の検査装置が読み取る被対象物の外形画像を示す模式図である。FIG. 3 is a schematic diagram showing an external image of the object read by the inspection device of FIG. 1. 図4は、図3の画像から外形線を抽出した外形データを示す模式図である。FIG. 4 is a schematic diagram showing outline data obtained by extracting outline lines from the image shown in FIG. 図5は、図2の設計図面データから抽出した寸法補助線及び数値情報を示す模式図である。FIG. 5 is a schematic diagram showing dimension extension lines and numerical information extracted from the design drawing data of FIG. 2. 図6は、図5の寸法補助線を補完した状態を示す模式図である。FIG. 6 is a schematic diagram showing a state in which the dimension extension lines in FIG. 5 are supplemented. 図7は、本発明の一実施形態に係る検査方法を示すフロー図である。FIG. 7 is a flow diagram showing an inspection method according to an embodiment of the present invention.

[本発明の実施形態の説明]
最初に本発明の実施態様を列記して説明する。
[Description of embodiments of the present invention]
First, embodiments of the present invention will be listed and explained.

本発明の一態様に係る検査装置は、被測定物の寸法を検査する検査装置であって、上記被測定物の外形線、設計寸法値及び上記外形線と上記設計寸法値とを対応づける寸法補助線を含む設計図面を取り込む設計情報取得手段と、上記設計図面に対応する上記被測定物の外形画像を取り込む外形画像取得手段と、上記設計情報取得手段で取得した設計図面データと、上記外形画像取得手段で取得した上記被測定物の外形データとを重ね合わせる重ね合わせ手段と、上記外形データから上記被測定物の実測データを抽出する実測データ抽出手段と、上記重ね合わせ手段で重ね合わせされた上記外形データを用いて上記設計図面データから上記寸法補助線を抽出する補助線抽出手段と、上記補助線抽出手段で抽出された上記寸法補助線を用いて、上記被測定物の設計データを抽出する設計データ抽出手段と、上記実測データと上記設計データとを対応づけしつつ比較する比較手段と、上記設計データを基に上記実測データを評価する評価手段とを備える。 An inspection device according to one aspect of the present invention is an inspection device that inspects the dimensions of a workpiece, the test device comprising: an outline of the workpiece, a design dimension value, and a dimension that associates the outline line with the design dimension value. a design information acquisition means for importing a design drawing including auxiliary lines; an outline image acquisition means for importing an outline image of the object to be measured corresponding to the design drawing; design drawing data acquired by the design information acquisition means; and the outline a superimposing means for superimposing the external shape data of the object to be measured acquired by the image acquiring means; an actual measurement data extraction means for extracting actual measurement data of the object from the external shape data; an auxiliary line extracting means for extracting the dimension auxiliary line from the design drawing data using the external shape data obtained by the auxiliary line extraction means; The apparatus includes a design data extraction means for extracting, a comparison means for associating and comparing the measured data and the design data, and an evaluation means for evaluating the measured data based on the design data.

当該検査装置は、上記外形データを用いて上記設計図面データから上記寸法補助線を抽出する上記補助線抽出手段を備えるため、上記設計図面において外形線と寸法補助線とが混在している場合であっても上記被測定物の上記設計データを的確に抽出することができる。したがって、当該検査装置によれば、上記設計図面が紙媒体である場合等に、上記被測定物の寸法を検査するために目視で上記設計データを読み取る労力を大幅に軽減することができる。したがって、設計図面上の寸法を実測値と容易かつ確実に比較可能である。なお、ここで「外形線」とは、被測定物の外縁を示す線、及び上記外縁に囲まれた内部領域における形状の異なる部位の境界線を意味する。「形状の異なる部位の境界線」としては、例えば高さの異なる部位の間の境界線、凹部又は孔部の境界線、平面部と曲面部又は傾斜部との間の境界線等が挙げられる。 The inspection device is equipped with the auxiliary line extraction means for extracting the dimensional extension lines from the design drawing data using the external shape data, so that it can be used even if the design drawings contain both external outline lines and dimensional extension lines. Even if the design data of the object to be measured exists, it is possible to accurately extract the design data of the object to be measured. Therefore, according to the inspection device, when the design drawing is a paper medium, it is possible to significantly reduce the effort required to visually read the design data in order to inspect the dimensions of the object to be measured. Therefore, dimensions on the design drawing can be easily and reliably compared with actual measurements. Note that the term "outline line" herein refers to a line indicating the outer edge of the object to be measured, and a boundary line between parts of different shapes in an internal region surrounded by the outer edge. Examples of "boundary lines between parts with different shapes" include boundaries between parts with different heights, boundaries between recesses or holes, boundaries between flat parts and curved parts or sloped parts, etc. .

上記設計図面が紙媒体由来のデータ又は画像データであることが好ましい。上記設計図面がこのようなデータであることによって、上記設計図面データから上記被測定物の上記設計データを的確に抽出可能な本発明の効果がより顕著に発揮される。なお、ここで「紙媒体由来のデータ」とは、紙面上に表された図形、線、数字、符号等を意味し、紙に手書きされたもの及び紙に印刷されたものの両方を含む。また、紙をスキャンすることによってコンピュータに取り込まれた紙面上の図形、線、数字、符号等も含む。「画像データ」とは、画像として描画されたデータであり、画像に含まれる図形、線、数字、符号等の各要素がデータとして識別又は構造化されていないことを意味する。 It is preferable that the design drawing is data or image data derived from a paper medium. When the design drawing is such data, the effect of the present invention, which can accurately extract the design data of the object to be measured from the design drawing data, is more clearly exhibited. Note that "data derived from paper media" herein refers to figures, lines, numbers, codes, etc. expressed on paper, and includes both handwritten data and printed data on paper. It also includes figures, lines, numbers, codes, etc. on paper that are imported into a computer by scanning the paper. "Image data" is data drawn as an image, and means that each element included in the image, such as figures, lines, numbers, codes, etc., is not identified or structured as data.

上記外形画像取得手段が、上記外形画像を取り込んだ後にエッジ検出によって上記外形画像の外形線を抽出し、上記外形データがこの外形線を含むことが好ましい。このように上記外形画像取得手段が上記外形画像の上記外形線を抽出し、上記外形データがこの外形線を含むことによって、より容易に上記設計図面データから上記寸法補助線を抽出することができる。 It is preferable that the outline image acquisition means extracts the outline of the outline image by edge detection after capturing the outline image, and the outline data includes this outline. In this way, the outline image acquisition means extracts the outline line of the outline image, and the outline data includes this outline line, so that the dimension extension line can be more easily extracted from the design drawing data. .

上記重ね合わせ手段が、上記設計図面データ及び上記外形データの少なくとも一方の倍率を調整することが好ましい。このように上記重ね合わせ手段が、上記設計図面データ及び上記外形データの少なくとも一方の倍率を調整することによって、より確実に上記設計図面データから上記寸法補助線を抽出することができる。 It is preferable that the superimposing means adjusts the magnification of at least one of the design drawing data and the external shape data. In this manner, the overlapping means can more reliably extract the dimension extension line from the design drawing data by adjusting the magnification of at least one of the design drawing data and the external shape data.

上記外形データが上記外形線を含む場合に、上記重ね合わせ手段が、上記外形データに含まれる上記外形線を用いて、上記設計図面データに含まれる上記外形線を特定し、上記補助線抽出手段が上記設計図面データから上記外形線を削除することが好ましい。このように上記重ね合わせ手段が上記設計図面データに含まれる上記外形線を特定し、上記補助線抽出手段が上記設計図面データから上記外形線を削除することによって、より容易に上記設計図面データから上記寸法補助線を抽出することができる。 When the external shape data includes the external outline line, the superimposing means identifies the external outline included in the design drawing data using the external outline line included in the external shape data, and the auxiliary line extracting means It is preferable that the above-mentioned outline line is deleted from the above-mentioned design drawing data. In this way, the superimposition means identifies the outline line included in the design drawing data, and the auxiliary line extraction means deletes the outline line from the design drawing data, thereby making it easier to extract the outline from the design drawing data. The above dimension extension line can be extracted.

本発明の他の一態様に係る検査方法は、被測定物の寸法を検査する検査方法であって、上記被測定物の外形線、設計寸法値及び上記外形線と上記設計寸法値とを対応づける寸法補助線を含む設計図面を取り込む設計情報取得工程と、上記設計図面に対応する上記被測定物の外形画像を取り込む外形画像取得工程と、上記設計情報取得工程で取得した設計図面データと、上記外形画像取得工程で取得した上記被測定物の外形データとを重ね合わせる重ね合わせ工程と、上記外形データから上記被測定物の実測データを抽出する実測データ抽出工程と、上記重ね合わせ工程で重ね合わせされた上記外形データを用いて上記設計図面データから上記寸法補助線を抽出する補助線抽出工程と、上記補助線抽出工程で抽出された上記寸法補助線を用いて、上記設計図面データから上記被測定物の設計データを抽出する設計データ抽出工程と、上記実測データと上記設計データとを対応づけしつつ比較する比較工程と、上記設計データを基に上記実測データを評価する評価工程とを備える。 An inspection method according to another aspect of the present invention is an inspection method for inspecting the dimensions of an object to be measured, in which an outline of the object to be measured, a design dimension value, and a correspondence between the outline line and the design dimension value. a design information acquisition step of importing a design drawing including dimension extension lines to be attached; an outline image acquisition step of importing an outline image of the object to be measured corresponding to the design drawing; and design drawing data acquired in the design information acquisition step; A superimposition step of superimposing the external shape data of the object to be measured obtained in the external image acquisition step, an actual measurement data extraction step of extracting actual measurement data of the object from the external shape data, and an overlapping step of the overlapping step. An auxiliary line extraction step of extracting the dimensional extension lines from the design drawing data using the combined external shape data; A design data extraction step for extracting design data of the object to be measured, a comparison step for associating and comparing the measured data with the design data, and an evaluation step for evaluating the measured data based on the design data. Be prepared.

当該検査方法は、上記補助線抽出工程を備えるため、上記設計図面が紙媒体である場合等に、上記被測定物の寸法を検査するために目視で上記設計データを読み取る労力を大幅に軽減することができる。したがって、設計図面上の寸法を実測値と容易かつ確実に比較可能である。 Since the inspection method includes the auxiliary line extraction step, the effort required to visually read the design data in order to inspect the dimensions of the object to be measured is greatly reduced when the design drawing is a paper medium. be able to. Therefore, dimensions on the design drawing can be easily and reliably compared with actual measurements.

本発明の他の一態様に係るプログラムは、被測定物の寸法を検査するため、上記被測定物の外形線、設計寸法値及び上記外形線と上記設計寸法値とを対応づける寸法補助線を含む設計図面を取り込む設計情報取得工程と、上記設計図面に対応する上記被測定物の外形画像を取り込む外形画像取得工程と、上記設計情報取得工程で取得した設計図面データと、上記外形画像取得工程で取得した上記被測定物の外形データとを重ね合わせる重ね合わせ工程と、上記外形データから上記被測定物の実測データを抽出する実測データ抽出工程と、上記重ね合わせ工程で重ね合わせされた上記外形データを用いて上記設計図面データから上記寸法補助線を抽出する補助線抽出工程と、上記補助線抽出工程で抽出された上記寸法補助線を用いて、上記設計図面データから上記被測定物の設計データを抽出する設計データ抽出工程と、上記実測データと上記設計データとを対応づけしつつ比較する比較工程と、上記設計データを基に上記実測データを評価する評価工程とを検査装置に実行させる。 A program according to another aspect of the present invention includes an outline of the object to be measured, a design dimension value, and a dimension extension line that associates the outline line with the design dimension value, in order to inspect the dimensions of the object to be measured. a design information acquisition step of importing a design drawing containing the design drawing, an outline image acquisition step of importing an outline image of the object to be measured corresponding to the design drawing, the design drawing data acquired in the design information acquisition step, and the outline image acquisition step. a superimposition step of superimposing the external shape data of the object to be measured obtained in step 1, an actual measurement data extraction step of extracting actual measurement data of the object from the external shape data, and an overlapping step of the external shape superimposed in the overlapping step. an auxiliary line extraction step of extracting the dimensional extension lines from the design drawing data using data; and a design of the object to be measured from the design drawing data using the dimensional extension lines extracted in the auxiliary line extraction step. The inspection device executes a design data extraction step for extracting data, a comparison step for associating and comparing the measured data with the design data, and an evaluation step for evaluating the measured data based on the design data. .

当該プログラムは、上記補助線抽出工程を実行させるため、上記設計図面が紙媒体である場合等に、上記被測定物の寸法を検査するために目視で上記設計データを読み取る労力を大幅に軽減しつつ、検査装置を実行させることができる。したがって、設計図面上の寸法を実測値と容易かつ確実に比較可能である。 Since the program executes the auxiliary line extraction process, it can significantly reduce the effort required to visually read the design data to inspect the dimensions of the object when the design drawing is on paper. At the same time, the inspection device can be executed. Therefore, dimensions on the design drawing can be easily and reliably compared with actual measurements.

[本発明の実施形態の詳細]
以下、適宜図面を参照しつつ、本発明の実施の形態を詳説する。
[Details of embodiments of the present invention]
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings as appropriate.

[検査装置]
図1の検査装置100は、被測定物の寸法を検査する。検査装置100は、入力データを取り込む入力部10と、入力部10によって取り込まれた入力データを処理するための処理部20と、入力データ又は処理部20で処理されたデータを保管する記憶部30とを備える。また、当該検査装置100はユーザーが外部から操作するための外部端末に接続されている(不図示)。検査装置100は、上記被測定物を載置するための載置台を備えていてもよい。
[Inspection equipment]
The inspection apparatus 100 in FIG. 1 inspects the dimensions of an object to be measured. The inspection device 100 includes an input section 10 that takes in input data, a processing section 20 that processes the input data taken in by the input section 10, and a storage section 30 that stores the input data or data processed by the processing section 20. Equipped with. Further, the inspection device 100 is connected to an external terminal (not shown) for a user to operate from the outside. The inspection apparatus 100 may include a mounting table on which the object to be measured is mounted.

<入力部>
入力部10は、上記被測定物の外形線、設計寸法値及び上記外形線と上記設計寸法値とを対応づける寸法補助線を含む設計図面を取り込む設計情報取得手段11と、設計図面に対応する上記被測定物の外形画像を取り込む外形画像取得手段12とを備える。
<Input section>
The input unit 10 corresponds to the design drawing, and a design information acquisition means 11 that takes in a design drawing including the outline of the object to be measured, design dimension values, and dimensional extension lines that associate the outline and the design dimension values. A contour image acquisition means 12 is provided for capturing the contour image of the object to be measured.

(被測定物)
上記被測定物は、例えば自動車部品等の機械加工部品である。また、BGA、PCB用基材、コネクタピン等の電子機器部品、樹脂成形品等であってもよい。本実施形態は、上記被測定物の一例として孔部を有する平面視矩形状の平板Aを用いて説明する。より具体的には、上記被測定物は円形の孔部B及び長円形の孔部Cを有する。ただし、本発明の被測定物は上記被測定物に限定されない。
(Object to be measured)
The object to be measured is, for example, a machined part such as an automobile part. Further, electronic device parts such as BGA, PCB base materials, connector pins, resin molded products, etc. may be used. The present embodiment will be described using a flat plate A having a rectangular shape in plan view as an example of the object to be measured. More specifically, the object to be measured has a circular hole B and an oval hole C. However, the object to be measured of the present invention is not limited to the above-mentioned object.

(設計図面)
本実施形態において、上記設計図面は紙に印刷されている。すなわち、上記設計図面に記載された内容は、人が目視で読み取ることが可能である一方で、機械的に処理するためには適切にデータ化する必要がある。図2に示す通り、上記設計図面には、矩形状の平板Aの外形線と、上記外形線に囲まれた内部領域における円形の孔部B及び長円形の孔部Cの外形線と、これら外形線の設計寸法値及び公差が記載された数値情報x1、x2、y1からy4、z1及びz2と、上記外形線及び上記数値情報を対応づける複数の寸法補助線とが記載されている。上記数値情報は、それぞれ設計寸法値及び公差を有しており、例えば数値情報x1はx11±x12等の形式で記載されている。この場合、x11が設計寸法値を示し、x12が公差を示している。すなわち、数値情報x1に対応する部分の長さはx11-x12からx11+x12までが許容されることを意味する。本実施形態において、数値情報x2、y1からy4、z1及びz2についても、上述の数値情報x1と同様の形式で記載されているものとする。また、図2において上記寸法補助線は、矢印を含む線、矢印の先端と外形線とを結ぶ線又は矢印の先端と孔部の中心とを結ぶ線である。すなわち、上記寸法補助線は図2の上記外形線及び上記数値情報を除いた部分である。上記設計図面において、上記外形線及び上記寸法補助線は同様の線種及び太さで記載されているが、図2においては説明の便宜上、上記外形線が上記寸法補助線よりも太く記載されている。
(Design drawing)
In this embodiment, the design drawings are printed on paper. That is, while the contents described in the design drawings can be read visually by humans, they need to be appropriately converted into data in order to be processed mechanically. As shown in FIG. 2, the design drawing includes the outline of the rectangular flat plate A, the outlines of the circular hole B and the oval hole C in the internal area surrounded by the outline, and Numerical information x1, x2, y1 to y4, z1, and z2 in which design dimension values and tolerances of the outline lines are described, and a plurality of dimension extension lines that associate the above-mentioned outline lines and the above-mentioned numerical information are described. Each of the numerical information has design dimension values and tolerances, and for example, the numerical information x1 is written in a format such as x11±x12. In this case, x11 indicates the design dimension value, and x12 indicates the tolerance. That is, it means that the length of the portion corresponding to the numerical information x1 is allowed to be from x11-x12 to x11+x12. In this embodiment, it is assumed that the numerical information x2, y1 to y4, z1, and z2 are also written in the same format as the numerical information x1 described above. Further, in FIG. 2, the dimension auxiliary line is a line that includes an arrow, a line that connects the tip of the arrow and the outline, or a line that connects the tip of the arrow and the center of the hole. That is, the dimension extension line is a portion of FIG. 2 excluding the outline line and the numerical information. In the above design drawing, the above-mentioned outline line and the above-mentioned dimension extension line are drawn with the same line type and thickness, but in Fig. 2, the above-mentioned outline line is drawn thicker than the above-mentioned dimension extension line for convenience of explanation. There is.

(設計情報取得手段)
設計情報取得手段11は、例えばスキャナーで読み取った設計図面を取り込むプログラムにより実現される。上記スキャナーは、当該検査装置100に内蔵されていても、外部に配されていてもよい。上記スキャナー及び上記プログラムとしては、公知のものを採用できる。
(Design information acquisition means)
The design information acquisition means 11 is realized, for example, by a program that imports design drawings read by a scanner. The scanner may be built into the inspection device 100 or may be placed outside. As the above-mentioned scanner and the above-mentioned program, known ones can be employed.

設計情報取得手段11は、上記設計図面を設計図面データD1として取り込んだ後、設計図面データD1を記憶部30に保管する。設計図面データD1は、例えば設計図面由来の上記外形線、上記設計寸法値及び上記寸法補助線を含むデータである。上述の通り上記設計図面は上記外形線及び上記寸法補助線は同様の線種及び太さで記載されているため、設計図面データD1において上記記外形線及び上記寸法補助線を線種及び太さによって識別することは困難である。 The design information acquisition means 11 captures the design drawing as design drawing data D1, and then stores the design drawing data D1 in the storage unit 30. The design drawing data D1 is data including, for example, the above-mentioned outline line, the above-mentioned design dimension value, and the above-mentioned dimension extension line derived from the design drawing. As mentioned above, in the above design drawing, the above outline line and the above dimension extension line are described with the same line type and thickness, so in the design drawing data D1, the above outline line and the above dimension extension line are written with the same line type and thickness. It is difficult to identify by

設計情報取得手段11は、上記設計図面について、少なくとも矢印を含む線、矢印を含まない線(上記外形線及び上記寸法補助線の両方を含む)、及び上記数値情報を互いに識別した上で、設計図面データD1を記憶部30に保管する。これらの識別は、例えば画像認識AI等で行う。 The design information acquisition means 11 identifies at least lines including arrows, lines not including arrows (including both the outline line and the dimension extension line), and the numerical information in the design drawing, and then calculates the design drawing. The drawing data D1 is stored in the storage unit 30. These identifications are performed using, for example, image recognition AI.

(外形画像取得手段)
外形画像取得手段12は、例えば検査装置100の載置台に載置された上記被測定物を上記設計図面に対応する方向から撮影した上記被測定物の外形画像を取り込む画像センサである。この画像センサとしては公知のものを採用できる。図3に示す通り、上記被測定物の外形画像は、矩形状の平板aの部分と、この平板の内部に形成された円形の孔部b及び長円形の孔部cとを含む。上記外形画像は、白黒画像であってもカラー画像であってもよい。本実施形態において、外形画像取得手段12は、上記外形画像を取り込んだ後にエッジ検出によって上記外形画像における外形線を抽出する。この結果、外形画像取得手段12は、上記外形線を含む外形データD2を取得する。取得した外形データD2は、記憶部30に保管される。図4に示す通り、外形データD2は、エッジ検出によって抽出された矩形状の平板aの外形線と、円形の孔部b及び長円形の孔部cの外形線とを含む。外形データD2が上記外形線以外のデータ、例えば色彩や色彩の濃淡に関するデータを含む場合、外形画像取得手段12はこれらのデータを削除してもよい。
(Outline image acquisition means)
The external image acquisition means 12 is, for example, an image sensor that captures an external image of the object to be measured placed on the mounting table of the inspection apparatus 100, which is photographed from a direction corresponding to the design drawing. A known image sensor can be used as this image sensor. As shown in FIG. 3, the external image of the object to be measured includes a rectangular flat plate a, a circular hole b and an oval hole c formed inside the flat plate. The external image may be a black and white image or a color image. In this embodiment, the outline image acquisition means 12 extracts outline lines in the outline image by edge detection after capturing the outline image. As a result, the outline image acquisition means 12 acquires the outline data D2 including the outline line. The acquired external shape data D2 is stored in the storage unit 30. As shown in FIG. 4, the outline data D2 includes the outline of the rectangular flat plate a extracted by edge detection, and the outlines of the circular hole b and the oval hole c. If the external shape data D2 includes data other than the above-mentioned external outline line, for example, data regarding color or color shading, the external image acquisition means 12 may delete these data.

<処理部>
処理部20は、重ね合わせ手段21と、実測データ抽出手段22と、補助線抽出手段23と、設計データ抽出手段24と、比較手段25と、評価手段26とを備える。重ね合わせ手段21、実測データ抽出手段22、補助線抽出手段23、設計データ抽出手段24、比較手段25及び評価手段26は、例えばそれぞれ当該検査装置100に内蔵されたプログラムにより実現される。
<Processing section>
The processing section 20 includes a superposition means 21, an actual measurement data extraction means 22, an auxiliary line extraction means 23, a design data extraction means 24, a comparison means 25, and an evaluation means 26. The superimposition means 21, the measured data extraction means 22, the auxiliary line extraction means 23, the design data extraction means 24, the comparison means 25, and the evaluation means 26 are each realized by a program built into the inspection apparatus 100, for example.

(重ね合わせ手段)
重ね合わせ手段21は、設計情報取得手段11で取得した設計図面データD1と、外形画像取得手段12で取得した上記被測定物の外形データD2とを重ね合わせる。重ね合わせ手段21は、設計図面データD1の上記外形線と外形データD2の外形線とが最も一致するように調整する。調整する手順としては、例えば以下の通りである。最初に、設計図面データD1から数値情報に含まれる最大の数値を抽出し、その数値に対応する上記矢印を含む線を選択する。一方で、外形データD2の上記外形線から最も長い外形線を選択する。そして、上記矢印を含む線と上記外形線との長さが一致するように設計図面データD1及び外形データD2の少なくとも一方のサイズを調整する。その後、設計図面データD1の上記矢印を含まない線と外形データD2の上記外形線とが最も一致するように、設計図面データD1及び外形データD2の少なくとも一方の位置を調整し又は回転させる。設計図面データD1の上記矢印を含まない線と外形データD2の上記外形線との一致は、例えば正規化相関、ハフ変換、特徴点検出等公知のパターンマッチング手法によって評価する。このように重ね合わせ手段21が設計図面データD1と外形データD2とを重ね合わせることによって、後述する補助線抽出手段23がより容易に設計図面データD1から寸法補助線を抽出することができる。
(Overlapping means)
The superimposition means 21 superimposes the design drawing data D1 acquired by the design information acquisition means 11 and the external shape data D2 of the object to be measured acquired by the external image acquisition means 12. The superimposing means 21 adjusts so that the outline of the design drawing data D1 and the outline of the outline data D2 match most. For example, the adjustment procedure is as follows. First, the maximum numerical value included in the numerical information is extracted from the design drawing data D1, and a line including the above-mentioned arrow corresponding to that numerical value is selected. On the other hand, the longest outline is selected from the outlines of the outline data D2. Then, the size of at least one of the design drawing data D1 and the outline data D2 is adjusted so that the length of the line including the arrow and the outline line match. Thereafter, the position of at least one of the design drawing data D1 and the outline data D2 is adjusted or rotated so that the line not including the arrow in the design drawing data D1 and the outline line of the outline data D2 match most. The coincidence between the line not including the arrow in the design drawing data D1 and the outline line in the outline data D2 is evaluated by a known pattern matching method such as normalized correlation, Hough transform, or feature point detection. As the overlapping means 21 overlays the design drawing data D1 and the external shape data D2 in this manner, the auxiliary line extraction means 23 described later can more easily extract dimension auxiliary lines from the design drawing data D1.

重ね合わせ手段21は、設計図面データD1の上記仮の外形線と外形データD2の外形線とを調整した後、重ね合わせた設計図面データD1及び外形データD2を記憶部30に重ね合わせデータD3として保管する。重ね合わせ手段21は、例えば上記仮の外形線を誤って抽出した場合、設計図面データD1及び外形データD2の重ね合わせが誤った状態で重ね合わせデータD3を保管する可能性がある。この点を考慮して、重ね合わせ手段21は、重ね合わせデータD3を外部端末に表示し、ユーザーに確認を求める機能を有していてもよい。この機能により、ユーザーは外部端末を操作することによって、設計図面データD1又は外形データD2のサイズ、位置等を手動で調整することができる。 After adjusting the provisional outline of the design drawing data D1 and the outline of the outline data D2, the overlapping means 21 stores the overlaid design drawing data D1 and outline data D2 in the storage unit 30 as overlapping data D3. store. For example, if the superimposition means 21 mistakenly extracts the temporary outline, there is a possibility that the superposition data D3 is stored in a state where the design drawing data D1 and the external shape data D2 are incorrectly superimposed. In consideration of this point, the superposition means 21 may have a function of displaying the superposition data D3 on an external terminal and requesting confirmation from the user. This function allows the user to manually adjust the size, position, etc. of the design drawing data D1 or the external shape data D2 by operating an external terminal.

重ね合わせ手段21は、重ね合わせデータ30における設計図面データD1と外形データD2との重複部分を、設計図面データD1に含まれる外形線として特定する。 The overlapping unit 21 specifies the overlapping portion between the design drawing data D1 and the outline data D2 in the overlapping data 30 as an outline line included in the design drawing data D1.

本実施形態において、重ね合わせ手段21は、上述の調整後、設計図面データD1及び外形データD2のそれぞれに含まれる上記外形線等の座標を算出するための基準点、x軸方向及びy軸方向を決定する。これら基準点、x軸方向及びy軸方向の決定方法は特に限定されない。本実施形態において、設計図面データD1の基準点は、図2に示す通り平板Aの左下隅角に位置するP1であり、外形データD2の基準点は、図4に示す通り平板aの左下隅角に位置するp1である。また、本実施形態において、設計図面データD1のx軸方向及びy軸方向は基準点P1から直交して延びる2つの外形線にそれぞれ平行な方向に定め、外形データD2のx軸方向及びy軸方向は基準点p1から直交して延びる2つの外形線にそれぞれ平行な方向に定める。重ね合わせデータ30において、設計図面データD1の基準点P1の位置、x軸方向及びy軸方向と、外形データD2の基準点p1の位置、x軸方向及びy軸方向とはそれぞれ一致する。 In this embodiment, the superimposition means 21 is configured to provide a reference point, an x-axis direction and a y-axis direction for calculating the coordinates of the outline line, etc. included in each of the design drawing data D1 and the outline data D2 after the above-mentioned adjustment. Determine. The method of determining these reference points, the x-axis direction, and the y-axis direction is not particularly limited. In this embodiment, the reference point of the design drawing data D1 is P1 located at the lower left corner of the flat plate A as shown in FIG. 2, and the reference point of the external shape data D2 is P1 located at the lower left corner of the flat plate A as shown in FIG. This is p1 located at the corner. In addition, in this embodiment, the x-axis direction and y-axis direction of the design drawing data D1 are set to be parallel to two contour lines extending orthogonally from the reference point P1, and the x-axis direction and the y-axis direction of the contour data D2 are The direction is determined to be parallel to two outline lines extending perpendicularly from the reference point p1. In the superposition data 30, the position, x-axis direction, and y-axis direction of the reference point P1 of the design drawing data D1 coincide with the position, x-axis direction, and y-axis direction of the reference point p1 of the external shape data D2, respectively.

(実測データ抽出手段)
実測データ抽出手段22は、外形データD2から上記被測定物の実測データD4を抽出する。本実施形態において、実測データ抽出手段22は、外形データD2の外形線を基に上記被測定物の実測データD4を抽出する。実測データ抽出手段22は、例えば以下の手順で実測データD4を抽出する。このとき、実測データD4を抽出するための指示データが当該検査装置100に実測データD4の抽出に先立って入力されている。上記指示データとしては、抽出対象の形状(直線、円、楕円等)、隣接する直線間の距離、円の直径、楕円の曲率半径、円の中心間距離、抽出対象を検出する範囲の情報等が挙げられる。上記指示データは、ユーザーが手動で入力してもよく、外形データD2を解析した画像認識AI等によって自動入力してもよい。次に、実測データ抽出手段22は、上記指示データを基に上記被測定物の実測値を算出する。さらに、実測データ抽出手段22は、平板aの短手方向(y軸方向)長さ、平板aの長手方向(x軸方向)長さ、孔部b及び孔部cの基準点P1からの座標、孔部bの直径、孔部cの曲線部の半径等を算出する。
(actual data extraction means)
The actual measurement data extraction means 22 extracts actual measurement data D4 of the object to be measured from the external shape data D2. In this embodiment, the measured data extraction means 22 extracts the measured data D4 of the object to be measured based on the outline of the external shape data D2. The measured data extracting means 22 extracts the measured data D4, for example, by the following procedure. At this time, instruction data for extracting the actual measurement data D4 is input to the inspection apparatus 100 prior to extraction of the actual measurement data D4. The above instruction data includes the shape of the extraction target (straight line, circle, ellipse, etc.), the distance between adjacent straight lines, the diameter of the circle, the radius of curvature of the ellipse, the distance between the centers of the circles, information on the range in which the extraction target is detected, etc. can be mentioned. The above-mentioned instruction data may be input manually by the user, or may be automatically input by an image recognition AI or the like that analyzes the external shape data D2. Next, the measured data extraction means 22 calculates the measured value of the object to be measured based on the instruction data. Furthermore, the measured data extraction means 22 extracts the length of the flat plate a in the transverse direction (y-axis direction), the length of the flat plate a in the longitudinal direction (x-axis direction), and the coordinates of the holes b and c from the reference point P1. , the diameter of hole b, the radius of the curved portion of hole c, etc. are calculated.

実測データ抽出手段22は、上記被測定物の実測値に例えば表1に示すようにE1からE7の識別番号を付与し、実測値レコードを作成する。実測データ抽出手段22はさらに、実測値レコードにユーザーが入力した上記指示データを基に抽出された測定対象及びデータ種別の情報も付与する。実測データ抽出手段22は、これら実測値レコードの一覧を実測データD4として記憶部30に保管する。このため、本実施形態において、上記実測値レコードはそれぞれ識別番号、測定対象、データ種別及び実測値等のデータを有する。なお、表1に示すe1からe10は実測値を表す数値である。 The actual measurement data extraction means 22 assigns identification numbers E1 to E7, for example, as shown in Table 1, to the actual measurement values of the object to be measured, and creates an actual measurement value record. The measured data extraction means 22 further adds information on the measurement object and data type extracted based on the instruction data input by the user to the measured value record. The measured data extraction means 22 stores a list of these measured value records in the storage unit 30 as measured data D4. Therefore, in this embodiment, each of the actual measurement value records includes data such as an identification number, a measurement target, a data type, and an actual measurement value. Note that e1 to e10 shown in Table 1 are numerical values representing actually measured values.

Figure 2023167689000002
Figure 2023167689000002

(補助線抽出手段)
補助線抽出手段23は、重ね合わせ手段21で重ね合わせされた外形データD2を用いて設計図面データD1から寸法補助線を抽出する。本実施形態において、補助線抽出手段23は、上述の通り重ね合わせ手段21によって特定した設計図面データD1の外形線を設計図面データD1から削除することによって、寸法補助線を抽出する。図5に、設計図面データD1から抽出した寸法補助線及び設計寸法値を示す。これにより、寸法補助線と外形データD2の外形線との混同を回避することができる。また、後述する設計データ抽出手段24がより高精度に設計データD6を抽出することができる。なお、設計図面データD1の外形線を確実に削除するため、外形データD2の外形線の幅を予め大きくする処理を実行してもよい。
(Auxiliary line extraction means)
The auxiliary line extracting means 23 extracts dimension auxiliary lines from the design drawing data D1 using the external shape data D2 superimposed by the superimposing means 21. In this embodiment, the auxiliary line extracting means 23 extracts dimension auxiliary lines by deleting from the design drawing data D1 the outline lines of the design drawing data D1 specified by the superimposing means 21 as described above. FIG. 5 shows dimension extension lines and design dimension values extracted from the design drawing data D1. Thereby, it is possible to avoid confusion between the dimension extension line and the outline line of the outline data D2. Further, the design data extraction means 24 described later can extract the design data D6 with higher accuracy. Note that in order to reliably delete the outline lines of the design drawing data D1, a process may be performed in which the width of the outline lines of the outline data D2 is increased in advance.

本実施形態において、設計図面データD1の外形線を設計図面データD1から削除する際に外形線と寸法補助線との交差部分も削除される。このため、図5に示す通り、補助線抽出手段23によって抽出された寸法補助線は部分的に欠落している。寸法補助線の欠落部分は、例えば図5のQ1からQ3である。図5の破線Rは、削除された上記外形線である。 In this embodiment, when deleting the outline of the design drawing data D1 from the design drawing data D1, the intersection of the outline and the dimension extension line is also deleted. Therefore, as shown in FIG. 5, the dimension extension lines extracted by the extension line extraction means 23 are partially missing. The missing portions of the dimension extension lines are, for example, Q1 to Q3 in FIG. The broken line R in FIG. 5 is the deleted outline line.

上述の通り、外形線を削除した設計図面データD1は、一部が欠落した寸法補助線及び設計寸法値からなる。補助線抽出手段23は、寸法補助線の欠落部分Q1からQ3等を補完した上で、補完済の寸法補助線及び設計寸法値を抽出する。寸法補助線の補完方法としては、重ね合わせされた外形データD2の外形線の幅に等しい欠落部分を特定し、その部分を接続する方法等が挙げられる。補助線抽出手段23は、補完済の寸法補助線及び設計寸法値を含むデータを解析用設計図面データD5として記憶部30に保管する。解析用設計図面データD5を図6に示す。 As described above, the design drawing data D1 from which the outline lines have been deleted consists of partially missing dimension extension lines and design dimension values. The auxiliary line extracting means 23 complements the missing portions Q1 to Q3 of the dimension auxiliary lines, and then extracts the completed dimension auxiliary lines and design dimension values. Examples of methods for supplementing dimension extension lines include a method of identifying a missing portion equal to the width of the outline line of the superimposed outline data D2 and connecting the missing part. The auxiliary line extracting means 23 stores data including the complemented dimension auxiliary lines and design dimension values in the storage unit 30 as analytical design drawing data D5. The analysis design drawing data D5 is shown in FIG.

(設計データ抽出手段)
設計データ抽出手段24は、補助線抽出手段23で抽出された寸法補助線を用いて、設計図面データD1から上記被測定物の設計データD6を抽出する。本実施形態において、設計データ抽出手段24は、補完済の寸法補助線及び設計寸法値を含む解析用設計図面データD5を用いて上記被測定物の設計データD6を抽出する。設計データ抽出手段24が上記被測定物の設計データD6を抽出する手順としては、例えば以下の通りである。最初に、図6に示す通り、寸法補助線の交点又は端点をP1からP7として抽出する。そして、それぞれの交点又は端点について、設計寸法値を基に基準点P1からの座標を算出する。例えば、P3のx軸方向位置は数値情報x1の設計寸法値(x11)として、P3のy軸方向位置は数値情報y1の設計寸法値(y11)及び数値情報y2の設計寸法値(y21)の和(y11+y21)として算出する。その後、交点又は端点の間の距離を算出する。例えば、P1とP2との距離は数値情報y1の設計寸法値(y11)として算出する。本実施形態においては、交点又は端点の座標はすべて算出し、交点又は端点の間の距離はすべての組み合わせについて算出する。算出された座標及び距離のうち、不要なものについては、後述する手動の修正によって適宜削除される。また、孔部の直径や孔部の曲線部の半径を示している設計寸法値については、データの種別が直径又は半径であることを寸法補助線の方向及び形状から識別する。設計データ抽出手段24が上記被測定物の設計データD6を抽出する上述の手順は、例えば設計寸法値を読み取り、この設計寸法値に対応する交点又は端点の間の距離を抽出可能な機械学習済のプログラム、画像認識AI、又はそれらの組み合わせ等によって実現してもよい。
(Design data extraction means)
The design data extraction means 24 extracts the design data D6 of the object to be measured from the design drawing data D1 using the dimension extension lines extracted by the extension line extraction means 23. In this embodiment, the design data extracting means 24 extracts the design data D6 of the object to be measured using the analysis design drawing data D5 including supplemented dimension extension lines and design dimension values. The procedure by which the design data extraction means 24 extracts the design data D6 of the object to be measured is, for example, as follows. First, as shown in FIG. 6, the intersection points or end points of the dimension extension lines are extracted as P1 to P7. Then, for each intersection point or end point, the coordinates from the reference point P1 are calculated based on the design dimension values. For example, the x-axis direction position of P3 is the design dimension value (x11) of numerical information x1, and the y-axis direction position of P3 is the design dimension value (y11) of numerical information y1 and the design dimension value (y21) of numerical information y2. Calculate as the sum (y11+y21). Then, calculate the distance between the intersection points or endpoints. For example, the distance between P1 and P2 is calculated as the design dimension value (y11) of the numerical information y1. In this embodiment, the coordinates of all intersection points or end points are calculated, and the distances between the intersection points or end points are calculated for all combinations. Among the calculated coordinates and distances, unnecessary ones are appropriately deleted by manual correction described later. Furthermore, for design dimension values indicating the diameter of the hole or the radius of the curved portion of the hole, it is determined from the direction and shape of the dimension extension line that the data type is diameter or radius. The above-mentioned procedure in which the design data extraction means 24 extracts the design data D6 of the object to be measured is a machine learning method capable of reading, for example, design dimension values and extracting distances between intersection points or end points corresponding to the design dimension values. It may be realized by a program, image recognition AI, or a combination thereof.

設計データ抽出手段24は、例えば上記被測定物の設計値に例えば表2に示すようにF1からF9の識別番号を付与した設計値レコードを作成する。設計データ抽出手段24はさらに、設計値レコードに上述の手順で抽出された測定対象及びデータ種別の情報も付与する。設計データ抽出手段24は、これら設計値レコードの一覧を設計データD6として記憶部30に保管する。このため、本実施形態において、上記設計値レコードはそれぞれ測定対象、データ種別、設計寸法値及び公差等のデータを有する。また、表2は、設計データ抽出手段24が保管した設計値レコードの一部を示すものである。 The design data extraction means 24 creates a design value record in which identification numbers F1 to F9 are assigned to the design values of the object to be measured, as shown in Table 2, for example. The design data extraction means 24 further adds information on the measurement object and data type extracted in the above-described procedure to the design value record. The design data extraction means 24 stores a list of these design value records in the storage unit 30 as design data D6. Therefore, in this embodiment, each of the design value records includes data such as a measurement target, data type, design dimension value, and tolerance. Further, Table 2 shows some of the design value records stored by the design data extraction means 24.

Figure 2023167689000003
Figure 2023167689000003

(比較手段)
比較手段25は、実測データD4と設計データD6とを対応づけしつつ比較する。本実施形態において、比較手段25は、実測データ抽出手段22が作成した実測値レコードと設計データ抽出手段24が作成した設計値レコードとを対応づける。対応づける方法としては、例えば実測値レコードE1からE7のそれぞれについてデータ種別及び実測値を参照し、データ種別及び設計寸法値の近似する設計値レコードを設計値レコードF1からF9から選択することが挙げられる。これにより、例えば実測値レコードE1と設計値レコードF1との対応づけ、実測値レコードE2と設計値レコードF2との対応づけ、実測値レコードE3と設計値レコードF3との対応づけ、実測値レコードE4と設計値レコードF4との対応づけ、実測値レコードE5と設計値レコードF5との対応づけ、実測値レコードE6と設計値レコードF6との対応づけ、実測値レコードE7と設計値レコードF7との対応づけが実行される。比較手段25は、対応づけされた実測値レコード及び設計値レコードが比較可能に並べられた状態で、実測値レコード群及び設計値レコード群を含む比較結果データD7を作成し、記憶部30に保管する。なお、本実施形態において、対応づけがされなかった設計値レコードE8、E9等も比較結果データD7に含まれる。
(Means of comparison)
The comparison means 25 compares the actual measurement data D4 and the design data D6 while associating them with each other. In this embodiment, the comparison means 25 associates the actual value record created by the actual measurement data extraction means 22 with the design value record created by the design data extraction means 24. As a method for making the correspondence, for example, refer to the data type and actual measurement value for each of the actual measurement value records E1 to E7, and select a design value record that approximates the data type and design dimension value from the design value records F1 to F9. It will be done. As a result, for example, the correspondence between the actual measurement value record E1 and the design value record F1, the correspondence between the actual measurement value record E2 and the design value record F2, the association between the actual measurement value record E3 and the design value record F3, and the association between the actual measurement value record E4 and the design value record F4, the correspondence between the actual measurement value record E5 and the design value record F5, the correspondence between the actual measurement value record E6 and the design value record F6, and the correspondence between the actual measurement value record E7 and the design value record F7. The attachment is executed. The comparison means 25 creates comparison result data D7 including a group of actual value records and a group of design value records, with the associated actual value records and design value records arranged so as to be comparable, and stores it in the storage unit 30. do. Note that, in this embodiment, the design value records E8, E9, etc. that have not been associated are also included in the comparison result data D7.

比較手段25は、例えばデータ種別及び設計寸法値の類似する設計値レコードが複数存在する場合、誤った実測値レコード及び設計値レコードの組み合わせを対応づけする可能性がある。この点を考慮して、比較手段25は、比較結果データD7を外部端末において表示し、ユーザーに確認を求める機能を有していてもよい。この機能により、ユーザーは外部端末を操作することによって、比較結果データD7における実測値レコード及び設計値レコードの対応関係を手動で修正することができる。また、比較手段25は、設計値レコードE8、E9等の対応づけされていない設計値レコードも外部端末に表示する。これにより、ユーザーは比較結果データD7から不要な設計値レコード等を削除することができる。 For example, when there are a plurality of design value records with similar data types and design dimension values, the comparison means 25 may associate incorrect combinations of actual measured value records and design value records. In consideration of this point, the comparing means 25 may have a function of displaying the comparison result data D7 on an external terminal and requesting confirmation from the user. This function allows the user to manually correct the correspondence between the measured value record and the design value record in the comparison result data D7 by operating the external terminal. Furthermore, the comparing means 25 also displays uncorrelated design value records such as design value records E8 and E9 on the external terminal. This allows the user to delete unnecessary design value records and the like from the comparison result data D7.

(評価手段)
評価手段26は、設計データD6を基に実測データD4を評価する。より具体的には、評価手段26は、比較結果データD7のそれぞれの実測値レコードの実測値が、対応する設計値レコードの公差の範囲に収まっているか否を判定する。評価手段26は、この判定結果を比較結果データD7に追記した評価結果データD8を記憶部30に保管する。
(Evaluation means)
The evaluation means 26 evaluates the measured data D4 based on the design data D6. More specifically, the evaluation means 26 determines whether the actual measured value of each actual measured value record of the comparison result data D7 falls within the tolerance range of the corresponding design value record. The evaluation means 26 stores evaluation result data D8 in which the determination result is added to the comparison result data D7 in the storage unit 30.

設計データ抽出手段24において、例えば解析用設計図面データD5から公差の値を適切に抽出できていない場合が想定される。この点を考慮して、評価手段26は、評価結果データD8を外部端末において表示し、ユーザーに確認を求める機能を有していてもよい。この機能により、ユーザーは外部端末を操作することによって、評価結果データD8における公差や判定結果を手動で修正することができる。 It is assumed that the design data extracting means 24 may not be able to appropriately extract tolerance values from the analytical design drawing data D5, for example. In consideration of this point, the evaluation means 26 may have a function of displaying the evaluation result data D8 on an external terminal and requesting confirmation from the user. This function allows the user to manually correct the tolerances and judgment results in the evaluation result data D8 by operating the external terminal.

<記憶部>
記憶部30は、当該検査装置100に内蔵された記憶媒体である。記憶部30としては、公知のハードディスク等を採用することができる。
<Storage section>
The storage unit 30 is a storage medium built into the inspection apparatus 100. As the storage unit 30, a known hard disk or the like can be used.

[検査方法]
本発明の一実施形態に係る検査方法は、被測定物の寸法を検査する検査方法であって、上記被測定物の外形線、設計寸法値及び上記外形線と上記設計寸法値とを対応づける寸法補助線を含む設計図面を取り込む設計情報取得工程S1と、上記設計図面に対応する上記被測定物の外形画像を取り込む外形画像取得工程S2と、設計情報取得工程S1で取得した設計図面データD1と、外形画像取得工程S2で取得した上記被測定物の外形データD2とを重ね合わせる重ね合わせ工程S3と、外形データD2から上記被測定物の実測データD4を抽出する実測データ抽出工程と、重ね合わせ工程S3で重ね合わせされた外形データD2を用いて設計図面データD1から寸法補助線を抽出する補助線抽出工程S5と、補助線抽出工程S5で抽出された寸法補助線を用いて、設計図面データD1から上記被測定物の設計データD6を抽出する設計データ抽出工程S6と、実測データD4と設計データD6とを対応づけしつつ比較する比較工程S7と、設計データD6を基に実測データD4を評価する評価工程S8とを備える。
[Inspection method]
An inspection method according to an embodiment of the present invention is an inspection method for inspecting the dimensions of an object to be measured, in which an outline of the object to be measured, a design dimension value, and an association between the outline line and the design dimension value are provided. A design information acquisition step S1 that imports a design drawing including dimension extension lines, an outline image acquisition step S2 that imports an outline image of the object to be measured corresponding to the design drawing, and design drawing data D1 acquired in the design information acquisition step S1. and the outer shape data D2 of the object to be measured obtained in the outer shape image acquisition step S2, a superimposing step S3 of superimposing the outer shape data D2 of the object to be measured, and a measured data extraction step of extracting the actual measured data D4 of the object to be measured from the outer shape data D2; Auxiliary line extraction step S5 extracts dimension extension lines from the design drawing data D1 using the external shape data D2 superimposed in the alignment step S3, and a design drawing using the dimension extension lines extracted in the extension line extraction step S5. A design data extraction step S6 for extracting the design data D6 of the object to be measured from the data D1, a comparison step S7 for comparing the actual measurement data D4 and the design data D6 while associating them, and actual measurement data D4 based on the design data D6. and an evaluation step S8 for evaluating.

当該検査方法は、例えば上述した当該検査装置100を用いて実行することができる。この場合、設計情報取得工程S1の内容は上述した設計情報取得手段11の実行内容と、外形画像取得工程S2の内容は上述した外形画像取得手段12の実行内容と、重ね合わせ工程S3の内容は上述した重ね合わせ手段21の実行内容と、実行データ抽出工程S4の内容は上述した実行データ抽出手段22の実行内容と、補助線抽出工程S5の内容は上述した補助線抽出手段23の実行内容と、設計データ抽出工程S6の内容は上述した設計データ抽出手段24の実行内容と、比較工程S7の内容は上述した比較手段25の実行内容と、評価工程S8の内容は上述した評価手段26の実行内容と同様とすることができる。 The inspection method can be executed using, for example, the inspection apparatus 100 described above. In this case, the content of the design information acquisition step S1 is the execution content of the design information acquisition means 11 mentioned above, the content of the outline image acquisition step S2 is the execution content of the outline image acquisition means 12 mentioned above, and the content of the superposition step S3 is the execution content of the outline image acquisition means 12 mentioned above. The execution contents of the above-mentioned superimposition means 21 and the contents of the execution data extraction step S4 are the same as the execution contents of the execution data extraction means 22 mentioned above, and the contents of the auxiliary line extraction step S5 are the same as the execution contents of the auxiliary line extraction means 23 mentioned above. The content of the design data extraction step S6 is the execution content of the above-mentioned design data extraction means 24, the content of the comparison step S7 is the execution content of the above-mentioned comparison means 25, and the content of the evaluation step S8 is the execution content of the above-mentioned evaluation means 26. The content can be the same.

[プログラム]
本発明の一実施形態に係るプログラムは、被測定物の寸法を検査するため、上記被測定物の外形線、設計寸法値及び上記外形線と上記設計寸法値とを対応づける寸法補助線を含む設計図面を取り込む設計情報取得工程S1と、上記設計図面に対応する上記被測定物の外形画像を取り込む外形画像取得工程S2と、設計情報取得工程S1で取得した設計図面データD1と、上記外形画像取得工程S2で取得した上記被測定物の外形データD2とを重ね合わせる重ね合わせ工程S3と、外形データD2から上記被測定物の実測データD4を抽出する実測データ抽出工程S4と、重ね合わせ工程S3で重ね合わせされた外形データD2を用いて設計図面データD1から寸法補助線を抽出する補助線抽出工程S5と、補助線抽出工程S5で抽出された寸法補助線を用いて、設計図面データD1から上記被測定物の設計データD6を抽出する設計データ抽出工程S6と、実測データD4と設計データD6とを対応づけしつつ比較する比較工程S7と、設計データD6を基に実測データD4を評価する評価工程S8とを検査装置に実行させる。
[program]
In order to inspect the dimensions of the object to be measured, the program according to an embodiment of the present invention includes an outline of the object to be measured, a design dimension value, and a dimension extension line that associates the outline and the design dimension value. A design information acquisition step S1 that imports a design drawing; an outline image acquisition step S2 that imports an outline image of the object to be measured corresponding to the design drawing; design drawing data D1 acquired in the design information acquisition step S1; and the outline image. A superimposition step S3 of superimposing the external shape data D2 of the object to be measured obtained in the acquisition step S2, an actual measurement data extraction step S4 of extracting actual measurement data D4 of the object to be measured from the external shape data D2, and an overlapping step S3 An auxiliary line extraction step S5 extracts dimension extension lines from the design drawing data D1 using the external shape data D2 superimposed in A design data extraction step S6 for extracting the design data D6 of the object to be measured, a comparison step S7 for comparing the actual measurement data D4 and the design data D6 while associating them, and evaluating the actual measurement data D4 based on the design data D6. The inspection device is caused to perform the evaluation step S8.

当該プログラムは、例えば上述した当該検査装置100を実行させるために用いることができる。この場合、当該プログラムは当該検査装置100に内蔵されていてもよい。また、当該プログラムが当該検査装置100を実行させる設計情報取得工程S1、外形画像取得工程S2、重ね合わせ工程S3、実測データ抽出工程S4、補助線抽出工程S5、設計データ抽出工程S6、比較工程S7及び評価工程S8は、上述した当該検査方法の対応する工程と同様とすることができる。 The program can be used, for example, to execute the inspection device 100 described above. In this case, the program may be built into the inspection device 100. Further, the program causes the inspection apparatus 100 to execute a design information acquisition step S1, an external image acquisition step S2, a superposition step S3, an actual measurement data extraction step S4, an auxiliary line extraction step S5, a design data extraction step S6, and a comparison step S7. The evaluation step S8 can be the same as the corresponding step of the above-described inspection method.

当該プログラムは、単一のプログラムであってもよく、上述の工程ごとに動作しつつ連携する複数のプログラムの集合であってもよい。 The program may be a single program, or may be a collection of multiple programs that operate and cooperate in each of the above steps.

[利点]
当該検査装置100、当該検査方法又は当該プログラムは、外形データD2を用いて上記被測定物の設計図面から寸法補助線を抽出する。このため、本実施形態のように上記設計図面が紙に印刷されている場合であっても、上記被測定物の設計データD6を的確に抽出することができる。したがって、当該検査装置100、当該検査方法又は当該プログラムのいずれかによれば、上記被測定物の寸法を検査するために目視で設計データD6を読み取る労力及び読み取った内容を手動で入力する労力を大幅に軽減することができる。したがって、設計図面上の寸法を実測値と容易かつ確実に比較可能である。
[advantage]
The inspection apparatus 100, the inspection method, or the program extracts dimension extension lines from the design drawing of the object to be measured using the external shape data D2. Therefore, even if the design drawing is printed on paper as in this embodiment, the design data D6 of the object to be measured can be accurately extracted. Therefore, according to the inspection apparatus 100, the inspection method, or the program, the effort of visually reading the design data D6 and the effort of manually inputting the read contents in order to inspect the dimensions of the object to be measured can be reduced. It can be significantly reduced. Therefore, dimensions on the design drawing can be easily and reliably compared with actual measurements.

[その他の実施形態]
上記実施形態は、本発明の構成を限定するものではない。従って、上記実施形態は、本明細書の記載及び技術常識に基づいて上記実施形態各部の構成要素の省略、置換又は追加が可能であり、それらは全て本発明の範囲に属するものと解釈されるべきである。
[Other embodiments]
The above embodiments do not limit the configuration of the present invention. Therefore, in the above embodiment, it is possible to omit, replace, or add components of each part of the above embodiment based on the description of this specification and common general technical knowledge, and all of these are interpreted as falling within the scope of the present invention. Should.

上記実施形態では、被測定物が孔部を有する平面視矩形状の平板であるものとしたが、本発明は任意の形状の被測定物に対して用いることができる。 In the above embodiment, the object to be measured is a flat plate having a hole and having a rectangular shape in plan view, but the present invention can be used for an object to be measured of any shape.

上記実施形態では、外形画像取得手段は、設計図面に対応する方向から撮影した被測定物の外形画像を取り込む画像センサであるものとしたが、本発明の構成はこれに限定されない。外形画像取得手段は、3次元の画像を撮影する画像センサであってもよく、この場合被測定物の断面画像を読み取るものであってもよい。このとき、外形画像取得手段が取得した外形データからは、高さデータ等の上記断面画像以外のデータを削除してもよい。 In the above embodiment, the external image acquisition means is an image sensor that captures an external image of the object to be measured taken from a direction corresponding to the design drawing, but the configuration of the present invention is not limited to this. The external image acquisition means may be an image sensor that takes a three-dimensional image, and in this case may read a cross-sectional image of the object. At this time, data other than the cross-sectional image, such as height data, may be deleted from the outer shape data acquired by the outer shape image acquisition means.

上記実施形態では、外形画像取得手段がエッジ検出によって、被測定物の外形線及び孔部の外形線を取得するものとしたが、外形画像取得手段は被測定物の凸部又は凹部の外形線を検出してもよい。また、外形画像取得手段が検出する外形線は矩形状、円形状又は長円状に限定されない。 In the above embodiment, the outline image acquisition means acquires the outline of the object to be measured and the outline of the hole by edge detection. may be detected. Further, the outline detected by the outline image acquisition means is not limited to a rectangular shape, a circular shape, or an oval shape.

本発明の補助線抽出手段及び設計データ抽出手段は、ユーザーに出力された寸法補助線及び設計データの確認を求め、ユーザーによって調整された抽出条件を基に再実行する機能を有していてもよい。 The extension line extraction means and design data extraction means of the present invention may have a function of requesting the user to confirm the output dimension extension lines and design data, and re-executing the extraction based on the extraction conditions adjusted by the user. good.

上記実施形態では、当該検査装置はユーザーが外部から操作するための外部端末に接続されているものとしたが、重ね合わせデータ等を表示するモニター等を当該検査装置が備える構成としてもよい。また、ユーザーが当該検査装置を直接操作する構成であってもよい。 In the embodiment described above, the inspection device is connected to an external terminal for the user to operate from the outside, but the inspection device may include a monitor or the like that displays superimposed data and the like. Alternatively, a configuration may be adopted in which the user directly operates the inspection device.

上記実施形態では、当該検査装置が記憶部を備えるものとしたが、記憶部は当該検査装置に接続された外部端末等に配置してもよい。 In the above embodiment, the inspection device is provided with a storage section, but the storage section may be placed in an external terminal etc. connected to the inspection device.

上記実施形態では、当該プログラムが検査装置に内蔵されているものとしたが、当該プログラムは外部から検査装置に各工程を実行させるものであってもよい。 In the embodiment described above, it is assumed that the program is built into the inspection device, but the program may be one that causes the inspection device to execute each process from the outside.

本発明の一態様に係る検査装置は、設計図面上の寸法を実測値と容易かつ確実に比較可能であるため、被測定物の品質評価等に用いることができる。 The inspection device according to one aspect of the present invention can easily and reliably compare dimensions on a design drawing with actual measured values, and thus can be used for quality evaluation of an object to be measured.

100 検査装置
10 入力部
11 設計情報取得手段
12 外形画像取得手段
20 処理部
21 重ね合わせ手段
22 実測データ抽出手段
23 補助線抽出手段
24 設計データ抽出手段
25 比較手段
26 評価手段
30 記憶部

100 Inspection device 10 Input section 11 Design information acquisition means 12 External image acquisition means 20 Processing section 21 Overlaying means 22 Actual data extraction means 23 Auxiliary line extraction means 24 Design data extraction means 25 Comparison means 26 Evaluation means 30 Storage section

本発明は、検査装置、検査方法及びプログラムに関する。 The present invention relates to an inspection device, an inspection method, and a program.

一般に、形状検査装置は画像センサ等によって、被測定物の各部位の寸法を測定する。また、測定した寸法は、被測定物の品質を評価するために、設計図面の寸法等と比較される。比較の際には、設計図面上の寸法を、測定した寸法と比較可能となるように入力する作業が発生する場合がある。特に、設計図面が紙媒体に記録されている場合、目視で読み取った設計図面上の寸法を手動で入力することを要する。したがって、このような作業の省力化及び作業時間の短縮が望まれている。 Generally, a shape inspection device measures the dimensions of each part of an object to be measured using an image sensor or the like. Furthermore, the measured dimensions are compared with the dimensions of the design drawing, etc., in order to evaluate the quality of the object to be measured. When making a comparison, it may be necessary to input the dimensions on the design drawing so that they can be compared with the measured dimensions. In particular, when the design drawings are recorded on paper media, it is necessary to manually input the dimensions on the design drawings that have been visually read. Therefore, it is desired to save labor and shorten the working time of such work.

特許文献1には、CADデータ等から作成された設計データを用いて、測定された寸法値に近い設計値からなる設計値情報を設計データから抽出する設計値情報抽出手段を備える測定設定データ作成装置が記載されている。また、特許文献1には、測定対象箇所に関連付けた上記設計値情報等(測定設定データ)を基に、被測定物の寸法測定や公差と比較した評価がさらに実行されることが記載されている。 Patent Document 1 discloses a measurement setting data creation method that includes a design value information extraction means for extracting design value information consisting of design values close to measured dimension values from the design data using design data created from CAD data or the like. The equipment is described. Further, Patent Document 1 describes that dimension measurement of the object to be measured and evaluation in comparison with tolerances are further performed based on the above-mentioned design value information etc. (measurement setting data) associated with the measurement target location. There is.

特開2012-37257号公報Japanese Patent Application Publication No. 2012-37257

しかしながら、特許文献1において、設計データは、形状線の位置情報、寸法線の位置情報、寸法線に関連付けられた設計値及び公差等を予め含んでいることが前提となっている。このため、特許文献1の測定設定データ作成装置を用いて、紙媒体の設計図面等から設計値情報を直接抽出することは困難である。この点に関しては、予めOCR等を用いて設計図面を機械的に読み取る方法も考えられる。しかしながら、寸法線に関連付けられた設計値等を抽出するためには、設計図面に記載された被測定物の外形線と寸法補助線とを識別する必要がある。被測定物の外形線と寸法補助線とが同じ線種で記載されている場合、例えば線種によってこれらを識別することは困難である。このため、設計図面から設計値情報を機械的に抽出することは容易ではない。 However, in Patent Document 1, it is assumed that the design data includes in advance position information of shape lines, position information of dimension lines, design values and tolerances associated with the dimension lines, and the like. For this reason, it is difficult to directly extract design value information from a design drawing on a paper medium using the measurement setting data creation device of Patent Document 1. Regarding this point, a method of mechanically reading the design drawings in advance using OCR or the like may be considered. However, in order to extract the design values associated with the dimension lines, it is necessary to identify the outline of the object to be measured and the dimension extension lines described in the design drawing. When the outline line and the dimension extension line of the object to be measured are written with the same line type, it is difficult to distinguish them by the line type, for example. Therefore, it is not easy to mechanically extract design value information from design drawings.

本発明はこのような事情に基づいてなされたものであり、設計図面上の寸法を実測値と容易かつ確実に比較可能な検査装置を提供することを目的とする。 The present invention has been made based on such circumstances, and an object of the present invention is to provide an inspection device that can easily and reliably compare dimensions on a design drawing with actual measurements.

上記課題を解決するためになされた本発明の一態様に係る検査装置は、被測定物の寸法を検査する検査装置であって、上記被測定物の外形線、設計寸法値、並びに上記外形線と上記設計寸法値とを対応づける寸法線及び寸法補助線を含む設計図面を取り込む設計情報取得手段と、上記設計図面に対応する上記被測定物の外形画像を取り込む外形画像取得手段と、上記設計情報取得手段で取得した設計図面データと、上記外形画像取得手段で取得した上記被測定物の外形データとを重ね合わせる重ね合わせ手段と、上記外形データから上記被測定物の実測データを抽出する実測データ抽出手段と、上記重ね合わせ手段で重ね合わせされた上記外形データを用いて上記設計図面データから上記寸法線及び上記寸法補助線を抽出する寸法線データ抽出手段と、上記寸法線データ抽出手段で抽出された上記寸法線及び上記寸法補助線を用いて、上記設計図面データから上記被測定物の設計データを抽出する設計データ抽出手段と、上記実測データと上記設計データとを対応づけしつつ比較する比較手段と、上記設計データを基に上記実測データを評価する評価手段とを備える。 An inspection device according to one aspect of the present invention, which has been made to solve the above problems, is an inspection device that inspects the dimensions of an object to be measured, and the inspection device inspects the outline of the object to be measured, design dimension values , and the outline of the object. and design information acquisition means for capturing a design drawing including dimension lines and dimension extension lines for associating the design dimension values with the design dimension values; superimposition means for superimposing design drawing data acquired by the information acquisition means and external shape data of the object to be measured acquired by the external image acquisition means; and actual measurement for extracting actual measurement data of the object to be measured from the external shape data. a data extraction means; a dimension line data extraction means for extracting the dimension line and the dimension extension line from the design drawing data using the external shape data superimposed by the superimposition means; a design data extraction means for extracting design data of the object to be measured from the design drawing data using the extracted dimension lines and dimension auxiliary lines; and a comparison between the measured data and the design data while associating them with each other. and an evaluation means for evaluating the measured data based on the design data.

本発明の一態様に係る検査装置は、設計図面上の寸法を実測値と容易かつ確実に比較可能である。 The inspection device according to one aspect of the present invention can easily and reliably compare dimensions on a design drawing with actual measurements.

図1は、本発明の一実施形態に係る検査装置の構成を示すブロック図である。FIG. 1 is a block diagram showing the configuration of an inspection device according to an embodiment of the present invention. 図2は、図1の検査装置が読み取る設計図面を示す模式図である。FIG. 2 is a schematic diagram showing a design drawing read by the inspection device of FIG. 図3は、図1の検査装置が読み取る被対象物の外形画像を示す模式図である。FIG. 3 is a schematic diagram showing an external image of the object read by the inspection device of FIG. 1. 図4は、図3の画像から外形線を抽出した外形データを示す模式図である。FIG. 4 is a schematic diagram showing outline data obtained by extracting outline lines from the image shown in FIG. 図5は、図2の設計図面データから抽出した寸法線、寸法補助線及び数値情報を示す模式図である。FIG. 5 is a schematic diagram showing dimension lines, dimension extension lines, and numerical information extracted from the design drawing data of FIG. 2. 図6は、図5の寸法線及び寸法補助線を補完した状態を示す模式図である。FIG. 6 is a schematic diagram showing a state in which the dimension lines and dimension extension lines in FIG. 5 are complemented. 図7は、本発明の一実施形態に係る検査方法を示すフロー図である。FIG. 7 is a flow diagram showing an inspection method according to an embodiment of the present invention.

[本発明の実施形態の説明]
最初に本発明の実施態様を列記して説明する。
[Description of embodiments of the present invention]
First, embodiments of the present invention will be listed and explained.

本発明の一態様に係る検査装置は、被測定物の寸法を検査する検査装置であって、上記被測定物の外形線、設計寸法値、並びに上記外形線と上記設計寸法値とを対応づける寸法線及び寸法補助線を含む設計図面を取り込む設計情報取得手段と、上記設計図面に対応する上記被測定物の外形画像を取り込む外形画像取得手段と、上記設計情報取得手段で取得した設計図面データと、上記外形画像取得手段で取得した上記被測定物の外形データとを重ね合わせる重ね合わせ手段と、上記外形データから上記被測定物の実測データを抽出する実測データ抽出手段と、上記重ね合わせ手段で重ね合わせされた上記外形データを用いて上記設計図面データから上記寸法線及び上記寸法補助線を抽出する寸法線データ抽出手段と、上記寸法線データ抽出手段で抽出された上記寸法線及び上記寸法補助線を用いて、上記被測定物の設計データを抽出する設計データ抽出手段と、上記実測データと上記設計データとを対応づけしつつ比較する比較手段と、上記設計データを基に上記実測データを評価する評価手段とを備える。 An inspection device according to one aspect of the present invention is an inspection device that inspects the dimensions of a workpiece, and the test device correlates the outline and design dimension values of the workpiece , and the outline and design dimension values. a design information acquisition means for importing a design drawing including dimension lines and dimension extension lines; an external image acquisition means for importing an external image of the object to be measured corresponding to the design drawing; and design drawing data acquired by the design information acquisition means. and the outer shape data of the object to be measured acquired by the outer shape image acquiring means, a superimposing means for superimposing the outer shape data of the object to be measured, an actual measurement data extracting means for extracting actual measurement data of the object from the outer shape data, and the superimposing means dimension line data extraction means for extracting the dimension line and the dimension assistance line from the design drawing data using the superimposed external shape data; and the dimension line and the dimension extracted by the dimension line data extraction means. a design data extraction means for extracting design data of the object to be measured using auxiliary lines; a comparison means for comparing the actual measurement data and the design data while associating them; and an evaluation means for evaluating.

当該検査装置は、上記外形データを用いて上記設計図面データから上記寸法線及び上記寸法補助線を抽出する上記寸法線データ抽出手段を備えるため、上記設計図面において外形線と寸法線及び寸法補助線とが混在している場合であっても上記被測定物の上記設計データを的確に抽出することができる。したがって、当該検査装置によれば、上記設計図面が紙媒体である場合等に、上記被測定物の寸法を検査するために目視で上記設計データを読み取る労力を大幅に軽減することができる。したがって、設計図面上の寸法を実測値と容易かつ確実に比較可能である。なお、ここで「外形線」とは、被測定物の外縁を示す線、及び上記外縁に囲まれた内部領域における形状の異なる部位の境界線を意味する。「形状の異なる部位の境界線」としては、例えば高さの異なる部位の間の境界線、凹部又は孔部の境界線、平面部と曲面部又は傾斜部との間の境界線等が挙げられる。 The inspection device includes the dimension line data extraction means for extracting the dimension line and the dimension extension line from the design drawing data using the external shape data, so that Even if there is a mixture of the following, the design data of the object to be measured can be accurately extracted. Therefore, according to the inspection device, when the design drawing is a paper medium, it is possible to significantly reduce the effort required to visually read the design data in order to inspect the dimensions of the object to be measured. Therefore, dimensions on the design drawing can be easily and reliably compared with actual measurements. Note that the term "outline line" herein refers to a line indicating the outer edge of the object to be measured, and a boundary line between parts of different shapes in an internal region surrounded by the outer edge. Examples of "boundary lines between parts with different shapes" include boundaries between parts with different heights, boundaries between recesses or holes, boundaries between flat parts and curved parts or sloped parts, etc. .

上記設計図面が紙媒体由来のデータ又は画像データであることが好ましい。上記設計図面がこのようなデータであることによって、上記設計図面データから上記被測定物の上記設計データを的確に抽出可能な本発明の効果がより顕著に発揮される。なお、ここで「紙媒体由来のデータ」とは、紙面上に表された図形、線、数字、符号等を意味し、紙に手書きされたもの及び紙に印刷されたものの両方を含む。また、紙をスキャンすることによってコンピュータに取り込まれた紙面上の図形、線、数字、符号等も含む。「画像データ」とは、画像として描画されたデータであり、画像に含まれる図形、線、数字、符号等の各要素がデータとして識別又は構造化されていないことを意味する。 It is preferable that the design drawing is data or image data derived from a paper medium. When the design drawing is such data, the effect of the present invention, which can accurately extract the design data of the object to be measured from the design drawing data, is more clearly exhibited. Note that "data derived from paper media" herein refers to figures, lines, numbers, codes, etc. expressed on paper, and includes both handwritten data and printed data on paper. It also includes figures, lines, numbers, codes, etc. on paper that are imported into a computer by scanning the paper. "Image data" is data drawn as an image, and means that each element included in the image, such as figures, lines, numbers, codes, etc., is not identified or structured as data.

上記外形画像取得手段が、上記外形画像を取り込んだ後にエッジ検出によって上記外形画像の外形線を抽出し、上記外形データがこの外形線を含むことが好ましい。このように上記外形画像取得手段が上記外形画像の上記外形線を抽出し、上記外形データがこの外形線を含むことによって、より容易に上記設計図面データから上記寸法線及び上記寸法補助線を抽出することができる。 It is preferable that the outline image acquisition means extracts the outline of the outline image by edge detection after capturing the outline image, and the outline data includes this outline. In this way, the outline image acquisition means extracts the outline line of the outline image, and the outline data includes this outline line, so that the dimension line and the dimension auxiliary line can be more easily extracted from the design drawing data. can do.

上記重ね合わせ手段が、上記設計図面データ及び上記外形データの少なくとも一方の倍率を調整することが好ましい。このように上記重ね合わせ手段が、上記設計図面データ及び上記外形データの少なくとも一方の倍率を調整することによって、より確実に上記設計図面データから上記寸法補助線を抽出することができる。 It is preferable that the superimposing means adjusts the magnification of at least one of the design drawing data and the external shape data. In this manner, the overlapping means can more reliably extract the dimension extension line from the design drawing data by adjusting the magnification of at least one of the design drawing data and the external shape data.

上記外形データが上記外形線を含む場合に、上記重ね合わせ手段が、上記外形データに含まれる上記外形線を用いて、上記設計図面データに含まれる上記外形線を特定し、上記寸法線データ抽出手段が上記設計図面データから上記外形線を削除することが好ましい。このように上記重ね合わせ手段が上記設計図面データに含まれる上記外形線を特定し、上記寸法線データ抽出手段が上記設計図面データから上記外形線を削除することによって、より容易に上記設計図面データから上記寸法線及び上記寸法補助線を抽出することができる。 When the external shape data includes the external outline line, the superimposing means uses the external outline line included in the external shape data to identify the external outline line included in the design drawing data, and extracts the dimension line data. Preferably, the means deletes the outline from the design drawing data. In this way, the superimposition means identifies the outline lines included in the design drawing data, and the dimension line data extraction means deletes the outline lines from the design drawing data, thereby making it easier to extract the outline lines from the design drawing data. The above-mentioned dimension line and the above-mentioned dimension extension line can be extracted from .

本発明の他の一態様に係る検査方法は、被測定物の寸法を検査する検査方法であって、上記被測定物の外形線、設計寸法値、並びに上記外形線と上記設計寸法値とを対応づける寸法線及び寸法補助線を含む設計図面を取り込む設計情報取得工程と、上記設計図面に対応する上記被測定物の外形画像を取り込む外形画像取得工程と、上記設計情報取得工程で取得した設計図面データと、上記外形画像取得工程で取得した上記被測定物の外形データとを重ね合わせる重ね合わせ工程と、上記外形データから上記被測定物の実測データを抽出する実測データ抽出工程と、上記重ね合わせ工程で重ね合わせされた上記外形データを用いて上記設計図面データから上記寸法線及び上記寸法補助線を抽出する寸法線データ抽出工程と、上記寸法線データ抽出工程で抽出された上記寸法線及び上記寸法補助線を用いて、上記設計図面データから上記被測定物の設計データを抽出する設計データ抽出工程と、上記実測データと上記設計データとを対応づけしつつ比較する比較工程と、上記設計データを基に上記実測データを評価する評価工程とを備える。 An inspection method according to another aspect of the present invention is an inspection method for inspecting the dimensions of an object to be measured, which includes an outline of the object to be measured, a design dimension value , and an outline and the design dimension value of the object to be measured. a design information acquisition step that imports a design drawing including dimension lines and dimensional extension lines to be associated; an external image acquisition step that imports an external image of the object to be measured that corresponds to the design drawing; and a design acquired in the design information acquisition step. a superimposition step of superimposing the drawing data and the external shape data of the object to be measured acquired in the external image acquisition step; an actual measurement data extraction step of extracting actual measurement data of the object from the external shape data; a dimension line data extraction step of extracting the dimension line and the dimension assistance line from the design drawing data using the external shape data superimposed in the alignment step; and the dimension line and dimension line extracted in the dimension line data extraction step. a design data extraction step of extracting the design data of the object to be measured from the design drawing data using the dimension extension lines; a comparison step of comparing the actual measurement data and the design data while associating them with each other; and an evaluation step of evaluating the measured data based on the data.

当該検査方法は、上記寸法線データ抽出工程を備えるため、上記設計図面が紙媒体である場合等に、上記被測定物の寸法を検査するために目視で上記設計データを読み取る労力を大幅に軽減することができる。したがって、設計図面上の寸法を実測値と容易かつ確実に比較可能である。 Since the inspection method includes the step of extracting the dimension line data , it greatly reduces the effort required to visually read the design data in order to inspect the dimensions of the object, especially when the design drawing is on paper. can do. Therefore, dimensions on the design drawing can be easily and reliably compared with actual measurements.

本発明の他の一態様に係るプログラムは、被測定物の寸法を検査するため、上記被測定物の外形線、設計寸法値、並びに上記外形線と上記設計寸法値とを対応づける寸法線及び寸法補助線を含む設計図面を取り込む設計情報取得工程と、上記設計図面に対応する上記被測定物の外形画像を取り込む外形画像取得工程と、上記設計情報取得工程で取得した設計図面データと、上記外形画像取得工程で取得した上記被測定物の外形データとを重ね合わせる重ね合わせ工程と、上記外形データから上記被測定物の実測データを抽出する実測データ抽出工程と、上記重ね合わせ工程で重ね合わせされた上記外形データを用いて上記設計図面データから上記寸法線及び上記寸法補助線を抽出する寸法線データ抽出工程と、上記寸法線データ抽出工程で抽出された上記寸法線及び上記寸法補助線を用いて、上記設計図面データから上記被測定物の設計データを抽出する設計データ抽出工程と、上記実測データと上記設計データとを対応づけしつつ比較する比較工程と、上記設計データを基に上記実測データを評価する評価工程とを検査装置に実行させる。 A program according to another aspect of the present invention includes, in order to inspect the dimensions of the object to be measured, an outline of the object to be measured, a design dimension value , and a dimension line for associating the outline and the design dimension value. a design information acquisition step of importing a design drawing including dimension extension lines; an outline image acquisition step of importing an outline image of the object to be measured corresponding to the design drawing; the design drawing data acquired in the design information acquisition step; A superimposition step of superimposing the external shape data of the object to be measured obtained in the external image acquisition step, an actual measurement data extraction step of extracting actual measurement data of the object from the external shape data, and superimposition in the overlapping step. a dimension line data extraction step of extracting the dimension line and the dimension extension line from the design drawing data using the extracted external shape data; and a dimension line data extraction step of extracting the dimension line and the dimension extension line extracted in the dimension line data extraction step. a design data extraction step of extracting the design data of the object to be measured from the design drawing data using the above design data; a comparison step of associating and comparing the measured data with the design data; The inspection device is caused to perform an evaluation step of evaluating the measured data.

当該プログラムは、上記寸法線データ抽出工程を実行させるため、上記設計図面が紙媒体である場合等に、上記被測定物の寸法を検査するために目視で上記設計データを読み取る労力を大幅に軽減しつつ、検査装置を実行させることができる。したがって、設計図面上の寸法を実測値と容易かつ確実に比較可能である。 Since the program executes the dimension line data extraction process, it greatly reduces the effort required to visually read the design data in order to inspect the dimensions of the object to be measured, especially when the design drawing is on paper. It is possible to run the inspection device at the same time. Therefore, dimensions on the design drawing can be easily and reliably compared with actual measurements.

[本発明の実施形態の詳細]
以下、適宜図面を参照しつつ、本発明の実施の形態を詳説する。
[Details of embodiments of the present invention]
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings as appropriate.

[検査装置]
図1の検査装置100は、被測定物の寸法を検査する。検査装置100は、入力データを取り込む入力部10と、入力部10によって取り込まれた入力データを処理するための処理部20と、入力データ又は処理部20で処理されたデータを保管する記憶部30とを備える。また、当該検査装置100はユーザーが外部から操作するための外部端末に接続されている(不図示)。検査装置100は、上記被測定物を載置するための載置台を備えていてもよい。
[Inspection equipment]
The inspection apparatus 100 in FIG. 1 inspects the dimensions of an object to be measured. The inspection device 100 includes an input section 10 that takes in input data, a processing section 20 that processes the input data taken in by the input section 10, and a storage section 30 that stores the input data or data processed by the processing section 20. Equipped with. Further, the inspection device 100 is connected to an external terminal (not shown) for a user to operate from the outside. The inspection apparatus 100 may include a mounting table on which the object to be measured is mounted.

<入力部>
入力部10は、上記被測定物の外形線、設計寸法値、並びに上記外形線と上記設計寸法値とを対応づける寸法線及び寸法補助線を含む設計図面を取り込む設計情報取得手段11と、設計図面に対応する上記被測定物の外形画像を取り込む外形画像取得手段12とを備える。
<Input section>
The input unit 10 includes a design information acquisition means 11 for importing a design drawing including an outline of the object to be measured, design dimension values, and dimension lines and dimension extension lines for associating the outline and the design dimension values; A contour image acquisition means 12 is provided for capturing an contour image of the object to be measured corresponding to the drawing.

(被測定物)
上記被測定物は、例えば自動車部品等の機械加工部品である。また、BGA、PCB用基材、コネクタピン等の電子機器部品、樹脂成形品等であってもよい。本実施形態は、上記被測定物の一例として孔部を有する平面視矩形状の平板Aを用いて説明する。より具体的には、上記被測定物は円形の孔部B及び長円形の孔部Cを有する。ただし、本発明の被測定物は上記被測定物に限定されない。
(Object to be measured)
The object to be measured is, for example, a machined part such as an automobile part. Further, electronic device parts such as BGA, PCB base materials, connector pins, resin molded products, etc. may be used. The present embodiment will be described using a flat plate A having a rectangular shape in plan view as an example of the object to be measured. More specifically, the object to be measured has a circular hole B and an oval hole C. However, the object to be measured of the present invention is not limited to the above-mentioned object.

(設計図面)
本実施形態において、上記設計図面は紙に印刷されている。すなわち、上記設計図面に記載された内容は、人が目視で読み取ることが可能である一方で、機械的に処理するためには適切にデータ化する必要がある。図2に示す通り、上記設計図面には、矩形状の平板Aの外形線と、上記外形線に囲まれた内部領域における円形の孔部B及び長円形の孔部Cの外形線と、これら外形線の設計寸法値及び公差が記載された数値情報x1、x2、y1からy4、z1及びz2と、上記外形線及び上記数値情報を対応づける複数の寸法線及び寸法補助線とが記載されている。上記数値情報は、それぞれ設計寸法値及び公差を有しており、例えば数値情報x1はx11±x12等の形式で記載されている。この場合、x11が設計寸法値を示し、x12が公差を示している。すなわち、数値情報x1に対応する部分の長さはx11-x12からx11+x12までが許容されることを意味する。本実施形態において、数値情報x2、y1からy4、z1及びz2についても、上述の数値情報x1と同様の形式で記載されているものとする。また、図2において上記寸法線は、矢印を含む線であり、上記寸法補助線は、矢印の先端と外形線とを結ぶ線又は矢印の先端と孔部の中心とを結ぶ線である。すなわち、上記寸法線及び上記寸法補助線は図2の上記外形線及び上記数値情報を除いた部分である。上記設計図面において、上記外形線、上記寸法線及び上記寸法補助線は同様の線種及び太さで記載されているが、図2においては説明の便宜上、上記外形線が上記寸法線及び上記寸法補助線よりも太く記載されている。
(Design drawing)
In this embodiment, the design drawings are printed on paper. That is, while the contents described in the design drawings can be read visually by humans, they need to be appropriately converted into data in order to be processed mechanically. As shown in FIG. 2, the design drawing includes the outline of the rectangular flat plate A, the outlines of the circular hole B and the oval hole C in the internal area surrounded by the outline, and Numerical information x1, x2, y1 to y4, z1, and z2 in which design dimension values and tolerances of the outline lines are described, and a plurality of dimension lines and dimension extension lines that associate the above-mentioned outline lines and the above-mentioned numerical information are described. There is. Each of the numerical information has design dimension values and tolerances, and for example, the numerical information x1 is written in a format such as x11±x12. In this case, x11 indicates the design dimension value, and x12 indicates the tolerance. That is, it means that the length of the portion corresponding to the numerical information x1 is allowed to be from x11-x12 to x11+x12. In this embodiment, it is assumed that the numerical information x2, y1 to y4, z1, and z2 are also written in the same format as the numerical information x1 described above. Further, in FIG. 2, the dimension line is a line including an arrow, and the dimension auxiliary line is a line connecting the tip of the arrow and the outline line or a line connecting the tip of the arrow and the center of the hole. That is, the dimension line and the dimension supplementary line are the portions of FIG. 2 excluding the outline line and numerical information. In the above design drawing, the above-mentioned outline line , the above-mentioned dimension line , and the above-mentioned dimension assistance line are described with the same line type and thickness, but in FIG. It is written thicker than the auxiliary line.

(設計情報取得手段)
設計情報取得手段11は、例えばスキャナーで読み取った設計図面を取り込むプログラムにより実現される。上記スキャナーは、当該検査装置100に内蔵されていても、外部に配されていてもよい。上記スキャナー及び上記プログラムとしては、公知のものを採用できる。
(Design information acquisition means)
The design information acquisition means 11 is realized, for example, by a program that imports design drawings read by a scanner. The scanner may be built into the inspection device 100 or may be placed outside. As the above-mentioned scanner and the above-mentioned program, known ones can be employed.

設計情報取得手段11は、上記設計図面を設計図面データD1として取り込んだ後、設計図面データD1を記憶部30に保管する。設計図面データD1は、例えば設計図面由来の上記外形線、上記設計寸法値、上記寸法線及び上記寸法補助線を含むデータである。上述の通り上記設計図面は上記外形線、上記寸法線及び上記寸法補助線は同様の線種及び太さで記載されているため、設計図面データD1において上記記外形線、上記寸法線及び上記寸法補助線を線種及び太さによって識別することは困難である。 The design information acquisition means 11 captures the design drawing as design drawing data D1, and then stores the design drawing data D1 in the storage unit 30. The design drawing data D1 is data including, for example, the above-mentioned outline line derived from the design drawing, the above-mentioned design dimension value , the above-mentioned dimension line , and the above-mentioned dimension extension line. As mentioned above, in the design drawing, the above outline line , the above dimension line , and the above dimension assistance line are described with the same line type and thickness, so in the design drawing data D1, the above outline line , the above dimension line , and the above dimension It is difficult to identify auxiliary lines by line type and thickness.

設計情報取得手段11は、上記設計図面について、少なくとも矢印を含む線、矢印を含まない線(上記外形線、上記寸法線及び上記寸法補助線を含む)、及び上記数値情報を互いに識別した上で、設計図面データD1を記憶部30に保管する。これらの識別は、例えば画像認識AI等で行う。 The design information acquisition means 11 identifies at least lines including arrows, lines not including arrows (including the outline line , dimension line, and dimension extension line ), and the numerical information regarding the design drawing, and , the design drawing data D1 are stored in the storage unit 30. These identifications are performed using, for example, image recognition AI.

(外形画像取得手段)
外形画像取得手段12は、例えば検査装置100の載置台に載置された上記被測定物を上記設計図面に対応する方向から撮影した上記被測定物の外形画像を取り込む画像センサである。この画像センサとしては公知のものを採用できる。図3に示す通り、上記被測定物の外形画像は、矩形状の平板aの部分と、この平板の内部に形成された円形の孔部b及び長円形の孔部cとを含む。上記外形画像は、白黒画像であってもカラー画像であってもよい。本実施形態において、外形画像取得手段12は、上記外形画像を取り込んだ後にエッジ検出によって上記外形画像における外形線を抽出する。この結果、外形画像取得手段12は、上記外形線を含む外形データD2を取得する。取得した外形データD2は、記憶部30に保管される。図4に示す通り、外形データD2は、エッジ検出によって抽出された矩形状の平板aの外形線と、円形の孔部b及び長円形の孔部cの外形線とを含む。外形データD2が上記外形線以外のデータ、例えば色彩や色彩の濃淡に関するデータを含む場合、外形画像取得手段12はこれらのデータを削除してもよい。
(Outline image acquisition means)
The external image acquisition means 12 is, for example, an image sensor that captures an external image of the object to be measured placed on the mounting table of the inspection apparatus 100, which is photographed from a direction corresponding to the design drawing. A known image sensor can be used as this image sensor. As shown in FIG. 3, the external image of the object to be measured includes a rectangular flat plate a, a circular hole b and an oval hole c formed inside the flat plate. The external image may be a black and white image or a color image. In this embodiment, the outline image acquisition means 12 extracts outline lines in the outline image by edge detection after capturing the outline image. As a result, the outline image acquisition means 12 acquires the outline data D2 including the outline line. The acquired external shape data D2 is stored in the storage unit 30. As shown in FIG. 4, the outline data D2 includes the outline of the rectangular flat plate a extracted by edge detection, and the outlines of the circular hole b and the oval hole c. If the external shape data D2 includes data other than the above-mentioned external outline line, for example, data regarding color or color shading, the external image acquisition means 12 may delete these data.

<処理部>
処理部20は、重ね合わせ手段21と、実測データ抽出手段22と、寸法線データ抽出手段23と、設計データ抽出手段24と、比較手段25と、評価手段26とを備える。重ね合わせ手段21、実測データ抽出手段22、寸法線データ抽出手段23、設計データ抽出手段24、比較手段25及び評価手段26は、例えばそれぞれ当該検査装置100に内蔵されたプログラムにより実現される。
<Processing section>
The processing section 20 includes a superposition means 21, an actual measurement data extraction means 22, a dimension line data extraction means 23, a design data extraction means 24, a comparison means 25, and an evaluation means 26. The overlaying means 21, the measured data extraction means 22, the dimension line data extraction means 23, the design data extraction means 24, the comparison means 25, and the evaluation means 26 are each realized by a program built into the inspection apparatus 100, for example.

(重ね合わせ手段)
重ね合わせ手段21は、設計情報取得手段11で取得した設計図面データD1と、外形画像取得手段12で取得した上記被測定物の外形データD2とを重ね合わせる。重ね合わせ手段21は、設計図面データD1の上記外形線と外形データD2の外形線とが最も一致するように調整する。調整する手順としては、例えば以下の通りである。最初に、設計図面データD1から数値情報に含まれる最大の数値を抽出し、その数値に対応する上記矢印を含む線を選択する。一方で、外形データD2の上記外形線から最も長い外形線を選択する。そして、上記矢印を含む線と上記外形線との長さが一致するように設計図面データD1及び外形データD2の少なくとも一方のサイズを調整する。その後、設計図面データD1の上記矢印を含まない線と外形データD2の上記外形線とが最も一致するように、設計図面データD1及び外形データD2の少なくとも一方の位置を調整し又は回転させる。設計図面データD1の上記矢印を含まない線と外形データD2の上記外形線との一致は、例えば正規化相関、ハフ変換、特徴点検出等公知のパターンマッチング手法によって評価する。このように重ね合わせ手段21が設計図面データD1と外形データD2とを重ね合わせることによって、後述する寸法線データ抽出手段23がより容易に設計図面データD1から上記寸法線及び寸法補助線を抽出することができる。
(Overlapping means)
The superimposition means 21 superimposes the design drawing data D1 acquired by the design information acquisition means 11 and the external shape data D2 of the object to be measured acquired by the external image acquisition means 12. The superimposing means 21 adjusts so that the outline of the design drawing data D1 and the outline of the outline data D2 match most. For example, the adjustment procedure is as follows. First, the maximum numerical value included in the numerical information is extracted from the design drawing data D1, and a line including the above-mentioned arrow corresponding to that numerical value is selected. On the other hand, the longest outline is selected from the outlines of the outline data D2. Then, the size of at least one of the design drawing data D1 and the outline data D2 is adjusted so that the length of the line including the arrow and the outline line match. Thereafter, the position of at least one of the design drawing data D1 and the outline data D2 is adjusted or rotated so that the line not including the arrow in the design drawing data D1 and the outline line of the outline data D2 match most. The coincidence between the line not including the arrow in the design drawing data D1 and the outline line in the outline data D2 is evaluated by a known pattern matching method such as normalized correlation, Hough transform, or feature point detection. By superimposing the design drawing data D1 and the external shape data D2 by the superimposition means 21 in this way, the dimension line data extraction means 23 described later more easily extracts the dimension lines and dimension extension lines from the design drawing data D1. be able to.

重ね合わせ手段21は、設計図面データD1の上記外形線と外形データD2の外形線とを調整した後、重ね合わせた設計図面データD1及び外形データD2を記憶部30に重ね合わせデータD3として保管する。重ね合わせ手段21は、例えば上記外形線を誤って抽出した場合、設計図面データD1及び外形データD2の重ね合わせが誤った状態で重ね合わせデータD3を保管する可能性がある。この点を考慮して、重ね合わせ手段21は、重ね合わせデータD3を外部端末に表示し、ユーザーに確認を求める機能を有していてもよい。この機能により、ユーザーは外部端末を操作することによって、設計図面データD1又は外形データD2のサイズ、位置等を手動で調整することができる。 After adjusting the outline of the design drawing data D1 and the outline of the outline data D2, the overlapping means 21 stores the overlaid design drawing data D1 and outline data D2 in the storage unit 30 as overlapping data D3. store. For example, if the superimposition means 21 mistakenly extracts the above-mentioned outline, there is a possibility that the superposition data D3 is stored in a state where the design drawing data D1 and the outline data D2 are incorrectly superimposed. In consideration of this point, the superposition means 21 may have a function of displaying the superposition data D3 on an external terminal and requesting confirmation from the user. This function allows the user to manually adjust the size, position, etc. of the design drawing data D1 or the external shape data D2 by operating an external terminal.

重ね合わせ手段21は、重ね合わせデータ30における設計図面データD1と外形データD2との重複部分を、設計図面データD1に含まれる外形線として特定する。 The overlapping unit 21 specifies the overlapping portion between the design drawing data D1 and the outline data D2 in the overlapping data 30 as an outline line included in the design drawing data D1.

本実施形態において、重ね合わせ手段21は、上述の調整後、設計図面データD1及び外形データD2のそれぞれに含まれる上記外形線等の座標を算出するための基準点、x軸方向及びy軸方向を決定する。これら基準点、x軸方向及びy軸方向の決定方法は特に限定されない。本実施形態において、設計図面データD1の基準点は、図2に示す通り平板Aの左下隅角に位置するP1であり、外形データD2の基準点は、図4に示す通り平板aの左下隅角に位置するp1である。また、本実施形態において、設計図面データD1のx軸方向及びy軸方向は基準点P1から直交して延びる2つの外形線にそれぞれ平行な方向に定め、外形データD2のx軸方向及びy軸方向は基準点p1から直交して延びる2つの外形線にそれぞれ平行な方向に定める。重ね合わせデータ30において、設計図面データD1の基準点P1の位置、x軸方向及びy軸方向と、外形データD2の基準点p1の位置、x軸方向及びy軸方向とはそれぞれ一致する。 In this embodiment, the superimposition means 21 is configured to provide a reference point, an x-axis direction and a y-axis direction for calculating the coordinates of the outline line, etc. included in each of the design drawing data D1 and the outline data D2 after the above-mentioned adjustment. Determine. The method of determining these reference points, the x-axis direction, and the y-axis direction is not particularly limited. In this embodiment, the reference point of the design drawing data D1 is P1 located at the lower left corner of the flat plate A as shown in FIG. 2, and the reference point of the external shape data D2 is P1 located at the lower left corner of the flat plate A as shown in FIG. This is p1 located at the corner. In addition, in this embodiment, the x-axis direction and y-axis direction of the design drawing data D1 are set to be parallel to two contour lines extending orthogonally from the reference point P1, and the x-axis direction and the y-axis direction of the contour data D2 are The direction is determined to be parallel to two outline lines extending perpendicularly from the reference point p1. In the superposition data 30, the position, x-axis direction, and y-axis direction of the reference point P1 of the design drawing data D1 coincide with the position, x-axis direction, and y-axis direction of the reference point p1 of the external shape data D2, respectively.

(実測データ抽出手段)
実測データ抽出手段22は、外形データD2から上記被測定物の実測データD4を抽出する。本実施形態において、実測データ抽出手段22は、外形データD2の外形線を基に上記被測定物の実測データD4を抽出する。実測データ抽出手段22は、例えば以下の手順で実測データD4を抽出する。このとき、実測データD4を抽出するための指示データが当該検査装置100に実測データD4の抽出に先立って入力されている。上記指示データとしては、抽出対象の形状(直線、円、楕円等)、隣接する直線間の距離、円の直径、楕円の曲率半径、円の中心間距離、抽出対象を検出する範囲の情報等が挙げられる。上記指示データは、ユーザーが手動で入力してもよく、外形データD2を解析した画像認識AI等によって自動入力してもよい。次に、実測データ抽出手段22は、上記指示データを基に上記被測定物の実測値を算出する。さらに、実測データ抽出手段22は、平板aの短手方向(y軸方向)長さ、平板aの長手方向(x軸方向)長さ、孔部b及び孔部cの基準点P1からの座標、孔部bの直径、孔部cの曲線部の半径等を算出する。
(actual data extraction means)
The actual measurement data extraction means 22 extracts actual measurement data D4 of the object to be measured from the external shape data D2. In this embodiment, the measured data extraction means 22 extracts the measured data D4 of the object to be measured based on the outline of the external shape data D2. The measured data extracting means 22 extracts the measured data D4, for example, by the following procedure. At this time, instruction data for extracting the actual measurement data D4 is input to the inspection apparatus 100 prior to extraction of the actual measurement data D4. The above instruction data includes the shape of the extraction target (straight line, circle, ellipse, etc.), the distance between adjacent straight lines, the diameter of the circle, the radius of curvature of the ellipse, the distance between the centers of the circles, information on the range in which the extraction target is detected, etc. can be mentioned. The above-mentioned instruction data may be input manually by the user, or may be automatically input by an image recognition AI or the like that analyzes the external shape data D2. Next, the measured data extraction means 22 calculates the measured value of the object to be measured based on the instruction data. Furthermore, the measured data extraction means 22 extracts the length of the flat plate a in the transverse direction (y-axis direction), the length of the flat plate a in the longitudinal direction (x-axis direction), and the coordinates of the holes b and c from the reference point P1. , the diameter of hole b, the radius of the curved portion of hole c, etc. are calculated.

実測データ抽出手段22は、上記被測定物の実測値に例えば表1に示すようにE1からE7の識別番号を付与し、実測値レコードを作成する。実測データ抽出手段22はさらに、実測値レコードにユーザーが入力した上記指示データを基に抽出された測定対象及びデータ種別の情報も付与する。実測データ抽出手段22は、これら実測値レコードの一覧を実測データD4として記憶部30に保管する。このため、本実施形態において、上記実測値レコードはそれぞれ識別番号、測定対象、データ種別及び実測値等のデータを有する。なお、表1に示すe1からe10は実測値を表す数値である。 The actual measurement data extraction means 22 assigns identification numbers E1 to E7, for example, as shown in Table 1, to the actual measurement values of the object to be measured, and creates an actual measurement value record. The measured data extraction means 22 further adds information on the measurement object and data type extracted based on the instruction data input by the user to the measured value record. The measured data extraction means 22 stores a list of these measured value records in the storage unit 30 as measured data D4. Therefore, in this embodiment, each of the actual measurement value records includes data such as an identification number, a measurement target, a data type, and an actual measurement value. Note that e1 to e10 shown in Table 1 are numerical values representing actually measured values.

Figure 2023167689000011
Figure 2023167689000011

寸法線データ抽出手段)
寸法線データ抽出手段23は、重ね合わせ手段21で重ね合わせされた外形データD2を用いて設計図面データD1から寸法線及び寸法補助線を抽出する。本実施形態において、寸法線データ抽出手段23は、上述の通り重ね合わせ手段21によって特定した設計図面データD1の外形線を設計図面データD1から削除することによって、寸法線、寸法補助線及び設計寸法値を抽出する。図5に、設計図面データD1から抽出した寸法線、寸法補助線及び設計寸法値を示す。これにより、寸法線及び寸法補助線と外形データD2の外形線との混同を回避することができる。また、後述する設計データ抽出手段24がより高精度に設計データD6を抽出することができる。なお、寸法線データ抽出手段23は、設計図面データD1の外形線を確実に削除するため、外形データD2の外形線の幅を予め大きくする処理を実行してもよい。
( Dimension line data extraction means)
The dimension line data extracting means 23 extracts dimension lines and dimension extension lines from the design drawing data D1 using the external shape data D2 superimposed by the superimposing means 21. In this embodiment, the dimension line data extraction means 23 deletes the outline of the design drawing data D1 specified by the superimposition means 21 as described above from the design drawing data D1, thereby extracting dimension lines, dimension extension lines, and design dimensions. Extract the value. FIG. 5 shows dimension lines, dimension extension lines, and design dimension values extracted from the design drawing data D1. Thereby, it is possible to avoid confusion between the dimension line and the dimension extension line and the outline line of the outline data D2. Further, the design data extraction means 24 described later can extract the design data D6 with higher accuracy. Note that the dimension line data extracting means 23 may execute a process of increasing the width of the outline line of the outline data D2 in advance in order to surely delete the outline line of the design drawing data D1.

本実施形態において、設計図面データD1の外形線を設計図面データD1から削除する際に外形線と寸法線及び寸法補助線との交差部分も削除される。このため、図5に示す通り、補助線抽出手段23によって抽出された寸法線及び寸法補助線は部分的に欠落している。寸法線及び寸法補助線の欠落部分は、例えば図5のQ1からQ3である。図5の破線Rは、削除された上記外形線である。 In this embodiment, when deleting the outline of the design drawing data D1 from the design drawing data D1, the intersections of the outline, dimension lines, and dimension extension lines are also deleted. Therefore, as shown in FIG. 5, the dimension lines and dimension extension lines extracted by the extension line extraction means 23 are partially missing. The missing portions of the dimension lines and dimension extension lines are, for example, Q1 to Q3 in FIG. The broken line R in FIG. 5 is the deleted outline line.

上述の通り、外形線を削除した設計図面データD1は、一部が欠落した寸法線、寸法補助線及び設計寸法値からなる。寸法線データ抽出手段23は、寸法線及び寸法補助線の欠落部分Q1からQ3等を補完した上で、補完済の寸法線、寸法補助線及び設計寸法値を抽出する。寸法線及び寸法補助線の補完方法としては、重ね合わせされた外形データD2の外形線の幅に等しい欠落部分を特定し、その部分を接続する方法等が挙げられる。寸法線データ抽出手段23は、補完済の寸法線、寸法補助線及び設計寸法値を含むデータを解析用設計図面データD5として記憶部30に保管する。解析用設計図面データD5を図6に示す。 As described above, the design drawing data D1 from which outline lines have been deleted consists of partially missing dimension lines, dimension extension lines, and design dimension values. The dimension line data extraction means 23 complements the missing portions Q1 to Q3 of the dimension lines and dimension extension lines, and then extracts the completed dimension lines, dimension extension lines, and design dimension values. As a method for complementing the dimension line and the dimension extension line, there is a method of identifying a missing part equal to the width of the outline line of the superimposed outline data D2 and connecting the missing part. The dimension line data extraction means 23 stores data including the completed dimension lines, dimension extension lines, and design dimension values in the storage unit 30 as analysis design drawing data D5. The analysis design drawing data D5 is shown in FIG.

(設計データ抽出手段)
設計データ抽出手段24は、寸法線データ抽出手段23で抽出された寸法線及び寸法補助線を用いて、設計図面データD1から上記被測定物の設計データD6を抽出する。本実施形態において、設計データ抽出手段24は、補完済の寸法線、寸法補助線及び設計寸法値を含む解析用設計図面データD5を用いて上記被測定物の設計データD6を抽出する。設計データ抽出手段24が上記被測定物の設計データD6を抽出する手順としては、例えば以下の通りである。最初に、図6に示す通り、寸法補助線の交点又は端点をP1からP7として抽出する。そして、それぞれの交点又は端点について、設計寸法値を基に基準点P1からの座標を算出する。例えば、P3のx軸方向位置は数値情報x1の設計寸法値(x11)として、P3のy軸方向位置は数値情報y1の設計寸法値(y11)及び数値情報y2の設計寸法値(y21)の和(y11+y21)として算出する。その後、交点又は端点の間の距離を算出する。例えば、P1とP2との距離は数値情報y4の設計寸法値(y41)として算出する。本実施形態においては、交点又は端点の座標はすべて算出し、交点又は端点の間の距離はすべての組み合わせについて算出する。算出された座標及び距離のうち、不要なものについては、後述する手動の修正によって適宜削除される。また、孔部の直径や孔部の曲線部の半径を示している設計寸法値については、データの種別が直径又は半径であることを寸法線及び寸法補助線の方向及び形状から識別する。設計データ抽出手段24が上記被測定物の設計データD6を抽出する上述の手順は、例えば設計寸法値を読み取り、この設計寸法値に対応する交点又は端点の間の距離を抽出可能な機械学習済のプログラム、画像認識AI、又はそれらの組み合わせ等によって実現してもよい。
(Design data extraction means)
The design data extraction means 24 uses the dimension lines and dimension auxiliary lines extracted by the dimension line data extraction means 23 to extract the design data D6 of the object to be measured from the design drawing data D1. In the present embodiment, the design data extracting means 24 extracts the design data D6 of the object to be measured using the design drawing data D5 for analysis including complemented dimension lines, dimension auxiliary lines, and design dimension values. The procedure by which the design data extraction means 24 extracts the design data D6 of the object to be measured is, for example, as follows. First, as shown in FIG. 6, the intersection points or end points of the dimension extension lines are extracted as P1 to P7. Then, for each intersection point or end point, the coordinates from the reference point P1 are calculated based on the design dimension values. For example, the x-axis direction position of P3 is the design dimension value (x11) of numerical information x1, and the y-axis direction position of P3 is the design dimension value (y11) of numerical information y1 and the design dimension value (y21) of numerical information y2. Calculate as the sum (y11+y21). Then, calculate the distance between the intersection points or endpoints. For example, the distance between P1 and P2 is calculated as the design dimension value ( y41 ) of numerical information y4 . In this embodiment, the coordinates of all intersection points or end points are calculated, and the distances between the intersection points or end points are calculated for all combinations. Among the calculated coordinates and distances, unnecessary ones are appropriately deleted by manual correction described later. Further, for design dimension values indicating the diameter of the hole or the radius of the curved portion of the hole, it is determined that the data type is diameter or radius from the direction and shape of the dimension line and dimension extension line. The above-mentioned procedure in which the design data extraction means 24 extracts the design data D6 of the object to be measured is a machine learning method capable of reading, for example, design dimension values and extracting distances between intersection points or end points corresponding to the design dimension values. It may be realized by a program, image recognition AI, or a combination thereof.

設計データ抽出手段24は、例えば上記被測定物の設計値に例えば表2に示すようにF1からF9の識別番号を付与した設計値レコードを作成する。設計データ抽出手段24はさらに、設計値レコードに上述の手順で抽出された測定対象及びデータ種別の情報も付与する。設計データ抽出手段24は、これら設計値レコードの一覧を設計データD6として記憶部30に保管する。このため、本実施形態において、上記設計値レコードはそれぞれ測定対象、データ種別、設計寸法値及び公差等のデータを有する。また、表2は、設計データ抽出手段24が保管した設計値レコードの一部を示すものである。 The design data extraction means 24 creates a design value record in which identification numbers F1 to F9 are assigned to the design values of the object to be measured, as shown in Table 2, for example. The design data extraction means 24 further adds information on the measurement object and data type extracted in the above-described procedure to the design value record. The design data extraction means 24 stores a list of these design value records in the storage unit 30 as design data D6. Therefore, in this embodiment, each of the design value records includes data such as a measurement target, data type, design dimension value, and tolerance. Further, Table 2 shows some of the design value records stored by the design data extraction means 24.

Figure 2023167689000012
Figure 2023167689000012

(比較手段)
比較手段25は、実測データD4と設計データD6とを対応づけしつつ比較する。本実施形態において、比較手段25は、実測データ抽出手段22が作成した実測値レコードと設計データ抽出手段24が作成した設計値レコードとを対応づける。対応づける方法としては、例えば実測値レコードE1からE7のそれぞれについてデータ種別及び実測値を参照し、データ種別及び設計寸法値の近似する設計値レコードを設計値レコードF1からF9から選択することが挙げられる。これにより、例えば実測値レコードE1と設計値レコードF1との対応づけ、実測値レコードE2と設計値レコードF2との対応づけ、実測値レコードE3と設計値レコードF3との対応づけ、実測値レコードE4と設計値レコードF4との対応づけ、実測値レコードE5と設計値レコードF5との対応づけ、実測値レコードE6と設計値レコードF6との対応づけ、実測値レコードE7と設計値レコードF7との対応づけが実行される。比較手段25は、対応づけされた実測値レコード及び設計値レコードが比較可能に並べられた状態で、実測値レコード群及び設計値レコード群を含む比較結果データD7を作成し、記憶部30に保管する。なお、本実施形態において、対応づけがされなかった設計値レコードF8、F9等も比較結果データD7に含まれる。
(Means of comparison)
The comparison means 25 compares the actual measurement data D4 and the design data D6 while associating them with each other. In this embodiment, the comparison means 25 associates the actual value record created by the actual measurement data extraction means 22 with the design value record created by the design data extraction means 24. As a method for making the correspondence, for example, refer to the data type and actual measurement value for each of the actual measurement value records E1 to E7, and select a design value record that approximates the data type and design dimension value from the design value records F1 to F9. It will be done. As a result, for example, the correspondence between the actual measurement value record E1 and the design value record F1, the correspondence between the actual measurement value record E2 and the design value record F2, the association between the actual measurement value record E3 and the design value record F3, and the association between the actual measurement value record E4 and the design value record F4, the correspondence between the actual measurement value record E5 and the design value record F5, the correspondence between the actual measurement value record E6 and the design value record F6, and the correspondence between the actual measurement value record E7 and the design value record F7. The attachment is executed. The comparison means 25 creates comparison result data D7 including a group of actual value records and a group of design value records, with the associated actual value records and design value records arranged so as to be comparable, and stores it in the storage unit 30. do. In addition, in this embodiment, the design value records F8, F9, etc. which were not matched are also included in the comparison result data D7.

比較手段25は、例えばデータ種別及び設計寸法値の類似する設計値レコードが複数存在する場合、誤った実測値レコード及び設計値レコードの組み合わせを対応づけする可能性がある。この点を考慮して、比較手段25は、比較結果データD7を外部端末において表示し、ユーザーに確認を求める機能を有していてもよい。この機能により、ユーザーは外部端末を操作することによって、比較結果データD7における実測値レコード及び設計値レコードの対応関係を手動で修正することができる。また、比較手段25は、設計値レコードF8、F9等の対応づけされていない設計値レコードも外部端末に表示する。これにより、ユーザーは比較結果データD7から不要な設計値レコード等を削除することができる。 For example, when there are a plurality of design value records with similar data types and design dimension values, the comparison means 25 may associate incorrect combinations of actual measured value records and design value records. In consideration of this point, the comparing means 25 may have a function of displaying the comparison result data D7 on an external terminal and requesting confirmation from the user. This function allows the user to manually correct the correspondence between the measured value record and the design value record in the comparison result data D7 by operating the external terminal. Furthermore, the comparing means 25 also displays uncorrelated design value records such as design value records F8 and F9 on the external terminal. This allows the user to delete unnecessary design value records and the like from the comparison result data D7.

(評価手段)
評価手段26は、設計データD6を基に実測データD4を評価する。より具体的には、評価手段26は、比較結果データD7のそれぞれの実測値レコードの実測値が、対応する設計値レコードの公差の範囲に収まっているか否を判定する。評価手段26は、この判定結果を比較結果データD7に追記した評価結果データD8を記憶部30に保管する。
(Evaluation means)
The evaluation means 26 evaluates the measured data D4 based on the design data D6. More specifically, the evaluation means 26 determines whether the actual measured value of each actual measured value record of the comparison result data D7 falls within the tolerance range of the corresponding design value record. The evaluation means 26 stores evaluation result data D8 in which the determination result is added to the comparison result data D7 in the storage unit 30.

設計データ抽出手段24において、例えば解析用設計図面データD5から公差の値を適切に抽出できていない場合が想定される。この点を考慮して、評価手段26は、評価結果データD8を外部端末において表示し、ユーザーに確認を求める機能を有していてもよい。この機能により、ユーザーは外部端末を操作することによって、評価結果データD8における公差や判定結果を手動で修正することができる。 It is assumed that the design data extracting means 24 may not be able to appropriately extract tolerance values from the analytical design drawing data D5, for example. In consideration of this point, the evaluation means 26 may have a function of displaying the evaluation result data D8 on an external terminal and requesting confirmation from the user. This function allows the user to manually correct the tolerances and judgment results in the evaluation result data D8 by operating the external terminal.

<記憶部>
記憶部30は、当該検査装置100に内蔵された記憶媒体である。記憶部30としては、公知のハードディスク等を採用することができる。
<Storage section>
The storage unit 30 is a storage medium built into the inspection apparatus 100. As the storage unit 30, a known hard disk or the like can be used.

[検査方法]
本発明の一実施形態に係る検査方法は、被測定物の寸法を検査する検査方法であって、上記被測定物の外形線、設計寸法値、並びに上記外形線と上記設計寸法値とを対応づける寸法線及び寸法補助線を含む設計図面を取り込む設計情報取得工程S1と、上記設計図面に対応する上記被測定物の外形画像を取り込む外形画像取得工程S2と、設計情報取得工程S1で取得した設計図面データD1と、外形画像取得工程S2で取得した上記被測定物の外形データD2とを重ね合わせる重ね合わせ工程S3と、外形データD2から上記被測定物の実測データD4を抽出する実測データ抽出工程と、重ね合わせ工程S3で重ね合わせされた外形データD2を用いて設計図面データD1から寸法線及び寸法補助線を抽出する寸法線データ抽出工程S5と、寸法線データ抽出工程S5で抽出された寸法線及び寸法補助線を用いて、設計図面データD1から上記被測定物の設計データD6を抽出する設計データ抽出工程S6と、実測データD4と設計データD6とを対応づけしつつ比較する比較工程S7と、設計データD6を基に実測データD4を評価する評価工程S8とを備える。
[Inspection method]
An inspection method according to an embodiment of the present invention is an inspection method for inspecting the dimensions of an object to be measured, in which an outline of the object to be measured, a design dimension value , and a correspondence between the outline and the design dimension value are provided. A design information acquisition step S1 that imports a design drawing including dimension lines and dimension extension lines to be attached, an outline image acquisition step S2 that imports an outline image of the object to be measured corresponding to the design drawing, and a design information acquisition step S1 that A superposition step S3 of superimposing the design drawing data D1 and the external shape data D2 of the object to be measured acquired in the external image acquisition step S2, and an actual measurement data extraction step of extracting the actual measurement data D4 of the object to be measured from the external shape data D2. a dimension line data extraction step S5 in which dimension lines and dimension extension lines are extracted from the design drawing data D1 using the external shape data D2 superimposed in the superimposition step S3; A design data extraction step S6 in which the design data D6 of the object to be measured is extracted from the design drawing data D1 using dimension lines and dimension auxiliary lines, and a comparison step in which the actual measurement data D4 and the design data D6 are compared while being associated with each other. S7, and an evaluation step S8 of evaluating the measured data D4 based on the design data D6.

当該検査方法は、例えば上述した当該検査装置100を用いて実行することができる。この場合、設計情報取得工程S1の内容は上述した設計情報取得手段11の実行内容と、外形画像取得工程S2の内容は上述した外形画像取得手段12の実行内容と、重ね合わせ工程S3の内容は上述した重ね合わせ手段21の実行内容と、実行データ抽出工程S4の内容は上述した実行データ抽出手段22の実行内容と、寸法線データ抽出工程S5の内容は上述した寸法線データ抽出手段23の実行内容と、設計データ抽出工程S6の内容は上述した設計データ抽出手段24の実行内容と、比較工程S7の内容は上述した比較手段25の実行内容と、評価工程S8の内容は上述した評価手段26の実行内容と同様とすることができる。 The inspection method can be executed using, for example, the inspection apparatus 100 described above. In this case, the content of the design information acquisition step S1 is the execution content of the design information acquisition means 11 mentioned above, the content of the outline image acquisition step S2 is the execution content of the outline image acquisition means 12 mentioned above, and the content of the superposition step S3 is the execution content of the outline image acquisition means 12 mentioned above. The execution contents of the above-mentioned superposition means 21 and the contents of the execution data extraction step S4 are the same as the execution contents of the execution data extraction means 22 mentioned above, and the contents of the dimension line data extraction step S5 are the execution contents of the above-mentioned dimension line data extraction means 23. The contents of the design data extraction step S6 correspond to the execution contents of the above-mentioned design data extraction means 24, the contents of the comparison step S7 correspond to the execution contents of the above-mentioned comparison means 25, and the contents of the evaluation step S8 correspond to the execution contents of the above-mentioned evaluation means 26. The execution content can be the same as that of .

[プログラム]
本発明の一実施形態に係るプログラムは、被測定物の寸法を検査するため、上記被測定物の外形線、設計寸法値、並びに上記外形線と上記設計寸法値とを対応づける寸法線及び寸法補助線を含む設計図面を取り込む設計情報取得工程S1と、上記設計図面に対応する上記被測定物の外形画像を取り込む外形画像取得工程S2と、設計情報取得工程S1で取得した設計図面データD1と、上記外形画像取得工程S2で取得した上記被測定物の外形データD2とを重ね合わせる重ね合わせ工程S3と、外形データD2から上記被測定物の実測データD4を抽出する実測データ抽出工程S4と、重ね合わせ工程S3で重ね合わせされた外形データD2を用いて設計図面データD1から寸法線及び寸法補助線を抽出する寸法線データ抽出工程S5と、寸法線データ抽出工程S5で抽出された寸法線及び寸法補助線を用いて、設計図面データD1から上記被測定物の設計データD6を抽出する設計データ抽出工程S6と、実測データD4と設計データD6とを対応づけしつつ比較する比較工程S7と、設計データD6を基に実測データD4を評価する評価工程S8とを検査装置に実行させる。
[program]
In order to inspect the dimensions of the object to be measured, a program according to an embodiment of the present invention includes an outline of the object to be measured, a design dimension value , and a dimension line and dimensions that associate the outline and the design dimension value. A design information acquisition step S1 that imports a design drawing including auxiliary lines, an outline image acquisition step S2 that imports an outline image of the object to be measured corresponding to the design drawing, and design drawing data D1 acquired in the design information acquisition step S1. , a superimposition step S3 of superimposing the outer shape data D2 of the object to be measured acquired in the outer shape image acquisition step S2, and an actual measurement data extraction step S4 of extracting actual measurement data D4 of the object to be measured from the outer shape data D2; A dimension line data extraction step S5 in which dimension lines and dimension extension lines are extracted from the design drawing data D1 using the external shape data D2 superimposed in the superimposition step S3 ; a design data extraction step S6 of extracting the design data D6 of the object to be measured from the design drawing data D1 using dimension extension lines; a comparison step S7 of comparing the measured data D4 and the design data D6 while associating them; The inspection device is caused to perform an evaluation step S8 of evaluating the measured data D4 based on the design data D6.

当該プログラムは、例えば上述した当該検査装置100を実行させるために用いることができる。この場合、当該プログラムは当該検査装置100に内蔵されていてもよい。また、当該プログラムが当該検査装置100を実行させる設計情報取得工程S1、外形画像取得工程S2、重ね合わせ工程S3、実測データ抽出工程S4、寸法線データ抽出工程S5、設計データ抽出工程S6、比較工程S7及び評価工程S8は、上述した当該検査方法の対応する工程と同様とすることができる。 The program can be used, for example, to execute the inspection device 100 described above. In this case, the program may be built into the inspection device 100. In addition, the program causes the inspection apparatus 100 to execute a design information acquisition step S1, an external image acquisition step S2, a superposition step S3, an actual measurement data extraction step S4, a dimension line data extraction step S5, a design data extraction step S6, and a comparison step. S7 and evaluation step S8 can be the same as the corresponding steps of the above-mentioned inspection method.

当該プログラムは、単一のプログラムであってもよく、上述の工程ごとに動作しつつ連携する複数のプログラムの集合であってもよい。 The program may be a single program, or may be a collection of multiple programs that operate and cooperate in each of the above steps.

[利点]
当該検査装置100、当該検査方法又は当該プログラムは、外形データD2を用いて上記被測定物の設計図面から寸法線及び寸法補助線を抽出する。このため、本実施形態のように上記設計図面が紙に印刷されている場合であっても、上記被測定物の設計データD6を的確に抽出することができる。したがって、当該検査装置100、当該検査方法又は当該プログラムのいずれかによれば、上記被測定物の寸法を検査するために目視で設計データD6を読み取る労力及び読み取った内容を手動で入力する労力を大幅に軽減することができる。したがって、設計図面上の寸法を実測値と容易かつ確実に比較可能である。
[advantage]
The inspection apparatus 100, the inspection method, or the program extracts dimension lines and dimension extension lines from the design drawing of the object to be measured using the external shape data D2. Therefore, even if the design drawing is printed on paper as in this embodiment, the design data D6 of the object to be measured can be accurately extracted. Therefore, according to the inspection apparatus 100, the inspection method, or the program, the effort of visually reading the design data D6 and the effort of manually inputting the read contents in order to inspect the dimensions of the object to be measured can be reduced. It can be significantly reduced. Therefore, dimensions on the design drawing can be easily and reliably compared with actual measurements.

[その他の実施形態]
上記実施形態は、本発明の構成を限定するものではない。従って、上記実施形態は、本明細書の記載及び技術常識に基づいて上記実施形態各部の構成要素の省略、置換又は追加が可能であり、それらは全て本発明の範囲に属するものと解釈されるべきである。
[Other embodiments]
The above embodiments do not limit the configuration of the present invention. Therefore, in the above embodiment, it is possible to omit, replace, or add components of each part of the above embodiment based on the description of this specification and common general technical knowledge, and all of these are interpreted as falling within the scope of the present invention. Should.

上記実施形態では、被測定物が孔部を有する平面視矩形状の平板であるものとしたが、本発明は任意の形状の被測定物に対して用いることができる。 In the above embodiment, the object to be measured is a flat plate having a hole and having a rectangular shape in plan view, but the present invention can be used for an object to be measured of any shape.

上記実施形態では、外形画像取得手段は、設計図面に対応する方向から撮影した被測定物の外形画像を取り込む画像センサであるものとしたが、本発明の構成はこれに限定されない。外形画像取得手段は、3次元の画像を撮影する画像センサであってもよく、この場合被測定物の断面画像を読み取るものであってもよい。このとき、外形画像取得手段が取得した外形データからは、高さデータ等の上記断面画像以外のデータを削除してもよい。 In the above embodiment, the external image acquisition means is an image sensor that captures an external image of the object to be measured taken from a direction corresponding to the design drawing, but the configuration of the present invention is not limited to this. The external image acquisition means may be an image sensor that takes a three-dimensional image, and in this case may read a cross-sectional image of the object. At this time, data other than the cross-sectional image, such as height data, may be deleted from the outer shape data acquired by the outer shape image acquisition means.

上記実施形態では、外形画像取得手段がエッジ検出によって、被測定物の外形線及び孔部の外形線を取得するものとしたが、外形画像取得手段は被測定物の凸部又は凹部の外形線を検出してもよい。また、外形画像取得手段が検出する外形線は矩形状、円形状又は長円状に限定されない。 In the above embodiment, the outline image acquisition means acquires the outline of the object to be measured and the outline of the hole by edge detection. may be detected. Further, the outline detected by the outline image acquisition means is not limited to a rectangular shape, a circular shape, or an oval shape.

本発明の寸法線データ抽出手段及び設計データ抽出手段は、ユーザーに出力された寸法線、寸法補助線及び設計データの確認を求め、ユーザーによって調整された抽出条件を基に再実行する機能を有していてもよい。 The dimension line data extraction means and design data extraction means of the present invention have a function of requesting the user to confirm the output dimension lines, dimension extension lines, and design data, and re-executing the extraction based on the extraction conditions adjusted by the user. You may do so.

上記実施形態では、当該検査装置はユーザーが外部から操作するための外部端末に接続されているものとしたが、重ね合わせデータ等を表示するモニター等を当該検査装置が備える構成としてもよい。また、ユーザーが当該検査装置を直接操作する構成であってもよい。 In the embodiment described above, the inspection device is connected to an external terminal for the user to operate from the outside, but the inspection device may include a monitor or the like that displays superimposed data and the like. Alternatively, a configuration may be adopted in which the user directly operates the inspection device.

上記実施形態では、当該検査装置が記憶部を備えるものとしたが、記憶部は当該検査装置に接続された外部端末等に配置してもよい。 In the above embodiment, the inspection device is provided with a storage section, but the storage section may be placed in an external terminal etc. connected to the inspection device.

上記実施形態では、当該プログラムが検査装置に内蔵されているものとしたが、当該プログラムは外部から検査装置に各工程を実行させるものであってもよい。 In the embodiment described above, it is assumed that the program is built into the inspection device, but the program may be one that causes the inspection device to execute each process from the outside.

本発明の一態様に係る検査装置は、設計図面上の寸法を実測値と容易かつ確実に比較可能であるため、被測定物の品質評価等に用いることができる。 The inspection device according to one aspect of the present invention can easily and reliably compare dimensions on a design drawing with actual measured values, and thus can be used for quality evaluation of an object to be measured.

100 検査装置
10 入力部
11 設計情報取得手段
12 外形画像取得手段
20 処理部
21 重ね合わせ手段
22 実測データ抽出手段
23 寸法線データ抽出手段
24 設計データ抽出手段
25 比較手段
26 評価手段
30 記憶部
100 Inspection device 10 Input section 11 Design information acquisition means 12 External image acquisition means 20 Processing section 21 Overlaying means 22 Actual measurement data extraction means 23 Dimension line data extraction means 24 Design data extraction means 25 Comparison means 26 Evaluation means 30 Storage section

Claims (7)

被測定物の寸法を検査する検査装置であって、
上記被測定物の外形線、設計寸法値及び上記外形線と上記設計寸法値とを対応づける寸法補助線を含む設計図面を取り込む設計情報取得手段と、
上記設計図面に対応する上記被測定物の外形画像を取り込む外形画像取得手段と、
上記設計情報取得手段で取得した設計図面データと、上記外形画像取得手段で取得した上記被測定物の外形データとを重ね合わせる重ね合わせ手段と、
上記外形データから上記被測定物の実測データを抽出する実測データ抽出手段と、
上記重ね合わせ手段で重ね合わせされた上記外形データを用いて上記設計図面データから上記寸法補助線を抽出する補助線抽出手段と、
上記補助線抽出手段で抽出された上記寸法補助線を用いて、上記設計図面データから上記被測定物の設計データを抽出する設計データ抽出手段と、
上記実測データと上記設計データとを対応づけしつつ比較する比較手段と、
上記設計データを基に上記実測データを評価する評価手段と
を備える検査装置。
An inspection device for inspecting the dimensions of an object to be measured,
a design information acquisition means for importing a design drawing including an outline of the object to be measured, design dimension values, and a dimension extension line that associates the outline and the design dimension values;
External image acquisition means for capturing an external image of the object to be measured corresponding to the design drawing;
Superimposing means for superimposing the design drawing data obtained by the design information obtaining means and the external shape data of the object to be measured obtained by the external shape image obtaining means;
Actual data extraction means for extracting actual measurement data of the object to be measured from the external shape data;
Auxiliary line extracting means for extracting the dimension auxiliary line from the design drawing data using the external shape data superimposed by the superimposing means;
Design data extraction means for extracting design data of the object to be measured from the design drawing data using the dimension extension lines extracted by the extension line extraction means;
Comparison means for comparing the actual measurement data and the design data while associating them;
and evaluation means for evaluating the measured data based on the design data.
上記設計図面が紙媒体由来のデータ又は画像データである請求項1に記載の検査装置。 The inspection device according to claim 1, wherein the design drawing is data derived from a paper medium or image data. 上記外形画像取得手段が、上記外形画像を取り込んだ後にエッジ検出によって上記外形画像の外形線を抽出し、上記外形データがこの外形線を含む請求項1又は請求項2に記載の検査装置。 3. The inspection apparatus according to claim 1, wherein the external shape image acquisition means extracts the external contour line of the external shape image by edge detection after capturing the external shape image, and the external shape data includes the external contour line. 上記重ね合わせ手段が、上記設計図面データ及び上記外形データの少なくとも一方の倍率を調整する請求項3に記載の検査装置。 4. The inspection apparatus according to claim 3, wherein the overlapping means adjusts a magnification of at least one of the design drawing data and the external shape data. 上記重ね合わせ手段が、上記外形データに含まれる上記外形線を用いて、上記設計図面データに含まれる上記外形線を特定し、上記補助線抽出手段が、上記設計図面データから上記外形線を削除することによって上記寸法補助線を抽出する請求項3に記載の検査装置。 The superimposition means identifies the outline line included in the design drawing data using the outline line included in the outline data, and the auxiliary line extraction means deletes the outline line from the design drawing data. 4. The inspection device according to claim 3, wherein the dimension extension line is extracted by extracting the dimension extension line. 被測定物の寸法を検査する検査方法であって、
上記被測定物の外形線、設計寸法値及び上記外形線と上記設計寸法値とを対応づける寸法補助線を含む設計図面を取り込む設計情報取得工程と、
上記設計図面に対応する上記被測定物の外形画像を取り込む外形画像取得工程と、
上記設計情報取得工程で取得した設計図面データと、上記外形画像取得手段で取得した上記被測定物の外形データとを重ね合わせる重ね合わせ工程と、
上記外形データから上記被測定物の実測データを抽出する実測データ抽出工程と、
上記重ね合わせ工程で重ね合わせされた上記外形データを用いて上記設計図面データから上記寸法補助線を抽出する補助線抽出工程と、
上記補助線抽出工程で抽出された上記寸法補助線を用いて、上記設計図面データから上記被測定物の設計データを抽出する設計データ抽出工程と、
上記実測データと上記設計データとを対応づけしつつ比較する比較工程と、
上記設計データを基に上記実測データを評価する評価工程と
を備える検査方法。
An inspection method for inspecting the dimensions of an object to be measured,
a design information acquisition step of importing a design drawing including an outline of the object to be measured, design dimension values, and a dimension extension line that associates the outline and the design dimension values;
an outline image acquisition step of capturing an outline image of the object to be measured corresponding to the design drawing;
an overlaying step of overlapping the design drawing data acquired in the design information acquisition step and the outer shape data of the object to be measured acquired by the outer shape image acquisition means;
an actual measurement data extraction step of extracting actual measurement data of the object to be measured from the external shape data;
an auxiliary line extraction step of extracting the dimension auxiliary line from the design drawing data using the external shape data superimposed in the superimposition step;
a design data extraction step of extracting design data of the object to be measured from the design drawing data using the dimension auxiliary lines extracted in the auxiliary line extraction step;
a comparison step of comparing the actual measurement data and the design data while associating them;
and an evaluation step of evaluating the measured data based on the design data.
被測定物の寸法を検査するため、
上記被測定物の外形線、設計寸法値及び上記外形線と上記設計寸法値とを対応づける寸法補助線を含む設計図面を取り込む設計情報取得工程と、
上記設計図面に対応する上記被測定物の外形画像を取り込む外形画像取得工程と、
上記設計情報取得工程で取得した設計図面データと、上記外形画像取得手段で取得した上記被測定物の外形データとを重ね合わせる重ね合わせ工程と、
上記外形データから上記被測定物の実測データを抽出する実測データ抽出工程と、
上記重ね合わせ工程で重ね合わせされた上記外形データを用いて上記設計図面データから上記寸法補助線を抽出する補助線抽出工程と、
上記補助線抽出工程で抽出された上記寸法補助線を用いて、上記設計図面データから上記被測定物の設計データを抽出する設計データ抽出工程と、
上記実測データと上記設計データとを対応づけしつつ比較する比較工程と、
上記設計データを基に上記実測データを評価する評価工程と
を検査装置に実行させるプログラム。

To inspect the dimensions of the object to be measured,
a design information acquisition step of importing a design drawing including an outline of the object to be measured, design dimension values, and a dimension extension line that associates the outline and the design dimension values;
an outline image acquisition step of capturing an outline image of the object to be measured corresponding to the design drawing;
an overlaying step of overlapping the design drawing data acquired in the design information acquisition step and the outer shape data of the object to be measured acquired by the outer shape image acquisition means;
an actual measurement data extraction step of extracting actual measurement data of the object to be measured from the external shape data;
an auxiliary line extraction step of extracting the dimension auxiliary line from the design drawing data using the external shape data superimposed in the superimposition step;
a design data extraction step of extracting design data of the object to be measured from the design drawing data using the dimension auxiliary lines extracted in the auxiliary line extraction step;
a comparison step of comparing the actual measurement data and the design data while associating them;
A program that causes an inspection device to execute an evaluation step of evaluating the measured data based on the design data.

JP2022079050A 2022-05-12 2022-05-12 Inspecting device, inspecting method and program Pending JP2023167689A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022079050A JP2023167689A (en) 2022-05-12 2022-05-12 Inspecting device, inspecting method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022079050A JP2023167689A (en) 2022-05-12 2022-05-12 Inspecting device, inspecting method and program

Publications (1)

Publication Number Publication Date
JP2023167689A true JP2023167689A (en) 2023-11-24

Family

ID=88837873

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022079050A Pending JP2023167689A (en) 2022-05-12 2022-05-12 Inspecting device, inspecting method and program

Country Status (1)

Country Link
JP (1) JP2023167689A (en)

Similar Documents

Publication Publication Date Title
JP5273196B2 (en) Image processing device
JP4830501B2 (en) Substrate inspection method and apparatus, and inspection logic setting method and apparatus thereof
US7885437B2 (en) Fingerprint collation apparatus, fingerprint pattern area extracting apparatus and quality judging apparatus, and method and program of the same
CN114549835B (en) Pointer instrument correction identification method and device based on deep learning
CN113030121B (en) Automatic optical detection method, system and equipment for circuit board components
CN109946320A (en) Defect detecting method
CN108472706B (en) Deformation processing support system and deformation processing support method
JP7214432B2 (en) Image processing method, image processing program, recording medium, image processing apparatus, production system, article manufacturing method
CN112085708B (en) Method and equipment for detecting defects of straight line edges in outer contour of product
KR101205848B1 (en) Shape inspection apparatus, computer-readable medium having shape inspection program recorded therein and shape inspection method
JP2010133744A (en) Defect detection method, and visual inspection device using the same
JP2008152555A (en) Image recognition method and image recognition device
JP2023167689A (en) Inspecting device, inspecting method and program
CN117109471A (en) Part contour detection and comparison method
CN115375610A (en) Detection method and device, detection equipment and storage medium
JP4788475B2 (en) Image processing apparatus and image processing method
JP5160366B2 (en) Pattern matching method for electronic parts
JP2007033126A (en) Substrate inspection device, parameter adjusting method thereof and parameter adjusting device
CN116329738A (en) Positioning method and device of circuit board target, electronic equipment and storage medium
JP2008241424A (en) Image processing apparatus and method using the same
JP2011196982A (en) Defect detection method, defect detection device, and program
JPH0875418A (en) Automatic recognition method and automatic recognition device for object
JP3857668B2 (en) Pattern alignment method
JP4872930B2 (en) Character recognition device, fuel pump module assembling device equipped with such device, and character recognition method
CN114324405B (en) Data labeling system based on film detection

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230810