JP2005189087A - Distance measurement equipment and program - Google Patents

Distance measurement equipment and program Download PDF

Info

Publication number
JP2005189087A
JP2005189087A JP2003430431A JP2003430431A JP2005189087A JP 2005189087 A JP2005189087 A JP 2005189087A JP 2003430431 A JP2003430431 A JP 2003430431A JP 2003430431 A JP2003430431 A JP 2003430431A JP 2005189087 A JP2005189087 A JP 2005189087A
Authority
JP
Japan
Prior art keywords
distance
measurement
reference object
actual
image
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
JP2003430431A
Other languages
Japanese (ja)
Inventor
Katsumi Konnai
勝美 近内
Kenichi Hibino
健一 日比野
Hideo Suzuki
秀夫 鈴木
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2003430431A priority Critical patent/JP2005189087A/en
Publication of JP2005189087A publication Critical patent/JP2005189087A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To measure the real distance to an object to be measured without using a distance sensor while specifying a construct/an add-on /circumferential matter of measurement object as a regular reference object for measuring distances by analyzing a photographed image even if the actual size of the measurement object is unknown. <P>SOLUTION: In the status that a table for the reference object, a table for the add-on, and a table for the circumferential object are prepared, a CPU 1 accepts a monitor image from a camera imaging section 7 of a camera and specifies at least any one among the construct/the add-on/the circumferential matter of the measurement object as a reference object for the distance measurement, and obtains the actual size of the reference object and also measures the image size of the reference object. Furthermore, the CPU 1 calculates the real distance to the regarding reference object based on the real size and image size of the reference object, and calculates the real distance to the measurement object based on the real distance to the reference object. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

この発明は、撮影画像を解析することによってその中に含まれている被写体までの距離を測定する距離測定装置およびプログラムに関する。   The present invention relates to a distance measuring device and a program for measuring a distance to a subject included in a photographed image by analyzing the photographed image.

従来、カメラ撮影を行うことによって被写体までの距離を測定する技術として、例えば、自動車が道路上を走行している際に、道路標識や信号機などの対象物を撮影した撮影画像を処理し、撮影画像上の対象物の大きさ(角度)と知識データベース内に予め記憶されている対象物の大きさを参照して当該対象物までの距離を算出するようにした距離計測装置が知られている(特許文献1参照)。
特開平08−219775号公報
Conventionally, as a technique for measuring the distance to an object by performing camera shooting, for example, when a car is traveling on a road, a captured image obtained by shooting an object such as a road sign or a traffic light is processed and shot. 2. Description of the Related Art A distance measuring device is known that calculates the distance to an object by referring to the size (angle) of the object on the image and the size of the object stored in advance in the knowledge database. (See Patent Document 1).
Japanese Patent Application Laid-Open No. 08-219775

しかしながら、上述した従来の距離計測装置にあっては、距離センサを使用しなくても、対象物までの距離を算出することができるが、知識データベース内に測定物の大きさが記憶されていることを前提とする技術であり、対象物の実際のサイズを事前に分かっていることが必要となり、距離測定が可能な対象物が限定されてしまうという問題があった。言い換えれば、知識データベース内に実サイズが記憶されている測定物だけを対象として、その対象物までの距離を算出するものであるため、様々な測定物に対応付けてその実サイズを記憶管理しておくことは、知識データベースの膨大化を招く。  However, in the conventional distance measuring device described above, the distance to the object can be calculated without using a distance sensor, but the size of the measured object is stored in the knowledge database. Therefore, it is necessary to know the actual size of the object in advance, and there is a problem that the objects that can be measured for distance are limited. In other words, only the measurement object whose actual size is stored in the knowledge database is calculated, and the distance to the object is calculated. Therefore, the actual size is stored and managed in association with various measurement objects. This leads to a huge knowledge database.

この発明の課題は、距離センサを使用することなく、しかも、測定対象物の実際のサイズが分からなくても、撮影画像を解析することによって測定対象の構成物/付属物/周辺物を距離測定用の標準的な基準対象物として特定しながら測定対象物までの実距離を測定できるようにすることである。   It is an object of the present invention to measure the distance of components / accessories / peripherals to be measured by analyzing a captured image without using a distance sensor and without knowing the actual size of the object to be measured. It is to be able to measure the actual distance to the measurement object while specifying it as a standard reference object.

請求項1記載の発明は、撮影画像を解析することによってその中に含まれている被写体から撮影位置までの距離を測定する距離測定装置であって、撮影画像内に含まれている被写体を測定対象物として指定する指定手段と、実サイズが分かっている各種物体が距離測定用の標準的な基準対象物として記憶管理されている状態において、前記測定対象物として指定された画像部分を解析することによって当該測定対象物の構成要素である構成物、当該測定対象物に付属して取り付けられている付属物、当該測定対象物の周辺に存在している周辺物のうち、少なくともその何れかを基準対象物として特定する特定手段と、前記特定された基準対象物の実サイズを取得する取得手段と、撮影画像を解析することによって基準対象物の画像サイズを計測する計測手段と、前記基準対象物の実サイズとその画像サイズに基づいて当該基準対象物までの実距離を算出すると共に、この基準対象物の実距離に基づいて測定対象物までの実距離を算出する算出手段とを具備したことを特徴とする。
更に、コンピュータに対して、上述した請求項1記載の発明に示した主要機能を実現させるためのプログラムを提供する(請求項8記載の発明)。
The invention according to claim 1 is a distance measuring device that measures a distance from a subject included in the captured image to a shooting position by analyzing the captured image, and measures the subject included in the captured image. Analyzing the image portion designated as the measurement object in the state where the designation means for designating the object and various objects whose actual sizes are known are stored and managed as standard reference objects for distance measurement Therefore, at least one of a constituent that is a component of the measurement target, an accessory attached to the measurement target, and a peripheral existing around the measurement target is selected. The specifying means for specifying the reference object, the acquiring means for acquiring the actual size of the specified reference object, and the image size of the reference object by measuring the captured image. Calculating the actual distance to the reference object based on the actual size of the reference object and the image size, and calculating the actual distance to the measurement object based on the actual distance of the reference object. And calculating means for calculating.
Furthermore, a program for realizing the main functions shown in the invention described in claim 1 is provided to the computer (the invention described in claim 8).

なお、請求項1記載の発明は次のようなものであってもよい。
前記指定手段は、撮影画像を解析することによってその中心部に存在している画像部分を測定対象物として指定する(請求項2記載の発明)。
The invention described in claim 1 may be as follows.
The designating unit designates an image portion existing in the central portion as a measurement object by analyzing a photographed image (invention according to claim 2).

実サイズが分かっている標準的な各種物体が基準対象物として記憶管理されている状態において、前記特定手段は、前記指定された測定対象物の構成物あるいは付属物あるいは周辺物と前記標準的な各種物体とを比較することによって特徴的に一致するものを基準対象物として特定する(請求項3記載の発明)。   In a state in which various standard objects whose actual sizes are known are stored and managed as reference objects, the specifying means includes the specified measurement object component or accessory or peripheral object and the standard object. By comparing various objects, a characteristically matching object is specified as a reference object (the invention according to claim 3).

前記標準的な各種物体に対応してその実サイズが記憶管理されている状態において、前記取得手段は、前記基準対象物として特定された物体に対応する実サイズを読み出し取得する(請求項4記載の発明)。   The acquisition means reads and acquires the actual size corresponding to the object specified as the reference object in a state where the actual size is stored and managed corresponding to the standard various objects (claim 4). invention).

前記特定手段は、基準対象物を特定する際に、測定対象物の構成物、付属物、周辺物の優先順位に従って前記標準的な各種物体を順次検索することによって基準対象物を特定する(請求項5記載の発明)。   The specifying unit specifies the reference object by sequentially searching the standard various objects according to the priority order of the constituent, accessory, and surrounding objects of the measurement object when specifying the reference object (claim) Item 5).

前記特定手段によって複数の基準対象物が特定された際に、前記算出手段は、この各基準対象物毎にその実距離を算出すると共に、基準対象物毎に算出した各実距離に基づいて前記測定対象物までの最適な実距離を算出する(請求項6記載の発明)。   When a plurality of reference objects are specified by the specifying means, the calculation means calculates the actual distance for each reference object and the measurement based on each actual distance calculated for each reference object. The optimum actual distance to the object is calculated (the invention according to claim 6).

測定対象物が含まれている撮影画像が表示されている状態において、前記算出手段によって得られた測定対象物の実距離を当該撮影画像内に付加表示する(請求項7記載の発明)。   In a state where a photographed image including the measurement object is displayed, the actual distance of the measurement object obtained by the calculating means is additionally displayed in the photographed image (the invention according to claim 7).

