JP2005181034A - Size measurement device and program - Google Patents

Size measurement device and program Download PDF

Info

Publication number
JP2005181034A
JP2005181034A JP2003420467A JP2003420467A JP2005181034A JP 2005181034 A JP2005181034 A JP 2005181034A JP 2003420467 A JP2003420467 A JP 2003420467A JP 2003420467 A JP2003420467 A JP 2003420467A JP 2005181034 A JP2005181034 A JP 2005181034A
Authority
JP
Japan
Prior art keywords
size
measurement
image
target
reference object
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
JP2003420467A
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 JP2003420467A priority Critical patent/JP2005181034A/en
Publication of JP2005181034A publication Critical patent/JP2005181034A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To enable a measurement of the actual size of a measurement object included in a photographed image, by analyzing the photographed image while taking into account of the front-to-rear relationship (perspective relationship) between the object of the size measurement and a reference object to be compared with the measurement object. <P>SOLUTION: In the state in which the measurement object and the reference object are specified in a monitor image photographed by a camera photographing part 7, after acquiring the ratio of the distance of the measurement object to that of the reference object and the actual size of the reference object, a CPU 1 calculates the image size for each of the measurement object and the reference object, by analyzing the photographed image, and calculates the actual size of the measurement object, on the basis of each calculated size, the distance ratio, and the actual size of the reference object. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

この発明は、撮影画像の中に含まれている被写体の実サイズを測定するサイズ測定装置およびプログラムに関する。   The present invention relates to a size measuring apparatus and program for measuring the actual size of a subject included in a captured image.

従来、カメラ撮影によって被写体のサイズを測定する技術としては、例えば、カメラに備えられている距離センサによって計測されたレンズ位置から被写体までの距離と、ディスプレイ上に表示されている被写体の任意部分と、レンズの撮影画角に基づいて被写体の実際寸法を測定するようにしたデジタルカメラが知られている(特許文献1参照)。また、水中カメラの焦点距離と、水中カメラに一体化されている送受波器によって捕らえられた魚までの距離に基づいて魚影の実際の大きさを表示画面上で求めるようにした魚種判別装置が知られている(特許文献2参照)。
特開平11−344311号公報 特開平5−312947号公報
Conventionally, as a technique for measuring the size of a subject by camera shooting, for example, the distance from the lens position measured by a distance sensor provided in the camera to the subject, and an arbitrary part of the subject displayed on the display, A digital camera is known in which an actual dimension of a subject is measured based on a shooting angle of view of a lens (see Patent Document 1). In addition, the fish species discrimination is based on the display screen to determine the actual size of the fish shadow based on the focal length of the underwater camera and the distance to the fish captured by the transducer integrated in the underwater camera. An apparatus is known (see Patent Document 2).
Japanese Patent Application Laid-Open No. 11-344311 Japanese Patent Laid-Open No. 5-31947

しかしながら、上述した被写体の実際寸法を測定するデジタルカメラや魚影の実際の大きさを測定する魚種判別装置にあっては、比較的高精度の測定結果を得ることができるが、サイズ測定の対象となる被写体に焦点を合わせた状態で撮影することを前提とするものであり、被写体のサイズを測定する毎に、被写体に焦点を合わせながら被写体毎に1枚ずつ撮影する必要があった。  However, in the above-described digital camera for measuring the actual size of the subject and the fish type discriminating apparatus for measuring the actual size of the fish shadow, a relatively high accuracy measurement result can be obtained. This is based on the premise that shooting is performed in a state where the target subject is in focus, and each time the size of the subject is measured, it is necessary to take one photo for each subject while focusing on the subject.

第1の発明の課題は、サイズ測定の対象となる被写体とこの測定対象と比較される基準対象の被写体との前後関係(遠近関係)を考慮しながら撮影画像を解析することによってその中に含まれている測定対象の実サイズを測定できるようにすることである
第2の発明の課題は、サイズ測定の対象となる被写体とこの測定対象と比較される基準対象の被写体とを個別に撮影したとしても、この基準対象の実サイズに基づいて測定対象の実サイズを測定できるようにすることである。
The subject of the first invention is included by analyzing a captured image in consideration of the front-to-back relationship (perspective relationship) between a subject to be measured for size and a reference subject to be compared with the subject to be measured. The subject of the second invention is to be able to measure the actual size of the measurement target being measured, and separately photograph the subject to be measured and the reference subject to be compared with the subject to be measured However, the actual size of the measurement object can be measured based on the actual size of the reference object.

請求項1記載の発明(第1の発明)は、撮影画像の中に含まれている被写体の実サイズを測定するサイズ測定装置であって、撮影画像内の被写体をサイズ測定の対象となる測定対象として指定する他、この測定対象と比較される基準対象を指定する指定手段と、前記指定された測定対象と基準対象との距離比を取得する他、この基準対象の実サイズを取得する取得手段と、撮影画像を解析することによって測定対象、基準対象毎にその画像サイズを算出すると共に、この各算出サイズと距離比と基準対象の実サイズに基づいて測定対象の実サイズを算出する算出手段とを具備したことを特徴とする
更に、コンピュータに対して、上述した請求項1記載の発明に示した主要機能を実現させるためのプログラムを提供する(請求項10記載の発明)。
The invention according to claim 1 (first invention) is a size measuring device for measuring the actual size of a subject included in a photographed image, wherein the subject in the photographed image is a target for size measurement. In addition to designating as a target, obtaining means for designating a reference target to be compared with the measurement target, and obtaining a distance ratio between the designated measurement target and the reference target, and obtaining an actual size of the reference target And calculating the image size for each measurement target and reference target by analyzing the captured image, and calculating the actual size of the measurement target based on each calculated size, the distance ratio, and the actual size of the reference target Furthermore, a program for causing a computer to realize the main functions shown in the invention described in claim 1 is provided (the invention described in claim 10). ).

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

測定対象撮影モードと基準対象撮影モードとを切り換えるモード切り替え手段を設け、前記指定手段は、測定対象撮影モード時の撮影画像内の所定領域内に含まれている画像部分を測定対象として指定し、基準対象撮影モード時の撮影画像内の所定領域内に含まれている画像部分を基準対象として指定する(請求項3記載の発明)。   A mode switching unit that switches between a measurement target shooting mode and a reference target shooting mode is provided, and the specifying unit specifies an image portion included in a predetermined area in the captured image in the measurement target shooting mode as a measurement target, An image portion included in a predetermined area in the photographed image in the reference object photographing mode is designated as a reference object.

前記指定手段は、撮影画像内に含まれている各被写体のうち、予め記憶管理されている複数種の基準対象の何れかに特徴的に一致する画像部分を基準対象として指定する(請求項4記載の発明)。   The designation means designates, as a reference object, an image portion that characteristically matches any of a plurality of types of reference objects stored and managed in advance among the subjects included in the captured image. Described invention).

予め複数種の基準対象に対応してその実サイズが記憶管理されている状態において、前記取得手段は、前記指定された基準対象に対応する実サイズを読み出し取得する(請求項5記載の発明)。   In a state where the actual size is stored and managed in advance corresponding to a plurality of types of reference objects, the acquisition unit reads out and acquires the actual size corresponding to the specified reference object (the invention according to claim 5).

カメラ画角に相当する視野内の撮影画像が展開される実撮影領域に非撮影領域を付加することによって当該視野を仮想的にカメラ位置まで拡大したサイズ測定用の作業領域が用意されている状態において、カメラ位置に相当する前記非撮影領域内の位置を測定基点として、前記取得手段は、当該測定基点から実撮影領域内の測定対象、基準対象までの仮想距離を求めてそれらの距離比を算出取得する(請求項6記載の発明)。   A work area for size measurement is prepared by adding a non-photographing area to the actual photographing area where the photographed image in the visual field corresponding to the camera angle of view is developed, thereby expanding the visual field virtually to the camera position. The acquisition means uses the position in the non-photographing area corresponding to the camera position as a measurement base point, and the acquisition means obtains a virtual distance from the measurement base point to the measurement object and the reference object in the real photographing area and calculates the distance ratio thereof. Calculated and acquired (invention of claim 6).

前記測定対象と基準対象とが個別に撮影された場合に、前記取得手段は、前記仮想領域上の基点から測定対象までの仮想距離と基準対象までの仮想距離を個別に求めた後に、それらの距離比を算出取得する(請求項7記載の発明)。   When the measurement object and the reference object are individually photographed, the acquisition unit obtains the virtual distance from the base point on the virtual region to the measurement object and the virtual distance to the reference object individually, The distance ratio is calculated and acquired (the invention according to claim 7).

前記基準対象の実サイズおよび画像サイズを取得した後に、測定対象が指定される毎に、指定された測定対象の実サイズを算出する(請求項8記載の発明)。   After acquiring the actual size and the image size of the reference object, every time the measurement object is designated, the actual size of the designated measurement object is calculated (the invention according to claim 8).

測定対象が含まれている撮影画像が表示されている状態において、この撮影画像内に当測定対象に対応付けてその実サイズを表示する(請求項9記載の発明)。   In a state where a captured image including the measurement target is displayed, the actual size is displayed in the captured image in association with the measurement target.

請求項11記載の発明(第2の発明)は、撮影画像の中に含まれている被写体の実サイズを測定するサイズ測定装置であって、撮影画像内でサイズ測定の対象となる測定対象を指定する第1の指定手段と、前記撮影画像とは異なる他の撮影画像内において、前記測定対象と比較される基準対象を指定する第2の指定手段と、前記基準対象の実際の大きさを示す実サイズを取得する取得手段と、撮影画像を解析することによって測定対象、基準対象毎にその画像サイズを算出すると共に、この各算出サイズと基準対象の実サイズに基づいて当該測定対象の実サイズを算出する算出手段とを具備したことを特徴とする。
更に、コンピュータに対して、上述した請求項1記載の発明に示した主要機能を実現させるためのプログラムを提供する(請求項15記載の発明)。
The invention according to claim 11 (second invention) is a size measuring device for measuring an actual size of a subject included in a photographed image, wherein a measurement object to be size-measured in the photographed image is selected. First specifying means for specifying, second specifying means for specifying a reference object to be compared with the measurement object in another captured image different from the captured image, and an actual size of the reference object The acquisition means for acquiring the actual size shown, and the image size for each measurement target and reference target are calculated by analyzing the captured image, and the actual size of the measurement target is calculated based on each calculated size and the actual size of the reference target. And a calculating means for calculating the size.
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 15).

