JP2008209306A - Camera - Google Patents

Camera Download PDF

Info

Publication number
JP2008209306A
JP2008209306A JP2007047527A JP2007047527A JP2008209306A JP 2008209306 A JP2008209306 A JP 2008209306A JP 2007047527 A JP2007047527 A JP 2007047527A JP 2007047527 A JP2007047527 A JP 2007047527A JP 2008209306 A JP2008209306 A JP 2008209306A
Authority
JP
Japan
Prior art keywords
distance
camera
image
identification mark
distance information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2007047527A
Other languages
Japanese (ja)
Inventor
Shuichi Isogawa
秀一 五十川
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.)
Nikon Corp
Original Assignee
Nikon Corp
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 Nikon Corp filed Critical Nikon Corp
Priority to JP2007047527A priority Critical patent/JP2008209306A/en
Publication of JP2008209306A publication Critical patent/JP2008209306A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To calculate a distance to a subject in an actual space, and a distance between each subject. <P>SOLUTION: A distance calculation part 104c reads a photographed image from an image acquisition means 104a, recognizes a discrimination label included in the photographed image, and calculates a distance of the recognized discrimination label from a camera in the actual space, and a distance between each discrimination label in the actual space as distance information, when a plurality of discrimination labels are recognized by a recognition means. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、被写体像を撮像して画像を取得するカメラに関する。   The present invention relates to a camera that captures a subject image and acquires an image.

次のような撮像装置が知られている。この撮像装置は、いわゆるコントラスト検出法を用いて、CCDに入力された画像情報からコントラストが最大となるフォーカスレンズの位置を検出する。そして、検出したフォーカスレンズの位置に基づいて、合焦位置までの距離を推測することで、被写体までの距離を算出する(例えば、特許文献1)。   The following imaging devices are known. This imaging apparatus uses a so-called contrast detection method to detect the position of the focus lens where the contrast is maximized from the image information input to the CCD. Then, the distance to the subject is calculated by estimating the distance to the in-focus position based on the detected position of the focus lens (for example, Patent Document 1).

特開平7−143384号公報JP-A-7-143384

しかしながら、従来の撮像装置による方法で被写体までの距離を算出した場合には、レンズには被写界深度があるため、絞り径や倍率の違いによって算出した距離と実際の距離に誤差が生じる可能性があった。   However, when the distance to the subject is calculated by a method using a conventional imaging device, the lens has a depth of field, so an error may occur between the calculated distance and the actual distance due to differences in aperture diameter and magnification. There was sex.

本発明によるカメラは、被写体像を撮像して画像を取得し、取得した撮影画像内に含まれる識別標識を認識し、認識した識別標識の実空間上におけるカメラからの距離、および認識手段によって複数の識別標識が認識された場合には、実空間上における各識別標識間の距離を距離情報として算出することを特徴とする。
本発明では、識別標識は、所定の大きさの領域内に所定の模様が描画されており、撮影画像内から識別標識に描画された模様を検出することによって、撮影画像内に含まれる識別標識を認識することが好ましい。
また、撮影画像内における識別標識が占める領域の大きさに基づいて、実空間上におけるカメラから識別標識までの距離を算出し、算出した実空間上におけるカメラから識別標識までの距離に基づいて三角測量を行って、実空間上における識別標識間の距離を算出するようにしてもよい。
また、使用者からの指示に基づいて、カメラのモードを距離情報を算出するためのモードに設定するようにし、カメラのモードが距離情報を算出するためのモードに設定されたときに処理を実行するようにしてもよい。
また、認識された識別標識が所定範囲の縦サイズと横サイズを特定できるように配置されている場合には、縦サイズと横サイズとに基づいて所定範囲の面積を算出して距離情報に含めるようにしてもよい。
さらに、算出した距離情報を撮影画像と共に表示装置上に表示してもよく、算出した距離情報を撮影画像に関連付けて記録媒体に記録するようにしてもよい。
The camera according to the present invention captures an image of a subject, acquires an image, recognizes an identification mark included in the acquired captured image, and recognizes the identification mark from the camera in real space, and a plurality of recognition means. When the identification mark is recognized, the distance between the identification marks in the real space is calculated as distance information.
In the present invention, the identification mark has a predetermined pattern drawn in an area of a predetermined size, and the identification mark included in the captured image is detected by detecting the pattern drawn on the identification mark from the captured image. Is preferably recognized.
Further, the distance from the camera to the identification mark in the real space is calculated based on the size of the area occupied by the identification mark in the captured image, and the triangle is based on the calculated distance from the camera to the identification mark in the real space. Surveying may be performed to calculate the distance between the identification marks in the real space.
Also, based on an instruction from the user, the camera mode is set to a mode for calculating distance information, and processing is executed when the camera mode is set to a mode for calculating distance information. You may make it do.
Further, when the recognized identification mark is arranged so that the vertical size and horizontal size of the predetermined range can be specified, the area of the predetermined range is calculated based on the vertical size and horizontal size and included in the distance information You may do it.
Further, the calculated distance information may be displayed on the display device together with the photographed image, and the calculated distance information may be associated with the photographed image and recorded on a recording medium.

本発明によれば、被写体までの距離を精度高く算出することができる。   According to the present invention, the distance to the subject can be calculated with high accuracy.

図1は、本実施の形態におけるカメラの一実施の形態の構成を示すブロック図である。カメラ100は、操作部材101と、レンズ102と、撮像素子103と、制御装置104と、メモリ105と、メモリカードスロット106と、モニタ107とを備えている。操作部材101は、使用者によって操作される種々の入力部材、例えば電源ボタン、レリーズスイッチ、ズームボタン、十字キー、決定ボタン、再生ボタン、削除ボタンなどを含んでいる。   FIG. 1 is a block diagram illustrating a configuration of an embodiment of a camera according to the present embodiment. The camera 100 includes an operation member 101, a lens 102, an image sensor 103, a control device 104, a memory 105, a memory card slot 106, and a monitor 107. The operation member 101 includes various input members operated by the user, such as a power button, a release switch, a zoom button, a cross key, a determination button, a playback button, and a delete button.

レンズ102は、複数の光学レンズ群から構成されるが、図1では代表して1枚のレンズで表している。撮像素子103は、例えばCCDやCMOSであり、レンズ102により結像した被写体像を撮像して画像を取得する。そして、取得した画像のデータ(画像データ)を制御装置104へ出力する。制御装置104は、入力された画像データをメモリ105へ出力して記録し、画像データに対して種々の画像処理を施す。   The lens 102 is composed of a plurality of optical lens groups, but is represented by a single lens in FIG. The image sensor 103 is, for example, a CCD or a CMOS, and captures a subject image formed by the lens 102 to acquire an image. The acquired image data (image data) is output to the control device 104. The control device 104 outputs and records the input image data to the memory 105, and performs various image processing on the image data.

メモリ105は、例えばフラッシュメモリであって、撮像素子103で撮像された画像や後述するメモリカードスロット106を介して読み込んだ画像ファイルを一時的に記録するためのバッファメモリとして使用される。また、カメラ100を動作させるための種々のプログラムが記録される。メモリカードスロット106は、画像を記録する記録媒体としてのメモリカードを挿入するためのスロットであり、メモリカードにデータを書き込んだり、メモリカードからデータを読み込んだりすることができる。   The memory 105 is, for example, a flash memory, and is used as a buffer memory for temporarily recording an image captured by the image sensor 103 and an image file read via a memory card slot 106 described later. In addition, various programs for operating the camera 100 are recorded. The memory card slot 106 is a slot for inserting a memory card as a recording medium for recording images, and can write data into the memory card and read data from the memory card.

モニタ107は、デジタルカメラ100の背面に搭載された液晶モニタ(背面モニタ)であり、撮像素子103で撮像された画像やメモリカードから読み込んだ画像を表示する。また、カメラ100を設定するための設定メニューなども表示される。   The monitor 107 is a liquid crystal monitor (rear monitor) mounted on the back of the digital camera 100 and displays an image captured by the image sensor 103 and an image read from a memory card. A setting menu for setting the camera 100 is also displayed.

制御装置104は、CPU、メモリやその他の周辺回路により構成され、画像取得部104aと、表示制御部104bと、距離算出部104cと、記録制御部104dとを機能的に有している。なお、104a〜104dの各要素による処理は、制御装置104がメモリ105からプログラムを読み込んで起動することによって実行される。以下、104a〜104dの各要素による処理について説明する。   The control device 104 includes a CPU, a memory, and other peripheral circuits, and functionally includes an image acquisition unit 104a, a display control unit 104b, a distance calculation unit 104c, and a recording control unit 104d. Note that the processing by the elements 104 a to 104 d is executed by the control device 104 reading a program from the memory 105 and starting it. Hereinafter, the process by each element of 104a-104d is demonstrated.

画像取得部104aは、使用者によって操作部材101に含まれる電源ボタンが押下され、カメラ100のモードが撮影モードに設定されると撮像素子103から入力される画像データを取得する。表示制御部104bは、画像取得部104aで取得した画像をモニタ107へ出力して表示する。画像取得部104aは、撮像素子103から時系列で入力される画像データを取得し、表示制御部104bは、画像取得部104aが取得した最新の画像をモニタ107へ出力する。これによって、モニタ107には、いわゆるスルー画が表示される。   The image acquisition unit 104 a acquires image data input from the image sensor 103 when the power button included in the operation member 101 is pressed by the user and the mode of the camera 100 is set to the shooting mode. The display control unit 104b outputs the image acquired by the image acquisition unit 104a to the monitor 107 and displays it. The image acquisition unit 104 a acquires image data input in time series from the image sensor 103, and the display control unit 104 b outputs the latest image acquired by the image acquisition unit 104 a to the monitor 107. As a result, a so-called through image is displayed on the monitor 107.

本実施の形態におけるカメラ100では、カメラ100のモードとして距離情報表示・記録モードを備えており、使用者によって当該モードが選択されると、距離算出部104cは、画像取得部104aで取得した画像(撮影画像)内に含まれる被写体までのカメラ100からの距離を算出する。さらに、撮影画像内に複数の被写体が含まれている場合には、各被写体間の実空間上における距離を算出する。そして、表示制御部104bは、このように算出した距離情報をモニタ107に表示したスルー画上に表示する。また、記録制御部104dは、算出された距離情報を画像に関連付けてメモリカードスロット106に挿入されたメモリカードに記録する。104b〜104cの各要素は、具体的には次のように処理を行う。なお、以下に説明する処理においては、使用者は地面に対して水平にカメラ100を構えた状態で撮影を行うことを前提とする。   The camera 100 according to the present embodiment has a distance information display / recording mode as a mode of the camera 100. When the user selects the mode, the distance calculation unit 104c acquires the image acquired by the image acquisition unit 104a. The distance from the camera 100 to the subject included in the (captured image) is calculated. Further, when a plurality of subjects are included in the captured image, the distance in the real space between the subjects is calculated. Then, the display control unit 104 b displays the distance information calculated in this way on the through image displayed on the monitor 107. Further, the recording control unit 104d records the calculated distance information on the memory card inserted in the memory card slot 106 in association with the image. Specifically, each element of 104b to 104c performs processing as follows. In the processing described below, it is assumed that the user performs shooting with the camera 100 held horizontally with respect to the ground.

距離算出部104cは、画像取得部104aで取得した画像データを読み込んで、画像内に含まれる被写体を特定し、実空間上におけるカメラ100からの距離、および撮影画像内に複数の被写体が含まれている場合には、複数の被写体における各被写体間の実空間上における距離を算出する。本実施の形態では、距離情報の算出対象とする被写体に、あらかじめ距離算出部104cが識別することができる所定の模様(パターン)を表した識別標識を付加しておく。そして、距離算出部104cは、撮影画像の中からこの識別標識を抽出することで、撮影画像内に含まれる被写体を特定する。   The distance calculation unit 104c reads the image data acquired by the image acquisition unit 104a, identifies the subject included in the image, includes the distance from the camera 100 in the real space, and a plurality of subjects in the captured image. If there is a plurality of subjects, the distance in the real space between the subjects is calculated. In the present embodiment, an identification mark representing a predetermined pattern (pattern) that can be identified by the distance calculation unit 104c is added in advance to a subject for which distance information is to be calculated. Then, the distance calculation unit 104c identifies the subject included in the captured image by extracting the identification mark from the captured image.

例えば、各被写体には、図2に示すようなパターンを表した識別標識をあらかじめ付加しておく。対象となる被写体が人物である場合には、衣服等にこの識別標識を付加しておき、この人物を撮影した撮影画像を解析して、カメラ100から当該識別標識を身に着けた人物までの距離や当該識別標識を身に着けた複数の人物間の距離を算出する。この識別標識は、色A、例えば赤と、色B、例えば白との2色からなり、その大きさは人物が身に付けても邪魔にならない程度の所定の大きさ、例えば横5cm、縦10cm程の大きさとなっている。なお、標識の形状、配色、サイズは図2に示す例には限定されない。   For example, an identification mark representing a pattern as shown in FIG. 2 is added in advance to each subject. In the case where the target subject is a person, this identification mark is added to clothes, etc., and a captured image obtained by photographing this person is analyzed, and from the camera 100 to the person wearing the identification mark. The distance and the distance between a plurality of persons wearing the identification mark are calculated. This identification mark is composed of two colors, color A, for example, red, and color B, for example, white. The size of the identification mark is a predetermined size that does not get in the way even if a person wears it, for example, 5 cm wide, vertically The size is about 10 cm. The shape, color scheme, and size of the sign are not limited to the example shown in FIG.

カメラ100においては、撮影画像内から被写体に付加されている識別標識を認識するために、あらかじめ図2に示した識別標識を撮影して、その画像をパターン画像としてメモリ105へ記録しておく。そして、距離算出部104cは、撮影画像内に対してパターン画像をテンプレート画像として用いたテンプレートマッチング処理を行い、撮影画像内に含まれる識別標識を認識する。なお、テンプレート画像を用いたテンプレートマッチング処理については、公知の処理のため説明を省略する。   In the camera 100, in order to recognize the identification mark added to the subject from within the photographed image, the identification sign shown in FIG. 2 is photographed in advance and the image is recorded in the memory 105 as a pattern image. Then, the distance calculation unit 104c performs template matching processing using the pattern image as a template image in the captured image, and recognizes an identification mark included in the captured image. Note that the template matching process using the template image is a known process and will not be described.

距離算出部104cが撮影画像内に含まれる識別標識を認識した場合には、表示制御部104bは、図2に示すように識別標識の認識範囲を示す枠(認識枠)2aをモニタ107上に表示する。これによって、使用者はモニタ107に表示されるスルー画上で識別標識の認識結果を確認することができる。   When the distance calculation unit 104c recognizes the identification mark included in the captured image, the display control unit 104b displays a frame (recognition frame) 2a indicating the recognition range of the identification mark on the monitor 107 as shown in FIG. indicate. As a result, the user can confirm the recognition result of the identification mark on the through image displayed on the monitor 107.

距離算出部104cは、撮影画像内で認識した識別標識の画像内での大きさ、すなわち撮影画像内における識別標識が占める領域の大きさを計測する。このとき、撮影画像内から複数の識別標識が認識できた場合には、全ての識別標識について大きさの計測を行う。なお、被写体としての人物が身に着ける識別標識自体は、全て同じ大きさであるが、カメラ100と人物との距離が近いほど撮影画像内における識別標識の大きさは大きくなり、逆にカメラ100と人物との距離が遠いほど撮影画像内における識別標識の大きさは小さくなる。   The distance calculation unit 104c measures the size of the identification mark recognized in the captured image, that is, the size of the area occupied by the identification mark in the captured image. At this time, when a plurality of identification signs can be recognized from the captured image, the sizes of all the identification signs are measured. Note that the identification marks themselves worn by the person as the subject are all the same size, but the closer the distance between the camera 100 and the person is, the larger the size of the identification mark in the captured image is. The greater the distance between the person and the person, the smaller the size of the identification mark in the captured image.

例えば、図3(a)に示すように、識別標識を身に着けた被写体(人物)3aおよび3bが、カメラ100から被写体3aまでの距離と、カメラ100から被写体3bまでの距離とが等しい位置にそれぞれ存在している場合には、撮影画像においては、被写体3aおよび3bがそれぞれ身に着けている識別標識の認識結果は、その大きさが等しくなる。すなわち、モニタ107に表示されるスルー画は図3(b)に示すようになり、被写体3aが身に着けている識別標識の認識結果3cと、被写体3bが身に着けている識別標識の認識結果3dとは、それぞれ大きさが等しくなっている。   For example, as shown in FIG. 3A, the subjects (persons) 3a and 3b wearing the identification signs are at positions where the distance from the camera 100 to the subject 3a is equal to the distance from the camera 100 to the subject 3b. In the photographed images, the recognition results of the identification signs worn by the subjects 3a and 3b are equal in size. That is, the through image displayed on the monitor 107 is as shown in FIG. 3B. The recognition result 3c of the identification mark worn by the subject 3a and the recognition of the identification mark worn by the subject 3b. The results 3d are equal in size.

これに対して、図4に示すように、識別標識を身に着けた被写体4aおよび4bがいる場合に、被写体4bの方が、被写体4aよりもカメラ100から近い位置に存在している場合には、撮影画像においては、被写体4aが身に着けている識別標識は、被写体4bが身に着けている識別標識よりも小さく撮影される。すなわち、モニタ107に表示されるスルー画は図4(b)に示すようになり、被写体4aが身に着けている識別標識の認識結果4cは、被写体4bが身に着けている識別標識の認識結果4dよりも、その大きさが小さくなっている。   On the other hand, as shown in FIG. 4, when there are subjects 4a and 4b wearing identification signs, the subject 4b is located closer to the camera 100 than the subject 4a. In the captured image, the identification mark worn by the subject 4a is photographed smaller than the identification mark worn by the subject 4b. That is, the through image displayed on the monitor 107 is as shown in FIG. 4B, and the recognition result 4c of the identification mark worn by the subject 4a is the recognition of the identification mark worn by the subject 4b. The size is smaller than the result 4d.

距離算出部104cは、このようにカメラ100から被写体までの距離に応じて、撮影画像内における識別標識の大きさが変化することを加味して、実空間上におけるカメラ100から識別標識までの距離を算出する。ここで算出する距離は、実空間上におけるカメラ100から識別標識を身に着けた被写体までの距離に相当する。すなわち、距離算出部104cは、図3(a)に示すように、カメラ100から人物3aまでの距離3eを算出することができる。具体的には、次のように処理する。   The distance calculation unit 104c takes into account that the size of the identification mark in the captured image changes in accordance with the distance from the camera 100 to the subject as described above, and the distance from the camera 100 to the identification mark in the real space. Is calculated. The distance calculated here corresponds to the distance from the camera 100 to the subject wearing the identification mark in real space. That is, the distance calculation unit 104c can calculate the distance 3e from the camera 100 to the person 3a as shown in FIG. Specifically, the process is as follows.

距離算出部104cは、上述したテンプレートマッチング処理を行って撮影画像内に含まれる識別標識を認識した後、認識した識別標識の縦サイズ(画素数)と横サイズ(画素数)を識別標識の大きさとして算出する。例えば、図5に示す例では、識別標識5aは、縦サイズ5bが6画素、横サイズ5cが2画素として大きさが算出される。距離算出部104cは、このように算出した撮影画像内における識別標識の大きさに基づいて、カメラ100から識別標識5aまでの距離を算出する。例えば、算出した撮影画像内における識別標識の大きさと、あらかじめ取得してある撮影画像における1画素当たりの画素サイズ、および撮影時のレンズ102のズーム倍率(撮影倍率)などの情報とを加味して、カメラ100から識別標識5aまでの距離を算出する。具体的には、次のように算出する。   The distance calculation unit 104c performs the template matching process described above and recognizes the identification mark included in the captured image, and then determines the vertical size (number of pixels) and horizontal size (number of pixels) of the recognized identification mark. Calculate as For example, in the example shown in FIG. 5, the size of the identification mark 5a is calculated assuming that the vertical size 5b is 6 pixels and the horizontal size 5c is 2 pixels. The distance calculation unit 104c calculates the distance from the camera 100 to the identification mark 5a based on the size of the identification mark in the captured image thus calculated. For example, taking into account information such as the calculated size of the identification mark in the captured image, the pixel size per pixel in the captured image acquired in advance, and the zoom magnification (imaging magnification) of the lens 102 at the time of shooting. The distance from the camera 100 to the identification mark 5a is calculated. Specifically, it is calculated as follows.

まず、あらかじめカメラ100から1m離れた位置に存在する識別標識を撮影した場合の撮影画像内における識別標識の大きさ(縦方向の長さと横方向の長さの少なくともいずれか一方)を算出してメモリ105に記録しておく。そして、距離算出部104cは、上述した処理で算出した撮影画像内における識別標識5aの縦サイズ5bと、撮影画像における1画素当たりの画素サイズに基づいて、撮影画像内における識別標識5aの縦方向の長さを算出する。そして、カメラ100から1m離れた位置に存在する識別標識を撮影した場合の撮影画像内における識別標識の縦方向の長さと、撮影画像内における識別標識5aの縦方向の長さとの比から、カメラ100から識別標識5aまでの距離を算出する。   First, the size (at least one of the length in the vertical direction and the length in the horizontal direction) of the identification mark in the photographed image when the identification mark existing at a position 1 m away from the camera 100 is photographed in advance is calculated. It is recorded in the memory 105. Then, the distance calculation unit 104c, based on the vertical size 5b of the identification mark 5a in the captured image calculated by the above-described processing, and the pixel size per pixel in the captured image, the vertical direction of the identification mark 5a in the captured image. The length of is calculated. Then, from the ratio of the vertical length of the identification mark in the photographed image when the identification sign existing at a position 1 m away from the camera 100 is photographed to the vertical length of the identification sign 5a in the photographed image, the camera The distance from 100 to the identification mark 5a is calculated.

例えば、カメラ100から1m離れた位置に存在する識別標識を撮影した場合に、撮影画像内における識別標識の縦サイズが10mmであるものとする。このとき、撮影画像内における識別標識5aの縦方向の長さが5mmであった場合には、カメラ100から識別標識5aまでの距離は2mと算出する。また、もしこのときのレンズ102のズーム倍率が3倍であった場合には、カメラ100から識別標識5aまでの距離は6mと算出する。   For example, when an identification sign existing at a position 1 m away from the camera 100 is photographed, the vertical size of the identification sign in the photographed image is 10 mm. At this time, if the length in the vertical direction of the identification mark 5a in the captured image is 5 mm, the distance from the camera 100 to the identification mark 5a is calculated as 2 m. Also, if the zoom magnification of the lens 102 at this time is 3, the distance from the camera 100 to the identification mark 5a is calculated as 6 m.

次に、撮影画像内で複数の識別標識が認識されたときに、距離算出部104cが実空間上における各識別標識間の距離を算出する方法について説明する。まず、図3(a)に示すように、カメラ100から被写体3aまでの距離と、カメラ100から被写体3bまでの距離とが等しい場合の被写体3aと3bとの間の距離3hを算出する方法について説明する。この場合には、距離算出部104cは、図3(b)に示すように、撮影画像の中心から被写体3aが身に着けている識別標識の認識結果3cまでの長さ3fと、撮影画像の中心から被写体3bが身に着けている識別標識の認識結果3dまでの長さ3gとをそれぞれ算出する。そして、それぞれの長さの合計(3f+3g)を撮影画像内における被写体間の距離として算出する。   Next, a method will be described in which the distance calculation unit 104c calculates the distance between each identification mark in the real space when a plurality of identification marks are recognized in the captured image. First, as shown in FIG. 3A, a method for calculating a distance 3h between the subjects 3a and 3b when the distance from the camera 100 to the subject 3a is equal to the distance from the camera 100 to the subject 3b. explain. In this case, as shown in FIG. 3B, the distance calculation unit 104c determines the length 3f from the center of the captured image to the recognition result 3c of the identification mark worn by the subject 3a, and the captured image. The length 3g from the center to the recognition result 3d of the identification mark worn by the subject 3b is calculated. Then, the total of the respective lengths (3f + 3g) is calculated as the distance between the subjects in the captured image.

なお、長さ3fおよび長さ3gは、撮影画像の中心から識別標識の認識結果の外枠までの長さとしてもよく、撮影画像の中心から識別標識の認識結果の中心までの長さとしてもよい。本実施の形態では、撮影画像の中心から識別標識の認識結果の外枠までの長さを長さ3fおよび長さ3gとして算出する場合について説明する。   The length 3f and the length 3g may be the length from the center of the captured image to the outer frame of the recognition result of the identification mark, or may be the length from the center of the captured image to the center of the recognition result of the identification mark. Good. In the present embodiment, a case will be described in which the length from the center of the captured image to the outer frame of the recognition result of the identification mark is calculated as length 3f and length 3g.

距離算出部104cは、カメラ100から識別標識までの距離を算出したときと同様に、算出した撮影画像内における被写体間の距離、あらかじめ取得してある撮影画像における1画素当たりの大きさ、および撮影時のレンズ102のズーム倍率などの情報とを加味して、実空間上における被写体間の距離3hを算出する。例えば、実空間上で1m離れて存在する2つの識別標識を撮影した場合に、撮影画像内では被写体間の距離が10mmであることがあらかじめ算出されている場合について説明する。この場合には、距離算出部104cは、撮影画像内における被写体間の距離(3f+3g)が5mmであれば、実空間上における被写体間の距離3hは2mと算出する。また、もしこのときのレンズ102のズーム倍率が3倍であった場合には、実空間上における被写体間の距離3hは6mと算出する。   The distance calculation unit 104c, like when calculating the distance from the camera 100 to the identification mark, the distance between the subjects in the calculated captured image, the size per pixel in the previously acquired captured image, and the captured image Taking into account information such as the zoom magnification of the lens 102 at the time, the distance 3h between the subjects in the real space is calculated. For example, a case will be described in which, when two identification signs existing 1 m apart in real space are photographed, it is calculated in advance that the distance between subjects in the photographed image is 10 mm. In this case, if the distance (3f + 3g) between the subjects in the captured image is 5 mm, the distance calculation unit 104c calculates the distance 3h between the subjects in the real space as 2 m. In addition, if the zoom magnification of the lens 102 at this time is 3, the distance 3h between the subjects in the real space is calculated as 6 m.

次に、図4(a)に示すように、カメラ100から被写体4aまでの距離と、カメラ100から被写体4bまでの距離とが異なる場合の被写体4aと4bとの間の距離を算出する方法について説明する。この場合には、距離算出部104cは、上述した処理を実行して、カメラ100から被写体4aまでの距離4e、およびカメラ100から被写体4bまでの距離4fを算出する。また、図4(b)に示すように、撮影画像の中心から被写体4aが身に着けている識別標識の認識結果4cまでの長さ4gと、撮影画像の中心から被写体4bが身に着けている識別標識の認識結果4dまでの長さ4hとをそれぞれ算出する。そして、それぞれの長さの合計(4g+4h)を撮影画像内における被写体間の距離として算出し、図3で上述した被写体間の距離の算出方法を用いて、実空間上における光軸に垂直する方向の被写体間の距離4iを算出する。   Next, as shown in FIG. 4A, a method for calculating the distance between the subjects 4a and 4b when the distance from the camera 100 to the subject 4a is different from the distance from the camera 100 to the subject 4b. explain. In this case, the distance calculation unit 104c performs the above-described processing to calculate the distance 4e from the camera 100 to the subject 4a and the distance 4f from the camera 100 to the subject 4b. Further, as shown in FIG. 4B, the length 4g from the center of the photographed image to the recognition result 4c of the identification mark worn by the subject 4a and the subject 4b from the center of the photographed image are worn. The length 4h until the recognition result 4d of the identification mark is calculated. Then, the total of the respective lengths (4g + 4h) is calculated as the distance between the subjects in the captured image, and the direction perpendicular to the optical axis in real space is calculated using the distance calculation method described above with reference to FIG. The distance 4i between the subjects is calculated.

さらに距離算出部104cは、すでに算出してあるカメラ100から被写体4aまでの距離4eとカメラ100から被写体4bまでの距離4fとの差(4e−4f)を算出し、実空間上における光軸方向の被写体間の距離4jを算出する。そして、距離算出部104cは、算出した実空間上における光軸に垂直する方向の被写体間の距離4i、および実空間上における光軸方向の被写体間の距離4jに基づいて、三角関数を用いた演算(三角測量)を行って、被写体4aおよび4b間の距離4kを算出する。   Further, the distance calculation unit 104c calculates a difference (4e-4f) between the already calculated distance 4e from the camera 100 to the subject 4a and the distance 4f from the camera 100 to the subject 4b, and the optical axis direction in the real space The distance 4j between the subjects is calculated. The distance calculation unit 104c uses a trigonometric function based on the calculated distance 4i between subjects in the direction perpendicular to the optical axis in real space and the distance 4j between subjects in the optical axis direction in real space. Calculation (triangulation) is performed to calculate the distance 4k between the subjects 4a and 4b.

表示制御部104bは、モニタ107へ出力するスルー画上に、上述したように距離算出部104cで算出された実空間上における被写体までの距離、および被写体間の距離に関する情報を表示して、使用者に提示する。これによって、使用者は実空間上における被写体までの距離、および被写体間の距離に関する情報を把握することができる。   The display control unit 104b displays, on the through image output to the monitor 107, information on the distance to the subject in the real space calculated by the distance calculation unit 104c and the distance between the subjects as described above. Present to the person. As a result, the user can grasp information regarding the distance to the subject in the real space and the distance between the subjects.

画像取得部104aは、使用者によって操作部材101に含まれるレリーズスイッチが押下されると、そのときに撮像素子103に結像している被写体像を取得して画像データを取得する。そして、記録制御部104dは、画像取得部104aで取得された画像データを所定の画像形式、例えばJpeg形式に圧縮し、所定のファイル形式、例えばExif形式の画像ファイルを生成してメモリカードスロット106へ出力し、メモリカードに記録する。なお、Exif形式の画像ファイルは、画像データを格納するための画像データ部と、撮影条件等の付加情報を格納する付加情報部とで構成されている。   When the user presses a release switch included in the operation member 101, the image acquisition unit 104a acquires a subject image formed on the image sensor 103 at that time and acquires image data. Then, the recording control unit 104d compresses the image data acquired by the image acquisition unit 104a into a predetermined image format, for example, a JPEG format, generates an image file in a predetermined file format, for example, an Exif format, and generates a memory card slot 106. Output to the memory card. The Exif format image file includes an image data part for storing image data and an additional information part for storing additional information such as shooting conditions.

記録制御部104dは、Exif形式の画像ファイルを生成するに当たっては、画像データ部にJpeg形式の画像データを格納し、付加情報部に撮影条件等の種々の付加情報と共に、距離算出部104cで算出された実空間上における被写体までの距離、および被写体間の距離のそれぞれに関する情報を格納する。これによって、これらの距離情報を画像データに関連付けて記録することができ、使用者は、画像ファイルをパソコン等の他の機器に取り込んだ後に、取り込んだ機器上で距離情報を活用することができる。   In generating the Exif format image file, the recording control unit 104d stores the image data in the Jpeg format in the image data portion, and the distance calculation unit 104c calculates various additional information such as shooting conditions in the additional information portion. Information on each of the distance to the subject in the real space and the distance between the subjects is stored. As a result, the distance information can be recorded in association with the image data, and the user can use the distance information on the imported device after importing the image file into another device such as a personal computer. .

図6は、本実施の形態におけるカメラ100の処理を示すフローチャートである。図6に示す処理は、使用者によって操作部材101が操作され、カメラ100のモードが上述した距離情報表示・記録モードに設定されると起動するプログラムとして、制御装置104によって実行される。   FIG. 6 is a flowchart showing processing of the camera 100 in the present embodiment. The process shown in FIG. 6 is executed by the control device 104 as a program that is activated when the operation member 101 is operated by the user and the mode of the camera 100 is set to the above-described distance information display / recording mode.

ステップS10において、距離算出部104cは、画像取得部104aで取得した画像データを読み込んで、ステップS20へ進む。ステップS20では、距離算出部104cは、読み込んだ画像データに対して上述したパターンマッチング処理を施して、撮影画像内に含まれる識別標識を認識する。その後、ステップS30へ進み、識別標識が認識できたか否かを判断する。否定判断した場合には、距離算出部104cは、次フレームの画像データを読み込んで、同様に処理を行なう。これに対して、肯定判断した場合には、ステップS40へ進み、表示制御部104bは、図2で上述したように、識別標識の認識範囲を示す枠(認識枠)2aをスルー画上に表示する。その後、ステップS50へ進む。   In step S10, the distance calculation unit 104c reads the image data acquired by the image acquisition unit 104a, and proceeds to step S20. In step S20, the distance calculation unit 104c performs the above-described pattern matching process on the read image data, and recognizes the identification mark included in the captured image. Then, it progresses to step S30 and it is judged whether the identification mark was recognized. If a negative determination is made, the distance calculation unit 104c reads the image data of the next frame and performs the same processing. On the other hand, when an affirmative determination is made, the process proceeds to step S40, and the display control unit 104b displays the frame (recognition frame) 2a indicating the recognition range of the identification mark on the through image as described above with reference to FIG. To do. Thereafter, the process proceeds to step S50.

ステップS50では、距離算出部104cは、撮影画像内における識別標識の大きさを算出し、上述したように、算出した大きさに基づいてカメラ100から識別標識までの距離を算出することで、実空間上における被写体までの距離を算出する。その後、ステップS60へ進み、距離算出部104cは、撮影画像内で認識した識別標識は1つであったか否かを判断する。肯定判断した場合には、後述するステップS90へ進む。これに対して、否定判断した場合には、ステップS70へ進む。   In step S50, the distance calculation unit 104c calculates the size of the identification mark in the captured image, and calculates the distance from the camera 100 to the identification mark based on the calculated size as described above. The distance to the subject in space is calculated. Thereafter, the process proceeds to step S60, and the distance calculation unit 104c determines whether there is one identification mark recognized in the captured image. If a positive determination is made, the process proceeds to step S90 described later. On the other hand, if a negative determination is made, the process proceeds to step S70.

ステップS70では、全ての識別標識に対して、被写体までの距離算出処理が終了したか否かを判断する。否定判断した場合には、ステップS50へ戻って、全ての被写体についての処理が完了するまで、ステップS50の処理を繰り返す。これに対して、肯定判断した場合には、ステップS80へ進む。ステップS80では、距離算出部104cは、図3および図4を用いて上述したように、各被写体間の実空間上における距離を算出して、ステップS90へ進む。   In step S70, it is determined whether or not the distance calculation processing to the subject has been completed for all the identification signs. If a negative determination is made, the process returns to step S50, and the process of step S50 is repeated until the processes for all the subjects are completed. On the other hand, if a positive determination is made, the process proceeds to step S80. In step S80, as described above with reference to FIGS. 3 and 4, the distance calculation unit 104c calculates the distance in the real space between the subjects, and proceeds to step S90.

ステップS90では、表示制御部104bは、距離算出部104cで算出した実空間上におけるカメラ100から被写体までの距離や各被写体間の距離、すなわち距離情報をスルー画上に表示して、ステップS100へ進む。ステップS100では、画像取得部104aは、使用者によって操作部材101に含まれるレリーズスイッチが押下されたか否かを判断する。否定判断した場合には、ステップS10へ戻って、次フレームの画像データを読み込んで、処理を繰り返す。一方、肯定判断した場合には、ステップS110へ進む。   In step S90, the display control unit 104b displays the distance from the camera 100 to the subject and the distance between the subjects in the real space calculated by the distance calculation unit 104c, that is, the distance information on the through image, and proceeds to step S100. move on. In step S100, the image acquisition unit 104a determines whether or not the release switch included in the operation member 101 has been pressed by the user. If a negative determination is made, the process returns to step S10, the image data of the next frame is read, and the process is repeated. On the other hand, if a positive determination is made, the process proceeds to step S110.

ステップS110では、画像取得部104aは、そのときに撮像素子103に結像している被写体像を取得して画像データを取得する。そして、記録制御部104dは、画像取得部104aで取得された画像データを所定の画像形式、例えばJpeg形式に圧縮し、所定のファイル形式、例えばExif形式の画像ファイルを生成する。このとき、記録制御部104dは、Exif形式の画像ファイルの画像データ部にJpeg形式の画像データを格納し、付加情報部に撮影条件等の種々の付加情報と共に、距離算出部104cで算出された距離情報を記録する。そして、記録制御部104dは、このようにして生成した画像ファイルをメモリカードスロット106へ出力してメモリカードに記録することによって、撮影画像と距離情報とを関連付けて記録する。その後、処理を終了する。   In step S110, the image acquisition unit 104a acquires the subject image formed on the image sensor 103 at that time, and acquires image data. Then, the recording control unit 104d compresses the image data acquired by the image acquisition unit 104a into a predetermined image format, for example, a JPEG format, and generates an image file in a predetermined file format, for example, an Exif format. At this time, the recording control unit 104d stores Jpeg format image data in the image data portion of the Exif format image file, and is calculated by the distance calculation unit 104c together with various additional information such as shooting conditions in the additional information unit. Record distance information. Then, the recording control unit 104d outputs the image file generated in this way to the memory card slot 106 and records it on the memory card, thereby recording the captured image and the distance information in association with each other. Thereafter, the process ends.

以上説明した本実施の形態によれば、以下のような作用効果を得ることができる。
(1)距離算出部104cは、画像取得部104aから撮影画像を読み込んで、撮影画像内に含まれる識別標識を認識し、認識した識別標識の実空間上におけるカメラからの距離を算出するようにした。これによって、被写体に識別標識を付加しておくことで、実空間上における被写体までの距離を測定することができる。また、撮影画像内に複数の識別標識が含まれている場合には、各識別標識間の距離を算出するようにした。これによって、実空間上における被写体間の距離を測定することができる。
According to the present embodiment described above, the following operational effects can be obtained.
(1) The distance calculation unit 104c reads the captured image from the image acquisition unit 104a, recognizes the identification mark included in the captured image, and calculates the distance of the recognized identification mark from the camera in real space. did. Thus, by adding an identification mark to the subject, the distance to the subject in the real space can be measured. Further, when a plurality of identification signs are included in the captured image, the distance between the identification signs is calculated. As a result, the distance between the subjects in the real space can be measured.

(2)識別標識は、図2に示すように、所定の大きさの領域内に所定の模様が描画されているものを用いるようにした。これによって、識別標識としてカメラに位置を知らせるための発信装置などを用いる必要がなくなり、コスト的に有利である。 (2) As shown in FIG. 2, an identification mark having a predetermined pattern drawn in an area of a predetermined size is used. This eliminates the need to use a transmission device for notifying the camera of the position as an identification mark, which is advantageous in terms of cost.

(3)距離算出部104cは、撮影画像に対してパターンマッチング処理を行って、撮影画像内の識別標識を認識するようにした。これによって、公知のパターンマッチング処理を用いればよく、新たな認識用処理を開発する必要がなくなる。 (3) The distance calculation unit 104c performs pattern matching processing on the captured image so as to recognize the identification mark in the captured image. Thus, a known pattern matching process may be used, and it becomes unnecessary to develop a new recognition process.

(4)距離算出部104cは、撮影画像内に含まれる識別標識の大きさに基づいて、実空間上におけるカメラから識別標識までの距離、すなわち被写体までの距離を算出するようにした。これによって、所定の大きさを有する識別標識は、カメラ100との距離が近いほど撮影画像内における大きさは大きくなり、逆にカメラ100との距離が遠いほど撮影画像内における大きさは小さくなることを加味して、精度高く距離を算出することができる。 (4) The distance calculation unit 104c calculates the distance from the camera to the identification mark in real space, that is, the distance to the subject, based on the size of the identification mark included in the captured image. As a result, the identification mark having a predetermined size becomes larger in the captured image as the distance from the camera 100 is shorter, and conversely, the size in the captured image becomes smaller as the distance from the camera 100 is longer. In consideration of this, the distance can be calculated with high accuracy.

(5)距離算出部104cは、算出した実空間上におけるカメラから識別標識までの距離に基づいて三角測量を行って、実空間上における識別標識間の距離、すなわち被写体間の距離を算出するようにした。これによって、簡易な演算で実空間上における識別標識間の距離を算出することができ、処理の負荷を低減することができる。 (5) The distance calculation unit 104c performs triangulation based on the calculated distance from the camera to the identification mark in the real space so as to calculate the distance between the identification marks in the real space, that is, the distance between the subjects. I made it. Thereby, the distance between the identification marks in the real space can be calculated with a simple calculation, and the processing load can be reduced.

(6)使用者によってカメラ100のモードが距離情報表示・記録モードに設定された場合に、距離算出部104cは処理を行うようにした。これによって、使用者は距離情報の算出処理を行うか否かを任意に選択することができる。 (6) The distance calculation unit 104c performs processing when the mode of the camera 100 is set to the distance information display / recording mode by the user. Accordingly, the user can arbitrarily select whether or not to perform the distance information calculation process.

(7)表示制御部104bは、距離算出部104cで算出した距離情報をスルー画上に表示するようにした。これによって、使用者はスルー画上で画像内に含まれる被写体に関する距離情報を把握することができる。 (7) The display control unit 104b displays the distance information calculated by the distance calculation unit 104c on the through image. Thereby, the user can grasp distance information regarding the subject included in the image on the through image.

(8)記録制御部104dは、距離算出部104cで算出した距離情報を撮影画像に関連付けて記録するようにした。すなわち、距離情報をExifファイルの付加情報部に格納するようにした。これによって、使用者は、画像ファイルをパソコン等の他の機器に取り込んだ後に、取り込んだ機器上で距離情報を活用することができる。 (8) The recording control unit 104d records the distance information calculated by the distance calculation unit 104c in association with the captured image. That is, the distance information is stored in the additional information part of the Exif file. As a result, the user can use the distance information on the captured device after capturing the image file to another device such as a personal computer.

―変形例―
なお、上述した実施の形態のカメラは、以下のように変形することもできる。
(1)上述した実施の形態では、使用者は地面に対して水平にカメラ100を構えた状態で撮影を行うことを前提としていた。しかしながら、カメラ100にカメラ100の傾きを検出するセンサ(傾きセンサ)を設け、傾きを加味して距離情報を算出してもよい。すなわち、距離算出部104cは、傾きセンサからの出力に基づいて画像撮影時のカメラ100の傾きの大きさを特定し、その傾きの大きさを加味して距離情報を算出するようにしてもよい。これによって、さらに距離算出の精度を上げることができる。
-Modification-
The camera according to the above-described embodiment can be modified as follows.
(1) In the above-described embodiment, it is assumed that the user performs shooting in a state where the camera 100 is held horizontally with respect to the ground. However, a sensor (tilt sensor) that detects the tilt of the camera 100 may be provided in the camera 100, and the distance information may be calculated in consideration of the tilt. That is, the distance calculation unit 104c may specify the magnitude of the tilt of the camera 100 at the time of image capture based on the output from the tilt sensor, and calculate the distance information in consideration of the magnitude of the tilt. . Thereby, the accuracy of distance calculation can be further increased.

(2)上述した実施の形態の処理で算出した距離情報を、レンズ102の収差情報を加味して補正するようにしてもよい。すなわち、レンズ102の収差情報をメモリ105に記録しておき、距離算出部104cで算出した距離情報をレンズ102の収差情報を加味して補正する。例えば、レンズ102の収差が大きい場合には、撮影画像の端の方のひずみが大きくなるため、このひずみを解消するように補正を行うようにすればよい。また、レンズ102の収差が小さい場合でも、撮影倍率が大きくなれば同様に撮影画像のひずみが大きくなるため、レンズ102の収差情報と共に、撮影倍率も加味して補正を行うようにしてもよい。これによって、さらに精度の高い距離情報を得ることができる。 (2) The distance information calculated by the processing of the above-described embodiment may be corrected in consideration of the aberration information of the lens 102. That is, the aberration information of the lens 102 is recorded in the memory 105, and the distance information calculated by the distance calculation unit 104c is corrected in consideration of the aberration information of the lens 102. For example, when the aberration of the lens 102 is large, the distortion toward the edge of the photographed image increases, so that correction may be performed so as to eliminate this distortion. Even when the aberration of the lens 102 is small, the distortion of the photographed image increases in the same manner as the photographing magnification increases. Therefore, correction may be performed in consideration of the photographing magnification along with the aberration information of the lens 102. Thereby, distance information with higher accuracy can be obtained.

(3)上述した実施の形態では、Exifファイルの付加情報部に距離情報を格納することによって、撮影画像と距離情報とを関連付けて記録する例について説明した。しかしながら、画像ファイルのファイル名と、その画像について算出した距離情報とをデータベース化して記録することによって、撮影画像と距離情報とを関連付けて記録するようにしてもよい。 (3) In the above-described embodiment, the example has been described in which the distance information is stored in the additional information portion of the Exif file so that the captured image and the distance information are recorded in association with each other. However, the captured image and the distance information may be recorded in association with each other by recording the file name of the image file and the distance information calculated for the image in a database.

(4)上述した実施の形態では、距離算出部104cは。実空間上におけるカメラ100から識別標識までの距離を算出することで被写体までの距離を算出し、各識別表紙期間の距離を算出することで各被写体間の距離を算出する例について説明した。しかしながら、距離算出部104cは。各識別標識間の距離に基づいて、各識別標識を端点に付加した対象物の面積を算出するようにしてもよい。すなわち、識別標識が所定範囲の縦サイズと横サイズを特定できるように配置されている場合には、縦サイズと横サイズとに基づいて、その範囲の面積を算出するようにしてもよい。 (4) In the embodiment described above, the distance calculation unit 104c. An example has been described in which the distance to the subject is calculated by calculating the distance from the camera 100 to the identification mark in the real space, and the distance between the subjects is calculated by calculating the distance of each identification cover period. However, the distance calculation unit 104c. Based on the distance between the identification marks, the area of the object with the identification marks added to the end points may be calculated. That is, when the identification mark is arranged so that the vertical size and the horizontal size within a predetermined range can be specified, the area of the range may be calculated based on the vertical size and the horizontal size.

例えば、使用者が部屋の窓の面積を測定したいと考えた場合には、窓枠の縦サイズと横サイズを算出できるように、少なくとも3つのコーナーに識別標識を付加しておく。例えば、図7に示すように3つの識別標識7a〜7cを付加しておく。そして、カメラ100を用いて窓枠全体を撮影することにより、距離算出部104cは、窓枠の縦サイズ(縦方向の2端点に付加した識別標識7aおよび7b間の距離)および横サイズ(横方向の2端点に付加した識別標識7aおよび7c間の距離)を算出する。   For example, when the user wants to measure the area of the window in the room, identification marks are added to at least three corners so that the vertical size and horizontal size of the window frame can be calculated. For example, as shown in FIG. 7, three identification marks 7a to 7c are added. Then, by photographing the entire window frame using the camera 100, the distance calculation unit 104c causes the window frame to have a vertical size (distance between the identification marks 7a and 7b added to two vertical end points) and a horizontal size (horizontal). The distance between the identification marks 7a and 7c added to the two end points in the direction is calculated.

さらに、距離算出部104cは、算出した窓枠の縦サイズと横サイズとに基づいて、窓枠全体の面積を算出する。これによって、上述した実施の形態の発明を応用して、識別標識を付加した対象の面積を算出することができる。また、距離算出部104cで面積を算出した場合には、表示制御部104bは、面積の算出結果もスルー画上に表示し、記録制御部104cは、面積の算出結果も画像に関連付けて記録することが好ましい。   Furthermore, the distance calculation unit 104c calculates the area of the entire window frame based on the calculated vertical size and horizontal size of the window frame. Thus, the area of the object to which the identification mark is added can be calculated by applying the invention of the above-described embodiment. When the area is calculated by the distance calculation unit 104c, the display control unit 104b also displays the area calculation result on the through image, and the recording control unit 104c records the area calculation result in association with the image. It is preferable.

なお、本発明の特徴的な機能を損なわない限り、本発明は、上述した実施の形態における構成に何ら限定されない。   Note that the present invention is not limited to the configurations in the above-described embodiments as long as the characteristic functions of the present invention are not impaired.

カメラの一実施の形態の構成を示すブロック図である。It is a block diagram which shows the structure of one Embodiment of a camera. 識別標識の具体例、および距離算出部104cによる識別標識の認識例を示す図である。It is a figure which shows the specific example of an identification mark, and the recognition example of the identification mark by the distance calculation part 104c. 識別標識を身に着けた2つの被写体が、それぞれカメラから等距離となる位置に存在する場合の具体例を示す図である。It is a figure which shows the specific example in case the two to-be-photographed subjects who wear the identification mark exist in the position which becomes equidistance from a camera, respectively. 識別標識を身に着けた2つの被写体が、それぞれカメラから異なる距離となる位置に存在する場合の具体例を示す図である。It is a figure which shows the specific example in case the two to-be-photographed object which wears the identification label | marker exists in the position which becomes respectively different distance from a camera. 撮影画像内における識別標識の大きさ算出方法の具体例を示す図である。It is a figure which shows the specific example of the magnitude | size calculation method of the identification label | marker in a picked-up image. カメラ100の処理を示すフローチャート図である。FIG. 6 is a flowchart showing processing of the camera 100. 対象物の面積を算出する場合の識別標識の付加例を示す図である。It is a figure which shows the example of addition of the identification mark in the case of calculating the area of a target object.

符号の説明Explanation of symbols

100 カメラ、101 操作部材、102 レンズ、103 撮像素子、104 制御装置、104a 画像取得部、104b 表示制御部、104c 距離算出部、104d 記録制御部、105 メモリ、106 メモリカードスロット、107 モニタ DESCRIPTION OF SYMBOLS 100 Camera, 101 Operation member, 102 Lens, 103 Image sensor, 104 Control apparatus, 104a Image acquisition part, 104b Display control part, 104c Distance calculation part, 104d Recording control part, 105 Memory, 106 Memory card slot, 107 Monitor

Claims (8)

被写体像を撮像して画像を取得する画像取得手段と、
前記画像取得手段で取得した撮影画像内に含まれる識別標識を認識する認識手段と、
前記認識手段で認識した前記識別標識の実空間上におけるカメラからの距離、および前記認識手段によって複数の前記識別標識が認識された場合には、実空間上における各識別標識間の距離を距離情報として算出する距離情報算出手段とを備えることを特徴とするカメラ。
Image acquisition means for acquiring an image by capturing a subject image;
A recognizing unit for recognizing an identification mark included in the captured image acquired by the image acquiring unit;
Distance information from the camera in the real space of the identification mark recognized by the recognition means, and distances between the identification signs in the real space when the recognition means recognizes a plurality of the identification marks. And a distance information calculating means for calculating as follows.
請求項1に記載のカメラにおいて、
前記識別標識は、所定の大きさの領域内に所定の模様が描画されており、
前記認識手段は、前記撮影画像内から前記識別標識に描画された前記模様を検出することによって、前記撮影画像内に含まれる前記識別標識を認識することを特徴とするカメラ。
The camera of claim 1,
The identification mark has a predetermined pattern drawn in an area of a predetermined size,
The said recognition means recognizes the said identification mark contained in the said picked-up image by detecting the said pattern drawn on the said identification mark from the said picked-up image.
請求項1または2に記載のカメラにおいて、
前記距離情報算出手段は、前記撮影画像内における前記識別標識が占める領域の大きさに基づいて、実空間上における前記カメラから前記識別標識までの距離を算出することを特徴とするカメラ。
The camera according to claim 1 or 2,
The distance information calculation unit calculates a distance from the camera to the identification mark in real space based on a size of an area occupied by the identification mark in the captured image.
請求項1〜3のいずれか一項に記載のカメラにおいて、
前記距離情報算出手段は、算出した実空間上における前記カメラから前記識別標識までの距離に基づいて三角測量を行って、実空間上における前記識別標識間の距離を算出することを特徴とするカメラ。
The camera according to any one of claims 1 to 3,
The distance information calculation means performs triangulation based on the calculated distance from the camera to the identification mark in the real space, and calculates a distance between the identification marks in the real space. .
請求項1〜4のいずれか一項に記載のカメラにおいて、
使用者からの指示に基づいて、前記カメラのモードを前記距離情報を算出するためのモードに設定するモード設定手段をさらに備え、
前記認識手段、および前記距離情報算出手段は、前記モード設定手段によって前記カメラのモードが前記距離情報を算出するためのモードに設定されたときに、処理を実行することを特徴とするカメラ。
In the camera according to any one of claims 1 to 4,
Based on an instruction from a user, the camera further comprises mode setting means for setting the camera mode to a mode for calculating the distance information,
The recognizing unit and the distance information calculating unit execute processing when the mode setting unit sets the mode of the camera to a mode for calculating the distance information.
請求項1〜5のいずれか一項に記載のカメラにおいて、
前記認識手段によって認識された前記識別標識が所定範囲の縦サイズと横サイズを特定できるように配置されている場合には、前記距離算出手段は、前記縦サイズと前記横サイズとに基づいて前記所定範囲の面積を算出して前記距離情報に含めることを特徴とするカメラ。
In the camera according to any one of claims 1 to 5,
When the identification mark recognized by the recognition means is arranged so that the vertical size and horizontal size within a predetermined range can be specified, the distance calculation means, based on the vertical size and the horizontal size, A camera characterized in that an area of a predetermined range is calculated and included in the distance information.
請求項1〜6のいずれか一項に記載のカメラにおいて、
前記距離情報算出手段で算出した前記距離情報を前記撮影画像と共に表示装置上に表示する表示制御手段をさらに備えることを特徴とするカメラ。
In the camera according to any one of claims 1 to 6,
A camera further comprising display control means for displaying the distance information calculated by the distance information calculating means on a display device together with the captured image.
請求項1〜7のいずれか一項に記載のカメラにおいて、
前記距離情報算出手段で算出した前記距離情報を前記撮影画像に関連付けて記録媒体に記録する記録制御手段をさらに備えることを特徴とするカメラ。
In the camera according to any one of claims 1 to 7,
A camera, further comprising: a recording control unit that records the distance information calculated by the distance information calculating unit in a recording medium in association with the captured image.
JP2007047527A 2007-02-27 2007-02-27 Camera Pending JP2008209306A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007047527A JP2008209306A (en) 2007-02-27 2007-02-27 Camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007047527A JP2008209306A (en) 2007-02-27 2007-02-27 Camera

Publications (1)

Publication Number Publication Date
JP2008209306A true JP2008209306A (en) 2008-09-11

Family

ID=39785728

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007047527A Pending JP2008209306A (en) 2007-02-27 2007-02-27 Camera

Country Status (1)

Country Link
JP (1) JP2008209306A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013228370A (en) * 2012-03-28 2013-11-07 Ricoh Co Ltd Colorimetry device, image forming device, colorimetry system and colorimetry method
JP2013257289A (en) * 2012-06-14 2013-12-26 Canon Inc Image processing device and image processing method
JP2014181909A (en) * 2013-03-15 2014-09-29 Ricoh Co Ltd Imaging unit, colorimetric device, image forming apparatus, colorimetric system, and distance measuring method
WO2014171052A1 (en) * 2013-04-16 2014-10-23 コニカミノルタ株式会社 Image processing method, image processing device, image-capture device, and image processing program
WO2015166715A1 (en) * 2014-05-02 2015-11-05 富士フイルム株式会社 Distance-measurement device, distance-measurement method, and distance-measurement program
JP2019501743A (en) * 2016-01-15 2019-01-24 ジャンド インコーポレイテッド System and method for determining distance from an object
CN116079759A (en) * 2023-04-07 2023-05-09 西安零远树信息科技有限公司 Service robot-based identification system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013228370A (en) * 2012-03-28 2013-11-07 Ricoh Co Ltd Colorimetry device, image forming device, colorimetry system and colorimetry method
JP2013257289A (en) * 2012-06-14 2013-12-26 Canon Inc Image processing device and image processing method
JP2014181909A (en) * 2013-03-15 2014-09-29 Ricoh Co Ltd Imaging unit, colorimetric device, image forming apparatus, colorimetric system, and distance measuring method
WO2014171052A1 (en) * 2013-04-16 2014-10-23 コニカミノルタ株式会社 Image processing method, image processing device, image-capture device, and image processing program
WO2015166715A1 (en) * 2014-05-02 2015-11-05 富士フイルム株式会社 Distance-measurement device, distance-measurement method, and distance-measurement program
JPWO2015166715A1 (en) * 2014-05-02 2017-04-20 富士フイルム株式会社 Ranging device, ranging method, and ranging program
US10551186B2 (en) 2014-05-02 2020-02-04 Fujifilm Corporation Distance measurement device, distance measurement method, and distance measurement program
JP2019501743A (en) * 2016-01-15 2019-01-24 ジャンド インコーポレイテッド System and method for determining distance from an object
CN116079759A (en) * 2023-04-07 2023-05-09 西安零远树信息科技有限公司 Service robot-based identification system

Similar Documents

Publication Publication Date Title
JP4751776B2 (en) Electronic imaging device and personal identification system
JP4663700B2 (en) Imaging apparatus and imaging method
JP5713055B2 (en) Imaging apparatus, imaging method, and program
WO2010128579A1 (en) Electron camera, image processing device, and image processing method
JP2008209306A (en) Camera
JP2005348181A (en) Photography system, its control method and program for control
JP4127521B2 (en) Digital camera and control method thereof
KR101375988B1 (en) Object detection device, object detection method, and recording medium
JP2009141475A (en) Camera
WO2012014946A1 (en) Image processing device and image processing program
JP2005323015A (en) Digital camera
JP2009081530A (en) Imaging apparatus and imaging method
KR101663226B1 (en) Digital image processing apparatus and digital image processing method
JP2006101025A (en) Photographic apparatus, and image processing method and program thereof
JP4716266B2 (en) Image processing apparatus, imaging apparatus, and program thereof
JP2018007082A (en) Image reproduction device, control method therefor, and program
JP2009111827A (en) Photographing apparatus and image file providing system
JP2006109005A (en) Image output device and imaging device
JP4941020B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL PROGRAM
JP5640377B2 (en) Image processing apparatus, camera, and image processing program
JP5002311B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP4793459B2 (en) Symbol reader and program
JP2009005251A (en) Image processing apparatus
TWI487370B (en) Method of zooming in on an image and a method of using a gui
US9706125B2 (en) Image capturing device