JP2005181033A - Camera photographing device and program - Google Patents

Camera photographing device and program Download PDF

Info

Publication number
JP2005181033A
JP2005181033A JP2003420466A JP2003420466A JP2005181033A JP 2005181033 A JP2005181033 A JP 2005181033A JP 2003420466 A JP2003420466 A JP 2003420466A JP 2003420466 A JP2003420466 A JP 2003420466A JP 2005181033 A JP2005181033 A JP 2005181033A
Authority
JP
Japan
Prior art keywords
size
subject
image
actual size
measurement
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.)
Granted
Application number
JP2003420466A
Other languages
Japanese (ja)
Other versions
JP4466065B2 (en
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 JP2003420466A priority Critical patent/JP4466065B2/en
Publication of JP2005181033A publication Critical patent/JP2005181033A/en
Application granted granted Critical
Publication of JP4466065B2 publication Critical patent/JP4466065B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Indication In Cameras, And Counting Of Exposures (AREA)
  • Studio Devices (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To enable a measurement of the actual size of an object by analyzing photographed images successively acquired from a camera photographing part, and to enable a real-time measurement of the actual size, each time when a new object is detected. <P>SOLUTION: A size calculation process is performed, in which the actual size of the object is acquired, after the image recognition of the object (measurement object) is performed, by analyzing monitor images successively acquired from the camera photographing part 7, before the photographing is actually performed. In the process for performing a size display process for displaying the actual size of the object in a monitor image, when the new monitor image is acquired from the camera photographing part 7, a CPU 1 executes the size calculation process and the size display process for the new object, each time when it is detected that the new object not existing in the former monitoring image is included in the current monitor image. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

この発明は、カメラ撮影部から取得した撮影画像の中に含まれている被写体の実サイズを測定するカメラ撮影装置およびプログラムに関する。   The present invention relates to a camera photographing apparatus and a program for measuring an actual size of a subject included in a photographed image acquired from a camera photographing unit.

従来、カメラ撮影によって被写体のサイズを測定する技術としては、例えば、カメラに備えられている距離センサによって計測されたレンズ位置から被写体までの距離と、ディスプレイ上に表示されている被写体の任意部分と、レンズの撮影画角に基づいて被写体の実際寸法を測定するようにしたデジタルカメラが知られている(特許文献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 with the subject 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 that the actual size of the subject can be measured by analyzing captured images sequentially acquired from the camera photographing unit, and the actual size can be measured in real time every time a new subject is detected. It is to be.
The subject of the second invention is that an actual size of a subject can be measured by analyzing captured images sequentially obtained from a camera photographing unit, and a size-unmeasured subject whose size measurement has become impossible at the time of acquisition of a past captured image Each time is detected, its actual size can be measured.

請求項1記載の発明(第1の発明)は、カメラ撮影部から取得した撮影画像の中に含まれている被写体の実サイズを測定するカメラ撮影装置であって、実撮影を行う前にカメラ撮影部から逐次取得した撮影画像を解析することによってその中に含まれている被写体を画像認識する認識手段と、この認識手段によって認識された被写体の実サイズを取得する処理を行うサイズ取得処理手段と、このサイズ取得処理によって得られた被写体の実サイズを当該撮影画像内に表示する処理を行うサイズ表示処理手段と、カメラ撮影部から新たな撮影画像を取得した際に、前回の撮影画像内に存在していない新たな被写体が今回の撮影画像内に含まれていることを検出する毎に、当該新たな被写体に対して前記サイズ取得処理およびサイズ表示処理の実行を指示する制御手段とを具備したことを特徴とする。
更に、コンピュータに対して、上述した請求項1記載の発明に示した主要機能を実現させるためのプログラムを提供する(請求項10記載の発明)。
The invention according to claim 1 (first invention) is a camera photographing apparatus for measuring an actual size of a subject included in a photographed image acquired from a camera photographing unit, and before the actual photographing, Recognizing means for recognizing the subject included in the image by analyzing the captured images sequentially obtained from the photographing unit, and size acquisition processing means for performing processing for obtaining the actual size of the subject recognized by the recognizing means And a size display processing means for performing processing for displaying the actual size of the subject obtained by the size acquisition processing in the photographed image, and when a new photographed image is obtained from the camera photographing unit, Each time it is detected that a new subject that does not exist in the captured image is included in the current captured image, the size acquisition process and the size display process are performed for the new subject. Characterized by comprising a control means for instructing.
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 10).

なお、請求項1記載の発明は次のようなものであってもよい。
前記サイズ取得処理に先立って、測定対象である被写体の実サイズを測定可能か否かを判別する判別手段を設け、この判別手段によって測定可能であることが判別された際に、それを条件としてサイズ取得処理を実行開始し、測定不可能であることが判別された際に、その旨を報知する(請求項2記載の発明)。
The invention described in claim 1 may be as follows.
Prior to the size acquisition process, a determination unit for determining whether or not the actual size of the subject to be measured is measurable is provided, and when it is determined by the determination unit that measurement is possible, When the size acquisition process is started and it is determined that the measurement is impossible, the fact is notified (the invention according to claim 2).

前記認識手段は、撮影画像を解析することによってその中に含まれている各被写体のうち、所定領域内に含まれている被写体を測定対象として認識する(請求項3記載の発明)。   The recognizing unit recognizes a subject included in a predetermined region as a measurement target among the subjects included in the captured image by analyzing the photographed image (the invention according to claim 3).

前記サイズ表示処理は、測定対象が含まれている撮影画像が表示されている状態において、この撮影画像内に当測定対象に対応付けてその実サイズを表示する(請求項4記載の発明)。   In the size display process, 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.

前記認識手段によって認識された複数の被写体の中からサイズ測定の対象となる測定対象を特定すると共に、この測定対象と比較される基準対象を特定する特定手段を設け、前記サイズ取得処理は、前記特定された基準対象の実サイズを取得すると共に、撮影画像を解析することによって測定対象、基準対象毎にその画像サイズを算出し、この各算出サイズと基準対象の実サイズに基づいて当該測定対象の実サイズを算出する(請求項6記載の発明)。   While specifying a measurement object to be a size measurement object from among a plurality of subjects recognized by the recognition means, providing a specifying means for specifying a reference object to be compared with the measurement object, the size acquisition process, Acquire the actual size of the specified reference object and analyze the captured image to calculate the image size for each measurement object and reference object. Based on each calculated size and the actual size of the reference object, the measurement object Is calculated (the invention according to claim 6).

前記認識手段によって認識された複数の被写体の中から前記基準対象を特定する際に、前記特定手段は、予め記憶管理されている複数種の基準対象の何れかに特徴的に一致する画像部分を基準対象として特定し、前記サイズ取得処理は、前記特定された基準対象の実サイズを取得する際に、当該基準対象に対応して予め記憶管理されている実サイズを読み出し取得する(請求項7記載の発明)。   When the reference object is specified from among the plurality of subjects recognized by the recognition means, the specifying means selects an image portion characteristically matching any of a plurality of types of reference objects stored and managed in advance. The size is specified as a reference object, and when the actual size of the specified reference object is acquired, the size acquisition process reads and acquires an actual size stored and managed in advance corresponding to the reference object. Described invention).

撮影位置から測定対象となる被写体までの距離を計測する距離計測手段を設け、前記サイズ取得処理は、前記距離計測手段によって得られた測定距離と、撮影画像を解析することによって得られた測定対象の画像サイズと、カメラレンズの焦点距離に基づいて当該測定対象の実サイズを算出する(請求項8記載の発明)。   A distance measuring unit that measures the distance from the shooting position to the subject to be measured is provided, and the size acquisition process is performed by analyzing the measurement distance obtained by the distance measuring unit and the photographed image. The actual size of the measurement target is calculated based on the image size and the focal length of the camera lens (the invention according to claim 8).

請求項5記載の発明(第2の発明)は、カメラ撮影部から取得した撮影画像の中に含まれている被写体の実サイズを測定するカメラ撮影装置であって、カメラ撮影部から逐次取得した各撮影画像を解析することによってその中に含まれている被写体を画像認識する認識手段と、この認識手段によって現時点までに画像認識された各被写体と今回の撮影画像内の被写体とを比較することによって、過去の撮影画像の取得時にサイズ測定が不能となったサイズ未測定の被写体が今回の撮影画像内に含まれているかを判別する判別手段と、この判別手段によってサイズ未測定の被写体が検出される毎に、その実サイズを測定するサイズ測定手段と、このサイズ測定手段によって得られた実サイズを今回の撮影画像内において当該被写体に対応付けて表示する表示手段とを具備したことを特徴とする。
更に、コンピュータに対して、上述した請求項1記載の発明に示した主要機能を実現させるためのプログラムを提供する(請求項11記載の発明)。
The invention according to claim 5 (second invention) is a camera photographing device for measuring the actual size of a subject included in a photographed image obtained from a camera photographing unit, which is sequentially obtained from the camera photographing unit. Recognizing means for recognizing a subject included in each captured image by analyzing each captured image, and comparing each subject recognized by the recognizing means up to the present time with the subject in the current captured image The determination means for determining whether or not an unmeasured subject whose size cannot be measured at the time of acquisition of a past captured image is included in the current captured image, and an unmeasured subject is detected by the determination means. Each time, the size measuring means for measuring the actual size and the actual size obtained by the size measuring means are associated with the subject in the current photographed image. Characterized by comprising a Shimesuru display means.
Furthermore, a program for realizing the main functions shown in the invention described in claim 1 is provided to the computer (invention described in claim 11).

なお、請求項5記載の発明(第2の発明)においても、上述した請求項1記載の発明(第1の発明)で示した請求項6〜8記載の発明であってもよく、更に、次のようなものであってもよい。
前記認識手段によって認識された被写体の表示位置を検出する位置検出手段と、この位置検出手段によって検出された被写体の表示位置と前記サイズ測定手段によって得られた当該被写体の実サイズとを対応付けて記憶保持する保持手段とを設け、前記被写体の表示位置が移動したことが検出された際に、前記表示手段は、移動先の表示位置に対応付けて当該被写体の実サイズを表示する(請求項9記載の発明)。
The invention according to claim 5 (second invention) may also be the invention according to claims 6 to 8 shown in the invention according to claim 1 (first invention) described above. It may be as follows.
A position detection unit that detects a display position of the subject recognized by the recognition unit, a display position of the subject detected by the position detection unit, and an actual size of the subject obtained by the size measurement unit are associated with each other. Holding means for storing and holding, and when it is detected that the display position of the subject has moved, the display means displays the actual size of the subject in association with the display position of the movement destination. 9).

