JP2008079185A - Automatic photograph creating apparatus, and automatic photograph creating method - Google Patents

Automatic photograph creating apparatus, and automatic photograph creating method Download PDF

Info

Publication number
JP2008079185A
JP2008079185A JP2006258365A JP2006258365A JP2008079185A JP 2008079185 A JP2008079185 A JP 2008079185A JP 2006258365 A JP2006258365 A JP 2006258365A JP 2006258365 A JP2006258365 A JP 2006258365A JP 2008079185 A JP2008079185 A JP 2008079185A
Authority
JP
Japan
Prior art keywords
image
color
user
photographing
mask
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
JP2006258365A
Other languages
Japanese (ja)
Inventor
Satoshi Tatsumi
聡 辰巳
Masaharu Okuda
正治 奥田
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.)
Tatsumi Denshi Kogyo KK
Original Assignee
Tatsumi Denshi Kogyo KK
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 Tatsumi Denshi Kogyo KK filed Critical Tatsumi Denshi Kogyo KK
Priority to JP2006258365A priority Critical patent/JP2008079185A/en
Publication of JP2008079185A publication Critical patent/JP2008079185A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a photograph creating apparatus which can perform chromakey processing even when a key color added to a part within a photographing range except for the background is different from the key color of the background. <P>SOLUTION: A main control part 80 of the photograph creating apparatus segments a first area corresponding to a back surface in a casing inner surface from a photographed image (S401), corrects the image (S402) to create a chromakey mask (S403), segments a second area corresponding to a floor surface from the photographed image (S404), corrects the image according to the variation of its color (S405), and thereafter creates a corresponding chromakey mask (S406). Then, a user selects a background image (S407), and the background image is chromakey-composed to the photographed image (S408). By correcting the images by each area like this to equalize different colors, a proper chromakey mask is created to perform chromakey composition. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、利用者をカメラで撮影し、その撮影画像に基づき生成される合成画像を写真として出力する自動写真作成装置に関し、より詳細には、クロマキー合成の手法に基づき生成される合成画像を写真として出力する自動写真作成装置に関する。   The present invention relates to an automatic photo creation apparatus that captures a user with a camera and outputs a composite image generated based on the captured image as a photograph. More specifically, the present invention relates to a composite image generated based on a chroma key composition method. The present invention relates to an automatic photo creation apparatus that outputs a photograph.

従来より、利用者をカメラで撮影し、その撮影画像を写真として出力する遊戯用写真作成装置が知られている。このような遊戯用写真作成装置は、遊戯性または娯楽性が高いことから、撮影画像と合成すべき画像(以下「付加画像」という)を、利用者の嗜好に応じて、予め用意された多種多様な背景画像および前景画像から選択したり、タッチペンやライトペン等のペン型入力手段を用いて利用者が自由に描いたりできるように構成されているものが多い。利用者によるこのような行為は、撮影画像に対してなされるため、「落書き」と呼ばれる。   2. Description of the Related Art Conventionally, there is known a photo creation device for a game where a user is photographed with a camera and the photographed image is output as a photograph. Such a play photo creating apparatus has high playability or entertainment, and therefore, various images prepared in advance according to the user's preference are prepared for images to be synthesized with the photographed images (hereinafter referred to as “additional images”). In many cases, a user can select from various background images and foreground images, or can freely draw by a user using a pen-type input unit such as a touch pen or a light pen. Since such an action by the user is performed on the photographed image, it is called “graffiti”.

また近年では、いわゆるクロマキー合成の手法を使用し、撮影された利用者の背景となるよう、予め記憶された複数の画像から利用者により適宜選択された付加画像を合成する落書きが行われることがある。このクロマキー合成の手法では、撮影すべき利用者の背後に単一色(例えば青色や緑色など)の背景を配置し、この背景と利用者とを撮影した撮影画像に含まれる背景の色をキー色(クロマ)として撮影画像のうちの当該色が含まれる領域(背景領域)をマスク(クロマキーマスクを作成)する。このマスクされた背景領域に対して利用者により適宜選択された画像の一部が合成されることにより、利用者の選択した画像があたかも現実の背景として撮影されたかのような合成画像が得られる。従来より、このようなクロマキー合成の手法を使用する自動写真作成装置がある(例えば特許文献1を参照)。
特開平5−161064号公報
In recent years, a so-called chroma key composition technique is used to perform graffiti for compositing an additional image appropriately selected by a user from a plurality of pre-stored images so as to be a background of the photographed user. is there. In this chroma key composition method, a background of a single color (for example, blue or green) is placed behind the user to be photographed, and the background color included in the photographed image obtained by photographing this background and the user is the key color. Mask (create a chroma key mask) an area (background area) in the photographed image containing the color as (chroma). By synthesizing a part of the image appropriately selected by the user with the masked background area, a synthesized image is obtained as if the image selected by the user was photographed as an actual background. 2. Description of the Related Art Conventionally, there is an automatic photo creation apparatus that uses such a chroma key composition method (see, for example, Patent Document 1).
Japanese Patent Laid-Open No. 5-161064

しかし、上記従来の写真作成装置におけるキー色を付された背景は、撮影されるべき利用者の背後側の筐体内部の面(以下「背面」という)などにのみ設けられるのが通常である。なぜなら、クロマキー合成のための背景色は同一でなければならないが、例えば利用者の上下左右の面(すなわち筐体内部の左右側面、天面、および床面)に同じ背景色を付したとしても、背面とは同一の色合いにならないからである。   However, the background with the key color in the conventional photo creating apparatus is usually provided only on the inner surface of the casing (hereinafter referred to as “rear surface”) behind the user to be photographed. . Because the background color for chroma key composition must be the same, for example, even if the same background color is given to the user's top, bottom, left, and right surfaces (that is, the left and right side surfaces, top surface, and floor surface inside the housing) This is because the back does not have the same color.

このように筐体の背面のみにキー色を付された背景が設けられる構成であっても、撮影範囲が利用者の上半身である場合には特に問題は生じないが、撮影範囲が利用者の全身である場合には問題となる。以下、図10を参照して説明する。   Even if the background with the key color is provided only on the back of the housing in this way, there is no particular problem if the shooting range is the upper body of the user. It becomes a problem when it is the whole body. Hereinafter, a description will be given with reference to FIG.

図10は、利用者のほぼ全身を撮影とする場合の撮影範囲を示す図である。図10に示されるように、キー色を付された背景は筐体の背面のみであり、もし利用者の足元付近を撮影する場合、キー色を付されていない床面が写ることになる。したがって、背景となるべき床面をマスクすることができない。なお、床面にキー色を付したとしても上記背面と同一の色合いにならないことは前述したとおりである。したがって、図10において点線で示されるように、利用者の足元付近の床面が写らず利用者と背面のみが写るように撮影範囲901が設定される(具体的にはカメラの画角や撮影方向などが適宜に設定される)。   FIG. 10 is a diagram illustrating an imaging range in a case where almost the entire body of the user is imaged. As shown in FIG. 10, the background with the key color is only the back of the housing, and if the vicinity of the user's feet is photographed, the floor surface without the key color is reflected. Therefore, the floor surface that should be the background cannot be masked. As described above, even if a key color is given to the floor surface, it does not become the same color as the back surface. Therefore, as shown by the dotted line in FIG. 10, the shooting range 901 is set so that the floor near the user's feet is not shown but only the user and the back are shown (specifically, the angle of view of the camera and the shooting angle). Direction etc. are set appropriately).

しかし、近年の遊技用自動写真作成装置では、利用者の足元を含めた全身が撮影されることが多く、撮影範囲が限定されることは好ましくない。また、カメラの設置位置も利用者の前方だけでなく上方(または斜め上方)の場合もあり、その場合に床面が写らないよう撮影範囲を設定するとその範囲は著しく限定されてしまう。   However, in recent automatic photo creation devices for games, the whole body including the user's feet is often photographed, and it is not preferable that the photographing range is limited. Further, the camera installation position may be not only in front of the user but also upward (or obliquely upward). In this case, if the shooting range is set so that the floor surface is not captured, the range is significantly limited.

そこで本発明の目的は、利用者の背後に設けられた背景以外の撮影範囲内の部分に付したキー色が背景に付したキー色とは異なる色合いとなる場合であっても、それぞれに対応するクロマキーマスクを作成し、クロマキー処理を行うことができる自動写真作成装置を提供することである。   Therefore, the object of the present invention is to cope with each case even when the key color attached to the portion within the shooting range other than the background provided behind the user is different from the key color attached to the background. It is an object of the present invention to provide an automatic photo creation apparatus capable of creating a chroma key mask and performing chroma key processing.

第1の発明は、所定の撮影領域における被写体である利用者を含む像を取得する撮影手段と、前記撮影手段により得られる撮影画像を含む合成画像を写真として出力する出力手段とを備える自動写真作成装置であって、
前記撮影手段による撮影対象であって、第1の色を付された第1の被撮影面および第2の色を付された第2の被撮影面を有する背景提示手段と、
前記撮影画像のうち前記第1の被撮影面の像を含む第1の領域に対して、前記第1の被撮影面の像が占める領域の色に応じた画像補正を行い、またはさらに前記撮影画像のうち前記第2の被撮影面の像を含む第2の領域に対して、前記第2の被撮影面の像が占める領域の色に応じた画像補正を行うことにより、前記第1の被撮影面の像が占める領域の色および前記第2の被撮影面の像が占める領域の色に対応する所定のクロマキーマスクを作成するマスク作成手段と、
前記マスク作成手段により作成されたクロマキーマスクを使用することにより、前記撮影画像に対して所定の付加画像を合成するクロマキー処理を行うことにより、前記合成画像を生成するクロマキー処理手段と
を備えることを特徴とする。
A first invention is an automatic photograph provided with photographing means for acquiring an image including a user who is a subject in a predetermined photographing region, and output means for outputting a composite image including a photographed image obtained by the photographing means as a photograph. A creation device,
A background presenting means that is a subject to be photographed by the photographing means and has a first photographing surface with a first color and a second photographing surface with a second color;
Image correction according to the color of the area occupied by the image of the first image-capturing surface is performed on the first area including the image of the first image-captured surface of the captured image, or the image capturing By performing image correction according to the color of the area occupied by the image of the second image-captured surface on the second area including the image of the second image-captured surface of the image, the first area Mask creating means for creating a predetermined chroma key mask corresponding to the color of the area occupied by the image of the imaged surface and the color of the area occupied by the image of the second imaged surface;
Using a chroma key mask created by the mask creating means, and performing a chroma key process for synthesizing a predetermined additional image to the captured image, thereby providing a chroma key processing means for generating the synthesized image. Features.

第2の発明は、第1の発明において、
前記第1および第2の色は、略同一であり、
前記第1および第2の被撮影面の像が占める領域の色は、異なることを特徴とする。
According to a second invention, in the first invention,
The first and second colors are substantially the same;
The color of the area occupied by the images of the first and second imaging surfaces is different.

第3の発明は、第1の発明において、
前記マスク作成手段は、前記画像補正を行うことにより、前記第1および第2の被撮影面の像が占める領域を同一色とし、前記同一色の領域に対応する所定のクロマキーマスクを作成することを特徴とする。
According to a third invention, in the first invention,
The mask creating means creates the predetermined chroma key mask corresponding to the region of the same color by performing the image correction so that the regions occupied by the images of the first and second imaging surfaces are the same color. It is characterized by.

第4の発明は、第1の発明において、
前記第1の被撮影面は、前記撮影手段の撮影方向に対して略垂直方向に沿った平面とは異なる面を有しており、
前記マスク作成手段は、前記第1の被撮影面の像が占める領域の色の変化が解消されるよう前記第1の領域に対して所定の画像補正を行うことを特徴とする。
According to a fourth invention, in the first invention,
The first surface to be photographed has a surface different from a plane substantially perpendicular to the photographing direction of the photographing means,
The mask creating means performs predetermined image correction on the first area so that the color change of the area occupied by the image of the first surface to be photographed is eliminated.

第5の発明は、第4の発明において、
前記第1の被撮影面は、前記撮影手段の撮影方向に対して略垂直方向に沿った面から傾いており、
前記マスク作成手段は、前記第1の被撮影面の有する傾きに応じて変化する前記第1の被撮影面の像が占める領域の色の変化が解消されるよう前記第1の領域に対して所定の画像補正を行うことを特徴とする。
A fifth invention is the fourth invention,
The first surface to be imaged is inclined from a surface along a direction substantially perpendicular to the imaging direction of the imaging means;
The mask creating means applies the first region to the first region so that the change in color of the region occupied by the image of the first surface to be captured that changes according to the inclination of the first surface to be captured is eliminated. A predetermined image correction is performed.

第6の発明は、第5の発明において、
前記第1の被撮影面は、前記利用者が内部に入るべき筐体の内面のうち、前記利用者下方に設けられる床面、前記利用者上方に設けられる天面、前記利用者の左側に設けられる左側面、および前記利用者の右側に設けられる右側面のいずれか1つ以上であり、
前記第2の被撮影面は、前記筐体の内面のうち、前記撮影手段の設置位置を起点として前記利用者の背後方向に設けられる背面であることを特徴とする。
According to a sixth invention, in the fifth invention,
The first imaged surface is a floor surface provided below the user, a top surface provided above the user, and a left side of the user among the inner surfaces of the housing that the user should enter. Any one or more of a left side provided and a right side provided on the right side of the user;
The second surface to be photographed is a back surface provided in the rear direction of the user starting from an installation position of the photographing unit among inner surfaces of the housing.

第7の発明は、第1の発明において、
予め定められた複数の画像から前記所定の付加画像を選択するための利用者による操作入力を受け付ける操作入力手段をさらに備え、
前記クロマキー処理手段は、前記撮影画像に対して前記操作入力手段により受け付けられた付加画像を合成するクロマキー処理を行うことを特徴とする。
According to a seventh invention, in the first invention,
An operation input means for receiving an operation input by a user for selecting the predetermined additional image from a plurality of predetermined images;
The chroma key processing means performs a chroma key process for synthesizing the additional image received by the operation input means with respect to the photographed image.

第8の発明は、第1の発明において、
前記マスク作成手段により行われる画像補正のための基準となる画像であって、前記第1および第2の領域が含まれ、前記利用者が被写体に含まれない背景撮影画像を、所定の時点で前記撮影手段により取得するサンプリング手段をさらに備え、
前記マスク作成手段は、前記サンプリング手段により取得された前記背景撮影画像のうち前記第1の被撮影面の像が占める領域の色に基づき、またはさらに前記背景撮影画像のうち前記第2の被撮影面の像が占める領域の色に基づき、前記画像補正を行うことを特徴とする。
In an eighth aspect based on the first aspect,
An image serving as a reference for image correction performed by the mask creating unit, the background image including the first and second regions and not included in the subject by the user at a predetermined time point. It further comprises sampling means for obtaining by the photographing means,
The mask creating means is based on the color of the area occupied by the image of the first imaged surface in the background imaged image acquired by the sampling means, or further, the second imaged image in the background imaged image. The image correction is performed based on the color of the area occupied by the image of the surface.

第9の発明は、第8の発明において、
前記サンプリング手段により取得された背景撮影画像に前記利用者の像に含まれるべき色が含まれる異常を検出するエラー検出手段をさらに備え、
前記マスク手段は、前記エラー検出手段により異常が検出される場合、異常が検出された背景撮影画像を前記画像補正に使用しないことを特徴とする。
In a ninth aspect based on the eighth aspect,
An error detecting means for detecting an abnormality including a color to be included in the image of the user in the background photographed image acquired by the sampling means;
The mask means does not use a background photographed image in which an abnormality is detected for the image correction when an abnormality is detected by the error detection means.

第10の発明は、所定の撮影領域における被写体である利用者を含む像を取得する撮影ステップと、前記撮影ステップにおいて得られる撮影画像を含む合成画像を写真として出力する出力ステップとを備える自動写真作成方法であって、
前記撮影ステップにおける撮影対象であって、第1の色を付された第1の被撮影面および第2の色を付された第2の被撮影面を有する背景提示手段における前記第1の被撮影面の像を含む第1の領域に対して、前記第1の被撮影面の像が占める領域の色に応じた画像補正を行い、またはさらに前記第2の被撮影面の像を含む第2の領域に対して、前記第2の被撮影面の像が占める領域の色に応じた画像補正を行うことにより、前記第1の被撮影面の像が占める領域の色および前記第2の被撮影面の像が占める領域の色に対応する所定のクロマキーマスクを作成するマスク作成手ステップと、
前記マスク作成ステップにおいて作成されたクロマキーマスクを使用することにより、前記撮影画像に対して所定の付加画像を合成するクロマキー処理を行うことにより、前記合成画像を生成するクロマキー処理ステップと
を含むことを特徴とする。
A tenth aspect of the invention is an automatic photograph comprising a photographing step for acquiring an image including a user who is a subject in a predetermined photographing region, and an output step for outputting a composite image including the photographed image obtained in the photographing step as a photograph. A creation method,
The first object to be photographed in the photographing step, the first object in the background presentation means having a first surface to be imaged with a first color and a second surface to be imaged with a second color. The first area including the image of the imaging surface is subjected to image correction corresponding to the color of the area occupied by the image of the first imaging surface, or further including the image of the second imaging surface. By performing image correction according to the color of the area occupied by the image of the second imaging surface on the area of 2, the color of the area occupied by the image of the first imaging surface and the second A mask creation step for creating a predetermined chroma key mask corresponding to the color of the area occupied by the image of the imaged surface;
Using a chroma key mask created in the mask creating step, and performing a chroma key process for synthesizing a predetermined additional image with the captured image, thereby generating a synthesized key image. Features.

第11の発明は、第10の発明に記載の自動写真作成方法をコンピュータに実行させることを特徴とするプログラムである。   An eleventh invention is a program that causes a computer to execute the automatic photo creating method according to the tenth invention.

上記第1の発明によれば、第1の領域に対して、第1の被撮影面の像が占める領域の色に応じた画像補正を行い、またはさらに第2の領域に対して、第2の被撮影面の像が占める領域の色に応じた画像補正を行うことにより、当該領域の色に対応する所定のクロマキーマスクが作成されるので、撮影範囲内の背景となるべき第1および第2の被撮影面の色合いが異なる場合であっても、それぞれに対応するクロマキーマスクを作成し、クロマキー処理を行うことができる。   According to the first aspect of the invention, the image correction corresponding to the color of the area occupied by the image of the first imaging surface is performed on the first area, or the second area is further corrected with respect to the second area. By performing image correction according to the color of the area occupied by the image of the surface to be imaged, a predetermined chroma key mask corresponding to the color of the area is created, so the first and the second to be the background within the imaging range Even when the colors of the two surfaces to be photographed are different, chroma key masks corresponding to each of them can be created and chroma key processing can be performed.

上記第2の発明によれば、付された色は略同一であるが、結果的に(例えば材質や撮影方向、照明方向などの違いにより)第1および第2の被撮影面の像が占める領域の色が異なる場合であっても、それぞれに対応するクロマキーマスクを作成し、クロマキー処理を行うことができる。   According to the second aspect of the invention, the attached colors are substantially the same, but as a result (for example, due to differences in material, shooting direction, illumination direction, etc.), the images of the first and second shooting surfaces occupy. Even when the colors of the regions are different, chroma key masks corresponding to the respective colors can be created and chroma key processing can be performed.

上記第3の発明によれば、画像補正を行うことにより、第1および第2の被撮影面の像が占める領域を同一色とするので、同一色に対応するクロマキーマスクを1つだけ作成すればよく、構成を簡易にすることができる。   According to the third aspect of the invention, by performing image correction, the areas occupied by the images of the first and second imaging surfaces are made the same color, so that only one chroma key mask corresponding to the same color can be created. The configuration can be simplified.

上記第4の発明によれば、第1の被撮影面が撮影手段の撮影方向に対して略垂直方向に沿った平面とは異なる面を有していることから色合いが均一とはならず、マスク作成手段によりこの色の変化が解消されるよう第1の領域に対して所定の画像補正が行われるので、この構成により、クロマキー処理のための理想的な均一性および色合いを有する画像に基づきクロマキー処理を行うことができる。   According to the fourth aspect of the invention, since the first surface to be imaged has a surface different from a plane substantially perpendicular to the imaging direction of the imaging means, the hue is not uniform, Since the predetermined image correction is performed on the first region so that the color change is eliminated by the mask creating means, this configuration is based on an image having ideal uniformity and hue for chroma key processing. Chroma key processing can be performed.

上記第5の発明によれば、第1の被撮影面が撮影手段の撮影方向に対して略垂直方向に沿った平面から傾いていることから色合いが傾きに応じて変化するので、マスク作成手段によりこの傾きに応じた色の変化が解消されるよう第1の領域に対して所定の画像補正が行われるので、この構成により、クロマキー処理のための理想的な均一性および色合いを有する画像に基づきクロマキー処理を行うことができる。   According to the fifth aspect of the invention, since the first surface to be imaged is inclined from a plane substantially perpendicular to the imaging direction of the imaging unit, the hue changes according to the inclination. As a result, a predetermined image correction is performed on the first area so that the color change corresponding to the inclination is eliminated. Therefore, with this configuration, an image having ideal uniformity and hue for chroma key processing can be obtained. Based on this, chroma key processing can be performed.

上記第6の発明によれば、第1および第2の被撮影面が筐体の各内面のいずれかに対応しているので、筐体内面を背景とする場合における第1および第2の被撮影面の色合いが異なる場合であっても、それぞれに対応するクロマキーマスクを作成し、クロマキー処理を行うことができる。   According to the sixth aspect, since the first and second imaging surfaces correspond to any of the inner surfaces of the housing, the first and second objects to be taken when the inner surface of the housing is used as the background. Even when the color of the photographing surface is different, it is possible to create a chroma key mask corresponding to each and perform chroma key processing.

上記第7の発明によれば、操作入力手段により利用者から付加画像を選択する操作入力が受け付けられ、クロマキー処理手段により当該付加画像が合成されるので、利用者が自ら選択した付加画像を(仮想的な)背景画像とした合成画像を得ることができ、本装置の遊戯性を高めることができる。   According to the seventh aspect of the invention, since the operation input unit receives an operation input for selecting an additional image from the user and the chroma key processing unit synthesizes the additional image, the user selects the additional image selected by the user ( A composite image as a (virtual) background image can be obtained, and the playability of the apparatus can be improved.

上記第8の発明によれば、サンプリング手段により利用者が被写体に含まれない背景撮影画像が所定の時点で取得され、この背景撮影画像に基づき画像補正が行われるので、撮影手段の撮影方向に対する第1および第2の被撮影面の角度の違い、材質の違い、または汚れ方等の違い(例えば床面は利用者に踏まれることにより汚れて色がくすんだり摩耗して色がうすくなったりしやすいという違い)をほぼ完全に補償することができ、クロマキー処理のための理想的な均一性および色合いを有する画像に基づきクロマキー処理を行うことができる。   According to the eighth aspect, a background photographed image that is not included in the subject by the sampling means is acquired by the sampling means at a predetermined time, and image correction is performed based on the background photographed image. Differences in the angle between the first and second surfaces to be photographed, the difference in material, or the difference in dirt (for example, the floor surface becomes dirty due to being stepped on by the user, the color becomes dull or worn and the color becomes dull. The chroma key processing can be performed based on an image having ideal uniformity and hue for chroma key processing.

上記第9の発明によれば、エラー検出手段により背景撮影画像に利用者の像に含まれるべき色が含まれる異常が検出されるので、利用者の像を含む背景撮影画像をクロマキー処理の対象とすることにより異常な合成画像を作成することを未然に防止することができる。   According to the ninth aspect of the invention, since the error detection means detects an abnormality in which the background photographed image includes a color that should be included in the user image, the background photographed image including the user image is subjected to chroma key processing. By doing so, it is possible to prevent an abnormal composite image from being created.

上記第10の発明によれば、上記第1の発明と同様の効果を自動写真作成方法において奏することができる。   According to the tenth aspect, the same effect as that of the first aspect can be achieved in the automatic photo creation method.

上記第11の発明によれば、上記第1の発明と同様の効果を自動写真作成プログラムにおいて奏することができる。   According to the eleventh aspect, the same effect as that of the first aspect can be achieved in the automatic photo creation program.

以下、本発明の一実施形態につき添付図面を参照して説明する。
<1. 全体構成>
図1は、本発明の一実施形態に係る自動写真作成装置(遊戯用写真作成装置)を側面から見た図であり、図2は、この写真作成装置の本体部4を正面から(被写体としての利用者Uから)見た図である。以下、これらの図を参照して、本実施形態に係る自動写真作成装置の全体構成について説明する。
Hereinafter, an embodiment of the present invention will be described with reference to the accompanying drawings.
<1. Overall configuration>
FIG. 1 is a side view of an automatic photo creation device (play photo creation device) according to an embodiment of the present invention, and FIG. 2 is a front view of a main body 4 of this photo creation device (as a subject). FIG. Hereinafter, the overall configuration of the automatic photo creation apparatus according to the present embodiment will be described with reference to these drawings.

この自動写真作成装置は、利用者Uが入る撮影室2と、利用者Uの撮影画像を含む合成画像を生成して写真シール(または写真カード)として出力する本体部4とを備えている。なお、利用者Uは1人以上であればよいが、説明の便宜のためここでは2人であるものとする。   The automatic photo creation apparatus includes a photographing room 2 in which a user U enters and a main body 4 that generates a composite image including a photographed image of the user U and outputs it as a photo sticker (or a photo card). The number of users U may be one or more. However, for convenience of explanation, it is assumed that there are two users U.

撮影室2は、略直方体形状であって、内部に入る利用者Uから見て上の面である天面と、下の面である床面と、左右の面である左右側面と、後ろの面である背面と、前の面である前面とを有している。本体部4は、前面に沿って配置される。なお、左右側面の一部には、利用者Cが出入りするための開口部と、当該開口部の一部または全部を覆う遮光カーテンとが設けられている。   The shooting room 2 has a substantially rectangular parallelepiped shape, and is a top surface as viewed from the user U entering inside, a floor surface as a lower surface, left and right side surfaces as left and right surfaces, It has a back surface that is a surface and a front surface that is a front surface. The main body 4 is disposed along the front surface. In addition, the opening part for the user C to go in and out and the light-shielding curtain which covers a part or all of the said opening part are provided in a part of right and left side surface.

また、後述するように、撮影室2の背面および床面にはクロマキー合成処理のための単一の色(ここでは青色または緑色)が付されている。ただし、背面を構成する板材と床面を構成する板材とは材質が異なるので、これらに同一の色を付したとしても(または同一の色となるように工夫したとしても)その色合いを完全に同一とすることはできない。さらに、背面はカメラの撮影中心方向に対してほぼ垂直に配置され、また後述するようにほぼ均一に照明が当てられるのでほぼ均一な色合いとなるが、床面はカメラの撮影方向や照明方向に対して所定の角度を有しているので均一な色合いとはならない。このことから一般的なクロマキー合成処理を行うことはできないが、本実施形態においては後述する特徴的な構成によって、クロマキー合成処理が行われる。なお、本明細書において色合いとは色相や彩度などおよそ視感上区別される要素を含んで色に関連する事項を指すものとする。   As will be described later, a single color (in this case, blue or green) for chroma key composition processing is assigned to the back surface and the floor surface of the photographing room 2. However, since the plate material that forms the back surface and the plate material that forms the floor surface are different, even if they are given the same color (or even if they are devised to be the same color), the color is completely It cannot be the same. In addition, the back surface is arranged almost perpendicular to the shooting center direction of the camera, and the illumination is applied almost uniformly as will be described later, so the color is almost uniform, but the floor is in the shooting direction and lighting direction of the camera. On the other hand, since it has a predetermined angle, the color is not uniform. Therefore, a general chroma key composition process cannot be performed, but in this embodiment, the chroma key composition process is performed by a characteristic configuration described later. In the present specification, the term “hue” refers to a matter related to color including elements that are distinguished from each other in terms of visual sense such as hue and saturation.

本体部4は、利用者Uを撮影する撮影手段としてのカメラ10と、当該カメラ10の上方の適宜の位置に配置され閃光を発する照明手段としてのフラッシュ11と、当該カメラ10の下方に配置されたCRT(Cathode Ray Tube)または液晶ディスプレイパネル等からなる表示装置であるプレビューモニタ22と、利用者Uに対して撮影のための操作画面などを提供する液晶ディスプレイおよび当該操作画面を覆う操作位置検出用の透明シートからなる液晶タッチパネル20とを備える。   The main body 4 is disposed below the camera 10 as a camera 10 as a photographing means for photographing the user U, a flash 11 as an illuminating means disposed at an appropriate position above the camera 10 to emit a flash. A preview monitor 22 which is a display device including a CRT (Cathode Ray Tube) or a liquid crystal display panel, a liquid crystal display which provides an operation screen for photographing to the user U, and an operation position detection which covers the operation screen And a liquid crystal touch panel 20 made of a transparent sheet.

カメラ10は、典型的には、CCD(電荷結合素子)を利用してデジタル画像信号を生成するデジタルカメラであって、撮影室2内の利用者Uを撮影し、その撮影画像を表す画像信号を出力する。   The camera 10 is typically a digital camera that generates a digital image signal using a CCD (Charge Coupled Device). The camera 10 captures an image of the user U in the imaging room 2 and represents the captured image. Is output.

プレビューモニタ22は、上記画像信号の表す画像をリアルタイムで表示するように構成されており、カメラ10によって得られる撮影画像を確認するために使用される。   The preview monitor 22 is configured to display an image represented by the image signal in real time, and is used to confirm a captured image obtained by the camera 10.

液晶タッチパネル20は、上述の操作画面などを提供する表示手段として機能するほか、撮影のための操作手段など、利用者Uによる各種操作を受け付ける操作手段として機能する。なお、液晶タッチパネル20は、図示されないタッチペンにより操作されるが、利用者Uの指などにより操作されてもよく、例えば上記透明シートを含まない静電誘導方式の操作位置検出機能を有する液晶タッチパネルなどであってもよい。   The liquid crystal touch panel 20 functions as a display unit that provides the above-described operation screen and the like, and also functions as an operation unit that receives various operations by the user U, such as an operation unit for photographing. The liquid crystal touch panel 20 is operated by a touch pen (not shown), but may be operated by a finger of the user U, for example, a liquid crystal touch panel having an electrostatic induction type operation position detection function that does not include the transparent sheet. It may be.

また本体部4は、コンピュータを中心に構成され各部の制御等を行う主制御装置、I/O制御装置、およびカメラ10により得られる撮影画像を含む合成画像を写真シール(または写真カード)として出力するプリンタ等を内蔵している。さらに、本体部4は、前面下方にコイン投入口26を、側面に写真シールの取出口28を、それぞれ備えている。さらにまた、本体部4は、本自動写真作成装置の動作中は常時点灯される照明装置13L,13Rをカメラ10の左右にそれぞれ備えている。   Further, the main body 4 is composed mainly of a computer and outputs a composite image including a photographic image obtained by the main controller, the I / O controller, and the camera 10 that controls each part as a photographic sticker (or photographic card). It has a built-in printer. Further, the main body 4 is provided with a coin insertion slot 26 below the front surface and a photographic sticker outlet 28 on the side surface. Furthermore, the main body 4 includes illumination devices 13L and 13R that are always lit during the operation of the automatic photo creation device, on the left and right sides of the camera 10, respectively.

<2. 機能的構成>
図3は、本実施形態に係る自動写真作成装置の要部を機能面から見た構成を示すブロック図である。この自動写真作成装置は、機能的には、撮影部52と、確認表示部54と、メイン表示・操作部62と、出力部66と、照明部70と、I/O制御部72と、主制御部80とから構成される。
<2. Functional configuration>
FIG. 3 is a block diagram illustrating a configuration of the main part of the automatic photo creation apparatus according to the present embodiment as viewed from the functional aspect. Functionally, the automatic photo creation device is functionally configured to include a photographing unit 52, a confirmation display unit 54, a main display / operation unit 62, an output unit 66, an illumination unit 70, an I / O control unit 72, a main unit. And a control unit 80.

この構成において、撮影部52は、CCD等の撮像素子を用いて構成されるカメラ10に相当し、リアルタイムに画像を取り込んで当該画像(この画像は「スルー画像」と呼ばれる)を表す画像信号を出力する。この画像信号は主制御部80に入力されて、その内部のメモリにスルー画像データとして一時的に記憶される。また、このスルー画像データは、スルー画像信号として主制御部80から確認表示部54に供給される。確認表示部54は、プレビューモニタ22に相当し、そのモニタ用画像信号に基づきスルー画像をリアルタイムで表示する。   In this configuration, the photographing unit 52 corresponds to the camera 10 configured using an image sensor such as a CCD, and captures an image signal in real time and represents the image (this image is referred to as a “through image”). Output. This image signal is input to the main controller 80 and temporarily stored as through image data in its internal memory. The through image data is supplied from the main control unit 80 to the confirmation display unit 54 as a through image signal. The confirmation display unit 54 corresponds to the preview monitor 22 and displays a through image in real time based on the monitor image signal.

メイン表示・操作部62は、液晶タッチパネル20に相当し、出力されるべき写真のレイアウトを決定するための利用者Uの操作や、シャッター操作等を受け付け、これらの操作を示す信号は、操作信号として主制御部80に入力される。いま、利用者Uの撮影のためにシャッターボタン(不図示)が押下されたとすると、主制御部80からの指示に基づき、数秒程度の予め決められた時間の経過後にカメラ10の撮影方向にフラッシュ11から閃光が放たれる。そのとき、利用者Uの撮影画像を表す信号として部52から出力される画像信号が主制御部80に入力され、主制御部80内のメモリまたは補助記憶装置としてのハードディス装置等に撮影画像データとして格納される。   The main display / operation unit 62 corresponds to the liquid crystal touch panel 20 and accepts an operation of a user U for determining a layout of a photograph to be output, a shutter operation, and the like. To the main control unit 80. Now, assuming that a shutter button (not shown) is pressed for shooting by the user U, the flashing is performed in the shooting direction of the camera 10 after elapse of a predetermined time of about several seconds based on an instruction from the main control unit 80. A flash is emitted from 11. At that time, an image signal output from the unit 52 as a signal representing a captured image of the user U is input to the main control unit 80, and the captured image is stored in a memory in the main control unit 80 or a hard disk device as an auxiliary storage device. Stored as data.

出力部66は、本体部4に内蔵されるプリンタに相当し、主制御部80からの指示に基づき、液晶タッチパネル20における利用者Uの落書きに応じて画像処理された上記撮影画像データの表す画像を写真シール(または写真カード)として出力する。   The output unit 66 corresponds to a printer built in the main body unit 4, and is an image represented by the captured image data that has been subjected to image processing in accordance with the graffiti of the user U on the liquid crystal touch panel 20 based on an instruction from the main control unit 80. As a photo sticker (or photo card).

照明部70は、本体部4における照明装置13L,13Rとフラッシュ11とに相当し、主制御部80からの指示に基づきI/O制御部72によって点灯/消灯および調光が制御される。   The illumination unit 70 corresponds to the illumination devices 13L and 13R and the flash 11 in the main body unit 4, and is turned on / off and dimmed by the I / O control unit 72 based on an instruction from the main control unit 80.

I/O制御部72は、本体部4に内蔵されるI/O制御装置に相当し、主制御部80からの指示に基づき、照明部70を制御する。また、後述のコイン検出部(不図示)からの検出信号等の入力信号を主制御部80へ転送する。   The I / O control unit 72 corresponds to an I / O control device built in the main body unit 4, and controls the illumination unit 70 based on an instruction from the main control unit 80. Further, an input signal such as a detection signal from a coin detection unit (not shown) described later is transferred to the main control unit 80.

主制御部80は、本体部4に内蔵され、CPUや、メモリ、フレームバッファ、タイマー、補助記憶装置などを含むコンピュータを中心に構成される主制御装置に相当し、内部メモリに格納された所定プログラムをCPUが実行することにより、上述のようにして入力される操作信号等に基づき各部を制御するために、上述のように各部に指示を出す。また、後述するように、上記撮影画像データと背景とされるべき画像のデータとを合成することにより、撮影画像に含まれる利用者Uの像に対して所定の背景画像が背景となるように合成された画像である合成画像を生成する。生成された画像はフレームバッファに書き込まれることにより、メイン表示・操作部62に表示される。さらに、当該合成画像に対する落書き処理を行うための操作信号に基づき上記画像データの一部を書き換えることにより、当該合成画像に所定画像を描画した画像である合成画像を生成する。生成された合成画像はメイン表示・操作部62に表示される。上記のような画像合成が終了すると、その後、写真出力部66からは合成画像が写真シール等として出力される。出力された写真シール等は、本体部4の側面に設けられた取出口28から取り出される。   The main control unit 80 is built in the main body unit 4 and corresponds to a main control unit mainly composed of a computer including a CPU, a memory, a frame buffer, a timer, an auxiliary storage device, and the like. When the CPU executes the program, an instruction is given to each unit as described above in order to control each unit based on the operation signal or the like input as described above. Further, as will be described later, by synthesizing the captured image data and the image data to be used as a background, a predetermined background image becomes a background with respect to the image of the user U included in the captured image. A composite image that is a composite image is generated. The generated image is displayed on the main display / operation unit 62 by being written in the frame buffer. Further, a part of the image data is rewritten based on an operation signal for performing graffiti processing on the composite image, thereby generating a composite image that is an image obtained by drawing a predetermined image on the composite image. The generated composite image is displayed on the main display / operation unit 62. When the image composition as described above is completed, the composite image is then output from the photo output unit 66 as a photo sticker or the like. The outputted photographic sticker or the like is taken out from an outlet 28 provided on the side surface of the main body 4.

上記の構成要素の他、本体部4におけるコイン投入口26に投入されたコインを検出するためのコイン検出部(不図示)が更に本体部4に設けられており、主制御部80は、コイン検出部での検出結果に基づき、利用者Uに所定時間だけ撮影や撮影画像に対する描画等による合成画像の生成など、本自動写真作成装置によるプレイを許容するように各部を制御する。このコイン検出部やその検出結果に基づく主制御部80による制御動作は、従来の自動写真作成装置と同様であって周知であるので、その詳しい説明を省略する。   In addition to the above components, a coin detection unit (not shown) for detecting coins inserted into the coin insertion slot 26 in the main body unit 4 is further provided in the main body unit 4, and the main control unit 80 Based on the detection result of the detection unit, each unit is controlled so as to allow the user U to play with the automatic photo creation apparatus, such as generating a composite image by photographing or drawing a captured image for a predetermined time. Since the control operation by the coin control unit and the main control unit 80 based on the detection result is the same as that of the conventional automatic photo creating apparatus and is well known, detailed description thereof will be omitted.

なお、主制御装置において実行される上記所定プログラムは、例えば、そのプログラムを記録した記録媒体であるCD−ROMによって提供される。すなわち、上記所定プログラムの記録媒体としてのCD−ROMが主制御装置内に補助記憶装置として内蔵されたCD−ROM駆動装置に装着され、そのCD−ROMから所定プログラムが読み出されて補助記憶装置としてのハードディスク装置にインストールされる。また、上記所定プログラムは、CD−ROM以外の記録媒体や通信回線を介して提供されてもよい。そして、本自動写真作成装置の起動のための所定操作がなされると、ハードディスク装置にインストールされた所定プログラムは、主制御装置内のメモリに転送されてそこに一時的に格納され、主制御装置内のCPUによって実行される。これにより、主制御装置による上記各部の制御処理が実現される。   The predetermined program executed in the main control device is provided by, for example, a CD-ROM that is a recording medium on which the program is recorded. That is, a CD-ROM serving as a recording medium for the predetermined program is mounted on a CD-ROM driving device built in the main control device as an auxiliary storage device, and the predetermined program is read from the CD-ROM to be an auxiliary storage device. Installed on the hard disk device. The predetermined program may be provided via a recording medium other than a CD-ROM or a communication line. When a predetermined operation for starting the automatic photo creating apparatus is performed, the predetermined program installed in the hard disk device is transferred to a memory in the main control device and temporarily stored therein, and the main control device It is executed by the internal CPU. Thereby, the control process of each part by the main controller is realized.

<3. 動作>
<3.1 全体的な動作>
上述のように本実施形態における主制御部80の動作は、その内部のCPUが上記所定プログラムを実行することにより実現される。図4は、このようにして実現される主制御部80の動作の手順を示すフローチャートである。本実施形態では、コイン投入口26に所定のコインが投入されると、本自動写真作成装置は、以下のように動作する。
<3. Operation>
<3.1 Overall operation>
As described above, the operation of the main control unit 80 in the present embodiment is realized by the internal CPU executing the predetermined program. FIG. 4 is a flowchart showing the operation procedure of the main control unit 80 realized in this way. In the present embodiment, when a predetermined coin is inserted into the coin insertion slot 26, the automatic photo creation apparatus operates as follows.

まず、主制御部80は、装置の初期化処理、すなわち各ハードウェアの初期化や、設定値として主制御部80に記憶されるデータの初期化処理を行い、さらに予め決められた撮影のための時間(以下「撮影時間」という)が経過するとタイムアウトとなるようにタイマーを設定し、そのタイマーをスタートさせる(ステップS10)。   First, the main control unit 80 performs initialization processing of the apparatus, that is, initialization of each hardware and initialization processing of data stored in the main control unit 80 as a set value, and further for predetermined shooting. A timer is set so that a time-out occurs after the elapse of time (hereinafter referred to as “shooting time”), and the timer is started (step S10).

続いて、主制御部80は、利用者Uを撮影するための撮影処理を行う(ステップS20)。この撮影処理において、主制御部80は、図示されないシャッターボタンまたはメイン表示・操作部62の画面に表示されるシャッターボタンが押されたか否かを操作信号に基づき判定し、シャッターボタンが押されるまで待機する。なお、シャッターボタンが一度も押されないまま撮影時間が終了するときには、シャッターボタンが押されたときの処理が自動的に行われるものとする。   Subsequently, the main control unit 80 performs a photographing process for photographing the user U (step S20). In this photographing process, the main control unit 80 determines whether or not a shutter button (not shown) or a shutter button displayed on the screen of the main display / operation unit 62 has been pressed based on the operation signal, and until the shutter button is pressed. stand by. It should be noted that when the shooting time ends without the shutter button being pressed, the processing when the shutter button is pressed is automatically performed.

シャッターボタンが押下されると、主制御部80は、撮影開始を利用者にメイン表示・操作部62の画面で知らせ、数秒程度の予め決められた時間の経過後に撮影部(カメラ)52に撮影信号(シャッター信号)を送る。これにより、撮影部52のシャッター動作と同期して照明部(フラッシュ)70が閃光を放ち、主制御部80がキャプチャ処理を開始する。すなわち、主制御部80は、照明部(フラッシュ)70からの閃光で照らされた利用者Uの撮影画像を表す信号として撮影部52から出力される画像信号を受け取り、メモリまたは補助記憶装置内に撮影画像の画像ファイルとして格納する。なお、所定の撮影時間の間、シャッターボタンが押下される毎に上記キャプチャ処理が実行され、撮影画像が画像ファイルとして一時的に保存される。   When the shutter button is pressed, the main control unit 80 notifies the user of the start of shooting on the screen of the main display / operation unit 62, and the shooting unit (camera) 52 takes a picture after a predetermined time of about several seconds. Send a signal (shutter signal). Accordingly, the illumination unit (flash) 70 emits flash in synchronization with the shutter operation of the photographing unit 52, and the main control unit 80 starts the capture process. That is, the main control unit 80 receives the image signal output from the imaging unit 52 as a signal representing the captured image of the user U illuminated by the flash from the illumination unit (flash) 70, and stores it in the memory or the auxiliary storage device. Store as a captured image file. Note that the capture process is executed each time the shutter button is pressed during a predetermined shooting time, and the shot image is temporarily saved as an image file.

次に、主制御部80は、予め定められた回数の撮影が行われることにより撮影が終了したか、撮影時間を示すタイマがタイムアウトとなることにより撮影が終了したか、または撮影時間の経過前であっても、メイン表示・操作部62に対して撮影処理の終了を指示する操作が行われることにより撮影が終了したか否かを判定する(ステップS30)。撮影が終了した場合、処理は次のステップS40に進む。撮影が終了しない場合には、ステップS20の処理に戻り、撮影が終了するまで上記処理が繰り返される(S30→S20→S30)。   Next, the main control unit 80 determines whether the shooting has been completed by performing a predetermined number of times of shooting, the shooting indicating that the timer indicating the shooting time has timed out, or before the shooting time has elapsed. Even so, it is determined whether or not the photographing is finished by performing an operation for instructing the main display / operation unit 62 to finish the photographing process (step S30). When the shooting is finished, the process proceeds to the next step S40. If shooting is not completed, the process returns to step S20, and the above process is repeated until shooting is completed (S30 → S20 → S30).

撮影が終了した場合、主制御部80は、利用者のメイン表示・操作部62に対する操作入力により選択された付加画像である背景画像に対して、クロマキー処理を行う(ステップS40)。このクロマキー処理の詳しい内容については後述する。なお、この処理の前(または後)に、出力すべき写真シールに複数の撮影画像(またはこれを含む合成画像)を適宜配置するレイアウト処理が行われてもよい。このレイアウト処理では、予め定められた制限時間内で撮影画像をどのように配置するかを決定するための操作を受け付けることにより、所定の位置に撮影画像または合成画像が配された画像であって写真シール等を印刷するための合成画像が生成される。   When shooting is finished, the main control unit 80 performs chroma key processing on the background image that is the additional image selected by the user's operation input to the main display / operation unit 62 (step S40). Details of the chroma key processing will be described later. Before (or after) this process, a layout process may be performed in which a plurality of photographed images (or a composite image including this) are appropriately arranged on the photo sticker to be output. This layout process is an image in which a photographed image or a composite image is arranged at a predetermined position by accepting an operation for determining how to place a photographed image within a predetermined time limit. A composite image for printing a photo sticker or the like is generated.

続いて、主制御部80およびメイン表示・操作部62による落書き処理が行われる(ステップS50)。この落書き処理では、主制御部80により落書き処理のために予め決められた時間(以下「落書き時間」という)が設定され、この落書き時間内に利用者Uは液晶タッチパネル20を使用することにより落書きを行う。具体的には、液晶タッチパネル20に撮影画像および落書きのための各種アイコン等、例えば、仮想的な落書きペンの太さや色などを選択可能にするため表示されるペン先アイコンやスタンプ画像を選択可能にするため表示されるスタンプアイコン等が表示され、これらに対する利用者Uによる操作が受け付けられる。すなわち利用者Uは、液晶タッチパネル20でこれらの各種アイコン等のうちの1つを選択する(すなわち表示されたアイコン上にカーソルを動かして確定させる)操作や、表示画面上の所望の位置を指定する操作などを行うことにより、仮想的な落書きを行う。   Subsequently, graffiti processing is performed by the main control unit 80 and the main display / operation unit 62 (step S50). In this graffiti process, a predetermined time for graffiti processing (hereinafter referred to as “graffiti time”) is set by the main control unit 80, and the user U uses the liquid crystal touch panel 20 to perform the graffiti within this graffiti time. I do. Specifically, it is possible to select a pen tip icon or a stamp image that is displayed on the LCD touch panel 20 so as to select a photographed image and various icons for graffiti, for example, the thickness and color of a virtual graffiti pen. For example, a stamp icon or the like is displayed, and an operation by the user U is accepted. That is, the user U selects one of these various icons on the liquid crystal touch panel 20 (that is, moves the cursor over the displayed icon to confirm), or specifies a desired position on the display screen. Perform virtual graffiti by performing operations.

続いてステップS60における印刷処理では、上記ステップS50における落書き処理により生成された合成画像(より詳細には前述したレイアウト処理により適宜の位置および大きさに撮影画像がレイアウトされ種々の落書きが行われ、さらに後述するように背景画像がクロマキー合成された合成画像)が出力される。すなわち、主制御部80は、(クロマキー合成され)落書き等をされた合成画像の出力を出力部(プリンタ)66に指示する。これにより、出力部66としてのプリンタは、その合成画像を写真シールとして出力する。   Subsequently, in the printing process in step S60, the composite image generated by the graffiti process in step S50 (more specifically, the photographed image is laid out at an appropriate position and size by the layout process described above, and various graffiti is performed. Further, as will be described later, a composite image in which the background image is chroma key-combined is output. That is, the main control unit 80 instructs the output unit (printer) 66 to output a combined image (chroma key combined) with graffiti or the like. Thereby, the printer as the output unit 66 outputs the composite image as a photographic sticker.

そうして上記ステップS60における印刷処理が終了すると、図4に示す一連の処理は終了され、所定の金額に相当するコインが新たにコイン投入口26に投入されるまで図4に示す処理は実行待ち状態となる。この実行待ち状態において、所定の金額に相当するコインが新たにコイン投入口26に投入されるまで図4に示す処理は実行待ち状態となる。この実行待ち状態において、所定の金額に相当するコインが新たに投入されると、上記と同様の処理(ステップS10〜S60)が実行される。   When the printing process in step S60 is finished, the series of processes shown in FIG. 4 is finished, and the process shown in FIG. 4 is executed until a coin corresponding to a predetermined amount is newly inserted into the coin slot 26. It will be in a waiting state. In this execution waiting state, the processing shown in FIG. 4 is in an execution waiting state until a coin corresponding to a predetermined amount is newly inserted into the coin insertion slot 26. When a coin corresponding to a predetermined amount is newly inserted in this execution waiting state, the same processing (steps S10 to S60) as described above is executed.

<3.2 クロマキー処理における動作>
次に、前述したクロマキー処理(ステップS40)の詳細な処理内容について説明する。図5は、レポート処理の詳細なサブルーチン処理の手順を示すフローチャートである。図5に示すステップS401において、主制御部80は、前述したステップS20により取得される撮影画像から予め定められた第1の領域を切り出す。すなわち当該部分のみが複製された新しい画像が生成される。以下、図6を参照して具体的に説明する。
<3.2 Operation in chroma key processing>
Next, detailed processing contents of the above-described chroma key processing (step S40) will be described. FIG. 5 is a flowchart showing a detailed subroutine processing procedure of the report processing. In step S401 shown in FIG. 5, the main control unit 80 cuts out a predetermined first region from the captured image acquired in step S20 described above. That is, a new image in which only the portion is duplicated is generated. Hereinafter, a specific description will be given with reference to FIG.

図6は、撮影室内の利用者をカメラにより撮影するときの撮影範囲を示す図である。図6において、撮影室2の内面を構成する天面、床面、背面、および左右側面のうち、背面110および床面120には同一の単一色(ここでは青色または緑色)が付されている。もっとも、床面120はカメラ10の撮影方向や各種照明の投射方向に対して垂直とはほど遠い所定の角度を有しているので均一な色合いとはならず、具体的には背面110に近づくほど暗い色合いとなっている。   FIG. 6 is a diagram showing a shooting range when shooting a user in the shooting room with a camera. In FIG. 6, among the top surface, floor surface, back surface, and left and right side surfaces constituting the inner surface of the photographing room 2, the back surface 110 and the floor surface 120 are assigned the same single color (here, blue or green). . However, since the floor 120 has a predetermined angle that is far from being perpendicular to the shooting direction of the camera 10 and the projection direction of various illuminations, the floor 120 does not have a uniform color, and specifically, the closer to the back 110. The color is dark.

また、カメラ10には光学的な構造により定まる所定の画角があり、この画角やカメラ10の撮影方向などにより撮影範囲101が予め定まっている。図6において、この撮影範囲101には2人の利用者Uの全身と、利用者Uの背景となっている背面110および床面120の一部とが含まれている。したがって、ステップS20により取得される撮影画像は、利用者Uの背景としての背面110を撮影範囲として含む撮影画像の一部である第1の領域101aの画像(以下、単に「第1の領域」ともいう)と、利用者Uの背景として床面120を撮影範囲として含む撮影画像の一部である第2の領域101bの画像(以下、単に「第2の領域」ともいう)とからなっている。   The camera 10 has a predetermined angle of view determined by the optical structure, and the shooting range 101 is determined in advance by the angle of view and the shooting direction of the camera 10. In FIG. 6, the imaging range 101 includes the whole body of two users U and a part of the back surface 110 and the floor surface 120 that are the background of the user U. Therefore, the captured image acquired in step S20 is an image of the first area 101a that is a part of the captured image including the back surface 110 as the background of the user U (hereinafter simply referred to as “first area”). And a second region 101b image (hereinafter also simply referred to as “second region”) that is a part of a captured image including the floor 120 as a capturing range as the background of the user U. Yes.

上述したステップS401では、撮影範囲101に含まれる第1の領域101aの位置がカメラ10の画角や撮影方向などにより予め定まっていることに基づき、撮影画像から第1の領域101aの画像のみが切り出される(複製される)。なお、この画像が撮影画像から切り出されることにより、撮影画像の該当部分が削除されるなど撮影画像自体に変化が生じることはない。   In step S401 described above, based on the fact that the position of the first area 101a included in the shooting range 101 is determined in advance by the angle of view, the shooting direction, and the like of the camera 10, only the image of the first area 101a from the shot image is displayed. Cut out (duplicated). Note that, when this image is cut out from the photographed image, there is no change in the photographed image itself, such as deleting a corresponding part of the photographed image.

次にステップS402において、主制御部80は、切り出された第1の領域101aの画像に対して所定の第1の画像補正を行う。この第1の画像補正は、クロマキー合成における(最適化のための)前処理としての周知の画像補正であって、切り出された画像(ここでは第1の領域、さらに具体的には第1の領域に含まれる背面110の像)の色相や明るさなどに応じて、この第1の領域の色相や明るさなどをクロマキー処理のために理想的な値となるよう修正する。なお、実際に取得された撮影画像がキー色に応じたクロマキー処理のためにほぼ最適な色相や明るさなどであれば、このステップS402の処理は省略することができる。   Next, in step S402, the main control unit 80 performs predetermined first image correction on the cut image of the first area 101a. This first image correction is a well-known image correction as preprocessing (for optimization) in chroma key composition, and is a cut-out image (here, the first region, more specifically, the first image correction). In accordance with the hue and brightness of the back surface 110 image included in the area, the hue and brightness of the first area are corrected to become ideal values for chroma key processing. Note that if the actually acquired captured image has a hue or brightness that is almost optimal for chroma key processing corresponding to the key color, the processing in step S402 can be omitted.

続いて、ステップS403において、主制御部80は、ステップS402において画像補正された第1の領域のための第1のクロマキーマスクを作成する。この第1のクロマキーマスクは、周知の合成マスク(アルファチャネル)であって、対象となる画像(ここでは第1の領域)のうちのキー色(ここでは青色または緑色)を有する領域、すなわち第1の領域に含まれる背面110の像が占める領域を透明とし、それ以外の領域を非透明とするためのデータである。この合成マスクは一般的には対象となる画像の画素毎に0(完全透明)から255(完全非透明)までの透過度を示す値αが設定される。なおここでのαは、0および255のみが使用されるものとする。   Subsequently, in step S403, the main control unit 80 creates a first chroma key mask for the first region whose image has been corrected in step S402. This first chroma key mask is a well-known composite mask (alpha channel), and is a region having a key color (here, blue or green) in the target image (here, the first region), that is, the first chroma mask. This is data for making the area occupied by the image of the back surface 110 included in one area transparent and making the other areas non-transparent. In general, the composite mask is set to a value α indicating transparency from 0 (completely transparent) to 255 (completely nontransparent) for each pixel of the target image. Note that only 0 and 255 are used as α here.

このようなクロマキーマスクを使用することにより、詳しくはステップS407,S408において後述するように、撮影画像の非透明領域(α=255)に相当する(利用者が適宜選択した)背景画像の領域は隠され(マスクされ)、その透明領域(α=0)に相当する背景画像の領域は見えるように合成される。そのため、あたかも対象となる撮影画像の非透明領域の部分が切り取られ、切り取られた当該部分が上記背景画像に対して貼り付けられたような合成画像が得られる。   By using such a chroma key mask, as will be described in detail later in steps S407 and S408, the region of the background image corresponding to the non-transparent region (α = 255) of the photographed image (selected by the user as appropriate) is The area of the background image that is hidden (masked) and corresponds to the transparent area (α = 0) is synthesized so that it can be seen. Therefore, a composite image can be obtained as if a non-transparent area portion of the target captured image is cut out and the cut-out portion is pasted on the background image.

次にステップS404において、前述したステップS401と同様に、主制御部80は、前述したステップS20により取得される撮影画像から予め定められた第2の領域を切り出す(複製する)。なお、このことにより撮影画像自体に変化が生じないことは前述した。   In step S404, as in step S401 described above, the main control unit 80 cuts out (duplicates) a predetermined second region from the captured image acquired in step S20 described above. As described above, this does not change the captured image itself.

続いてステップS405において、主制御部80は、切り出された第2の領域101bの画像に対して所定の第2の画像補正を行う。この第2の画像補正は、第1の画像補正とは異なる画像補正であって、第1の画像補正とは異なり省略できないものである。以下、詳しく説明する。   Subsequently, in step S405, the main control unit 80 performs predetermined second image correction on the cut image of the second region 101b. This second image correction is an image correction different from the first image correction, and cannot be omitted unlike the first image correction. This will be described in detail below.

この第2の画像補正は、クロマキー合成における(最適化のための)前処理としての周知の画像補正と、第2の領域101bに対応する床面120がカメラ10の撮影方向に対して所定の角度を有している(すなわち略垂直方向から傾いている)ために生じる領域内の色変化を補正する画像補正とを含んでいる。   This second image correction includes known image correction as preprocessing (for optimization) in chroma key composition, and the floor surface 120 corresponding to the second area 101b is predetermined with respect to the shooting direction of the camera 10. And image correction for correcting color change in the region caused by having an angle (that is, tilting from a substantially vertical direction).

まず、この第2の画像補正に含まれるクロマキー合成における(最適化のための)前処理としての周知の画像補正は、切り出された画像(ここでは第2の領域、さらに具体的には第2の領域に含まれる床面120の像)の色相や明るさなどに応じて、第1の画像補正と同様の手法で行われるが、これと同一内容の画像補正ではない。なぜなら、第1および第2の領域101a,101bに対応する背面110および床面120の色合いは、カメラ10の撮影方向に対する角度の違いから互いに同一とはならないからである。また、背面110と床面120との材質の違いなどを考慮しても背面110および床面120の色合いはやはり同一とはならない。   First, a well-known image correction as a pre-processing (for optimization) in chroma key composition included in the second image correction is performed by extracting a cut-out image (here, the second region, more specifically the second image). According to the hue and brightness of the image of the floor surface 120 included in the area (1), it is performed by the same method as the first image correction, but the image correction is not the same content as this. This is because the colors of the back surface 110 and the floor surface 120 corresponding to the first and second regions 101 a and 101 b are not the same due to the difference in angle with respect to the shooting direction of the camera 10. Further, even if the difference in material between the back surface 110 and the floor surface 120 is taken into consideration, the colors of the back surface 110 and the floor surface 120 are not the same.

また、この第2の画像補正に含まれる領域内の色変化を補正する画像補正は、第1の画像補正において必要がない。なぜなら、この色変化は、第2の領域101bに対応する床面120がカメラ10の撮影方向に対して略垂直方向でないこと、および床面120が照明の投射方向に対して略垂直の面からかなり傾いている(浅い角度しかない)ので、照明に近い部分が明るく、照明に遠い部分(すなわち背面110に近い部分)が暗くなること、などの理由により生じるからである。この色合いの変化は、典型的には位置に応じた連続的な変化(グラデーション)となる。よって、この変化を補償(解消)するように定められた補正用テーブル、補正用画素マップ、または数式などを使用することにより、クロマキー処理のための理想的な均一性および色合いを有する画像となるように第2の領域を補正することができる。なお、上記変化を補償するテーブルや数式は、筐体の形状、材質、カメラや照明の位置などに基づき、3次元グラフィックス(例えばレイトレーシング等)や各種シミュレーションなどの周知の手法により比較的容易に算出することができるが、実測値に基づいて算出されてもよい。なお、この補償のための画像を適宜取得する手法については変形例において後述する。   Further, the image correction for correcting the color change in the area included in the second image correction is not necessary in the first image correction. This is because the floor surface 120 corresponding to the second region 101b is not substantially perpendicular to the shooting direction of the camera 10, and the floor surface 120 is substantially perpendicular to the illumination projection direction. This is because it is considerably inclined (only has a shallow angle), so that a portion near the illumination is bright and a portion far from the illumination (that is, a portion near the back surface 110) is dark. This change in hue is typically a continuous change (gradation) according to the position. Therefore, by using a correction table, a correction pixel map, or a mathematical formula determined so as to compensate (resolve) this change, an image having ideal uniformity and hue for chroma key processing is obtained. Thus, the second region can be corrected. Note that the table and mathematical formulas for compensating for the above change are relatively easy by well-known methods such as three-dimensional graphics (for example, ray tracing) and various simulations based on the shape and material of the housing, the position of the camera and lighting, etc. However, it may be calculated based on actual measurement values. Note that a technique for appropriately obtaining an image for compensation will be described later in a modification.

続いて、ステップS406において、主制御部80は、ステップS405において画像補正された第2の領域のための第2のクロマキーマスクを作成する。この第2のクロマキーマスクも、第1のクロマキーマスクと同様に周知の合成マスク(アルファチャネル)であって、対象となる画像(ここでは第2の領域)のうちのキー色を有する領域、すなわち第2の領域に含まれる床面120の像が占める領域を透明とし、それ以外の領域を非透明とするためのデータである。なお、この第2のクロマキーマスクを作成するためのキー色は、青色または緑色ではあるが、第1のクロマキーマスクを作成するためのキー色と同一ではない。前述したように床面120はカメラ10の撮影方向や各種照明の投射方向に対して所定の角度を有しているので、これらに対してほぼ垂直な背面110とは同じ色合いとはならないからである。もっとも、ステップS402,S405における画像補正より、これらの色合いを同一色とする場合には同一のキー色となるが、詳しい変形例については後述する。   Subsequently, in step S406, the main control unit 80 creates a second chroma key mask for the second region whose image has been corrected in step S405. This second chroma key mask is also a well-known composite mask (alpha channel) in the same manner as the first chroma key mask, and is an area having the key color in the target image (here, the second area), that is, This is data for making the area occupied by the image of the floor surface 120 included in the second area transparent and making the other areas non-transparent. The key color for creating the second chroma key mask is blue or green, but is not the same as the key color for creating the first chroma key mask. As described above, since the floor 120 has a predetermined angle with respect to the shooting direction of the camera 10 and the projection direction of various illuminations, the back surface 110 that is substantially perpendicular to these does not have the same hue. is there. Of course, from the image correction in steps S402 and S405, when these hues are the same color, the same key color is obtained, but a detailed modification will be described later.

次に、ステップS407において、主制御部80は、メイン表示・操作部62に予め作成された複数の背景画像の一部または全部を表示し、利用者による選択をメイン表示・操作部62より受け付ける。具体的には、液晶タッチパネル20に様々な背景画像が表示され、利用者Uにより、液晶タッチパネル20でこれらの背景画像のうちの1つを選択する(すなわち画面のカーソルを動かしたりパネルを指で押したりすることにより確定させる)操作が行われる。このことにより、利用者は自ら選択した付加画像を(仮想的な)背景画像とした合成画像を得ることができるので、本装置の遊戯性を高めることができる。   Next, in step S <b> 407, the main control unit 80 displays some or all of the plurality of background images created in advance on the main display / operation unit 62, and accepts selection by the user from the main display / operation unit 62. . Specifically, various background images are displayed on the liquid crystal touch panel 20, and the user U selects one of these background images on the liquid crystal touch panel 20 (that is, the screen cursor is moved or the panel is moved with a finger). The operation is performed by pressing the button. As a result, the user can obtain a composite image in which the additional image selected by the user is a (virtual) background image, so that the playability of the apparatus can be improved.

続いて、ステップS408において、主制御部80は、ステップS403,S406において作成された第1および第2のクロマキーマスクを適用することにより、ステップS407において利用者により選択された付加画像としての背景画像を、ステップS20において取得された撮影画像に対してクロマキー合成することにより、出力すべき合成画像を作成する。その後クロマキー処理は終了し、図4に示す処理に復帰する。   Subsequently, in step S408, the main control unit 80 applies the first and second chroma key masks created in steps S403 and S406, thereby providing a background image as an additional image selected by the user in step S407. Is synthesized with the chroma key for the captured image acquired in step S20 to create a composite image to be output. Thereafter, the chroma key process ends, and the process returns to the process shown in FIG.

<4. 効果>
上記のように本実施形態によれば、利用者Uの背後に設けられた背面110と、当該背面110とは異なる撮影範囲内の部分である床面120とにキー色を付し、それらが異なる色合いとなる場合であっても、それぞれに対応するクロマキーマスクを作成し、クロマキー処理を行うことができる。
<4. Effects>
As described above, according to the present embodiment, the back surface 110 provided behind the user U and the floor surface 120 which is a portion within the shooting range different from the back surface 110 are assigned key colors, Even in the case of different shades, chroma key masks corresponding to each can be created and chroma key processing can be performed.

<5. 変形例>
<5.1 第1の主たる変形例>
上記実施形態では、ステップS405において第2の画像補正に含まれる領域内の色変化を補正する画像補正が行われ、この変化を補償(解消)するように定められた補正用テーブル、補正用画素マップ、または数式などが使用されることにより、クロマキー処理のための理想的な均一性および色合いを有する画像となるように第2の領域が補正される構成であるが、この構成に代えて、本第1の主たる変形例では、この補償のために使用される(基準となる)画像を適宜取得する構成である。以下、図7を参照して説明する。
<5. Modification>
<5.1 First Main Modification>
In the above embodiment, the image correction for correcting the color change in the region included in the second image correction is performed in step S405, and the correction table and the correction pixel determined to compensate (resolve) this change. By using a map or a mathematical expression, the second area is corrected so as to obtain an image having ideal uniformity and hue for chroma key processing, but instead of this configuration, In the first main modification example, an image used as a reference (reference) is appropriately acquired. Hereinafter, a description will be given with reference to FIG.

図7は、補償のために使用される基準となる背景撮影画像を取得するための、主制御部80の動作の手順を示すフローチャートである。本変形例では、この図7に示す主制御部80の動作は前述した図4に示す動作と並行して行われる。もっとも、以下に説明するように実際に並行して動作するのは不使用時間検出処理とその判定処理のみである。   FIG. 7 is a flowchart showing an operation procedure of the main control unit 80 for acquiring a background photographed image used as a reference used for compensation. In this modification, the operation of the main control unit 80 shown in FIG. 7 is performed in parallel with the operation shown in FIG. 4 described above. However, as will be described below, only the non-use time detection process and its determination process actually operate in parallel.

図7に示されるステップS71において、主制御部80は、利用者Uにより装置が使用されない時間の経過時間を検出する。具体例としては、コイン投入口26に所定のコインが投入されて図4に示す一連の処理が終了した後から、次のコインが投入されて一連の処理が開始されるまでの装置が使用されない経過時間が計測される。   In step S <b> 71 shown in FIG. 7, the main control unit 80 detects an elapsed time when the user U does not use the device. As a specific example, after a predetermined coin is inserted into the coin insertion slot 26 and the series of processes shown in FIG. 4 is completed, the apparatus is not used until the next coin is inserted and the series of processes is started. Elapsed time is measured.

次に、ステップS72において、主制御部80は、ステップS71において計測された経過時間が所定の時間を超えて(しばらくは利用者Uにより利用されないであろう)十分な時間を経過したか否かを判定し、十分な時間が経過した場合には続くステップS73の処理に進み、十分な時間が経過していない場合にはステップS71の検出処理に戻り十分な時間が経過するまで処理が繰り返される(S72→S71→S72)。   Next, in step S72, the main control unit 80 determines whether or not the elapsed time measured in step S71 exceeds a predetermined time (it will not be used by the user U for a while) and a sufficient time has passed. If sufficient time has elapsed, the process proceeds to the subsequent step S73. If sufficient time has not elapsed, the process returns to the detection process of step S71, and the process is repeated until sufficient time has elapsed. (S72 → S71 → S72).

続いて、ステップS73において、主制御部80は、背景となるべき背面110および床面120を自動的に撮影することにより背景撮影画像を取得する。このとき不使用時間が十分に経過しているので利用者Uは筐体内部にほぼ確実にいないと推測されるが、本撮影処理の直前に筐体内に入ってくることも考えられるので、本撮影処理において得られる背景撮影画像に利用者Uが含まれている場合もまれに考えられる。この利用者Uが含まれている画像を背景撮影画像としてクロマキー処理の対象とすれば背景が異常となるので得られる合成画像は異常なものとなる。   Subsequently, in step S73, the main control unit 80 acquires a background photographed image by automatically photographing the back surface 110 and the floor surface 120 to be the background. At this time, since the non-use time has passed sufficiently, it is assumed that the user U is almost certainly not inside the case, but it is also possible that the user U enters the case immediately before the main photographing process. It is rarely considered that the user U is included in the background photographed image obtained in the photographing process. If an image including the user U is used as a subject for chroma key processing as a background photographed image, the background becomes abnormal and the resultant composite image becomes abnormal.

そこで、ステップS74において、主制御部80は、背景撮影画像に背景となるべき背面110および床面120の青色または緑色とは大きく異なる異常色、典型的には利用者Uの肌色が含まれているか否かを検出する。   Therefore, in step S74, the main control unit 80 includes the abnormal color that is significantly different from the blue or green color of the back surface 110 and the floor surface 120 to be the background, typically the skin color of the user U, in the background photographed image. Detect whether or not.

続いて、ステップS75において、主制御部80は、ステップS74において異常色が検出されたか否かを判定し、異常色が検出された場合には(利用者Uを検知しているので不使用時間をゼロにリセットした後)ステップS71の処理に戻り、上記不使用時間が経過して再度撮影された背景撮影画像に異常色が含まれない状態となるまで上記処理が繰り返される(S75→S71→…→S75)。また、上記判定の結果、異常色が検出されない場合には当該背景撮影画像を保存し、不使用時間をゼロにリセットした後ステップS71の処理に戻る。   Subsequently, in step S75, the main control unit 80 determines whether or not an abnormal color is detected in step S74. If an abnormal color is detected (the user U is detected, the non-use time is detected). Is reset to zero), the process returns to step S71, and the above process is repeated until the background image captured again after the non-use time has elapsed (S75 → S71 → ... → S75). If no abnormal color is detected as a result of the determination, the background photographed image is stored, the non-use time is reset to zero, and the process returns to step S71.

こうして保存された背景撮影画像は、ステップS405において第2の画像補正に含まれる領域内の色変化を補正する画像補正に使用される。例えば、この背景撮影画像の色変化を打ち消すように各画素毎に色合いを補正するための補正データを含む補正用画素マップを背景撮影画像に基づき作成し、このマップに基づきクロマキー処理のための理想的な均一性および色合いを有する画像となるように第2の領域が補正される。なお、この背景撮影画像は、このステップS405またはステップS402において、クロマキー合成における(最適化のための)前処理としての画像補正のために使用されてもよい。また、上記構成に代えて、撮影画像から上記背景撮影画像を差し引くことにより得られる差分画像が人物の画像に対応することを利用して合成画像を作成してもよい。この場合、差分画像に対応するマスクはクロマキーマスクではないので、クロマキー処理が必要とはならないが、このような合成画像の作成処理はキー色を使用しない点を除いてクロマキー処理とほぼ同視できる。   The background captured image thus stored is used for image correction for correcting a color change in the area included in the second image correction in step S405. For example, a correction pixel map including correction data for correcting the hue for each pixel so as to cancel the color change of the background photographed image is created based on the background photographed image, and ideal for chroma key processing based on this map. The second area is corrected so as to obtain an image having uniform uniformity and hue. This background photographed image may be used for image correction as preprocessing (for optimization) in chroma key composition in step S405 or step S402. Further, instead of the above configuration, a composite image may be created by utilizing the fact that the difference image obtained by subtracting the background captured image from the captured image corresponds to a person image. In this case, since the mask corresponding to the difference image is not the chroma key mask, the chroma key process is not necessary, but such a composite image creation process can be almost equated with the chroma key process except that the key color is not used.

この構成により、第1および第2の領域101a,101bに対応する背面110および床面120のカメラ10の撮影方向に対する角度の違い、材質の違い、または汚れ方等の違い(すなわち床面120は利用者Uに踏まれることにより汚れて色がくすんだり摩耗して色がうすくなったりしやすいという違い)がほぼ完全に補償され、クロマキー処理のための理想的な均一性および色合いを有する画像となるように第2の領域を補正することができる。   With this configuration, the back surface 110 and the floor surface 120 corresponding to the first and second regions 101a and 101b are different in angle with respect to the shooting direction of the camera 10, the difference in material, the difference in dirt, etc. (that is, the floor surface 120 is An image having an ideal uniformity and hue for chroma key processing, which is almost completely compensated for (difference that the user U steps on it becomes dirty and the color becomes dull or wears easily and the color is faint) The second region can be corrected so that

<5.2 第2の主たる変形例>
上記実施形態では、例えば図6に示されるように撮影範囲101には、利用者Uのほか、背面110および床面120のみが含まれているが、カメラ10の画角や設置位置などによっては筐体の内面のうちのその他の面が撮影される場合がある。以下、図8および図9を参照して説明する。
<5.2 Second Main Modification>
In the above embodiment, for example, as shown in FIG. 6, the imaging range 101 includes only the back surface 110 and the floor surface 120 in addition to the user U, but depending on the angle of view, installation position, and the like of the camera 10. Other surfaces of the inner surface of the housing may be photographed. Hereinafter, a description will be given with reference to FIGS.

図8は、本第2の主たる変形例における自動写真作成装置を側面から見た図である。図1に示される上記実施形態における自動写真作成装置と比較すればわかるように、本変形例の装置では、カメラ10が天面近傍に設置されており、利用者Uを上から見下ろすように撮影することができる。   FIG. 8 is a side view of the automatic photo creating apparatus according to the second main modification. As can be seen from the comparison with the automatic photo creation apparatus in the above embodiment shown in FIG. 1, in the apparatus of this modification, the camera 10 is installed in the vicinity of the top surface and is photographed so that the user U is looked down from above. can do.

図9は、撮影室内の利用者をカメラにより撮影するときの撮影範囲を示す図である。図6に示される撮影範囲101と比較すればわかるように、図9に示される撮影範囲201には、背面110および床面120の他、右側面130、左側面140、および天面150が含まれている。   FIG. 9 is a diagram showing a shooting range when shooting a user in the shooting room with a camera. As can be seen from comparison with the imaging range 101 shown in FIG. 6, the imaging range 201 shown in FIG. 9 includes the right side 130, the left side 140, and the top surface 150 in addition to the back surface 110 and the floor surface 120. It is.

このように本変形例では、第1の領域として背面110が含まれ、第2の領域102として床面120が含まれる上記実施形態の構成よりもさらに多くの面が撮影範囲201には含まれるが、このような場合であっても上記実施形態の構成を応用することにより容易に各面の色合いの変化を補償することができる。すなわち、図5に示されるステップS404〜S406までの処理を床面120に対応する第2の領域だけでなく、右側面130、左側面140、および天面150にそれぞれ対応する第3ないし第5の領域について同様に処理することにより、ステップS408において各面に対応したクロマキー処理を行うことができる。   As described above, in the present modification, the imaging range 201 includes more surfaces than the configuration of the above embodiment in which the back surface 110 is included as the first region and the floor surface 120 is included as the second region 102. However, even in such a case, changes in the hue of each surface can be easily compensated by applying the configuration of the above embodiment. That is, the processes from step S404 to S406 shown in FIG. 5 are performed not only in the second region corresponding to the floor 120 but also in the third to fifth corresponding to the right side 130, the left side 140, and the top surface 150, respectively. By processing in the same manner for the area, chroma key processing corresponding to each surface can be performed in step S408.

<5.3 その他の変形例>
上記実施形態では、背面110および床面120には同一の色が付され、結果的に色合いが異なる状態となっているが、これらの面に付される色は必ずしも同一である必要はなく、例えば背面110には青色が付され、床面120には緑色が付されていてもよい。なお、結果的に色合いが同一の状態となる場合であっても、上記実施形態の構成により同様にクロマキー処理は可能であるが、この場合には周知の構成により同様のクロマキー処理が可能である。
<5.3 Other Modifications>
In the above-described embodiment, the same color is applied to the back surface 110 and the floor surface 120, and as a result, the hue is different, but the colors applied to these surfaces are not necessarily the same, For example, the back surface 110 may be blue and the floor surface 120 may be green. Even if the hues are the same as a result, the chroma key process can be performed in the same manner by the configuration of the above embodiment, but in this case, the same chroma key process can be performed by a known configuration. .

上記実施形態では、ステップS403において使用されるキー色と、ステップS406において使用されるキー色とは異なるが、ステップS402において第1の領域において背面110が占める領域の色を第2の領域において床面120が占める領域の色となるように画像補正するか、または、ステップS405において第2の領域において床面120が占める領域の色を第1の領域において背面110が占める領域の色となるように画像補正すれば使用されるキー色を同一にすることができる。また、ステップS402,S405において所定の理想的なキー色になるよう背面110および床面120が占める領域の色を画像補正することによりキー色を同一にすることができる。このようにキー色を同一にすることにより、ステップS403,S406においてそれぞれ各領域毎にクロマキーマスクを作成する必要がなく、例えばステップS406において第1および第2の領域に共通の1つのクロマキーマスクを作成すればよいので、処理を簡単にすることができる。   In the above embodiment, the key color used in step S403 is different from the key color used in step S406, but the color of the area occupied by the back surface 110 in the first area in step S402 is the floor color in the second area. The image is corrected so as to be the color of the area occupied by the surface 120, or the color of the area occupied by the floor surface 120 in the second area is changed to the color of the area occupied by the back surface 110 in the first area in step S405. If the image is corrected, the key color used can be made the same. In addition, the key color can be made the same by correcting the color of the area occupied by the back surface 110 and the floor surface 120 so that the predetermined ideal key color is obtained in steps S402 and S405. By making the key colors the same in this way, it is not necessary to create a chroma key mask for each region in steps S403 and S406. For example, one chroma key mask common to the first and second regions is created in step S406. Since it only has to be created, the processing can be simplified.

上記実施形態では、筐体の内側平面にキー色が付される構成であるが、筐体の内面以外の平面または曲面(例えば椅子や装飾板など)や、撮影範囲に設けられるカーテンなどにキー色が付される構成であってもよい。   In the above embodiment, the key color is given to the inner plane of the casing, but the key is applied to a plane or curved surface (such as a chair or a decorative board) other than the inner surface of the casing, a curtain provided in the photographing range, or the like. The structure to which a color is attached | subjected may be sufficient.

上記実施形態では、図7に示されるステップS71において不使用経過時間が検出され、ステップS72においてその経過が判定されるが、もちろんこれは一例であって、例えば数日に1回、例えば装置起動時や終了時にステップS74における撮影処理が行われてもよいし、前回撮影時から数日ないし数ヶ月が経過した後の時点(好ましくは不使用であることが推測される時点、例えば不使用経過時間が経過後、装置起動時、または装置終了時など)において撮影処理が行われてもよい。   In the above embodiment, the non-use elapsed time is detected in step S71 shown in FIG. 7, and the progress is determined in step S72. Of course, this is an example. The shooting process in step S74 may be performed at the time or at the end, or the time after several days to several months have passed since the previous shooting (preferably the time when it is estimated that the camera is not used, for example, the process of non-use After the elapse of time, the photographing process may be performed when the apparatus is activated or when the apparatus is terminated.

本発明の一実施形態に係る写真作成装置の側面図である。1 is a side view of a photo creation device according to an embodiment of the present invention. 上記実施形態に係る写真作成装置の本体部を示す正面図である。It is a front view which shows the main-body part of the photo production apparatus which concerns on the said embodiment. 上記実施形態に係る写真作成装置の要部を機能面から見た構成を示すブロック図である。It is a block diagram which shows the structure which looked at the principal part of the photo production apparatus which concerns on the said embodiment from the functional surface. 上記実施形態に係る写真作成装置における主制御部の動作を説明するためのフローチャートである。It is a flowchart for demonstrating operation | movement of the main control part in the photo production apparatus which concerns on the said embodiment. 上記実施形態におけるクロマキー処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the chroma key process in the said embodiment. 上記実施形態における撮影室内の利用者をカメラにより撮影するときの撮影範囲を示す図である。It is a figure which shows the imaging | photography range when image | photographing the user in the imaging | photography room in the said embodiment with a camera. 上記実施形態の第1の主たる変形例において、背景撮影画像を取得するための主制御部の動作の手順を示すフローチャートである。7 is a flowchart illustrating a procedure of an operation of a main control unit for acquiring a background captured image in the first main modification of the embodiment. 上記実施形態の第2の主たる変形例における写真作成装置の側面図である。It is a side view of the photograph production apparatus in the 2nd main modification of the said embodiment. 上記変形例における撮影室内の利用者をカメラにより撮影するときの撮影範囲を示す図である。It is a figure which shows the imaging | photography range when image | photographing the user in the imaging | photography room in the said modification with a camera. 従来の例における撮影室内の利用者をカメラにより撮影するときの撮影範囲を示す図である。It is a figure which shows the imaging | photography range when image | photographing the user in the imaging | photography room in a conventional example with a camera.

符号の説明Explanation of symbols

2 …撮影室
4 …本体部
10 …カメラ
11 …フラッシュ
20 …液晶タッチパネル
52 …撮影部(カメラ)
54 …確認表示部(プレビューモニタ)
62 …メイン表示・操作部(液晶タッチパネル)
66 …出力部(プリンタ)
70 …照明部
72 …I/O制御部(I/O制御装置)
80 …主制御部(主制御装置)
101,201 …撮影範囲
110 …背面
120 …床面
130 …右側面
140 …左側面
150 …天面
U …利用者
2 ... Photographing room 4 ... Main body 10 ... Camera 11 ... Flash 20 ... LCD touch panel 52 ... Photographing unit (camera)
54 ... Confirmation display (preview monitor)
62 ... Main display / operation unit (LCD touch panel)
66 ... Output unit (printer)
70: Illumination unit 72: I / O control unit (I / O control device)
80: Main control unit (main control device)
101, 201 ... shooting range 110 ... back surface 120 ... floor surface 130 ... right side surface 140 ... left side surface 150 ... top surface U ... user

Claims (11)

所定の撮影領域における被写体である利用者を含む像を取得する撮影手段と、前記撮影手段により得られる撮影画像を含む合成画像を写真として出力する出力手段とを備える自動写真作成装置であって、
前記撮影手段による撮影対象であって、第1の色を付された第1の被撮影面および第2の色を付された第2の被撮影面を有する背景提示手段と、
前記撮影画像のうち前記第1の被撮影面の像を含む第1の領域に対して、前記第1の被撮影面の像が占める領域の色に応じた画像補正を行い、またはさらに前記撮影画像のうち前記第2の被撮影面の像を含む第2の領域に対して、前記第2の被撮影面の像が占める領域の色に応じた画像補正を行うことにより、前記第1の被撮影面の像が占める領域の色および前記第2の被撮影面の像が占める領域の色に対応する所定のクロマキーマスクを作成するマスク作成手段と、
前記マスク作成手段により作成されたクロマキーマスクを使用することにより、前記撮影画像に対して所定の付加画像を合成するクロマキー処理を行うことにより、前記合成画像を生成するクロマキー処理手段と
を備えることを特徴とする、自動写真作成装置。
An automatic photo creation apparatus comprising: a photographing unit that acquires an image including a user who is a subject in a predetermined photographing region; and an output unit that outputs a composite image including a photographed image obtained by the photographing unit as a photograph,
A background presenting means that is a subject to be photographed by the photographing means and has a first photographing surface with a first color and a second photographing surface with a second color;
Image correction according to the color of the area occupied by the image of the first image-capturing surface is performed on the first area including the image of the first image-captured surface of the captured image, or the image capturing By performing image correction according to the color of the area occupied by the image of the second image-captured surface on the second area including the image of the second image-captured surface of the image, the first area Mask creating means for creating a predetermined chroma key mask corresponding to the color of the area occupied by the image of the imaged surface and the color of the area occupied by the image of the second imaged surface;
Using a chroma key mask created by the mask creating means, and performing a chroma key process for synthesizing a predetermined additional image to the captured image, thereby providing a chroma key processing means for generating the synthesized image. An automatic photo creation device.
前記第1および第2の色は、略同一であり、
前記第1および第2の被撮影面の像が占める領域の色は、異なることを特徴とする、請求項1に記載の自動写真作成装置。
The first and second colors are substantially the same;
2. The automatic photo creation apparatus according to claim 1, wherein colors of areas occupied by the images of the first and second imaging surfaces are different.
前記マスク作成手段は、前記画像補正を行うことにより、前記第1および第2の被撮影面の像が占める領域を同一色とし、前記同一色の領域に対応する所定のクロマキーマスクを作成することを特徴とする、請求項1に記載の自動写真作成装置。   The mask creating means creates the predetermined chroma key mask corresponding to the region of the same color by performing the image correction so that the regions occupied by the images of the first and second imaging surfaces are the same color. The automatic photo creating apparatus according to claim 1, wherein: 前記第1の被撮影面は、前記撮影手段の撮影方向に対して略垂直方向に沿った平面とは異なる面を有しており、
前記マスク作成手段は、前記第1の被撮影面の像が占める領域の色の変化が解消されるよう前記第1の領域に対して所定の画像補正を行うことを特徴とする、請求項1に記載の自動写真作成装置。
The first surface to be photographed has a surface different from a plane substantially perpendicular to the photographing direction of the photographing means,
2. The mask creating means performs predetermined image correction on the first area so that a change in color of the area occupied by the image of the first surface to be photographed is eliminated. Automatic photo production device described in 1.
前記第1の被撮影面は、前記撮影手段の撮影方向に対して略垂直方向に沿った面から傾いており、
前記マスク作成手段は、前記第1の被撮影面の有する傾きに応じて変化する前記第1の被撮影面の像が占める領域の色の変化が解消されるよう前記第1の領域に対して所定の画像補正を行うことを特徴とする、請求項4に記載の自動写真作成装置。
The first surface to be imaged is inclined from a surface along a direction substantially perpendicular to the imaging direction of the imaging means;
The mask creating means applies the first region to the first region so that the change in color of the region occupied by the image of the first surface to be captured that changes according to the inclination of the first surface to be captured is eliminated. The automatic photo creation apparatus according to claim 4, wherein predetermined image correction is performed.
前記第1の被撮影面は、前記利用者が内部に入るべき筐体の内面のうち、前記利用者下方に設けられる床面、前記利用者上方に設けられる天面、前記利用者の左側に設けられる左側面、および前記利用者の右側に設けられる右側面のいずれか1つ以上であり、
前記第2の被撮影面は、前記筐体の内面のうち、前記撮影手段の設置位置を起点として前記利用者の背後方向に設けられる背面であることを特徴とする、請求項5に記載の自動写真作成装置。
The first imaged surface is a floor surface provided below the user, a top surface provided above the user, and a left side of the user among the inner surfaces of the housing that the user should enter. Any one or more of a left side provided and a right side provided on the right side of the user;
The said 2nd to-be-photographed surface is a back surface provided in the back direction of the said user from the installation position of the said imaging | photography means among the inner surfaces of the said housing | casing, The characterized by the above-mentioned. Automatic photo creation device.
予め定められた複数の画像から前記所定の付加画像を選択するための利用者による操作入力を受け付ける操作入力手段をさらに備え、
前記クロマキー処理手段は、前記撮影画像に対して前記操作入力手段により受け付けられた付加画像を合成するクロマキー処理を行うことを特徴とする、請求項1に記載の自動写真作成装置。
An operation input means for receiving an operation input by a user for selecting the predetermined additional image from a plurality of predetermined images;
2. The automatic photo creation apparatus according to claim 1, wherein the chroma key processing unit performs a chroma key process for synthesizing an additional image received by the operation input unit with respect to the photographed image.
前記マスク作成手段により行われる画像補正のための基準となる画像であって、前記第1および第2の領域が含まれ、前記利用者が被写体に含まれない背景撮影画像を、所定の時点で前記撮影手段により取得するサンプリング手段をさらに備え、
前記マスク作成手段は、前記サンプリング手段により取得された前記背景撮影画像のうち前記第1の被撮影面の像が占める領域の色に基づき、またはさらに前記背景撮影画像のうち前記第2の被撮影面の像が占める領域の色に基づき、前記画像補正を行うことを特徴とする、請求項1に記載の自動写真作成装置。
An image serving as a reference for image correction performed by the mask creating unit, the background image including the first and second regions and not included in the subject by the user at a predetermined time point. It further comprises sampling means for obtaining by the photographing means,
The mask creating means is based on the color of the area occupied by the image of the first imaged surface in the background imaged image acquired by the sampling means, or further, the second imaged image in the background imaged image. The automatic photo creation apparatus according to claim 1, wherein the image correction is performed based on a color of an area occupied by a surface image.
前記サンプリング手段により取得された背景撮影画像に前記利用者の像に含まれるべき色が含まれる異常を検出するエラー検出手段をさらに備え、
前記マスク手段は、前記エラー検出手段により異常が検出される場合、異常が検出された背景撮影画像を前記画像補正に使用しないことを特徴とする、請求項8に記載の自動写真作成装置。
An error detecting means for detecting an abnormality including a color to be included in the image of the user in the background photographed image acquired by the sampling means;
9. The automatic photo creating apparatus according to claim 8, wherein when an abnormality is detected by the error detection unit, the mask unit does not use a background photographed image in which the abnormality is detected for the image correction.
所定の撮影領域における被写体である利用者を含む像を取得する撮影ステップと、前記撮影ステップにおいて得られる撮影画像を含む合成画像を写真として出力する出力ステップとを備える自動写真作成方法であって、
前記撮影ステップにおける撮影対象であって、第1の色を付された第1の被撮影面および第2の色を付された第2の被撮影面を有する背景提示手段における前記第1の被撮影面の像を含む第1の領域に対して、前記第1の被撮影面の像が占める領域の色に応じた画像補正を行い、またはさらに前記第2の被撮影面の像を含む第2の領域に対して、前記第2の被撮影面の像が占める領域の色に応じた画像補正を行うことにより、前記第1の被撮影面の像が占める領域の色および前記第2の被撮影面の像が占める領域の色に対応する所定のクロマキーマスクを作成するマスク作成手ステップと、
前記マスク作成ステップにおいて作成されたクロマキーマスクを使用することにより、前記撮影画像に対して所定の付加画像を合成するクロマキー処理を行うことにより、前記合成画像を生成するクロマキー処理ステップと
を含むことを特徴とする、自動写真作成方法。
An automatic photo creation method comprising: a photographing step for obtaining an image including a user who is a subject in a predetermined photographing region; and an output step for outputting a composite image including a photographed image obtained in the photographing step as a photograph,
The first object to be photographed in the photographing step, the first object in the background presentation means having a first surface to be imaged with a first color and a second surface to be imaged with a second color. The first area including the image of the imaging surface is subjected to image correction corresponding to the color of the area occupied by the image of the first imaging surface, or further including the image of the second imaging surface. By performing image correction according to the color of the area occupied by the image of the second imaging surface on the area of 2, the color of the area occupied by the image of the first imaging surface and the second A mask creation step for creating a predetermined chroma key mask corresponding to the color of the area occupied by the image of the imaged surface;
Using a chroma key mask created in the mask creating step, and performing a chroma key process for synthesizing a predetermined additional image with the captured image, thereby generating a synthesized key image. An automatic photo creation method.
請求項10に記載の自動写真作成方法をコンピュータに実行させることを特徴とするプログラム。   A program for causing a computer to execute the automatic photo creating method according to claim 10.
JP2006258365A 2006-09-25 2006-09-25 Automatic photograph creating apparatus, and automatic photograph creating method Pending JP2008079185A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006258365A JP2008079185A (en) 2006-09-25 2006-09-25 Automatic photograph creating apparatus, and automatic photograph creating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006258365A JP2008079185A (en) 2006-09-25 2006-09-25 Automatic photograph creating apparatus, and automatic photograph creating method

Publications (1)

Publication Number Publication Date
JP2008079185A true JP2008079185A (en) 2008-04-03

Family

ID=39350734

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006258365A Pending JP2008079185A (en) 2006-09-25 2006-09-25 Automatic photograph creating apparatus, and automatic photograph creating method

Country Status (1)

Country Link
JP (1) JP2008079185A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011175663A (en) * 2011-04-22 2011-09-08 Casio Computer Co Ltd Imaging device, image processing method, and program
US8441554B2 (en) 2009-03-06 2013-05-14 Casio Computer Co., Ltd. Image capturing apparatus capable of extracting subject region from captured image
JP2015057897A (en) * 2014-10-22 2015-03-26 株式会社メイクソフトウェア Photography game machine
JP2015211464A (en) * 2014-11-25 2015-11-24 フリュー株式会社 Photographic seal creation device and photographic seal creation method
JP2016038571A (en) * 2014-08-08 2016-03-22 フリュー株式会社 Photograph sticker creation device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3227537B2 (en) * 1988-06-28 2001-11-12 ヴラホス,ペトロ Backing color and luminance non-uniformity compensation for linear image synthesis
JP2006254214A (en) * 2005-03-11 2006-09-21 Make Softwear:Kk Automatic photographic equipment, photographing method, and image processing program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3227537B2 (en) * 1988-06-28 2001-11-12 ヴラホス,ペトロ Backing color and luminance non-uniformity compensation for linear image synthesis
JP2006254214A (en) * 2005-03-11 2006-09-21 Make Softwear:Kk Automatic photographic equipment, photographing method, and image processing program

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8441554B2 (en) 2009-03-06 2013-05-14 Casio Computer Co., Ltd. Image capturing apparatus capable of extracting subject region from captured image
JP2011175663A (en) * 2011-04-22 2011-09-08 Casio Computer Co Ltd Imaging device, image processing method, and program
JP2016038571A (en) * 2014-08-08 2016-03-22 フリュー株式会社 Photograph sticker creation device
JP2016039636A (en) * 2014-08-08 2016-03-22 フリュー株式会社 Photograph sticker creation device
JP2015057897A (en) * 2014-10-22 2015-03-26 株式会社メイクソフトウェア Photography game machine
JP2015211464A (en) * 2014-11-25 2015-11-24 フリュー株式会社 Photographic seal creation device and photographic seal creation method

Similar Documents

Publication Publication Date Title
JP5782873B2 (en) Game shooting device, game shooting method and program
JP2007240887A (en) Automatic photographing device and method thereof
JP2006339696A (en) Photo seal vending device and its image processing method
JP2008079185A (en) Automatic photograph creating apparatus, and automatic photograph creating method
JP6085838B2 (en) PHOTOGRAPHIC GAME DEVICE, IMAGE GENERATION METHOD, AND IMAGE GENERATION PROGRAM
JP2013243466A (en) Imaging apparatus for game, imaging method for game, and program
JP4907412B2 (en) Image creating apparatus, image creating method, and program thereof
JP5119642B2 (en) Automatic photo creation device and automatic photo creation method
JP6245529B2 (en) Game shooting device, game shooting method and program
JP4247574B2 (en) PHOTO PRINT DEVICE, PHOTO PRINT DEVICE CONTROL METHOD, PHOTO PRINT DEVICE CONTROL PROGRAM, RECORDING MEDIUM CONTAINING PHOTO PRINT DEVICE CONTROL PROGRAM
JP2018029343A (en) Image processing apparatus, image processing method, and program
JP6614386B2 (en) Image processing apparatus, image processing method, and program
JP5380770B2 (en) Automatic photo creation device and automatic photo creation method
JP5632104B2 (en) Game shooting device, processing method and program for game shooting device
JP5704205B2 (en) Image processing apparatus, photography game apparatus using the same, image processing method, image processing program, and photo print sheet
JP2007241199A (en) Automatic photographing device and method thereof
JP6156559B2 (en) Game shooting device, game shooting method, and program
JP5682596B2 (en) Game shooting device and game shooting method
JP5967275B2 (en) Photographic game machine, its control method and control computer
JP6090369B2 (en) Game shooting device, game shooting method and program
JP2008276438A (en) Automatic photograph creation device and automatic photograph creation method
JP6614374B2 (en) Photography game machine, control method and program
JP3393472B2 (en) Photography method and apparatus
JP2005218034A (en) Automatic photographing device and automatic photographing method
JP5660243B2 (en) Game shooting device, game shooting method and computer program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090826

A977 Report on retrieval

Effective date: 20111125

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111129

A02 Decision of refusal

Effective date: 20120508

Free format text: JAPANESE INTERMEDIATE CODE: A02