請求項1記載の発明によれば、実サイズが分かっている各種物体が距離測定用の標準的な基準対象物として記憶管理されている状態において、測定対象物として指定された画像部分を解析することによって当該測定対象の構成物、付属物、周辺物のうち、少なくともその何れかを距離測定用の基準対象物として特定した後、この基準対象物の実サイズを取得すると共に、撮影画像を解析することによって基準対象物の画像サイズを計測し、更に、基準対象物の実サイズとその画像サイズに基づいて当該基準対象物までの実距離を算出し、この基準対象物の実距離に基づいて測定対象物までの実距離を算出するようにしたから、距離センサを使用することなく、しかも、測定対象物の実際のサイズが分からなくても、撮影画像を解析することによって測定対象の構成物/付属物/周辺物を距離測定用の標準的な基準対象物として特定しながら測定対象物までの実距離を測定することができる。例えば、測定対象物が一般家屋の場合に、その構成物である標準的な窓枠や付属物である標準的なTVアンテナの大きさが分かっていれば、この標準的な大きさを基準として家屋までの実距離を測定することができ、どのような家屋であっても、その家屋までの実距離を容易に測定することが可能となる。
この場合、撮影時に限らず、画像の再生時でも距離測定を行うことができるので、必要に応じて何時でも自由に距離測定が可能となる。従って、この距離測定装置をデジタルカメラに組み込む場合に限らず、パーソナルコンピュータ等の画像データ処理装置に組み込むことも可能となるなど、その活用範囲を広げ、各種用途に使用可能となる。
According to the first aspect of the present invention, in the state where various objects whose actual sizes are known are stored and managed as standard reference objects for distance measurement, the image portion designated as the measurement object is analyzed. As a result, at least one of the components, accessories, and peripheral objects to be measured is specified as a distance measurement reference object, and then the actual size of the reference object is acquired and the captured image is analyzed. To measure the image size of the reference object, calculate the actual distance to the reference object based on the actual size of the reference object and the image size, and based on the actual distance of the reference object Since the actual distance to the measurement object is calculated, it is possible to analyze the captured image without using a distance sensor and without knowing the actual size of the measurement object. It is possible to measure the actual distance to the object of measurement while identifying construct / appendage / surrounding objects to be measured as a standard reference object for distance measurement I. For example, if the measurement object is a general house and the size of a standard TV antenna that is a standard window frame or accessory is known, the standard size is used as a reference. The actual distance to the house can be measured, and any house can easily measure the actual distance to the house.
In this case, distance measurement can be performed not only at the time of shooting but also at the time of reproduction of an image, so that distance measurement can be freely performed at any time as necessary. Therefore, not only when this distance measuring device is incorporated into a digital camera but also with an image data processing device such as a personal computer, the range of its use can be expanded and it can be used in various applications.

請求項2記載の発明によれば、上述した請求項1記載の発明と同様の効果を有する他、撮影画像を解析することによってその中心部に存在している画像部分を測定対象物として指定するようにしたから、画像解析によって測定対象物の自動指定が可能となり、特別な操作が不要となると共に、測定対象物を確実に指定することが可能となる。   According to the invention described in claim 2, in addition to having the same effect as that of the invention described in claim 1, the image portion existing in the central portion is designated as the measurement object by analyzing the photographed image. As a result, the measurement object can be automatically specified by image analysis, a special operation is not required, and the measurement object can be reliably specified.

請求項3記載の発明によれば、上述した請求項1記載の発明と同様の効果を有する他、実サイズが分かっている標準的な各種物体が基準対象物として記憶管理されている状態において、指定された測定対象物の構成物あるいは付属物あるいは周辺物と前記標準的な各種物体とを比較することによって特徴的に一致するものを基準対象物として特定するようにしたから、画像解析によって基準対象物の自動指定が可能となり、特別な操作が不要となると共に、基準対象物を確実に特定することが可能となる。   According to the invention described in claim 3, in addition to having the same effect as that of the invention described in claim 1 described above, in a state where various standard objects whose actual sizes are known are stored and managed as reference objects, Since the standard object is identified by comparing the standard objects with the constituents, accessories, or surrounding objects of the specified measurement object, the reference is determined by image analysis. It is possible to automatically specify an object, no special operation is required, and it is possible to reliably specify a reference object.

この場合、請求項4記載の発明によれば、標準的な各種物体に対応してその実サイズが記憶管理されている状態において、基準対象物として特定された物体に対応する実サイズを読み出し取得するようにしたから、基準対象物の実サイズの自動取得が可能となる。
また、請求項5記載の発明によれば、基準対象物を特定する際に、測定対象物の構成物、付属物、周辺物の優先順位に従って前記標準的な各種物体を順次検索することによって基準対象物を特定するようにしたから、測定対象物に近い順に基準対象物を決定することができ、距離測定をより正確に行うことが可能となる。
In this case, according to the invention described in claim 4, the actual size corresponding to the object specified as the reference object is read out and acquired in a state where the actual size is stored and managed corresponding to various standard objects. As a result, the actual size of the reference object can be automatically acquired.
According to the invention described in claim 5, when the reference object is specified, the standard various objects are sequentially searched according to the priority order of the constituents, accessories, and peripheral objects of the measurement object. Since the object is specified, the reference object can be determined in the order closer to the measurement object, and the distance measurement can be performed more accurately.

請求項6記載の発明によれば、上述した請求項1記載の発明と同様の効果を有する他、複数の基準対象物が特定された際に、前記算出手段は、この各基準対象物毎にその実距離を算出すると共に、基準対象物毎に算出した各実距離に基づいて測定対象物までの最適な実距離を算出するようにしたから、距離測定をより正確に行うことが可能となる。   According to the invention described in claim 6, in addition to the same effect as that of the invention described in claim 1 described above, when a plurality of reference objects are specified, the calculation means is provided for each reference object. Since the actual distance is calculated and the optimum actual distance to the measurement object is calculated based on each actual distance calculated for each reference object, the distance measurement can be performed more accurately.

請求項7記載の発明によれば、上述した請求項1記載の発明と同様の効果を有する他、測定対象物が含まれている撮影画像が表示されている状態において、測定対象物の実距離を当該撮影画像内に付加表示するようにしたから、撮影画像内で距離の確認を行いながらその測定対象物を見ることができる。この場合、測定対象物の近傍に測定距離を表示するようにすれば、測定対象物と測定距離との対応関係が明瞭となる。   According to the invention described in claim 7, in addition to having the same effect as that of the invention described in claim 1, the actual distance of the measurement object is displayed in a state where a photographed image including the measurement object is displayed. Is additionally displayed in the captured image, so that the object to be measured can be seen while confirming the distance in the captured image. In this case, if the measurement distance is displayed in the vicinity of the measurement object, the correspondence between the measurement object and the measurement distance becomes clear.

以下、図1〜図9を参照して本発明の実施例を説明する。
図1は、この実施例におけるデジタルカメラの基本的構成要素を示したブロック図である。
このデジタルカメラは、撮影画像(モニタ画像)を解析することによってその中に含まれている被写体(測定対象物)までの実距離を測定して表示するようにしたものである。この場合、距離センサを使用することなく、しかも、測定対象物の実際のサイズが分からなくても、モニタ画像を解析することによって測定対象物の構成要素である構成物、当該測定対象物に付属して取り付けられている付属物、当該測定対象物の周辺に存在している周辺物のうち、少なくともその何れかを基準対象物として特定しながら測定対象物までの実距離を測定可能としたものである。
なお、この実施例の特徴部分を詳述する前に、この実施例のハードウェア上の構成について以下、説明しておく。
Hereinafter, embodiments of the present invention will be described with reference to FIGS.
FIG. 1 is a block diagram showing basic components of a digital camera in this embodiment.
This digital camera measures and displays the actual distance to a subject (measuring object) contained in it by analyzing a photographed image (monitor image). In this case, even if the distance sensor is not used and the actual size of the measurement object is not known, the monitor image is analyzed and the component that is a component of the measurement object is attached to the measurement object. Of the attached object and the surrounding objects that exist around the object to be measured, and at least one of them is specified as the reference object, and the actual distance to the object to be measured can be measured. It is.
Before detailed description of the features of this embodiment, the hardware configuration of this embodiment will be described below.

CPU1は、記憶部2内のオペレーティングシステムや各種アプリケーションソフトに従ってこのデジタルカメラの全体動作を制御する中央演算処理装置である。記憶部2は、ハードディスク等の固定的なメモリであり、プログラム記憶領域とデータ記憶領域とを有している。この記憶部2内のプログラム記憶領域には、後述する図7〜図9に示す動作手順に従って本実施例を実現する為のアプリケーションプログラムが格納され、また、データ記憶領域には、後述する図4〜図6に示すデータ(基準対象テーブル)が格納されている。このプログラムやデータは、必要に応じてワークメモリ3にロードされたり、このワークメモリ3内のデータが記憶部2にセーブされる。なお、記録媒体4は、DVD等の着脱自在なメモリであり、記憶部2やワークメモリ3との間においてプログラムや画像データ等の受け渡しを行う。   The CPU 1 is a central processing unit that controls the overall operation of the digital camera in accordance with the operating system and various application software in the storage unit 2. The storage unit 2 is a fixed memory such as a hard disk, and has a program storage area and a data storage area. The program storage area in the storage unit 2 stores an application program for realizing the present embodiment in accordance with the operation procedure shown in FIGS. 7 to 9 described later, and the data storage area stores FIG. 4 described later. Data (reference object table) shown in FIG. 6 are stored. The program and data are loaded into the work memory 3 as necessary, and the data in the work memory 3 is saved in the storage unit 2. The recording medium 4 is a removable memory such as a DVD, and exchanges programs, image data, and the like with the storage unit 2 and the work memory 3.