請求項1記載の発明(第1の発明)によれば、実撮影を行う前にカメラ撮影部から逐次取得した撮影画像を解析することによって被写体を画像認識した後に当該被写体の実サイズを取得するサイズ取得処理を行うと共に、この被写体の実サイズを当該撮影画像内に表示するサイズ表示処理を行う過程において、カメラ撮影部から新たな撮影画像を取得した際に、前回の撮影画像内に存在していない新たな被写体が今回の撮影画像内に含まれていることを検出する毎に、当該新たな被写体に対してサイズ取得処理およびサイズ表示処理の実行を指示するようにしたから、撮影画像の逐次解析によって被写体の実サイズを測定することができると共に、新たな被写体が検出される毎に、その実サイズをリアルタイムに測定することができる。例えば、モニタ画像を逐次取得しながら画像解析を行った結果、モニタ画像の変化によって新たな被写体が出現(人物等が登場)した際に、その人物等の実サイズを即座に測定することができる。なお、撮影画像内に複数の被写体が出現した際には、各被写体毎にその実サイズを測定することができる。   According to the first aspect of the present invention (first invention), the actual size of the subject is acquired after the subject is image-recognized by analyzing the captured images sequentially acquired from the camera photographing unit before actual photographing. In the process of performing size acquisition processing and size display processing for displaying the actual size of the subject in the photographed image, when a new photographed image is obtained from the camera photographing unit, it exists in the previous photographed image. Each time it is detected that a new subject that is not included in the current captured image is detected, execution of size acquisition processing and size display processing is instructed to the new subject. The actual size of the subject can be measured by sequential analysis, and the actual size can be measured in real time each time a new subject is detected. For example, when image analysis is performed while sequentially acquiring monitor images, when a new subject appears due to a change in the monitor image (a person or the like appears), the actual size of the person or the like can be measured immediately. . When a plurality of subjects appear in the captured image, the actual size can be measured for each subject.

請求項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, it is determined whether or not the actual size of the subject to be measured can be measured prior to the size acquisition process. If the measurement is possible, the size acquisition process is started on the condition, and if the measurement is impossible, the fact is notified. Therefore, the usability can be improved by the user interaction method.

請求項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, the subject included in the subject by analyzing the photographed image is included in a predetermined area. Since the subject being recognized is recognized as the measurement target, the measurement target can be automatically specified, no special operation is required, and the measurement target can be reliably specified. In this case, every time a new measurement target appears due to a change in the shooting direction or movement of the subject, the actual size can be calculated without manually specifying the new measurement target.

請求項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 described above, in the state where the photographed image including the measurement object 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.

請求項6記載の発明によれば、上述した請求項1記載の発明と同様の効果を有する他、カメラ撮影部から取得した撮影画像を解析することによってその中に含まれている各被写体の中からサイズ測定の対象となる測定対象が特定されていると共に、この測定対象と比較される基準対象が特定されている状態において、特定された基準対象の実サイズを取得すると共に、撮影画像を解析することによって測定対象、基準対象毎にその画像サイズを算出し、この各算出サイズと基準対象の実サイズに基づいて当該測定対象の実サイズを算出するようにしたから、測定対象の実サイズは、簡単な計算式、つまり、測定対象、基準対象の画像サイズの比率に基準対象の実サイズを乗算することによって算出することができる。
なお、測定対象の実サイズを算出するにあたって、測定対象の被写体と基準対象の他の被写体とは、遠近の関係(前後関係)にはなく、それぞれ略横並びの状態、つまり、撮影位置(レンズ位置)から測定対象までの距離と、撮影位置から基準対象までの距離が略同一であることを前提としている。
According to the sixth aspect of the present invention, in addition to the effects similar to those of the first aspect of the present invention described above, among the subjects included therein by analyzing the captured image acquired from the camera photographing unit. While the measurement target to be measured is specified and the reference target to be compared with this measurement target is specified, the actual size of the specified reference target is acquired and the captured image is analyzed. By calculating the image size for each measurement object and reference object, and calculating the actual size of the measurement object based on each calculated size and the actual size of the reference object, the actual size of the measurement object is It can be calculated by multiplying a simple calculation formula, that is, the ratio of the image size of the measurement object and the reference object by the actual size of the reference object.
In calculating the actual size of the measurement target, the measurement target subject and the other reference target subjects are not in a perspective relationship (front-rear relationship), but are substantially in a side-by-side state, that is, a shooting position (lens position). ) To the measurement object and the distance from the shooting position to the reference object are assumed to be substantially the same.

請求項7記載の発明によれば、上述した請求項1記載の発明と同様の効果を有する他、基準対象を特定する際には、予め記憶管理されている複数種の基準対象の何れかに特徴的に一致する画像部分を基準対象として特定し、また、この基準対象の実サイズを取得する際には、当該基準対象に対応して予め記憶管理されている実サイズを読み出し取得するようにしたから、撮影画像を解析することによって基準対象の自動特定が可能となると共に、基準対象の実サイズの自動取得が可能となり、特別な操作が不要となる。   According to the invention described in claim 7, in addition to having the same effect as the invention described in claim 1 described above, when specifying the reference object, any one of a plurality of kinds of reference objects stored and managed in advance is used. An image part that is characteristically matched is specified as a reference object, and when acquiring the actual size of the reference object, the actual size stored and managed in advance corresponding to the reference object is read and acquired. Therefore, by analyzing the captured image, the reference object can be automatically specified, and the actual size of the reference object can be automatically acquired, so that no special operation is required.

請求項8記載の発明によれば、上述した請求項1記載の発明と同様の効果を有する他、撮影位置から測定対象となる被写体までの距離と、撮影画像を解析することによって得られた測定対象の画像サイズと、カメラレンズの焦点距離に基づいて当該測定対象の実サイズを算出するようにしたから、測定対象の被写体と基準対象の他の被写体とが遠近の関係(前後関係)にある場合でも測定対象の実サイズを容易に算出することができる。   According to the eighth aspect of the invention, in addition to the same effect as the first aspect of the invention described above, the distance from the photographing position to the subject to be measured and the measurement obtained by analyzing the photographed image Since the actual size of the measurement target is calculated based on the image size of the target and the focal length of the camera lens, the subject to be measured and the other subject of the reference target are in a perspective relationship (front-back relationship). Even in this case, the actual size of the measurement target can be easily calculated.

請求項5記載の発明(第2の発明)によれば、カメラ撮影部から逐次取得した各撮影画像を解析することによってその中に含まれている被写体を画像認識し、現時点までに画像認識された各被写体と今回の撮影画像内の被写体とを比較することによって、過去の撮影画像の取得時にサイズ測定が不能となったサイズ未測定の被写体が今回の撮影画像内に含まれていることが検出される毎に、その実サイズを測定すると共に、この実サイズを今回の撮影画像内において当該被写体に対応付けて表示するようにしたから、撮影画像を逐次解析することによって被写体の実サイズを測定することができると共に、過去の撮影画像の取得時にサイズ測定が不能となった被写体であっても、今回の撮影画像に当該被写体が含まれていれば、そのサイズを測定することが可能となる。なお、撮影画像内にサイズ未測定の被写体が複数存在していれば、各被写体毎にその実サイズを測定することができる。   According to the invention described in claim 5 (second invention), by analyzing each captured image sequentially acquired from the camera imaging unit, the subject included in the image is recognized, and the image is recognized up to the present time. By comparing each subject and the subject in the current captured image, it is possible that the current captured image includes an unmeasured subject whose size measurement has become impossible when the previous captured image was acquired. Each time it is detected, its actual size is measured, and this actual size is displayed in association with the subject in the current captured image, so the actual size of the subject is measured by sequentially analyzing the captured image. Even if the subject for which the size measurement was impossible at the time of acquisition of a past captured image, if the subject is included in the current captured image, the size is changed. It is possible to constant. If there are a plurality of unmeasured subjects in the captured image, the actual size can be measured for each subject.

なお、第2の発明においても、上述した第1の発明で示した請求項6〜8記載の発明と同様の効果を有する。
請求項9記載の発明によれば、上述した請求項5記載の発明と同様の効果を有する他、被写体の表示位置を検出すると共に、この被写体の表示位置と当該被写体の実サイズとを対応付けて記憶保持しておき、この被写体の表示位置が移動したことが検出された際に、移動先の表示位置に対応付けて当該被写体の実サイズを表示するようにしたから、例えば、モニタ画像を逐次取得しながら画像解析を行った結果、モニタ画像内で被写体が移動した場合でもそれに追随した実サイズ表示が可能となると共に、サイズ確認を行いながらその被写体を見ることができる。
The second invention also has the same effects as the inventions according to claims 6 to 8 shown in the first invention described above.
According to the ninth aspect of the present invention, in addition to the same effect as the fifth aspect of the present invention, the display position of the subject is detected, and the display position of the subject is associated with the actual size of the subject. Since the actual size of the subject is displayed in association with the display position of the movement destination when it is detected that the display position of the subject has moved, for example, the monitor image is displayed. As a result of performing the image analysis while acquiring sequentially, even when the subject moves in the monitor image, it is possible to display the actual size following the subject, and to see the subject while checking the size.

(実施例1)
以下、図1〜図6を参照してこの発明の第1実施例を説明する。
図1は、この実施例におけるデジタルカメラの基本的構成要素を示したブロック図である。
このデジタルカメラは、撮影画像(モニタ画像)内に含まれている被写体の実サイズを測定可能なもので、被写体を実撮影する前に被写体サイズの測定が指示された際、この被写体をモニタ撮影したデジタル画像を解析することによってその実サイズを測定してモニタ画面に表示すると共に、新たな被写体が検出される毎に、その実サイズをリアルタイムに測定するようにしたものである。
なお、この実施例の特徴部分を詳述する前に、この実施例のハードウェア上の構成について以下、説明しておく。
Example 1
The first embodiment 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 can measure the actual size of the subject included in the photographed image (monitor image). When the subject is instructed to measure the subject size before actually photographing the subject, the subject is photographed on the monitor. By analyzing the digital image, the actual size is measured and displayed on the monitor screen, and every time a new subject is detected, the actual size is measured in real time.
Before detailed description of the features of this embodiment, the hardware configuration of this embodiment will be described below.

CPU1は、記憶部2内のオペレーティングシステムや各種アプリケーションソフトに従ってこのデジタルカメラの全体動作を制御する中央演算処理装置である。記憶部2は、ハードディスク等の固定的なメモリであり、プログラム記憶領域とデータ記憶領域とを有している。この記憶部2内のプログラム記憶領域には、後述する図4および図5に示す動作手順に従って本実施例を実現する為のアプリケーションプログラムが格納され、また、データ記憶領域には、後述する図3に示すデータ(基準対象テーブル)が格納されている。このプログラムやデータは、必要に応じてワークメモリ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 an operation procedure shown in FIGS. 4 and 5 described later, and the data storage area stores FIG. 3 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.

