JP2008172586A - Shape acquisition device, program and information retrieval system - Google Patents

Shape acquisition device, program and information retrieval system Download PDF

Info

Publication number
JP2008172586A
JP2008172586A JP2007004503A JP2007004503A JP2008172586A JP 2008172586 A JP2008172586 A JP 2008172586A JP 2007004503 A JP2007004503 A JP 2007004503A JP 2007004503 A JP2007004503 A JP 2007004503A JP 2008172586 A JP2008172586 A JP 2008172586A
Authority
JP
Japan
Prior art keywords
shape
image data
extraction
extracting
aperture value
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
JP2007004503A
Other languages
Japanese (ja)
Inventor
Tatsuya Chiga
達也 千賀
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 JP2007004503A priority Critical patent/JP2008172586A/en
Publication of JP2008172586A publication Critical patent/JP2008172586A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To correctly extract the shape of an object to be shape-extracted even when an object other than the object to be shape-extracted is reflected in image data. <P>SOLUTION: First, as an initial value of a diaphragm value, an open value or a value close to it is set to perform imaging. The shape extraction of a leaf is attempted to the image data generated by the imaging, when the shape extraction is impossible (when a closed loop can not be formed), the set diaphragm value is increased by n steps to perform the imaging and the shape extraction again. When the closed loop is formed, shape data at the time is adopted as the shape data of the leaf. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、画像データから輪郭抽出によって物体の形状を取得する装置およびプログラム、並びに形状データに基づいて情報検索を行うシステムに関する。   The present invention relates to an apparatus and program for acquiring the shape of an object by extracting contours from image data, and a system for performing information retrieval based on the shape data.

例えば花を撮像した際に、得られた画像データから画像認識によって花の特徴(形状や色)を抽出し、その特徴データに基づいて花データベースから花の名前などを検索し、検索結果を表示できるようにした電子カメラが提案されている(例えば、特許文献1参照)。このような検索機能をカメラに持たせることで、名前の知らない花を見つけたときに、その花を撮影するだけで手軽に花の名前等を知ることができる。また、この種の検索機能は、花以外に鳥、昆虫、動物、構造物などにも広く適用可能である。   For example, when a flower is imaged, the feature (shape and color) of the flower is extracted from the obtained image data by image recognition, the name of the flower is searched from the flower database based on the feature data, and the search result is displayed. An electronic camera that can be used has been proposed (see, for example, Patent Document 1). By providing such a search function to the camera, when a flower whose name is unknown is found, it is possible to easily know the name of the flower simply by photographing the flower. In addition to flowers, this type of search function can be widely applied to birds, insects, animals, structures, and the like.

特開2002−247436号公報JP 2002-247436 A

上記画像認識においては、対象物体(花など)の輪郭を抽出することで形状を特定することができる。しかしながら、画像データには対象物体以外にも種々のものが写り込んでいることが多く、その中から対象物体の形状を正確に抽出するのは困難な場合がある。例えば、形状抽出すべき物体と同種同色の物体が複数写り込んでいるような画像データでは、状況によっては複数の物体を1つの物体として誤認識するおそれがある。   In the image recognition, the shape can be specified by extracting the outline of the target object (flower or the like). However, various things other than the target object are often reflected in the image data, and it may be difficult to accurately extract the shape of the target object from the image data. For example, in image data in which a plurality of objects of the same type and the same color as the object whose shape is to be extracted are captured, there is a possibility that the plurality of objects may be erroneously recognized as one object depending on the situation.