一方、CPU1には、その入出力周辺デバイスである操作部5、表示部6、カメラ撮影部7、画像メモリ8がバスラインを介して接続されており、入出力プログラムに従ってCPU1は、これらの入出力デバイスの動作制御を行う。操作部5は、シャッターボタン、撮影モード/再生モードに切り換えるモードボタン、距離測定の開始を指示する距離測定ボタン等の各種のファンクションボタンを有し、その操作信号はCPU1へ与えられる。表示部6は、例えば、タッチパネル付きの液晶表示部であり、モニタ画面/ファインダ画面/画像再生画面として使用される。カメラ撮影部7は、撮影レンズ、ミラー等のレンズ・ミラーブロック、CCDイメージセンサ等の撮像素子、その駆動系等を備え、撮影毎に、撮影画像を画像メモリ8へ順次転送するもので、CPU1は、撮影方向やズーム機構を調整制御したり、オートフォーカス時の駆動制御、シャッター駆動制御、シャッター速度、露出、ホワイトバランス等を制御したり、撮影画像の取り込みを行う。   On the other hand, an operation unit 5, a display unit 6, a camera photographing unit 7, and an image memory 8 which are input / output peripheral devices are connected to the CPU 1 via a bus line, and the CPU 1 inputs these according to an input / output program. Controls the operation of the output device. The operation unit 5 has various function buttons such as a shutter button, a mode button for switching to a shooting mode / playback mode, a distance measurement button for instructing start of distance measurement, and the operation signal is given to the CPU 1. The display unit 6 is, for example, a liquid crystal display unit with a touch panel, and is used as a monitor screen / finder screen / image reproduction screen. The camera photographing unit 7 includes a photographing lens, a lens / mirror block such as a mirror, an image sensor such as a CCD image sensor, a driving system thereof, and the like, and sequentially transfers the photographed image to the image memory 8 for each photographing. Adjusts and controls the shooting direction and zoom mechanism, controls drive during autofocus, shutter drive control, shutter speed, exposure, white balance, etc., and captures captured images.

CPU1は、撮影モードにおいて距離測定ボタンが操作された際に、距離測定機能を起動させることによってモニタ画像内に含まれている被写体までの実距離を測定表示するようにしている。
例えば、図2に示すように、一般家屋を被写体として撮影したモニタ画像において、この家屋までの実距離を測定する際に、CPU1は、このモニタ画像を解析することによって当該被写体(一般家屋)を測定対象物Aとして自動特定するようにしているが、その際、モニタ画像の中心部分に位置している被写体画像を測定対象物として自動特定するようにしている。そして、この家屋Aの構成要素である構成物(例えば、ベランダ、玄関ドア、窓枠など)と、家屋Aに付属して取り付けられている付属物(例えば、TVアンテナなど)と、家屋Aの周辺(近傍)に配置されている周辺物(例えば、乗用者など)のうち、少なくともその何れかを基準対象物として自動特定するようにしている。その際、構成物、付属物、周辺物の優先順位に従って基準対象物の自動特定が行われる。なお、図示の例では、構成物(ベランダ、玄関ドア、窓枠)B、C、Dが基準対象物として特定された場合を例示している。
The CPU 1 measures and displays the actual distance to the subject included in the monitor image by activating the distance measurement function when the distance measurement button is operated in the shooting mode.
For example, as shown in FIG. 2, when measuring an actual distance to a house in a monitor image taken with a general house as a subject, the CPU 1 analyzes the monitor image to determine the subject (general house). Although the measurement object A is automatically specified, the subject image located at the center of the monitor image is automatically specified as the measurement object. A component (for example, a veranda, an entrance door, a window frame, etc.) that is a component of the house A, an accessory attached to the house A (for example, a TV antenna), At least one of peripheral objects (for example, passengers) arranged in the vicinity (near) is automatically specified as a reference object. At that time, automatic identification of the reference object is performed according to the priority order of the components, accessories, and peripheral objects. In the illustrated example, the case where the components (veranda, entrance door, window frame) B, C, and D are specified as the reference objects is illustrated.

図3は、撮影位置(レンズ位置)から測定対象物までの実距離を算出測定する場合に使用される各種のパラメータを示した図である。
図中、「f1」はレンズの焦点距離を示し、「J1」は基準対象物の実サイズを示し、「G1」は基準対象物の画像サイズを示し、「L」はレンズ位置から基準対象物までの実距離を示している。ここで、モニタ画像内において測定対象物(家屋)Aと基準対象物(ベランダ、玄関ドア、窓枠)B、C、Dとが自動指定されている状態において、CPU1は、基準対象物Bの実サイズ「J1」を取得すると共に、基準対象物Bの画像サイズ「G1」を計測した後、この実サイズ「J1」、画像サイズ「G1」、レンズの焦点距離「f1」に基づいて基準対象物Bまでの実距離「L」を算出する。
FIG. 3 is a diagram showing various parameters used in calculating and measuring the actual distance from the photographing position (lens position) to the measurement object.
In the figure, “f1” indicates the focal length of the lens, “J1” indicates the actual size of the reference object, “G1” indicates the image size of the reference object, and “L” indicates the reference object from the lens position. The actual distance is shown. Here, in the state where the measurement object (house) A and the reference objects (veranda, entrance door, window frame) B, C, and D are automatically designated in the monitor image, the CPU 1 After obtaining the actual size “J1” and measuring the image size “G1” of the reference object B, the reference object is based on the actual size “J1”, the image size “G1”, and the focal length “f1” of the lens. The actual distance “L” to the object B is calculated.

同様に、基準対象物Cの実サイズ「J1」を取得すると共に、基準対象物Cの画像サイズ「G1」を計測した後、この実サイズ「J1」、画像サイズ「G1」、レンズの焦点距離「f1」に基づいて基準対象物Cまでの実距離「L」を算出する。更に、基準対象物Dの実サイズ「J1」を取得すると共に、基準対象物Dの画像サイズ「G1」を計測した後、この実サイズ「J1」、画像サイズ「G1」、レンズの焦点距離「f1」に基づいて基準対象物Dまでの実距離「L」を算出する。そして、基準対象物B、C、Dに対応して算出した各実距離「L」の平均値を算出し、この平均値を測定対象物(家屋)Aまでの実距離X(図2参照)として算出するようにしている。   Similarly, after acquiring the actual size “J1” of the reference object C and measuring the image size “G1” of the reference object C, the actual size “J1”, the image size “G1”, and the focal length of the lens are measured. Based on “f1”, an actual distance “L” to the reference object C is calculated. Further, after obtaining the actual size “J1” of the reference object D and measuring the image size “G1” of the reference object D, the actual size “J1”, the image size “G1”, and the focal length “of the lens” Based on “f1”, an actual distance “L” to the reference object D is calculated. Then, an average value of each actual distance “L” calculated corresponding to the reference objects B, C, and D is calculated, and this average value is calculated as an actual distance X to the measurement object (house) A (see FIG. 2). Is calculated as

図4〜図6は、基準対象テーブル11〜13の内容を示した図である。
この基準対象テーブル11〜13は、実サイズが分かっている標準的な各種物体毎に、その画像データを「基準対象画像」として記憶管理すると共に、その「実サイズ」を記憶管理する構成となっている。ここで、「基準対象画像」は、標準サイズが分かっている物体を予め任意に撮影登録した撮影画像であり、「実サイズ」は、基準対象の「縦寸法」、「横寸法」、奥行き寸法」あるいはその何れか1つの実サイズである。図4は、測定対象物の構成要素である構成物対応の基準対象テーブル11を示し、図5は、測定対象物に付属して取り付けられる付属物対応の基準対象テーブル12を示し、図6は、測定対象物の周辺に配置される周辺物対応の基準対象テーブル13を示している。
4 to 6 are diagrams showing the contents of the reference target tables 11 to 13.
The reference target tables 11 to 13 store and manage the image data as “reference target images” for each of various standard objects whose actual sizes are known, and store and manage the “real sizes”. ing. Here, the “reference target image” is a captured image obtained by arbitrarily capturing and registering an object whose standard size is known in advance, and the “real size” is the “vertical dimension”, “horizontal dimension”, and depth dimension of the reference target. ”Or any one of them. FIG. 4 shows a reference object table 11 corresponding to an object that is a component of the measurement object, FIG. 5 shows an reference object table 12 corresponding to an attachment attached to the measurement object, and FIG. The reference object table 13 corresponding to the peripheral object arranged around the measurement target object is shown.