なお、請求項11記載の発明は次のようなものであってもよい。
前記第2の指定手段は、基準対象を指定する際に、予め記憶管理されている複数種の基準対象の何れかに特徴的に一致する被写体を基準対象として指定し、前記取得手段は、前記指定された基準対象に対応して予め記憶管理されている実サイズを読み出し取得する(請求項12記載の発明)。
The invention described in claim 11 may be as follows.
The second designating unit designates, as a standard target, a subject that characteristically matches any of a plurality of types of standard targets stored and managed in advance when designating the standard target, The actual size stored and managed in advance corresponding to the designated reference object is read out and acquired (invention of claim 12).

予め記憶管理されている複数種の基準対象の何れかに特徴的に一致する被写体を基準対象として指定する際に、特徴的に一致する各候補を案内表示する表示手段を設け、前記第2の指定手段は、前記候補表示の中から任意に選択された候補を基準対象として指定する(請求項13記載の発明)。   Display means for guiding and displaying each characteristically matching candidate when a subject that is characteristically matched with any of a plurality of types of reference objects stored and managed in advance is designated as the reference object; The designating means designates a candidate arbitrarily selected from the candidate display as a reference object (the invention according to claim 13).

予め記憶管理されている複数種の基準対象の何れかに特徴的に一致する候補が存在していない場合には、基準対象を含むように再撮影すべきことを促すガイダンスを案内出力する(請求項14記載の発明)。   When there is no candidate that characteristically matches any of a plurality of types of reference objects that are stored and managed in advance, guidance that prompts the user to re-photograph so as to include the reference objects is output (guidance). Item 14).

請求項1記載の発明によれば、撮影画像内の被写体がサイズ測定の対象となる測定対象として指定されている他、この測定対象と比較される基準対象が指定されている状態において、測定対象と基準対象との距離比および基準対象の実サイズを取得し、更に、撮影画像を解析することによって測定対象、基準対象毎にその画像サイズを算出すると共に、この各算出サイズと距離比と基準対象の実サイズに基づいて測定対象の実サイズを算出するようにしたから、測定対象と基準対象との前後関係(遠近関係)を考慮しながら撮影画像を解析することによって測定対象の実サイズを測定することができると共に、基準対象を1度指定した後は、同一の基準対象を使用して各測定対象の実サイズを何回でも算出測定することができる。なお、撮影画像内において複数の測定対象が指定された場合には、各測定対象毎にその実サイズを測定することができる。更に、撮影時に限らず、画像の再生時でもサイズ測定を行うことも可能となり、必要に応じて何時でも自由にサイズ測定が可能となる。従って、このサイズ測定装置をデジタルカメラに組み込む場合に限らず、パーソナルコンピュータ等の画像データ処理装置に組み込むことによって、その活用範囲を広げ、各種の用途に使用可能となる。   According to the first aspect of the present invention, in the state in which the subject in the captured image is designated as the measurement target to be the size measurement target and the reference target to be compared with the measurement target is designated, The distance ratio between the reference object and the actual size of the reference object is obtained, and the image size is calculated for each measurement object and reference object by analyzing the captured image, and each calculated size, distance ratio, and reference Since the actual size of the measurement target is calculated based on the actual size of the target, the actual size of the measurement target is determined by analyzing the captured image while taking into account the front-to-back relationship (perspective relationship) between the measurement target and the reference target. In addition to being able to measure, once the reference object is designated, the actual size of each measurement object can be calculated and measured any number of times using the same reference object. In addition, when a plurality of measurement objects are specified in the captured image, the actual size can be measured for each measurement object. Furthermore, size measurement can be performed not only at the time of shooting but also at the time of image reproduction, and the size can be freely measured at any time as necessary. Therefore, not only when this size measuring device is incorporated into a digital camera, but also by incorporating it into an image data processing device such as a personal computer, the range of use can be expanded and it can be used for 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 located in the central portion is designated as the measurement object by analyzing the photographed image. Therefore, the measurement target can be automatically specified by image analysis, a special operation is not necessary, and the measurement target 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 the measurement object shooting mode, an image portion included in a predetermined area in the captured image is measured. In the reference target shooting mode, the image portion included in a predetermined area in the captured image is specified as the reference target, so that the measurement target is analyzed by analyzing each individually captured image, It is possible to automatically specify the reference object, no special operation is required, and it is possible to reliably specify the measurement object and the reference object.

請求項4記載の発明によれば、上述した請求項1記載の発明と同様の効果を有する他、撮影画像内に含まれている各被写体のうち、予め記憶管理されている複数種の基準対象の何れかに特徴的に一致する被写体を基準対象として指定するようにしたから、画像解析によって基準対象の自動指定が可能となると共に、基準対象を確実に指定することが可能となる。   According to the invention described in claim 4, in addition to having the same effect as that of the invention described in claim 1, a plurality of types of reference objects stored and managed in advance among the subjects included in the photographed image. Since a subject that characteristically matches any of the above is designated as a reference target, it is possible to automatically designate the reference target by image analysis, and to reliably designate the reference target.

請求項5記載の発明によれば、上述した請求項1記載の発明と同様の効果を有する他、予め複数種の基準対象に対応してその実サイズが記憶管理されている状態において、前記取得手段は、前記指定された基準対象に対応する実サイズを読み出し取得するようにしたから、基準対象の実サイズの自動取得が可能となり、特別な操作が不要となる。   According to the invention described in claim 5, in addition to having the same effect as that of the invention described in claim 1 described above, in the state where the actual size is stored and managed in advance corresponding to a plurality of types of reference objects, the acquisition means Since the actual size corresponding to the designated reference object is read out and acquired, the actual size of the reference object can be automatically acquired, and no special operation is required.

請求項6記載の発明によれば、上述した請求項1記載の発明と同様の効果を有する他、カメラ画角に相当する視野内の撮影画像が展開される実撮影領域に非撮影領域を付加することによって当該視野を仮想的にカメラ位置まで拡大したサイズ測定用の作業領域が用意されている状態において、カメラ位置に相当する非撮影領域内の位置を測定基点として、当該測定基点から実撮影領域内の測定対象、基準対象までの仮想距離を求めてそれらの距離比を算出取得するようにしたから、距離センサ等を使用しなくても、撮影画像を解析することによって測定対象と基準対象との距離比を算出取得することができる。   According to the invention described in claim 6, in addition to the same effect as the invention described in claim 1, the non-shooting area is added to the actual shooting area where the shot image within the field of view corresponding to the camera angle of view is developed. In the state where the work area for size measurement in which the field of view is virtually expanded to the camera position is prepared, the actual position is taken from the measurement base point with the position in the non-photographing region corresponding to the camera position as the measurement base point. Since the virtual distance to the measurement object and reference object in the area is calculated and the distance ratio between them is calculated and acquired, the measurement object and reference object can be analyzed by analyzing the captured image without using a distance sensor etc. The distance ratio to can be calculated and acquired.

請求項7記載の発明によれば、上述した請求項1、6記載の発明と同様の効果を有する他、測定対象と基準対象とが個別に撮影された場合に、仮想領域上の基点から測定対象までの距離と基準対象までの距離を個別に求めた後に、それらの距離比を算出取得するようにしたから、測定対象と基準対象とを個別に撮影した場合でも、基準対象の実サイズに基づいて測定対象の実サイズを測定することができる。   According to the seventh aspect of the present invention, in addition to the same effects as the first and sixth aspects of the present invention, when the measurement object and the reference object are individually photographed, the measurement is performed from the base point on the virtual area. After obtaining the distance to the target and the distance to the reference object individually, the distance ratio between them was calculated and acquired, so even if the measurement object and the reference object were shot separately, the actual size of the reference object was Based on this, the actual size of the measurement object can be measured.

請求項8記載の発明によれば、上述した請求項1記載の発明と同様の効果を有する他、基準対象の実サイズおよび画像サイズを取得した後に、測定対象が指定される毎に、指定された測定対象の実サイズを算出するようにしたから、1つの基準対象を元に複数の測定対象の実サイズを測定することができる。   According to the eighth aspect of the invention, in addition to having the same effect as the first aspect of the invention described above, the measurement target is designated every time the measurement target is designated after acquiring the actual size and the image size of the reference target. Since the actual size of the measured object is calculated, the actual sizes of a plurality of measured objects can be measured based on one reference object.

請求項9記載の発明によれば、上述した請求項1記載の発明と同様の効果を有する他、測定対象が含まれている撮影画像が表示されている状態において、この撮影画像内に当測定対象に対応付けてその実サイズを表示するようにしたから、撮影画像内でサイズ確認を行いながらその測定対象を見ることができると共に、測定対象とその実サイズとの対応関係が明瞭となる。   According to the ninth aspect of the present invention, in addition to having the same effect as that of the first aspect of the present invention described above, in the state in which the photographed image including the measurement target is displayed, this measurement is included in the photographed image. Since the actual size is displayed in association with the object, the measurement object can be viewed while checking the size in the captured image, and the correspondence between the measurement object and the actual size becomes clear.

請求項11記載の発明によれば、撮影画像内で測定対象が指定されていると共に、この撮影画像とは異なる他の撮影画像内で基準対象が指定されている状態において、基準対象の実サイズを取得すると共に、撮影画像を解析することによって測定対象、基準対象毎にその画像サイズを算出し、この各算出サイズと基準対象の実サイズに基づいて当該測定対象の実サイズを算出するようにしたから、測定対象の被写体と基準対象の被写体とを個別に撮影したとしても、この基準対象の実サイズに基づいて測定対象の実サイズを測定することができる。なお、撮影画像内において複数の測定対象が指定された場合には、各測定対象毎にその実サイズを測定することができる。更に、撮影時に限らず、画像の再生時でもサイズ測定を行うことも可能となり、必要に応じて何時でも自由にサイズ測定が可能となる。従って、このサイズ測定装置をデジタルカメラに組み込む場合に限らず、パーソナルコンピュータ等の画像データ処理装置に組み込むことによって、その活用範囲を広げ、各種の用途に使用可能となる。   According to the eleventh aspect of the invention, in the state where the measurement target is specified in the captured image and the reference target is specified in another captured image different from the captured image, the actual size of the reference target The image size is calculated for each measurement target and reference target by analyzing the captured image, and the actual size of the measurement target is calculated based on each calculated size and the actual size of the reference target. Therefore, even if the subject to be measured and the subject to be referenced are photographed separately, the actual size of the subject to be measured can be measured based on the actual size of the reference subject. In addition, when a plurality of measurement objects are specified in the captured image, the actual size can be measured for each measurement object. Furthermore, size measurement can be performed not only at the time of shooting but also at the time of image reproduction, and the size can be freely measured at any time as necessary. Therefore, not only when this size measuring device is incorporated into a digital camera, but also by incorporating it into an image data processing device such as a personal computer, the range of use can be expanded and it can be used for various applications.