一方、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, and a size measurement button for instructing start of size 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 (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.

CPU1は、撮影モード時においてサイズ測定ボタンが操作された際に、サイズ測定機能を起動させることによってモニタ画像内に含まれている被写体の実サイズを測定表示するようにしている。
例えば、図2に示すように、撮影モード時のモニタ画像内において、被写体(人物)Aをサイズ測定の対象となる測定対象とし、また、被写体(ドア)Bをこの測定対象Aと比較される基準対象とすると、この撮影モードにおいてCPU1は、このモニタ画像を解析することによって測定対象Aおよび基準対象Bを自動指定するようにしている。この場合、CPU1は、モニタ画像の中心部(図中、×印)に位置している被写体を測定対象Aとして自動指定し、この測定対象Aに対して略横並びの状態にある被写体を基準対象Bとして自動指定する。従って、測定対象Aと基準対象Bとは、遠近の関係(前後関係)にはなく、それぞれ略横並びの状態、つまり、撮影位置(レンズ位置)から測定対象までの距離と、撮影位置から基準対象までの距離が略同一の状態にある。
The CPU 1 measures and displays the actual size of the subject included in the monitor image by activating the size measurement function when the size measurement button is operated in the shooting mode.
For example, as shown in FIG. 2, in the monitor image in the shooting mode, a subject (person) A is set as a measurement target for size measurement, and a subject (door) B is compared with the measurement target A. Assuming that it is a reference object, the CPU 1 automatically designates the measurement object A and the reference object B by analyzing the monitor image in this photographing mode. In this case, the CPU 1 automatically designates the subject located at the center of the monitor image (marked with x in the figure) as the measurement target A, and selects the subject that is in a state substantially parallel to the measurement target A as the reference target. Automatically specified as B. Therefore, the measurement target A and the reference target B are not in a perspective relationship (front-rear relationship), but are substantially in a side-by-side relationship, that is, the distance from the shooting position (lens position) to the measurement target, and the reference position to the reference target. The distance to is substantially the same.

このように撮影画像(モニタ画像)内において測定対象A、基準対象Bが指定されている状態において、CPU1は、基準対象Bの実際の大きさを示す実サイズ(ドアの縦寸法:185cm)Cを取得した後、測定対象A、基準対象B毎にその画像サイズを算出し、この測定対象A、基準対象Bの算出サイズ(画像サイズ)と基準対象の実サイズCに基づいて測定対象Aの実サイズ(身長)Dを算出するようにしている。これによって算出された測定対象Aの実サイズDは、モニタ画面内において測定対象Aの付近に付加表示される。   As described above, in the state where the measurement target A and the reference target B are designated in the captured image (monitor image), the CPU 1 displays the actual size of the reference target B (the vertical dimension of the door: 185 cm) C. , The image size is calculated for each of the measurement object A and the reference object B, and the measurement object A is calculated based on the calculated size (image size) of the measurement object A and the reference object B and the actual size C of the reference object. The actual size (height) D is calculated. The actual size D of the measurement target A calculated in this way is additionally displayed near the measurement target A in the monitor screen.

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

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

なお、郵便ポストにおいては、現在、形状・サイズが異なる郵便差出箱10号〜14号が存在しているため、基準対象テーブル11には、この5種類の郵便ポストに対応してその「基準対象画像」および「縦寸法」、「横寸法」が登録されている。ここで、郵便差出箱10号は、本体の高さは、約83cm、幅は、約46cmに定められ、脚柱の高さは、約55cm、直径は、約17cmとなっており、基準対象テーブル11に登録される「縦寸法」は、本体と脚柱の高さの合計値となる。   In addition, since the post boxes 10 to 14 having different shapes and sizes currently exist in the post box, the reference target table 11 includes the “reference target” corresponding to these five types of post boxes. “Image”, “Vertical dimension”, and “Horizontal dimension” are registered. Here, the post box 10 has a main body height of about 83 cm, a width of about 46 cm, a pedestal height of about 55 cm, and a diameter of about 17 cm. The “vertical dimension” registered in the table 11 is a total value of the heights of the main body and the pedestal.

次に、この実施例におけるデジタルカメラの動作概念を図4および図5に示すフローチャートを参照して説明する。ここで、これらのフローチャートに記述されている各機能は、読み取り可能なプログラムコードの形態で格納されており、このプログラムコードにしたがった動作が逐次実行される。また、伝送媒体を介して伝送されてきた上述のプログラムコードに従った動作を逐次実行することもできる。このことは他の実施例においても同様であり、記録媒体の他に、伝送媒体を介して外部供給されたプログラム/データを利用してこの実施例特有の動作を実行することもできる。   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. The same applies to the other embodiments, and in addition to the recording medium, an operation peculiar to this embodiment can be executed using a program / data supplied externally via a transmission medium.

図4は、デジタルカメラの全体動作の概要を示したフローチャートであり、電源投入に応じて実行開始される。
先ず、CPU1は、撮影モードにセットされている状態において(ステップA1)、モニタ画像を逐次取り込んで(ステップA2)、モニタ画面に動画として表示させる(ステップA3)。この状態において、ボタン操作の有無をチェックし(ステップA4)、何れのボタンも操作されなければ(ステップA4でNO)、モニタ画像の取り込みに戻るが(ステップA2)、いま、シャッターボタンが操作された際には(ステップA5)、その時の撮影画像を画像ファイルとして記録保存した後(ステップA6)、モニタ画像の取り込みに戻る(ステップA2)。
FIG. 4 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. In this case (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).

図5は、撮影モード時にサイズ測定ボタンの操作に応じて実行されるサイズ測定処理を詳述したフローチャートである。
先ず、CPU1は、現在のモニタ画像を一時固定表示させた後(ステップB1)、このモニタ画像全体を解析することによってその中心部分に位置している被写体画像を測定対象として特定する(ステップB2)。すなわち、図2の例では、モニタ画像の中心部分には、人物が映っているので、画像の連続性などを考慮しながら人物全体を測定対象として特定する。これによって特定した被写体(測定対象)に対して略横並びに位置している画像部分(被写体)をモニタ画像から抽出すると共に、抽出した被写体画像に基づいて基準対象テーブル11を検索することによって(ステップB3)、基準対象テーブル11に登録されている各基準対象のうち、その何れかに特徴的に一致するか否かを調べる(ステップB4)。言い換えれば、ステップB4は、測定対象である被写体の実サイズを測定可能か否かを判別する。
FIG. 5 is a flowchart detailing the size measurement process executed in response to the operation of the size measurement button in the shooting mode.
First, the CPU 1 temporarily fixes and displays the current monitor image (step B1), and then analyzes the entire monitor image to specify the subject image located in the central portion as the measurement target (step B2). . That is, in the example of FIG. 2, since a person is shown in the central portion of the monitor image, the entire person is specified as a measurement target in consideration of the continuity of the image. By extracting from the monitor image an image portion (subject) that is positioned substantially side by side with respect to the subject (measurement target) specified in this way, and by searching the reference target table 11 based on the extracted subject image (step) B3) It is examined whether or not any of the reference objects registered in the reference object table 11 is characteristically matched (step B4). In other words, step B4 determines whether or not the actual size of the subject to be measured can be measured.

ここで、抽出被写体が何れの基準対象にも不一致であれば、測定不可能であると判断し(ステップB4でNO)、測定不能を示すメッセージをモニタ画面に表示させた後(ステップB5)、終了操作の有無をチェックし(ステップB6)、終了指示が無ければ、モニタ画像を取得し(ステップB7)、モニタ表示させた後に(ステップB8)、このモニタ画像を固定表示させる(ステップB1)。一方、抽出被写体が基準対象テーブル11に登録されている何れかの基準対象に一致していれば、測定可能と判断し(ステップB4でYES)、当該被写体を基準対象として指定した後、以下、測定対象の実サイズを算出する処理に移る。なお、図2の例では、「ドア」が基準対象として指定される。   Here, if the extracted subject does not match any reference object, it is determined that measurement is impossible (NO in step B4), and a message indicating that measurement is impossible is displayed on the monitor screen (step B5). The presence or absence of an end operation is checked (step B6). If there is no end instruction, a monitor image is acquired (step B7), displayed on the monitor (step B8), and this monitor image is fixedly displayed (step B1). On the other hand, if the extracted subject matches any reference target registered in the reference target table 11, it is determined that measurement is possible (YES in step B4), and the subject is designated as the reference target. The process moves to the process of calculating the actual size of the measurement target. In the example of FIG. 2, “door” is designated as the reference object.

先ず、この基準対象に基づいて基準対象テーブル11をアクセスし、その実サイズ「J0」を読み出し取得する(ステップB9)。この場合、上述したように、「縦寸法」、「横寸法」のうち、どの方向の実サイズを読み出すかは、予め任意に指定された指定内容を参照することによって該当する実サイズ「J0」を読み出す。なお、図2の例では、基準対象テーブル11から「ドアの縦寸法:185cm」が読み出される。次に、モニタ画像を解析することによって基準対象の画像サイズ「G0」を計測すると共に(ステップB10)、測定対象の画像サイズ「G1」を計測する(ステップB11)。この場合、図2の例では、基準対象の画像サイズ「G0」は、ドアの高さに相当するサイズであり、また、測定対象の画像サイズ「G1」は、人物の背丈に相当するサイズである。なお、この画像サイズ「G0」、「G1」は、CCD等のイメージセンサ上のサイズであり、その有効領域全体の横/縦の寸法と、その全体の横/縦ドットサイズに基づいて縦方向における1ドット当たりの寸法(縦ピッチ)/横方向における1ドット当たり寸法(横ピッチ)を求め、このドットピッチに基づいてサイズ情報に換算された値である。   First, the reference object table 11 is accessed based on this reference object, and the actual size “J0” is read and acquired (step B9). In this case, as described above, the actual size in which direction of “vertical dimension” and “horizontal dimension” is read out is determined by referring to the designated content that is arbitrarily designated in advance. Is read. In the example of FIG. 2, “door vertical dimension: 185 cm” is read from the reference target table 11. Next, the reference target image size “G0” is measured by analyzing the monitor image (step B10), and the measurement target image size “G1” is measured (step B11). In this case, in the example of FIG. 2, the reference target image size “G0” is a size corresponding to the height of the door, and the measurement target image size “G1” is a size corresponding to the height of the person. is there. The image sizes “G0” and “G1” are sizes on an image sensor such as a CCD, and 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. The size per dot in (vertical pitch) / the size per dot in the horizontal direction (horizontal pitch) is obtained and converted into size information based on this dot pitch.

これによって基準対象の実サイズJ0および画像サイズG0と、測定対象の画像サイズG1が全て揃ったらこれらの値をパラメータとして測定対象の実サイズJ1を求める算出処理を行う(ステップB12)。この場合、測定対象の実サイズは、次の式に従って算出される。
測定対象の実サイズ「J1」=G1/G0*J0
As a result, when all of the reference target actual size J0 and image size G0 and the measurement target image size G1 are obtained, a calculation process is performed to obtain the measurement target actual size J1 using these values as parameters (step B12). In this case, the actual size of the measurement target is calculated according to the following formula.
Actual size of measurement object “J1” = G1 / G0 * J0

このようにして算出された測定対象の実サイズは、画像サイズの比率に基準対象の実サイズを乗算した値となるが、この場合、測定対象と基準対象とが略横並び状態にあることを前提としている。言い換えれば、撮影位置から測定対象(建物)までの距離と、基準対象(人物)までの距離が略同一であることを前提としたものであり、その算出値はおおよそのサイズとなる。そして、モニタ画像の固定表示を解除すると共に(ステップB13)、算出した実サイズを当該測定対象に対応付けてモニタ画面に案内表示させる(ステップB14)。なお、図2の例では、測定対象(人物)の背丈として「140cm」が表示される。   The actual size of the measurement target calculated in this way is a value obtained by multiplying the ratio of the image size by the actual size of the reference target. In this case, it is assumed that the measurement target and the reference target are substantially in a side-by-side state. It is said. In other words, it is assumed that the distance from the shooting position to the measurement target (building) and the distance to the reference target (person) are substantially the same, and the calculated value is an approximate size. Then, the fixed display of the monitor image is canceled (step B13), and the calculated actual size is associated with the measurement target and displayed on the monitor screen (step B14). In the example of FIG. 2, “140 cm” is displayed as the height of the measurement target (person).