本発明に係る形状取得装置は、画像データから物体の輪郭を抽出することで当該物体の形状を抽出する形状抽出手段と、形状抽出が不能の場合に、同一の物体をより大きな絞り値で撮影した画像データに対して再度の形状抽出を行うべく形状抽出手段を制御する制御手段とを具備し、形状抽出が正常になされたときの形状抽出手段の出力を物体の形状データとすることを特徴とする。
被写体を撮像して画像データを生成する撮像手段を更に備え、上記形状抽出の対象となる画像データを撮像手段によって得るようにしてもよい。その場合、形状抽出が正常になされるまで、絞り値を増加しつつ撮像と形状抽出とを交互に行うようにしてもよい。
本発明の他の形状取得装置は、画像データから物体の輪郭を抽出することで当該物体の形状を抽出する形状抽出手段と、同一の物体を異なる絞り値で撮影した画像データのうち絞り値の小さい画像データから物体の占める領域を推定し、絞り値の大きい画像データから上記推定した領域に対して物体の形状を抽出すべく形状抽出手段を制御する制御手段とを具備することを特徴とする。
被写体を撮像して画像データを生成する撮像手段を更に備え、形状抽出の対象となる画像データを撮像手段によって得るようにしてもよい。
形状抽出によって得た形状データを検索キーとして、所定のデータベースから物体の情報を検索する検索手段を更に設けてもよい。
形状抽出によって得た形状データを、検索キーとして外部に送信する送信手段を更に設けてもよい。
本発明に係る形状取得プログラムは、画像データから物体の輪郭を抽出することで当該物体の形状を抽出する機能と、形状抽出が不能の場合に、同一の物体をより大きな絞り値で撮影した画像データに対して再度の形状抽出を行わしめる機能と、形状抽出が正常になされたときの形状抽出結果を物体の形状データとする機能とをコンピュータに実現させるためのものである。
本発明に係る他の形状取得プログラムは、画像データから物体の輪郭を抽出することで当該物体の形状を抽出する機能と、同一の物体を異なる絞り値で撮影した画像データのうち絞り値の小さい画像データから物体の占める領域を推定し、絞り値の大きい画像データから上記推定した領域に対して物体の形状を抽出せしめる機能とをコンピュータに実現させるためのものである。
本発明に係る情報検索システムは、請求項7に記載の形状取得装置と、形状取得装置から送信された形状データを受信し、受信した形状データを検索キーとして、所定のデータベースから物体の情報を検索し、検索した情報を形状取得装置に送信する外部サーバとを具備することを特徴とする。
The shape acquisition device according to the present invention captures the same object with a larger aperture value when shape extraction means for extracting the shape of the object by extracting the contour of the object from image data and shape extraction is impossible Control means for controlling the shape extraction means to perform shape extraction again on the obtained image data, and the output of the shape extraction means when the shape extraction is performed normally is the shape data of the object And
An image pickup unit that picks up an image of the subject and generates image data may be further provided, and the image data to be subjected to the shape extraction may be obtained by the image pickup unit. In that case, imaging and shape extraction may be performed alternately while increasing the aperture value until shape extraction is performed normally.
Another shape acquisition apparatus according to the present invention includes a shape extraction unit that extracts the shape of an object by extracting the contour of the object from image data, and an aperture value of image data obtained by capturing the same object with different aperture values. Control means for estimating a region occupied by an object from small image data and controlling the shape extraction means to extract the shape of the object from the estimated region from image data having a large aperture value. .
An imaging unit that captures an image of a subject and generates image data may be further provided, and image data that is a target of shape extraction may be obtained by the imaging unit.
Search means for searching for object information from a predetermined database may be further provided using the shape data obtained by shape extraction as a search key.
You may further provide the transmission means which transmits the shape data obtained by shape extraction as a search key outside.
The shape acquisition program according to the present invention includes a function for extracting the shape of an object by extracting the contour of the object from image data, and an image obtained by photographing the same object with a larger aperture value when the shape cannot be extracted. This is for causing the computer to realize a function of performing shape extraction again on the data and a function of using the shape extraction result when the shape extraction is performed normally as the shape data of the object.
Another shape acquisition program according to the present invention has a function of extracting the shape of an object by extracting the contour of the object from image data and a small aperture value among image data obtained by photographing the same object with different aperture values. This is for causing a computer to realize a function of estimating an area occupied by an object from image data and extracting the shape of the object from the estimated area from image data having a large aperture value.
An information search system according to the present invention receives the shape acquisition device according to claim 7 and shape data transmitted from the shape acquisition device, and uses the received shape data as a search key to retrieve object information from a predetermined database. And an external server for searching and transmitting the searched information to the shape acquisition device.

本発明によれば、画像データ中に形状抽出対象物体以外のものが写り込んでいる場合でも、対象物体の形状を正確に抽出できる。   According to the present invention, it is possible to accurately extract the shape of the target object even when the object other than the shape extraction target object is reflected in the image data.

−第1の実施形態−
図1〜図9により本発明の第1の実施形態を説明する。
図1は本実施形態における情報検索システムの構成図である。この検索システムは、デジタルカメラ100で撮影した花や葉の特徴データを検索サーバ200に送り、検索サーバ200にてその植物の名称などの情報を検索してカメラ100に送り返すことを可能にするものである。検索サーバ200は、花や葉の情報を格納した図鑑データベース201と検索エンジン202とを有し、ネットワーク上に置かれる。カメラ100は、通信回線網300を介して検索サーバ200にインターネット接続可能であり、サーバ200との間で情報の授受が行える。
-First embodiment-
A first embodiment of the present invention will be described with reference to FIGS.
FIG. 1 is a configuration diagram of an information search system in the present embodiment. This search system allows the feature data of the flowers and leaves taken by the digital camera 100 to be sent to the search server 200, and enables the search server 200 to search for information such as the name of the plant and send it back to the camera 100. It is. The search server 200 has a pictorial book database 201 storing information on flowers and leaves and a search engine 202, and is placed on a network. The camera 100 can be connected to the search server 200 via the communication network 300 and can exchange information with the server 200.

図2はカメラ100の制御ブロック図である。撮影レンズ1および絞り2を通過した被写体光束は、CCD等の撮像素子3に受光され、光電変換される。画像処理回路4は、撮像素子3の光電変換出力に対して種々の処理を施して画像データを生成し、画像データは、記録回路5を介して画像記録媒体6に記録される。画像処理回路4および記録回路5はCPU7によって制御される。   FIG. 2 is a control block diagram of the camera 100. The subject luminous flux that has passed through the photographing lens 1 and the diaphragm 2 is received by an imaging device 3 such as a CCD and subjected to photoelectric conversion. The image processing circuit 4 performs various processes on the photoelectric conversion output of the image sensor 3 to generate image data, and the image data is recorded on the image recording medium 6 via the recording circuit 5. The image processing circuit 4 and the recording circuit 5 are controlled by the CPU 7.