構成物対応の基準対象テーブル11は、測定対象物の構成要素である構成物毎にその「基準対象画像」、「実サイズ」を記憶管理するもので、図4に例示したように、例えば、測定対象物が建物の場合の構成物としては、「窓枠A」、「窓枠B」、「タイル」、「ドア」‥‥である。付属物対応の基準対象テーブル12は、測定対象物に付属して取り付けられる付属物毎にその「基準対象画像」、「実サイズ」を記憶管理するもので、図5に例示したように、例えば、測定対象物が建物の場合の付属物としては、「アンテナ」、「パラボラアンテナ」、「エアコンA」、「エアコンB」‥‥である。周辺物対応の基準対象テーブル13は、測定対象物の周辺に配置される周辺物毎にその「基準対象画像」、「実サイズ」を記憶管理するもので、図6に例示したように、例えば、付属物としては、「人間」、「鳩」、「雀」、「ベンチ」、「小型乗用者」、「軽自動車」‥‥である。なお、基準対象物の「実サイズ」は、規格品の大きさや平均的な大きさを示している。   The reference object table 11 corresponding to an object stores and manages its “reference object image” and “actual size” for each object that is a component of the measurement object. As illustrated in FIG. The components when the measurement object is a building are “window frame A”, “window frame B”, “tile”, “door”, and so on. The reference object table 12 corresponding to an accessory stores and manages the “reference object image” and “actual size” for each accessory attached to the measurement object. As illustrated in FIG. The accessories when the object to be measured is a building are “antenna”, “parabolic antenna”, “air conditioner A”, “air conditioner B”. The reference object table 13 corresponding to the peripheral object stores and manages the “reference object image” and “actual size” for each peripheral object arranged around the measurement object. As illustrated in FIG. Included as accessories are "human", "pigeon", "sparrow", "bench", "small passenger", "light car". The “actual size” of the reference object indicates the size of the standard product or the average size.

この場合、CPU1は、モニタ画像内の測定対象物およびその周辺部分を解析することによって基準対象物を自動指定するようにしているが、その際に、この基準対象テーブル11〜13に登録されている複数種の「基準対象」の何れかに特徴的に一致する被写体の画像部分を基準対象物として自動指定するようにしている。また、CPU1は、基準対象物を自動指定する際に、上述したように測定対象物の構成物、付属物、周辺物の優先順位に従って基準対象テーブル11〜13を順次検索することによって基準対象物を特定するが、その際、この基準対象物に対応付けられている実サイズを当該テーブルから読み出すようにしている。   In this case, the CPU 1 automatically designates the reference object by analyzing the measurement object and its peripheral portion in the monitor image. At that time, the CPU 1 is registered in the reference object tables 11 to 13. An image portion of a subject that characteristically matches any of a plurality of types of “reference objects” is automatically designated as a reference object. In addition, when the CPU 1 automatically designates the reference object, as described above, the CPU 1 sequentially searches the reference object tables 11 to 13 in accordance with the priority order of the constituents, accessories, and peripheral objects of the measurement object. In this case, the actual size associated with the reference object is read from the table.

次に、この実施例におけるデジタルカメラの動作概念を図7〜図9に示すフローチャートを参照して説明する。ここで、これらのフローチャートに記述されている各機能は、読み取り可能なプログラムコードの形態で格納されており、このプログラムコードにしたがった動作が逐次実行される。また、伝送媒体を介して伝送されてきた上述のプログラムコードに従った動作を逐次実行することもできる。すなわち、記録媒体の他に、伝送媒体を介して外部供給されたプログラム/データを利用してこの実施例特有の動作を実行することもできる。   Next, the operation concept of the digital camera in this embodiment will be described with reference to the flowcharts shown in FIGS. Here, each function described in these flowcharts is stored in the form of a readable program code, and operations according to the program code are sequentially executed. In addition, the operation according to the above-described program code transmitted via the transmission medium can be sequentially executed. In other words, in addition to the recording medium, the program / data supplied externally via the transmission medium can be used to execute the operation specific to this embodiment.

図7は、デジタルカメラの全体動作の概要を示したフローチャートであり、電源投入に応じて実行開始される。
先ず、CPU1は、撮影モードにセットされている状態において(ステップA1)、モニタ画像を逐次取り込んで(ステップA2)、モニタ画面に動画として表示させる(ステップA3)。この状態において、ボタン操作の有無をチェックし(ステップA4)、何れのボタンも操作されなければ(ステップA4でNO)、モニタ画像の取り込みに戻るが(ステップA2)、いま、シャッターボタンが操作された際には(ステップA5)、その時の撮影画像を画像ファイルとして記録保存した後(ステップA6)、モニタ画像の取り込みに戻る(ステップA2)。
FIG. 7 is a flowchart showing an outline of the overall operation of the digital camera, which starts executing in response to power-on.
First, in a state where the photographing mode is set (step A1), the CPU 1 sequentially captures monitor images (step A2) and displays them as moving images on the monitor screen (step A3). In this state, the presence / absence of button operation is checked (step A4). If no button is operated (NO in step A4), the monitor image capturing is resumed (step A2), but now the shutter button is operated. When this happens (step A5), the captured image at that time is recorded and saved as an image file (step A6), and then the process returns to capturing the monitor image (step A2).

一方、撮影モードから再生モードに切り換えられた際には(ステップA7)、ユーザ指示に従って記録画像を順方向/逆方向へ選択指定しながら順次再生表示させる再生処理を行う(ステップA8)。その後、再生モードから撮影モードに切り換えられた際には(ステップA9)、モニタ画像を取り込む処理に戻る(ステップA2)。ここで、撮影モードにおいて、距離測定ボタンが操作された際には(ステップA10)、モニタ画像内の測定対象物を特定し、撮影位置(レンズ位置)から測定対象物までの実距離を測定する距離測定処理に移る(ステップA11)。  On the other hand, when the shooting mode is switched to the playback mode (step A7), a playback process is performed in which the recorded images are played back and displayed sequentially while selecting and specifying the recorded images in the forward / reverse directions according to the user instruction (step A8). Thereafter, when the playback mode is switched to the shooting mode (step A9), the process returns to the process of capturing the monitor image (step A2). Here, when the distance measurement button is operated in the shooting mode (step A10), the measurement object in the monitor image is specified, and the actual distance from the shooting position (lens position) to the measurement object is measured. The process proceeds to the distance measurement process (step A11).

図8〜図9は、撮影モード時に距離測定ボタンの操作に応じて実行される距離測定処理を詳述したフローチャートである。
先ず、CPU1は、測定対象物の撮影に関する注意事項(測定対象を中央に写してシャッター操作を行う旨のメッセージ)を表示する測定開始画面を表示させた後(ステップB1)、モニタ画像を取得してモニタ表示させる(ステップB2)。この状態において、シャッターボタンの有無をチェックし(ステップB3)、シャッター操作がなければ、ステップB2に戻るが、シャッター操作された際には、現在のモニタ画像を固定表示すると共に(ステップB4)、この固定モニタ画像内でその中心部分に位置している被写体画像を測定対象物として特定する(ステップB5)。図2の場合には、一般家屋が測定対象物Aとして自動特定される。
FIGS. 8 to 9 are flowcharts detailing the distance measurement process executed in response to the operation of the distance measurement button in the shooting mode.
First, the CPU 1 obtains a monitor image after displaying a measurement start screen that displays precautions regarding photographing of the measurement object (message indicating that the measurement object is centered and the shutter operation is performed) (step B1). Display on the monitor (step B2). In this state, the presence or absence of the shutter button is checked (step B3), and if there is no shutter operation, the process returns to step B2, but when the shutter operation is performed, the current monitor image is fixedly displayed (step B4), The subject image located at the center of the fixed monitor image is specified as the measurement object (step B5). In the case of FIG. 2, a general house is automatically specified as the measurement object A.

そして、モニタ画像内の測定対象物を解析することによってその各構成物である画像部分を抽出すると共に、この各抽出画像(構成物)に基づいて構成物対応の基準対象テーブル11を検索して各抽出画像(構成物)と各基準対象画像とを順次比較する(ステップB6)。なお、図2の例では、測定対象物(一般家屋)Aを構成する構成物として「ベランダ」、「玄関ドア」、「窓枠」がそれぞれ抽出される。そして、抽出画像が基準対象画像の何れかに特徴的に一致するかをチェックし(ステップB7)、何れかの基準対象画像に特徴的に一致する場合には、一致する全ての構成物を基準対象物として特定する(ステップB8)。この場合、「ベランダ」、「玄関ドア」、「窓枠」が基準対象物として特定される。  Then, by analyzing the measurement object in the monitor image, an image portion that is each component is extracted, and the reference object table 11 corresponding to the component is searched based on each extracted image (component). Each extracted image (component) and each reference target image are sequentially compared (step B6). In the example of FIG. 2, “veranda”, “entrance door”, and “window frame” are extracted as the constituents of the measurement object (general house) A, respectively. Then, it is checked whether the extracted image is characteristically matched with any of the reference target images (step B7). It identifies as a target object (step B8). In this case, “veranda”, “entrance door”, and “window frame” are specified as reference objects.

一方、構成物対応の基準対象テーブル11を検索した結果、特徴的に一致するものが1つも無い場合には(ステップB7でNO)、モニタ画像内の測定対象物を解析することによってそれに付属して取り付けられている各付属物の画像部分を抽出すると共に、この各抽出画像(付属物)に基づいて付属物対応の基準対象テーブル12を検索して各抽出画像(付属物)と各基準対象画像とを順次比較する(ステップB9)。図2の例では、測定対象物(一般家屋)Aに付属して取り付けられている付属物として「TVアンテナ」が抽出される。そして、抽出画像が基準対象画像の何れかに特徴的に一致するかをチェックし(ステップB10)、何れかの基準対象画像に特徴的に一致する場合には、一致する全ての付属物を基準対象物として特定する(ステップB11)。この場合、「TVアンテナ」が基準対象物として特定される。  On the other hand, as a result of searching the reference object table 11 corresponding to the component, if there is no characteristically matching one (NO in step B7), the measurement object in the monitor image is analyzed and attached thereto. The image portion of each attached accessory is extracted and the reference object table 12 corresponding to the accessory is searched based on each extracted image (attached), and each extracted image (attached) and each reference object are searched. The images are sequentially compared (step B9). In the example of FIG. 2, “TV antenna” is extracted as an accessory attached to the measurement object (general house) A. Then, it is checked whether the extracted image is characteristically matched with any of the reference target images (step B10). It specifies as a target object (step B11). In this case, “TV antenna” is specified as the reference object.

付属物対応の基準対象テーブル12を検索した結果、特徴的に一致するものが1つも無い場合には(ステップB10でNO)、モニタ画像内の測定対象物の周囲を解析することによってその周辺に配置されている各周辺物の画像部分を抽出すると共に、この各抽出画像(周辺物)に基づいて周辺物対応の基準対象テーブル13を検索して各抽出画像と各基準対象画像とを順次比較する(ステップB12)。図2の例では、測定対象物(一般家屋)Aの周辺に配置されている周辺物として「乗用者」が抽出される。そして、抽出画像が基準対象画像の何れかに特徴的に一致するかをチェックし(ステップB13)、何れかの基準対象画像に特徴的に一致する場合には、一致する全ての周辺物を基準対象物として特定する(ステップB14)。この場合、「乗用者」が基準対象物として特定される。  As a result of searching the reference object table 12 corresponding to the accessory, if there is no characteristically matching one (NO in step B10), the surroundings of the measurement object in the monitor image are analyzed by analyzing the surroundings. Extract the image part of each peripheral object that is placed, and search the reference object table 13 corresponding to the peripheral object based on each extracted image (peripheral object), and sequentially compare each extracted image and each reference object image (Step B12). In the example of FIG. 2, “passenger” is extracted as a peripheral object arranged around the measurement object (general house) A. Then, it is checked whether or not the extracted image characteristically matches any of the reference target images (step B13). It identifies as a target object (step B14). In this case, “passenger” is specified as the reference object.

なお、上述のようにして構成物対応の基準対象テーブル11、付属物対応の基準対象テーブル12、周辺物対応の基準対象テーブル13を順次検索した結果、何れのテーブルにも特徴的に一致するものが存在していない場合には(ステップB13でNO)、測定不可を示すメッセージを表示すると共に(ステップB15)、モニタ画像の固定表示を解除した後に(ステップB16)、通常状態に戻るが、基準対象物を特定することができた場合には、測定対象物までの実距離を算出測定する処理に移る。  In addition, as a result of sequentially searching the reference object table 11 corresponding to an object, the reference object table 12 corresponding to an accessory, and the reference object table 13 corresponding to a peripheral object as described above, all the tables characteristically match. Is not present (NO in step B13), a message indicating that measurement is not possible is displayed (step B15), and after the fixed display of the monitor image is canceled (step B16), the normal state is restored. If the object can be specified, the process proceeds to a process of calculating and measuring the actual distance to the measurement object.

先ず、CPU1は、上述のようにして特定した各基準対象物の中からその1つを指定した後(図9のステップB17)、モニタ画像内において当該指定基準対象物を解析することによってその画像サイズ「G1」を計測する(ステップB18)。なお、この画像サイズ「G1」は、CCD等のイメージセンサ上のサイズであり、その有効領域全体の横/縦の寸法と、その全体の横/縦ドットサイズに基づいて縦方向における1ドット当たりの寸法(縦ピッチ)/横方向における1ドット当たり寸法(横ピッチ)を求め、このドットピッチに基づいてサイズ情報に換算された値である(以下、同様)。次に、CPU1は、基準対象テーブル11〜13のうち、当該指定基準対象物が記憶管理されているテーブルからその実サイズ「J1」を読み出し取得する(ステップB19)。  First, the CPU 1 designates one of the reference objects identified as described above (step B17 in FIG. 9), and then analyzes the designated reference object in the monitor image to obtain the image. The size “G1” is measured (step B18). The image size “G1” is a size on an image sensor such as a CCD, and per one dot in the vertical direction based on the horizontal / vertical dimensions of the entire effective area and the horizontal / vertical dot size of the entire effective area. Dimension (vertical pitch) / dimension per dot (horizontal pitch) in the horizontal direction, and converted into size information based on this dot pitch (hereinafter the same). Next, the CPU 1 reads out and acquires the actual size “J1” from the table in which the designated reference object is stored and managed among the reference object tables 11 to 13 (step B19).

これによって基準対象物の画像サイズG1とその実サイズJ1が揃ったら、これらの値をパラメータとして当該基準対象物までの実距離Lを求める算出処理を行う(ステップB20)。この場合、レンズの焦点距離を「f1」とすると、基準対象物までの実距離Lは、次の式に従って算出される。
L=J1/G1*f1
このようにして算出された基準対象物までの実距離Lは、基準対象物の画像サイズG1と実サイズJ1との比率にレンズの焦点距離f1を乗算した値となるが、その算出値はおおよその値となる。この算出結果(実距離)は、ワークメモリ3内の結果テーブル(図示せず)に一時保持される(ステップB21)。
Thus, when the image size G1 of the reference object and the actual size J1 thereof are obtained, a calculation process for obtaining the actual distance L to the reference object is performed using these values as parameters (step B20). In this case, assuming that the focal length of the lens is “f1”, the actual distance L to the reference object is calculated according to the following equation.
L = J1 / G1 * f1
The actual distance L to the reference object calculated in this way is a value obtained by multiplying the ratio of the image size G1 and the actual size J1 of the reference object by the focal length f1 of the lens, and the calculated value is approximately. It becomes the value of. This calculation result (actual distance) is temporarily held in a result table (not shown) in the work memory 3 (step B21).

以下、全ての基準対象物を1つずつ指定しながら上述の実距離算出処理を繰り返す(ステップB17〜B22)。いま、図2の例において、測定対象物(一般家屋)Aを構成する構成物「ベランダ」、「玄関ドア」、「窓枠」が基準対象物として特定されている状態においては、先ず、「ベランダ」を基準対象物Bとして指定してベランダBまでの実距離Lを算出した後、「玄関ドア」を基準対象物Cとして指定して玄関ドアCまでの実距離Lを算出し、更に、「窓枠」を基準対象物Dとして指定して窓枠Dまでの実距離Lを算出し、各算出結果をワークメモリ3内の結果テーブルにセットする処理が繰り返される。  Thereafter, the above-described actual distance calculation process is repeated while designating all the reference objects one by one (Steps B17 to B22). In the example of FIG. 2, in a state where the components “veranda”, “entrance door”, and “window frame” that constitute the measurement object (general house) A are specified as reference objects, After calculating the actual distance L to the veranda B by designating “veranda” as the reference object B, the actual distance L to the entrance door C is calculated by designating “entrance door” as the reference object C; The process of designating “window frame” as the reference object D, calculating the actual distance L to the window frame D, and setting each calculation result in the result table in the work memory 3 is repeated.

これによって全ての基準対象物を指定し終わると、CPU1は、ワークメモリ3内の結果テーブルにセットされている各基準対象物の実距離を読み出し、これらの平均値を算出し(ステップB23)、この平均値を測定対象物までの実距離として求める。これによって、図2の例では、一般家屋Aまでの実距離Xが求められる。そして、この測定対象物までの実距離をモニタ画像内の所定領域(例えば、右下部)に付加表示する(ステップB24)。この状態において、リターンキーの操作有無をチェックし(ステップB25)、リターンキーが操作された場合には、これに応答してモニタ画像の固定表示を解除して通常状態に戻る(ステップB26)。  When all the reference objects have been specified in this way, the CPU 1 reads the actual distance of each reference object set in the result table in the work memory 3 and calculates the average value thereof (step B23). This average value is obtained as the actual distance to the measurement object. Thereby, in the example of FIG. 2, the actual distance X to the general house A is obtained. Then, the actual distance to the measurement object is additionally displayed in a predetermined area (for example, the lower right) in the monitor image (step B24). In this state, whether or not the return key is operated is checked (step B25). If the return key is operated, the fixed display of the monitor image is canceled and the normal state is returned in response to this (step B26).

以上のように、この実施例において、構成物対応の基準対象テーブル11、付属物対応の基準対象テーブル12、周辺物対応の基準対象テーブル13が用意されている状態において、CPU1は、モニタ画像内において測定対象物として自動特定した画像部分を解析することによって当該測定対象の構成物/付属物/周辺物のうち、少なくともその何れかを距離測定用の基準対象物として特定した後、この基準対象物の実サイズを取得すると共に、基準対象物の画像サイズを計測し、更に、基準対象物の実サイズとその画像サイズに基づいて当該基準対象物までの実距離を算出すると共に、この基準対象物の実距離に基づいて測定対象物までの実距離を算出するようにしたから、距離センサを使用することなく、しかも、測定対象物の実際のサイズが分からなくても、モニタ画像を解析することによって測定対象の構成物/付属物/周辺物を距離測定用の標準的な基準対象物として特定しながら測定対象物までの実距離を測定することができる。   As described above, in this embodiment, in the state where the reference object table 11 corresponding to the object, the reference object table 12 corresponding to the accessory, and the reference object table 13 corresponding to the peripheral object are prepared, the CPU 1 After analyzing the image portion automatically specified as the measurement object in step 1, at least one of the constituent / attachment / peripheral object of the measurement target is specified as the distance measurement reference object, and then the reference object The actual size of the object is acquired, the image size of the reference object is measured, and the actual distance to the reference object is calculated based on the actual size of the reference object and the image size. Since the actual distance to the measurement object is calculated based on the actual distance of the object, it is possible to calculate the actual distance of the measurement object without using a distance sensor. Even if the noise is unknown, the actual distance to the measurement object is measured while identifying the component / attachment / peripheral object of the measurement object as a standard reference object for distance measurement by analyzing the monitor image be able to.

この場合、構成物対応の基準対象テーブル11、付属物対応の基準対象テーブル12、周辺物対応の基準対象テーブル13には、実サイズが分かっている標準的な各種物体に対応してその実サイズが記憶管理されているので、CPU1は、基準対象物として特定された物体に対応する実サイズを読み出し取得することができ、基準対象物の実サイズの自動取得が可能となる。
また、基準対象物を特定する際に、測定対象物の構成物、付属物、周辺物の優先順位に従って構成物対応の基準対象テーブル11、付属物対応の基準対象テーブル12、周辺物対応の基準対象テーブル13を順次検索することによって基準対象物を特定するようにしたから、測定対象物に近い順に基準対象物を決定することができ、距離測定をより正確に行うことが可能となる。
In this case, the reference object table 11 corresponding to the component, the reference object table 12 corresponding to the accessory, and the reference object table 13 corresponding to the peripheral object have their actual sizes corresponding to various standard objects whose actual sizes are known. Since storage management is performed, the CPU 1 can read out and acquire the actual size corresponding to the object specified as the reference object, and can automatically acquire the actual size of the reference object.
Further, when specifying the reference object, the reference object table 11 corresponding to the object, the reference object table 12 corresponding to the object, and the reference corresponding to the object according to the priority order of the component, accessory, and surrounding object of the measurement object Since the reference object is specified by sequentially searching the object table 13, the reference object can be determined in the order closest to the measurement object, and the distance measurement can be performed more accurately.

CPU1は、複数の基準対象物が特定された際に、この各基準対象物毎にその実距離を算出すると共に、基準対象物毎に算出した各実距離に基づいて測定対象物までの最適な実距離を算出するようにしたから、距離測定をより正確に行うことが可能となる。
また、測定対象物が含まれているモニタ画像が表示されている状態において、測定対象物の実距離を当該モニタ画像内に付加表示するようにしたから、モニタ画像内で距離の確認を行いながらその測定対象物を見ることができる。この場合、測定対象物の近傍に測定距離を表示するようにすれば、測定対象物と測定距離との対応関係が明瞭となる。
When a plurality of reference objects are specified, the CPU 1 calculates the actual distance for each reference object, and the optimum actual distance to the measurement object based on each actual distance calculated for each reference object. Since the distance is calculated, the distance measurement can be performed more accurately.
In addition, while the monitor image including the measurement object is displayed, the actual distance of the measurement object is additionally displayed in the monitor image, so the distance is confirmed in the monitor image. The measurement object can be seen. In this case, if the measurement distance is displayed in the vicinity of the measurement object, the correspondence between the measurement object and the measurement distance becomes clear.

なお、上述した実施例においては、モニタ画像を解析することによって測定対象物を自動特定するようにしたが、モニタ画面上において撮影者が、測定対象物を任意に指定するようにしてもよい。この場合、タッチパネル付きのモニタ画面上で任意の位置がタッチ指定(ポイント指定)された際に、その指定ポイントでの画像の連続性などを考慮して測定対象物を特定するようにしてもよい。また、任意の測定対象物をタッチ指定する際に、その輪郭に沿ってタッチ指定するようにすれば、測定対象物を容易に特定することが可能となる。  In the above-described embodiment, the measurement object is automatically specified by analyzing the monitor image. However, the photographer may arbitrarily specify the measurement object on the monitor screen. In this case, when an arbitrary position is touch-designated (point designation) on a monitor screen with a touch panel, the measurement object may be specified in consideration of the continuity of the image at the designated point. . Further, when a touch designation is made on an arbitrary measurement object, if the touch designation is made along the outline, the measurement object can be easily specified.

また、シャッター操作に応答して撮影画像を記録保存する際に、測定対象物までの実距離を併せて記録保存するようにすれば、画像再生時にその撮影画像に対応付けられている実距離を読み出して表示することができる。更に、撮影画像毎にその測定対象物に対応付けてその実距離を付加して記録媒体に保存しておき、この記録媒体をパーソナルコンピュータ等の画像データ処理装置に投入して画像再生を行うようにすれば、撮影画像毎にその測定対象の実距離を表示することができる。  In addition, when recording and saving a captured image in response to a shutter operation, if the actual distance to the object to be measured is also recorded and saved, the actual distance associated with the captured image at the time of image reproduction can be obtained. It can be read and displayed. Further, for each captured image, the actual distance is added in association with the object to be measured and stored in a recording medium, and the recording medium is inserted into an image data processing apparatus such as a personal computer for image reproduction. Then, the actual distance of the measurement object can be displayed for each captured image.

上述した実施例においては、構成物対応の基準対象テーブル11、付属物対応の基準対象テーブル12、周辺物対応の基準対象テーブル13に複数種の基準対象画像を任意に登録するようにしたが、画像自体を登録せず、この比較基準の特徴的な情報(例えば、窓枠であれば、矩形、縦横比など)を登録するようにしてもよい。また、基準対象テーブル11〜13の内容は、製品購入時に設定登録されているものであってもよく、必要に応じてユーザが任意の基準対象物とその実サイズを追加登録するようにしてもよい。  In the embodiment described above, a plurality of types of reference object images are arbitrarily registered in the reference object table 11 corresponding to the component, the reference object table 12 corresponding to the accessory, and the reference object table 13 corresponding to the peripheral object. Instead of registering the image itself, characteristic information of this comparison criterion (for example, a rectangle or an aspect ratio in the case of a window frame) may be registered. Further, the contents of the reference object tables 11 to 13 may be set and registered at the time of product purchase, and the user may additionally register an arbitrary reference object and its actual size as necessary. .

また、上述した実施例においては、デジタルカメラに適用した場合を示したが、パーソナルコンピュータ等の画像データ処理装置あるいはカメラ付き携帯電話や携帯情報機器などに組み込むようにしてもよく、各種用途にも使用可能である。例えば、建築現場、土木現場などで撮影を行った後、会社で画像再生を行いながら現場の状況を確認する際に、各撮影画像に基づいてその各部位の実距離を測定表示するようにしてもよい。
その他、この距離測定装置は、スタンドアロンタイプに限らず、その各構成要素が2以上の筐体に物理的に分離され、通信回線やケーブル等の有線伝送路あるいは電波、マイクロウエーブ、赤外線等の無線伝送路を介してデータを送受信する分散型のシステムであってもよい。
In the above-described embodiments, the case where the present invention is applied to a digital camera is shown. However, it may be incorporated in an image data processing apparatus such as a personal computer, a camera-equipped mobile phone or a portable information device, and for various applications. It can be used. For example, after shooting at a construction site, civil engineering site, etc., when checking the status of the site while reproducing the image at the company, the actual distance of each part is measured and displayed based on each captured image Also good.
In addition, this distance measuring device is not limited to a stand-alone type, and each component is physically separated into two or more casings, wired transmission paths such as communication lines and cables, or radio waves such as radio waves, microwaves, and infrared rays. A distributed system that transmits and receives data via a transmission path may be used.

一方、コンピュータに対して、上述した各手段を実行させるためのプログラムコードをそれぞれ記録した記録媒体(例えば、CD−ROM、フレキシブルディスク、RAMカード等)を提供するようにしてもよい。すなわち、コンピュータが読み取り可能なプログラムコードを有する記録媒体であって、撮影画像内に含まれている被写体を測定対象物として指定する機能と、実サイズが分かっている各種物体が距離測定用の標準的な基準対象物として記憶管理されている状態において、前記測定対象物として指定された画像部分を解析することによって当該測定対象物の構成要素である構成物、当該測定対象物に付属して取り付けられている付属物、当該測定対象物の周辺に存在している周辺物のうち、少なくともその何れかを基準対象物として特定する機能と、特定された基準対象物の実サイズを取得する機能と、撮影画像を解析することによって基準対象物の画像サイズを計測する機能と、前記基準対象物の実サイズとその画像サイズに基づいて当該基準対象物までの実距離を算出すると共に、この基準対象物の実距離に基づいて測定対象物までの実距離を算出する機能とを実現させるためのプログラムを記録したコンピュータが読み取り可能な記録媒体を提供するようにしてもよい。   On the other hand, a recording medium (for example, a CD-ROM, a flexible disk, a RAM card, etc.) on which program codes for executing the above-described units are recorded may be provided to the computer. That is, a recording medium having a computer readable program code, and a function for designating a subject included in a captured image as a measurement target, and various objects whose actual sizes are known are standard for distance measurement. A component that is a component of the measurement object and attached to the measurement object by analyzing the image portion designated as the measurement object in a state where it is stored and managed as a typical reference object A function to specify at least one of the attached accessories and the peripheral objects existing around the measurement object as a reference object, and a function to acquire the actual size of the specified reference object The function of measuring the image size of the reference object by analyzing the captured image, and the actual size of the reference object and the image size A computer-readable recording medium storing a program for calculating a real distance to the quasi-object and a function for calculating the actual distance to the measurement object based on the real distance of the reference object May be provided.

デジタルカメラの基本的構成要素を示したブロック図。The block diagram which showed the basic component of the digital camera. 一般家屋を測定対象物として撮影したモニタ画像において、このモニタ画像を解析することによって家屋までの実距離を測定する場合を説明するための図。The figure for demonstrating the case where the actual distance to a house is measured by analyzing this monitor image in the monitor image image | photographed as a measuring object. 撮影位置(レンズ位置)から測定対象物までの実距離を算出測定する場合に使用される各種のパラメータを示した図。The figure which showed the various parameters used when calculating and measuring the real distance from a photographing position (lens position) to a measuring object. 構成物対応の基準対象テーブル11の内容を示した図。The figure which showed the content of the reference | standard object table 11 corresponding to a structure. 付属物対応の基準対象テーブル12の内容を示した図。The figure which showed the content of the reference | standard object table 12 corresponding to an accessory. 周辺物対応の基準対象テーブル13の内容を示した図。The figure which showed the content of the reference | standard object table 13 corresponding to a peripheral thing. 電源投入に応じて実行開始されるデジタルカメラの全体動作の概要を示したフローチャート。The flowchart which showed the outline | summary of the whole operation | movement of the digital camera started execution according to power activation. 撮影モード時に距離測定ボタンの操作に応じて実行される距離測定処理を詳述したフローチャート。7 is a flowchart detailing distance measurement processing executed in response to an operation of a distance measurement button in a shooting mode. 図8に続く、距離測定処理を示したフローチャート。The flowchart which showed the distance measurement process following FIG.

符号の説明Explanation of symbols

1 CPU
2 記憶部
4 記録媒体
5 操作部
6 表示部
7 カメラ撮影部
8 画像メモリ
11 構成物対応の基準対象テーブル
12 付属物対応の基準対象テーブル
13 周辺物対応の基準対象テーブル
A 測定対象物
B、C、D、基準対象物
1 CPU
2 storage unit 4 recording medium 5 operation unit 6 display unit 7 camera photographing unit 8 image memory 11 reference object table corresponding to component 12 reference object table corresponding to accessory 13 reference object table corresponding to peripheral object A measurement objects B and C , D, reference object

Claims (8)

撮影画像を解析することによってその中に含まれている被写体までの距離を測定する距離測定装置であって、
撮影画像内に含まれている被写体を測定対象物として指定する指定手段と、
実サイズが分かっている各種物体が距離測定用の標準的な基準対象物として記憶管理されている状態において、前記測定対象物として指定された画像部分を解析することによって当該測定対象物の構成要素である構成物、当該測定対象物に付属して取り付けられている付属物、当該測定対象物の周辺に存在している周辺物のうち、少なくともその何れかを基準対象物として特定する特定手段と、
前記特定された基準対象物の実サイズを取得する取得手段と、
撮影画像を解析することによって基準対象物の画像サイズを計測する計測手段と、
前記基準対象物の実サイズとその画像サイズに基づいて当該基準対象物までの実距離を算出すると共に、この基準対象物の実距離に基づいて測定対象物までの実距離を算出する算出手段と、
を具備したことを特徴とする距離測定装置。
A distance measuring device that measures a distance to a subject included in a captured image by analyzing the captured image,
A designation means for designating a subject included in the captured image as a measurement object;
In a state where various objects whose actual sizes are known are stored and managed as standard reference objects for distance measurement, the components of the measurement object are analyzed by analyzing the image portion designated as the measurement object. A specifying means for identifying at least one of the component, the accessory attached to the measurement object, and the peripheral object existing around the measurement object as a reference object ,
Obtaining means for obtaining the actual size of the identified reference object;
Measuring means for measuring the image size of the reference object by analyzing the captured image;
Calculating means for calculating an actual distance to the reference object based on the actual size of the reference object and the image size, and calculating an actual distance to the measurement object based on the actual distance of the reference object; ,
A distance measuring device comprising:
前記指定手段は、撮影画像を解析することによってその中心部に存在している画像部分を測定対象物として指定する、
ようにしたことを特徴とする請求項1記載の距離測定装置。
The designation means designates an image portion existing in the center portion by analyzing a captured image as a measurement object,
2. The distance measuring device according to claim 1, wherein the distance measuring device is configured as described above.
実サイズが分かっている標準的な各種物体が基準対象物として記憶管理されている状態において、前記特定手段は、前記指定された測定対象物の構成物あるいは付属物あるいは周辺物と前記標準的な各種物体とを比較することによって特徴的に一致するものを基準対象物として特定する、
ようにしたことを特徴とする請求項1記載の距離測定装置。
In a state in which various standard objects whose actual sizes are known are stored and managed as reference objects, the specifying means includes the specified measurement object component or accessory or peripheral object and the standard object. Identifying a reference object that matches characteristically by comparing various objects,
2. The distance measuring device according to claim 1, wherein the distance measuring device is configured as described above.
前記標準的な各種物体に対応してその実サイズが記憶管理されている状態において、前記取得手段は、前記基準対象物として特定された物体に対応する実サイズを読み出し取得する、
ようにしたことを特徴とする請求項3記載の距離測定装置。
In a state where the actual size is stored and managed corresponding to the standard various objects, the acquisition unit reads and acquires the actual size corresponding to the object specified as the reference object.
The distance measuring device according to claim 3, wherein the distance measuring device is configured as described above.
前記特定手段は、基準対象物を特定する際に、測定対象物の構成物、付属物、周辺物の優先順位に従って前記標準的な各種物体を順次検索することによって基準対象物を特定する、
ようにしたことを特徴とする請求項3記載の距離測定装置。
The specifying means specifies the reference object by sequentially searching the standard various objects according to the priority order of the constituents, accessories, and surrounding objects of the measurement object when specifying the reference object.
The distance measuring device according to claim 3, wherein the distance measuring device is configured as described above.
前記特定手段によって複数の基準対象物が特定された際に、前記算出手段は、この各基準対象物毎にその実距離を算出すると共に、基準対象物毎に算出した各実距離に基づいて前記測定対象物までの最適な実距離を算出する、
ようにしたことを特徴とする請求項1記載の距離測定装置。
When a plurality of reference objects are specified by the specifying means, the calculation means calculates the actual distance for each reference object and the measurement based on each actual distance calculated for each reference object. Calculate the optimal actual distance to the object,
2. The distance measuring device according to claim 1, wherein the distance measuring device is configured as described above.
測定対象物が含まれている撮影画像が表示されている状態において、前記算出手段によって得られた測定対象物の実距離を当該撮影画像内に付加表示する、
ようにしたことを特徴とする請求項1記載の距離測定装置。
In a state where a captured image including the measurement object is displayed, the actual distance of the measurement object obtained by the calculation unit is additionally displayed in the captured image.
2. The distance measuring device according to claim 1, wherein the distance measuring device is configured as described above.
コンピュータに対して、
撮影画像内に含まれている被写体を測定対象物として指定する機能と、
実サイズが分かっている各種物体が距離測定用の標準的な基準対象物として記憶管理されている状態において、前記測定対象物として指定された画像部分を解析することによって当該測定対象物の構成要素である構成物、当該測定対象物に付属して取り付けられている付属物、当該測定対象物の周辺に存在している周辺物のうち、少なくともその何れかを基準対象物として特定する機能と、
特定された基準対象物の実サイズを取得する機能と、
撮影画像を解析することによって基準対象物の画像サイズを計測する機能と、
前記基準対象物の実サイズとその画像サイズに基づいて当該基準対象物までの実距離を算出すると共に、この基準対象物の実距離に基づいて測定対象物までの実距離を算出する機能と、
を実現させるためのプログラム。
Against the computer,
A function for specifying a subject included in a captured image as a measurement object;
In a state where various objects whose actual sizes are known are stored and managed as standard reference objects for distance measurement, the components of the measurement object are analyzed by analyzing the image portion designated as the measurement object. A component that is attached to the measurement object, and a peripheral object that exists around the measurement object, and a function that identifies at least one of them as a reference object,
A function to obtain the actual size of the identified reference object;
A function to measure the image size of the reference object by analyzing the captured image;
Calculating the actual distance to the reference object based on the actual size of the reference object and its image size, and the function of calculating the actual distance to the measurement object based on the actual distance of the reference object;
A program to realize
JP2003430431A 2003-12-25 2003-12-25 Distance measurement equipment and program Pending JP2005189087A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003430431A JP2005189087A (en) 2003-12-25 2003-12-25 Distance measurement equipment and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003430431A JP2005189087A (en) 2003-12-25 2003-12-25 Distance measurement equipment and program