ここで、サイズ測定の終了ボタンが操作された場合には(ステップB15でYES)、このフローから抜けて通常状態に戻るが、終了指示が無ければ、ステップB16に移り、モニタ画像を取得してモニタ表示させると共に(ステップB17)、このモニタ画像を一時固定させる(ステップB18)。この状態において、上述の場合と同様、モニタ画像全体を解析することによってその中心部分に位置している被写体画像を測定対象として特定し(ステップB19)、今回特定した測定対象と前回特定した測定対象とを比較して同一か否かをチェックする(ステップB20)。ここで、前回と同一であれば、モニタ画像の固定表示を解除した後(ステップB21)、終了操作に応答して(ステップB22)、このフローから抜けて通常状態に戻るが、終了指示が無ければ、ステップB16に戻って次のモニタ画像を取得し、以下、上述の動作を繰り返す。   If the size measurement end button is operated (YES in step B15), the process exits from this flow and returns to the normal state. If there is no end instruction, the process proceeds to step B16 to obtain a monitor image. The monitor image is displayed (step B17), and the monitor image is temporarily fixed (step B18). In this state, as in the case described above, by analyzing the entire monitor image, the subject image located at the center portion is specified as the measurement target (step B19), and the measurement target specified this time and the measurement target specified last time are specified. To check whether or not they are the same (step B20). Here, if it is the same as the previous time, after canceling the fixed display of the monitor image (step B21), in response to the end operation (step B22), the process exits this flow and returns to the normal state, but there is no end instruction. For example, the process returns to step B16 to acquire the next monitor image, and the above operation is repeated thereafter.

いま、今回と前回の測定対象が異なる場合には(ステップB20でYES)、上述のステップB3に戻って基準対象の特定を行う。ここで、モニタ画像内の測定対象が図2の状態から図6の状態に変化した場合、つまり、次の人物が登場した場合には、今回と前回の測定対象が異なることが検出されるため、ステップB3に移るが、この場合においてもドアが基準対象として特定される。以下、上述と同様、測定対象の実サイズ算出および表示処理が行われる。この場合、図6の例では、今回の測定対象(人物)の背丈として「185cm」が表示される。   If the current measurement object is different from the previous measurement object (YES in step B20), the process returns to step B3 to specify the reference object. Here, when the measurement object in the monitor image changes from the state of FIG. 2 to the state of FIG. 6, that is, when the next person appears, it is detected that the current measurement object is different from the previous measurement object. In step B3, the door is specified as the reference object. Thereafter, the actual size calculation and display processing of the measurement target is performed as described above. In this case, in the example of FIG. 6, “185 cm” is displayed as the height of the current measurement target (person).

以上のように、この第1実施例においては、実撮影を行う前にカメラ撮影部7から逐次取得したモニタ画像を解析することによってその中に含まれている被写体(測定対象)を画像認識した後に当該被写体の実サイズを取得するサイズ算出処理を行うと共に、この被写体の実サイズを当該モニタ画像内に表示するサイズ表示処理を行う過程において、CPU1は、カメラ撮影部7から新たなモニタ画像を取得した際に、前回のモニタ画像内に存在していない新たな被写体が今回のモニタ画像内に含まれていることを検出する毎に、当該新たな被写体に対してサイズ算出処理およびサイズ表示処理の実行を指示するようにしたから、モニタ画像を逐次解析することによって被写体の実サイズを測定することができると共に、新たな被写体が検出される毎に、その実サイズをリアルタイムに測定することができる。例えば、モニタ画像を逐次取得しながら画像解析を行った結果、モニタ画像の変化によって新たな被写体が出現(人物等が登場)した際に、その人物等の実サイズを即座に測定することができる。なお、モニタ画像内に複数の被写体が出現した際には、各被写体毎にその実サイズを測定することができる。   As described above, in the first embodiment, the subject (measurement target) included in the image is recognized by analyzing the monitor image sequentially acquired from the camera photographing unit 7 before actual photographing. In the process of performing size calculation processing for acquiring the actual size of the subject later and performing size display processing for displaying the actual size of the subject in the monitor image, the CPU 1 obtains a new monitor image from the camera photographing unit 7. Each time it is detected that a new subject that is not present in the previous monitor image is included in the current monitor image, the size calculation process and the size display process are performed on the new subject. Since it is instructed to execute the monitor, it is possible to measure the actual size of the subject by sequentially analyzing the monitor image and to detect a new subject. Each is, it is possible to measure the actual size in real time. For example, when image analysis is performed while sequentially acquiring monitor images, when a new subject appears due to a change in the monitor image (a person or the like appears), the actual size of the person or the like can be measured immediately. . When a plurality of subjects appear in the monitor image, the actual size can be measured for each subject.

この場合、CPU1は、モニタ画像を解析することによってその中心部分に位置している画像部分を測定対象として特定するようにしたから、画像解析することによって測定対象の自動特定が可能となり、特別な操作が不要となると共に、測定対象を確実に特定することが可能となる。この場合、撮影方向を変えたり、被写体の移動によって新たな測定対象が出現する都度、新たな測定対象をマニュアル指定することなく、その実サイズを算出することができる。   In this case, the CPU 1 analyzes the monitor image so as to specify the image portion located in the central portion as the measurement target, so that the measurement target can be automatically specified by analyzing the image. The operation becomes unnecessary, and the measurement object can be specified reliably. In this case, every time a new measurement target appears due to a change in the shooting direction or movement of the subject, the actual size can be calculated without manually specifying the new measurement target.

また、基準対象を特定する際、基準対象テーブル11に登録されている複数種の基準対象の何れかに特徴的に一致する画像部分を基準対象として特定し、また、この基準対象の実サイズを取得する際には、当該基準対象に対応する実サイズを基準対象テーブル11から読み出し取得するようにしたから、モニタ画像を解析することによって基準対象の自動特定が可能となると共に、基準対象の実サイズの自動取得が可能となり、特別な操作が不要となる。   Further, when specifying the reference object, an image portion that characteristically matches any of a plurality of types of reference objects registered in the reference object table 11 is specified as the reference object, and the actual size of the reference object is determined. At the time of acquisition, the actual size corresponding to the reference object is read from the reference object table 11 and acquired. Therefore, by automatically analyzing the monitor image, the reference object can be automatically specified and the actual size of the reference object can be obtained. The size can be automatically acquired, and no special operation is required.

モニタ画像内において測定対象、基準対象が特定されている状態において、CPU1は、特定された基準対象の実サイズを取得すると共に、このモニタ画像を解析することによって測定対象、基準対象毎にその画像サイズを算出し、この各算出サイズと基準対象の実サイズに基づいて当該測定対象の実サイズを算出するようにしたから、測定対象の実サイズは、簡単な計算式、つまり、測定対象、基準対象の画像サイズの比率に基準対象の実サイズを乗算することによって算出することができる。   In a state in which the measurement target and the reference target are specified in the monitor image, the CPU 1 acquires the actual size of the specified reference target and analyzes the monitor image for each measurement target and reference target. Since the size was calculated and the actual size of the measurement target was calculated based on each calculated size and the actual size of the reference target, the actual size of the measurement target was calculated using a simple formula: It can be calculated by multiplying the ratio of the target image size by the actual size of the reference target.

サイズ算出処理に先立ってCPU1は、測定対象である被写体の実サイズを測定可能か否かを判別し、測定可能であれば、それを条件としてサイズ算出処理を実行開始し、測定不可能であれば、その旨を報知するようにしたから、ユーザ対話方式による使い勝手の向上を期待することができる。
更に、測定対象が含まれているモニタ画像が表示されている状態において、このモニタ画像内に当測定対象に対応付けてその実サイズを表示するようにしたから、モニタ画面内で実サイズを確認しながらその測定対象を見ることができる。
(実施例2)
Prior to the size calculation process, the CPU 1 determines whether or not the actual size of the subject to be measured can be measured. If the measurement is possible, the CPU 1 starts executing the size calculation process on the condition that the measurement is impossible. In this case, since the fact is notified, it is possible to expect improvement in usability by the user interaction method.
In addition, while the monitor image containing the measurement target is displayed, the actual size is displayed in association with the measurement target in the monitor image, so the actual size is confirmed on the monitor screen. You can see the measurement object.
(Example 2)

以下、この発明の第2実施例について図7〜図14を参照して説明する。
なお、上述した第1実施例においては、カメラ撮影部7から逐次取得したモニタ画像を解析することによって被写体の実サイズを測定する際に、新たな被写体(測定対象)が検出される毎に、その実サイズをリアルタイムに測定するようにしたが、この第2実施例においては、過去のモニタ画像の取得時にサイズ測定が不能となったサイズ未測定の被写体(測定対象)が検出される毎に、その実サイズを測定するようにしたものである。
ここで、両実施例において基本的あるいは名称的に同一のものは、同一符号を付して示し、その説明を省略すると共に、以下、第2実施例の特徴部分を中心に説明するものとする。
A second embodiment of the present invention will be described below with reference to FIGS.
In the first embodiment described above, each time a new subject (measurement target) is detected when measuring the actual size of the subject by analyzing the monitor images sequentially acquired from the camera photographing unit 7, The actual size is measured in real time, but in this second embodiment, every time an unmeasured subject (measurement target) whose size measurement has become impossible when a past monitor image is acquired is detected, The actual size is measured.
Here, the same or the same names in both embodiments are denoted by the same reference numerals, the description thereof will be omitted, and the following description will focus on the features of the second embodiment. .

図7は、この第2実施例におけるデジタルカメラの基本的構成要素を示したブロック図である。
このデジタルカメラは、撮影位置から被写体までの距離を計測する距離センサ機能(オートフォーカス機能)を有している他、被写体サイズの測定が指示された際に、この被写体をモニタ撮影したデジタル画像を解析することによって被写体の実サイズを測定してモニタ画面に表示するサイズ測定機能を有している。すなわち、このデジタルカメラは、上述したCPU1、記憶部2、ワークメモリ3、記録媒体4、操作部5、表示部6、カメラ撮影部7、画像メモリ8の他、距離センサ9を有している。距離センサ9は、通常のオートフォーカス機能と同様、例えば、三角測量法(例えば、アクティブタイプ/パッシブタイプなど)によってレンズ位置から被写体までの距離を自動計測するもので、この計測距離はデジタル値に変換されてCPU1に与えられる。この場合、CPU1は、距離センサ9によって得られた測定距離と、モニタ画像を解析することによって得られた測定対象の画像サイズと、カメラレンズの焦点距離に基づいて当該測定対象の実サイズを算出するようにしている。
FIG. 7 is a block diagram showing the basic components of the digital camera in the second embodiment.
This digital camera has a distance sensor function (autofocus function) that measures the distance from the shooting position to the subject, and when a measurement of the subject size is instructed, a digital image obtained by monitoring the subject is displayed. It has a size measurement function that measures the actual size of the subject by analysis and displays it on the monitor screen. That is, this digital camera has a distance sensor 9 in addition to the CPU 1, the storage unit 2, the work memory 3, the recording medium 4, the operation unit 5, the display unit 6, the camera photographing unit 7, and the image memory 8 described above. . The distance sensor 9 automatically measures the distance from the lens position to the subject by, for example, triangulation (for example, active type / passive type) as in the normal autofocus function, and this measurement distance is converted to a digital value. It is converted and given to CPU1. In this case, the CPU 1 calculates the actual size of the measurement object based on the measurement distance obtained by the distance sensor 9, the image size of the measurement object obtained by analyzing the monitor image, and the focal length of the camera lens. Like to do.