絞り駆動部回路8は、CPU7からの指示に従い、撮影者またはCPU7が設定した絞り値(設定絞り値)に基づいて絞り2を駆動する。レンズ駆動回路9は、CPU7からの指示に従い、撮影レンズ1のフォーカシングやズーミングを行う。メモリ10には所定の画像認識プログラムが格納され、CPU7はこのプログラムを用いて画像データから花や葉の特徴を抽出する。表示装置11は、例えば液晶モニタおよびその駆動部にて構成され、画像表示やメニュー表示、警告メッセージなどの表示が可能とされる。無線通信回路12は、CPU7に指示に従い、通信回線網300を介して外部との通信を行う。   The aperture drive unit circuit 8 drives the aperture 2 based on an aperture value (set aperture value) set by the photographer or the CPU 7 in accordance with an instruction from the CPU 7. The lens driving circuit 9 performs focusing and zooming of the photographing lens 1 in accordance with instructions from the CPU 7. A predetermined image recognition program is stored in the memory 10, and the CPU 7 extracts features of flowers and leaves from the image data using this program. The display device 11 includes, for example, a liquid crystal monitor and a driving unit thereof, and can display an image display, a menu display, a warning message, and the like. The wireless communication circuit 12 communicates with the outside via the communication line network 300 in accordance with instructions from the CPU 7.

花の情報検索においては、植物の花の特徴情報(花びらの色、形状、枚数など)が基本的な検索キーとなるが、それだけでは候補を絞りきれないことが多い。花の特徴は極めて似ているが異種の植物というケースが複数存在するからである。この点に関しては、花だけでなく葉の形状的な特徴をも検索キーとして加えることで、検索結果をかなり絞り込めることが判明している。そこで本実施形態では、同一の植物に対し、花を撮影した画像データから花の特徴情報を抽出し、葉を撮影した画像データから葉の特徴情報(形状データ)を抽出し、それらを合わせて検索キーとする。   In flower information retrieval, plant flower feature information (petal color, shape, number, etc.) is a basic retrieval key, but it is often impossible to narrow down candidates. This is because there are multiple cases of heterogeneous plants with very similar flower characteristics. In this regard, it has been found that the search results can be narrowed down considerably by adding not only flowers but also leaf-shaped features as search keys. Therefore, in the present embodiment, for the same plant, the feature information of the flower is extracted from the image data obtained by photographing the flower, the feature information (shape data) of the leaf is extracted from the image data obtained by photographing the leaf, and these are combined. Use as a search key.

図3は葉の形状的な特徴の分類例を示している。これは「切れ込み」を基準として分類したもので、(a)の「単葉」は切れ込みが殆どない1枚の葉、(b)の「深切れ込み」は、深い切れ込みがあるが1枚の葉、(c)の複葉は、切れ込みによって複数の小葉に分裂した葉をそれぞれ示す。葉の形状抽出では、図3の9タイプのうちいずれに該当するかを判別する。   FIG. 3 shows an example of classification of leaf-shaped features. This is a classification based on "cuts", (a) "single leaf" is a single leaf with almost no cut, (b) "deep cut" is a deep cut but one leaf, The compound leaf of (c) shows the leaf which divided | segmented into the several leaflet by the cut. In the leaf shape extraction, it is determined which of the nine types in FIG.

花や葉の形状抽出は、上述した画像認識プログラムにより1つの花や葉の輪郭を抽出することで行う。輪郭抽出には基本的に画素情報の微分が用いられるが、prewittフィルタやsobelフィルタなどの公知の手法を用いることができる。輪郭抽出後、輪郭を閉ループで囲む処理を施すことで、花や葉の形状を切り出すことができる。花は一般に色鮮やかなものが多く、また緑色の花はごく希であることから、画像データ中の緑系統のもの、茶系統のもの、灰色系統のものを、それぞれ葉、土、石やブロック塀などの非花部分として除外することで、1つの花の形状を比較的容易に抽出できる。   The extraction of the shape of a flower or leaf is performed by extracting the outline of one flower or leaf using the image recognition program described above. For the contour extraction, differentiation of pixel information is basically used, but a known method such as a prewitt filter or a sobel filter can be used. After the contour extraction, the shape of the flower or leaf can be cut out by performing a process of surrounding the contour with a closed loop. Flowers are generally colorful and green flowers are rare, so the green, brown, and gray lines in the image data are the leaves, soil, stones, and blocks, respectively. By excluding them as non-flower parts such as buds, the shape of one flower can be extracted relatively easily.