請求項12記載の発明によれば、上述した請求項11記載の発明と同様の効果を有する他、基準対象を指定する際に、予め記憶管理されている複数種の基準対象の何れかに特徴的に一致する被写体を基準対象として指定すると共に、指定された基準対象に対応して予め記憶管理されている実サイズを読み出し取得するようにしたから、撮影画像を解析することによって基準対象の自動指定が可能となると共に、基準対象の実サイズの自動取得が可能となる。   According to the invention described in claim 12, in addition to having the same effect as that of the invention described in claim 11 described above, when specifying the reference object, it is characterized by any of a plurality of types of reference objects stored and managed in advance. Automatically matching the specified subject as a reference target, and reading and acquiring the actual size stored and managed in advance corresponding to the specified reference target. It is possible to specify and to automatically acquire the actual size of the reference object.

請求項13記載の発明によれば、上述した請求項11記載の発明と同様の効果を有する他、予め記憶管理されている複数種の基準対象の何れかに特徴的に一致する被写体を基準対象として指定する際に、特徴的に一致する各候補が案内表示されている状態において、この候補表示の中から任意に選択された候補を基準対象として指定するようにしたから、基準対象を容易に指定することができる。   According to the thirteenth aspect of the present invention, in addition to the same effect as the above-described eleventh aspect of the present invention, a subject that characteristically matches any of a plurality of types of reference targets that are stored and managed in advance is used as a reference target. In the state where each candidate that is characteristically matched is displayed as guidance, the candidate arbitrarily selected from the candidate display is designated as the reference object. Can be specified.

請求項14記載の発明によれば、上述した請求項11、13記載の発明と同様の効果を有する他、予め記憶管理されている複数種の基準対象の何れかに特徴的に一致する候補が存在していない場合には、基準対象を含むように再撮影すべきことを促すガイダンスを案内出力するようにしたから、予め決められている基準対象を確実に指定することができる。   According to the invention described in claim 14, in addition to the same effects as those of the invention described in claims 11 and 13, the candidate that characteristically matches any of a plurality of types of reference objects stored and managed in advance is provided. In the case where it does not exist, the guidance that prompts the user to re-photograph so as to include the reference object is guided and output, so that a predetermined reference object can be reliably specified.

以下、図1〜図17を参照して本発明の実施例を説明する。
図1は、この実施例におけるデジタルカメラの基本的構成要素を示したブロック図である。
このデジタルカメラは、撮影画像(モニタ画像)内に含まれている被写体の実サイズを測定可能なもので、被写体を実撮影する前にサイズ測定が指示された際、この被写体をモニタ撮影したデジタル画像を解析することによって被写体の実サイズを測定してモニタ画面に表示するサイズ測定機能を有している。この場合、サイズ測定の対象となる被写体とこの測定対象と比較される基準対象の被写体との前後関係(遠近関係)を考慮しながらモニタ画像を解析することによって測定対象の実サイズを測定して表示するようにしている。また、サイズ測定の対象となる被写体とこの測定対象と比較される基準対象の被写体とを個別に撮影したとしても、この基準対象の実サイズに基づいて測定対象の実サイズを測定して表示するようにしている。
なお、この実施例の特徴部分を詳述する前に、この実施例のハードウェア上の構成について以下、説明しておく。
Embodiments of the present invention will be described below with reference to FIGS.
FIG. 1 is a block diagram showing basic components of a digital camera in this embodiment.
This digital camera is capable of measuring the actual size of the subject included in the captured image (monitor image). When the size measurement is instructed before the subject is actually photographed, the digital camera that has photographed the subject on the monitor It has a size measurement function that measures the actual size of the subject by analyzing the image and displays it on the monitor screen. In this case, the actual size of the measurement target is measured by analyzing the monitor image while taking into account the front-to-back relationship (perspective relationship) between the subject to be measured and the reference subject to be compared with this measurement target. It is trying to display. In addition, even if the subject to be measured and the reference subject to be compared with this subject are photographed separately, the actual size of the subject is measured and displayed based on the actual size of the reference subject. I am doing so.
Before detailed description of the features of this embodiment, the hardware configuration of this embodiment will be described below.

CPU1は、記憶部2内のオペレーティングシステムや各種アプリケーションソフトに従ってこのデジタルカメラの全体動作を制御する中央演算処理装置である。記憶部2は、ハードディスク等の固定的なメモリであり、プログラム記憶領域とデータ記憶領域とを有している。この記憶部2内のプログラム記憶領域には、後述する図7〜図10に示す動作手順に従って本実施例を実現する為のアプリケーションプログラムが格納され、また、データ記憶領域には、後述する図6に示すデータ(基準対象テーブル)が格納されている。このプログラムやデータは、必要に応じてワークメモリ3にロードされたり、このワークメモリ3内のデータが記憶部2にセーブされる。なお、記録媒体4は、DVD等の着脱自在なメモリであり、記憶部2やワークメモリ3との間においてプログラムや画像データ等の受け渡しを行う。ワークメモリ3には、後述するサイズ測定用の作業領域(測定用画像メモリ)30が設けられている。   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 10 described later, and the data storage area stores FIG. 6 described later. (Reference target table) is 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. The work memory 3 is provided with a size measurement work area (image memory for measurement) 30 described later.

一方、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 keys such as a shutter button, a mode button for switching to a shooting mode / playback mode, and a size measurement button for instructing start of size measurement, and an 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 (the direction of the lens) and the zoom mechanism, controls driving during autofocus, shutter drive control, shutter speed, exposure, white balance, etc., and captures captured images. Then, when the size measurement button is operated in the shooting mode, the size measurement function is activated to measure and display the actual size of the subject included in the monitor image.

図2および図3は、上述したサイズ測定用の作業領域(測定用画像メモリ)30を説明するための図であり、図2は、測定用画像メモリ30の構成を示している。
この測定用画像メモリ30は、カメラ画角に相当する視野内のモニタ画像がイメージ展開される実撮影領域31と、この視野の下端部(言い換えれば、モニタ画像の下端部)からカメラ位置(レンズ位置)までの距離幅に略比例する大きさを持つ非撮影領域32を有する構成で、この実撮影領域31の下側に非撮影領域32を付加することによって当該視野を仮想的にカメラ位置まで拡大したものである。
2 and 3 are diagrams for explaining the above-described size measurement work area (measurement image memory) 30. FIG. 2 shows the configuration of the measurement image memory 30. As shown in FIG.
The measurement image memory 30 includes an actual shooting area 31 where a monitor image in a field of view corresponding to a camera angle of view is developed, and a camera position (lens) from the lower end of the field of view (in other words, the lower end of the monitor image). The non-photographing area 32 having a size approximately proportional to the distance width to the position) is added, and the non-photographing area 32 is added below the actual photographing area 31 so that the field of view is virtually reached to the camera position. It is an enlarged one.

図3は、測定用画像メモリ30の説明用として、カメラを被写体に向けた状態を示した図である。ここで、カメラ画角に相当する視野BWに対し、この視野外(図中、破線部分:撮影対象外)において、視野BWの下端部からカメラ位置までの撮影対象外のエリアBXは、カメラ本体の高さや撮影角度(水平方向に対する上下方向の角度)等に応じて変動するが、カメラ本体の高さや撮影角度が固定されている状態では、視野BWの下端部からカメラ位置までの距離、つまり、エリアBXの幅は一定となる。なお、この実施例においては、カメラ本体の高さや撮影角度などを変えず、それらを固定した状態で撮影する場合を例示している。このエリアBXの長さに略比例する大きさを持った非撮影領域32が実撮影領域31の下側に付加されると、カメラ位置に相当する非撮影領域32内の位置が測定基点BPとして設定される。つまり、実撮影領域31の下端部(モニタ画像の下端部)から非撮影領域32の幅を隔てた位置が測定基点BPとして設定される。ここで、CPU1は、測定用画像メモリ30上において測定基点BPから実撮影領域31内の被写体(樹木)Aまでの仮想距離S1を計測する。なお、以下、被写体Aをサイズ測定の対象となる測定対象と呼称する。   FIG. 3 is a diagram illustrating a state in which the camera is directed toward the subject for the purpose of explaining the measurement image memory 30. Here, with respect to the field of view BW corresponding to the camera angle of view, outside this field of view (broken line portion in the figure: outside the object to be photographed), the area BX outside the object to be photographed from the lower end of the field of view BW to the camera position is the camera body. The distance from the lower end of the field of view BW to the camera position in a state where the height and shooting angle of the camera body are fixed, that is, The width of the area BX is constant. In this embodiment, the case where the camera body is photographed in a fixed state without changing the height or photographing angle of the camera body is illustrated. When the non-photographing area 32 having a size approximately proportional to the length of the area BX is added below the actual photographing area 31, the position in the non-photographing area 32 corresponding to the camera position is used as the measurement base point BP. Is set. That is, a position that is separated from the lower end portion of the actual photographing region 31 (the lower end portion of the monitor image) by the width of the non-photographing region 32 is set as the measurement base point BP. Here, the CPU 1 measures a virtual distance S <b> 1 from the measurement base point BP to the subject (tree) A in the actual photographing region 31 on the measurement image memory 30. Hereinafter, the subject A is referred to as a measurement target that is a size measurement target.

図4は、測定用画像メモリ30上においてサイズ測定の基準となる被写体(基準対象)と測定基点から基準対象までの仮想距離を示した図である。
ここで、測定対象Aとは別個に撮影された他の被写体B(交通標識)を測定対象Aと比較される基準対象Bとすると、上述と同様、CPU1は、測定用画像メモリ30上において測定基点BPから実撮影領域31内の基準対象(交通標識)Bまでの仮想距離S0を計測する。そして、CPU1は、この測定対象A、基準対象Bの仮想距離S1、S0に基づいてそれらの距離比を算出取得し、この距離比を加味して測定対象の実サイズを算出する処理を行う。なお、基準対象Bを撮影する際には、測定対象Aを撮影した時のカメラの高さや撮影角度を固定したのまま状態において、モニタ画面上の「縦中心線」に合わせて撮影するようにしている。
FIG. 4 is a diagram showing an object (reference object) serving as a reference for size measurement on the measurement image memory 30 and a virtual distance from the measurement base point to the reference object.
Here, when another subject B (traffic sign) photographed separately from the measurement target A is a reference target B to be compared with the measurement target A, the CPU 1 performs measurement on the measurement image memory 30 as described above. A virtual distance S0 from the base point BP to the reference object (traffic sign) B in the actual photographing region 31 is measured. Then, the CPU 1 calculates and acquires the distance ratio based on the virtual distances S1 and S0 of the measurement target A and the reference target B, and performs processing for calculating the actual size of the measurement target in consideration of the distance ratio. When the reference object B is photographed, the camera is photographed in accordance with the “vertical center line” on the monitor screen while the camera height and the photographing angle when the measurement object A is photographed are fixed. ing.

図5は、遠近の関係にある測定対象、基準対象を別個に撮影した場合において、カメラ位置から実際の測定対象A、基準対象Bまでの距離関係と各モニタ画像の関係を示した図である。ここで、カメラ位置から実際の測定対象A、基準対象Bまでの実距離L1、L0は、上述した仮想距離S1、S0に略比例しているため、CPU1は、これらの距離比を加味して測定対象の実サイズを算出する処理を行う。この場合、CPU1は、測定対象Aを撮影したモニタ画像を解析することによって測定対象Aの画像サイズを算出すると共に、基準対象Bを撮影した他のモニタ画像を解析することによって基準対象Bの画像サイズを算出し、更に、基準対象Bの実際の大きさを示す実サイズを取得した後に、測定対象A、基準対象Bの画像サイズと仮想距離の距離比と基準対象の実サイズに基づいて測定対象Aの実サイズを算出するようにしている。   FIG. 5 is a diagram illustrating the relationship between the distance from the camera position to the actual measurement object A and the reference object B and the relationship between the monitor images when the measurement object and the reference object having a perspective relationship are separately photographed. . Here, since the actual distances L1 and L0 from the camera position to the actual measurement object A and the reference object B are substantially proportional to the virtual distances S1 and S0 described above, the CPU 1 takes these distance ratios into account. A process for calculating the actual size of the measurement object is performed. In this case, the CPU 1 calculates the image size of the measurement object A by analyzing the monitor image obtained by photographing the measurement object A, and analyzes the other monitor image obtained by photographing the reference object B. After calculating the size and obtaining the actual size indicating the actual size of the reference object B, measurement is performed based on the distance ratio between the image size of the measurement object A and the reference object B and the virtual distance and the actual size of the reference object. The actual size of the target A is calculated.

図6は、基準対象テーブル11の内容を示した図である。
この基準対象テーブル11は、予め任意に登録された基準対象毎に、その「画像データ」、「基準対象名」、「実サイズデータ」を記憶管理する構成となっている。「画像データ」は、上述したようにサイズ測定時において測定対象と比較される基準対象の画像であり、実際のサイズが分かっている被写体を予め任意に撮影登録したもので、例えば、特定人物、道路標識、郵便ポスト、消火栓、建物やその窓枠などの撮影画像である。「基準対象名」は、基準対象の一般的な名称である。この場合、CPU1は、撮影画像を解析することによってその中に含まれている基準対象を自動特定するようにしているが、その際に、基準対象テーブル11に登録されている複数種の基準対象の何れかに特徴的に一致する被写体の画像部分を基準対象として特定するようにしている。
FIG. 6 is a diagram showing the contents of the reference target table 11.
The reference object table 11 is configured to store and manage “image data”, “reference object name”, and “actual size data” for each reference object arbitrarily registered in advance. As described above, “image data” is an image of a reference object to be compared with a measurement object at the time of size measurement, and is obtained by arbitrarily photographing and registering a subject whose actual size is known. It is a photographed image of a road sign, a post box, a fire hydrant, a building and its window frame. The “reference object name” is a general name of the reference object. In this case, the CPU 1 automatically identifies the reference object included in the captured image by analyzing the captured image. At that time, a plurality of types of reference objects registered in the reference object table 11 are used. An image portion of a subject that characteristically matches any of the above is specified as a reference target.

「実サイズデータ」は、その「縦寸法」、「横寸法」、奥行き寸法」に対応する方向別の実サイズに分けられており、CPU1は、この方向別の実サイズの中から予め任意に選択指定されている方向の実サイズを読み出すようにしている。つまり、「縦寸法」、「横寸法」、奥行き寸法」のうち、どの方向の実サイズを読み出すかは、予め任意に選択指定可能となっており、CPU1は、この指定内容を参照することによって該当する方向の実サイズを読み出すようにしている。なお、基準対象の種類によっては、その「縦寸法」、「横寸法」、奥行き寸法」の何れか1つを登録するようにしてもよい。   The “actual size data” is divided into actual sizes for each direction corresponding to the “vertical dimension”, “horizontal dimension”, and depth dimension ”, and the CPU 1 arbitrarily selects from the actual sizes for each direction in advance. The actual size in the selected direction is read out. In other words, the direction in which the actual size is read out among “vertical dimension”, “horizontal dimension”, and depth dimension ”can be arbitrarily selected and designated in advance, and the CPU 1 refers to this designation content. The actual size in the corresponding direction is read out. Depending on the type of the reference object, any one of “vertical dimension”, “horizontal dimension”, and depth dimension ”may be registered.

次に、この実施例におけるデジタルカメラの動作概念を図7〜図10に示すフローチャートを参照して説明する。ここで、これらのフローチャートに記述されている各機能は、読み取り可能なプログラムコードの形態で格納されており、このプログラムコードにしたがった動作が逐次実行される。また、伝送媒体を介して伝送されてきた上述のプログラムコードに従った動作を逐次実行することもできる。すなわち、記録媒体の他に、伝送媒体を介して外部供給されたプログラム/データを利用してこの実施例特有の動作を実行することもできる。   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 size measurement button is operated in the photographing mode (step A10), the process proceeds to a size measurement process for measuring the actual size of the measurement target included in the monitor image (step A11).

図8〜図10は、撮影モード時にサイズ測定ボタンの操作に応じて実行されるサイズ測定処理を詳述したフローチャートである。
先ず、CPU1は、サイズ測定ボタンの操作に応じて測定対象撮影モードに切り換え、測定対象の撮影に関する注意事項(測定対象を中心に写してシャッター操作を行う旨のメッセージ)を表示する測定開始画面(図11参照)を表示させた後(ステップB1)、モニタ画像を取得してモニタ表示させる(ステップB2、B3)。この状態において、シャッターボタンの有無をチェックし(ステップB4)、シャッター操作がなければ、ステップB2に戻るが、シャッター操作された際には、現在のモニタ画像を固定表示すると共に(ステップB5)、この固定モニタ画像内でその中心部分に位置している被写体画像を測定対象として特定する(ステップB6)。そして、この測定対象を囲む枠を生成して合成表示すると共に、確認メッセージを表示した後(ステップB7)、操作待ち状態となる(ステップB8)。
FIGS. 8 to 10 are flowcharts detailing the size measurement process executed in response to the operation of the size measurement button in the shooting mode.
First, the CPU 1 switches to the measurement object shooting mode in accordance with the operation of the size measurement button, and displays a measurement start screen (a message to the effect that the shutter operation is performed with the measurement object as the center) (displaying a message about the measurement object). 11 is displayed (step B1), a monitor image is acquired and displayed on the monitor (steps B2 and B3). In this state, the presence or absence of the shutter button is checked (step B4), 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 B5), The subject image located at the center of the fixed monitor image is specified as the measurement target (step B6). Then, a frame surrounding the measurement target is generated and combined and displayed, and after a confirmation message is displayed (step B7), an operation waiting state is entered (step B8).

図12(A)は、固定モニタ画面内に表示された確認メッセージを示した図で、この確認メッセージは、自動特定した被写体の適否を撮影者に問い合わせ、その適否(OK/NG)に応じてファンクションキーF1/F2の操作を促すもので、OKであれば、F1キー、NGであれば、F2キーを操作する。ここで、ステップB9は、操作キーを判別し、F2キーが操作された場合にはステップB2に戻る。
図12(B)は、撮影方向などを変えて目的とする他の被写体がモニタ画像の中心部に来るように調整した後に、シャッター操作を行った場合の確認メッセージを示している。
FIG. 12A is a diagram showing a confirmation message displayed on the fixed monitor screen. This confirmation message inquires the photographer about the suitability of the automatically specified subject, and according to the suitability (OK / NG). The function keys F1 / F2 are urged to be operated. If OK, the F1 key is operated. If NG, the F2 key is operated. Here, step B9 discriminates the operation key, and if the F2 key is operated, the process returns to step B2.
FIG. 12B shows a confirmation message when the shutter operation is performed after adjusting the shooting direction or the like so that another target subject comes to the center of the monitor image.

ここで、F1キーが操作された場合には、固定モニタ画像を読み出して測定用画像メモリ30の実撮影領域31に転送する(ステップB10)。そして、この実撮影領域31上において測定対象の画像サイズ(測定対象枠サイズ)G1を算出する(ステップB11)。なお、この画像サイズ「G1」は、CCD等のイメージセンサ上のサイズであり、その有効領域全体の横/縦の寸法と、その全体の横/縦ドットサイズに基づいて縦方向における1ドット当たりの寸法(縦ピッチ)/横方向における1ドット当たり寸法(横ピッチ)を求め、このドットピッチに基づいてサイズ情報に換算された値である(以下、同様)。そして、測定用画像メモリ30上において測定基点BPから実撮影領域31内の測定対象までの仮想距離S1を算出計測する(ステップB12)。その後、測定用画像メモリ30内の固定モニタ画像、画像サイズ(測定対象枠サイズ)G1、仮想距離S1をワークメモリ3の待避メモリ(図示せず)に転送しておく(ステップB13)。   Here, when the F1 key is operated, the fixed monitor image is read out and transferred to the actual photographing region 31 of the measurement image memory 30 (step B10). Then, a measurement target image size (measurement target frame size) G1 is calculated on the actual photographing region 31 (step B11). 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). Then, the virtual distance S1 from the measurement base point BP to the measurement target in the actual photographing region 31 is calculated and measured on the measurement image memory 30 (step B12). Thereafter, the fixed monitor image, image size (measurement target frame size) G1, and virtual distance S1 in the measurement image memory 30 are transferred to a save memory (not shown) of the work memory 3 (step B13).

次に、基準対象は撮影済みか否かを調べ(ステップB14)、その撮影が行われていない未撮影の状態であれば、上述の測定対象撮影モードから基準対象撮影モードに切り換えるために、図9のステップB15に移り、基準対象撮影ガイド画面を表示する。
図13は、基準対象撮影ガイド画面を示した図で、基準対象の撮影に関する注意事項と共に基準対象のサンプル表示が可能である旨のメッセージが表示される。ここで、撮影に関する注意事項としては、基準対象をモニタ画面上の縦中心線に合わせてシャッター操作を行う旨のメッセージと、測定対象を撮影した時の上下方向の角度および高さを変えずに撮影すべき旨のメッセージが表示され、基準対象のサンプル表示を希望する際にはF1キーを操作すべき旨のメッセージが表示される。
Next, it is checked whether or not the reference object has been photographed (step B14). If the photographing has not been performed yet, the reference object photographing mode is switched from the above-described measurement object photographing mode to the reference object photographing mode. Then, the process proceeds to Step B15 in Step 9, and the reference target photographing guide screen is displayed.
FIG. 13 is a diagram showing a reference target shooting guide screen, and displays a message indicating that a reference target sample can be displayed together with notes regarding shooting of the reference target. Here, as precautions for shooting, the message that the reference target is set to the vertical center line on the monitor screen and the shutter operation is performed, and the angle and height in the vertical direction when the measurement target is shot are not changed. A message to the effect that the photograph should be taken is displayed, and a message to the effect that the F1 key should be operated is displayed when it is desired to display the reference target sample.

次に、モニタ画像を取得した後(ステップB16)、図14に示すように、モニタ画面上に縦中心線を付加表示させる(ステップB17)。この状態において、シャッター操作(ステップB18)、F1キー操作の有無をチェックし(ステップB19)、F1キーが操作された場合には、基準対象のサンプル表示を行う(ステップB20)。すなわち、基準対象テーブル11をアクセスして各基準対象毎に、その「画像データ」および「基準対象名」を読み出してサンプル一覧表示(サムネイル表示)する。ここで、撮影者は、このサンプル一覧表示の内容を確認した後に、所望するサンプルを含むように撮影をやり直す。その後、ステップB16に戻ってモニタ画像の再取得を行う。   Next, after acquiring the monitor image (step B16), as shown in FIG. 14, the vertical center line is additionally displayed on the monitor screen (step B17). In this state, the shutter operation (step B18) and the presence / absence of the F1 key operation are checked (step B19). If the F1 key is operated, the reference target sample is displayed (step B20). That is, the reference object table 11 is accessed to read out the “image data” and “reference object name” for each reference object and display a sample list (thumbnail display). Here, after confirming the contents of the sample list display, the photographer performs the photographing again so as to include a desired sample. Thereafter, the process returns to step B16 to reacquire the monitor image.

いま、シャッター操作が行われた場合には(ステップB18)、現在のモニタ画像を固定表示すると共に(ステップB21)、この固定モニタ画像内で縦中心線上に位置している被写体を基準対象として特定し、この基準対象を囲む枠を生成して合成表示する(ステップB22)。そして、固定モニタ画像を読み出して測定用画像メモリ30の実撮影領域31に転送した後(ステップB23)、この測定用画像メモリ30から基準対象枠内の画像部分を抽出し、この抽出画像に基づいて基準対象テーブル11を検索し(ステップB24)、基準対象テーブル11に登録されている各基準対象と抽出画像とを順次比較しながら特徴的に一致する画像の有無を調べる(ステップB25)。この結果、抽出画像が何れの基準対象にも該当しない場合には(ステップB25でNO)、再撮影ガイドの表示を行う(ステップB26)。
図15は、この再撮影ガイド画面を示した図で、該当無しのメッセージと共に、サンプル表示を確認すべき旨のメッセージが表示される。その後、ステップB15に戻って基準対象撮影ガイド画面が再表示される。
If the shutter operation is performed (step B18), the current monitor image is fixedly displayed (step B21), and the subject located on the vertical center line in the fixed monitor image is specified as the reference target. Then, a frame surrounding the reference object is generated and combined and displayed (step B22). Then, after reading out the fixed monitor image and transferring it to the actual photographing area 31 of the measurement image memory 30 (step B23), the image portion in the reference target frame is extracted from the measurement image memory 30, and based on the extracted image. The reference object table 11 is searched (step B24), and each reference object registered in the reference object table 11 and the extracted image are sequentially compared to check for the presence or absence of characteristically matching images (step B25). As a result, if the extracted image does not correspond to any reference target (NO in step B25), a re-shooting guide is displayed (step B26).
FIG. 15 is a diagram showing the re-shooting guide screen, in which a message indicating that the sample display should be confirmed is displayed together with a message indicating no match. Thereafter, the process returns to step B15 to redisplay the reference target photographing guide screen.

一方、抽出画像が何れの基準対象に該当する場合には(ステップB25でYES)、該当する基準対象は1つかを調べ(ステップB27)、1つであれば、ステップB30に移るが、複数の該当が有る場合には、候補選択ガイドの表示を行う(ステップB28)。
図16は、この候補選択ガイド画面を示した図で、該当した複数の基準対象画像が選択候補として一覧表示される。この一覧表示の中から任意の候補がF1キー等によって選択指定されると(ステップB29)、次のステップB30に移る。このステップB30は、選択された基準対象に基づいて基準対象テーブル11を検索することによってその実サイズJ0を読み出し取得する。
On the other hand, if the extracted image corresponds to any reference object (YES in step B25), one corresponding reference object is checked (step B27), and if there is one, the process proceeds to step B30. If there is a match, a candidate selection guide is displayed (step B28).
FIG. 16 is a diagram showing the candidate selection guide screen, in which a plurality of corresponding reference target images are displayed as selection candidates. When an arbitrary candidate is selected and designated from the list display using the F1 key or the like (step B29), the process proceeds to the next step B30. This step B30 reads and acquires the actual size J0 by searching the reference object table 11 based on the selected reference object.

次に、図10のステップB31に移り、測定用画像メモリ30の実撮影領域31上において、基準対象の画像サイズ(基準対象枠サイズ)G0を算出する。そして、測定用画像メモリ30上において、測定基点BPから実撮影領域31内の基準対象までの仮想距離S0を算出計測する(ステップB32)。これによって基準対象の実サイズJ0および枠サイズG0と、測定対象の枠サイズG1が全て揃った段階で、これらの値をパラメータとして測定対象の実サイズを求める算出処理を行う(ステップB33)。すなわち、上述のワークメモリ3の待避メモリから測定対象の画像サイズ(測定対象枠サイズ)G1およびその仮想距離S1を読み出し、基準対象および測定対象の枠サイズG0、G1と仮想距離S0、S1と基準対象の実サイズJ0に基づいて測定対象の実サイズJ0を次の式に従って算出する。
測定対象の実サイズJ1=G1/G0*J0*S1/S0
Next, the process proceeds to step B31 in FIG. 10, and the reference target image size (reference target frame size) G0 is calculated on the actual photographing region 31 of the measurement image memory 30. Then, on the measurement image memory 30, a virtual distance S0 from the measurement base point BP to the reference object in the actual photographing region 31 is calculated and measured (step B32). As a result, when all of the reference target actual size J0 and the frame size G0 and the measurement target frame size G1 have been prepared, a calculation process is performed to obtain the actual measurement target size using these values as parameters (step B33). That is, the measurement target image size (measurement target frame size) G1 and its virtual distance S1 are read from the save memory of the work memory 3, and the reference target and measurement target frame sizes G0 and G1, the virtual distances S0 and S1, and the reference Based on the actual size J0 of the target, the actual size J0 of the measurement target is calculated according to the following equation.
Actual size J1 = G1 / G0 * J0 * S1 / S0

このように算出された測定対象の実サイズは、仮想距離の比率、対象枠サイズの比率、基準対象の実サイズをそれぞれ乗算した値となるが、その算出値はおおよそのサイズとなる。次に、ワークメモリ3の待避メモリから測定対象のモニタ画像を読み出してモニタ画像メモリ(図示せず)にセットすることによって当該測定対象のモニタ画像を再表示させる(ステップB34)。この状態において、このモニタ画像の測定対象枠の近傍に、測定対象の実サイズを合成表示させると共に、メッセージデータを合成表示させる(ステップB35)。   The actual size of the measurement target calculated in this way is a value obtained by multiplying the ratio of the virtual distance, the ratio of the target frame size, and the actual size of the reference target, but the calculated value is an approximate size. Next, the monitor image to be measured is read from the save memory of the work memory 3 and set in the monitor image memory (not shown) to redisplay the monitor image to be measured (step B34). In this state, the actual size of the measurement target is synthesized and displayed in the vicinity of the measurement target frame of the monitor image, and the message data is synthesized and displayed (step B35).

図17は、この場合のモニタ画面を例示したもので、測定対象の実サイズとして、自動算出された横寸法、縦寸法が表示された場合を示している。なお、このモニタ画面には、図示のように、サイズ測定の完了を示すメッセージと共に、その後の操作を案内するメッセージが表示される。なお、F1キーは、他の測定対象に対してその実サイズ測定を引き続いて続行する場合に操作され、F0キーは、サイズ測定を終了させる場合に操作されるキーとなる。ここで、操作待ち状態において(ステップB36)、F0キーが操作された場合には(ステップB37)、このフローから抜けて通常状態に戻るが、F1キーが操作された場合には(ステップB37でNO)、図8の最初のステップB1に戻って測定開始画面に切り換え、以下、上述の動作が繰り返される。この場合、基準対象は撮影済みとなっているため(ステップB14でYES)、図10のステップB33に移り、前回撮影した基準対象を使用して新たな測定対象に対する実サイズ算出が行われる。言い換えれば、基準対象を1度撮影した後は、基準対象の撮影は不要となり、新たな測定対象を撮影する毎に、同一の基準対象を使用して各測定対象の実サイズを何回でも測定することができる。   FIG. 17 exemplifies the monitor screen in this case, and shows a case where the automatically calculated horizontal dimension and vertical dimension are displayed as the actual size of the measurement target. As shown in the figure, a message indicating the completion of the size measurement and a message for guiding the subsequent operation are displayed on the monitor screen. The F1 key is operated when the actual size measurement is continued for another measurement object, and the F0 key is operated when the size measurement is ended. Here, in the operation waiting state (step B36), when the F0 key is operated (step B37), the process exits this flow and returns to the normal state, but when the F1 key is operated (in step B37). NO), the process returns to the first step B1 in FIG. 8 to switch to the measurement start screen, and then the above-described operation is repeated. In this case, since the reference object has already been photographed (YES in step B14), the process proceeds to step B33 in FIG. 10, and the actual size calculation for the new measurement object is performed using the reference object photographed last time. In other words, once the reference object is photographed, it is not necessary to photograph the reference object, and each time a new measurement object is photographed, the actual size of each measurement object is measured any number of times using the same reference object. can do.

以上のように、この実施例においては、カメラ撮影部7によって撮影されたモニタ画像内で測定対象、基準対象が特定されている状態において、CPU1は、この測定対象と基準対象との距離比と基準対象の実サイズを取得した後に、撮影画像を解析することによって測定対象、基準対象毎にその画像サイズを算出すると共に、この各算出サイズと距離比と基準対象の実サイズに基づいて測定対象の実サイズを算出するようにしたから、測定対象と基準対象との前後関係(遠近関係)を考慮しながらモニタ画像を解析することによって測定対象の実サイズを測定することができると共に、基準対象を1度撮影した後は、基準対象の撮影は不要となり、新たな測定対象を撮影する毎に、同一の基準対象を使用して各測定対象の実サイズを何回でも算出することができる。なお、モニタ画像内において複数の測定対象が特定された場合には、各測定対象毎にその実サイズを測定することができる。   As described above, in this embodiment, in the state where the measurement object and the reference object are specified in the monitor image captured by the camera photographing unit 7, the CPU 1 determines the distance ratio between the measurement object and the reference object. After acquiring the actual size of the reference object, calculate the image size for each measurement object and reference object by analyzing the captured image, and measure the measurement object based on the calculated size, distance ratio, and the actual size of the reference object. Since the actual size of the measurement object is calculated, the actual size of the measurement object can be measured by analyzing the monitor image while taking into account the front-to-back relationship (perspective relation) between the measurement object and the reference object. Once the image is taken, it is no longer necessary to shoot the reference object, and each time a new measurement object is photographed, the actual size of each measurement object can be measured with the same reference object. It can be calculated. In addition, when a plurality of measurement objects are specified in the monitor image, the actual size can be measured for each measurement object.

この場合、測定対象撮影モード、基準対象撮影モード毎に別個に撮影された各モニタ画像を解析することによって測定対象、基準対象を特定した後に、この基準対象の実サイズを取得すると共に、測定対象、基準対象毎にその画像サイズを算出し、この各算出サイズと基準対象の実サイズに基づいて当該測定対象の実サイズを算出するようにしたから、測定対象と基準対象とを個別に撮影したとしても、この基準対象の実サイズに基づいて測定対象の実サイズを測定することができる。   In this case, after identifying the measurement object and the reference object by analyzing each monitor image separately photographed for each measurement object imaging mode and the reference object imaging mode, the actual size of the reference object is acquired and the measurement object Since the image size is calculated for each reference object, and the actual size of the measurement object is calculated based on each calculated size and the actual size of the reference object, the measurement object and the reference object are photographed separately. However, the actual size of the measurement object can be measured based on the actual size of the reference object.

また、CPU1は、モニタ画像を解析することによってその中心部分に位置している画像部分を測定対象として特定するようにしたから、画像解析によって測定対象の自動特定が可能となり、特別な操作が不要となると共に、測定対象を確実に特定することが可能となる。また、測定対象撮影モード時においてはモニタ画像内の中心部分に含まれている画像部分を測定対象として特定する他、基準対象撮影モード時においてはモニタ画像内の縦中心線上の被写体を基準対象として特定するようにしたから、個別撮影された各モニタ画像を解析によって測定対象、基準対象の自動特定が可能となり、特別な操作が不要となると共に、測定対象、基準対象を確実に特定することが可能となる。   Further, since the CPU 1 analyzes the monitor image and identifies the image portion located in the center portion as the measurement target, the measurement target can be automatically specified by the image analysis, and no special operation is required. In addition, it is possible to reliably specify the measurement target. In the measurement target shooting mode, the image portion included in the central portion of the monitor image is specified as the measurement target. In the reference target shooting mode, the subject on the vertical center line in the monitor image is set as the reference target. Since each monitor image taken individually is analyzed, the measurement target and reference target can be automatically specified by analyzing each monitor image, and no special operation is required, and the measurement target and reference target can be specified reliably. It becomes possible.

モニタ画像内に含まれている各被写体のうち、基準対象テーブル11に記憶管理されている複数種の基準対象の何れかに特徴的に一致する被写体を基準対象として検索特定するようにしたから、画像解析によって基準対象の自動特定が可能となると共に、基準対象を確実に特定することが可能となる。この場合、複数の基準対象が検索された際には、これを選択候補として一覧表示し、この候補表示の中から任意に選択された候補を基準対象として特定するようにしたから、基準対象を容易に特定することができる。また、該当する基準対象が検索されなかった場合には、基準対象を含むように再撮影すべきことを促すガイダンスを表示するようにしたから、基準対象を確実に特定することができる。更に、基準対象テーブル11には各基準対象に対応してその実サイズが記憶管理されているので、基準対象に対応する実サイズを読み出すことができ、基準対象の実サイズの自動取得が可能となり、特別な操作が不要となる。   Since each subject included in the monitor image is searched for and specified as a reference target, a subject that is characteristically matched with any of a plurality of types of reference targets stored and managed in the reference target table 11, Image analysis enables automatic identification of a reference object, and can also reliably identify a reference object. In this case, when a plurality of reference objects are searched, they are displayed in a list as selection candidates, and candidates arbitrarily selected from the candidate display are specified as reference objects. Can be easily identified. In addition, when a corresponding reference object is not searched, guidance for prompting re-photographing to include the reference object is displayed, so that the reference object can be reliably identified. Furthermore, since the actual size corresponding to each reference object is stored and managed in the reference object table 11, the actual size corresponding to the reference object can be read, and the actual size of the reference object can be automatically acquired. No special operation is required.

測定対象撮影モード時には、測定用画像メモリ30上において測定基点BPから実撮影領域31内の測定対象までの仮想距離を算出計測し、基準対象撮影モード時には、測定基点BPから実撮影領域31内の基準対象までの仮想距離を算出計測し、それらの距離比を求めるようにしたから、測定対象と基準対象とを個別に撮影した場合でも、距離センサ等を使用しなくても、モニタ画像を解析することによって測定対象と基準対象との距離比を得ることができる。   In the measurement target shooting mode, the virtual distance from the measurement base point BP to the measurement target in the actual shooting area 31 is calculated and measured on the measurement image memory 30. In the reference target shooting mode, the virtual distance from the measurement base point BP is calculated in the actual shooting area 31. Since the virtual distance to the reference object is calculated and measured, and the distance ratio between them is calculated, the monitor image can be analyzed even if the measurement object and the reference object are photographed separately or without using a distance sensor or the like. By doing so, the distance ratio between the measurement object and the reference object can be obtained.

基準対象の実サイズおよび画像サイズを取得した後に、測定対象が撮影される毎に、測定対象の実サイズを算出するようにしたから、1つの基準対象を元に複数の測定対象の実サイズを測定することができる。また、測定対象の実サイズが算出された際に、この測定対象が含まれているモニタ画像内に当測定対象に対応付けてその実サイズを表示するようにしたから、モニタ画像内でサイズ確認を行いながらその測定対象を見ることができると共に、測定対象とその実サイズとの対応関係が明瞭となる。   After acquiring the actual size and image size of the reference object, every time the measurement object is photographed, the actual size of the measurement object is calculated. Therefore, the actual sizes of a plurality of measurement objects are calculated based on one reference object. Can be measured. In addition, when the actual size of the measurement target is calculated, the actual size is displayed in association with the measurement target in the monitor image including the measurement target. The measurement object can be seen while performing, and the correspondence between the measurement object and its actual size becomes clear.

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

上述した実施例においては、カメラの撮影角度(水平方向に対する上下角度)を固定した状態で撮影する場合を例示したが、撮影時に水平方向に対する上下角度を計測する角度センサを設け、図3で示した測定用画像メモリ30上の測定基点BPを角度センサによって計測された上下角度に応じて変更するようにしてもよい。すなわち、視野BWの下端部からカメラ位置までの撮影対象外のエリアBXは、上下角度に応じて変動するが、このエリアBXの長さに略比例する大きさを持った非撮影領域32を実撮影領域31の下側に付加することによって測定基点BPの位置を変更するようにしてもよい。
また、上述した実施例においては、測定対象と基準対象とが同一平面上にある場合を想定したが、測定対象と基準対象との高さが異なる場合であっても、測定対象の実サイズを測定することができる。この場合、上述した実施例においては、モニタ画像内において測定対象および基準対象の大きさを特定するようにしたから、測定対象と基準対象との高さが異なっていても測定対象の実サイズを測定することが可能となる。
In the above-described embodiment, the case where shooting is performed with the camera shooting angle (vertical angle with respect to the horizontal direction) fixed is illustrated, but an angle sensor that measures the vertical angle with respect to the horizontal direction during shooting is provided and shown in FIG. The measurement base point BP on the measurement image memory 30 may be changed according to the vertical angle measured by the angle sensor. That is, the non-photographing area BX from the lower end of the visual field BW to the camera position varies depending on the vertical angle, but the non-photographing area 32 having a size approximately proportional to the length of the area BX is realized. The position of the measurement base point BP may be changed by adding to the lower side of the imaging region 31.
In the above-described embodiment, it is assumed that the measurement target and the reference target are on the same plane. However, even if the measurement target and the reference target are different in height, the actual size of the measurement target is set. Can be measured. In this case, in the above-described embodiment, the sizes of the measurement object and the reference object are specified in the monitor image. Therefore, even if the heights of the measurement object and the reference object are different, the actual size of the measurement object is set. It becomes possible to measure.

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

上述した実施例においては、基準対象テーブル11に複数種の基準対象の画像データを任意に登録するようにしたが、例えば、道路標識、郵便ポスト、消火栓などのように、そのサイズが固定しているものにあっては、それを撮影した撮影画像自体を登録せず、この比較基準の特徴的な情報(例えば、郵便ポストであれば、立方体、縦横比、全体が赤色)を登録するようにしてもよい。また、基準対象テーブル11の内容は、製品購入時に設定登録されているものであってもよく、必要に応じてユーザが任意の基準対象とその実サイズを追加登録するようにしてもよい。   In the embodiment described above, image data of a plurality of types of reference objects are arbitrarily registered in the reference object table 11, but the size is fixed, for example, a road sign, a post box, a fire hydrant or the like. If it is, the characteristic image of this comparison standard (for example, if it is a postbox, the cube, the aspect ratio, the whole is red) should be registered. May be. The contents of the reference object table 11 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 images at the company, the actual size of each part is measured and displayed based on each captured image Also good.
In addition, the size measuring device is not limited to a stand-alone type, but each component is physically separated into two or more cases, and wired transmission paths such as communication lines and cables, or wireless transmission such as radio waves, microwaves, and infrared rays. It may be a distributed system that transmits and receives data via a path.

一方、コンピュータに対して、上述した各手段を実行させるためのプログラムコードをそれぞれ記録した記録媒体(例えば、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 reference object to be compared with a measurement object in addition to designating a subject in a captured image as a measurement object to be subjected to size measurement In addition to obtaining the distance ratio between the specified measurement object and the reference object, the function of obtaining the actual size of the reference object and the image size for each measurement object and reference object are calculated by analyzing the captured image. In addition, a computer-readable recording medium having recorded thereon a program for realizing the function of calculating the actual size of the measurement target based on each calculated size, the distance ratio, and the actual size of the reference target is provided. May be.

また、コンピュータが読み取り可能なプログラムコードを有する記録媒体であって、撮影画像内でサイズ測定の対象となる測定対象を指定する他、この撮影画像とは異なる他の撮影画像内において前記測定対象と比較される基準対象を指定する機能と、前記基準対象の実際の大きさを示す実サイズを取得する機能と、撮影画像を解析することによって測定対象、基準対象毎にその画像サイズを算出すると共に、この各算出サイズと基準対象の実サイズに基づいて当該測定対象の実サイズを算出する機能とを実現させるためのプログラムを記録したコンピュータが読み取り可能な記録媒体を提供するようにしてもよい。   In addition, the computer-readable recording medium having a program code that specifies a measurement target to be a size measurement in the captured image, and the measurement target in another captured image different from the captured image. A function for specifying a reference object to be compared, a function for obtaining an actual size indicating the actual size of the reference object, and calculating an image size for each measurement object and reference object by analyzing a captured image A computer-readable recording medium that records a program for realizing the function of calculating the actual size of the measurement target based on each calculated size and the actual size of the reference target may be provided.

デジタルカメラの基本的構成要素を示したブロック図。The block diagram which showed the basic component of the digital camera. サイズ測定用の作業領域(測定用画像メモリ)30を説明するための図。The figure for demonstrating the work area (image memory for a measurement) 30 for size measurement. 測定用画像メモリ30の説明用として、カメラを被写体に向けた状態を示した図。The figure which showed the state which orient | assigned the camera to the to-be-photographed object for description of the image memory 30 for a measurement. 測定用画像メモリ30上においてサイズ測定の基準となる被写体(基準対象)と測定基点から基準対象までの仮想距離を示した図。FIG. 5 is a diagram showing a subject (reference object) serving as a size measurement reference on the measurement image memory 30 and a virtual distance from the measurement base point to the reference object. 遠近の関係にある測定対象、基準対象を別個に撮影した場合に、カメラ位置から実際の測定対象、基準対象までの距離関係と各モニタ画像の関係を示した図。The figure which showed the relationship between the distance relationship from a camera position to an actual measurement object and a reference object, and each monitor image, when the measurement object and the reference object which are in a perspective relationship are photographed separately. 基準対象テーブル11の内容を示した図。The figure which showed the content of the reference | standard object table 11. FIG. 電源投入に応じて実行開始されるデジタルカメラの全体動作の概要を示したフローチャート。The flowchart which showed the outline | summary of the whole operation | movement of the digital camera started execution according to power activation. 撮影モード時にサイズ測定ボタンの操作に応じて実行されるサイズ測定処理を詳述したフローチャート。The flowchart which detailed the size measurement process performed according to operation of a size measurement button at the time of imaging | photography mode. 図8に続く、サイズ測定処理のフローチャート。FIG. 9 is a flowchart of size measurement processing following FIG. 8. FIG. 図8、図9に続く、サイズ測定処理のフローチャート。The flowchart of the size measurement process following FIG. 8, FIG. 測定開始画面を示した図。The figure which showed the measurement start screen. (A)は、固定モニタ画面内に表示された確認メッセージを示した図、(B)は、撮影方向などを変えて目的とする他の被写体がモニタ画像の中心部に来るように調整した後に、シャッター操作を行った場合の確認メッセージを示した図。(A) is a diagram showing a confirmation message displayed on the fixed monitor screen, and (B) is after adjusting the shooting direction to change the target other subject to the center of the monitor image. The figure which showed the confirmation message when shutter operation was performed. 基準対象撮影ガイド画面を示した図。The figure which showed the reference | standard object imaging | photography guide screen. モニタ画面上に付加表示された縦中心線を示した図。The figure which showed the vertical center line additionally displayed on the monitor screen. 再撮影ガイド画面を示した図。The figure which showed the re-shooting guide screen. 候補選択ガイド画面を示した図。The figure which showed the candidate selection guide screen. モニタ画像の測定対象枠の近傍に測定対象の実サイズを合成表示させた場合のモニタ画面を示した図。The figure which showed the monitor screen at the time of carrying out the composite display of the actual size of a measuring object in the vicinity of the measuring object frame of a monitor image.

符号の説明Explanation of symbols

1 CPU
2 記憶部
4 記録媒体
5 操作部
6 表示部
7 カメラ撮影部
8 画像メモリ
11 基準対象テーブル
30 測定用画像メモリ
31 実撮影領域
32 非撮影領域
BP 測定基点
S0、S1 仮想距離
A 測定対象
B 基準対象
1 CPU
2 storage unit 4 recording medium 5 operation unit 6 display unit 7 camera imaging unit 8 image memory 11 reference object table 30 measurement image memory 31 actual imaging area 32 non-imaging area BP measurement base point S0, S1 virtual distance A measurement object B reference object

Claims (15)

撮影画像の中に含まれている被写体の実サイズを測定するサイズ測定装置であって、
撮影画像内の被写体をサイズ測定の対象となる測定対象として指定する他、この測定対象と比較される基準対象を指定する指定手段と、
前記指定された測定対象と基準対象との距離比を取得する他、この基準対象の実サイズを取得する取得手段と、
撮影画像を解析することによって測定対象、基準対象毎にその画像サイズを算出すると共に、この各算出サイズと距離比と基準対象の実サイズに基づいて測定対象の実サイズを算出する算出手段と、
を具備したことを特徴とするサイズ測定装置。
A size measuring device for measuring the actual size of a subject included in a captured image,
In addition to specifying the subject in the captured image as a measurement target to be size measurement, a designation means for specifying a reference target to be compared with this measurement target,
In addition to acquiring the distance ratio between the specified measurement object and the reference object, acquisition means for acquiring the actual size of the reference object;
Calculating the image size for each measurement object and reference object by analyzing the captured image, and calculating means for calculating the actual size of the measurement object based on each calculated size and the distance ratio and the actual size of the reference object;
A size measuring device comprising:
前記指定手段は、撮影画像を解析することによってその中心部分に位置している画像部分を測定対象として指定する、
ようにしたことを特徴とする請求項1記載のサイズ測定装置。
The designation means designates an image portion located in the center portion by analyzing a captured image as a measurement target.
2. The size measuring apparatus according to claim 1, wherein the size measuring apparatus is configured as described above.
測定対象撮影モードと基準対象撮影モードとを切り換えるモード切り替え手段を設け、
前記指定手段は、測定対象撮影モード時の撮影画像内の所定領域内に含まれている画像部分を測定対象として指定し、基準対象撮影モード時の撮影画像内の所定領域内に含まれている画像部分を基準対象として指定する、
ようにしたことを特徴とする請求項1記載のサイズ測定装置。
A mode switching means for switching between the measurement target shooting mode and the reference target shooting mode is provided,
The designating unit designates an image portion included in a predetermined area in the captured image in the measurement target imaging mode as a measurement target, and is included in the predetermined area in the captured image in the reference target imaging mode. Specify the image part as the reference target,
2. The size measuring apparatus according to claim 1, wherein the size measuring apparatus is configured as described above.
前記指定手段は、撮影画像内に含まれている各被写体のうち、予め記憶管理されている複数種の基準対象の何れかに特徴的に一致する画像部分を基準対象として指定する、
ようにしたことを特徴とする請求項1記載のサイズ測定装置。
The designation means designates, as a reference target, an image portion that characteristically matches any of a plurality of types of reference targets stored and managed in advance among the subjects included in the captured image.
2. The size measuring apparatus according to claim 1, wherein the size measuring apparatus is configured as described above.
予め複数種の基準対象に対応してその実サイズが記憶管理されている状態において、前記取得手段は、前記指定された基準対象に対応する実サイズを読み出し取得する、
ようにしたことを特徴とする請求項1記載のサイズ測定装置。
In a state where the actual size is stored and managed in advance corresponding to a plurality of types of reference objects, the acquisition unit reads and acquires the actual size corresponding to the designated reference object.
2. The size measuring apparatus according to claim 1, wherein the size measuring apparatus is configured as described above.
カメラ画角に相当する視野内の撮影画像が展開される実撮影領域に非撮影領域を付加することによって当該視野を仮想的にカメラ位置まで拡大したサイズ測定用の作業領域が用意されている状態において、カメラ位置に相当する前記非撮影領域内の位置を測定基点として、前記取得手段は、当該測定基点から実撮影領域内の測定対象、基準対象までの仮想距離を求めてそれらの距離比を算出取得する、
ようにしたことを特徴とする請求項1記載のサイズ測定装置。
A work area for size measurement is prepared by adding a non-photographing area to the actual photographing area where the photographed image in the visual field corresponding to the camera angle of view is developed, thereby expanding the visual field virtually to the camera position. The acquisition means uses the position in the non-photographing area corresponding to the camera position as a measurement base point, and the acquisition means obtains a virtual distance from the measurement base point to the measurement object and the reference object in the real photographing area and calculates the distance ratio thereof. Get calculated,
2. The size measuring apparatus according to claim 1, wherein the size measuring apparatus is configured as described above.
前記測定対象と基準対象とが個別に撮影された場合に、前記取得手段は、前記仮想領域上の測定基点から測定対象までの仮想距離と基準対象までの仮想距離を個別に求めた後に、それらの距離比を算出取得する、
ようにしたことを特徴とする請求項6記載のサイズ測定装置。
When the measurement object and the reference object are separately photographed, the acquisition unit obtains the virtual distance from the measurement base point on the virtual region to the measurement object and the virtual distance to the reference object individually, Calculating and obtaining the distance ratio of
The size measuring device according to claim 6, which is configured as described above.
前記基準対象の実サイズおよび画像サイズを取得した後に、測定対象が指定される毎に、指定された測定対象の実サイズを算出する、
ようにしたことを特徴とする請求項1記載のサイズ測定装置。
After obtaining the actual size and image size of the reference object, each time the measurement object is designated, the actual size of the designated measurement object is calculated.
The size measuring device according to claim 1, which is configured as described above.
測定対象が含まれている撮影画像が表示されている状態において、この撮影画像内に当測定対象に対応付けてその実サイズを表示する、
ようにしたことを特徴とする請求項1記載のサイズ測定装置。
In a state where a captured image including the measurement target is displayed, the actual size is displayed in association with the measurement target in the captured image.
2. The size measuring apparatus according to claim 1, wherein the size measuring apparatus is configured as described above.
コンピュータに対して、
撮影画像内の被写体をサイズ測定の対象となる測定対象として指定する他、この測定対象と比較される基準対象を指定する機能と、
前記指定された測定対象と基準対象との距離比を取得する他、この基準対象の実サイズを取得する機能と、
撮影画像を解析することによって測定対象、基準対象毎にその画像サイズを算出すると共に、この各算出サイズと距離比と基準対象の実サイズに基づいて測定対象の実サイズを算出する機能と、
を実現させるためのプログラム。
Against the computer,
In addition to specifying the subject in the captured image as the measurement target for size measurement, the function to specify the reference target to be compared with this measurement target,
In addition to acquiring the distance ratio between the specified measurement object and the reference object, a function of acquiring the actual size of the reference object;
A function of calculating the image size for each measurement target and reference target by analyzing the captured image, and calculating the actual size of the measurement target based on each calculated size, the distance ratio, and the actual size of the reference target;
A program to realize
撮影画像の中に含まれている被写体の実サイズを測定するサイズ測定装置であって、
撮影画像内でサイズ測定の対象となる測定対象を指定する第1の指定手段と、
前記撮影画像とは異なる他の撮影画像内において、前記測定対象と比較される基準対象を指定する第2の指定手段と、
前記基準対象の実際の大きさを示す実サイズを取得する取得手段と、
撮影画像を解析することによって測定対象、基準対象毎にその画像サイズを算出すると共に、この各算出サイズと基準対象の実サイズに基づいて当該測定対象の実サイズを算出する算出手段と、
を具備したことを特徴とするサイズ測定装置。
A size measuring device for measuring the actual size of a subject included in a captured image,
A first designation means for designating a measurement target to be a size measurement target in the captured image;
A second designation means for designating a reference object to be compared with the measurement object in another photographed image different from the photographed image;
Obtaining means for obtaining an actual size indicating an actual size of the reference object;
Calculating the image size for each measurement object and reference object by analyzing the captured image, and calculating means for calculating the actual size of the measurement object based on each calculated size and the actual size of the reference object;
A size measuring device comprising:
前記第2の指定手段は、基準対象を指定する際に、予め記憶管理されている複数種の基準対象の何れかに特徴的に一致する被写体を基準対象として指定し、
前記取得手段は、前記指定された基準対象に対応して予め記憶管理されている実サイズを読み出し取得する、
ようにしたことを特徴とする請求項11記載のサイズ測定装置。
The second designating unit designates, as a reference object, a subject that characteristically matches any of a plurality of types of reference objects stored and managed in advance when the reference object is designated.
The acquisition means reads out and acquires an actual size stored and managed in advance corresponding to the designated reference object.
The size measuring device according to claim 11, which is configured as described above.
予め記憶管理されている複数種の基準対象の何れかに特徴的に一致する被写体を基準対象として指定する際に、特徴的に一致する各候補を案内表示する表示手段を設け、
前記第2の指定手段は、前記候補表示の中から任意に選択された候補を基準対象として指定する、
ようにしたことを特徴とする請求項11記載のサイズ測定装置。
Provided with a display means for guiding and displaying each characteristically matching candidate when a subject characteristically matching any of a plurality of types of reference objects stored and managed in advance is designated as a reference object,
The second designation means designates a candidate arbitrarily selected from the candidate displays as a reference target.
The size measuring device according to claim 11, which is configured as described above.
予め記憶管理されている複数種の基準対象の何れかに特徴的に一致する候補が存在していない場合には、基準対象を含むように再撮影すべきことを促すガイダンスを案内出力する、
ようにしたことを特徴とする請求項13記載のサイズ測定装置。
When there is no candidate that characteristically matches any of a plurality of types of reference objects stored and managed in advance, guidance guidance that prompts the user to re-photograph so as to include the reference object is guided and output.
The size measuring device according to claim 13, which is configured as described above.
コンピュータに対して、
撮影画像内でサイズ測定の対象となる測定対象を指定する他、この撮影画像とは異なる他の撮影画像内において前記測定対象と比較される基準対象を指定する機能と、
前記基準対象の実際の大きさを示す実サイズを取得する機能と、
撮影画像を解析することによって測定対象、基準対象毎にその画像サイズを算出すると共に、この各算出サイズと基準対象の実サイズに基づいて当該測定対象の実サイズを算出する機能と、
を実現させるためのプログラム。
Against the computer,
In addition to designating a measurement target to be a size measurement target in the captured image, a function for specifying a reference target to be compared with the measurement target in another captured image different from the captured image;
A function of obtaining an actual size indicating an actual size of the reference object;
A function for calculating the image size for each measurement object and reference object by analyzing the captured image, and calculating the actual size of the measurement object based on each calculated size and the actual size of the reference object,
A program to realize
JP2003420467A 2003-12-18 2003-12-18 Size measurement device and program Pending JP2005181034A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003420467A JP2005181034A (en) 2003-12-18 2003-12-18 Size measurement device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003420467A JP2005181034A (en) 2003-12-18 2003-12-18 Size measurement device and program

Publications (1)

Publication Number Publication Date
JP2005181034A true JP2005181034A (en) 2005-07-07

Family

ID=34781984

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003420467A Pending JP2005181034A (en) 2003-12-18 2003-12-18 Size measurement device and program

Country Status (1)

Country Link
JP (1) JP2005181034A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101074678B1 (en) * 2011-03-03 2011-10-18 배상모 A measurement method for real size of object using camera in mobile terminal
JP2013527494A (en) * 2010-05-19 2013-06-27 ザ セクレタリー オブ ステイト フォー ビジネス イノベーション アンド スキルズ オブ ハー マジェスティズ ブリタニック ガバメント hologram
KR20150021350A (en) * 2013-08-20 2015-03-02 삼성테크윈 주식회사 Apparatus and method for processing image
CN105444678A (en) * 2015-11-09 2016-03-30 佛山绿怡信息科技有限公司 Handset size measurement method and system
WO2019144604A1 (en) * 2018-01-25 2019-08-01 北京威远图易数字科技有限公司 Method and device for measuring vehicle damage
JP2021051435A (en) * 2019-09-24 2021-04-01 鹿島建設株式会社 Building side view creation system and building side view creation method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013527494A (en) * 2010-05-19 2013-06-27 ザ セクレタリー オブ ステイト フォー ビジネス イノベーション アンド スキルズ オブ ハー マジェスティズ ブリタニック ガバメント hologram
KR101074678B1 (en) * 2011-03-03 2011-10-18 배상모 A measurement method for real size of object using camera in mobile terminal
CN102607423A (en) * 2011-03-03 2012-07-25 裵相模 Method for measuring real size of object using camera of mobile terminal
WO2012118274A1 (en) * 2011-03-03 2012-09-07 Bae Sang Mo Method for measuring actual size of object using camera included in portable terminal
KR20150021350A (en) * 2013-08-20 2015-03-02 삼성테크윈 주식회사 Apparatus and method for processing image
KR102066938B1 (en) * 2013-08-20 2020-01-16 한화테크윈 주식회사 Apparatus and method for processing image
CN105444678A (en) * 2015-11-09 2016-03-30 佛山绿怡信息科技有限公司 Handset size measurement method and system
WO2019144604A1 (en) * 2018-01-25 2019-08-01 北京威远图易数字科技有限公司 Method and device for measuring vehicle damage
JP2021051435A (en) * 2019-09-24 2021-04-01 鹿島建設株式会社 Building side view creation system and building side view creation method
JP7245757B2 (en) 2019-09-24 2023-03-24 鹿島建設株式会社 Building side view creation system and building side view creation method

Similar Documents

Publication Publication Date Title
CN101505374B (en) Apparatus and method for image processing
JP5164327B2 (en) Imaging apparatus and program
US8433097B2 (en) Subject tracking device, subject tracking method, subject tracking program product and optical device
WO2010001778A1 (en) Imaging device, image display device, and electronic camera
JP2005189087A (en) Distance measurement equipment and program
CN102265602A (en) Image capture device
JP2010183187A (en) Imaging apparatus and control method of the same, program
JP2005277813A (en) Electronic imaging apparatus
JP5131367B2 (en) Imaging apparatus and program
US8924856B2 (en) Method of and apparatus for providing a slide show, and computer readable storage medium having recorded thereon a computer program for providing a slide show
JP2005354166A (en) Image processing apparatus, image processing system, image processing method, and storage medium
JP2005181034A (en) Size measurement device and program
JP4466065B2 (en) Camera photographing apparatus and program
JP2005189051A (en) Size measurement device and program
JP4534539B2 (en) Camera apparatus and program
JP2018007082A (en) Image reproduction device, control method therefor, and program
JP2007259002A (en) Image reproducing apparatus, its control method, and its control program
JP2014017665A (en) Display control unit, control method for display control unit, program, and recording medium
JP3837882B2 (en) Captured image management apparatus and program recording medium thereof
JP2019153874A (en) Information recording device, image recording device, operation auxiliary device, operation auxiliary system, information recording method, image recording method, and operation auxiliary method
JP2005181035A (en) Size measurement device and program
JP2005164514A (en) Size measuring device and program
JP2005164512A (en) Size measuring instrument and program
JP2005189052A (en) Camera photographing equipment and program
JP4159271B2 (en) Digital camera

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20060209

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20060404