図8は、オブジェクトテーブル12の内容を示した図である。
このオブジェクトテーブル12は、モニタ画像の解析によってその中に含まれている各被写体部分がオブジェクト画像として抽出された際に、それに関する各種の情報をオブジェクト毎に記憶管理するもので、「オブジェクトNo」、「モニタ画像位置」、「実サイズ」、「オブジェクト画像」の各項目を有している。
「オブジェクトNo」は、各オブジェクトを識別するために生成した情報であり、「モニタ画像位置」は、モニタ画面内に存在しているオブジェクトの表示位置を示している。また、「実サイズ」は、オブジェクトが基準対象の場合には、基準対象テーブル11から読み出された値であり、測定対象の場合には、サイズ算出処理によって得られた値である。「オブジェクト画像」は、モニタ画像から抽出された被写体部分の画像である。
FIG. 8 is a diagram showing the contents of the object table 12.
The object table 12 stores and manages various pieces of information for each object when each subject portion included therein is extracted as an object image by analyzing the monitor image. , “Monitor image position”, “actual size”, and “object image”.
“Object No.” is information generated to identify each object, and “Monitor Image Position” indicates the display position of the object existing in the monitor screen. The “real size” is a value read from the reference target table 11 when the object is a reference target, and is a value obtained by the size calculation process when the object is a measurement target. The “object image” is an image of the subject portion extracted from the monitor image.

次に、この第2実施例におけるデジタルカメラの動作概念を図9〜図12に示すフローチャートを参照して説明する。なお、この第2実施例においてもデジタルカメラの全体動作は、図4に示したフローチャートに従って行われる。図9〜図12は、撮影モード時にサイズ測定ボタンの操作に応じて実行されるサイズ測定処理を詳述したフローチャートである。
先ず、CPU1は、モニタ画像を取得してその全体を解析することによって人物、ドア、建物のような各被写体の画像部分をオブジェクト画像として全て抽出すると共に(図9のステップC1)、この抽出オブジェクトに関する各種の情報をオブジェクトテーブル12にセットする(ステップC2)。この場合、「オブジェクトNo」を更新生成すると共に、「モニタ画像位置」を検出し、当該オブジェクト画像と共にオブジェクトテーブル12の対応項目位置にセットする。
Next, the operation concept of the digital camera in the second embodiment will be described with reference to the flowcharts shown in FIGS. In the second embodiment as well, the entire operation of the digital camera is performed according to the flowchart shown in FIG. 9 to 12 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 obtains a monitor image and analyzes the entire image to extract all image portions of each subject such as a person, a door, and a building as object images (step C1 in FIG. 9), and this extracted object. Various kinds of information are set in the object table 12 (step C2). In this case, “object No.” is updated and generated, “monitor image position” is detected, and the object image is set in the corresponding item position of the object table 12 together with the object image.

次に、抽出オブジェクトの何れか1つのを指定し(ステップC3)、距離センサ9のフォーカスを当該指定オブジェクトに合わせながら撮影位置(レンズ位置)から指定オブジェクトまでの距離を測定するが(ステップC4)、その際、測定可能か否かを調べる(ステップC5)。例えば、撮影位置から被写体までの距離が遠過ぎるか等を考慮して測定可否の判別を行う。いま、測定可能であれば、指定オブジェクトの実サイズ算出処理に移るが(ステップC6)、測定不能であれば、実サイズ算出処理はスキップされる。   Next, any one of the extracted objects is designated (step C3), and the distance from the photographing position (lens position) to the designated object is measured while the distance sensor 9 is focused on the designated object (step C4). In this case, it is checked whether or not measurement is possible (step C5). For example, whether or not measurement is possible is determined in consideration of whether the distance from the shooting position to the subject is too long. If measurement is possible, the process proceeds to the actual size calculation process for the designated object (step C6). If measurement is not possible, the actual size calculation process is skipped.

この実サイズ算出処理は、指定オブジェクトまでの測定距離およびレンズの焦点距離を取得した後、CCD等のイメージセンタ上のモニタ画像を解析することによって指定オブジェクトの画像サイズを算出し、この測定距離、焦点距離、画像サイズに基づいて指定オブジェクトの実サイズを算出する。ここで、測定距離を「L1」、焦点距離を「L0」、画像サイズを「S1」とすると、指定オブジェクトの実サイズS2は、S2=L1/L0*S1の計算式に従って算出される。そして、この算出サイズは、オブジェクトテーブル12の対応する項目位置にセットされる(以下、同様)。   This actual size calculation process calculates the image size of the designated object by analyzing the monitor image on the image center such as a CCD after obtaining the measurement distance to the designated object and the focal length of the lens, The actual size of the designated object is calculated based on the focal length and the image size. Here, assuming that the measurement distance is “L1”, the focal distance is “L0”, and the image size is “S1”, the actual size S2 of the designated object is calculated according to the calculation formula of S2 = L1 / L0 * S1. This calculated size is set at the corresponding item position in the object table 12 (the same applies hereinafter).

以下、次のオブジェクトを指定しながら全てのオブジェクトを指定し終わるまで上述の動作を繰り返す(ステップC3〜C7)。これによって実サイズを算出することができたオブジェクトの存在有無を調べ(ステップC8)、1つも算出することができなかった場合には、通常状態に戻るが、1つでも算出することができた場合には、モニタ画面内において、そのオブジェクトの周囲を枠で囲んで識別表示すると共に、この枠の近傍にその実サイズを表示させる(ステップC9)。なお、図13は、実サイズ算出のオブジェクトが枠表示によって識別表示されると共に、この枠の近傍に算出サイズが表示された場合のモニタ画面を例示した図で、図中、矩形の破線は枠表示を示し、×××は実サイズ表示を示している(以下、同様)。   Subsequently, the above-described operation is repeated until all objects are specified while specifying the next object (steps C3 to C7). Thus, the presence / absence of an object for which the actual size could be calculated is checked (step C8), and if one cannot be calculated, the normal state is restored, but even one can be calculated. In this case, in the monitor screen, the object is identified by being surrounded by a frame, and the actual size is displayed in the vicinity of the frame (step C9). FIG. 13 is a diagram illustrating an example of a monitor screen when the actual size calculation object is identified and displayed by the frame display and the calculation size is displayed in the vicinity of the frame. Xxx indicates actual size display (the same applies hereinafter).

この状態において、図10のステップC10に移り、被写体の移動や撮影方向の変化等に伴ってモニタ画像の内容が変化したかをチェックし、前回のモニタ画像に対して画像の変化が無ければ、終了操作の有無をチェックし(ステップC11)、画像変化あるいは終了指示があるまで待機状態となる。ここで、終了指示を受けた際には、通常状態に戻るが、画像変化を検出した際には、今回のモニタ画像内から全てのオブジェクトを抽出すると共に(ステップC12)、抽出した今回の各オブジェクトとオブジェクトテーブル12にセットされている前回の各オブジェクトとを比較し(ステップC13)、前回未セットのオブジェクトの有無をチェックする(ステップC14)。つまり、前回のモニタ画像には存在せず、今回のモニタ画像に存在するオブジェクト(新たな登場オブジェクト)の有無をチェックする。   In this state, the process proceeds to step C10 in FIG. 10 to check whether the content of the monitor image has changed due to the movement of the subject or the change in the shooting direction. If there is no change in the image with respect to the previous monitor image, The presence / absence of an end operation is checked (step C11), and a standby state is entered until there is an image change or end instruction. Here, when an end instruction is received, the normal state is restored. However, when an image change is detected, all objects are extracted from the current monitor image (step C12), and each extracted current time is extracted. The object and each previous object set in the object table 12 are compared (step C13), and the presence / absence of the previously unset object is checked (step C14). That is, the presence or absence of an object (new appearance object) that does not exist in the previous monitor image but exists in the current monitor image is checked.

この結果、今回のモニタ画像内に新規オブジェクトが含まれていなければ(ステップC14でNO)、オブジェクトテーブル12を検索することによって(ステップC15)、今回未抽出のオブジェクトの有無をチェックする(ステップC16)。つまり、今回のモニタ画像に存在せず、前回のモニタ画像には存在するオブジェクト(退出オブジェクト)の有無をチェックし、退出オブジェクトが有れば、オブジェクトテーブル12から当該未抽出オブジェクト(退出オブジェクト)を削除した後(ステップC17)、後述する図12のステップC24に移る。   As a result, if a new object is not included in the current monitor image (NO in step C14), the object table 12 is searched (step C15) to check the presence / absence of an object not extracted this time (step C16). ). In other words, the presence or absence of an object (exit object) that does not exist in the current monitor image but exists in the previous monitor image is checked. If there is an exit object, the unextracted object (exit object) is extracted from the object table 12. After deletion (step C17), the process proceeds to step C24 in FIG.

一方、今回のモニタ画像内に新規オブジェクトが登場した際には(ステップC14でYES)、図11のステップC18に移り、当該未セットオブジェクト画像(新規オブジェクト)をオブジェクトテーブル12に追加登録した後、今回のモニタ画像内において、この追加オブジェクト(新規オブジェクト)の画像部分を指定する(ステップC19)。そして、距離センサ9のフォーカスを当該指定オブジェクトに合わせながら撮影位置から指定オブジェクトまでの距離を測定して(ステップC20)、測定可否を調べ(ステップC21)、測定可能であることを条件に、上述した計算式に従って指定オブジェクトの実サイズを算出する(ステップC22)。この場合、追加オブジェクトが複数存在している場合には、全ての追加オブジェクトを1つずつ指定しながらその実サイズを算出する処理を繰り返す(ステップC19〜C23)。   On the other hand, when a new object appears in the current monitor image (YES in step C14), the process proceeds to step C18 in FIG. 11 and after the unset object image (new object) is additionally registered in the object table 12, In the current monitor image, the image portion of the additional object (new object) is designated (step C19). Then, the distance from the shooting position to the designated object is measured while adjusting the focus of the distance sensor 9 to the designated object (step C20), the measurement possibility is checked (step C21), and the condition is that the measurement is possible. The actual size of the designated object is calculated according to the calculated formula (step C22). In this case, when there are a plurality of additional objects, the process of calculating the actual size is repeated while designating all the additional objects one by one (steps C19 to C23).

