JP2010041300A - Photographic apparatus and photographic control method - Google Patents

Photographic apparatus and photographic control method Download PDF

Info

Publication number
JP2010041300A
JP2010041300A JP2008200730A JP2008200730A JP2010041300A JP 2010041300 A JP2010041300 A JP 2010041300A JP 2008200730 A JP2008200730 A JP 2008200730A JP 2008200730 A JP2008200730 A JP 2008200730A JP 2010041300 A JP2010041300 A JP 2010041300A
Authority
JP
Japan
Prior art keywords
area
document
image
photographing
focus
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
JP2008200730A
Other languages
Japanese (ja)
Inventor
Tatsuhiko Hagiwara
龍彦 萩原
Michio Cho
倫生 長
Takashi Aoki
貴嗣 青木
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.)
Fujifilm Corp
Original Assignee
Fujifilm Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2008200730A priority Critical patent/JP2010041300A/en
Publication of JP2010041300A publication Critical patent/JP2010041300A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a photographic apparatus and an photographic control method, which can appropriately make focusing on an original document, even when photographing the original document, from a direction other than the frontal direction, and prevent image deterioration produced when distortions of an original document image obtained by photographic the original document are corrected. <P>SOLUTION: The photographic apparatus 10 extracts an original document area A100, where an original document 100 is imaged from an image P100, obtained by photographing the original document 100 that is rectangular. The photographic apparatus 10 performs AF and AE so as to appropriately set focusing on the document area A100, and subsequently photographs the original document 100; then the photographic apparatus 10 extracts the original document area A100 from the image captured after AF, and corrects the distortions of the original document area A100 and reproduce a shape of the original document 100, as well as, corrects an orientation of the original document area A100, to produce an original document image to be outputted. A projector 200 receives an original document image 100' from the photographic apparatus 10 and projects it onto a screen 300. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は撮影装置及び撮影制御方法に係り、特に原稿の画像を撮影して出力用の原稿画像を作成する撮影装置、撮影システム及び撮影制御方法に関する。   The present invention relates to an image capturing apparatus and an image capturing control method, and more particularly to an image capturing apparatus, an image capturing system, and an image capturing control method for capturing an image of a document and creating an output document image.

特許文献1には、葉書の表裏面を撮影して葉書の画像の輪郭を取得し、撮影画像から葉書の表面画像と裏面画像を切り抜き、切り抜いた葉書の画像を射影変換して画像の歪みを補正する画像処理装置が開示されている。   In Patent Document 1, the front and back surfaces of a postcard are photographed to obtain the outline of the postcard image, the front image and the back image of the postcard are cut out from the photographed image, and the image of the cut out postcard is subjected to projective transformation to correct image distortion. An image processing apparatus for correction is disclosed.

特許文献2には、回転ミラーの回転位置を原稿の読み取り位置に応じて制御しながら、回転ミラーからの光を1次元固体撮影素子に結像させて原稿を撮影する画像読み取り装置が開示されている。
特開2007−180872号公報 特開2007−82005号公報
Patent Document 2 discloses an image reading apparatus that images a document by forming an image of light from the rotating mirror on a one-dimensional solid-state imaging element while controlling the rotational position of the rotating mirror according to the reading position of the document. Yes.
JP 2007-180872 A Japanese Patent Laid-Open No. 2007-82005

特許文献1では、葉書を斜めから撮影した場合に、葉書全体にピントを合わせるのが難しい。また、斜めから撮影されて歪んだ画像を射影変換すると、ピントが合っていない部分(例えば、中抜けした部分)の画質が劣化する。   In Patent Document 1, it is difficult to focus on the entire postcard when the postcard is photographed from an oblique direction. In addition, when projective conversion is performed on an image captured obliquely and distorted, the image quality of an out-of-focus portion (for example, a hollow portion) deteriorates.

特許文献2では、1次元固体撮影素子を用いるため原稿の画像を読み取りに時間がかかる。また、特許文献2は、専用の画像読み取り装置に関するものであり、装置が大がかりになりコストがかかる。   In Patent Document 2, since a one-dimensional solid-state imaging element is used, it takes time to read a document image. Patent Document 2 relates to a dedicated image reading apparatus, and the apparatus becomes large and expensive.

本発明はこのような事情に鑑みてなされたもので、原稿を正面以外の方向から撮影した場合であっても、原稿に対するピント合わせを適切に行うことができ、原稿を撮影して得られた原稿画像の歪を補正したときに生じる画像の劣化を防止することが可能な撮影装置及び撮影制御方法を提供することを目的とする。   The present invention has been made in view of such circumstances, and even when a document is photographed from a direction other than the front, the document can be properly focused and obtained by photographing the document. It is an object of the present invention to provide a photographing apparatus and a photographing control method capable of preventing image deterioration that occurs when a distortion of a document image is corrected.

本発明の第1の態様に係る撮影装置は、略長方形の原稿の画像を撮影する撮影手段と、前記原稿の画像から前記原稿が写っている原稿エリアを認識する原稿認識手段と、前記原稿エリアの中心位置を算出する中心位置算出手段と、前記撮影手段を制御して、前記中心位置にピントを合わせる合焦制御手段と、前記合焦制御手段によってピントを合わせた後に前記撮影手段によって撮影された画像から、前記原稿認識手段によって認識された前記原稿エリアの歪を補正した画像を作成する原稿画像補正手段とを備える。   The photographing apparatus according to the first aspect of the present invention includes photographing means for photographing an image of a substantially rectangular document, document recognition means for recognizing a document area in which the document is shown from the document image, and the document area. A center position calculating means for calculating the center position of the camera, a focus control means for controlling the photographing means to focus on the center position, and a photographed by the photographing means after focusing by the focus control means. Document image correcting means for creating an image obtained by correcting distortion of the document area recognized by the document recognition means.

上記第1の態様によれば、長方形の原稿の中心位置にピントを合わせるようにしたので、原稿を正面以外の方向から撮影した場合にも、ピント合わせを適切に行うことができる。これにより、原稿が写っている原稿エリアの歪を補正したときに生じる画像の劣化を防止することができる。   According to the first aspect, since the focus is set at the center position of the rectangular document, the focus can be appropriately adjusted even when the document is photographed from a direction other than the front. As a result, it is possible to prevent image deterioration that occurs when distortion in the document area in which the document is captured is corrected.

本発明の第2の態様に係る撮影装置は、上記第1の態様において、前記中心位置算出手段が、前記原稿エリアの4つの頂点の位置を検出し、前記4つの頂点を結んで得られる前記原稿エリアの対角線の交点を前記中心位置として算出するように構成したものである。   The photographing apparatus according to a second aspect of the present invention is the photographing apparatus according to the first aspect, wherein the center position calculation unit detects the positions of the four vertices of the document area and connects the four vertices. The intersection of the diagonal lines of the document area is calculated as the center position.

本発明の第3の態様に係る撮影装置は、上記第1又は2の態様において、前記合焦制御手段が、前記原稿エリアを分割して得られた複数のエリアのうち前記中心位置を含む中心エリアにピントを合わせるように構成したものである。   The photographing apparatus according to a third aspect of the present invention is the photographing apparatus according to the first or second aspect, wherein the focus control means includes a center including the center position among a plurality of areas obtained by dividing the document area. It is configured to focus on the area.

本発明の第4の態様に係る撮影装置は、上記第1から3の態様において、前記中心エリアにピントを合わせたときの焦点評価値を取得し、該焦点評価値に基づいてピント合わせの精度を評価する合焦精度評価手段を更に備え、前記合焦制御手段が、前記中心エリアのピント合わせの精度が低いと評価した場合に、前記中心エリアの近傍のエリアのうち、前記ピント合わせの精度が高いと評価されたエリアにピントを合わせるように構成したものである。   According to a fourth aspect of the present invention, in the first to third aspects, a photographing apparatus according to the fourth aspect of the present invention acquires a focus evaluation value when focusing on the central area, and the focusing accuracy is based on the focus evaluation value. A focus accuracy evaluation means for evaluating the focus area, and when the focus control means evaluates that the focus accuracy of the center area is low, the focus accuracy of the area in the vicinity of the center area. It is configured to focus on the area evaluated as high.

本発明の第5の態様に係る撮影装置は、上記第4の態様において、前記合焦精度評価手段が、前記中心エリアのピント合わせの精度が低いと評価した場合に、前記中心エリアに対して前記原稿の画像の水平方向に隣接する隣接エリアのピント合わせの精度を評価し、前記合焦制御手段は、前記隣接エリアのピント合わせの精度が高いと評価した場合に、前記隣接エリアに対してピントを合わせるように構成したものである。   An imaging device according to a fifth aspect of the present invention is the imaging apparatus according to the fourth aspect, in which the focusing accuracy evaluation unit evaluates the center area when the focusing accuracy of the center area is low. The focusing accuracy of the adjacent area adjacent in the horizontal direction of the image of the document is evaluated, and the focusing control unit determines that the accuracy of focusing of the adjacent area is high. It is configured to focus.

本発明の第6の態様に係る撮影装置は、上記第5の態様において、前記合焦精度評価手段が、前記中心エリア及び前記隣接エリアのいずれもピント合わせの精度が低いと評価した場合に、前記中心エリアよりも前記撮影装置に近い手前側エリアのピント合わせの精度を評価し、前記合焦制御手段は、前記手前側エリアのピント合わせの精度が高いと評価した場合に、前記手前側エリアに対してピントを合わせるように構成したものである。   The imaging device according to a sixth aspect of the present invention is the imaging device according to the fifth aspect, wherein the focusing accuracy evaluation unit evaluates that the accuracy of focusing is low in both the central area and the adjacent area. The near side area closer to the photographing apparatus than the central area is evaluated, and the focus control unit evaluates that the near side area is high in focus accuracy. Is configured to focus on.

本発明の第7の態様に係る撮影装置は、略長方形の原稿の画像を撮影する撮影手段と、前記撮影した画像から前記原稿が写っている原稿エリアを認識する原稿認識手段と、前記原稿エリアの4つの頂点の位置を検出する頂点検出手段と、前記撮影手段を制御して、前記原稿エリアの4つの頂点を含む頂点エリアにピントを合わせた場合のピント位置を検出し、前記頂点エリアのピント位置の平均フォーカス位置にフォーカスを移動する合焦制御手段と、前記合焦制御手段によってピントを合わせた後に前記撮影手段によって撮影された画像から、前記原稿認識手段によって認識された前記原稿エリアの歪を補正した画像を作成する原稿画像補正手段とを備える。   According to a seventh aspect of the present invention, there is provided a photographing device for photographing a substantially rectangular document image, a document recognizing unit for recognizing a document area in which the document is reflected from the photographed image, and the document area. The vertex detection means for detecting the positions of the four vertices of the document and the photographing means are controlled to detect the focus position when the vertex area including the four vertices of the document area is focused. Focus control means for moving the focus to the average focus position of the focus position, and an image of the original area recognized by the original recognition means from an image photographed by the photographing means after focusing by the focus control means Original image correcting means for creating an image with corrected distortion.

上記第7の態様によれば、原稿エリアの4頂点を含む分割エリアのピント位置の平均フォーカス位置にフォーカス位置を移動することにより、各頂点と撮影装置との間の距離が異なる状態で原稿を撮影した場合にも、ピント合わせを適切に行うことができる。   According to the seventh aspect, by moving the focus position to the average focus position of the focus position of the divided area including the four vertices of the document area, the document can be displayed in a state where the distance between each vertex and the photographing device is different. Even when shooting, it is possible to properly focus.

本発明の第8の態様に係る撮影装置は、上記第7の態様において、前記平均フォーカス位置にピントを合わせた後、前記頂点エリアが被写界深度内に収まるように絞り値を調整する絞り値調整手段を更に備える。   An imaging device according to an eighth aspect of the present invention is the imaging device according to the seventh aspect, wherein the aperture value is adjusted so that the vertex area is within the depth of field after focusing on the average focus position. Value adjustment means is further provided.

上記第8の態様によれば、絞り値を調整することにより、4頂点を含む分割エリアに対してピント合わせを適切に行うことができる。   According to the eighth aspect, by adjusting the aperture value, it is possible to appropriately focus on the divided area including the four vertices.

本発明の第9の態様に係る撮影装置は、略長方形の原稿の画像を撮影する撮影手段と、前記撮影した画像から前記原稿が写っている原稿エリアを認識する第1の原稿認識手段と、前記撮影手段を制御して、前記原稿エリアを分割した複数のエリアにズームして各エリアの画像を撮影する撮影制御手段と、前記撮影手段によって撮影された各エリアの画像から前記原稿が写っている原稿エリアを認識する第2の原稿認識手段と、前記各エリアの画像から検出された前記原稿エリアの歪を補正した画像を作成する原稿画像補正手段と、前記第2の原稿認識手段によって検出され、歪が補正された各エリアの画像を合成して前記原稿の全体の画像を作成する画像合成手段とを備える。   An image capturing apparatus according to a ninth aspect of the present invention includes an image capturing unit that captures an image of a substantially rectangular document, a first document recognition unit that recognizes a document area in which the document is captured from the captured image, A photographing control means for controlling the photographing means to zoom into a plurality of areas obtained by dividing the original area and photographing an image of each area, and the original from the image of each area photographed by the photographing means. Detected by a second document recognizing unit for recognizing an existing document area, a document image correcting unit for creating an image in which distortion of the document area detected from the image of each area is corrected, and the second document recognizing unit And image combining means for combining the images of the respective areas whose distortion has been corrected to create an image of the entire original.

上記第9の態様によれば、原稿エリアを分割して撮影することにより、原稿に対する合焦精度を高めることができる。   According to the ninth aspect, it is possible to improve the focusing accuracy for a document by dividing and photographing the document area.

本発明の第10の態様に係る撮影装置は、上記第9の態様において、前記第1の原稿認識手段によって検出された前記原稿エリアの4つの頂点の位置を検出する頂点検出手段と、前記第1の原稿認識手段によって検出された前記原稿エリアの中心位置を算出する中心位置算出手段とを備え、前記撮影制御手段が、前記4つの頂点のうち前記撮影装置に近い手前側の2つの頂点の前記原稿の画像の水平方向の間隔が前記撮影手段の視野の水平方向の幅と略一致するようにズーム制御を行って、前記原稿エリアの前記撮影装置に近い手前側エリアを撮影し、前記中心位置を通り、前記水平方向に伸びる前記原稿エリア内の線分の長さが前記撮影手段の視野の水平方向の幅と略一致するようにズーム制御を行って、前記原稿エリアのうち前記撮影装置から遠い奥側エリアを撮影するように構成したものである。   The photographing apparatus according to a tenth aspect of the present invention is the photographing apparatus according to the ninth aspect, wherein the vertex detecting means for detecting the positions of the four vertices of the document area detected by the first document recognition means, Center position calculating means for calculating the center position of the document area detected by one document recognizing means, and the shooting control means sets the two vertices on the near side close to the shooting apparatus among the four vertices. Zooming is performed so that the horizontal interval between the images of the original is substantially coincident with the horizontal width of the field of view of the photographing means, and the near side area of the original area close to the photographing device is photographed, and the center Zoom control is performed so that the length of a line segment in the document area that passes through the position and extends in the horizontal direction substantially coincides with the horizontal width of the field of view of the photographing means, and the photographing device in the document area is controlled. From those configured to photograph the farther rear side area.