Publications (1)

Publication Number Publication Date
JP2005189087A true JP2005189087A (en) 2005-07-14

Family

ID=34788810

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003430431A Pending JP2005189087A (en) 2003-12-25 2003-12-25 Distance measurement equipment and program

Country Status (1)

Country Link
JP (1) JP2005189087A (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009271161A (en) * 2008-05-01 2009-11-19 Seiko Epson Corp Image projection device and image projection method
JP2010243843A (en) * 2009-04-07 2010-10-28 Fujifilm Corp Autofocus system
WO2011154987A1 (en) * 2010-06-07 2011-12-15 三菱電機株式会社 Camera distance measurement device
JP2013021733A (en) * 2012-10-29 2013-01-31 Fujitsu Mobile Communications Ltd Portable information apparatus
KR20130136764A (en) * 2012-06-05 2013-12-13 엘지이노텍 주식회사 Camera module apparatus and method for measuring distance of the same
CN105452894A (en) * 2013-06-13 2016-03-30 巴斯夫欧洲公司 Detector for optically detecting at least one object
US10412283B2 (en) 2015-09-14 2019-09-10 Trinamix Gmbh Dual aperture 3D camera and method using differing aperture areas
JP2020109593A (en) * 2019-01-07 2020-07-16 トヨタ自動車株式会社 Program for operating vehicle from outside of vehicle
US10775505B2 (en) 2015-01-30 2020-09-15 Trinamix Gmbh Detector for an optical detection of at least one object
US10890491B2 (en) 2016-10-25 2021-01-12 Trinamix Gmbh Optical detector for an optical detection
JP2021004806A (en) * 2019-06-26 2021-01-14 高知県公立大学法人 Fruits detection system
US10948567B2 (en) 2016-11-17 2021-03-16 Trinamix Gmbh Detector for optically detecting at least one object
US10955936B2 (en) 2015-07-17 2021-03-23 Trinamix Gmbh Detector for optically detecting at least one object
CN112714397A (en) * 2020-12-25 2021-04-27 杭州电子科技大学 WSN node positioning method based on ranging optimization and improved sparrow search algorithm
US11041718B2 (en) 2014-07-08 2021-06-22 Basf Se Detector for determining a position of at least one object
US11125880B2 (en) 2014-12-09 2021-09-21 Basf Se Optical detector
US11211513B2 (en) 2016-07-29 2021-12-28 Trinamix Gmbh Optical sensor and detector for an optical detection
US11428787B2 (en) 2016-10-25 2022-08-30 Trinamix Gmbh Detector for an optical detection of at least one object
US11860292B2 (en) 2016-11-17 2024-01-02 Trinamix Gmbh Detector and methods for authenticating at least one object

Cited By (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009271161A (en) * 2008-05-01 2009-11-19 Seiko Epson Corp Image projection device and image projection method
JP2010243843A (en) * 2009-04-07 2010-10-28 Fujifilm Corp Autofocus system
US8218961B2 (en) * 2009-04-07 2012-07-10 Fujinon Corporation Autofocus system
WO2011154987A1 (en) * 2010-06-07 2011-12-15 三菱電機株式会社 Camera distance measurement device
JP5073123B2 (en) * 2010-06-07 2012-11-14 三菱電機株式会社 Camera distance measuring device
JPWO2011154987A1 (en) * 2010-06-07 2013-08-01 三菱電機株式会社 Camera distance measuring device
KR101944279B1 (en) * 2012-06-05 2019-01-31 엘지이노텍 주식회사 Camera module apparatus and method for measuring distance of the same
KR20130136764A (en) * 2012-06-05 2013-12-13 엘지이노텍 주식회사 Camera module apparatus and method for measuring distance of the same
JP2013021733A (en) * 2012-10-29 2013-01-31 Fujitsu Mobile Communications Ltd Portable information apparatus
JP2016529474A (en) * 2013-06-13 2016-09-23 ビーエーエスエフ ソシエタス・ヨーロピアBasf Se Detector for optically detecting at least one object
CN105452894A (en) * 2013-06-13 2016-03-30 巴斯夫欧洲公司 Detector for optically detecting at least one object
CN105452894B (en) * 2013-06-13 2019-04-30 巴斯夫欧洲公司 For being detected optically by the detector of at least one object
CN110018487A (en) * 2013-06-13 2019-07-16 巴斯夫欧洲公司 For being detected optically by the detector of at least one object
US10823818B2 (en) 2013-06-13 2020-11-03 Basf Se Detector for optically detecting at least one object
US10845459B2 (en) 2013-06-13 2020-11-24 Basf Se Detector for optically detecting at least one object
US11041718B2 (en) 2014-07-08 2021-06-22 Basf Se Detector for determining a position of at least one object
US11125880B2 (en) 2014-12-09 2021-09-21 Basf Se Optical detector
US10775505B2 (en) 2015-01-30 2020-09-15 Trinamix Gmbh Detector for an optical detection of at least one object
US10955936B2 (en) 2015-07-17 2021-03-23 Trinamix Gmbh Detector for optically detecting at least one object
US10412283B2 (en) 2015-09-14 2019-09-10 Trinamix Gmbh Dual aperture 3D camera and method using differing aperture areas
US11211513B2 (en) 2016-07-29 2021-12-28 Trinamix Gmbh Optical sensor and detector for an optical detection
US10890491B2 (en) 2016-10-25 2021-01-12 Trinamix Gmbh Optical detector for an optical detection
US11428787B2 (en) 2016-10-25 2022-08-30 Trinamix Gmbh Detector for an optical detection of at least one object
US11635486B2 (en) 2016-11-17 2023-04-25 Trinamix Gmbh Detector for optically detecting at least one object
US11415661B2 (en) 2016-11-17 2022-08-16 Trinamix Gmbh Detector for optically detecting at least one object
US10948567B2 (en) 2016-11-17 2021-03-16 Trinamix Gmbh Detector for optically detecting at least one object
US11698435B2 (en) 2016-11-17 2023-07-11 Trinamix Gmbh Detector for optically detecting at least one object
US11860292B2 (en) 2016-11-17 2024-01-02 Trinamix Gmbh Detector and methods for authenticating at least one object
JP2020109593A (en) * 2019-01-07 2020-07-16 トヨタ自動車株式会社 Program for operating vehicle from outside of vehicle
US11327478B2 (en) 2019-01-07 2022-05-10 Toyota Jidosha Kabushiki Kaisha Program for operating vehicle from outside vehicle
JP7167716B2 (en) 2019-01-07 2022-11-09 トヨタ自動車株式会社 Programs for operating the vehicle from outside the vehicle
DE102019133320B4 (en) 2019-01-07 2023-06-01 Toyota Jidosha Kabushiki Kaisha Program for operating a vehicle from outside the vehicle
US11767058B2 (en) 2019-01-07 2023-09-26 Toyota Jidosha Kabushiki Kaisha Program for operating vehicle from outside vehicle
JP2021004806A (en) * 2019-06-26 2021-01-14 高知県公立大学法人 Fruits detection system
CN112714397B (en) * 2020-12-25 2022-06-10 杭州电子科技大学 WSN node positioning method based on ranging optimization and improved sparrow search algorithm
CN112714397A (en) * 2020-12-25 2021-04-27 杭州电子科技大学 WSN node positioning method based on ranging optimization and improved sparrow search algorithm

Similar Documents

Publication Publication Date Title
JP2005189087A (en) Distance measurement equipment and program
KR101600115B1 (en) Imaging device, image display device, and electronic camera
JP4702418B2 (en) Imaging apparatus, image region existence determination method and program
JP2007174548A (en) Photographing device and program
JP2008206018A (en) Imaging apparatus and program
JP6497965B2 (en) Image processing apparatus and image processing method
JPWO2014141522A1 (en) Image determination apparatus, imaging apparatus, three-dimensional measurement apparatus, image determination method, and program
KR102186597B1 (en) Target size measurement system and method
CN102265602A (en) Image capture device
JP5131367B2 (en) Imaging apparatus and program
JPWO2019026919A1 (en) Image processing system, image processing method, and program
JP4466065B2 (en) Camera photographing apparatus and program
JP2005189051A (en) Size measurement device and program
JP7114274B2 (en) Information recording device and information recording method
JP2005181034A (en) Size measurement device and program
JP2008236015A (en) Image processor, imaging apparatus and its program
JP2018007082A (en) Image reproduction device, control method therefor, and program
JP2006332789A (en) Video photographing method, apparatus, and program, and storage medium for storing the program
JP2019114980A (en) Imaging apparatus, imaging method, and program
JP2005164514A (en) Size measuring device and program
JP5034880B2 (en) Electronic camera, image display device
JP2005181035A (en) Size measurement device and program
JP2005164512A (en) Size measuring instrument and program
JP2011139352A (en) Information processing method, program, and photographic device
JP2005164513A (en) Size measuring instrument and program

Legal Events

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

Effective date: 20060208

Free format text: JAPANESE INTERMEDIATE CODE: A7422

RD04 Notification of resignation of power of attorney

Effective date: 20060404

Free format text: JAPANESE INTERMEDIATE CODE: A7424