これによって全ての追加オブジェクトを指定し終わった場合には(ステップC23でYES)、図12のステップC24に移る。ここで、オブジェクトテーブル12を検索し、サイズ未算出のオブジェクトの有無をチェックする(ステップC25)。すなわち、過去のモニタ画像の取得時に遠過ぎる等の理由でサイズ測定が不可能となったオブジェクトであっても、この被写体の移動や撮影方向の変化によって今回の画像取得時に測定可能と判断される場合があるため、過去において測定不可と判別されたサイズ未算出のオブジェクトが有れば(ステップC25でYES)、モニタ画像内で当該未算出のオブジェクトの画像部分を指定した後に(ステップC26)、この指定オブジェクトまでの距離を測定し(ステップC27)、測定可能であることを条件に(ステップC28でYES)、上述した計算式に従って当該指定オブジェクトの実サイズを算出する(ステップC29)。以下、全ての未算出オブジェクトを指定し終わるまで上述の動作を繰り返す(ステップC26〜C30)。   When all the additional objects have been specified (YES in step C23), the process proceeds to step C24 in FIG. Here, the object table 12 is searched to check whether there is an object whose size has not been calculated (step C25). In other words, even if the object cannot be measured for size because it is too far when acquiring a past monitor image, it is determined that it can be measured when acquiring the current image due to the movement of the subject or the change in the shooting direction. If there is an uncalculated object that has been determined to be unmeasurable in the past (YES in step C25), after designating the image portion of the uncalculated object in the monitor image (step C26), The distance to the designated object is measured (step C27), and on the condition that it can be measured (YES in step C28), the actual size of the designated object is calculated according to the above formula (step C29). Thereafter, the above-described operation is repeated until all the uncalculated objects are designated (steps C26 to C30).

これによってサイズ未算出のオブジェクトの実サイズを算出する処理が終了した場合(ステップC30でYES)あるいは上述したステップC25でサイズ未算出のオブジェクトが無いことが検出された場合には、ステップC31に移り、モニタ画面内において今回のモニタ画像内に含まれている全てのオブジェクトの現在表示位置を検出し、当該各オブジェクトの周囲を枠で囲んで識別表示すると共に、この枠の近傍に算出サイズを表示させる。なお、図14に示すように、実サイズ算出済みのオブジェクト(被写体)が移動した場合には、この移動に伴って当該実サイズの表示も移動される。   When the processing for calculating the actual size of the object whose size has not been calculated is completed (YES in step C30) or when it is detected in step C25 that there is no object whose size has not been calculated, the process proceeds to step C31. In the monitor screen, the current display positions of all objects included in the current monitor image are detected, the surroundings of the objects are surrounded by a frame, and the calculated size is displayed in the vicinity of the frame. Let As shown in FIG. 14, when the object (subject) for which the actual size has been calculated moves, the display of the actual size is also moved along with this movement.

以上のように、この第2実施例においてCPU1は、カメラ撮影部7から逐次取得した各モニタ画像を解析することによって各オブジェクトを画像認識し、現時点までに画像認識された各オブジェクトと今回のモニタ画像内のオブジェクトとを比較することによって、過去のモニタ画像の取得時にサイズ測定が不能となったサイズ未測定のオブジェクトが今回のモニタ画像内に含まれていることが検出される毎に、その実サイズを測定すると共に、この実サイズを今回のモニタ画像内において当該オブジェクトに対応付けて表示するようにしたから、モニタ画像の逐次解析によってオブジェクトの実サイズを測定することができると共に、過去のモニタ画像の取得時にサイズ測定が不能となったオブジェクトであっても、今回のモニタ画像に当該オブジェクトが含まれていれば、そのサイズを測定することが可能となる。なお、モニタ画像内にサイズ未測定のオブジェクトが複数存在していれば、各オブジェクト毎にその実サイズを測定することができる。   As described above, in the second embodiment, the CPU 1 recognizes each object by analyzing each monitor image sequentially acquired from the camera photographing unit 7, and recognizes each object image-recognized so far and the current monitor. Each time it is detected that an object of unmeasured size that has become impossible to measure the size at the time of acquisition of the past monitor image is included in the current monitor image by comparing with the object in the image. In addition to measuring the size and displaying the actual size in association with the object in the current monitor image, the actual size of the object can be measured by sequential analysis of the monitor image, and past monitors Even if the object is not available for size measurement at the time of image acquisition, If it contains the object, it is possible to measure its size. If there are a plurality of unmeasured objects in the monitor image, the actual size can be measured for each object.

この場合、モニタ画面内において、実サイズ算出のオブジェクトの周囲を枠で囲んで識別表示すると共に、この枠の近傍にその算出サイズを表示させるようにしたから、測定対象のオブジェクトとその実サイズとの対応関係が明瞭となる。また、退出オブジェクト(未抽出オブジェクト)をオブジェクトテーブル12から削除するようにしたから、現在のモニタ画像内のオブジェクトに限ってその実サイズを表示することができる。   In this case, on the monitor screen, the actual size calculation object is surrounded and surrounded by a frame, and the calculated size is displayed in the vicinity of the frame, so that the object to be measured and its actual size are displayed. Correspondence becomes clear. Further, since the exit object (unextracted object) is deleted from the object table 12, the actual size can be displayed only for the object in the current monitor image.

また、モニタ画像内のオブジェクトの表示位置を検出すると共に、このオブジェクトの表示位置と当該オブジェクトの実サイズとを対応付けて記憶保持しておき、このオブジェクトの表示位置が移動したことが検出された際に、移動先の表示位置に対応付けて当該オブジェクトの実サイズを表示するようにしたから、モニタ画像を逐次取得しながら画像解析を行った結果、モニタ画像内でオブジェクトが移動した場合でもそれに追随した実サイズ表示が可能となると共に、サイズ確認を行いながらそのオブジェクトを見ることができる。   Further, the display position of the object in the monitor image is detected, and the display position of the object and the actual size of the object are stored in association with each other, and it is detected that the display position of the object has moved. At this time, since the actual size of the object is displayed in association with the display position of the movement destination, image analysis is performed while sequentially acquiring monitor images. The following actual size can be displayed, and the object can be viewed while checking the size.

なお、上述した第2実施例においては、距離センサ9によって得られた測定距離と、モニタ画像を解析することによって得られた測定対象の画像サイズと、カメラレンズの焦点距離に基づいて当該測定対象の実サイズを算出するようにしたが、上述した第1実施例と同様、基準対象の実サイズを取得した後、モニタ画像を解析することによって測定対象、基準対象毎にその画像サイズを算出し、この各算出サイズと基準対象の実サイズに基づいて当該測定対象の実サイズを算出するようにしてもよい。図15および図16は、この場合のサイズ算出を説明するための図である。   In the second embodiment described above, the measurement object is based on the measurement distance obtained by the distance sensor 9, the image size of the measurement object obtained by analyzing the monitor image, and the focal length of the camera lens. As in the first embodiment, after obtaining the actual size of the reference object, the monitor image is analyzed to calculate the image size for each measurement object and reference object. The actual size of the measurement target may be calculated based on each calculated size and the actual size of the reference target. 15 and 16 are diagrams for explaining the size calculation in this case.

図15は、この第2実施例における基準対象テーブル11の内容を示した図である。
この基準対象テーブル11は、上述と同様に、予め任意に登録された基準対象毎にその実サイズデータを記憶管理するもので、実サイズデータは、その「縦寸法」、「横寸法」の他、「奥行き寸法」から構成されている。この場合においても、CPU1は、「縦寸法」、「横寸法」、「奥行き寸法」のうち、どの方向の実サイズを読み出すかは、予め任意に選択指定可能となっており、CPU1は、この指定内容を参照することによって該当する方向の実サイズを読み出すようにしている。
FIG. 15 is a diagram showing the contents of the reference target table 11 in the second embodiment.
As described above, the reference object table 11 stores and manages the actual size data for each reference object arbitrarily registered in advance. The actual size data includes the “vertical dimension”, the “horizontal dimension”, It consists of “depth dimensions”. Also in this case, the CPU 1 can arbitrarily select and specify in advance which direction the actual size is read out of “vertical dimension”, “horizontal dimension”, and “depth dimension”. By referring to the specified contents, the actual size in the corresponding direction is read out.

図16は、測定対象のオブジェクトの実サイズを算出する処理を示したフローチャートである。
先ず、CPU1は、モニタ画像内の全てのオブジェクトを1つずつ指定するために何れか1つの未指定オブジェクトを測定対象のオブジェクトとして指定した後(ステップD1)、この指定オブジェクトに基づいて基準対象テーブル11を検索し(ステップD2)、この指定オブジェクト(測定対象)は、予め基準対象として登録されているかを調べる(ステップD3)。ここで、指定オブジェクト自体が基準対象であれば(ステップD3でYES)、基準対象テーブル11から当該実サイズを読み出してオブジェクトテーブル12の対応位置にセットする(ステップD4)。従って、指定オブジェクトが基準対象であれば、その実サイズは基準対象テーブル11から読み出された値となる。
FIG. 16 is a flowchart showing processing for calculating the actual size of the object to be measured.
First, the CPU 1 designates any one undesignated object as an object to be measured in order to designate all the objects in the monitor image one by one (step D1), and then the reference object table based on the designated object. 11 is searched (step D2), and it is checked whether or not this designated object (measurement object) is registered in advance as a reference object (step D3). If the designated object itself is a reference target (YES in step D3), the actual size is read from the reference target table 11 and set at a corresponding position in the object table 12 (step D4). Therefore, if the designated object is a reference target, the actual size is a value read from the reference target table 11.

以下、モニタ画像内の全オブジェクトを指定し終わるまで上述の動作を繰り返すが(ステップD1〜D5)、指定オブジェクトが基準対象でなければ(ステップD3でNO)、モニタ画像から指定オブジェクトに対して略横並びの他のオブジェクトを抽出すると共に、この抽出オブジェクトに基づいて基準対象テーブル11を検索し(ステップD6)、基準対象として登録されているかをチェックする(ステップD7)。ここで、この他のオブジェクトも基準対象でなければ、指定オブジェクトを測定不能とするためにステップD5に戻るが、基準対象テーブル11に登録されている基準対象であれば、基準対象テーブル11から当該実サイズ「J0」を読み出す(ステップD8)。次に、モニタ画像を解析することによって基準対象の画像サイズ「G0」を計測すると共に(ステップD9)、指定オブジェクト(測定対象)の画像サイズ「G1」を計測する(ステップD10)。   Thereafter, the above-described operation is repeated until all the objects in the monitor image have been designated (steps D1 to D5), but if the designated object is not the reference target (NO in step D3), the monitor image is omitted from the designated object. While extracting other objects arranged side by side, the reference object table 11 is searched based on this extracted object (step D6), and it is checked whether it is registered as a reference object (step D7). If any other object is not a reference target, the process returns to step D5 in order to make the designated object unmeasurable, but if it is a reference target registered in the reference target table 11, the reference target table 11 The actual size “J0” is read (step D8). Next, the reference target image size “G0” is measured by analyzing the monitor image (step D9), and the image size “G1” of the designated object (measurement target) is measured (step D10).

これによって基準対象の実サイズJ0および画像サイズG0と、指定オブジェクトの画像サイズG1が全て揃ったらこれらの値をパラメータとして測定対象の実サイズJ1を求める算出処理を行う(ステップD11)。
指定オブジェクトの実サイズJ1=G1/G0*J0
これによって算出された指定オブジェクトの実サイズは、オブジェクトテーブル12の対応する項目位置にセットされる(ステップD12)。そして、ステップD5に戻り、以下、上述の動作を繰り返す。
As a result, when all of the actual size J0 and the image size G0 of the reference target and the image size G1 of the designated object are obtained, a calculation process is performed to obtain the actual size J1 of the measurement target using these values as parameters (step D11).
Actual size of the specified object J1 = G1 / G0 * J0
The actual size of the designated object calculated in this way is set at the corresponding item position in the object table 12 (step D12). And it returns to step D5 and repeats the above-mentioned operation | movement below.