本発明の第11の態様に係る撮影装置は、上記第10の態様において、前記原稿エリアを複数のエリアに分割し、前記撮影手段を制御してピント合わせを行う合焦制御手段であって、前記手前側エリアの撮影時に、前記手前側の2つの頂点を含む手前側頂点エリアにピントを合わせた場合のピント位置を検出し、前記手前側頂点エリアのピント位置の平均フォーカス位置にフォーカスを移動する一方、前記奥側エリアの撮影時に、前記撮影装置から遠い側の2つの頂点を含む奥側頂点エリアにピントを合わせた場合のピント位置を検出し、前記奥側頂点エリアのピント位置の平均フォーカス位置にフォーカスを移動する合焦制御手段を更に備える。   The photographing apparatus according to an eleventh aspect of the present invention is the focusing control means according to the tenth aspect, wherein the document area is divided into a plurality of areas and the photographing means is controlled to perform focusing. When photographing the near side area, the focus position when the near side vertex area including the two near top vertices is focused is detected, and the focus is moved to the average focus position of the focus position of the near side vertex area. On the other hand, when shooting the back side area, the focus position when the focus is adjusted to the back side vertex area including the two vertices far from the imaging device is detected, and the average focus position of the back side vertex area is detected. Focus control means for moving the focus to the focus position is further provided.

本発明の第12の態様に係る撮影装置は、上記第1から11の態様において、前記撮影手段によって撮影された画像を2値化する画像処理手段を更に備え、前記原稿認識手段が、前記2値化された画像から前記原稿エリアを検出するように構成したものである。   A photographing apparatus according to a twelfth aspect of the present invention is the photographing apparatus according to any one of the first to eleventh aspects, further comprising an image processing means for binarizing an image photographed by the photographing means, wherein the document recognition means comprises the 2 The document area is detected from the digitized image.

本発明の第13の態様に係る撮影装置は、上記第1から11の態様において、前記原稿の少なくとも4隅にプリントされたマーカを検出するマーカ検出手段を更に備え、前記原稿認識手段が、前記マーカを検出して前記原稿エリアを認識するように構成したものである。   A photographing apparatus according to a thirteenth aspect of the present invention is the photographing apparatus according to any one of the first to eleventh aspects, further comprising marker detection means for detecting markers printed at at least four corners of the original, wherein the original recognition means A marker is detected to recognize the document area.

本発明の第14の態様に係る撮影装置は、上記第1から13の態様において、前記原稿上に形成されたマーカを検出するマーカ検出手段を更に備え、前記原稿画像補正手段が、前記マーカを検出し、前記マーカの形状に基づいて前記原稿の向きを検出するように構成したものである。   The photographing apparatus according to a fourteenth aspect of the present invention is the photographing apparatus according to any one of the first to thirteenth aspects, further comprising marker detecting means for detecting a marker formed on the original, wherein the original image correcting means includes the marker. And detecting the orientation of the document based on the shape of the marker.

本発明の第15の態様に係る撮影装置は、上記第1から14の態様において、前記原稿エリア内の画像に基づいて露出制御を行う露出制御手段を更に備える。   According to a fifteenth aspect of the present invention, in the first to fourteenth aspects, the photographing apparatus further includes exposure control means for performing exposure control based on the image in the document area.

上記第15の態様によれば、原稿エリアに対するピント合わせ及びAE制御を適切に行うことができる。   According to the fifteenth aspect, it is possible to appropriately perform focusing and AE control with respect to the document area.

本発明の第16の態様に係る撮影装置は、上記第15の態様において、前記露出制御手段が、前記原稿エリア内の画像に対して、平均測光、ピーク測光又はマルチパターン測光を行って、前記測光結果に基づいて露光制御を行うように構成したものである。   According to a sixteenth aspect of the present invention, in the fifteenth aspect, the exposure control unit performs average photometry, peak photometry, or multi-pattern photometry on the image in the document area. The exposure control is performed based on the photometric result.

本発明の第17の態様に係る撮影制御方法は、(1a)撮影手段により略長方形の原稿の画像を撮影し、(1b)前記原稿の画像から前記原稿が写っている原稿エリアを認識し、(1c)前記原稿エリアの中心位置を算出し、(1d)前記撮影手段を制御して、前記中心位置にピントを合わせ、(1e)前記中心位置にピントを合わせた後に前記撮影手段によって前記原稿を撮影し、(1f)前記(1e)において撮影された画像から前記原稿エリアを認識し、(1g)前記(1f)において認識された前記原稿エリアの歪を補正した画像を作成するように構成したものである。   According to a seventeenth aspect of the present invention, there is provided a photographing control method comprising: (1a) photographing a substantially rectangular document image by photographing means; (1b) recognizing a document area in which the document is photographed from the document image; (1c) calculating the center position of the document area; (1d) controlling the photographing means to focus on the center position; and (1e) focusing on the center position and then the document by the photographing means. (1f) The document area is recognized from the image photographed in (1e), and (1g) an image in which the distortion of the document area recognized in (1f) is corrected is created. It is a thing.

本発明の第18の態様に係る撮影制御方法は、前記(1d)において、前記中心エリアにピントを合わせたときの焦点評価値を取得し、該焦点評価値に基づいてピント合わせの精度を評価し、前記中心エリアのピント合わせの精度が低いと評価した場合に、前記中心エリアの近傍のエリアのうち、前記ピント合わせの精度が高いと評価されたエリアにピントを合わせるように構成したものである。   In the photographing control method according to the eighteenth aspect of the present invention, in (1d), a focus evaluation value when the center area is focused is acquired, and the accuracy of focusing is evaluated based on the focus evaluation value. And, when it is evaluated that the focus accuracy of the center area is low, it is configured to focus on the area evaluated as having high focus accuracy among the areas near the center area. is there.

本発明の第19の態様に係る撮影制御方法は、(2a)撮影手段により略長方形の原稿の画像を撮影し、(2b)前記撮影した画像から前記原稿が写っている原稿エリアを認識し、(2c)前記原稿エリアの4つの頂点の位置を検出し、(2d)前記撮影手段を制御して、前記原稿エリアの4つの頂点を含む頂点エリアにピントを合わせた場合のピント位置を検出し、前記頂点エリアのピント位置の平均フォーカス位置にフォーカスを移動させ、(2e)前記(2d)においてピントを合わせた後に前記撮影手段によって前記原稿を撮影し、(2f)前記(2e)において撮影された画像から前記原稿エリアを認識し、(2g)前記(2f)において認識された前記原稿エリアの歪を補正した画像を作成するように構成したものである。   In a photographing control method according to a nineteenth aspect of the present invention, (2a) an image of a substantially rectangular document is photographed by photographing means, (2b) a document area where the document is photographed is recognized from the photographed image, (2c) detecting the positions of the four vertices of the document area; and (2d) controlling the photographing means to detect the focus position when focusing on the vertex area including the four vertices of the document area. Then, the focus is moved to the average focus position of the focus position of the vertex area, (2e) after focusing in (2d), the document is photographed by the photographing means, (2f) photographed in (2e) The document area is recognized from the captured image, and (2g) an image in which the distortion of the document area recognized in (2f) is corrected is created.

本発明の第20の態様に係る撮影制御方法は、上記第19の態様において、前記平均フォーカス位置にピントを合わせた後、前記頂点エリアが被写界深度内に収まるように絞り値を調整するように構成したものである。   The shooting control method according to a twentieth aspect of the present invention is the shooting control method according to the nineteenth aspect, wherein the aperture value is adjusted so that the vertex area is within the depth of field after focusing on the average focus position. It is comprised as follows.

本発明の第21の態様に係る撮影制御方法は、(3a)前記撮影手段により略長方形の原稿の画像を撮影し、(3b)前記撮影した画像から前記原稿が写っている原稿エリアを認識し、(3c)前記撮影手段を制御して、前記原稿エリアを分割した複数のエリアにズームして各エリアの画像を撮影し、(3d)前記(3c)において撮影された各エリアの画像から前記原稿が写っている原稿エリアを検出し、(3e)前記各エリアの画像から検出された前記原稿エリアの歪を補正した画像を作成し、(3f)前記(3e)において歪が補正された各エリアの画像を合成して前記原稿の全体の画像を作成するように構成したものである。   In the shooting control method according to the twenty-first aspect of the present invention, (3a) an image of a substantially rectangular document is shot by the shooting means, and (3b) a document area in which the document is shown is recognized from the shot image. , (3c) controlling the photographing means to zoom into a plurality of areas obtained by dividing the document area to photograph images of each area, and (3d) from the images of each area photographed in (3c) An original area in which the original is reflected is detected, (3e) an image in which the distortion of the original area detected from the image in each area is corrected is created, and (3f) each of the distortion corrected in (3e) The image of the area is synthesized to create the entire image of the original.

本発明の第22の態様に係る撮影制御方法は、前記(3c)において、前記原稿エリアの4つの頂点の位置を検出し、前記原稿エリアの中心位置を算出し、前記4つの頂点のうち前記撮影手段に近い手前側の2つの頂点の前記原稿の画像の水平方向の間隔が前記撮影手段の視野の水平方向の幅と略一致するようにズーム制御を行って、前記原稿エリアの前記撮影装置に近い手前側エリアを撮影し、前記中心位置を通り、前記水平方向に伸びる前記原稿エリア内の線分の長さが前記撮影手段の視野の水平方向の幅と略一致するようにズーム制御を行って、前記原稿エリアのうち前記撮影装置から遠い奥側エリアを撮影するように構成したものである。   In the shooting control method according to the twenty-second aspect of the present invention, in (3c), the positions of the four vertices of the document area are detected, the center position of the document area is calculated, and the four vertices out of the four vertices are calculated. Zooming control is performed so that the horizontal interval of the image of the document at the two apexes on the near side close to the imaging unit is substantially equal to the horizontal width of the field of view of the imaging unit, and the imaging device in the document area Zooming is performed so that the length of the line segment in the document area extending in the horizontal direction passing through the center position substantially matches the horizontal width of the field of view of the imaging means. Then, it is configured to photograph the back side area far from the photographing apparatus in the document area.

本発明の第23の態様に係る撮影制御方法は、上記第22の態様において、前記手前側エリアの撮影時に、前記手前側の2つの頂点を含む手前側頂点エリアにピントを合わせた場合のピント位置を検出し、前記手前側頂点エリアのピント位置の平均フォーカス位置にフォーカスを移動し、前記奥側エリアの撮影時に、前記撮影装置から遠い側の2つの頂点を含む奥側頂点エリアにピントを合わせた場合のピント位置を検出し、前記奥側頂点エリアのピント位置の平均フォーカス位置にフォーカスを移動するように構成したものである。   The shooting control method according to a twenty-third aspect of the present invention is the shooting control method according to the twenty-second aspect, in which the focus is adjusted when the near-side vertex area including the two near-side vertices is focused during shooting of the near-side area. The position is detected, the focus is moved to the average focus position of the focus position of the front side vertex area, and when the back side area is shot, the focus is set on the back side vertex area including the two vertices far from the imaging device. The focus position in the case of being matched is detected, and the focus is moved to the average focus position of the focus position of the back vertex area.

本発明の第24の態様に係る撮影制御方法は、上記第17から24の態様において、前記原稿エリア内の画像に基づいて露出制御を行うように構成したものである。   According to a twenty-fourth aspect of the present invention, in the seventeenth to twenty-fourth aspects, exposure control is performed based on an image in the document area.

本発明によれば、原稿を正面以外の方向から撮影した場合にも、ピント合わせを適切に行うことができる。これにより、原稿が写っている原稿エリアの歪を補正したときに生じる画像の劣化を防止することができる。   According to the present invention, it is possible to properly focus even when a document is photographed from a direction other than the front. As a result, it is possible to prevent image deterioration that occurs when distortion in the document area in which the document is captured is corrected.

以下、添付図面に従って本発明に係る撮影装置及び撮影制御方法の好ましい実施の形態について説明する。   Hereinafter, preferred embodiments of a photographing apparatus and a photographing control method according to the present invention will be described with reference to the accompanying drawings.

[第1の実施形態]
図1は、本発明の第1の実施形態に係る撮影装置の動作を示す図である。また、図2は、撮影装置10によって撮影された原稿の画像を示す図である。
[First Embodiment]
FIG. 1 is a diagram illustrating the operation of the photographing apparatus according to the first embodiment of the present invention. FIG. 2 is a diagram illustrating an image of a document photographed by the photographing apparatus 10.

図1に示すように、本実施形態に係る撮影装置10は、長方形の原稿100を撮影して得られた画像P100から原稿100が写っている原稿エリアA100を抽出する。撮影装置10は、原稿エリアA100の中心位置に合焦するように自動焦点調節(AF)を行った後、原稿100を撮影する。そして、撮影装置10は、AF後に撮影した画像から原稿エリアA100を抽出し、原稿エリアA100の歪みを補正して原稿100の形状を再現するとともに、原稿エリアA100の向きを補正し、出力用の原稿画像を作成する。   As shown in FIG. 1, the photographing apparatus 10 according to the present embodiment extracts a document area A100 in which a document 100 is captured from an image P100 obtained by photographing a rectangular document 100. The photographing apparatus 10 photographs the document 100 after performing automatic focus adjustment (AF) so as to focus on the center position of the document area A100. The photographing apparatus 10 extracts the document area A100 from the image photographed after AF, corrects the distortion of the document area A100 to reproduce the shape of the document 100, corrects the orientation of the document area A100, and outputs it. Create an original image.

プロジェクター200は、撮影装置10から原稿画像100′を受信してスクリーン300に投影する。   The projector 200 receives the document image 100 ′ from the photographing apparatus 10 and projects it on the screen 300.

図3は、本発明の第1の実施形態に係る撮影装置を示すブロック図である。   FIG. 3 is a block diagram showing the photographing apparatus according to the first embodiment of the present invention.

本実施形態に係る撮影装置10は、画像を撮影して電子データとして記録する電子カメラである。   The photographing apparatus 10 according to the present embodiment is an electronic camera that takes an image and records it as electronic data.

中央処理装置(CPU)12は、所定のプログラムに従って撮影装置10全体の動作を制御し、自動焦点調節(AF)演算、自動露出(AE)演算及びホワイトバランス(WB)調整演算を含む各種演算を実施する。   A central processing unit (CPU) 12 controls the overall operation of the photographing apparatus 10 according to a predetermined program, and performs various calculations including an automatic focus adjustment (AF) calculation, an automatic exposure (AE) calculation, and a white balance (WB) adjustment calculation. carry out.

電源部14は、バッテリ及び電源制御回路を含んでおり、撮影装置10内の各部に電力を供給する。   The power supply unit 14 includes a battery and a power supply control circuit, and supplies power to each unit in the photographing apparatus 10.