一方、葉は種類に拘わらず殆どが緑色であり、しかも1画像中に複数の同色の葉が重なった状態で写っているのが普通である。かかる画像から1枚(複葉の場合は1グループ)の葉の形状を正確に抽出するには、1枚の葉とその周囲との境界が明瞭で、かつそれ以外の部分は境界が曖昧である必要がある。つまり、1枚の葉のエッジ部全体にピントが合い、それ以外の葉は大きくボケている状態が理想的である。   On the other hand, most of the leaves are green regardless of the type, and a plurality of leaves of the same color are usually shown in one image. In order to accurately extract the shape of one leaf (one group in the case of double leaves) from such an image, the boundary between one leaf and its surroundings is clear, and the boundary is ambiguous in other parts. There is a need. In other words, it is ideal that the entire edge of one leaf is in focus and the other leaves are greatly blurred.

本発明者らは、画像データから植物の葉の形状を抽出する実験を行った。撮影に際しては、図4に示すように一眼レフタイプのデジタルカメラ100に105mmF2.8のマクロレンズを装着し、鉢植えの単葉植物から30cmの距離に固定した。そして、植物の1枚の葉にピントを合わせた状態で、絞りを変えて複数回撮像を行い、得られた複数の画像データをパーソナルコンピュータ400に取り込み、prewittフィルタでそれぞれ輪郭抽出を行った。次いで、抽出した輪郭を閉ループで囲む処理を施し、正確に切り出しが行えるか否かを試した。図5〜図7はそのときの輪郭抽出画像を模式的に表したもので、符号50はピントを合わせた葉を示し、また実線は輪郭が明確な部分、点線は不明瞭な部分をそれぞれ示している。   The present inventors conducted an experiment to extract the shape of a plant leaf from image data. At the time of photographing, as shown in FIG. 4, a single lens reflex type digital camera 100 was equipped with a macro lens of 105 mmF2.8 and fixed at a distance of 30 cm from the potted monocotyledonous plant. Then, with the focus on one leaf of the plant, imaging was performed a plurality of times with different apertures, and the obtained plurality of image data was taken into the personal computer 400, and the respective contours were extracted with the prewitt filter. Next, a process of surrounding the extracted contour with a closed loop was performed to test whether or not the extraction can be accurately performed. 5 to 7 schematically show the contour extraction image at that time. Reference numeral 50 indicates a focused leaf, a solid line indicates a clear outline, and a dotted line indicates an unclear area. ing.

図5は絞り値をF3.2としたときのもので、被写界深度がかなり浅いため、葉50以外の葉は大きくぼかすことができたが、葉50の一部にしかピントが合わず、葉50のエッジが部分的にボケてしまった。このため、葉50の形状の閉ループが形成できず、葉50の形状を切り出すことができなかった。   FIG. 5 shows an aperture value of F3.2. Since the depth of field is considerably shallow, leaves other than the leaves 50 can be greatly blurred. However, only a part of the leaves 50 is in focus. The edge of the leaf 50 was partially blurred. For this reason, the closed loop of the shape of the leaf 50 could not be formed, and the shape of the leaf 50 could not be cut out.

一方、図6は絞り値をF20としたときのもので、被写界深度がかなり深いため、ピントを合わせた葉50のエッジ部全体を明確にすることができた。しかし、葉50の背景にある葉も一部が被写界深度内に入ってしまい、また被写界深度に入らない葉もボケ量が小さいため、葉50以外の葉のエッジも明確となってしまった。その結果、複数の葉が1枚の葉として認識され、葉50の形状を切り出すことができなかった。   On the other hand, FIG. 6 shows a case where the aperture value is set to F20. Since the depth of field is considerably deep, the entire edge portion of the focused leaf 50 can be clarified. However, some of the leaves in the background of the leaf 50 are also within the depth of field, and the leaves that do not enter the depth of field have a small amount of blur, so the edges of the leaves other than the leaf 50 are also clear. I have. As a result, a plurality of leaves were recognized as one leaf, and the shape of the leaf 50 could not be cut out.

図7は絞りをF8.0としたときのもので、被写界深度が中程度となり、葉50のエッジ部のほぼ全体を明確にでき、またそれ以外の葉を適度にぼかすことができた。その結果、葉50の形状を正確に切り出すことができた。   FIG. 7 shows the aperture when the aperture is set to F8.0, the depth of field is medium, the entire edge portion of the leaf 50 can be clarified, and other leaves can be moderately blurred. . As a result, the shape of the leaf 50 could be accurately cut out.

以上から、葉の形状抽出に用いる画像を撮影するときは、ピント状態だけでなく絞り値の選択が重要であることが分かる。しかし、撮影者自身が最適な絞り値を見つけるのは難しいため、本実施形態では、以下に示すようにカメラ100が最適な絞り値を見つけ、その絞り値で撮影された画像データを葉の特徴抽出画像データとして選択する。   From the above, it can be understood that not only the focus state but also the selection of the aperture value is important when capturing an image used for leaf shape extraction. However, since it is difficult for the photographer himself to find the optimum aperture value, in this embodiment, the camera 100 finds the optimum aperture value as described below, and the image data photographed with the aperture value is used as the feature of the leaf. Select as extracted image data.

図8,図9は特徴抽出を含む情報検索処理の具体例を示すフローチャートである。
情報検索モードを設定すると、CPU7にてこのプログラムが実行される。まずステップS1で花の撮影を促すメッセージを表示装置11に表示し、ステップS2で撮影者の撮影操作を待つ。撮影者が目的の花を構図に入れてレリーズボタンを操作すると、ステップS3で撮影を行い、生成された画像データに対して花の特徴抽出を行う。
8 and 9 are flowcharts showing a specific example of information search processing including feature extraction.
When the information search mode is set, the CPU 7 executes this program. First, in step S1, a message prompting the user to shoot a flower is displayed on the display device 11, and in step S2, a photographer's shooting operation is awaited. When the photographer puts the target flower in the composition and operates the release button, the photograph is taken in step S3, and the feature of the flower is extracted from the generated image data.

次に、CPU7はステップS4で葉の撮影を促すメッセージを表示し、ステップS5で撮影操作を待つ。撮影者が目的の葉を構図に入れてレリーズボタンを操作すると、ステップS6で撮影および葉の形状抽出を行う。   Next, in step S4, the CPU 7 displays a message for prompting the photographing of the leaves, and waits for a photographing operation in step S5. When the photographer puts the target leaf in the composition and operates the release button, photographing and leaf shape extraction are performed in step S6.

図9はステップS6の詳細を示すフローチャートである。
ステップS61では設定絞り値の初期値を開放値かそれに近い値とする。ステップS62では、絞り2を設定絞り値に基づいて駆動し、撮像を行う。撮像によって生成された画像データに対し、ステップS63で葉の形状抽出を試みる。ステップS64では、閉ループが形成されたか否かを判定する。上述したように、絞り値が小さく被写界深度が浅い場合には、閉ループ形成不能となる可能性が高く、この場合はステップS65に進む。ステップS65では、設定絞り値が最大絞り値か否かを判定し、最大絞り値であれば、ステップS66で形状抽出不能のエラーメッセージを表示してリターンする。
FIG. 9 is a flowchart showing details of step S6.
In step S61, the initial value of the set aperture value is set to the open value or a value close thereto. In step S62, the aperture 2 is driven based on the set aperture value, and imaging is performed. In step S63, leaf shape extraction is attempted on image data generated by imaging. In step S64, it is determined whether a closed loop is formed. As described above, when the aperture value is small and the depth of field is shallow, there is a high possibility that a closed loop cannot be formed. In this case, the process proceeds to step S65. In step S65, it is determined whether or not the set aperture value is the maximum aperture value. If the aperture value is the maximum aperture value, an error message indicating that the shape cannot be extracted is displayed in step S66, and the process returns.

ステップS65で最大絞り値でないと判定された場合は、ステップS67で設定絞り値をn段分だけ大きくし、再度の撮影および形状抽出を行うべくステップS62に戻る。nの値としては、1,2,1/2などが考えられる。nを予め撮影者が設定できるようにしてもよい。   If it is determined in step S65 that it is not the maximum aperture value, the set aperture value is increased by n steps in step S67, and the process returns to step S62 to perform another imaging and shape extraction. Possible values of n are 1, 2, 1/2, and the like. The photographer may be able to set n in advance.

一方、ステップS64で閉ループが形成されたと判定されると、葉の形状データが取得できたので、そのままリターンする。この場合、閉ループは可能な限り小さい絞り値で形成されたことになるので、ピントを合わせた葉の形状が正確に切り出せた可能性は高い。   On the other hand, if it is determined in step S64 that a closed loop has been formed, the leaf shape data has been acquired, and the process returns. In this case, since the closed loop is formed with the smallest possible aperture value, there is a high possibility that the shape of the focused leaf can be accurately cut out.

図8のステップS7では、ステップS3で得た花の特徴情報と、ステップS6で得た葉の特徴情報(形状データ)を検索キーとして検索サーバ200に送信する。ただし、葉の形状データが取得できなかった場合(上記ステップS65が肯定された場合)は、花の特徴情報のみを検索キーとして送信する。なお、花と葉の双方の特徴情報が取得されて初めて送信を行うようにしてもよい。   In step S7 of FIG. 8, the flower feature information obtained in step S3 and the leaf feature information (shape data) obtained in step S6 are transmitted to the search server 200 as search keys. However, if the leaf shape data cannot be obtained (if step S65 is affirmed), only the flower feature information is transmitted as a search key. Note that transmission may be performed only after the feature information of both flowers and leaves is acquired.

検索キーを受信した検索サーバ200は、検索エンジン202を用いて図鑑データベース201から検索キーに適った情報を検索し、検索結果をカメラ100に送信する。カメラ100のCPU7は、受信した検索結果を表示装置11に表示する。   The search server 200 that has received the search key searches for information suitable for the search key from the pictorial book database 201 using the search engine 202, and transmits the search result to the camera 100. The CPU 7 of the camera 100 displays the received search result on the display device 11.

−第2の実施形態−
本実施形態では、小さい絞り値で撮影した画像データと、大きい絞り値で撮影した画像データとを用いて葉の形状データを取得する。上述の実験において、F3.2で撮影した画像データでは、図5のように葉50の閉ループは形成できなかったものの、葉50の占めるおおよその領域は推定できる。一方、F20で撮影した画像データでは、図6のように葉50の閉ループが形成できている。したがって、図6の形状データに対し、図5で推定した葉50のおおよその領域(座標として記憶しておく)のみを残すフィルタ処理を施すことで、葉50の形状データのみを切り出すことができる。
-Second Embodiment-
In this embodiment, leaf shape data is acquired using image data captured with a small aperture value and image data captured with a large aperture value. In the above-described experiment, in the image data photographed at F3.2, although the closed loop of the leaf 50 could not be formed as shown in FIG. 5, the approximate area occupied by the leaf 50 can be estimated. On the other hand, in the image data photographed at F20, a closed loop of the leaves 50 can be formed as shown in FIG. Therefore, by applying a filtering process that leaves only the approximate area (stored as coordinates) of the leaf 50 estimated in FIG. 5 to the shape data of FIG. 6, only the shape data of the leaf 50 can be cut out. .

具体的な制御としては、上記図9のフローに代えて図10のフローを用いればよい。
図10において、ステップS101では設定絞り値を開放値かそれに近い値とする。ステップS102では、絞り2を設定絞り値に基づいて駆動し、撮像を行う。撮像によって生成された画像データに対し、ステップS103で葉の形状抽出を試みる。ステップS104では閉ループが形成されたか否かを判定し、肯定されると、形状データが取得できたのでそのままリターンする。一方、ステップS104が否定されると、ステップS105に進む。
As specific control, the flow of FIG. 10 may be used instead of the flow of FIG.
In FIG. 10, in step S101, the set aperture value is set to the open value or a value close thereto. In step S102, the aperture 2 is driven based on the set aperture value, and imaging is performed. In step S103, an attempt is made to extract the leaf shape of the image data generated by the imaging. In step S104, it is determined whether or not a closed loop has been formed. If the determination is affirmative, the shape data can be acquired, and the process directly returns. On the other hand, if step S104 is negative, the process proceeds to step S105.

ステップS105では、ステップS103で得た形状データから葉のおおよその領域を推定し、記憶する。ステップS106では、絞り値をより大きい値(例えば、F20)に設定する。ステップS107では、絞り2を設定絞り値に基づいて絞り込み、撮像を行う。撮像によって得られた画像データに対し、ステップS108で形状抽出を行う。ステップS109では、ステップS108で得た形状データに対し、ステップS105で記憶した領域のみを残すフィルタ処理を施し、葉の形状を切り出して形状データとする。   In step S105, an approximate region of the leaf is estimated from the shape data obtained in step S103 and stored. In step S106, the aperture value is set to a larger value (for example, F20). In step S107, the aperture 2 is narrowed down based on the set aperture value, and imaging is performed. In step S108, shape extraction is performed on the image data obtained by imaging. In step S109, the shape data obtained in step S108 is subjected to a filtering process that leaves only the area stored in step S105, and the shape of the leaf is cut out to be shape data.

なお、実験では単葉の植物を用いたが、上記第1,第2の実施形態の方法を用いれば、図11,図12に示すように、深切れ込みや複葉の形状データも正確に得られる可能性が増す。   In the experiment, a single-leaf plant was used. However, if the methods of the first and second embodiments are used, as shown in FIGS. 11 and 12, shape data of deep cuts and compound leaves can be obtained accurately. Increases nature.

以上では葉の形状抽出について説明したが、花の形状抽出に本発明の手法を用いてもよい。例えば、同種同色の花が密生して咲いているシーンを撮影した場合、その画像データから1つの花の形状を正確に抽出することができる。また、植物以外に鳥や昆虫、動物、構造物などの形状抽出にも本発明の手法を同様に適用できる。   Although the leaf shape extraction has been described above, the method of the present invention may be used for flower shape extraction. For example, when a scene where flowers of the same type and color are densely blooming is photographed, the shape of one flower can be accurately extracted from the image data. In addition to the plant, the technique of the present invention can be similarly applied to shape extraction of birds, insects, animals, structures, and the like.

以上ではカメラにて説明したが、撮影機能は持たず、外部から入力した画像データに対して形状抽出を行うものにも本発明を適用できる。例えば、同一の被写体を異なる絞り値で撮影した画像データをコンピュータに取り込み、コンピュータに組み込んだソフトウェアにて絞り値の小さい画像データから順に形状抽出を試みたり、あるいは絞り値の小さい画像データから特定物体の占める領域を推定し、絞り値の大きい画像データから上記推定した領域に対して物体の形状を抽出するという形態が考えられる。   In the above description, the camera is used. However, the present invention can also be applied to an apparatus that does not have a photographing function and performs shape extraction on image data input from the outside. For example, image data obtained by shooting the same subject with different aperture values can be imported to a computer, and the shape can be extracted sequentially from image data with a smaller aperture value using software built into the computer, or a specific object can be extracted from image data with a smaller aperture value. The area occupied by the object is estimated, and the shape of the object is extracted from the estimated area from the image data having a large aperture value.

さらに、カメラと検索サーバから成る情報検索システムを示したが、カメラに図鑑データベースと検索エンジンとを組み込めば、カメラ単体で検索が行える。また、情報検索以外の目的で物体の形状を抽出する場合にも本発明を適用可能である。   Furthermore, an information search system comprising a camera and a search server has been shown. However, if a picture book database and a search engine are incorporated in the camera, the camera can be searched alone. The present invention can also be applied when extracting the shape of an object for purposes other than information retrieval.

本発明の実施形態における情報検索システムのネットワーク図。1 is a network diagram of an information search system in an embodiment of the present invention. 検索システムを構成するデジタルカメラの制御ブロック図。The control block diagram of the digital camera which comprises a search system. 植物の葉の形状的分類を示す図。The figure which shows the shape classification of the leaf of a plant. 本発明者らによる実験方法を説明する図。The figure explaining the experimental method by the present inventors. 実験結果を表す図で、絞り値がF3.2のときの葉の形状抽出結果を示す図。The figure showing an experimental result, and a figure showing a shape extraction result of a leaf when an aperture value is F3.2. 図5と同様の図で、絞り値がF20のときの葉の形状抽出結果を示す。FIG. 5 is a diagram similar to FIG. 5 and shows the leaf shape extraction result when the aperture value is F20. 図5と同様の図で、絞り値がF8のときの葉の形状抽出結果を示す。FIG. 5 is a view similar to FIG. 5 and shows the leaf shape extraction result when the aperture value is F8. 検索処理の手順例を示すフローチャート。The flowchart which shows the example of a procedure of a search process. 第1の実施形態における葉の形状抽出の詳細を示すフローチャート。The flowchart which shows the detail of the shape extraction of the leaf in 1st Embodiment. 第2の実施形態における葉の形状抽出の詳細を示すフローチャート。The flowchart which shows the detail of the shape extraction of the leaf in 2nd Embodiment. 「深切れ込み」の葉の形状抽出結果を示す。The shape extraction result of the “deep cut” leaf is shown. 「複葉」の葉の形状抽出結果を示す。The shape extraction result of the “double leaf” leaf is shown.

符号の説明Explanation of symbols

2 絞り
3 撮像素子
4 画像処理回路
7 CPU
8 絞り駆動回路
11 表示装置
2 Aperture 3 Image sensor 4 Image processing circuit 7 CPU
8 Aperture drive circuit 11 Display device

Claims (10)

画像データから物体の輪郭を抽出することで当該物体の形状を抽出する形状抽出手段と、
前記形状抽出が不能の場合に、同一の物体をより大きな絞り値で撮影した画像データに対して再度の形状抽出を行うべく前記形状抽出手段を制御する制御手段とを具備し、
前記形状抽出が正常になされたときの前記形状抽出手段の出力を物体の形状データとすることを特徴とする形状取得装置。
Shape extracting means for extracting the shape of the object by extracting the contour of the object from the image data;
Control means for controlling the shape extraction means to perform shape extraction again on image data obtained by photographing the same object with a larger aperture value when the shape extraction is impossible;
A shape acquisition apparatus characterized in that an output of the shape extraction means when the shape extraction is normally performed is object shape data.
被写体を撮像して画像データを生成する撮像手段を更に備え、前記形状抽出の対象となる画像データを前記撮像手段によって得ることを特徴とする請求項1に記載の形状取得装置。   The shape acquisition apparatus according to claim 1, further comprising an imaging unit that captures an image of a subject and generates image data, and the imaging unit obtains image data to be extracted. 前記形状抽出が正常になされるまで、前記絞り値を増加しつつ撮像と形状抽出とを交互に行うことを特徴とする請求項2に記載の形状取得装置。   The shape acquisition apparatus according to claim 2, wherein imaging and shape extraction are alternately performed while increasing the aperture value until the shape extraction is performed normally. 画像データから物体の輪郭を抽出することで当該物体の形状を抽出する形状抽出手段と、
同一の物体を異なる絞り値で撮影した画像データのうち絞り値の小さい画像データから前記物体の占める領域を推定し、絞り値の大きい画像データから前記推定した領域に対して物体の形状を抽出すべく形状抽出手段を制御する制御手段とを具備することを特徴とする形状取得装置。
Shape extracting means for extracting the shape of the object by extracting the contour of the object from the image data;
The area occupied by the object is estimated from image data having a small aperture value among image data obtained by photographing the same object with different aperture values, and the shape of the object is extracted from the image area having a large aperture value. A shape acquisition apparatus comprising: control means for controlling the shape extraction means as much as possible.
被写体を撮像して画像データを生成する撮像手段を更に備え、前記形状抽出の対象となる画像データを前記撮像手段によって得ることを特徴とする請求項4に記載の形状取得装置。   The shape acquisition apparatus according to claim 4, further comprising an image pickup unit that picks up an image of a subject and generates image data, and the image pickup unit obtains the image data to be extracted. 前記形状抽出によって得た形状データを検索キーとして、所定のデータベースから前記物体の情報を検索する検索手段を更に備えることを特徴とする請求項1〜5のいずれか1項に記載の形状取得装置。   The shape acquisition apparatus according to claim 1, further comprising a search unit that searches for information on the object from a predetermined database using the shape data obtained by the shape extraction as a search key. . 前記形状抽出によって得た形状データを、検索キーとして外部に送信する送信手段を更に備えることを特徴とする請求項1〜5のいずれか1項に記載の形状取得装置。   The shape acquisition apparatus according to claim 1, further comprising transmission means for transmitting the shape data obtained by the shape extraction to the outside as a search key. 画像データから物体の輪郭を抽出することで当該物体の形状を抽出する機能と、
前記形状抽出が不能の場合に、同一の物体をより大きな絞り値で撮影した画像データに対して再度の形状抽出を行わしめる機能と、
前記形状抽出が正常になされたときの形状抽出結果を物体の形状データとする機能とをコンピュータに実現させるための形状取得プログラム。
A function of extracting the shape of the object by extracting the contour of the object from the image data;
A function of performing shape extraction again on image data obtained by photographing the same object with a larger aperture value when the shape extraction is impossible;
A shape acquisition program for causing a computer to realize a function of using a shape extraction result when the shape extraction is normally performed as shape data of an object.
画像データから物体の輪郭を抽出することで当該物体の形状を抽出する機能と、
同一の物体を異なる絞り値で撮影した画像データのうち絞り値の小さい画像データから前記物体の占める領域を推定し、絞り値の大きい画像データから前記推定した領域に対して物体の形状を抽出せしめる機能とをコンピュータに実現させるための形状取得プログラム。
A function of extracting the shape of the object by extracting the contour of the object from the image data;
The area occupied by the object is estimated from image data having a small aperture value among image data obtained by photographing the same object with different aperture values, and the shape of the object is extracted from the image area having a large aperture value. Shape acquisition program for realizing functions and functions on a computer.
請求項7に記載の形状取得装置と、
前記形状取得装置から送信された形状データを受信し、受信した形状データを検索キーとして、所定のデータベースから物体の情報を検索し、検索した情報を前記形状取得装置に送信する外部サーバとを具備することを特徴とする情報検索システム。
The shape acquisition device according to claim 7,
An external server that receives the shape data transmitted from the shape acquisition device, searches for information on an object from a predetermined database using the received shape data as a search key, and transmits the searched information to the shape acquisition device. An information retrieval system characterized by:
JP2007004503A 2007-01-12 2007-01-12 Shape acquisition device, program and information retrieval system Pending JP2008172586A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007004503A JP2008172586A (en) 2007-01-12 2007-01-12 Shape acquisition device, program and information retrieval system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007004503A JP2008172586A (en) 2007-01-12 2007-01-12 Shape acquisition device, program and information retrieval system

Publications (1)

Publication Number Publication Date
JP2008172586A true JP2008172586A (en) 2008-07-24

Family

ID=39700250

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007004503A Pending JP2008172586A (en) 2007-01-12 2007-01-12 Shape acquisition device, program and information retrieval system

Country Status (1)

Country Link
JP (1) JP2008172586A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011164614A (en) * 2010-02-09 2011-08-25 Axis Ab Calibration of lens device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011164614A (en) * 2010-02-09 2011-08-25 Axis Ab Calibration of lens device
US8270826B2 (en) 2010-02-09 2012-09-18 Axis Ab Calibration of a lens device
KR101577606B1 (en) 2010-02-09 2015-12-15 악시스 에이비 Calibration of a lens device

Similar Documents

Publication Publication Date Title
CN100565320C (en) The control method of imaging device, imaging device and computer program
US10721414B2 (en) All-in-focus implementation
JP5713055B2 (en) Imaging apparatus, imaging method, and program
JP2013005091A (en) Imaging apparatus and distance information acquisition method
JP2014033313A (en) Photographing apparatus
JP2008278350A (en) Imaging apparatus, imaging control program, and imaging control method
JP2008244903A (en) Photographing device, control program, and display control method
JP2010279054A (en) Image pickup device, image processing device, image pickup method, and image processing method
WO2012063544A1 (en) Image processing device, image processing method, and recording medium
JP2009060355A (en) Imaging apparatus, imaging method, and program
JP2006308813A (en) Imaging apparatus with focus bracket function
CN101841654B (en) Image processing apparatus and image processing method
JP5075110B2 (en) Focus adjustment apparatus and method
JP2007179389A (en) Photographing device
JP2008172586A (en) Shape acquisition device, program and information retrieval system
JP2008152713A (en) Electronic pictorial book
JP2009260800A (en) Imaging device, dictionary database system, and main subject image output method and main subject image output program
JP2009092961A (en) Focusing position control device, focusing position control method, and focusing position control program
JP2007181020A (en) Photographing apparatus
JP2008103850A (en) Camera, image retrieval system, and image retrieving method
JP6246301B2 (en) Photographing equipment and photographing method
JP2007213083A (en) Image processing system, image processing method, image processing apparatus, image processing program
JP4810440B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
CN110460773A (en) Image processing method and device, electronic equipment, computer readable storage medium
JP2013126012A (en) Photographic system, photographic device, and information management device