一方、上述した第1実施例においては、基準対象の実サイズを取得した後、モニタ画像を解析することによって測定対象、基準対象毎にその画像サイズを算出し、この各算出サイズと基準対象の実サイズに基づいて当該測定対象の実サイズを算出するようにしたが、上述した第2実施例と同様、距離センサによって得られた測定距離と、モニタ画像を解析することによって得られた測定対象の画像サイズと、カメラレンズの焦点距離に基づいて当該測定対象の実サイズを算出するようにしてもよい。
更に、モニタ画面内において、測定対象の周囲を枠で囲んで識別表示すると共に、この枠の近傍にその実サイズを表示させるようにしてもよい。
On the other hand, in the first embodiment described above, after acquiring the actual size of the reference object, the monitor image is analyzed to calculate the image size for each measurement object and reference object. Although the actual size of the measurement object is calculated based on the actual size, the measurement object obtained by analyzing the measurement distance obtained by the distance sensor and the monitor image as in the second embodiment described above. The actual size of the measurement target may be calculated based on the image size and the focal length of the camera lens.
Further, in the monitor screen, the measurement object may be surrounded and surrounded by a frame for identification display, and the actual size may be displayed near the frame.

上述した第1および第2実施例においては、測定対象と基準対象とが同一平面上にある場合を想定したが、測定対象と基準対象との高さが異なる場合であっても、測定対象の実サイズを測定することができる。この場合、上述した実施例においては、モニタ画像内において測定対象および基準対象の大きさを特定するようにしたから、測定対象と基準対象との高さが異なっていても測定対象の実サイズを測定することが可能となる。   In the first and second embodiments described above, it is assumed that the measurement object and the reference object are on the same plane. However, even if the measurement object and the reference object have different heights, the measurement object The actual size 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.

上述した第1および第2実施例においては、シャッター操作に応答して撮影画像を記録保存する際に、測定対象の実サイズを併せて記録保存するようにすれば、画像再生時にその撮影画像に対応付けられている測定対象の実サイズを読み出して表示することができる。更に、撮影画像毎にその測定対象の実サイズを付加して記録媒体に保存しておき、この記録媒体をパーソナルコンピュータ等の画像データ処理装置に投入して画像再生を行うようにすれば、撮影画像毎にその測定対象の実サイズを表示することができる。   In the first and second embodiments described above, when a captured image is recorded and stored in response to a shutter operation, if the actual size of the measurement target is recorded and stored together, the captured image is displayed during image reproduction. It is possible to read and display the actual size of the measurement object associated therewith. Further, the actual size of the object to be measured 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.