操作部16は、ユーザからの操作入力を受け付ける操作部材であり、電源スイッチ及びシャッタースイッチを含んでいる。電源スイッチは、撮影装置10の電源のオン・オフを切り替えるための操作部材である。シャッタースイッチは、撮影開始の指示を入力する操作部材である。   The operation unit 16 is an operation member that receives an operation input from a user, and includes a power switch and a shutter switch. The power switch is an operation member for switching on / off the power of the photographing apparatus 10. The shutter switch is an operation member that inputs an instruction to start shooting.

操作部16からの信号はCPU12に入力される。CPU12は、操作部16からの入力信号に基づいて撮影装置10の各回路を制御し、例えば、レンズ駆動制御、撮影動作制御、画像処理制御、画像データの記録/再生制御を行う。   A signal from the operation unit 16 is input to the CPU 12. The CPU 12 controls each circuit of the photographing apparatus 10 based on an input signal from the operation unit 16 and performs, for example, lens driving control, photographing operation control, image processing control, and image data recording / reproduction control.

モード設定部18は、撮影装置10の動作モードの切り替え操作を受け付ける操作部材である。撮影装置10の動作モードは、モード設定部18からの操作入力に応じて、通常の撮影モード(静止画撮影モード及び動画撮影モード)、原稿撮影モード及び画像を再生する再生モードとの間で切り替わる。   The mode setting unit 18 is an operation member that receives an operation for switching the operation mode of the photographing apparatus 10. The operation mode of the photographing apparatus 10 is switched between a normal photographing mode (a still image photographing mode and a moving image photographing mode), a document photographing mode, and a reproduction mode for reproducing an image in response to an operation input from the mode setting unit 18. .

撮影部20は、フォーカスレンズ、ズームレンズ及び絞りを含むレンズ部22、レンズ部を駆動制御するレンズ制御部24及び撮像素子(CCD又はCMOS)を含んでいる。   The photographing unit 20 includes a lens unit 22 including a focus lens, a zoom lens, and a diaphragm, a lens control unit 24 that drives and controls the lens unit, and an imaging device (CCD or CMOS).

AF部26は、撮像素子から得られたG信号の高周波成分のみを通過させるハイパスフィルタ、ハイパスフィルタからの出力信号の絶対値をとる絶対値化処理部、画面内にあらかじめ設定されているフォーカス対象エリア(以下、AFエリアという)内の信号を切り出すAFエリア抽出部、及びAFエリア内の絶対値を積算して積算値(焦点評価値(AF評価値))を得る積算部を含んでいる。CPU12は、フォーカスレンズを移動させて複数のフォーカス位置におけるAF評価値を取得し、AF評価値が極大となるレンズ位置をピント位置として決定し、上記ピント位置にフォーカスレンズを移動させる。なお、AF評価値は、輝度信号(Y信号)から求めるようにしてもよい。   The AF unit 26 is a high-pass filter that passes only the high-frequency component of the G signal obtained from the image sensor, an absolute value processing unit that takes the absolute value of the output signal from the high-pass filter, and a focus target that is preset in the screen An AF area extracting unit that extracts a signal in an area (hereinafter referred to as an AF area) and an integrating unit that integrates absolute values in the AF area to obtain an integrated value (focus evaluation value (AF evaluation value)) are included. The CPU 12 moves the focus lens to acquire AF evaluation values at a plurality of focus positions, determines a lens position where the AF evaluation value is maximized as a focus position, and moves the focus lens to the focus position. Note that the AF evaluation value may be obtained from a luminance signal (Y signal).

AE部28は、撮像素子から出力された画像1画面を複数の分割エリア(例えば、8×8又は16×16)に分割し、分割エリアごとにR、G、B信号を積算する。CPU12は、AE部28から取得した積算値に基づいて被写体の明るさ(被写体輝度)を検出し、撮影に適した露出値(撮影EV値)を算出する。CPU12は、求めた露出値と所定のプログラム線図に従って、絞り値とシャッタースピードを決定し、撮像素子の電子シャッター機能及び絞りを制御して露光量を調節する。   The AE unit 28 divides one image screen output from the image sensor into a plurality of divided areas (for example, 8 × 8 or 16 × 16), and accumulates R, G, and B signals for each divided area. The CPU 12 detects the brightness of the subject (subject brightness) based on the integrated value acquired from the AE unit 28, and calculates an exposure value (shooting EV value) suitable for shooting. The CPU 12 determines the aperture value and shutter speed according to the obtained exposure value and a predetermined program diagram, and controls the electronic shutter function and aperture of the image sensor to adjust the exposure amount.

メモリー部30は、記録メディア(例えば、xDピクチャカード(登録商標)又はSDカード(登録商標))及び記録メディアを着脱自在に装着するソケットを含んでおり、撮影部20によって撮影された画像を所定の形式の画像ファイルとして記録メディアに記録する。   The memory unit 30 includes a recording medium (for example, xD picture card (registered trademark) or SD card (registered trademark)) and a socket in which the recording medium is detachably mounted. Is recorded on the recording medium as an image file of the format.

通常の撮影モード時には、CPU12は、シャッタースイッチの半押しを検出すると、AF部26及びAE部28からそれぞれAF評価値及び積算値を取得して、AF制御及びAE制御を行う。CPU12は、シャッタースイッチの全押しを検出すると、画像の取り込みを行う。そして、CPU12は、取り込んだ画像を所定の形式の画像データファイルに変換してメモリー部30に出力する。   In the normal shooting mode, when the CPU 12 detects half-press of the shutter switch, the CPU 12 acquires the AF evaluation value and the integrated value from the AF unit 26 and the AE unit 28, respectively, and performs AF control and AE control. When the CPU 12 detects that the shutter switch is fully pressed, it captures an image. Then, the CPU 12 converts the captured image into an image data file of a predetermined format and outputs it to the memory unit 30.

[原稿撮影モード]
次に、原稿撮影モード時における撮影装置10の動作について説明する。
[Original mode]
Next, the operation of the photographing apparatus 10 in the document photographing mode will be described.

原稿撮影モード時には、図1に示すように、撮影中に撮影装置10と原稿100の相対位置が変化しないように机400に置いて撮影を行う。   In the document shooting mode, as shown in FIG. 1, shooting is performed by placing on the desk 400 so that the relative position of the shooting device 10 and the document 100 does not change during shooting.

CPU12は、原稿撮影モード時にシャッタースイッチの全押しを検出すると、撮影部20を制御して原稿100の撮影を実行する。なお、原稿撮影モード時には、原稿100の撮影は、シャッタースイッチの押下のタイミングで実行されるほか、所定の時間間隔で自動的に実行される。   When the CPU 12 detects that the shutter switch is fully pressed in the document photographing mode, the CPU 12 controls the photographing unit 20 to photograph the document 100. In the document shooting mode, shooting of the document 100 is automatically performed at predetermined time intervals in addition to being performed at the timing of pressing the shutter switch.

CPU12は、撮影部20の撮像素子から出力された画素ごとの画像信号を2値化して2値エッジ画像を生成する。   The CPU 12 binarizes the image signal for each pixel output from the image sensor of the imaging unit 20 to generate a binary edge image.

原稿認識部32は、2値エッジ画像から原稿100の輪郭B100を検出し、輪郭B100に囲まれる原稿エリアA100を抽出する。   The document recognition unit 32 detects a contour B100 of the document 100 from the binary edge image, and extracts a document area A100 surrounded by the contour B100.

原稿4隅認識部34は、輪郭B100から原稿100の4隅の頂点D,D,D,Dを検出し、4頂点D,D,D,Dの位置を示す座標を取得する。 The document four-corner recognition unit 34 detects vertices D 1 , D 2 , D 3 , and D 4 at the four corners of the document 100 from the contour B 100 and indicates the positions of the four vertices D 1 , D 2 , D 3 , and D 4. Get the coordinates.

原稿中心算出部36は、原稿100の対向する頂点を結ぶ対角線D及び,Dの交点Dの座標を原稿エリアA100の中心位置として算出する。なお、対角線の交点Dに代えて、例えば、原稿エリアA100の重心、内接円又は外接円の中心を原稿エリアA100の中心位置としてもよい。 The document center calculation unit 36 calculates the coordinates of the intersection D C of the diagonal lines D 1 D 4 and D 2 D 3 connecting the opposite vertices of the document 100 as the center position of the document area A100. Instead of the intersection of diagonal lines D C, for example, the centroid of the original area A100, the center of the inscribed circle or the circumscribed circle may be used as the center position of the document area A100.

CPU12は、原稿エリアA100を所定の分割エリアに分割し、図4に示す交点Dを中心とするエリアAをAFエリアに設定する。そして、CPU12は、撮影部20及びAF部26を制御して複数のフォーカス位置においてAFエリアAのAF評価値を取得し、AFエリアAにピントが合うようにAF制御を行う。 CPU12 divides the document area A100 in a predetermined splitting area, sets the area A C around the intersection D C shown in FIG. 4 in the AF area. Then, CPU 12 controls the imaging unit 20 and the AF unit 26 obtains the AF evaluation value of the AF area A C at a plurality of focus positions, performs the AF control so focus is the AF area A C.

CPU12は、AF制御の終了後、原稿100を再度撮影する。原稿認識部32は、再撮影された原稿の画像から輪郭B100を検出し、輪郭B100により囲まれる原稿エリアA100を切り取る。   The CPU 12 captures the original 100 again after the AF control is completed. The document recognition unit 32 detects a contour B100 from the recaptured document image, and cuts out a document area A100 surrounded by the contour B100.

歪処理部38は、再撮影された画像から切り取られた原稿エリアA100に投影変換(射影変換(例えば、アフィン変換))を施して原稿エリアA100の歪を補正し、長方形の原稿画像を作成する。   The distortion processing unit 38 performs projection conversion (projection conversion (for example, affine conversion)) on the document area A100 cut out from the re-captured image to correct the distortion of the document area A100, thereby creating a rectangular document image. .

CPU12は、歪処理部38によって歪補正された原稿エリアA100の上下の向きを検出して補正し、出力用原稿画像100′を作成する。出力用原稿画像100′は、外部出力部40を介してプロジェクター200に出力され、図1に示すように、スクリーン300に投影される。   The CPU 12 detects and corrects the vertical direction of the document area A100 whose distortion has been corrected by the distortion processing unit 38, and creates an output document image 100 '. The output document image 100 ′ is output to the projector 200 via the external output unit 40 and projected onto the screen 300 as shown in FIG.

本実施形態では、上下検出用のマーカUPが原稿100上に印刷されている。CPU12は、画像中の原稿エリアからこのマーカを検出することにより、原稿エリアA100の上下の向きを検出する。なお、原稿100上又は原稿100近傍にマーカUPが形成された部材を置くようにしてもよい。また、原稿エリアA100の上下の向きは、例えば、原稿100上にプリントされた文字又は画像を認識して検出するようにしてもよい。   In the present embodiment, an up / down detection marker UP is printed on the document 100. The CPU 12 detects the vertical direction of the document area A100 by detecting this marker from the document area in the image. Note that a member on which the marker UP is formed may be placed on the document 100 or in the vicinity of the document 100. Further, the vertical direction of the document area A100 may be detected by recognizing characters or images printed on the document 100, for example.

次に、本発明の第1の実施形態に係る撮影制御方法について、図5のフローチャートを参照して説明する。   Next, the photographing control method according to the first embodiment of the present invention will be described with reference to the flowchart of FIG.

まず、動作モードが原稿撮影モードに切り替えられると(ステップS10のYes)、CPU12は、撮影部20を制御して所定の撮影タイミングで原稿100の画像を取り込む(ステップS14)。   First, when the operation mode is switched to the document photographing mode (Yes in step S10), the CPU 12 controls the photographing unit 20 to capture an image of the document 100 at a predetermined photographing timing (step S14).

CPU12は、撮影部20の撮像素子から出力された画素ごとの画像信号を2値化して2値エッジ画像を生成する(ステップS16)。原稿認識部32は、原稿エリアA100を抽出する(ステップS18)。   The CPU 12 binarizes the image signal for each pixel output from the image sensor of the imaging unit 20 to generate a binary edge image (step S16). The document recognition unit 32 extracts the document area A100 (step S18).

原稿4隅認識部34は、原稿100の4頂点D,D,D,Dを検出し、4頂点D,D,D,Dの座標を取得する(ステップS20)。 Document 4 corners recognition unit 34 detects the four vertexes D 1, D 2, D 3 , D 4 of the document 100, four vertices D 1, D 2, D 3 , and acquires the coordinates of D 4 (step S20) .

原稿中心算出部36は、原稿100の対向する頂点を結ぶ対角線DとDの交点Dの座標を算出する(ステップS22)。 Original center calculation section 36 calculates an intersection D C coordinates of the diagonal D 1 D 4 and D 2 D 3 which connects the vertex facing the document 100 (step S22).

CPU12は、交点Dを中心とするAFエリアAにピントが合うようにAF制御を行い(ステップS24、S26)、AF制御終了後に原稿の画像を再度取り込む(ステップS28)。 CPU12 is the intersection D C was subjected to the AF control so focus is the AF area A C centered (step S24, S26), captures the image of the document again after AF control ends (step S28).

次に、原稿認識部32は、再撮影された原稿の画像から原稿エリアA100を切り取る。歪処理部38は、原稿認識部32によって切り取られた原稿エリアA100に射影変換(例えば、アフィン変換)を施して原稿エリアA100の歪を補正し、長方形の原稿画像を作成する(ステップS30)。   Next, the document recognizing unit 32 cuts out the document area A100 from the recaptured document image. The distortion processing unit 38 performs projective transformation (for example, affine transformation) on the document area A100 cut out by the document recognition unit 32 to correct the distortion of the document area A100, and creates a rectangular document image (step S30).

CPU12は、歪処理部38によって歪補正された原稿エリアA100の上下の向きを検出して補正して出力用原稿画像100′を作成し、プロジェクター200に出力する(ステップS32)。これにより、出力用原稿画像100′が外部出力部40を介してプロジェクター200に出力され、スクリーン300に投影される。   The CPU 12 detects and corrects the vertical direction of the document area A100 whose distortion has been corrected by the distortion processing unit 38 to create an output document image 100 ′ and outputs it to the projector 200 (step S32). As a result, the output document image 100 ′ is output to the projector 200 via the external output unit 40 and projected onto the screen 300.

本実施形態によれば、長方形の原稿100の対角線の交点Dを中心とするAFエリアAにピントを合わせるようにしたので、原稿100を正面以外の方向から撮影した場合にも、ピント合わせを適切に行うことができる。これにより、原稿100が写っている原稿エリアA100の歪を補正したときに生じる画像の劣化を防止することができる。 According to the present embodiment. Thus focus on AF area A C around the intersection D C of the diagonal lines of the rectangle of the original 100, even when the captured document 100 from a direction other than the front, focusing Can be performed appropriately. Thereby, it is possible to prevent image degradation that occurs when the distortion of the document area A100 in which the document 100 is captured is corrected.

[第2の実施形態]
次に、本発明の第2の実施形態について説明する。本実施形態は、原稿エリアA100の対角線の交点A付近にある分割エリアのうちAF評価値が高い分割エリアピントを合わせるようにしたものである。なお、撮影装置10の構成については、上記第1の実施形態と同様である。
[Second Embodiment]
Next, a second embodiment of the present invention will be described. This embodiment is one in which the AF evaluation value among the divided areas in the diagonal of the vicinity of the intersection A C of the original area A100 is to match the higher division area focus. Note that the configuration of the photographing apparatus 10 is the same as that in the first embodiment.

図6は、本発明の第2の実施形態に係る撮影制御方法を示すフローチャートである。   FIG. 6 is a flowchart showing a shooting control method according to the second embodiment of the present invention.

まず、動作モードが原稿撮影モードに切り替えられると(ステップS40のYes)、CPU12は、撮影部20を制御して所定の撮影タイミングで原稿100の画像を取り込む(ステップS44)。   First, when the operation mode is switched to the document photographing mode (Yes in Step S40), the CPU 12 controls the photographing unit 20 to capture an image of the document 100 at a predetermined photographing timing (Step S44).

CPU12は、撮影部20の撮像素子から出力された画素ごとの画像信号を2値化して2値エッジ画像を生成する(ステップS46)。原稿認識部32は、原稿エリアA100を抽出する(ステップS48)。   The CPU 12 binarizes the image signal for each pixel output from the image sensor of the imaging unit 20 to generate a binary edge image (step S46). The document recognition unit 32 extracts the document area A100 (step S48).

原稿4隅認識部34は、原稿100の4頂点D,D,D,Dを検出し、4頂点D,D,D,Dの座標を取得する(ステップS50)。 Original four corners recognition unit 34 detects the four vertexes D 1, D 2, D 3 , D 4 of the document 100, four vertices D 1, D 2, D 3 , and acquires the coordinates of D 4 (step S50) .

原稿中心算出部36は、原稿100の対向する頂点を結ぶ対角線DとDの交点Dの座標を算出する(ステップS52)。 Original center calculation section 36 calculates an intersection D C coordinates of the diagonal D 1 D 4 and D 2 D 3 which connects the vertex facing the document 100 (step S52).

CPU12は、原稿エリアA100上の交点D付近を分割し、AFサーチを実行して分割エリアごとにAF評価値を取得する(ステップS54)。そして、CPU12は、ピントが合ったときのAF評価値が高い分割エリアにピントが合うようにAF制御を行い(ステップS56)、AF制御終了後に原稿の画像を再度取り込む(ステップS58)。 CPU12 divides near the intersection D C on the original area A100, and acquires the AF evaluation value for each divided area by performing an AF search (Step S54). Then, the CPU 12 performs AF control so as to focus on the divided area where the AF evaluation value is high when the focus is achieved (step S56), and captures the original image again after the AF control ends (step S58).

次に、原稿認識部32は、再撮影された原稿の画像から原稿エリアA100を切り取る。歪処理部38は、原稿認識部32によって切り取られた原稿エリアA100に射影変換(例えば、アフィン変換)を施して原稿エリアA100の歪を補正し、長方形の原稿画像を作成する(ステップS60)。   Next, the document recognizing unit 32 cuts out the document area A100 from the recaptured document image. The distortion processing unit 38 performs projective transformation (for example, affine transformation) on the document area A100 cut out by the document recognition unit 32 to correct the distortion of the document area A100, thereby creating a rectangular document image (step S60).

CPU12は、歪処理部38によって歪補正された原稿エリアA100の上下の向きを検出して補正して出力用原稿画像100′を作成し、プロジェクター200に出力する(ステップS62)。これにより、出力用原稿画像100′が外部出力部40を介してプロジェクター200に出力され、スクリーン300に投影される。   The CPU 12 detects and corrects the vertical direction of the document area A100 whose distortion has been corrected by the distortion processing unit 38, creates an output document image 100 ', and outputs it to the projector 200 (step S62). As a result, the output document image 100 ′ is output to the projector 200 via the external output unit 40 and projected onto the screen 300.

図7は、AF処理の流れを示すフローチャートである。   FIG. 7 is a flowchart showing the flow of AF processing.

まず、CPU12は、図8に示すように、原稿認識部32によって抽出された原稿エリアA100を分割する(ステップS70)。そして、CPU12は、撮影部20及びAF部26を制御してAFサーチを実行し、各分割エリアA1A,A1B,…,A5EにおけるAF評価値を取得する(ステップS72)。 First, as shown in FIG. 8, the CPU 12 divides the document area A100 extracted by the document recognition unit 32 (step S70). Then, the CPU 12 controls the photographing unit 20 and the AF unit 26 to execute an AF search, and acquires AF evaluation values in the divided areas A 1A , A 1B ,..., A 5E (step S72).

次に、CPU12は、対角線DとDの交点Dを含む中心エリアA3Cにピントを合わせた場合のAF評価値が信頼できる値であるかどうか判定する(ステップS74)。本実施形態では、ピント合わせの精度(合焦精度)が十分に得られるようなAF評価値(極大値)の閾値があらかじめ定められている。ステップS74では、CPU12は、中心エリアA3CのAF評価値がこの閾値以上かどうかに基づいてAF評価値の信頼度を判定する。 Then, CPU 12 determines whether the AF evaluation value when focus mainly area A 3C including an intersection D C of the diagonal lines D 1 D 4 and D 2 D 3 is a reliable value (step S74) . In the present embodiment, an AF evaluation value (maximum value) threshold is set in advance such that sufficient focusing accuracy (focusing accuracy) can be obtained. In step S74, the CPU 12 determines the reliability of the AF evaluation value based on whether or not the AF evaluation value of the center area A 3C is equal to or greater than this threshold value.

中心エリアA3CのAF評価値が信頼できると判定した場合(ステップS74のYes)、CPU12は、撮影部20を制御して中心エリアA3Cのピント位置(AF評価値が極大となるフォーカス位置)にフォーカス位置を移動させる(ステップS78)。 When it is determined that the AF evaluation value of the center area A 3C is reliable (Yes in step S74), the CPU 12 controls the photographing unit 20 to focus on the center area A 3C (a focus position where the AF evaluation value is maximized). The focus position is moved to (step S78).

一方、中心エリアA3CのAF評価値が信頼できないと判定した場合(ステップS74のNo)、CPU12は、中心エリアA3C近傍でAF評価値が最も大きい分割エリアを選択し(ステップS76)、選択した分割エリアのピント位置にフォーカス位置を移動させる(ステップS78)。 On the other hand, when it is determined that the AF evaluation value of the center area A 3C is not reliable (No in step S74), the CPU 12 selects a divided area having the largest AF evaluation value in the vicinity of the center area A 3C (step S76). The focus position is moved to the focus position of the divided area (step S78).

図9は、AF処理の別の実施形態を示すフローチャートである。   FIG. 9 is a flowchart showing another embodiment of the AF process.

まず、CPU12は、原稿認識部32によって抽出された原稿エリアA100を分割する(ステップS80)。そして、CPU12は、撮影部20及びAF部26を制御してAFサーチを実行し、各分割エリアA1A,A1B,…,A5EにおけるAF評価値を取得する(ステップS82)。 First, the CPU 12 divides the document area A100 extracted by the document recognition unit 32 (step S80). Then, the CPU 12 controls the photographing unit 20 and the AF unit 26 to execute an AF search, and acquires AF evaluation values in the divided areas A 1A , A 1B ,..., A 5E (step S82).

次に、CPU12は、対角線DとDの交点Dを含む中心エリアA3Cにピントを合わせた場合のAF評価値が信頼できる値であるかどうか判定する(ステップS84)。 Then, CPU 12 determines whether the AF evaluation value when focus mainly area A 3C including an intersection D C of the diagonal lines D 1 D 4 and D 2 D 3 is a reliable value (step S84) .

中心エリアA3CのAF評価値が信頼できると判定した場合(ステップS84のYes)、CPU12は、撮影部20を制御して中心エリアA3Cのピント位置(AF評価値が極大となるフォーカス位置)にフォーカス位置を移動させる(ステップS90)。 When it is determined that the AF evaluation value of the center area A 3C is reliable (Yes in step S84), the CPU 12 controls the photographing unit 20 to focus on the center area A 3C (a focus position where the AF evaluation value is maximized). The focus position is moved to (step S90).

一方、中心エリアA3CのAF評価値が信頼できないと判定した場合(ステップS84のNo)、CPU12は、中心エリアA3Cの図8の横方向(撮影装置10の視野の水平方向)に隣接する分割エリアA3B及びA3DのAF評価値(極大値)を取得する(ステップS86)。そして、CPU12は、分割エリアA3B及びA3DのうちAF評価値(極大値)が大きい方の分割エリアのピント位置にフォーカス位置を移動させる(ステップS88、S90)。 On the other hand, when it is determined that the AF evaluation value of the central area A 3C is not reliable (No in step S84), the CPU 12 is adjacent to the horizontal direction of the central area A 3C in FIG. 8 (the horizontal direction of the field of view of the photographing apparatus 10). AF evaluation values (maximum values) of the divided areas A 3B and A 3D are acquired (step S86). Then, the CPU 12 moves the focus position to the focus position of the divided area with the larger AF evaluation value (maximum value) among the divided areas A 3B and A 3D (steps S88 and S90).

一方、分割エリアA3B及びA3DのAF評価値がともに閾値未満の場合には、分割エリアA3Cよりも撮影装置10に近い分割エリア(手前側の分割エリア)について、例えば、A4C,A4B,A4D,…の順にAF評価値を評価する。そして、上記いずれの分割エリアのAF評価値がいずれも閾値未満の場合には、分割エリアA3Cよりも撮影装置10に遠い分割エリア(奥側の分割エリア)について、例えば、A2C,A2B,A2D,…の順にAF評価値を評価する。 On the other hand, when the AF evaluation values of the divided areas A 3B and A 3D are both less than the threshold value, for example, A 4C , A for a divided area closer to the image capturing apparatus 10 than the divided area A 3C (front divided area). The AF evaluation values are evaluated in the order of 4B , A4D,. When the AF evaluation values of any of the divided areas are less than the threshold value, for example, A 2C , A 2B for the divided areas (the divided areas on the back side) farther from the imaging device 10 than the divided area A 3C. , A 2D ,... Are evaluated in the order of AF evaluation values.

本実施形態によれば、中心エリアA3CのAF評価値(極大値)が所定値以下の場合には、中心エリアA3Cの横方向に隣接し、撮影装置10からの距離が中心エリアA3Cに近い分割エリアに合わせてAF制御を行うようにしたので、ピント合わせをより適切に行うことができる。 According to the present embodiment, AF evaluation value of the center area A 3C when (maximum value) is equal to or less than a predetermined value, laterally adjacent to the central area A 3C, the distance is the center area A 3C from the imaging device 10 Since the AF control is performed in accordance with a divided area close to, focusing can be performed more appropriately.

[第3の実施形態]
次に、本発明の第3の実施形態について説明する。本実施形態では、4頂点を含む分割エリアのAF評価値に基づいてAF制御を行う。なお、撮影装置10の構成については、上記第1の実施形態と同様である。
[Third Embodiment]
Next, a third embodiment of the present invention will be described. In the present embodiment, AF control is performed based on AF evaluation values of divided areas including four vertices. Note that the configuration of the photographing apparatus 10 is the same as that in the first embodiment.

図10は、本発明の第3の実施形態に係る撮影制御方法を示すフローチャートである。   FIG. 10 is a flowchart showing a shooting control method according to the third embodiment of the present invention.

まず、動作モードが原稿撮影モードに切り替えられると(ステップS100のYes)、CPU12は、撮影部20を制御して所定の撮影タイミングで原稿100の画像を取り込む(ステップS104)。   First, when the operation mode is switched to the document photographing mode (Yes in step S100), the CPU 12 controls the photographing unit 20 to capture an image of the document 100 at a predetermined photographing timing (step S104).

CPU12は、撮影部20の撮像素子から出力された画素ごとの画像信号を2値化して2値エッジ画像を生成する(ステップS106)。原稿認識部32は、原稿エリアA100を抽出する(ステップS108)。   The CPU 12 binarizes the image signal for each pixel output from the image sensor of the imaging unit 20 to generate a binary edge image (step S106). The document recognition unit 32 extracts the document area A100 (step S108).

原稿4隅認識部34は、原稿100の4頂点D,D,D,Dを検出し、4頂点D,D,D,Dの座標を取得する(ステップS110)。 Original four corners recognition unit 34 detects the four vertexes D 1, D 2, D 3 , D 4 of the document 100, four vertices D 1, D 2, D 3 , and acquires the coordinates of D 4 (step S110) .

CPU12は、撮影部20及びAF部26を制御してAFサーチを実行する(ステップS112)。そして、CPU12は、4頂点D,D,D,Dを含む分割エリアA1A,A1E,A5A,A5Eのピント位置を検出する(ステップS114)。 The CPU 12 controls the photographing unit 20 and the AF unit 26 to execute an AF search (step S112). Then, the CPU 12 detects the focus positions of the divided areas A 1A , A 1E , A 5A , A 5E including the four vertices D 1 , D 2 , D 3 , D 4 (step S114).

次に、CPU12は、分割エリアA1A,A1E,A5A,A5Eのピント位置の平均値(以下、平均フォーカス位置という。)を算出する(ステップS116)。そして、CPU12は、撮影部20を制御して、ステップS116において算出した平均フォーカス位置にフォーカスレンズを移動させ(ステップS118)、原稿の画像を再度取り込む(ステップS120)。 Next, the CPU 12 calculates an average value of focus positions (hereinafter referred to as an average focus position) of the divided areas A 1A , A 1E , A 5A , A 5E (step S116). Then, the CPU 12 controls the photographing unit 20 to move the focus lens to the average focus position calculated in step S116 (step S118), and captures the original image again (step S120).

次に、原稿認識部32は、再撮影された原稿の画像から原稿エリアA100を切り取る。歪処理部38は、原稿認識部32によって切り取られた原稿エリアA100に射影変換(例えば、アフィン変換)を施して原稿エリアA100の歪を補正し、長方形の原稿画像を作成する(ステップS122)。   Next, the document recognizing unit 32 cuts out the document area A100 from the recaptured document image. The distortion processing unit 38 performs projective transformation (for example, affine transformation) on the document area A100 cut out by the document recognition unit 32 to correct the distortion of the document area A100, and creates a rectangular document image (step S122).

CPU12は、歪処理部38によって歪補正された原稿エリアA100の上下の向きを検出して補正して出力用原稿画像100′を作成し、プロジェクター200に出力する(ステップS124)。これにより、出力用原稿画像100′が外部出力部40を介してプロジェクター200に出力され、スクリーン300に投影される。   The CPU 12 detects and corrects the vertical direction of the document area A100 whose distortion has been corrected by the distortion processing unit 38, creates an output document image 100 ', and outputs it to the projector 200 (step S124). As a result, the output document image 100 ′ is output to the projector 200 via the external output unit 40 and projected onto the screen 300.

図11は、本発明の第3の実施形態に係るAF制御の流れを示すフローチャートである。   FIG. 11 is a flowchart showing a flow of AF control according to the third embodiment of the present invention.

まず、CPU12は、図8に示すように、原稿エリアA100を分割する(ステップS130)。そして、CPU12は、撮影部20及びAF部26を制御してAFサーチを実行し、4頂点D,D,D,Dを含む分割エリアA1A,A1E,A5A,A5Eのピント位置を検出する(ステップS132)。 First, the CPU 12 divides the document area A100 as shown in FIG. 8 (step S130). Then, the CPU 12 controls the photographing unit 20 and the AF unit 26 to execute the AF search, and the divided areas A 1A , A 1E , A 5A , A 5E including the four vertices D 1 , D 2 , D 3 , D 4. Is detected (step S132).

次に、CPU12は、分割エリアA1A,A1E,A5A,A5Eのピント位置の平均フォーカス位置を算出し、撮影部20を制御して、ステップS116において算出した平均フォーカス位置にフォーカスレンズを移動させる(ステップS134)。 Next, the CPU 12 calculates the average focus position of the focus positions of the divided areas A 1A , A 1E , A 5A , A 5E , controls the photographing unit 20, and sets the focus lens at the average focus position calculated in step S 116. Move (step S134).

本実施形態によれば、原稿エリアA100の4隅の分割エリアのピント位置の平均フォーカス位置にフォーカス位置を移動することにより、4頂点D,D,D,Dと撮影装置10との間の距離が異なる状態で原稿100を撮影した場合にも、ピント合わせを適切に行うことができる。これにより、原稿100が写っている原稿エリアA100の歪を補正したときに生じる画像の劣化を防止することができる。 According to the present embodiment, the four vertexes D 1 , D 2 , D 3 , D 4 , the photographing device 10, and the focus position are moved to the average focus position of the focus position of the four divided areas of the document area A 100. Even when the original 100 is photographed in a state where the distance between them is different, focusing can be performed appropriately. Thereby, it is possible to prevent image degradation that occurs when the distortion of the document area A100 in which the document 100 is captured is corrected.

[第4の実施形態]
次に、本発明の第4の実施形態について説明する。本実施形態は、4頂点を含む分割エリアのAF評価値に基づいてAF制御を行うとともに、焦点深度を制御して合焦精度を高めるようにしたものである。なお、撮影装置10の構成については、上記第1の実施形態と同様である。
[Fourth Embodiment]
Next, a fourth embodiment of the present invention will be described. In the present embodiment, AF control is performed based on AF evaluation values of divided areas including four vertices, and the focus depth is controlled to improve the focusing accuracy. Note that the configuration of the photographing apparatus 10 is the same as that in the first embodiment.

図12は、本発明の第4の実施形態に係る撮影制御方法を示すフローチャートである。   FIG. 12 is a flowchart showing an imaging control method according to the fourth embodiment of the present invention.

まず、動作モードが原稿撮影モードに切り替えられると(ステップS140のYes)、CPU12は、撮影部20を制御して所定の撮影タイミングで原稿100の画像を取り込む(ステップS144)。   First, when the operation mode is switched to the document photographing mode (Yes in step S140), the CPU 12 controls the photographing unit 20 to capture an image of the document 100 at a predetermined photographing timing (step S144).

CPU12は、撮影部20の撮像素子から出力された画素ごとの画像信号を2値化して2値エッジ画像を生成する(ステップS146)。原稿認識部32は、原稿エリアA100を抽出する(ステップS148)。   The CPU 12 binarizes the image signal for each pixel output from the image sensor of the imaging unit 20 to generate a binary edge image (step S146). The document recognition unit 32 extracts the document area A100 (step S148).

原稿4隅認識部34は、原稿100の4頂点D,D,D,Dを検出し、4頂点D,D,D,Dの座標を取得する(ステップS150)。 Original four corners recognition unit 34 detects the four vertexes D 1, D 2, D 3 , D 4 of the document 100, four vertices D 1, D 2, D 3 , and acquires the coordinates of D 4 (step S150) .

CPU12は、撮影部20及びAF部26を制御してAFサーチを実行する(ステップS152)。そして、CPU12は、4頂点D,D,D,Dを含む分割エリアA1A,A1E,A5A,A5Eのピント位置を検出する(ステップS154)。 The CPU 12 controls the photographing unit 20 and the AF unit 26 to execute an AF search (step S152). Then, the CPU 12 detects the focus positions of the divided areas A 1A , A 1E , A 5A , A 5E including the four vertices D 1 , D 2 , D 3 , D 4 (step S154).

次に、CPU12は、分割エリアA1A,A1E,A5A,A5Eのピント位置の平均値(以下、平均フォーカス位置という。)を算出する(ステップS156)。そして、CPU12は、撮影部20を制御して、ステップS156において算出した平均フォーカス位置にフォーカスレンズを移動させる(ステップS158)。そして、CPU12は、分割エリアA1A,A1E,A5A,A5Eの焦点深度が被写界深度内に収まるように、撮影部20の絞り値を変更し(ステップS160)、原稿の画像を再度取り込む(ステップS162)。 Next, the CPU 12 calculates an average value (hereinafter referred to as an average focus position) of the focus positions of the divided areas A 1A , A 1E , A 5A , and A 5E (step S156). Then, the CPU 12 controls the photographing unit 20 to move the focus lens to the average focus position calculated in step S156 (step S158). Then, the CPU 12 changes the aperture value of the photographing unit 20 so that the focal depths of the divided areas A 1A , A 1E , A 5A , A 5E are within the depth of field (step S160), and the image of the document is changed. It takes in again (step S162).

次に、原稿認識部32は、再撮影された原稿の画像から原稿エリアA100を切り取る。歪処理部38は、原稿認識部32によって切り取られた原稿エリアA100に射影変換(例えば、アフィン変換)を施して原稿エリアA100の歪を補正し、長方形の原稿画像を作成する(ステップS164)。   Next, the document recognizing unit 32 cuts out the document area A100 from the recaptured document image. The distortion processing unit 38 performs projective transformation (for example, affine transformation) on the document area A100 cut out by the document recognition unit 32 to correct the distortion of the document area A100, and creates a rectangular document image (step S164).

CPU12は、歪処理部38によって歪補正された原稿エリアA100の上下の向きを検出して補正して出力用原稿画像100′を作成し、プロジェクター200に出力する(ステップS166)。これにより、出力用原稿画像100′が外部出力部40を介してプロジェクター200に出力され、スクリーン300に投影される。   The CPU 12 detects and corrects the vertical direction of the document area A100 whose distortion has been corrected by the distortion processing unit 38, creates an output document image 100 ', and outputs it to the projector 200 (step S166). As a result, the output document image 100 ′ is output to the projector 200 via the external output unit 40 and projected onto the screen 300.

図13は、本発明の第4の実施形態に係るAF制御の流れを示すフローチャートである。   FIG. 13 is a flowchart showing a flow of AF control according to the fourth embodiment of the present invention.

まず、CPU12は、図8に示すように、原稿エリアA100を分割する(ステップS170)。そして、CPU12は、撮影部20及びAF部26を制御してAFサーチを実行し、4頂点D,D,D,Dを含む分割エリアA1A,A1E,A5A,A5Eのピント位置を検出する(ステップS172)。 First, the CPU 12 divides the document area A100 as shown in FIG. 8 (step S170). Then, the CPU 12 controls the photographing unit 20 and the AF unit 26 to execute the AF search, and the divided areas A 1A , A 1E , A 5A , A 5E including the four vertices D 1 , D 2 , D 3 , D 4. Is detected (step S172).

次に、CPU12は、分割エリアA1A,A1E,A5A,A5Eのピント位置の平均フォーカス位置を算出し、撮影部20を制御して、ステップS116において算出した平均フォーカス位置にフォーカスレンズを移動させる(ステップS174)。そして、CPU12は、分割エリアA1A,A1E,A5A,A5Eの焦点深度が被写界深度内に収まるように、撮影部20の絞り値を変更する(ステップS176)。 Next, the CPU 12 calculates the average focus position of the focus positions of the divided areas A 1A , A 1E , A 5A , A 5E , controls the photographing unit 20, and sets the focus lens at the average focus position calculated in step S 116. Move (step S174). Then, the CPU 12 changes the aperture value of the photographing unit 20 so that the focal depths of the divided areas A 1A , A 1E , A 5A , A 5E are within the depth of field (step S176).

本実施形態によれば、原稿エリアA100の4隅の分割エリアのピント位置の平均フォーカス位置にフォーカス位置を移動することにより、4頂点D,D,D,Dと撮影装置10との間の距離が異なる状態で原稿100を撮影した場合にも、ピント合わせを適切に行うことができる。これにより、原稿100が写っている原稿エリアA100の歪を補正したときに生じる画像の劣化を防止することができる。 According to the present embodiment, the four vertexes D 1 , D 2 , D 3 , D 4 , the photographing device 10, and the focus position are moved to the average focus position of the focus position of the four divided areas of the document area A 100. Even when the original 100 is photographed in a state where the distance between them is different, focusing can be performed appropriately. Thereby, it is possible to prevent image degradation that occurs when the distortion of the document area A100 in which the document 100 is captured is corrected.

[第5の実施形態]
次に、本発明の第5の実施形態について説明する。本実施形態は、原稿100が写っている原稿エリアA100に合わせて露出制御を行うようにしたものである。
[Fifth Embodiment]
Next, a fifth embodiment of the present invention will be described. In the present embodiment, exposure control is performed in accordance with the document area A100 in which the document 100 is shown.

図14は、本発明の第5の実施形態に係る撮影装置を示すブロック図である。   FIG. 14 is a block diagram showing an imaging apparatus according to the fifth embodiment of the present invention.

CPU12は、原稿撮影モード時に撮影部20の撮像素子から出力された画素ごとの画像信号を2値化して2値エッジ画像を生成する。   The CPU 12 binarizes the image signal for each pixel output from the image sensor of the photographing unit 20 in the document photographing mode to generate a binary edge image.

原稿認識部32は、2値エッジ画像から原稿100の輪郭B100を検出し、輪郭B100に囲まれる原稿エリアA100を抽出する。   The document recognition unit 32 detects a contour B100 of the document 100 from the binary edge image, and extracts a document area A100 surrounded by the contour B100.

原稿4隅認識部34は、輪郭B100から原稿100の4隅の頂点D,D,D,Dを検出し、4頂点D,D,D,Dの位置を示す座標を取得する。 The document four-corner recognition unit 34 detects vertices D 1 , D 2 , D 3 , and D 4 at the four corners of the document 100 from the contour B 100 and indicates the positions of the four vertices D 1 , D 2 , D 3 , and D 4. Get the coordinates.

原稿中心算出部36は、原稿100の対向する頂点を結ぶ対角線D及び,Dの交点Dの座標を算出する。 The document center calculation unit 36 calculates the coordinates of the intersection D C of the diagonal lines D 1 D 4 and D 2 D 3 connecting the opposite vertices of the document 100.

CPU12は、撮影部20及びAF部26を制御して、原稿エリアA100にピントが合うようにAF制御を行う。なお、AF制御の方法は、上記第1から第4の実施形態の方法を適用することができる。   The CPU 12 controls the photographing unit 20 and the AF unit 26 to perform AF control so that the document area A100 is focused. As the AF control method, the methods of the first to fourth embodiments can be applied.

AE部28は、原稿エリアA100のR、G、B信号から、原稿エリアA100全体の平均測光値を算出する。CPU12は、AE部28から取得した積算値に基づいて被写体の明るさ(被写体輝度)を検出し、撮影に適した露出値(撮影EV値)を算出する。CPU12は、求めた露出値と所定のプログラム線図に従って、絞り値とシャッタースピードを決定し、撮像素子の電子シャッター機能及び絞りを制御して露光量を調節する。   The AE unit 28 calculates an average photometric value of the entire document area A100 from the R, G, and B signals of the document area A100. The CPU 12 detects the brightness of the subject (subject brightness) based on the integrated value acquired from the AE unit 28, and calculates an exposure value (shooting EV value) suitable for shooting. The CPU 12 determines the aperture value and shutter speed according to the obtained exposure value and a predetermined program diagram, and controls the electronic shutter function and aperture of the image sensor to adjust the exposure amount.

なお、測光値の算出方法は、上記の平均測光のほか、例えば、原稿エリアA100内の高輝度のエリアに合わせて測光値を算出するピーク測光、又は原稿エリアA100を複数の分割エリアに分割して分割エリアごとに測光値を算出するマルチパターン測光を適用することもできる。   In addition to the above-mentioned average metering, for example, peak metering for calculating a metering value in accordance with a high-luminance area in the document area A100 or the document area A100 is divided into a plurality of divided areas. Thus, multi-pattern photometry for calculating a photometric value for each divided area can be applied.

CPU12は、AF制御及びAE制御の終了後、原稿100を再度撮影する。原稿認識部32は、再撮影された原稿の画像から輪郭B100を検出し、輪郭B100により囲まれる原稿エリアA100を切り取る。   After completing the AF control and the AE control, the CPU 12 captures the document 100 again. The document recognition unit 32 detects a contour B100 from the recaptured document image, and cuts out a document area A100 surrounded by the contour B100.

歪処理部38は、再撮影された画像から切り取られた原稿エリアA100に投影変換(射影変換(例えば、アフィン変換))を施して原稿エリアA100の歪を補正し、長方形の原稿画像を作成する。   The distortion processing unit 38 performs projection conversion (projection conversion (for example, affine conversion)) on the document area A100 cut out from the re-captured image to correct the distortion of the document area A100, thereby creating a rectangular document image. .

CPU12は、歪処理部38によって歪補正された原稿エリアA100の上下の向きを検出して補正し、出力用原稿画像100′を作成する。出力用原稿画像100′は、外部出力部40を介してプロジェクター200に出力され、スクリーン300に投影される。   The CPU 12 detects and corrects the vertical direction of the document area A100 whose distortion has been corrected by the distortion processing unit 38, and creates an output document image 100 '. The output document image 100 ′ is output to the projector 200 via the external output unit 40 and projected onto the screen 300.

図15は、本発明の第5の実施形態に係る撮影制御方法を示すフローチャートである。   FIG. 15 is a flowchart showing an imaging control method according to the fifth embodiment of the present invention.

まず、動作モードが原稿撮影モードに切り替えられると(ステップS180のYes)、CPU12は、撮影部20を制御して所定の撮影タイミングで原稿100の画像を取り込む(ステップS184)。   First, when the operation mode is switched to the document photographing mode (Yes in step S180), the CPU 12 controls the photographing unit 20 to capture an image of the document 100 at a predetermined photographing timing (step S184).

CPU12は、撮影部20の撮像素子から出力された画素ごとの画像信号を2値化して2値エッジ画像を生成する(ステップS186)。原稿認識部32は、原稿エリアA100を抽出する(ステップS188)。   The CPU 12 binarizes the image signal for each pixel output from the image sensor of the imaging unit 20 to generate a binary edge image (step S186). The document recognition unit 32 extracts the document area A100 (step S188).

原稿4隅認識部34は、原稿100の4頂点D,D,D,Dを検出し、4頂点D,D,D,Dの座標を取得する(ステップS190)。 Original four corners recognition unit 34 detects the four vertexes D 1, D 2, D 3 , D 4 of the document 100, four vertices D 1, D 2, D 3 , and acquires the coordinates of D 4 (step S190) .

原稿中心算出部36は、原稿100の対向する頂点を結ぶ対角線DとDの交点Dの座標を算出する(ステップS192)。 Original center calculation section 36 calculates an intersection D C coordinates of the diagonal D 1 D 4 and D 2 D 3 which connects the vertex facing the document 100 (step S192).

CPU12は、原稿エリアA100にピントが合うようにAF制御を行う(ステップS194)。   The CPU 12 performs AF control so that the document area A100 is in focus (step S194).

AE部28は、原稿エリアA100から測光値を算出する。CPU12は、原稿エリアA100から算出された測光値から露出値を算出し、AE制御を行う(ステップS196)。   The AE unit 28 calculates a photometric value from the document area A100. The CPU 12 calculates an exposure value from the photometric value calculated from the document area A100, and performs AE control (step S196).

次に、AF制御及びAE制御終了後に原稿の画像を再度取り込む(ステップS198)。原稿認識部32は、再撮影された原稿の画像から原稿エリアA100を切り取る。歪処理部38は、原稿認識部32によって切り取られた原稿エリアA100に射影変換(例えば、アフィン変換)を施して原稿エリアA100の歪を補正し、長方形の原稿画像を作成する(ステップS200)。   Next, after the AF control and AE control are completed, the original image is captured again (step S198). The document recognition unit 32 cuts out the document area A100 from the recaptured document image. The distortion processing unit 38 performs projective transformation (for example, affine transformation) on the document area A100 cut by the document recognition unit 32 to correct the distortion of the document area A100, and creates a rectangular document image (step S200).

CPU12は、歪処理部38によって歪補正された原稿エリアA100の上下の向きを検出して補正して出力用原稿画像100′を作成し、プロジェクター200に出力する(ステップS202)。これにより、出力用原稿画像100′が外部出力部40を介してプロジェクター200に出力され、スクリーン300に投影される。   The CPU 12 detects and corrects the vertical direction of the document area A100 whose distortion has been corrected by the distortion processing unit 38 to create an output document image 100 ′ and outputs it to the projector 200 (step S202). As a result, the output document image 100 ′ is output to the projector 200 via the external output unit 40 and projected onto the screen 300.

本実施形態によれば、原稿エリアA100に対してピント合わせ及びAE制御を適切に行うことができる。これにより、原稿100が写っている原稿エリアA100の歪を補正したときに生じる画像の劣化を防止することができる。   According to this embodiment, focusing and AE control can be appropriately performed on the document area A100. Thereby, it is possible to prevent image degradation that occurs when the distortion of the document area A100 in which the document 100 is captured is corrected.

[第6の実施形態]
次に、本発明の第6の実施形態について説明する。本実施形態は、原稿100を撮影装置10からの距離が遠い部分と近い部分とに分けて撮影して、原稿全体の画像を得るようにしたものである。なお、撮影装置10の構成については、上記第1の実施形態と同様である。
[Sixth Embodiment]
Next, a sixth embodiment of the present invention will be described. In the present embodiment, the document 100 is photographed separately into a portion that is far from the photographing device 10 and a portion that is close to the image capturing device 10 to obtain an image of the entire document. Note that the configuration of the photographing apparatus 10 is the same as that in the first embodiment.

図16は、本発明の第6の実施形態に係る撮影装置を示すブロック図であり、図17は、本実施形態に係る撮影制御の流れを説明するための図である。   FIG. 16 is a block diagram showing a photographing apparatus according to the sixth embodiment of the present invention, and FIG. 17 is a diagram for explaining the flow of photographing control according to the present embodiment.

図16に示すように、本実施形態に係る撮影装置10は、画像合成部42を更に備えている。   As shown in FIG. 16, the photographing apparatus 10 according to the present embodiment further includes an image composition unit 42.

図17(a)に示すように、原稿100の4隅にはマーカM,M,M,Mがプリントされている。 As shown in FIG. 17A, markers M 1 , M 2 , M 3 , and M 4 are printed at the four corners of the document 100.

CPU12は、撮影モード時に撮影された画素ごとの画像信号を2値化して2値画像を生成する。   The CPU 12 generates a binary image by binarizing the image signal for each pixel imaged in the imaging mode.

原稿認識部32は、マーカM,M,M,Mの形状パターンを記憶しており、2値画像に対して、マーカM,M,M,Mの形状パターンを用いてパターンマッチングを行う。そして、原稿認識部32は、マーカM,M,M,Mによって囲まれる原稿エリアA100を抽出する(図17(a))。更に、原稿認識部32は、マーカの向きから原稿100の上下の向きを検出する。 Document recognition unit 32, the marker M 1, M 2, M 3, stores a shape pattern of M 4, with respect to the binary image, the shape pattern of the marker M 1, M 2, M 3 , M 4 Pattern matching. Then, the document recognition unit 32 extracts a document area A100 surrounded by the markers M 1 , M 2 , M 3 , and M 4 (FIG. 17 (a)). Further, the document recognition unit 32 detects the vertical direction of the document 100 from the direction of the marker.

原稿4隅認識部34は、原稿100上のマーカM,M,M,Mの位置を示す座標を取得する。 The document four-corner recognition unit 34 acquires coordinates indicating the positions of the markers M 1 , M 2 , M 3 , and M 4 on the document 100.

原稿中心算出部36は、マーカM,M,M,Mを結ぶ線分MとMの交点Dの座標を算出する。 Original center calculation section 36 calculates the coordinates of the markers M 1, M 2, M 3 , the intersection of the line segment M 1 M 4 and M 2 M 3 connecting M 4 D C.

CPU12は、撮影部20を制御して、撮影装置10に近い側(以下、手前側という)の2つのマーカM及びMが撮影装置10の視野F10の幅Wと略一致するようにズームを行う(図17(b))。なお、図17(b)の工程では、CPU12は、原稿エリアA100(少なくとも原稿エリアA100の交点Dより下のエリアA1′)が視野F10内に収まるようにズーム及び画角を制御する。 The CPU 12 controls the photographing unit 20 to zoom so that two markers M 3 and M 4 on the side close to the photographing device 10 (hereinafter referred to as the near side) substantially coincide with the width W of the field of view F 10 of the photographing device 10. (FIG. 17B). In the step of FIG. 17 (b), CPU 12 has a document area A100 (intersection D C than the lower area A1 of at least the original area A100 ') controls the zoom and angle to fit within the field of view F10.

CPU12は、撮影部20及びAF部26を制御してAFサーチを実行し、エリアA1′にピントが合うようにAF制御を行う。具体的には、CPU12は、原稿エリアA100を複数の分割エリアに分割し、手前側のマーカM及びMを含む分割エリアにピントを合わせた場合のピント位置を検出し、マーカM及びMを含む分割エリアのピント位置の中間(平均)のフォーカス位置にフォーカスレンズを移動させる。 The CPU 12 controls the photographing unit 20 and the AF unit 26 to execute an AF search, and performs AF control so that the area A1 ′ is in focus. Specifically, CPU 12 divides the original area A100 into a plurality of divided areas, and detect the focus position when the focus in the divided area including the marker M 3 and M 4 in the near side, the marker M 3 and intermediate focal position of the divided area including the M 4 moves the focus lens to the focus position of the (average).

CPU12は、AF制御の終了後、原稿100を再度撮影する。原稿認識部32は、再撮影された原稿の画像を2値化してマーカM,M,M,Mを検出し、マーカM,M,M,Mに囲まれる原稿エリアA100を切り取る。 The CPU 12 captures the original 100 again after the AF control is completed. Document recognition unit 32, a document image of the re-photographed original binarized to detect the marker M 1, M 2, M 3 , M 4 and is surrounded by the marker M 1, M 2, M 3 , M 4 Cut out area A100.

歪処理部38は、再撮影された画像から切り取られた原稿エリアA100に投影変換(射影変換(例えば、アフィン変換))を施して原稿エリアA100の歪を補正し、長方形の原稿画像A100′を作成する(図17(c))。原稿画像A100′の交点Dより下のエリアA1はピントが合っているが、交点Dより上のエリアA2′はピントが粗い画像となる。 The distortion processing unit 38 performs projection conversion (projection conversion (for example, affine conversion)) on the document area A100 cut out from the re-captured image to correct the distortion of the document area A100, and generates a rectangular document image A100 ′. It is created (FIG. 17C). 'Although the area A1 below the intersection D C of are in focus, the intersection point D C than above the area A2' document image A100 becomes focus rough image.

また、CPU12は、撮影部20を制御して、交点Dを通り視野F10の横方向に伸びる直線と原稿エリアA100の輪郭(マーカM,M,M,Mを結んで得られる4角形)との交点を結ぶ線分Lが撮影装置10の視野F10の幅Wと略一致するようにズームを行う(図17(d))。なお、図17(d)の工程では、CPU12は、原稿エリアA100の交点Dより上のエリアが視野F10内に収まるようにズーム及び画角を制御する。 Further, the CPU 12 controls the photographing unit 20 to obtain a straight line extending through the intersection D C and extending in the lateral direction of the visual field F10 and the outline of the document area A100 (markers M 1 , M 2 , M 3 , and M 4). Zooming is performed so that the line segment L connecting the intersection with the quadrangular shape substantially coincides with the width W of the field of view F10 of the photographing apparatus 10 (FIG. 17D). In the step of FIG. 17 (d), CPU 12 includes an area above the intersection D C of the original area A100 controls the zoom and angle to fit within the field of view F10.

CPU12は、撮影部20及びAF部26を制御してAFサーチを実行し、原稿エリアA100の交点Dより上のエリアにピントが合うようにAF制御を行う。具体的には、CPU12は、原稿エリアA100を複数の分割エリアに分割し、撮影装置10から遠い側(以下、奥側という)のマーカM及びMを含む分割エリアにピントを合わせた場合のピント位置を検出し、マーカM及びMを含む分割エリアのピント位置の中間(平均)のフォーカス位置にフォーカスレンズを移動させる。 CPU12 performs an AF search by controlling the imaging unit 20 and the AF unit 26 performs the AF control so focus is in the area above the intersection D C of the original area A100. If Specifically, CPU 12 is to divide the original area A100 into a plurality of divided areas, far side (hereinafter, referred to as rear side) from the imaging device 10 in focus on splitting area including the marker M 1 and M 2 of The focus lens is detected, and the focus lens is moved to an intermediate (average) focus position between the focus positions of the divided areas including the markers M 1 and M 2 .

CPU12は、AF制御の終了後、原稿100を再度撮影する。原稿認識部32は、再撮影された原稿の画像を2値化してマーカM,M及び原稿エリアA100の輪郭を検出し、原稿エリアA100を切り取る。なお、原稿エリアA100の輪郭の検出については、AF制御の終了時点の原稿エリアA100の輪郭の位置情報を記憶しておき、この位置情報に基づいて原稿エリアA100を決定するようにしてもよい。 The CPU 12 captures the original 100 again after the AF control is completed. The document recognition unit 32 binarizes the re-captured document image, detects the markers M 1 and M 2 and the outline of the document area A100, and cuts out the document area A100. For detecting the contour of the document area A100, the position information of the contour of the document area A100 at the end of the AF control may be stored, and the document area A100 may be determined based on this position information.

歪処理部38は、再撮影された画像から切り取られた原稿エリアA100に投影変換(射影変換(例えば、アフィン変換))を施して原稿エリアA100の歪を補正し、長方形の原稿画像A100″を作成する(図17(e))。   The distortion processing unit 38 performs projection conversion (projection conversion (for example, affine conversion)) on the document area A100 cut out from the re-captured image to correct the distortion of the document area A100, and generates a rectangular document image A100 ″. Create (FIG. 17E).

画像合成部42は、図17(c)の交点Dより下のエリアA1と図17(e)の交点Dより上のエリアA2を合成し、出力用原稿画像100′を作成する(図17(f))。出力用原稿画像100′は、外部出力部40を介してプロジェクター200に出力され、スクリーン300に投影される。 Image synthesizing unit 42 synthesizes the area A2 above the intersection D C of intersection D C than the area A1 of the lower 17 of FIG. 17 (c) (e), to create the output document image 100 '(FIG. 17 (f)). The output document image 100 ′ is output to the projector 200 via the external output unit 40 and projected onto the screen 300.

図18は、本発明の第6の実施形態に係る撮影制御方法を示すフローチャートである。   FIG. 18 is a flowchart showing an imaging control method according to the sixth embodiment of the present invention.

まず、動作モードが原稿撮影モードに切り替えられると(ステップS210のYes)、CPU12は、撮影部20を制御して所定の撮影タイミングで原稿100の画像を取り込む(ステップS214)。   First, when the operation mode is switched to the document photographing mode (Yes in Step S210), the CPU 12 controls the photographing unit 20 to capture an image of the document 100 at a predetermined photographing timing (Step S214).

CPU12は、撮影部20の撮像素子から出力された画素ごとの画像信号を2値化して2値画像を生成する(ステップS216)。原稿認識部32は、2値画像に対してテンプレートマッチングを実施して(ステップS218)、原稿100の4隅にプリントされたマーカM,M,M,Mを検出し、原稿エリアA100を抽出する(ステップS220)。 The CPU 12 binarizes the image signal for each pixel output from the image sensor of the imaging unit 20 to generate a binary image (step S216). The document recognition unit 32 performs template matching on the binary image (step S218), detects the markers M 1 , M 2 , M 3 , and M 4 printed at the four corners of the document 100, and the document area. A100 is extracted (step S220).

原稿認識部32は、4隅のマーカM,M,M,Mの向きから原稿100の上下の向きを認識する(ステップS222)。 The document recognition unit 32 recognizes the vertical direction of the document 100 from the directions of the markers M 1 , M 2 , M 3 , and M 4 at the four corners (step S222).

原稿4隅認識部34は、4隅のマーカM,M,M,Mの座標を取得する(ステップS224)。原稿中心算出部36は、原稿100の対向するマーカを結ぶ線分(対角線)MとMの交点Dの座標を算出する(ステップS226)。 The document four corner recognition unit 34 acquires the coordinates of the markers M 1 , M 2 , M 3 , and M 4 at the four corners (step S 224). Original center calculation section 36 calculates an intersection D C coordinates of the line segment (diagonal) M 1 M 4 and M 2 M 3 connecting the marker facing the document 100 (step S226).

CPU12は、交点Dを中心とするAFエリアAにピントが合うようにAF制御を行い(ステップS228、S230)、AF制御終了後に原稿の画像を再度取り込む。 CPU12 is the intersection D C was subjected to the AF control so focus is the AF area A C of the center (step S228, S230), captures the image of the document again after AF control ends.

CPU12は、撮影部20を制御して、手前側の2つのマーカM及びMが撮影装置10の視野F10の幅Wと略一致するようにズームを実施する(ステップS232)。 The CPU 12 controls the photographing unit 20 to perform zooming so that the two front markers M 3 and M 4 substantially coincide with the width W of the field of view F10 of the photographing apparatus 10 (step S232).

次に、CPU12は、撮影部20及びAF部26を制御してAFサーチを実行する(ステップS234)。CPU12は、原稿エリアA100を複数の分割エリアに分割し、手前側のマーカM及びMを含む分割エリアにピントを合わせた場合のピント位置を検出し、マーカM及びMを含む分割エリアのピント位置の中間(平均)のフォーカス位置にフォーカスレンズを移動させる(ステップS236)。 Next, the CPU 12 controls the photographing unit 20 and the AF unit 26 to execute an AF search (step S234). CPU12 divides the document area A100 into a plurality of divided areas, and detect the focus position when the focus in the divided area including the marker M 3 and M 4 in the near side, a marker M 3 and M 4 divided The focus lens is moved to an intermediate (average) focus position in the area focus position (step S236).

CPU12は、ステップS236のAF制御及びAE制御終了後に原稿の画像を再度撮影する(ステップS238)。   The CPU 12 captures the original image again after the AF control and AE control in step S236 are completed (step S238).

また、CPU12は、撮影部20を制御して、交点Dを通り視野F10の横方向に伸びる直線と原稿エリアA100の輪郭との交点を結ぶ線分Lが撮影装置10の視野F10の幅Wと略一致するようにズームを実施する(ステップS240)。 Further, CPU 12 controls the imaging unit 20, intersection D C extending in the lateral direction of the street field F10 straight and width W of the field F10 of the line segment L is imaging apparatus 10 that connects the intersection of the contour of the original area A100 Zooming is performed so as to substantially match (step S240).

次に、CPU12は、撮影部20及びAF部26を制御してAFサーチを実行する(ステップS242)。CPU12は、原稿エリアA100を複数の分割エリアに分割し、奥側のマーカM及びMを含む分割エリアにピントを合わせた場合のピント位置を検出し、マーカM及びMを含む分割エリアのピント位置の中間(平均)のフォーカス位置にフォーカスレンズを移動させる(ステップS244)。 Next, the CPU 12 controls the photographing unit 20 and the AF unit 26 to execute an AF search (step S242). CPU12 divides the document area A100 into a plurality of divided areas, and detect the focus position when the focus in the divided area including the marker M 1 and M 2 on the rear side, a marker M 1 and M 2 divided The focus lens is moved to an intermediate (average) focus position in the area focus position (step S244).

CPU12は、ステップS244のAF制御及びAE制御終了後に原稿の画像を再度撮影する(ステップS246)。   The CPU 12 captures the original image again after the AF control and AE control in step S244 are completed (step S246).

原稿認識部32は、ステップS238及びS246において撮影された画像から原稿エリアA100を切り取る。歪処理部38は、ステップS238及びS246において撮影された画像から切り取られた原稿エリアA100に投影変換(射影変換(例えば、アフィン変換))を施して原稿エリアA100の歪を補正する(ステップS248)。   The document recognizing unit 32 cuts out the document area A100 from the images taken in steps S238 and S246. The distortion processing unit 38 performs projection conversion (projection conversion (for example, affine conversion)) on the document area A100 cut out from the images photographed in steps S238 and S246 to correct the distortion of the document area A100 (step S248). .

画像合成部42は、歪補正後のステップS238の画像A100′中の交点Dより下のエリアA1と、歪補正後のステップS246の画像A100″中の交点Dより上のエリアA2を合成し、出力用原稿画像100′を作成する(ステップS250)。出力用原稿画像100′は、外部出力部40を介してプロジェクター200に出力され、スクリーン300に投影される。 Image synthesis unit 42, combined with the intersection D C than the lower area A1 in the image A100 'of the step S238 after the distortion correction, the area A2 above the intersection D C in the image A100 "in step S246 after distortion correction Then, an output document image 100 ′ is created (step S250), and the output document image 100 ′ is output to the projector 200 via the external output unit 40 and projected onto the screen 300.

本実施形態によれば、原稿エリアA100を手前側と奥側とに分割して撮影することにより、原稿100に対する合焦精度を高めることができる。これにより、原稿100が写っている原稿エリアA100の歪を補正したときに生じる画像の劣化を防止することができる。   According to the present embodiment, focusing accuracy with respect to the document 100 can be improved by dividing the document area A100 into the front side and the back side and shooting. Thereby, it is possible to prevent image degradation that occurs when the distortion of the document area A100 in which the document 100 is captured is corrected.

なお、原稿100上のマーカの形状及び配置は上記に限定されるものではない。例えば、マーカを原稿100の輪郭に沿ってプリントするようにしてもよい。   Note that the shape and arrangement of the markers on the document 100 are not limited to the above. For example, the marker may be printed along the outline of the document 100.

また、原稿100を分割して撮影するときの分割の仕方は上記に限定されるものではない。例えば、原稿エリアA100を縦方向に3つ以上のエリアに分割して撮影して合成画像を作成してもよい。また、原稿エリアA100を縦横複数のエリアに分割して撮影するようにしてもよい。   Further, the way of division when the original 100 is divided and photographed is not limited to the above. For example, the document area A100 may be divided into three or more areas in the vertical direction and photographed to create a composite image. Further, the document area A100 may be divided into a plurality of vertical and horizontal areas for shooting.

本発明の第1の実施形態に係る撮影装置の動作を示す図The figure which shows operation | movement of the imaging device which concerns on the 1st Embodiment of this invention. 撮影装置10によって撮影された原稿の画像を示す図The figure which shows the image of the original image | photographed with the imaging device 10. 本発明の第1の実施形態に係る撮影装置を示すブロック図1 is a block diagram showing a photographing apparatus according to a first embodiment of the present invention. 原稿エリアA100及びAFエリアAを模式的に示す図It shows the original area A100 and AF area A C schematically 本発明の第1の実施形態に係る撮影制御方法を示すフローチャート1 is a flowchart illustrating a shooting control method according to a first embodiment of the present invention. 本発明の第2の実施形態に係る撮影制御方法を示すフローチャート7 is a flowchart showing a shooting control method according to the second embodiment of the present invention. 本発明の第2の実施形態に係るAF処理の流れを示すフローチャートThe flowchart which shows the flow of the AF process which concerns on the 2nd Embodiment of this invention. 原稿エリアA100を分割した例を示す図The figure which shows the example which divided | segmented original area A100 AF処理の別の実施形態を示すフローチャートFlowchart showing another embodiment of AF processing 本発明の第3の実施形態に係る撮影制御方法を示すフローチャート7 is a flowchart showing a shooting control method according to the third embodiment of the present invention. 本発明の第3の実施形態に係るAF制御の流れを示すフローチャートThe flowchart which shows the flow of AF control which concerns on the 3rd Embodiment of this invention. 本発明の第4の実施形態に係る撮影制御方法を示すフローチャート7 is a flowchart showing a shooting control method according to the fourth embodiment of the present invention. 本発明の第4の実施形態に係るAF制御の流れを示すフローチャートThe flowchart which shows the flow of AF control concerning the 4th Embodiment of this invention. 本発明の第5の実施形態に係る撮影装置を示すブロック図The block diagram which shows the imaging device which concerns on the 5th Embodiment of this invention. 本発明の第5の実施形態に係る撮影制御方法を示すフローチャート9 is a flowchart showing a shooting control method according to the fifth embodiment of the present invention. 本発明の第6の実施形態に係る撮影装置を示すブロック図The block diagram which shows the imaging device which concerns on the 6th Embodiment of this invention. 本発明の第6の実施形態に係る撮影制御の流れを説明するための図The figure for demonstrating the flow of imaging | photography control which concerns on the 6th Embodiment of this invention. 本発明の第6の実施形態に係る撮影制御方法を示すフローチャート9 is a flowchart showing a shooting control method according to the sixth embodiment of the present invention.

符号の説明Explanation of symbols

10…撮影装置、12…CPU、14…電源部、16…操作部、18…モード設定部、20…撮影部、22…レンズ部、24…レンズ制御部、26…AF部、28…AE部、30…メモリー部、32…原稿認識部、34…原稿4隅認識部、36…原稿中心算出部、38…歪処理部、40…外部出力部、42…画像合成部、100…原稿、200…プロジェクター   DESCRIPTION OF SYMBOLS 10 ... Imaging device, 12 ... CPU, 14 ... Power supply part, 16 ... Operation part, 18 ... Mode setting part, 20 ... Shooting part, 22 ... Lens part, 24 ... Lens control part, 26 ... AF part, 28 ... AE part , 30 ... Memory section, 32 ... Document recognition section, 34 ... Document four corner recognition section, 36 ... Document center calculation section, 38 ... Distortion processing section, 40 ... External output section, 42 ... Image composition section, 100 ... Document, 200 …projector

Claims (24)

略長方形の原稿の画像を撮影する撮影手段と、
前記原稿の画像から前記原稿が写っている原稿エリアを認識する原稿認識手段と、
前記原稿エリアの中心位置を算出する中心位置算出手段と、
前記撮影手段を制御して、前記中心位置にピントを合わせる合焦制御手段と、
前記合焦制御手段によってピントを合わせた後に前記撮影手段によって撮影された画像から、前記原稿認識手段によって認識された前記原稿エリアの歪を補正した画像を作成する原稿画像補正手段と、
を備える撮影装置。
Photographing means for photographing an image of a substantially rectangular document;
Document recognition means for recognizing a document area in which the document is shown from an image of the document;
Center position calculating means for calculating the center position of the document area;
Focus control means for controlling the photographing means to focus on the center position;
A document image correcting unit that creates an image in which distortion of the document area recognized by the document recognition unit is corrected from an image shot by the shooting unit after focusing by the focusing control unit;
An imaging device comprising:
前記中心位置算出手段は、前記原稿エリアの4つの頂点の位置を検出し、前記4つの頂点を結んで得られる前記原稿エリアの対角線の交点を前記中心位置として算出する、請求項1記載の撮影装置。   2. The photographing according to claim 1, wherein the center position calculating unit detects positions of four vertices of the document area and calculates an intersection of diagonal lines of the document area obtained by connecting the four vertices as the center position. apparatus. 前記合焦制御手段は、前記原稿エリアを分割して得られた複数のエリアのうち前記中心位置を含む中心エリアにピントを合わせる、請求項1又は2記載の撮影装置。   The photographing apparatus according to claim 1, wherein the focusing control unit focuses on a central area including the central position among a plurality of areas obtained by dividing the document area. 前記中心エリアにピントを合わせたときの焦点評価値を取得し、該焦点評価値に基づいてピント合わせの精度を評価する合焦精度評価手段を更に備え、
前記合焦制御手段は、前記中心エリアのピント合わせの精度が低いと評価した場合に、前記中心エリアの近傍のエリアのうち、前記ピント合わせの精度が高いと評価されたエリアにピントを合わせる、請求項1から3のいずれか1項記載の撮影装置。
A focus accuracy evaluation unit that obtains a focus evaluation value when focusing on the center area and evaluates the accuracy of focusing based on the focus evaluation value is further provided.
When the focus control unit evaluates that the accuracy of focusing in the center area is low, out of the areas near the center area, focus on the area evaluated as having high accuracy in focusing, The imaging device according to any one of claims 1 to 3.
前記合焦精度評価手段は、前記中心エリアのピント合わせの精度が低いと評価した場合に、前記中心エリアに対して前記原稿の画像の水平方向に隣接する隣接エリアのピント合わせの精度を評価し、
前記合焦制御手段は、前記隣接エリアのピント合わせの精度が高いと評価した場合に、前記隣接エリアに対してピントを合わせる、請求項4記載の撮影装置。
The focusing accuracy evaluation means evaluates the focusing accuracy of an adjacent area adjacent to the central area in the horizontal direction of the image of the original when the focusing accuracy of the central area is evaluated to be low. ,
The imaging apparatus according to claim 4, wherein the focusing control unit focuses on the adjacent area when it is evaluated that the accuracy of focusing on the adjacent area is high.
前記合焦精度評価手段は、前記中心エリア及び前記隣接エリアのいずれもピント合わせの精度が低いと評価した場合に、前記中心エリアよりも前記撮影装置に近い手前側エリアのピント合わせの精度を評価し、
前記合焦制御手段は、前記手前側エリアのピント合わせの精度が高いと評価した場合に、前記手前側エリアに対してピントを合わせる、請求項5記載の撮影装置。
The focusing accuracy evaluation unit evaluates the focusing accuracy of the near side area closer to the photographing apparatus than the central area when the focusing accuracy is evaluated to be low in both the central area and the adjacent area. And
The photographing apparatus according to claim 5, wherein the focusing control unit focuses on the near side area when it is evaluated that the near side area has high focusing accuracy.
略長方形の原稿の画像を撮影する撮影手段と、
前記撮影した画像から前記原稿が写っている原稿エリアを認識する原稿認識手段と、
前記原稿エリアの4つの頂点の位置を検出する頂点検出手段と、
前記撮影手段を制御して、前記原稿エリアの4つの頂点を含む頂点エリアにピントを合わせた場合のピント位置を検出し、前記頂点エリアのピント位置の平均フォーカス位置にフォーカスを移動する合焦制御手段と、
前記合焦制御手段によってピントを合わせた後に前記撮影手段によって撮影された画像から、前記原稿認識手段によって認識された前記原稿エリアの歪を補正した画像を作成する原稿画像補正手段と、
を備える撮影装置。
Photographing means for photographing an image of a substantially rectangular document;
Document recognition means for recognizing a document area in which the document is shown from the photographed image;
Vertex detection means for detecting the positions of the four vertices of the document area;
Focus control for controlling the photographing means to detect a focus position when a focus area including the four vertices of the document area is focused, and to move the focus to an average focus position of the focus position of the vertex area Means,
A document image correcting unit that creates an image in which distortion of the document area recognized by the document recognition unit is corrected from an image captured by the imaging unit after focusing by the focusing control unit;
An imaging device comprising:
前記平均フォーカス位置にピントを合わせた後、前記頂点エリアが被写界深度内に収まるように絞り値を調整する絞り値調整手段を更に備える請求項7記載の撮影装置。   The photographing apparatus according to claim 7, further comprising an aperture value adjusting unit that adjusts an aperture value so that the vertex area falls within a depth of field after focusing on the average focus position. 略長方形の原稿の画像を撮影する撮影手段と、
前記撮影した画像から前記原稿が写っている原稿エリアを認識する第1の原稿認識手段と、
前記撮影手段を制御して、前記原稿エリアを分割した複数のエリアにズームして各エリアの画像を撮影する撮影制御手段と、
前記撮影手段によって撮影された各エリアの画像から前記原稿が写っている原稿エリアを認識する第2の原稿認識手段と、
前記各エリアの画像から検出された前記原稿エリアの歪を補正した画像を作成する原稿画像補正手段と、
前記第2の原稿認識手段によって検出され、歪が補正された各エリアの画像を合成して前記原稿の全体の画像を作成する画像合成手段と、
を備える撮影装置。
Photographing means for photographing an image of a substantially rectangular document;
First document recognition means for recognizing a document area in which the document is shown from the photographed image;
Shooting control means for controlling the shooting means to zoom into a plurality of areas obtained by dividing the document area and shooting images of each area;
Second document recognition means for recognizing a document area in which the document is shown from images of each area photographed by the photographing means;
A document image correcting means for creating an image in which distortion of the document area detected from the image of each area is corrected;
Image composition means for composing an image of each area detected by the second document recognition means and corrected for distortion to create an image of the entire document;
An imaging device comprising:
前記第1の原稿認識手段によって検出された前記原稿エリアの4つの頂点の位置を検出する頂点検出手段と、
前記第1の原稿認識手段によって検出された前記原稿エリアの中心位置を算出する中心位置算出手段とを備え、
前記撮影制御手段は、前記4つの頂点のうち前記撮影装置に近い手前側の2つの頂点の前記原稿の画像の水平方向の間隔が前記撮影手段の視野の水平方向の幅と略一致するようにズーム制御を行って、前記原稿エリアの前記撮影装置に近い手前側エリアを撮影し、前記中心位置を通り、前記水平方向に伸びる前記原稿エリア内の線分の長さが前記撮影手段の視野の水平方向の幅と略一致するようにズーム制御を行って、前記原稿エリアのうち前記撮影装置から遠い奥側エリアを撮影する、請求項9記載の撮影装置。
Vertex detection means for detecting positions of four vertices of the document area detected by the first document recognition means;
Center position calculation means for calculating the center position of the document area detected by the first document recognition means;
The photographing control unit is configured so that a horizontal interval of the image of the document at two vertices nearer to the photographing device among the four vertices substantially matches a horizontal width of the field of view of the photographing unit. Zoom control is performed to photograph the near side area of the document area close to the photographing device, and the length of a line segment in the document area passing through the center position and extending in the horizontal direction is the field of view of the photographing unit. The photographing apparatus according to claim 9, wherein zoom control is performed so as to substantially match a horizontal width, and a far side area far from the photographing apparatus is photographed in the document area.
前記原稿エリアを複数のエリアに分割し、前記撮影手段を制御してピント合わせを行う合焦制御手段であって、前記手前側エリアの撮影時に、前記手前側の2つの頂点を含む手前側頂点エリアにピントを合わせた場合のピント位置を検出し、前記手前側頂点エリアのピント位置の平均フォーカス位置にフォーカスを移動する一方、前記奥側エリアの撮影時に、前記撮影装置から遠い側の2つの頂点を含む奥側頂点エリアにピントを合わせた場合のピント位置を検出し、前記奥側頂点エリアのピント位置の平均フォーカス位置にフォーカスを移動する合焦制御手段を更に備える請求項10記載の撮影装置。   A focus control unit that divides the document area into a plurality of areas and controls the photographing unit to perform focusing, and includes a front vertex including the two front vertices when photographing the front area The focus position when the area is in focus is detected, and the focus is moved to the average focus position of the focus position of the near-side vertex area. On the other hand, when photographing the back area, The photographing according to claim 10, further comprising a focus control unit that detects a focus position when focusing on a back vertex area including a vertex and moves a focus to an average focus position of a focus position of the back vertex area. apparatus. 前記撮影手段によって撮影された画像を2値化する画像処理手段を更に備え、
前記原稿認識手段は、前記2値化された画像から前記原稿エリアを検出する、請求項1から11のいずれか1項記載の撮影装置。
Image processing means for binarizing the image taken by the photographing means;
The photographing apparatus according to claim 1, wherein the document recognition unit detects the document area from the binarized image.
前記原稿の少なくとも4隅にプリントされたマーカを検出するマーカ検出手段を更に備え、
前記原稿認識手段は、前記マーカを検出して前記原稿エリアを認識する、請求項1から11のいずれか1項記載の撮影装置。
Marker detection means for detecting markers printed at at least four corners of the document,
The photographing apparatus according to claim 1, wherein the document recognition unit recognizes the document area by detecting the marker.
前記原稿上に形成されたマーカを検出するマーカ検出手段を更に備え、
前記原稿画像補正手段は、前記マーカを検出し、前記マーカの形状に基づいて前記原稿の向きを検出する、請求項1から13のいずれか1項記載の撮影装置。
Marker detection means for detecting a marker formed on the document is further provided,
The photographing apparatus according to claim 1, wherein the document image correcting unit detects the marker and detects an orientation of the document based on a shape of the marker.
前記原稿エリア内の画像に基づいて露出制御を行う露出制御手段を更に備える請求項1から14のいずれか1項記載の撮影装置。   The photographing apparatus according to claim 1, further comprising an exposure control unit that performs exposure control based on an image in the document area. 前記露出制御手段は、前記原稿エリア内の画像に対して、平均測光、ピーク測光又はマルチパターン測光を行って、前記測光結果に基づいて露光制御を行う、請求項15記載の撮影装置。   The photographing apparatus according to claim 15, wherein the exposure control unit performs average photometry, peak photometry, or multi-pattern photometry on an image in the document area, and performs exposure control based on the photometry result. (1a) 撮影手段により略長方形の原稿の画像を撮影し、
(1b) 前記原稿の画像から前記原稿が写っている原稿エリアを認識し、
(1c) 前記原稿エリアの中心位置を算出し、
(1d) 前記撮影手段を制御して、前記中心位置にピントを合わせ、
(1e) 前記中心位置にピントを合わせた後に前記撮影手段によって前記原稿を撮影し、
(1f) 前記(1e)において撮影された画像から前記原稿エリアを認識し、
(1g) 前記(1f)において認識された前記原稿エリアの歪を補正した画像を作成する撮影制御方法。
(1a) An image of a substantially rectangular document is photographed by photographing means,
(1b) Recognizing an original area where the original is shown from the image of the original;
(1c) The center position of the document area is calculated,
(1d) controlling the photographing means to focus on the center position;
(1e) The original is photographed by the photographing means after focusing on the center position,
(1f) Recognizing the original area from the image taken in (1e),
(1g) A shooting control method for creating an image in which the distortion of the document area recognized in (1f) is corrected.
前記(1d)において、
前記中心エリアにピントを合わせたときの焦点評価値を取得し、該焦点評価値に基づいてピント合わせの精度を評価し、
前記中心エリアのピント合わせの精度が低いと評価した場合に、前記中心エリアの近傍のエリアのうち、前記ピント合わせの精度が高いと評価されたエリアにピントを合わせる請求項17記載の撮影制御方法。
In (1d) above,
Obtain a focus evaluation value when focusing on the central area, evaluate the accuracy of focusing based on the focus evaluation value,
The photographing control method according to claim 17, wherein when it is evaluated that the accuracy of focusing in the center area is low, focusing is performed on an area that is evaluated as having high accuracy in focusing among areas near the center area. .
(2a) 撮影手段により略長方形の原稿の画像を撮影し、
(2b) 前記撮影した画像から前記原稿が写っている原稿エリアを認識し、
(2c) 前記原稿エリアの4つの頂点の位置を検出し、
(2d) 前記撮影手段を制御して、前記原稿エリアの4つの頂点を含む頂点エリアにピントを合わせた場合のピント位置を検出し、前記頂点エリアのピント位置の平均フォーカス位置にフォーカスを移動させ、
(2e) 前記(2d)においてピントを合わせた後に前記撮影手段によって前記原稿を撮影し、
(2f) 前記(2e)において撮影された画像から前記原稿エリアを認識し、
(2g) 前記(2f)において認識された前記原稿エリアの歪を補正した画像を作成する撮影制御方法。
(2a) An image of a substantially rectangular document is photographed by photographing means,
(2b) Recognizing a document area where the document is shown from the captured image,
(2c) detecting the positions of the four vertices of the document area;
(2d) The photographing unit is controlled to detect the focus position when the vertex area including the four vertices of the document area is focused, and the focus is moved to the average focus position of the focus area of the vertex area. ,
(2e) The original is photographed by the photographing means after focusing in (2d),
(2f) Recognizing the original area from the image taken in (2e),
(2g) A shooting control method for creating an image in which the distortion of the document area recognized in (2f) is corrected.
前記平均フォーカス位置にピントを合わせた後、前記頂点エリアが被写界深度内に収まるように絞り値を調整する請求項19記載の撮影制御方法。   The imaging control method according to claim 19, wherein after the focus is adjusted to the average focus position, an aperture value is adjusted so that the vertex area is within the depth of field. (3a) 前記撮影手段により略長方形の原稿の画像を撮影し、
(3b) 前記撮影した画像から前記原稿が写っている原稿エリアを認識し、
(3c) 前記撮影手段を制御して、前記原稿エリアを分割した複数のエリアにズームして各エリアの画像を撮影し、
(3d) 前記(3c)において撮影された各エリアの画像から前記原稿が写っている原稿エリアを検出し、
(3e) 前記各エリアの画像から検出された前記原稿エリアの歪を補正した画像を作成し、
(3f) 前記(3e)において歪が補正された各エリアの画像を合成して前記原稿の全体の画像を作成する撮影制御方法。
(3a) An image of a substantially rectangular document is photographed by the photographing means,
(3b) Recognizing a document area where the document is shown from the captured image;
(3c) controlling the photographing means to zoom into a plurality of areas obtained by dividing the document area and photographing images of each area;
(3d) detecting a document area in which the document is captured from the image of each area photographed in (3c);
(3e) Create an image in which the distortion of the document area detected from the image of each area is corrected,
(3f) A shooting control method for creating an image of the entire original by combining the images of the respective areas whose distortion has been corrected in (3e).
前記(3c)において、
前記原稿エリアの4つの頂点の位置を検出し、
前記原稿エリアの中心位置を算出し、
前記4つの頂点のうち前記撮影手段に近い手前側の2つの頂点の前記原稿の画像の水平方向の間隔が前記撮影手段の視野の水平方向の幅と略一致するようにズーム制御を行って、前記原稿エリアの前記撮影装置に近い手前側エリアを撮影し、
前記中心位置を通り、前記水平方向に伸びる前記原稿エリア内の線分の長さが前記撮影手段の視野の水平方向の幅と略一致するようにズーム制御を行って、前記原稿エリアのうち前記撮影装置から遠い奥側エリアを撮影する請求項21記載の撮影制御方法。
In (3c) above,
Detecting the positions of the four vertices of the document area;
Calculate the center position of the document area,
Zoom control is performed so that the horizontal interval of the image of the original of the two vertices nearer to the photographing unit among the four vertices substantially coincides with the horizontal width of the field of view of the photographing unit, Shoot the near side area of the document area close to the photographing device,
Zoom control is performed so that the length of a line segment in the document area extending in the horizontal direction passing through the center position substantially coincides with the horizontal width of the field of view of the photographing unit, The imaging control method according to claim 21, wherein an area on the far side far from the imaging apparatus is imaged.
前記手前側エリアの撮影時に、前記手前側の2つの頂点を含む手前側頂点エリアにピントを合わせた場合のピント位置を検出し、前記手前側頂点エリアのピント位置の平均フォーカス位置にフォーカスを移動し、
前記奥側エリアの撮影時に、前記撮影装置から遠い側の2つの頂点を含む奥側頂点エリアにピントを合わせた場合のピント位置を検出し、前記奥側頂点エリアのピント位置の平均フォーカス位置にフォーカスを移動する請求項22記載の撮影制御方法。
When photographing the near side area, the focus position when the near side vertex area including the two near top vertices is focused is detected, and the focus is moved to the average focus position of the focus position of the near side vertex area. And
At the time of shooting in the back area, the focus position when the focus is adjusted to the back vertex area including the two vertices on the side far from the imaging device is detected, and the average focus position of the focus position in the back vertex area is detected. The photographing control method according to claim 22, wherein the focus is moved.
前記原稿エリア内の画像に基づいて露出制御を行う請求項17から24のいずれか1項記載の撮影制御方法。   25. The photographing control method according to claim 17, wherein exposure control is performed based on an image in the document area.
JP2008200730A 2008-08-04 2008-08-04 Photographic apparatus and photographic control method Pending JP2010041300A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008200730A JP2010041300A (en) 2008-08-04 2008-08-04 Photographic apparatus and photographic control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008200730A JP2010041300A (en) 2008-08-04 2008-08-04 Photographic apparatus and photographic control method

Publications (1)

Publication Number Publication Date
JP2010041300A true JP2010041300A (en) 2010-02-18

Family

ID=42013386

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008200730A Pending JP2010041300A (en) 2008-08-04 2008-08-04 Photographic apparatus and photographic control method

Country Status (1)

Country Link
JP (1) JP2010041300A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014127902A (en) * 2012-12-27 2014-07-07 Kyocera Document Solutions Inc Image correction data generation device and image correction data generation program
WO2017158814A1 (en) * 2016-03-18 2017-09-21 株式会社Pfu Mobile terminal, image processing method, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014127902A (en) * 2012-12-27 2014-07-07 Kyocera Document Solutions Inc Image correction data generation device and image correction data generation program
WO2017158814A1 (en) * 2016-03-18 2017-09-21 株式会社Pfu Mobile terminal, image processing method, and program

Similar Documents

Publication Publication Date Title
JP4674471B2 (en) Digital camera
JP6140935B2 (en) Image processing apparatus, image processing method, image processing program, and imaging apparatus
TWI399977B (en) Image capture apparatus and program
JP4665718B2 (en) Imaging device
JP2006211139A (en) Imaging apparatus
EP2199978A1 (en) Image capturing apparatus having subject cut-out function
JP2015004922A (en) Focus adjustment device and imaging device
JP4552997B2 (en) Imaging apparatus and program
JP2010226157A (en) Camera, and image correction method
JP2008052123A (en) Imaging apparatus
JP6336148B2 (en) Image processing apparatus, image processing method, image processing program, and imaging apparatus
JP2011087128A (en) Pantoscopic camera and method for discrimination of object
JP4506779B2 (en) Imaging apparatus and program
JP5338197B2 (en) Focus detection apparatus and imaging apparatus
JP4878978B2 (en) Imaging apparatus and imaging method
US8649561B2 (en) Subject designating device and subject tracking apparatus
JP2019117395A (en) Imaging device
JP2010041300A (en) Photographic apparatus and photographic control method
JP2008090059A (en) Imaging apparatus and autofocus control method therefor
JP2015207090A (en) Image processor, and control method thereof
JP6381206B2 (en) Image processing apparatus, control method thereof, and program
JP6039301B2 (en) IMAGING DEVICE, IMAGING SYSTEM, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP2005284203A (en) Digital still camera and its control method
JP2011033990A (en) Compound eye photographing device and photographing method
JP5499856B2 (en) Image evaluation device