JP2010041300A - Photographic apparatus and photographic control method - Google Patents
Photographic apparatus and photographic control method Download PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000003384 imaging method Methods 0.000 claims description 50
- 238000011156 evaluation Methods 0.000 claims description 47
- 239000003550 marker Substances 0.000 claims description 29
- 238000005375 photometry Methods 0.000 claims description 8
- 238000001514 detection method Methods 0.000 claims description 7
- 239000000203 mixture Substances 0.000 claims description 3
- 239000000284 extract Substances 0.000 abstract description 13
- 230000006866 deterioration Effects 0.000 abstract description 4
- 238000006243 chemical reaction Methods 0.000 description 16
- 230000009466 transformation Effects 0.000 description 11
- PXFBZOLANLWPMH-UHFFFAOYSA-N 16-Epiaffinine Natural products C1C(C2=CC=CC=C2N2)=C2C(=O)CC2C(=CC)CN(C)C1C2CO PXFBZOLANLWPMH-UHFFFAOYSA-N 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 240000004282 Grewia occidentalis Species 0.000 description 5
- 230000015556 catabolic process Effects 0.000 description 5
- 238000006731 degradation reaction Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Landscapes
- Studio Devices (AREA)
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
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
特許文献2には、回転ミラーの回転位置を原稿の読み取り位置に応じて制御しながら、回転ミラーからの光を1次元固体撮影素子に結像させて原稿を撮影する画像読み取り装置が開示されている。
特許文献1では、葉書を斜めから撮影した場合に、葉書全体にピントを合わせるのが難しい。また、斜めから撮影されて歪んだ画像を射影変換すると、ピントが合っていない部分(例えば、中抜けした部分)の画質が劣化する。
In
特許文献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
図1に示すように、本実施形態に係る撮影装置10は、長方形の原稿100を撮影して得られた画像P100から原稿100が写っている原稿エリアA100を抽出する。撮影装置10は、原稿エリアA100の中心位置に合焦するように自動焦点調節(AF)を行った後、原稿100を撮影する。そして、撮影装置10は、AF後に撮影した画像から原稿エリアA100を抽出し、原稿エリアA100の歪みを補正して原稿100の形状を再現するとともに、原稿エリアA100の向きを補正し、出力用の原稿画像を作成する。
As shown in FIG. 1, the photographing
プロジェクター200は、撮影装置10から原稿画像100′を受信してスクリーン300に投影する。
The
図3は、本発明の第1の実施形態に係る撮影装置を示すブロック図である。 FIG. 3 is a block diagram showing the photographing apparatus according to the first embodiment of the present invention.
本実施形態に係る撮影装置10は、画像を撮影して電子データとして記録する電子カメラである。
The photographing
中央処理装置(CPU)12は、所定のプログラムに従って撮影装置10全体の動作を制御し、自動焦点調節(AF)演算、自動露出(AE)演算及びホワイトバランス(WB)調整演算を含む各種演算を実施する。
A central processing unit (CPU) 12 controls the overall operation of the photographing
電源部14は、バッテリ及び電源制御回路を含んでおり、撮影装置10内の各部に電力を供給する。
The
操作部16は、ユーザからの操作入力を受け付ける操作部材であり、電源スイッチ及びシャッタースイッチを含んでいる。電源スイッチは、撮影装置10の電源のオン・オフを切り替えるための操作部材である。シャッタースイッチは、撮影開始の指示を入力する操作部材である。
The
操作部16からの信号はCPU12に入力される。CPU12は、操作部16からの入力信号に基づいて撮影装置10の各回路を制御し、例えば、レンズ駆動制御、撮影動作制御、画像処理制御、画像データの記録/再生制御を行う。
A signal from the
モード設定部18は、撮影装置10の動作モードの切り替え操作を受け付ける操作部材である。撮影装置10の動作モードは、モード設定部18からの操作入力に応じて、通常の撮影モード(静止画撮影モード及び動画撮影モード)、原稿撮影モード及び画像を再生する再生モードとの間で切り替わる。
The
撮影部20は、フォーカスレンズ、ズームレンズ及び絞りを含むレンズ部22、レンズ部を駆動制御するレンズ制御部24及び撮像素子(CCD又はCMOS)を含んでいる。
The photographing
AF部26は、撮像素子から得られたG信号の高周波成分のみを通過させるハイパスフィルタ、ハイパスフィルタからの出力信号の絶対値をとる絶対値化処理部、画面内にあらかじめ設定されているフォーカス対象エリア(以下、AFエリアという)内の信号を切り出すAFエリア抽出部、及びAFエリア内の絶対値を積算して積算値(焦点評価値(AF評価値))を得る積算部を含んでいる。CPU12は、フォーカスレンズを移動させて複数のフォーカス位置におけるAF評価値を取得し、AF評価値が極大となるレンズ位置をピント位置として決定し、上記ピント位置にフォーカスレンズを移動させる。なお、AF評価値は、輝度信号(Y信号)から求めるようにしてもよい。
The
AE部28は、撮像素子から出力された画像1画面を複数の分割エリア(例えば、8×8又は16×16)に分割し、分割エリアごとにR、G、B信号を積算する。CPU12は、AE部28から取得した積算値に基づいて被写体の明るさ(被写体輝度)を検出し、撮影に適した露出値(撮影EV値)を算出する。CPU12は、求めた露出値と所定のプログラム線図に従って、絞り値とシャッタースピードを決定し、撮像素子の電子シャッター機能及び絞りを制御して露光量を調節する。
The
メモリー部30は、記録メディア(例えば、xDピクチャカード(登録商標)又はSDカード(登録商標))及び記録メディアを着脱自在に装着するソケットを含んでおり、撮影部20によって撮影された画像を所定の形式の画像ファイルとして記録メディアに記録する。
The
通常の撮影モード時には、CPU12は、シャッタースイッチの半押しを検出すると、AF部26及びAE部28からそれぞれAF評価値及び積算値を取得して、AF制御及びAE制御を行う。CPU12は、シャッタースイッチの全押しを検出すると、画像の取り込みを行う。そして、CPU12は、取り込んだ画像を所定の形式の画像データファイルに変換してメモリー部30に出力する。
In the normal shooting mode, when the
[原稿撮影モード]
次に、原稿撮影モード時における撮影装置10の動作について説明する。
[Original mode]
Next, the operation of the photographing
原稿撮影モード時には、図1に示すように、撮影中に撮影装置10と原稿100の相対位置が変化しないように机400に置いて撮影を行う。
In the document shooting mode, as shown in FIG. 1, shooting is performed by placing on the
CPU12は、原稿撮影モード時にシャッタースイッチの全押しを検出すると、撮影部20を制御して原稿100の撮影を実行する。なお、原稿撮影モード時には、原稿100の撮影は、シャッタースイッチの押下のタイミングで実行されるほか、所定の時間間隔で自動的に実行される。
When the
CPU12は、撮影部20の撮像素子から出力された画素ごとの画像信号を2値化して2値エッジ画像を生成する。
The
原稿認識部32は、2値エッジ画像から原稿100の輪郭B100を検出し、輪郭B100に囲まれる原稿エリアA100を抽出する。
The
原稿4隅認識部34は、輪郭B100から原稿100の4隅の頂点D1,D2,D3,D4を検出し、4頂点D1,D2,D3,D4の位置を示す座標を取得する。
The document four-
原稿中心算出部36は、原稿100の対向する頂点を結ぶ対角線D1D4及び,D2D3の交点DCの座標を原稿エリアA100の中心位置として算出する。なお、対角線の交点DCに代えて、例えば、原稿エリアA100の重心、内接円又は外接円の中心を原稿エリアA100の中心位置としてもよい。
The document
CPU12は、原稿エリアA100を所定の分割エリアに分割し、図4に示す交点DCを中心とするエリアACをAFエリアに設定する。そして、CPU12は、撮影部20及びAF部26を制御して複数のフォーカス位置においてAFエリアACのAF評価値を取得し、AFエリアACにピントが合うように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,
CPU12は、AF制御の終了後、原稿100を再度撮影する。原稿認識部32は、再撮影された原稿の画像から輪郭B100を検出し、輪郭B100により囲まれる原稿エリアA100を切り取る。
The
歪処理部38は、再撮影された画像から切り取られた原稿エリアA100に投影変換(射影変換(例えば、アフィン変換))を施して原稿エリアA100の歪を補正し、長方形の原稿画像を作成する。
The
CPU12は、歪処理部38によって歪補正された原稿エリアA100の上下の向きを検出して補正し、出力用原稿画像100′を作成する。出力用原稿画像100′は、外部出力部40を介してプロジェクター200に出力され、図1に示すように、スクリーン300に投影される。
The
本実施形態では、上下検出用のマーカUPが原稿100上に印刷されている。CPU12は、画像中の原稿エリアからこのマーカを検出することにより、原稿エリアA100の上下の向きを検出する。なお、原稿100上又は原稿100近傍にマーカUPが形成された部材を置くようにしてもよい。また、原稿エリアA100の上下の向きは、例えば、原稿100上にプリントされた文字又は画像を認識して検出するようにしてもよい。
In the present embodiment, an up / down detection marker UP is printed on the
次に、本発明の第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
CPU12は、撮影部20の撮像素子から出力された画素ごとの画像信号を2値化して2値エッジ画像を生成する(ステップS16)。原稿認識部32は、原稿エリアA100を抽出する(ステップS18)。
The
原稿4隅認識部34は、原稿100の4頂点D1,D2,D3,D4を検出し、4頂点D1,D2,D3,D4の座標を取得する(ステップS20)。
Document 4
原稿中心算出部36は、原稿100の対向する頂点を結ぶ対角線D1D4とD2D3の交点DCの座標を算出する(ステップS22)。
Original
CPU12は、交点DCを中心とするAFエリアACにピントが合うように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
CPU12は、歪処理部38によって歪補正された原稿エリアA100の上下の向きを検出して補正して出力用原稿画像100′を作成し、プロジェクター200に出力する(ステップS32)。これにより、出力用原稿画像100′が外部出力部40を介してプロジェクター200に出力され、スクリーン300に投影される。
The
本実施形態によれば、長方形の原稿100の対角線の交点DCを中心とするAFエリアACにピントを合わせるようにしたので、原稿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
[第2の実施形態]
次に、本発明の第2の実施形態について説明する。本実施形態は、原稿エリアA100の対角線の交点AC付近にある分割エリアのうち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
図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
CPU12は、撮影部20の撮像素子から出力された画素ごとの画像信号を2値化して2値エッジ画像を生成する(ステップS46)。原稿認識部32は、原稿エリアA100を抽出する(ステップS48)。
The
原稿4隅認識部34は、原稿100の4頂点D1,D2,D3,D4を検出し、4頂点D1,D2,D3,D4の座標を取得する(ステップS50)。
Original four
原稿中心算出部36は、原稿100の対向する頂点を結ぶ対角線D1D4とD2D3の交点DCの座標を算出する(ステップS52)。
Original
CPU12は、原稿エリアA100上の交点DC付近を分割し、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
次に、原稿認識部32は、再撮影された原稿の画像から原稿エリアA100を切り取る。歪処理部38は、原稿認識部32によって切り取られた原稿エリアA100に射影変換(例えば、アフィン変換)を施して原稿エリアA100の歪を補正し、長方形の原稿画像を作成する(ステップS60)。
Next, the
CPU12は、歪処理部38によって歪補正された原稿エリアA100の上下の向きを検出して補正して出力用原稿画像100′を作成し、プロジェクター200に出力する(ステップS62)。これにより、出力用原稿画像100′が外部出力部40を介してプロジェクター200に出力され、スクリーン300に投影される。
The
図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
次に、CPU12は、対角線D1D4とD2D3の交点DCを含む中心エリアA3Cにピントを合わせた場合のAF評価値が信頼できる値であるかどうか判定する(ステップS74)。本実施形態では、ピント合わせの精度(合焦精度)が十分に得られるようなAF評価値(極大値)の閾値があらかじめ定められている。ステップS74では、CPU12は、中心エリアA3CのAF評価値がこの閾値以上かどうかに基づいてAF評価値の信頼度を判定する。
Then,
中心エリア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
一方、中心エリア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
図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
次に、CPU12は、対角線D1D4とD2D3の交点DCを含む中心エリアA3Cにピントを合わせた場合のAF評価値が信頼できる値であるかどうか判定する(ステップS84)。
Then,
中心エリア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
一方、中心エリア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
一方、分割エリア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
本実施形態によれば、中心エリア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
[第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
図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
CPU12は、撮影部20の撮像素子から出力された画素ごとの画像信号を2値化して2値エッジ画像を生成する(ステップS106)。原稿認識部32は、原稿エリアA100を抽出する(ステップS108)。
The
原稿4隅認識部34は、原稿100の4頂点D1,D2,D3,D4を検出し、4頂点D1,D2,D3,D4の座標を取得する(ステップS110)。
Original four
CPU12は、撮影部20及びAF部26を制御してAFサーチを実行する(ステップS112)。そして、CPU12は、4頂点D1,D2,D3,D4を含む分割エリアA1A,A1E,A5A,A5Eのピント位置を検出する(ステップS114)。
The
次に、CPU12は、分割エリアA1A,A1E,A5A,A5Eのピント位置の平均値(以下、平均フォーカス位置という。)を算出する(ステップS116)。そして、CPU12は、撮影部20を制御して、ステップS116において算出した平均フォーカス位置にフォーカスレンズを移動させ(ステップS118)、原稿の画像を再度取り込む(ステップS120)。
Next, the
次に、原稿認識部32は、再撮影された原稿の画像から原稿エリアA100を切り取る。歪処理部38は、原稿認識部32によって切り取られた原稿エリアA100に射影変換(例えば、アフィン変換)を施して原稿エリアA100の歪を補正し、長方形の原稿画像を作成する(ステップS122)。
Next, the
CPU12は、歪処理部38によって歪補正された原稿エリアA100の上下の向きを検出して補正して出力用原稿画像100′を作成し、プロジェクター200に出力する(ステップS124)。これにより、出力用原稿画像100′が外部出力部40を介してプロジェクター200に出力され、スクリーン300に投影される。
The
図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頂点D1,D2,D3,D4を含む分割エリアA1A,A1E,A5A,A5Eのピント位置を検出する(ステップS132)。
First, the
次に、CPU12は、分割エリアA1A,A1E,A5A,A5Eのピント位置の平均フォーカス位置を算出し、撮影部20を制御して、ステップS116において算出した平均フォーカス位置にフォーカスレンズを移動させる(ステップS134)。
Next, the
本実施形態によれば、原稿エリアA100の4隅の分割エリアのピント位置の平均フォーカス位置にフォーカス位置を移動することにより、4頂点D1,D2,D3,D4と撮影装置10との間の距離が異なる状態で原稿100を撮影した場合にも、ピント合わせを適切に行うことができる。これにより、原稿100が写っている原稿エリアA100の歪を補正したときに生じる画像の劣化を防止することができる。
According to the present embodiment, the four vertexes D 1 , D 2 , D 3 , D 4 , the photographing
[第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
図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
CPU12は、撮影部20の撮像素子から出力された画素ごとの画像信号を2値化して2値エッジ画像を生成する(ステップS146)。原稿認識部32は、原稿エリアA100を抽出する(ステップS148)。
The
原稿4隅認識部34は、原稿100の4頂点D1,D2,D3,D4を検出し、4頂点D1,D2,D3,D4の座標を取得する(ステップS150)。
Original four
CPU12は、撮影部20及びAF部26を制御してAFサーチを実行する(ステップS152)。そして、CPU12は、4頂点D1,D2,D3,D4を含む分割エリアA1A,A1E,A5A,A5Eのピント位置を検出する(ステップS154)。
The
次に、CPU12は、分割エリアA1A,A1E,A5A,A5Eのピント位置の平均値(以下、平均フォーカス位置という。)を算出する(ステップS156)。そして、CPU12は、撮影部20を制御して、ステップS156において算出した平均フォーカス位置にフォーカスレンズを移動させる(ステップS158)。そして、CPU12は、分割エリアA1A,A1E,A5A,A5Eの焦点深度が被写界深度内に収まるように、撮影部20の絞り値を変更し(ステップS160)、原稿の画像を再度取り込む(ステップS162)。
Next, the
次に、原稿認識部32は、再撮影された原稿の画像から原稿エリアA100を切り取る。歪処理部38は、原稿認識部32によって切り取られた原稿エリアA100に射影変換(例えば、アフィン変換)を施して原稿エリアA100の歪を補正し、長方形の原稿画像を作成する(ステップS164)。
Next, the
CPU12は、歪処理部38によって歪補正された原稿エリアA100の上下の向きを検出して補正して出力用原稿画像100′を作成し、プロジェクター200に出力する(ステップS166)。これにより、出力用原稿画像100′が外部出力部40を介してプロジェクター200に出力され、スクリーン300に投影される。
The
図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頂点D1,D2,D3,D4を含む分割エリアA1A,A1E,A5A,A5Eのピント位置を検出する(ステップS172)。
First, the
次に、CPU12は、分割エリアA1A,A1E,A5A,A5Eのピント位置の平均フォーカス位置を算出し、撮影部20を制御して、ステップS116において算出した平均フォーカス位置にフォーカスレンズを移動させる(ステップS174)。そして、CPU12は、分割エリアA1A,A1E,A5A,A5Eの焦点深度が被写界深度内に収まるように、撮影部20の絞り値を変更する(ステップS176)。
Next, the
本実施形態によれば、原稿エリアA100の4隅の分割エリアのピント位置の平均フォーカス位置にフォーカス位置を移動することにより、4頂点D1,D2,D3,D4と撮影装置10との間の距離が異なる状態で原稿100を撮影した場合にも、ピント合わせを適切に行うことができる。これにより、原稿100が写っている原稿エリアA100の歪を補正したときに生じる画像の劣化を防止することができる。
According to the present embodiment, the four vertexes D 1 , D 2 , D 3 , D 4 , the photographing
[第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
図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
原稿認識部32は、2値エッジ画像から原稿100の輪郭B100を検出し、輪郭B100に囲まれる原稿エリアA100を抽出する。
The
原稿4隅認識部34は、輪郭B100から原稿100の4隅の頂点D1,D2,D3,D4を検出し、4頂点D1,D2,D3,D4の位置を示す座標を取得する。
The document four-
原稿中心算出部36は、原稿100の対向する頂点を結ぶ対角線D1D4及び,D2D3の交点DCの座標を算出する。
The document
CPU12は、撮影部20及びAF部26を制御して、原稿エリアA100にピントが合うようにAF制御を行う。なお、AF制御の方法は、上記第1から第4の実施形態の方法を適用することができる。
The
AE部28は、原稿エリアA100のR、G、B信号から、原稿エリアA100全体の平均測光値を算出する。CPU12は、AE部28から取得した積算値に基づいて被写体の明るさ(被写体輝度)を検出し、撮影に適した露出値(撮影EV値)を算出する。CPU12は、求めた露出値と所定のプログラム線図に従って、絞り値とシャッタースピードを決定し、撮像素子の電子シャッター機能及び絞りを制御して露光量を調節する。
The
なお、測光値の算出方法は、上記の平均測光のほか、例えば、原稿エリア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
歪処理部38は、再撮影された画像から切り取られた原稿エリアA100に投影変換(射影変換(例えば、アフィン変換))を施して原稿エリアA100の歪を補正し、長方形の原稿画像を作成する。
The
CPU12は、歪処理部38によって歪補正された原稿エリアA100の上下の向きを検出して補正し、出力用原稿画像100′を作成する。出力用原稿画像100′は、外部出力部40を介してプロジェクター200に出力され、スクリーン300に投影される。
The
図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
CPU12は、撮影部20の撮像素子から出力された画素ごとの画像信号を2値化して2値エッジ画像を生成する(ステップS186)。原稿認識部32は、原稿エリアA100を抽出する(ステップS188)。
The
原稿4隅認識部34は、原稿100の4頂点D1,D2,D3,D4を検出し、4頂点D1,D2,D3,D4の座標を取得する(ステップS190)。
Original four
原稿中心算出部36は、原稿100の対向する頂点を結ぶ対角線D1D4とD2D3の交点DCの座標を算出する(ステップS192)。
Original
CPU12は、原稿エリアA100にピントが合うようにAF制御を行う(ステップS194)。
The
AE部28は、原稿エリアA100から測光値を算出する。CPU12は、原稿エリアA100から算出された測光値から露出値を算出し、AE制御を行う(ステップS196)。
The
次に、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
CPU12は、歪処理部38によって歪補正された原稿エリアA100の上下の向きを検出して補正して出力用原稿画像100′を作成し、プロジェクター200に出力する(ステップS202)。これにより、出力用原稿画像100′が外部出力部40を介してプロジェクター200に出力され、スクリーン300に投影される。
The
本実施形態によれば、原稿エリア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
[第6の実施形態]
次に、本発明の第6の実施形態について説明する。本実施形態は、原稿100を撮影装置10からの距離が遠い部分と近い部分とに分けて撮影して、原稿全体の画像を得るようにしたものである。なお、撮影装置10の構成については、上記第1の実施形態と同様である。
[Sixth Embodiment]
Next, a sixth embodiment of the present invention will be described. In the present embodiment, the
図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
図17(a)に示すように、原稿100の4隅にはマーカM1,M2,M3,M4がプリントされている。
As shown in FIG. 17A, markers M 1 , M 2 , M 3 , and M 4 are printed at the four corners of the
CPU12は、撮影モード時に撮影された画素ごとの画像信号を2値化して2値画像を生成する。
The
原稿認識部32は、マーカM1,M2,M3,M4の形状パターンを記憶しており、2値画像に対して、マーカM1,M2,M3,M4の形状パターンを用いてパターンマッチングを行う。そして、原稿認識部32は、マーカM1,M2,M3,M4によって囲まれる原稿エリアA100を抽出する(図17(a))。更に、原稿認識部32は、マーカの向きから原稿100の上下の向きを検出する。
原稿4隅認識部34は、原稿100上のマーカM1,M2,M3,M4の位置を示す座標を取得する。
The document four-
原稿中心算出部36は、マーカM1,M2,M3,M4を結ぶ線分M1M4とM2M3の交点DCの座標を算出する。
Original
CPU12は、撮影部20を制御して、撮影装置10に近い側(以下、手前側という)の2つのマーカM3及びM4が撮影装置10の視野F10の幅Wと略一致するようにズームを行う(図17(b))。なお、図17(b)の工程では、CPU12は、原稿エリアA100(少なくとも原稿エリアA100の交点DCより下のエリアA1′)が視野F10内に収まるようにズーム及び画角を制御する。
The
CPU12は、撮影部20及びAF部26を制御してAFサーチを実行し、エリアA1′にピントが合うようにAF制御を行う。具体的には、CPU12は、原稿エリアA100を複数の分割エリアに分割し、手前側のマーカM3及びM4を含む分割エリアにピントを合わせた場合のピント位置を検出し、マーカM3及びM4を含む分割エリアのピント位置の中間(平均)のフォーカス位置にフォーカスレンズを移動させる。
The
CPU12は、AF制御の終了後、原稿100を再度撮影する。原稿認識部32は、再撮影された原稿の画像を2値化してマーカM1,M2,M3,M4を検出し、マーカM1,M2,M3,M4に囲まれる原稿エリアA100を切り取る。
The
歪処理部38は、再撮影された画像から切り取られた原稿エリアA100に投影変換(射影変換(例えば、アフィン変換))を施して原稿エリアA100の歪を補正し、長方形の原稿画像A100′を作成する(図17(c))。原稿画像A100′の交点DCより下のエリアA1はピントが合っているが、交点DCより上のエリアA2′はピントが粗い画像となる。
The
また、CPU12は、撮影部20を制御して、交点DCを通り視野F10の横方向に伸びる直線と原稿エリアA100の輪郭(マーカM1,M2,M3,M4を結んで得られる4角形)との交点を結ぶ線分Lが撮影装置10の視野F10の幅Wと略一致するようにズームを行う(図17(d))。なお、図17(d)の工程では、CPU12は、原稿エリアA100の交点DCより上のエリアが視野F10内に収まるようにズーム及び画角を制御する。
Further, the
CPU12は、撮影部20及びAF部26を制御してAFサーチを実行し、原稿エリアA100の交点DCより上のエリアにピントが合うようにAF制御を行う。具体的には、CPU12は、原稿エリアA100を複数の分割エリアに分割し、撮影装置10から遠い側(以下、奥側という)のマーカM1及びM2を含む分割エリアにピントを合わせた場合のピント位置を検出し、マーカM1及びM2を含む分割エリアのピント位置の中間(平均)のフォーカス位置にフォーカスレンズを移動させる。
CPU12 performs an AF search by controlling the
CPU12は、AF制御の終了後、原稿100を再度撮影する。原稿認識部32は、再撮影された原稿の画像を2値化してマーカM1,M2及び原稿エリアA100の輪郭を検出し、原稿エリアA100を切り取る。なお、原稿エリアA100の輪郭の検出については、AF制御の終了時点の原稿エリアA100の輪郭の位置情報を記憶しておき、この位置情報に基づいて原稿エリアA100を決定するようにしてもよい。
The
歪処理部38は、再撮影された画像から切り取られた原稿エリアA100に投影変換(射影変換(例えば、アフィン変換))を施して原稿エリアA100の歪を補正し、長方形の原稿画像A100″を作成する(図17(e))。
The
画像合成部42は、図17(c)の交点DCより下のエリアA1と図17(e)の交点DCより上のエリアA2を合成し、出力用原稿画像100′を作成する(図17(f))。出力用原稿画像100′は、外部出力部40を介してプロジェクター200に出力され、スクリーン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
CPU12は、撮影部20の撮像素子から出力された画素ごとの画像信号を2値化して2値画像を生成する(ステップS216)。原稿認識部32は、2値画像に対してテンプレートマッチングを実施して(ステップS218)、原稿100の4隅にプリントされたマーカM1,M2,M3,M4を検出し、原稿エリアA100を抽出する(ステップS220)。
The
原稿認識部32は、4隅のマーカM1,M2,M3,M4の向きから原稿100の上下の向きを認識する(ステップS222)。
The
原稿4隅認識部34は、4隅のマーカM1,M2,M3,M4の座標を取得する(ステップS224)。原稿中心算出部36は、原稿100の対向するマーカを結ぶ線分(対角線)M1M4とM2M3の交点DCの座標を算出する(ステップS226)。
The document four
CPU12は、交点DCを中心とするAFエリアACにピントが合うように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つのマーカM3及びM4が撮影装置10の視野F10の幅Wと略一致するようにズームを実施する(ステップS232)。
The
次に、CPU12は、撮影部20及びAF部26を制御してAFサーチを実行する(ステップS234)。CPU12は、原稿エリアA100を複数の分割エリアに分割し、手前側のマーカM3及びM4を含む分割エリアにピントを合わせた場合のピント位置を検出し、マーカM3及びM4を含む分割エリアのピント位置の中間(平均)のフォーカス位置にフォーカスレンズを移動させる(ステップS236)。
Next, the
CPU12は、ステップS236のAF制御及びAE制御終了後に原稿の画像を再度撮影する(ステップS238)。
The
また、CPU12は、撮影部20を制御して、交点DCを通り視野F10の横方向に伸びる直線と原稿エリアA100の輪郭との交点を結ぶ線分Lが撮影装置10の視野F10の幅Wと略一致するようにズームを実施する(ステップS240)。
Further,
次に、CPU12は、撮影部20及びAF部26を制御してAFサーチを実行する(ステップS242)。CPU12は、原稿エリアA100を複数の分割エリアに分割し、奥側のマーカM1及びM2を含む分割エリアにピントを合わせた場合のピント位置を検出し、マーカM1及びM2を含む分割エリアのピント位置の中間(平均)のフォーカス位置にフォーカスレンズを移動させる(ステップS244)。
Next, the
CPU12は、ステップS244のAF制御及びAE制御終了後に原稿の画像を再度撮影する(ステップS246)。
The
原稿認識部32は、ステップS238及びS246において撮影された画像から原稿エリアA100を切り取る。歪処理部38は、ステップS238及びS246において撮影された画像から切り取られた原稿エリアA100に投影変換(射影変換(例えば、アフィン変換))を施して原稿エリアA100の歪を補正する(ステップS248)。
The
画像合成部42は、歪補正後のステップS238の画像A100′中の交点DCより下のエリアA1と、歪補正後のステップS246の画像A100″中の交点DCより上のエリアA2を合成し、出力用原稿画像100′を作成する(ステップS250)。出力用原稿画像100′は、外部出力部40を介してプロジェクター200に出力され、スクリーン300に投影される。
本実施形態によれば、原稿エリアA100を手前側と奥側とに分割して撮影することにより、原稿100に対する合焦精度を高めることができる。これにより、原稿100が写っている原稿エリアA100の歪を補正したときに生じる画像の劣化を防止することができる。
According to the present embodiment, focusing accuracy with respect to the
なお、原稿100上のマーカの形状及び配置は上記に限定されるものではない。例えば、マーカを原稿100の輪郭に沿ってプリントするようにしてもよい。
Note that the shape and arrangement of the markers on the
また、原稿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.
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
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:
前記合焦制御手段は、前記中心エリアのピント合わせの精度が低いと評価した場合に、前記中心エリアの近傍のエリアのうち、前記ピント合わせの精度が高いと評価されたエリアにピントを合わせる、請求項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:
前記撮影した画像から前記原稿が写っている原稿エリアを認識する第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つの頂点のうち前記撮影装置に近い手前側の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値化された画像から前記原稿エリアを検出する、請求項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.
前記原稿認識手段は、前記マーカを検出して前記原稿エリアを認識する、請求項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.
(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.
前記中心エリアにピントを合わせたときの焦点評価値を取得し、該焦点評価値に基づいてピント合わせの精度を評価し、
前記中心エリアのピント合わせの精度が低いと評価した場合に、前記中心エリアの近傍のエリアのうち、前記ピント合わせの精度が高いと評価されたエリアにピントを合わせる請求項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. .
(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.
(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).
前記原稿エリアの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つの頂点を含む奥側頂点エリアにピントを合わせた場合のピント位置を検出し、前記奥側頂点エリアのピント位置の平均フォーカス位置にフォーカスを移動する請求項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.
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)
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 |
-
2008
- 2008-08-04 JP JP2008200730A patent/JP2010041300A/en active Pending
Cited By (2)
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 |