また、上述した第1および第2実施例においては、基準対象テーブル11に複数種の基準対象の画像データを任意に登録するようにしたが、例えば、道路標識、郵便ポスト、消火栓などのように、そのサイズが固定しているものにあっては、それを撮影した撮影画像自体を登録せず、この比較基準の特徴的な情報(例えば、郵便ポストであれば、立方体、縦横比、全体が赤色)を登録するようにしてもよい。また、基準対象テーブル11の内容は、製品購入時に設定登録されているものであってもよく、必要に応じてユーザが任意の基準対象とその実サイズを追加登録するようにしてもよい。   Further, in the first and second embodiments described above, image data of a plurality of types of reference objects are arbitrarily registered in the reference object table 11, but for example, road signs, postboxes, fire hydrants, etc. If the size is fixed, the captured image itself is not registered, but the characteristic information of this comparison standard (for example, a postbox, cube, aspect ratio, overall (Red) may be registered. 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 the image at the company, measure and display the actual size of each part 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 a wired transmission path such as a communication line or cable, or radio 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 computer-readable recording medium having a program code, and a function of recognizing an object included in a recording medium by analyzing a captured image sequentially acquired from a camera photographing unit before actual photographing A function for performing processing for acquiring the actual size of the recognized subject, a function for performing processing for displaying the actual size of the subject obtained by the size acquisition processing in the captured image, and a new function from the camera photographing unit. Each time it is detected that a new subject that does not exist in the previous captured image is included in the current captured image when the captured image is acquired, the size acquisition process is performed on the new subject. And a computer-readable recording medium storing a program for realizing a function for instructing execution of size display processing It may be.

また、コンピュータが読み取り可能なプログラムコードを有する記録媒体であって、カメラ撮影部から逐次取得した各撮影画像を解析することによってその中に含まれている被写体を画像認識する機能と、現時点までに画像認識された各被写体と今回の撮影画像内の被写体とを比較することによって、過去の撮影画像の取得時にサイズ測定が不能となったサイズ未測定の被写体が今回の撮影画像内に含まれているかを判別する機能と、サイズ未測定の被写体が検出される毎に、その実サイズを測定する機能と、この実サイズを今回の撮影画像内において当該被写体に対応付けて表示する機能とを実現させるためのプログラムを記録したコンピュータが読み取り可能な記録媒体を提供するようにしてもよい。   In addition, a computer-readable recording medium having a program code, and a function of recognizing a subject included in the recording image by sequentially analyzing each captured image acquired from the camera imaging unit, and so far By comparing each subject that has been image-recognized with the subject in the current captured image, the subject that has not been measured in size when the past captured image was acquired is included in the current captured image. And a function for measuring the actual size each time an unmeasured subject is detected, and a function for displaying the actual size in association with the subject in the current captured image. It is also possible to provide a computer-readable recording medium on which a program for recording is recorded.

デジタルカメラの基本的構成要素を示したブロック図。The block diagram which showed the basic component of the digital camera. 撮影画像内においてサイズ測定の対象となる測定対象(人物画像)Aと、この測定対象Aと比較される基準対象の画像(ドア画像)Bを説明するための図。The figure for demonstrating the measurement object (person image) A used as the object of size measurement in a picked-up image, and the image (door image) B of the reference | standard object compared with this measurement object A. FIG. 基準対象テーブル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. 図2の状態において、モニタ画像内に測定対象として次の人物が登場した場合を例示した図。The figure which illustrated the case where the next person appeared as a measuring object in a monitor image in the state of FIG. 第2実施例におけるデジタルカメラの基本的構成要素を示したブロック図。The block diagram which showed the basic component of the digital camera in 2nd Example. 第2実施例におけるオブジェクトテーブル12の内容を示した図。The figure which showed the content of the object table 12 in 2nd Example. 第2実施例において、撮影モード時にサイズ測定ボタンの操作に応じて実行されるサイズ測定処理を詳述したフローチャート。9 is a flowchart detailing a size measurement process executed in response to an operation of a size measurement button in the shooting mode in the second embodiment. 図9に続く、サイズ測定処理を詳述したフローチャート。FIG. 10 is a flowchart illustrating the size measurement process in detail following FIG. 9. 図10に続く、サイズ測定処理を詳述したフローチャート。FIG. 11 is a flowchart illustrating the size measurement process in detail following FIG. 10. 図11、図9に続く、サイズ測定処理を詳述したフローチャート。FIG. 10 is a flowchart detailing the size measurement process following FIG. 11 and FIG. 9; FIG. 第2実施例において、実サイズ算出のオブジェクトが枠表示によって識別表示されると共に、この枠の近傍に算出サイズが表示された場合のモニタ画面を例示した図。The figure which illustrated the monitor screen in case the calculated size is displayed in the vicinity of this frame while the object of actual size calculation is identified and displayed by the frame display in the second embodiment. 第2実施例において、実サイズ算出済みのオブジェクトが移動した場合に、それに追随して実サイズ表示が移動することを示したモニタ画面を例示した図。The figure which illustrated the monitor screen which showed that the actual size display moved according to it, when the object for which actual size was calculated in the 2nd example moved. 第2実施例の変形応用例における基準対象テーブル11の内容を示した図。The figure which showed the content of the reference | standard object table 11 in the modification application example of 2nd Example. 第2実施例の変形応用例において、測定対象のオブジェクトの実サイズを算出する処理を示したフローチャート。The flowchart which showed the process which calculates the actual size of the object of a measurement object in the modification application example of 2nd Example.

符号の説明Explanation of symbols

1 CPU
2 記憶部
4 記録媒体
5 操作部
6 表示部
7 カメラ撮影部
8 画像メモリ
11 基準対象テーブル
12 オブジェクトテーブル
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 12 object table

Claims (11)

カメラ撮影部から取得した撮影画像の中に含まれている被写体の実サイズを測定するカメラ撮影装置であって、
実撮影を行う前にカメラ撮影部から逐次取得した撮影画像を解析することによってその中に含まれている被写体を画像認識する認識手段と、
この認識手段によって認識された被写体の実サイズを取得する処理を行うサイズ取得処理手段と、
このサイズ取得処理によって得られた被写体の実サイズを当該撮影画像内に表示する処理を行うサイズ表示処理手段と、
カメラ撮影部から新たな撮影画像を取得した際に、前回の撮影画像内に存在していない新たな被写体が今回の撮影画像内に含まれていることを検出する毎に、当該新たな被写体に対して前記サイズ取得処理およびサイズ表示処理の実行を指示する制御手段と、
を具備したことを特徴とするカメラ撮影装置。
A camera photographing device for measuring an actual size of a subject included in a photographed image acquired from a camera photographing unit,
Recognizing means for recognizing the subject included in the image by analyzing the captured images sequentially acquired from the camera photographing unit before actual photographing,
Size acquisition processing means for performing processing for acquiring the actual size of the subject recognized by the recognition means;
Size display processing means for performing processing for displaying the actual size of the subject obtained by the size acquisition processing in the captured image;
Each time a new photographed image is acquired from the camera photographing unit, a new subject that does not exist in the previous photographed image is detected to be included in the current photographed image. Control means for instructing execution of the size acquisition processing and size display processing;
A camera photographing apparatus comprising:
前記サイズ取得処理に先立って、測定対象である被写体の実サイズを測定可能か否かを判別する判別手段を設け、
この判別手段によって測定可能であることが判別された際に、それを条件としてサイズ取得処理を実行開始し、測定不可能であることが判別された際に、その旨を報知する、
ようにしたことを特徴とする請求項1記載のカメラ撮影装置。
Prior to the size acquisition process, provided with a determination means for determining whether or not the actual size of the subject to be measured can be measured,
When it is determined that measurement is possible by this determination means, the size acquisition process is started on the condition, and when it is determined that measurement is impossible, the fact is notified,
The camera photographing apparatus according to claim 1, wherein the camera photographing apparatus is configured as described above.
前記認識手段は、撮影画像を解析することによってその中に含まれている各被写体のうち、所定領域内に含まれている被写体を測定対象として認識する、
ようにしたことを特徴とする請求項1記載のカメラ撮影装置。
The recognizing unit recognizes a subject included in a predetermined area as a measurement target among each subject included in the captured image by analyzing the captured image.
The camera photographing apparatus according to claim 1, wherein the camera photographing apparatus is configured as described above.
前記サイズ表示処理は、測定対象が含まれている撮影画像が表示されている状態において、この撮影画像内に当測定対象に対応付けてその実サイズを表示する、
ようにしたことを特徴とする請求項1記載のカメラ撮影装置。
The size display process displays the actual size in association with the measurement target in the captured image in a state where the captured image including the measurement target is displayed.
The camera photographing apparatus according to claim 1, wherein the camera photographing apparatus is configured as described above.
カメラ撮影部から取得した撮影画像の中に含まれている被写体の実サイズを測定するカメラ撮影装置であって、
カメラ撮影部から逐次取得した各撮影画像を解析することによってその中に含まれている被写体を画像認識する認識手段と、
この認識手段によって現時点までに画像認識された各被写体と今回の撮影画像内の被写体とを比較することによって、過去の撮影画像の取得時にサイズ測定が不能となったサイズ未測定の被写体が今回の撮影画像内に含まれているかを判別する判別手段と、
この判別手段によってサイズ未測定の被写体が検出される毎に、その実サイズを測定するサイズ測定手段と、
このサイズ測定手段によって得られた実サイズを今回の撮影画像内において当該被写体に対応付けて表示する表示手段と、
を具備したことを特徴とするカメラ撮影装置。
A camera photographing device for measuring an actual size of a subject included in a photographed image acquired from a camera photographing unit,
Recognizing means for recognizing the subject included in the image by analyzing each captured image sequentially acquired from the camera photographing unit;
By comparing each subject that has been image-recognized by this recognition means with the subject in the current captured image, an unmeasured subject whose size cannot be measured when acquiring a past captured image is A discriminating means for discriminating whether the image is included in the captured image;
Each time an unmeasured subject is detected by the determining means, a size measuring means for measuring the actual size,
Display means for displaying the actual size obtained by the size measuring means in association with the subject in the current captured image;
A camera photographing apparatus comprising:
前記認識手段によって認識された複数の被写体の中からサイズ測定の対象となる測定対象を特定すると共に、この測定対象と比較される基準対象を特定する特定手段を設け、
前記特定された基準対象の実サイズを取得すると共に、撮影画像を解析することによって測定対象、基準対象毎にその画像サイズを算出し、この各算出サイズと基準対象の実サイズに基づいて当該測定対象の実サイズを算出する、
ようにしたことを特徴とする請求項1あるいは請求項5記載のカメラ撮影装置。
Specifying a measurement object to be a size measurement object from a plurality of subjects recognized by the recognition means, and specifying means for specifying a reference object to be compared with the measurement object;
The actual size of the identified reference object is acquired, and the image size is calculated for each measurement object and reference object by analyzing the captured image, and the measurement is performed based on each calculated size and the actual size of the reference object. Calculate the actual size of the target,
6. The camera photographing apparatus according to claim 1, wherein the camera photographing apparatus is configured as described above.
前記認識手段によって認識された複数の被写体の中から前記基準対象を特定する際に、前記特定手段は、予め記憶管理されている複数種の基準対象の何れかに特徴的に一致する画像部分を基準対象として特定し、
前記特定された基準対象の実サイズを取得する際に、当該基準対象に対応して予め記憶管理されている実サイズを読み出し取得する、
ようにしたことを特徴とする請求項6記載のカメラ撮影装置。
When the reference object is specified from among the plurality of subjects recognized by the recognition means, the specifying means selects an image portion characteristically matching any of a plurality of types of reference objects stored and managed in advance. Identified as a reference target,
When acquiring the actual size of the specified reference object, the actual size stored and managed in advance corresponding to the reference object is read and acquired.
The camera photographing apparatus according to claim 6, which is configured as described above.
撮影位置から測定対象となる被写体までの距離を計測する距離計測手段を設け、
この距離計測手段によって得られた測定距離と、撮影画像を解析することによって得られた測定対象の画像サイズと、カメラレンズの焦点距離に基づいて当該測定対象の実サイズを算出する、
ようにしたことを特徴とする請求項1あるいは請求項5記載のカメラ撮影装置。
Provide a distance measuring means to measure the distance from the shooting position to the subject to be measured,
Based on the measurement distance obtained by the distance measurement means, the image size of the measurement object obtained by analyzing the captured image, and the focal length of the camera lens, the actual size of the measurement object is calculated.
6. The camera photographing apparatus according to claim 1, wherein the camera photographing apparatus is configured as described above.
前記認識手段によって認識された被写体の表示位置を検出する位置検出手段と、
この位置検出手段によって検出された被写体の表示位置と前記サイズ測定手段によって得られた当該被写体の実サイズとを対応付けて記憶保持する保持手段と、
を設け、前記被写体の表示位置が移動したことが検出された際に、前記表示手段は、移動先の表示位置に対応付けて当該被写体の実サイズを表示する、
ようにしたことを特徴とする請求項5記載のカメラ撮影装置。
Position detection means for detecting the display position of the subject recognized by the recognition means;
Holding means for storing and holding the display position of the subject detected by the position detecting means and the actual size of the subject obtained by the size measuring means in association with each other;
When the display position of the subject is detected to be moved, the display means displays the actual size of the subject in association with the display position of the movement destination.
6. The camera photographing apparatus according to claim 5, wherein the camera photographing apparatus is configured as described above.
コンピュータに対して、
実撮影を行う前にカメラ撮影部から逐次取得した撮影画像を解析することによってその中に含まれている被写体を画像認識する機能と、
認識された被写体の実サイズを取得する処理を行う機能と、
このサイズ取得処理によって得られた被写体の実サイズを当該撮影画像内に表示する処理を行う機能と、
カメラ撮影部から新たな撮影画像を取得した際に、前回の撮影画像内に存在していない新たな被写体が今回の撮影画像内に含まれていることを検出する毎に、当該新たな被写体に対して前記サイズ取得処理およびサイズ表示処理の実行を指示する機能と、
を実現させるためのプログラム。
Against the computer,
A function of recognizing the subject included in the image by analyzing captured images sequentially acquired from the camera shooting unit before actual shooting,
A function to perform processing for obtaining the actual size of the recognized subject;
A function of performing processing for displaying the actual size of the subject obtained by the size acquisition processing in the captured image;
Each time a new photographed image is acquired from the camera photographing unit, a new subject that does not exist in the previous photographed image is detected to be included in the current photographed image. A function for instructing execution of the size acquisition process and the size display process;
A program to realize
コンピュータに対して、
カメラ撮影部から逐次取得した各撮影画像を解析することによってその中に含まれている被写体を画像認識する機能と、
現時点までに画像認識された各被写体と今回の撮影画像内の被写体とを比較することによって、過去の撮影画像の取得時にサイズ測定が不能となったサイズ未測定の被写体が今回の撮影画像内に含まれているかを判別する機能と、
サイズ未測定の被写体が検出される毎に、その実サイズを測定する機能と、
この実サイズを今回の撮影画像内において当該被写体に対応付けて表示する機能と、
を実現させるためのプログラム。
Against the computer,
A function of recognizing the subject included in the image by analyzing each captured image sequentially acquired from the camera photographing unit;
By comparing each subject that has been image-recognized so far with the subject in the current captured image, an unmeasured subject whose size cannot be measured when acquiring past captured images is included in the current captured image. A function to determine whether it is included, and
Each time an unmeasured subject is detected, the function to measure the actual size,
A function of displaying this actual size in association with the subject in the current captured image;
A program to realize
JP2003420466A 2003-12-18 2003-12-18 Camera photographing apparatus and program Expired - Fee Related JP4466065B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003420466A JP4466065B2 (en) 2003-12-18 2003-12-18 Camera photographing apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003420466A JP4466065B2 (en) 2003-12-18 2003-12-18 Camera photographing apparatus and program

Publications (2)

Publication Number Publication Date
JP2005181033A true JP2005181033A (en) 2005-07-07
JP4466065B2 JP4466065B2 (en) 2010-05-26

Family

ID=34781983

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003420466A Expired - Fee Related JP4466065B2 (en) 2003-12-18 2003-12-18 Camera photographing apparatus and program

Country Status (1)

Country Link
JP (1) JP4466065B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008078836A (en) * 2006-09-20 2008-04-03 Olympus Imaging Corp Camera, blog search system, and program
JP2008286638A (en) * 2007-05-17 2008-11-27 Sogo Keibi Hosho Co Ltd Height estimation device and method
JP2010223752A (en) * 2009-03-24 2010-10-07 Tokyo Electric Power Co Inc:The Flying object altitude measuring device
JP2012185161A (en) * 2011-03-03 2012-09-27 Sang Mo Bae Method for measuring real dimension of object by using camera included in portable terminal
WO2015183126A1 (en) * 2014-05-29 2015-12-03 Motorola Solutions, Inc. Method and apparatus for measuring an object
JP7212994B1 (en) 2022-03-28 2023-01-26 株式会社オプティム Program, information processing device, information processing method, information processing system
WO2023100418A1 (en) * 2021-12-02 2023-06-08 株式会社アドヴィックス Measuring device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008078836A (en) * 2006-09-20 2008-04-03 Olympus Imaging Corp Camera, blog search system, and program
JP2008286638A (en) * 2007-05-17 2008-11-27 Sogo Keibi Hosho Co Ltd Height estimation device and method
JP2010223752A (en) * 2009-03-24 2010-10-07 Tokyo Electric Power Co Inc:The Flying object altitude measuring device
JP2012185161A (en) * 2011-03-03 2012-09-27 Sang Mo Bae Method for measuring real dimension of object by using camera included in portable terminal
WO2015183126A1 (en) * 2014-05-29 2015-12-03 Motorola Solutions, Inc. Method and apparatus for measuring an object
WO2023100418A1 (en) * 2021-12-02 2023-06-08 株式会社アドヴィックス Measuring device
JP7212994B1 (en) 2022-03-28 2023-01-26 株式会社オプティム Program, information processing device, information processing method, information processing system
JP2023144873A (en) * 2022-03-28 2023-10-11 株式会社オプティム Program, information processing device, information processing method and information processing system

Also Published As

Publication number Publication date
JP4466065B2 (en) 2010-05-26

Similar Documents

Publication Publication Date Title
JP5164327B2 (en) Imaging apparatus and program
JP4702418B2 (en) Imaging apparatus, image region existence determination method and program
CN101848338B (en) Imaging apparatus having zoom function
US8532345B2 (en) Camera and image recording program product
JP2005189087A (en) Distance measurement equipment and program
JP2009187109A (en) Image display device, display control method and display control program
JP4764959B1 (en) Imaging apparatus and control method thereof
KR20070102404A (en) Image display control device, control method and program thereof
JP4466065B2 (en) Camera photographing apparatus and program
JP5131367B2 (en) Imaging apparatus and program
JP2017085204A (en) Registration control of meta-data
JP5441799B2 (en) Electronic camera
JP2008209306A (en) Camera
JP2005189051A (en) Size measurement device and program
JP2010015548A (en) Object tracking device and camera
JP2018007082A (en) Image reproduction device, control method therefor, and program
JP2005181034A (en) Size measurement device and program
JP2006332789A (en) Video photographing method, apparatus, and program, and storage medium for storing the program
JP2019153874A (en) Information recording device, image recording device, operation auxiliary device, operation auxiliary system, information recording method, image recording method, and operation auxiliary method
JP2005164514A (en) Size measuring device and program
JP2006270137A (en) Imaging apparatus
JP2005164512A (en) Size measuring instrument and program
JP2005181035A (en) Size measurement device and program
JP7264675B2 (en) processor and program
JP2005164513A (en) Size measuring instrument and program

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

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061102

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20080519

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20081009

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090714

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090903

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100202

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100215

R150 Certificate of patent or registration of utility model

Ref document number: 4466065

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130305

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130305

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140305

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees