JP4225226B2 - Imaging apparatus, imaging control method for imaging apparatus, and program - Google Patents

Imaging apparatus, imaging control method for imaging apparatus, and program Download PDF

Info

Publication number
JP4225226B2
JP4225226B2 JP2004081755A JP2004081755A JP4225226B2 JP 4225226 B2 JP4225226 B2 JP 4225226B2 JP 2004081755 A JP2004081755 A JP 2004081755A JP 2004081755 A JP2004081755 A JP 2004081755A JP 4225226 B2 JP4225226 B2 JP 4225226B2
Authority
JP
Japan
Prior art keywords
document
image
region
photographing
edge portions
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.)
Expired - Fee Related
Application number
JP2004081755A
Other languages
Japanese (ja)
Other versions
JP2005269461A (en
Inventor
克典 石井
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2004081755A priority Critical patent/JP4225226B2/en
Publication of JP2005269461A publication Critical patent/JP2005269461A/en
Application granted granted Critical
Publication of JP4225226B2 publication Critical patent/JP4225226B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)

Description

本発明は、撮影装置、撮影装置の撮影制御方法及びプログラムに関するものである。   The present invention relates to a photographing apparatus, a photographing control method for the photographing apparatus, and a program.

紙の書類やOHP用紙などを読み取って投影をおこなうOHPでは、デジタルカメラの発達に伴い、従来のラインスキャナで読み取る方式から、デジタルカメラを用いた書画カメラと呼ばれる方式の撮影装置(書画カメラ)が開発されつつある。   In OHP, which reads and projects paper documents and OHP paper, with the development of digital cameras, there is an imaging device (document camera) of a method called a document camera that uses a digital camera instead of a method that uses a conventional line scanner. It is being developed.

この撮影装置は、ユーザが書画台に載置した原稿をカメラで撮影して、撮影した原稿の画像に画像処理を行い、プロジェクタを用いてスクリーン上に原稿の画像を拡大して投影するものである(例えば、特許文献1参照)。   In this photographing apparatus, a user photographs a document placed on a document table with a camera, performs image processing on the photographed document image, and enlarges and projects the document image on a screen using a projector. Yes (see, for example, Patent Document 1).

このような撮影装置は、従来のOHPでは、できなかった3次元の撮影対象を撮影して、この画像を投影することができるので、従来のOHPにとって変わりつつある。
特開2002−354331号公報(第2−3頁、図1)
Such an imaging apparatus is changing for a conventional OHP because it can image a three-dimensional imaging object that could not be obtained with a conventional OHP and project this image.
JP 2002-354331 A (page 2-3, FIG. 1)

しかし、従来の撮影装置では、書画台は静止しているため、原稿を交換する間に、書画台を撮影対象物として、原稿と同じ解像度で撮影してしまう。   However, in the conventional photographing apparatus, since the document table is stationary, the document table is photographed with the same resolution as the document while the document is exchanged.

解像度を切り替えて撮影しようとする場合、撮影対象物が書画台だけなのか原稿も含んでいるのかを判定する必要がある。その判定方法としては、例えば撮影対象物の画像に含まれるエッジの量などに着目し、図17(a)に示すように、書画台のエッジ部の画像をマスクして、予め取得しておいた書画台の画像におけるエッジの量と比較する等して原稿の有無を判別することが考えられる。   When attempting to shoot by switching the resolution, it is necessary to determine whether the object to be photographed is only a document table or includes a document. As the determination method, for example, paying attention to the amount of edge included in the image of the object to be photographed, the image of the edge part of the document table is masked and acquired in advance as shown in FIG. It is conceivable to determine the presence or absence of a document by comparing it with the amount of edges in the image on the document table.

しかし、例えば、図17(b)に示すように、原稿がピントの合っていない写真やグラデーションで描かれた絵等の原稿であって、この原稿がカメラの画角を越えている場合に、エッジの量が少なくなり、エッジの検出が困難である。したがって、このような原稿では、原稿が書画台に載置されていないと誤判定されてしまう可能性がある。   However, for example, as shown in FIG. 17B, when the document is a document such as an out-of-focus photograph or a picture drawn with gradation, the document exceeds the angle of view of the camera. The amount of edges is reduced and it is difficult to detect edges. Therefore, such a document may be erroneously determined that the document is not placed on the document table.

本発明は、このような従来の問題点に鑑みてなされたもので、所望の撮影対象物の画像を適切に取得することが可能な撮影装置、撮影装置の撮影制御方法及びプログラムを提供することを目的とする。   The present invention has been made in view of such conventional problems, and provides a photographing apparatus, a photographing control method for the photographing apparatus, and a program capable of appropriately acquiring an image of a desired photographing object. With the goal.

上記目的を達成するため、本発明の第1の観点に係る撮影装置は、
書画台に載置された原稿を前記書画台を含めて撮影する撮影装置において、
前記書画台とともに前記原稿を低解像度又は高解像度で撮影する撮影部と、
前記撮影部の撮影によって得られた撮影画像に基づいて前記書画台に前記原稿が載置されているか否かを判定し、前記書画台に前記原稿が載置されていると判定した場合、前記撮影部の解像度を高解像度に設定する制御部と、を備え、
前記制御部は、前記撮影部の撮影によって得られた撮影画像に、前記原稿によるエッジ部を判別するための第1の判別領域と前記第1の判別領域外の前記書画台によるエッジ部を含むエッジ部を判別するための第2の判別領域とを予め設定し、前記第2の判別領域の画像を覆って前記第1の判別領域に存在するエッジ部の数を計数し、計数した前記第1の判別領域のエッジ部の数が予め設定された第1の閾値未満であり、かつ、前記第1の判別領域の画像を覆って前記第2の判別領域に含まれているエッジ部の数を計数し、計数した前記第2の判別領域のエッジ部の数が予め設定された第2の閾値未満の場合には、前記書画台に前記原稿が載置されていると判定することを特徴とする。
In order to achieve the above object, a photographing apparatus according to the first aspect of the present invention provides:
In a photographing apparatus for photographing a document placed on a document table including the document table,
A photographing unit that photographs the original together with the document table at a low resolution or a high resolution;
When determining whether or not the document is placed on the document stand based on a photographed image obtained by photographing of the photographing unit, if it is determined that the document is placed on the document stand, A control unit for setting the resolution of the photographing unit to a high resolution,
The control unit includes a first determination region for determining an edge portion of the original and an edge portion of the document table outside the first determination region in a photographed image obtained by photographing of the photographing unit. A second discriminating region for discriminating an edge portion is set in advance, the number of edge portions existing in the first discriminating region covering the image of the second discriminating region is counted, and the counted first The number of edge portions in which the number of edge portions of one discrimination region is less than a preset first threshold and covers the image of the first discrimination region and is included in the second discrimination region , And when the counted number of edge portions of the second determination area is less than a preset second threshold, it is determined that the document is placed on the document table. And

前記制御部は、前記第2の判別領域の画像を覆って前記第1の判別領域に存在するエッジ部の数を計数し、計数した前記第1の判別領域のエッジ部の数が予め設定された第1の閾値未満の場合に、前記第1の判別領域の画像を覆って前記第2の判別領域に含まれているエッジ部の数を計数し、計数した前記第2の判別領域のエッジ部の数が予め設定された第2の閾値未満の場合には、前記書画台に前記原稿が載置されていると判定するのが好ましい。   The control unit counts the number of edge portions existing in the first determination region so as to cover the image of the second determination region, and the counted number of edge portions of the first determination region is preset. When the number of edges is less than the first threshold and covers the image of the first discrimination area, the number of edge portions included in the second discrimination area is counted, and the edges of the second discrimination area thus counted are counted. When the number of copies is less than a preset second threshold, it is preferable to determine that the document is placed on the document table.

前記書画台は、前記原稿によるエッジ部を判別するための前記第1の判別領域に対応する位置に予め識別印が記されたものであって、
前記制御部は、前記第2の領域のエッジ部の数が前記第2の閾値以上の場合は、前記識別印による画像を判別し、前記識別印による画像が判別されなかった場合には、前記書画台に前記原稿が載置されていると判定することが好ましい。
また、前記制御部は、前記書画台に前記原稿が載置されていないと判定した場合、前記撮影部の解像度を低解像度に設定するのが好ましい。
The document table is preliminarily marked with an identification mark at a position corresponding to the first discrimination area for discriminating an edge portion of the document.
The control unit determines an image based on the identification mark when the number of edge portions of the second region is equal to or greater than the second threshold value, and determines that the image based on the identification mark is not determined. It is preferable to determine that the document is placed on the document table.
Further, when the control unit determines that the document is not placed on the document table, it is preferable that the resolution of the photographing unit is set to a low resolution.

前記制御部は、前記第1の判別領域又は前記第2の判別領域における画素値を取得して、取得した画素値のうち、隣接した画素の画素値の差分に基づいてエッジ部を検出してエッジ部の数を計数するのが好ましい。   The control unit acquires a pixel value in the first determination region or the second determination region, and detects an edge portion based on a difference between pixel values of adjacent pixels among the acquired pixel values. It is preferable to count the number of edge portions.

前記制御部は、前記撮影画像中の前記識別印による画像の形状を判別することにより、前記撮影画像に前記原稿の画像が含まれているか否かを判定するのが好ましい。   The control unit preferably determines whether or not the image of the document is included in the captured image by determining the shape of the image by the identification mark in the captured image.

前記書画台は、前記形状が設定された識別印として、互いに交差する線分によって形成された十字印が予め記されたものであり、
前記制御部は、前記撮影画像中の前記十字印を形成する前記2つの線分に対して異なる2つの方向に前記撮影画像の画素を走査し、前記十字印画像と対応するエッジ部が検出されるか否かを判別することにより、前記撮影画像中の前記十字印画像の形状を判別するのが好ましい。
The document table is preliminarily written with a cross mark formed by line segments intersecting each other as an identification mark set with the shape,
The control unit scans pixels of the photographed image in two different directions with respect to the two line segments forming the cross mark in the photographed image, and an edge portion corresponding to the cross-sign image is detected. It is preferable to determine the shape of the cross mark image in the captured image by determining whether or not it is.

上記目的を達成するため、本発明の第2の観点に係る撮影装置の撮影制御装置は、
書画台に載置された原稿を前記書画台を含めて撮影する撮影装置において、
前記書画台とともに前記原稿を低解像度又は高解像度で撮影する撮影部と、
前記撮影部の撮影によって得られた撮影画像に基づいて前記書画台に前記原稿が載置されているか否かを判定し、前記書画台に前記原稿が載置されていると判定した場合、前記撮影部の解像度を高解像度に設定する制御部と、を備え、
前記制御部は、前記撮影部の撮影によって得られた撮影画像に、前記原稿によるエッジ部を判別するための第1の判別領域と前記第1の判別領域外の前記書画台によるエッジ部を含むエッジ部を判別するための第2の判別領域とを予め設定し、前記第2の判別領域の画像を覆って前記第1の判別領域に存在するエッジ部の数を計数し、計数した前記第1の判別領域のエッジ部の数が予め設定された第1の閾値未満の場合に、前記第1の判別領域の画像を覆って前記第2の判別領域に含まれているエッジ部の数を計数し、計数した前記第2の判別領域のエッジ部の数が予め設定された第2の閾値以上の場合には、前記書画台に前記原稿が載置されていないと判定することを特徴とする。
In order to achieve the above object, an imaging control device for an imaging device according to the second aspect of the present invention provides:
In a photographing apparatus for photographing a document placed on a document table including the document table,
A photographing unit that photographs the original together with the document table at a low resolution or a high resolution;
When determining whether or not the document is placed on the document stand based on a photographed image obtained by photographing of the photographing unit, if it is determined that the document is placed on the document stand, A control unit for setting the resolution of the photographing unit to a high resolution,
The control unit includes a first determination region for determining an edge portion of the original and an edge portion of the document table outside the first determination region in a photographed image obtained by photographing of the photographing unit. A second discriminating region for discriminating an edge portion is set in advance, the number of edge portions existing in the first discriminating region covering the image of the second discriminating region is counted, and the counted first When the number of edge portions of one discrimination area is less than a preset first threshold, the number of edge portions included in the second discrimination area covering the image of the first discrimination area is determined. And counting and determining that the document is not placed on the document table if the counted number of edge portions of the second determination area is equal to or greater than a second threshold value set in advance. To do.

上記目的を達成するため、本発明の第3の観点に係る撮影装置の撮影制御方法は、
書画台に載置された原稿を撮影する撮影装置の撮影制御方法であって、
撮影により前記書画台を含む撮影画像を取得するステップと、
撮影によって得られた撮影画像に、前記原稿によるエッジ部を判別するための第1の判別領域と前記第1の判別領域外の前記書画台によるエッジ部を含むエッジ部を判別するための第2の判別領域とを予め設定し、前記第2の判別領域の画像を覆って前記第1の判別領域に存在するエッジ部の数を計数するステップと、
計数した前記第1の判別領域のエッジ部の数と予め設定された第1の閾値とを比較し、計数した前記第1の判別領域のエッジ部の数が前記第1の閾値未満の場合に、前記第1の判別領域の画像を覆って前記第2の判別領域に含まれているエッジ部の数を計数するステップと、
計数した前記第2の判別領域のエッジ部の数と予め設定された第2の閾値とを比較し、計数した前記第2の判別領域のエッジ部の数が前記第2の閾値未満の場合には、前記書画台に前記原稿が載置されていると判定するステップと、
前記書画台に前記原稿が載置されていると判定した場合、前記撮影部の解像度を高解像度に設定するステップと、を備えたことを特徴とする。
In order to achieve the above object, an imaging control method for an imaging apparatus according to the third aspect of the present invention provides:
A photographing control method of a photographing device for photographing a document placed on a document table,
Obtaining a photographed image including the document table by photographing;
A second discriminating portion for discriminating an edge portion including a first discriminating region for discriminating an edge portion due to the original and an edge portion due to the document table outside the first discriminating region from the photographed image obtained by photographing. And determining the number of edge portions existing in the first determination area, covering the image of the second determination area,
When the counted number of edge portions of the first discrimination region is compared with a preset first threshold value, and the counted number of edge portions of the first discrimination region is less than the first threshold value Counting the number of edge portions included in the second discrimination area covering the image of the first discrimination area;
When the counted number of edge portions of the second discrimination region is compared with a preset second threshold value, and the counted number of edge portions of the second discrimination region is less than the second threshold value Determining that the document is placed on the document table;
And a step of setting the resolution of the photographing unit to a high resolution when it is determined that the document is placed on the document table.

上記目的を達成するため、本発明の第4の観点に係るプログラムは、
コンピュータに、
書画台に載置された原稿を前記書画台とともに撮影するステップと、
前記撮影によって得られた撮影画像に、原稿によるエッジ部を判別するための第1の判別領域と前記第1の判別領域外の前記書画台によるエッジ部を含むエッジ部を判別するための第2の判別領域とを予め設定し、前記第2の判別領域の画像を覆って前記第1の判別領域に存在するエッジ部の数を計数する手順、
計数した前記第1の判別領域のエッジ部の数と予め設定された第1の閾値とを比較し、計数した前記第1の判別領域のエッジ部の数が前記第1の閾値未満の場合に、前記第1の判別領域の画像を覆って前記第2の判別領域に含まれているエッジ部の数を計数する手順、
計数した前記第2の判別領域のエッジ部の数と予め設定された第2の閾値とを比較し、計数した前記第2の判別領域のエッジ部の数が前記第2の閾値未満の場合には、前記書画台に前記原稿が載置されていると判定する手順、
前記書画台に前記原稿が載置されていると判定した場合、前記書画台に載置された前記原稿を撮影するときの解像度を高解像度に設定する手順、
を実行させるためのものである。
In order to achieve the above object, a program according to the fourth aspect of the present invention provides:
On the computer,
Photographing the document placed on the document table together with the document table;
A second discriminating portion for discriminating a first discriminating region for discriminating an edge portion due to a document and an edge portion including an edge portion due to the document table outside the first discriminating region from the photographed image obtained by the photographing. A step of counting the number of edge portions existing in the first determination area, covering the image of the second determination area,
When the counted number of edge portions of the first discrimination region is compared with a preset first threshold value, and the counted number of edge portions of the first discrimination region is less than the first threshold value , A procedure for counting the number of edge portions included in the second discrimination region covering the image of the first discrimination region;
When the counted number of edge portions of the second discrimination region is compared with a preset second threshold value, and the counted number of edge portions of the second discrimination region is less than the second threshold value Is a procedure for determining that the document is placed on the document table;
A procedure for setting a resolution when shooting the document placed on the document table to a high resolution when it is determined that the document is placed on the document table;
Is to execute.

本発明によれば、所望の撮影対象物の画像を適切に取得することができる。   ADVANTAGE OF THE INVENTION According to this invention, the image of a desired imaging target object can be acquired appropriately.

以下、本発明の実施形態に係る撮影装置を、図面を参照して説明する。   Hereinafter, an imaging device according to an embodiment of the present invention will be described with reference to the drawings.

本実施形態に係る撮影装置の構成を図1に示す。
撮影装置は、書画カメラ1と、プロジェクタ2と、から構成される。
FIG. 1 shows the configuration of the photographing apparatus according to this embodiment.
The photographing apparatus includes a document camera 1 and a projector 2.

書画カメラ1は、投影対象の原稿4を撮影するためのカメラシステムであり、カメラ部11と、支柱12と、台座(書画台)13と、操作台14と、を備える。カメラ部11は、原稿4を撮影するためのものである。カメラ部11には、デジタルカメラが用いられる。支柱12は、カメラ部11を取り付けるためのものである。台座13は、支柱12を支えるためのものであり、原稿4を載置するためのものである。尚、この原稿4は、ユーザによって差し替えられる。従って、台座13には、原稿4が載置されている場合と、原稿4が載置されていない場合がある。また、カメラ部11は、台座13も含めて原稿4を撮影する。従って、カメラ部11が撮影することによって得られた撮影画像には、原稿4の画像が含まれている場合と含まれていない場合とがある。   The document camera 1 is a camera system for photographing a document 4 to be projected, and includes a camera unit 11, a support column 12, a pedestal (document table) 13, and an operation table 14. The camera unit 11 is for photographing the document 4. A digital camera is used for the camera unit 11. The column 12 is for attaching the camera unit 11. The pedestal 13 is for supporting the column 12 and for placing the document 4. The document 4 is replaced by the user. Therefore, there are a case where the document 4 is placed on the pedestal 13 and a case where the document 4 is not placed. Further, the camera unit 11 captures the document 4 including the pedestal 13. Therefore, the captured image obtained by capturing by the camera unit 11 may or may not include the image of the document 4.

台座13は、支柱12を支えるためのものであり、本実施形態では図2に示すように、台座13の内側に矩形領域Kが描かれており、中心部には「+」で示される予め形状が設定された十字マークJが予め描かれている。この十字マークJは、2つの線分を交差させることによって形成され、後述する書画台判定処理において、撮影画像中に十字マークJが検出されるか否かによって、撮影対象物が書画台か否かを判定するために用いるものである。   The pedestal 13 is for supporting the column 12, and in this embodiment, as shown in FIG. 2, a rectangular area K is drawn on the inner side of the pedestal 13, and the center portion is preliminarily indicated by “+”. A cross mark J having a set shape is drawn in advance. The cross mark J is formed by intersecting two line segments, and whether or not the object to be photographed is the document stand is determined by whether or not the cross mark J is detected in the photographed image in the document stand determination process described later. It is used to determine whether or not.

また、書画カメラ1は、図3に示すように、画像データ生成部21と、データ処理部22と、からなる。画像データ生成部21は、原稿4を撮影して原稿4の画像データを取り込むためのものである。   Further, the document camera 1 includes an image data generation unit 21 and a data processing unit 22 as shown in FIG. The image data generation unit 21 captures the document 4 and captures the image data of the document 4.

データ処理部22は、画像データ生成部21から、取り込んだ原稿4の画像データを取得して画像処理を行い、画像処理を施した画像データをプロジェクタ2に出力するものである。   The data processing unit 22 acquires image data of the captured original 4 from the image data generation unit 21, performs image processing, and outputs the image data subjected to the image processing to the projector 2.

尚、画像データ生成部21とデータ処理部22とは、図1に示すカメラ部11に備えられてもよいし、画像データ生成部21,データ処理部22が、それぞれ、カメラ部11、操作台14に備えられてもよい。   The image data generation unit 21 and the data processing unit 22 may be provided in the camera unit 11 shown in FIG. 1, or the image data generation unit 21 and the data processing unit 22 are respectively connected to the camera unit 11 and the operation console. 14 may be provided.

画像データ生成部21は、光学レンズ装置101と、イメージセンサ102と、から構成される。   The image data generation unit 21 includes an optical lens device 101 and an image sensor 102.

光学レンズ装置101は、原稿4を撮影するために、光を集光するレンズなどで構成されたものである。   The optical lens device 101 is composed of a lens that collects light in order to photograph the document 4.

イメージセンサ102は、光学レンズ装置101が光を集光することによって結像した画像を、デジタル化した画像データとして取り込むためのものであり、CCD等によって構成される。   The image sensor 102 is for capturing an image formed by the optical lens device 101 condensing light as digitized image data, and is configured by a CCD or the like.

データ処理部22は、メモリ201と、表示装置202と、画像処理装置203と、操作部204と、プログラムコード記憶装置205と、CPU206と、から構成される。   The data processing unit 22 includes a memory 201, a display device 202, an image processing device 203, an operation unit 204, a program code storage device 205, and a CPU 206.

メモリ201は、イメージセンサ102からの画像、表示装置202に送り出すための画像データ等を一時記憶するためのものである。
表示装置202は、プロジェクタ2に送り出す画像を表示するためのものである。
The memory 201 is for temporarily storing an image from the image sensor 102, image data to be sent to the display device 202, and the like.
The display device 202 is for displaying an image sent out to the projector 2.

画像処理装置203は、メモリ201に一時記憶された画像データに対して、画像の歪み補正や画像効果などの画像処理を行うためのものである。   The image processing device 203 is for performing image processing such as image distortion correction and image effect on the image data temporarily stored in the memory 201.

画像処理装置203は、図4(a)に示すようにカメラ部11の撮影面に対して斜めの状態、あるいは回転した状態で撮影した原稿4の画像から、歪み補正(台形補正)を行うことによって、図4(b)に示すような正面から撮影した原稿4の画像を生成する。具体的には、画像処理装置203は、歪み補正を行うため、歪んだ原稿4の画像から四角形を切り取り、切り取った四角形に原稿4の画像を射影変換して逆変換する。   The image processing apparatus 203 performs distortion correction (trapezoid correction) from the image of the document 4 taken in an oblique state or rotated state with respect to the photographing surface of the camera unit 11 as shown in FIG. Thus, an image of the document 4 taken from the front as shown in FIG. 4B is generated. Specifically, in order to perform distortion correction, the image processing apparatus 203 cuts a rectangle from the image of the distorted document 4 and performs projective conversion on the image of the document 4 to the cut rectangle to perform inverse conversion.

操作部204は、書画投影の機能を制御するためのスイッチ、キーを備えたものである。操作部204は、ユーザが、これらのキー、スイッチを操作したときの操作情報をCPU206に出力する。   The operation unit 204 includes switches and keys for controlling the document projection function. The operation unit 204 outputs operation information to the CPU 206 when the user operates these keys and switches.

操作部204は、図5に示すように、画像調整キーとして、上拡大キー211と、下拡大キー212と、左拡大キー213と、右拡大キー214と、右回転キー215と、左回転キー216と、拡大キー217と、縮小キー218と、撮影/解除キー219と、を備える。   As shown in FIG. 5, the operation unit 204 includes an upper enlargement key 211, a lower enlargement key 212, a left enlargement key 213, a right enlargement key 214, a right rotation key 215, and a left rotation key as image adjustment keys. 216, an enlargement key 217, a reduction key 218, and a shooting / cancellation key 219.

上拡大キー211、下拡大キー212、左拡大キー213、右拡大キー214は、射影変換を行うときに操作する射影変換キーである。   An upper enlargement key 211, a lower enlargement key 212, a left enlargement key 213, and a right enlargement key 214 are projective conversion keys operated when performing projective conversion.

右回転キー215、左回転キー216は、それぞれ、画像の回転を調整するための回転補正キーであり、右回転キー215は、画像の右回転を行なうときに操作するキーであり、左回転キー216は、画像の左回転を行なうときに操作するキーである。   The right rotation key 215 and the left rotation key 216 are rotation correction keys for adjusting the rotation of the image, respectively. The right rotation key 215 is a key operated when the image is rotated to the right, and the left rotation key. Reference numeral 216 denotes a key operated when the image is rotated to the left.

拡大キー217、縮小キー218は、それぞれ、画像の拡大、縮小などの画像変換を行うときに操作するキーである。   The enlargement key 217 and the reduction key 218 are keys operated when performing image conversion such as image enlargement and reduction, respectively.

撮影/解除キー219は、原稿4を撮影するときに操作するキーである。   The shooting / cancel key 219 is a key operated when shooting the document 4.

プログラムコード記憶装置205は、CPU206が実行するプログラムを記憶するためのものであり、ROM等によって構成される。   The program code storage device 205 is for storing a program executed by the CPU 206, and is configured by a ROM or the like.

CPU206は、プログラムコード記憶装置205に格納されているプログラムに従って、各部を制御する。尚、メモリ201は、CPU206の作業メモリとしても用いられる。   The CPU 206 controls each unit in accordance with a program stored in the program code storage device 205. The memory 201 is also used as a work memory for the CPU 206.

また、CPU206は、後述するフローチャートに従って、撮影対象物である原稿4の画像に動きがあるか否かを判定し、判定結果に従って、撮影モードを切り替える。   Further, the CPU 206 determines whether or not there is a motion in the image of the document 4 that is the shooting target, according to a flowchart described later, and switches the shooting mode according to the determination result.

撮影モードは、動画モードと静止画モードの2つとする。動画モードは、ユーザが台座13に投影したい原稿4等を載置しようとする場合に設定されるモードであって、カメラ部11で映し出している画像をそのままプロジェクタ2に投影するモードである。   There are two shooting modes, a moving image mode and a still image mode. The moving image mode is a mode that is set when the user intends to place the document 4 or the like that the user wants to project on the pedestal 13, and is a mode that projects the image projected by the camera unit 11 onto the projector 2 as it is.

動画モードでは、CPU206は、例えば、画像解像度がVGA(640×480ドット)程度の画像を30fps(フレーム/秒)の速さで動画投影を行なうように、各部を制御するものとする。このように、動画モードは、解像度は低いものの、リアルタイム性を重視したモードである。   In the moving image mode, for example, the CPU 206 controls each unit so that an image with an image resolution of about VGA (640 × 480 dots) is projected at a speed of 30 fps (frames / second). As described above, the moving image mode is a mode in which real-time characteristics are emphasized although the resolution is low.

静止画モードは、ユーザが原稿4を置いた後に設定されるモードであって、カメラ部11で高解像度の画像撮影を行い、高解像度の静止画像の投影を行うモードである。カメラ部11が撮影解像度300万画素のカメラである場合、切り出した投影画像はXGA(1024×768)の静止画像になる。   The still image mode is a mode that is set after the user places the document 4, and is a mode in which the camera unit 11 captures a high resolution image and projects a high resolution still image. When the camera unit 11 is a camera with an imaging resolution of 3 million pixels, the cut-out projected image is an XGA (1024 × 768) still image.

CPU206は、撮影モードの切り替えを行うため、原稿4の画像に動きがあるか否かを判定する。CPU206は、このような判定を行うため、前回撮影した画像との画像変化量MDを求める。画像変化量MDは撮影している画像が前回の画像と比較してどれぐらい変化したかを表す量である。この量を計算する方法はいくつか考えられる。一例として、CPU206は、前回撮影した画像のデータから、各画素の差分の絶対値の総和を画像変化量MDとして求める。   The CPU 206 determines whether or not there is a motion in the image of the document 4 in order to switch the shooting mode. In order to make such a determination, the CPU 206 obtains an image change amount MD from the previously captured image. The image change amount MD is an amount representing how much the image being taken has changed compared to the previous image. There are several ways to calculate this quantity. As an example, the CPU 206 obtains the sum of absolute values of differences between pixels as the image change amount MD from the data of the previously captured image.

即ち、前回の画素データをPn-1(x,y)、今回の画素データをPn(x,y),1≦x≦640 1≦y≦480とすると、画像変化量MDは、次の数1によって表される。
但し、全画素の総和を求めるには、計算量が多いので、画像変化量MDを求める方法としては、いくつかの画素を抜き出して実現する方法もある。
That is, if the previous pixel data is Pn-1 (x, y), the current pixel data is Pn (x, y), and 1 ≦ x ≦ 640 1 ≦ y ≦ 480, the image change amount MD is the following number: Represented by 1.
However, since the amount of calculation is large in order to obtain the total sum of all the pixels, as a method for obtaining the image change amount MD, there is a method in which several pixels are extracted and realized.

また、この画像変化量MDと比較して動きの有無を判定するための閾値として、閾値Thresh1と閾値Thresh2とが予め設定される。閾値Thresh1は、動きがないか否かを判定するための閾値であり、CPU206は、画像変化量MDが閾値Thresh1未満であれば、動きがないと判定する。   In addition, a threshold value Thresh1 and a threshold value Thresh2 are set in advance as threshold values for determining the presence or absence of motion in comparison with the image change amount MD. The threshold value Thresh1 is a threshold value for determining whether or not there is a motion, and the CPU 206 determines that there is no motion if the image change amount MD is less than the threshold value Thresh1.

閾値Thresh2は、静止画モードにおいて、例えば、影が動いた場合、ペン等を置いた場合のように、動きはあっても、その動きが動画モードに切り替える必要のない程度の僅かな動きであるか否かを判定するための閾値である。   The threshold value Thresh2 is a slight movement that does not require switching to the video mode even if there is a movement, for example, when a shadow moves or a pen is placed in the still image mode. It is a threshold value for determining whether or not.

CPU206は、画像変化量MDが閾値Thresh2未満であれば、動画モードに切り替える必要のない程度の僅かな動きであると判定する。尚、閾値Thresh2は、閾値Thresh1よりも高く設定される(Thresh1<Thresh2)。メモリ201は、この閾値Thresh1と閾値Thresh2とを予め記憶する。   If the image change amount MD is less than the threshold value Thresh2, the CPU 206 determines that the movement is slight enough not to switch to the moving image mode. The threshold value Thresh2 is set higher than the threshold value Thresh1 (Thresh1 <Thresh2). The memory 201 stores the threshold value Thresh1 and the threshold value Thresh2 in advance.

また、CPU206は、動画モードから静止画モードに切り替える場合、画像に動きがないと判定し、所定の時間が経過してから、撮影モードを静止画モードに切り替える。このため、CPU206は、画像に動きがないと判定してから、静止時間Ptimeを計測し、メモリ201は、この静止時間Ptimeと比較するために予め設定された所定時間HoldTimeを記憶する。   Further, when switching from the moving image mode to the still image mode, the CPU 206 determines that there is no movement in the image, and switches the shooting mode to the still image mode after a predetermined time has elapsed. For this reason, the CPU 206 determines that there is no movement in the image and then measures the still time Ptime, and the memory 201 stores a predetermined time HoldTime set in advance for comparison with the still time Ptime.

また、CPU206は、カメラ部11が撮影することによって得られた撮影画像に基づいて、台座13に原稿4が載置されているか否かを判定し、台座13に原稿4が載置されてると判定した場合、解像度を高く設定する。   Further, the CPU 206 determines whether or not the document 4 is placed on the pedestal 13 based on a photographed image obtained by photographing by the camera unit 11, and if the document 4 is placed on the pedestal 13. If determined, the resolution is set high.

このため、CPU206は、図6に示すように、撮影画像に原稿エッジ部判別領域とマスク領域とを設定する。原稿エッジ部判別領域は、原稿4によるエッジ部を判別するための矩形領域Kよりも広い領域であり、マスク領域は、原稿エッジ部判別領域外の台座13によるエッジ部を含むエッジ部を判別するための判別領域であり、原稿エッジ部判別領域に存在するエッジ部を判別するときにマスクされる領域である。   Therefore, as shown in FIG. 6, the CPU 206 sets a document edge portion determination area and a mask area in the captured image. The document edge portion determination region is a region wider than the rectangular region K for determining the edge portion by the document 4, and the mask region determines an edge portion including the edge portion by the base 13 outside the document edge portion determination region. For determining the edge portion existing in the document edge portion determination region.

さらに、CPU206は、台座13の傷を判別し、原稿エッジ部判別領域に存在するエッジ部を判別する際に、この傷画像も含めてマスク領域を設定する。傷は、台座13のひっかき傷のようなものであり、このような傷が台座13についていると、その傷画像によって原稿画像との判別がつきにくくなる。尚、この傷は、単なる傷である場合に限られるものではなく、例えば、台座13の模様、台座13に貼付されたシールのようなものも含むものである。   Further, when the CPU 206 determines a scratch on the pedestal 13 and determines an edge portion existing in the document edge portion determination region, the CPU 206 sets a mask region including this scratch image. The scratch is like a scratch on the pedestal 13. If such a scratch is present on the pedestal 13, it is difficult to distinguish the original image from the scratched image. In addition, this damage | wound is not restricted only to a case where it is a mere damage | wound, For example, the thing of the seal | sticker stuck on the pattern of the base 13 and the base 13 is also included.

CPU206が台座13の傷を判別するのは、台座13に原稿4が載置されていなくても、CPU206は、原稿4が載置されていると誤判定することを防ぐためである。CPU206が、このような誤判定を行うと、画像処理装置203は、台座13に原稿4が載置されていなくても、無駄な画像補正処理を行ってしまう。   The reason why the CPU 206 determines the scratch on the pedestal 13 is to prevent the CPU 206 from erroneously determining that the document 4 is placed even if the document 4 is not placed on the pedestal 13. If the CPU 206 makes such an erroneous determination, the image processing apparatus 203 performs useless image correction processing even if the document 4 is not placed on the pedestal 13.

CPU206は、台座13の傷を判別するため、例えば、予め設定された傷判別用の画像として傷が全くない台座13の画像と、イメージセンサ102が取得した台座13のみの撮影画像と、を比較する。CPU206は、比較の結果、2つの画像に差異があると、台座13に傷があると判別する。CPU206が台座13の傷を判別すると、画像処理装置203にこの傷による傷画像をマスクするマスクデータを生成させる。   In order to determine the scratch on the pedestal 13, the CPU 206 compares, for example, an image of the pedestal 13 having no scratch as a preset image for determining scratches with a captured image of only the pedestal 13 acquired by the image sensor 102. To do. If there is a difference between the two images as a result of the comparison, the CPU 206 determines that the pedestal 13 is damaged. When the CPU 206 determines a scratch on the pedestal 13, the image processing apparatus 203 is caused to generate mask data for masking a scratch image due to this scratch.

画像処理装置203は、CPU206に制御されて、マスク領域を覆うマスクを生成する。この際、画像処理装置203は、台座13のたわみなどにより、傷の登録時と台座13認識時のカメラ部11の向きが異なったとしても、マスク領域の傷画像をすべて覆うことができるように、その傷の周りも含めてマスク領域を設定してマスクを生成する。即ち、画像処理装置203は、図7に示すように、画像中に1ドットの傷があったとすると、その傷の周りのnドットの領域をマスク領域として設定する。マスク領域は、正方形である必要はなく、画像処理装置203は、台座13のたわみその他の特性によって傷を検出した位置に基づいてマスク領域を設定する。画像処理装置203は、このようにマスク領域を設定してマスクデータを生成し、生成したマスクデータをメモリ201に記憶する。   The image processing apparatus 203 is controlled by the CPU 206 to generate a mask that covers the mask area. At this time, the image processing apparatus 203 can cover all the wound images in the mask area even if the orientation of the camera unit 11 at the time of registration of the scratch and the recognition of the base 13 is different due to the deflection of the base 13 or the like. A mask is generated by setting a mask area including the area around the scratch. That is, as shown in FIG. 7, when there is a scratch of one dot in the image, the image processing apparatus 203 sets an n-dot region around the scratch as a mask region. The mask area does not need to be square, and the image processing apparatus 203 sets the mask area based on the position where the scratch is detected by the deflection or other characteristics of the base 13. The image processing apparatus 203 sets the mask area in this way, generates mask data, and stores the generated mask data in the memory 201.

そして、CPU206は、画像処理装置203が生成したマスクをメモリ201から読み出して傷画像を覆い、撮影画像に原稿画像が含まれているか否かを判定する。   Then, the CPU 206 reads out the mask generated by the image processing apparatus 203 from the memory 201, covers the scratched image, and determines whether the photographed image includes a document image.

CPU206は、この判定を行うため、まず、撮影画像に含まれているエッジ部を検出する。このエッジ部は、台座13の輪郭、原稿4の輪郭等を表すものである。   In order to make this determination, the CPU 206 first detects an edge portion included in the captured image. This edge portion represents the contour of the pedestal 13, the contour of the document 4, and the like.

CPU206は、エッジ部を検出するため、隣り合う画素の画素値の差分値と予め設定された所定値PSとを比較することにより、カメラ部11が撮影することによって得られた画像の中のエッジ部を検出する。この所定値PSは、このエッジ部を検出するために予め設定されたものである。   In order to detect the edge portion, the CPU 206 compares the difference value between the pixel values of adjacent pixels with a predetermined value PS set in advance, whereby an edge in an image obtained by the camera unit 11 capturing an image. Part. This predetermined value PS is preset in order to detect this edge portion.

図8に示すように、隣り合う画素を、それぞれ、point1,point2として、それぞれの画素値をP1,P2とする。CPU206は、画素point1の画素値(P1)と画素point2の画素値(P2)との差分値をこの所定値PSと比較し、この差分値がこの所定値PSよりも大きい場合、CPU206は、エッジ部が存在すると判定する。   As shown in FIG. 8, the adjacent pixels are point 1 and point 2, and the pixel values are P1 and P2. The CPU 206 compares the difference value between the pixel value (P1) of the pixel point1 and the pixel value (P2) of the pixel point2 with the predetermined value PS. When the difference value is larger than the predetermined value PS, the CPU 206 Is determined to exist.

次に、CPU206は、このエッジ部の数と予め設定された閾値ESとを比較することにより、台座13に原稿4が載置されているか否か、即ち、撮影対象に原稿4が含まれているか否かを判定する。原稿4が台座13に載置されていれば、台座13に載置されていない場合と比較してエッジ部の数を多くなる。閾値ESは、原稿4が台座13に載置されるか否かを判定するために、予め設定された値である。CPU206は、エッジ部の数が閾値ES以下と判定した場合は、撮影対象に原稿画像は含まれず、台座13のみの画像であると判定する。メモリ201は、この予め設定された所定値PSと閾値ESとを記憶する。   Next, the CPU 206 compares the number of edge portions with a preset threshold value ES to determine whether or not the document 4 is placed on the pedestal 13, that is, the document 4 is included in the shooting target. It is determined whether or not. If the document 4 is placed on the pedestal 13, the number of edge portions increases as compared to the case where the document 4 is not placed on the pedestal 13. The threshold value ES is a value set in advance to determine whether or not the document 4 is placed on the pedestal 13. If the CPU 206 determines that the number of edge portions is equal to or less than the threshold value ES, the CPU 206 determines that the image to be captured does not include a document image and is an image of only the base 13. The memory 201 stores the preset predetermined value PS and threshold value ES.

また、CPU206は、例えば、図9に示すように、ピントの合っていない写真やグラデーションで描かれた絵のようにエッジの検出が困難である場合、原稿エッジ部判別領域を覆ってマスク領域のエッジ部の数を計数する。これは、原稿4がカメラ部11の画角を越えている場合があり、この場合、原稿エッジ部判別領域のエッジ部の数が少なくなり、CPU206がマスク領域のエッジ部の数を計数して、再度、台座13に原稿4が載置されているか否かを判定するためである。このようにして、CPU206は、台座13に原稿4が載置されていないと誤判定するのを防ぐ。
CPU206は、マスク領域のエッジ部が規定値未満と判別した場合、図2に示す撮影画像中の台座13の十字マークJによる画像を判別する。
CPU206は、この十字印を形成する2つの線分に対して、図10、図11に示すように、縦方向と横方向とに撮影画像の画素を走査し、十字印画像と対応するエッジ部が検出されるか否かを判別することにより、撮影画像中の十字印画像の形状を判別する。
Further, for example, as shown in FIG. 9, when it is difficult to detect an edge such as a photograph that is not in focus or a picture drawn with gradation, the CPU 206 covers the document edge portion discrimination area and covers the mask area. Count the number of edges. This is because the document 4 sometimes exceeds the angle of view of the camera unit 11. In this case, the number of edge portions in the document edge portion determination area is reduced, and the CPU 206 counts the number of edge portions in the mask area. This is again to determine whether or not the document 4 is placed on the pedestal 13. In this way, the CPU 206 prevents erroneous determination that the document 4 is not placed on the pedestal 13.
When the CPU 206 determines that the edge portion of the mask area is less than the specified value, the CPU 206 determines an image by the cross mark J of the pedestal 13 in the captured image shown in FIG.
As shown in FIGS. 10 and 11, the CPU 206 scans the pixels of the captured image in the vertical direction and the horizontal direction with respect to the two line segments forming the cross mark, and the edge portion corresponding to the cross mark image. By determining whether or not is detected, the shape of the cross mark image in the captured image is determined.

そして、CPU206は、台座13に原稿4が載置されていると判定した場合にのみ、撮影画像から原稿4の画像を取り出して、画像処理装置203に画像補正等の画像処理を行わせる。   Only when it is determined that the document 4 is placed on the pedestal 13, the CPU 206 extracts the image of the document 4 from the photographed image and causes the image processing device 203 to perform image processing such as image correction.

プロジェクタ2は、スクリーン3に投影光を照射して原稿4の画像を結像させるものである。書画カメラ1とプロジェクタ2とは、RGB等のケーブル15を介して接続される。書画カメラ1は、カメラ部11が撮影した原稿4の画像データを、ケーブル15を介してプロジェクタ2に出力する。   The projector 2 irradiates the screen 3 with projection light and forms an image of the document 4. The document camera 1 and the projector 2 are connected via a cable 15 such as RGB. The document camera 1 outputs the image data of the document 4 photographed by the camera unit 11 to the projector 2 via the cable 15.

次に、実施形態1に係る撮影装置の動作を説明する。
ユーザが撮影装置の電源をONにすると、書画カメラ1のCPU206は、プログラムコード記憶装置205からプログラムコードを読み出す。ユーザが撮影ボタンを押下すると、操作部204は、この操作情報をCPU206に送信する。CPU206はこの操作情報を受信し、CPU206、画像処理装置203等は、基本撮影処理を実行する。
Next, the operation of the photographing apparatus according to the first embodiment will be described.
When the user turns on the power of the photographing apparatus, the CPU 206 of the document camera 1 reads the program code from the program code storage device 205. When the user presses the shooting button, the operation unit 204 transmits this operation information to the CPU 206. The CPU 206 receives this operation information, and the CPU 206, the image processing device 203, etc. execute basic photographing processing.

この基本撮影処理の内容を図12に示すフローチャートに従って説明する。
まず、CPU206は、書画カメラ1のカメラ部11の焦点、露出、ホワイトバランスなどのカメラ設定パラメータの初期化を行う(ステップS11)。
The contents of this basic photographing process will be described with reference to the flowchart shown in FIG.
First, the CPU 206 initializes camera setting parameters such as focus, exposure, and white balance of the camera unit 11 of the document camera 1 (step S11).

CPU206は、撮影モードを動画モードに初期化する(ステップS12)。CPU206は、撮影モードを動画モードに初期化するため、メモリ201上の指定した領域に動画モード(Motion)をセットする。さらに、CPU206は、カメラ部11のイメージセンサ102から読み出された画像データを、VGAによる画像データになるように設定する。   The CPU 206 initializes the shooting mode to the moving image mode (step S12). The CPU 206 sets the moving image mode (Motion) in the designated area on the memory 201 in order to initialize the shooting mode to the moving image mode. Further, the CPU 206 sets the image data read from the image sensor 102 of the camera unit 11 to be image data by VGA.

これにより、カメラ部11が捉えているシーンが、光学レンズ装置101を経由してイメージセンサ102に集光され、イメージセンサ102は集光された画像から動画撮影用の解像度の低いデジタル画像を作成する。そして、イメージセンサ102は、作成したデジタル画像を定期的に、例えば、秒30枚で、メモリ201に送り出す。   As a result, the scene captured by the camera unit 11 is condensed on the image sensor 102 via the optical lens device 101, and the image sensor 102 creates a low-resolution digital image for moving image shooting from the collected image. To do. Then, the image sensor 102 sends the created digital image to the memory 201 periodically, for example, at 30 sheets per second.

次に、CPU206は、書画台上の傷を検出し、後述する書画台の判定処理においてエッジの検出を行わない領域(マスク領域)を設定する(ステップS13)。
この処理を、図13のフローチャートに従って説明する。
Next, the CPU 206 detects a scratch on the document table, and sets a region (mask region) where edge detection is not performed in the document table determination process described later (step S13).
This process will be described with reference to the flowchart of FIG.

CPU206は、カメラ部11を制御して、傷の登録を行うための書画台の画像を動画モードで撮影させる(ステップS41)。撮影された書画台のデジタル画像は、イメージセンサ102を介してメモリ201に供給される。   The CPU 206 controls the camera unit 11 to take an image of the document table for registering scratches in the moving image mode (step S41). The photographed digital image of the document table is supplied to the memory 201 via the image sensor 102.

CPU206は、メモリ201から書画台の画像を読み出し、その画像からエッジ部の検出を行う(ステップS42)。   The CPU 206 reads the image on the document table from the memory 201, and detects an edge portion from the image (step S42).

CPU206は、画像上でエッジ部を検出したポイントを書画台の傷であると判別して、その周りの領域をマスク領域として設定する(ステップS43)。   The CPU 206 determines that the point where the edge portion is detected on the image is a scratch on the document table, and sets the surrounding area as a mask area (step S43).

次に、CPU206は、静止時間Ptimeのリセットを行う(ステップS14)。
次に、CPU206は、イメージセンサ102から低解像度の画像データをメモリ201に転送するように、イメージセンサ102とメモリ201とを制御する(ステップS15)。尚、ここでは、イメージセンサ102の画像データがメモリ201に転送されるだけで、表示装置202は、画像を表示しない。表示装置202が画像を表示しないのは、表示装置202の表示を行なう画像データがメモリ201上の異なるアドレスで示される領域に記憶されているからである。
Next, the CPU 206 resets the stationary time Ptime (step S14).
Next, the CPU 206 controls the image sensor 102 and the memory 201 so as to transfer low-resolution image data from the image sensor 102 to the memory 201 (step S15). Here, only the image data of the image sensor 102 is transferred to the memory 201, and the display device 202 does not display an image. The reason why the display device 202 does not display an image is that image data to be displayed on the display device 202 is stored in areas indicated by different addresses on the memory 201.

次に、CPU206は、前回撮影した画像との画像変化量MDを、数1に従って求める(ステップS16)。   Next, the CPU 206 obtains the image change amount MD with respect to the previously captured image according to the equation 1 (step S16).

CPU206は、撮影モードが動画モードか静止画モードかを判定する(ステップS17)。
初期状態では撮影モードに動画モードが設定されている。CPU206は、このため、初期状態では、動画モードと判定し(ステップS17:Yes)、撮影した動画を投影するために、メモリ201内にある動画の画像データをメモリ201の所定領域にコピーする(ステップS18)。これにより、表示装置202は、撮影された画像データをメモリ201から読み出し、RGB信号をプロジェクタ2に出力する。プロジェクタ2は、この信号に基づいて、画像を投影する。
The CPU 206 determines whether the shooting mode is the moving image mode or the still image mode (step S17).
In the initial state, the movie mode is set as the shooting mode. Therefore, the CPU 206 determines that the moving image mode is set in the initial state (step S17: Yes), and copies the moving image data in the memory 201 to a predetermined area of the memory 201 in order to project the captured moving image (step S17: Yes). Step S18). As a result, the display device 202 reads the captured image data from the memory 201 and outputs RGB signals to the projector 2. The projector 2 projects an image based on this signal.

CPU206は、予め設定された前述の閾値Thresh1とステップS16において求めた画像変化量MDとを比較し、比較結果に基づいて画像に動きがあるか否かを判定する(ステップS19)。   The CPU 206 compares the aforementioned threshold value Thresh1 set in advance with the image change amount MD obtained in step S16, and determines whether or not there is a motion based on the comparison result (step S19).

このとき、ユーザが、まだ、用紙を置くなどの動作を続けている場合、画像変化量MDは閾値Thresh1以上になる。この場合、CPU206は、画像に動きがあると判定し(ステップS19においてYes)、静止時間Ptimeをリセットして低解像度の画像データの読み込みを行い、画像変化量MDを求め、画像のメモリ201の投影画像領域への書き込みを行う(ステップS14〜S18)。これによりユーザが動作を行なっている間、撮影装置は、動画モードの状態を維持し続け、低解像度の動画画像がスクリーン3に投影される。   At this time, if the user still continues the operation such as placing paper, the image change amount MD is equal to or greater than the threshold value Thresh1. In this case, the CPU 206 determines that there is a motion in the image (Yes in step S19), resets the still time Ptime, reads low-resolution image data, obtains an image change amount MD, and stores the image change amount in the image memory 201. Writing to the projected image area is performed (steps S14 to S18). As a result, while the user performs an operation, the photographing apparatus continues to maintain the moving image mode state, and a low-resolution moving image is projected onto the screen 3.

その後、ユーザが用紙のセットを終えて画像に動きがなくなると、画像変化量MDは閾値未満になる。この場合、CPU206は、画像に動きがないと判定し(ステップS19においてNo)、静止時間Ptimeに1を加算する(ステップS20)。   After that, when the user finishes setting the paper and the image stops moving, the image change amount MD becomes less than the threshold value. In this case, the CPU 206 determines that there is no motion in the image (No in step S19), and adds 1 to the still time Ptime (step S20).

そして、CPU206は、静止時間Ptimeが所定時間HoldTimeに達したか否かを判定する(ステップS21)。   Then, the CPU 206 determines whether or not the stationary time Ptime has reached a predetermined time HoldTime (step S21).

静止時間Ptimeが所定時間HoldTimeに達していないと判定した場合(ステップS21においてNo)、CPU206は、画像に動きがないと判定するまで、再び低解像度の画像データを読み込んで、画像変化量MDを求め、動きがなければ、静止時間Ptimeに1を加算する(ステップS15〜S20)。この場合、静止時間Ptimeがリセットされないため、静止時間Ptimeは、CPU206によって、動画を読み込むごとにカウントアップされる。   If it is determined that the still time Ptime has not reached the predetermined time HoldTime (No in step S21), the CPU 206 reads low-resolution image data again and determines the image change amount MD until it determines that there is no motion in the image. If there is no movement, 1 is added to the stationary time Ptime (steps S15 to S20). In this case, since the stationary time Ptime is not reset, the stationary time Ptime is counted up every time the moving image is read by the CPU 206.

静止時間Ptimeが所定時間HoldTimeに達したと判定した場合(ステップS21においてYes)、CPU206は、撮影画像に基づいて台座13のみを映しているものか否かを判定する(ステップS22)。
CPU206は、この判定を行うための台座判定処理を図14に示すフローチャートに基づいて行う。
まず、CPU206は、取得した画像のうちステップS43で設定した領域(マスク領域)を取り除いた画像から、エッジ部の検出を行う(ステップS51)。
尚、具体的なエッジ部の検出方法は、前述したステップS42のものと同様であるため、ここでの説明は省略する。
When it is determined that the stationary time Ptime has reached the predetermined time HoldTime (Yes in step S21), the CPU 206 determines whether only the pedestal 13 is shown based on the captured image (step S22).
CPU206 performs the base determination process for performing this determination based on the flowchart shown in FIG.
First, the CPU 206 detects an edge portion from an image obtained by removing the area (mask area) set in step S43 from the acquired image (step S51).
Note that a specific edge detection method is the same as that in step S42 described above, and a description thereof will be omitted here.

CPU206は、前述したエッジ部の検出処理を各ラインに沿って行い、隣り合う全てのラインで検出されたエッジ部の数を加算する。そして、画像中のエッジ部の数を所定の閾値ESと比較する(ステップS52)。   The CPU 206 performs the edge portion detection process described above along each line, and adds the number of edge portions detected in all adjacent lines. Then, the number of edge portions in the image is compared with a predetermined threshold value ES (step S52).

エッジ部の数が閾値ESより多いと判定すると(ステップS52においてYes)、CPU206は、撮影対象物が台座13ではないと判定する。一方、エッジ部の数が閾値ES以下であると判定すると(ステップS52においてNo)、CPU206は、原稿エッジ部判別領域の画像を覆って撮影画像中のマスク領域の部分から、エッジ部の検出を行う(ステップS53)。   If it is determined that the number of edge portions is greater than the threshold value ES (Yes in step S52), the CPU 206 determines that the imaging target is not the pedestal 13. On the other hand, if it is determined that the number of edge portions is equal to or less than the threshold value ES (No in step S52), the CPU 206 detects the edge portion from the portion of the mask region in the captured image that covers the image of the document edge portion determination region. This is performed (step S53).

CPU206は、前述したエッジ部の検出処理をマスク領域の各ラインに沿って行い、隣り合う全てのラインで検出されたエッジ部の数を加算する。そして、画像中のマスク領域におけるエッジ部の数を所定の閾値ES2と比較する(ステップS54)。エッジ部の数が閾値ES2以下であると判定すると(ステップS54においてNo)、CPU206は、撮影対象物が台座13ではないと判定する。   The CPU 206 performs the edge portion detection process described above along each line in the mask area, and adds the number of edge portions detected in all adjacent lines. Then, the number of edge portions in the mask area in the image is compared with a predetermined threshold value ES2 (step S54). If it is determined that the number of edge portions is equal to or less than the threshold value ES2 (No in step S54), the CPU 206 determines that the imaging target is not the pedestal 13.

一方、マスク領域におけるエッジ部の数が閾値ES2より多いと判定すると(ステップS54においてYes)、CPU206は、台座13の中央部付近で十字マークJの検出を行う(ステップS55)。
このCPU206は、十字マークJの十字認識処理を図15に示すフローチャートに従って行う。
まず、CPU206は、図10に示すように、台座13の中心付近で、縦方向の立ち下がりエッジを検出する(ステップS61)。そして、CPU206は、ほぼ同じ縦座標で2本もしくは3本の立ち下がりエッジがあったか否かを判定する(ステップS62)。立ち下がりエッジがなかったと判定すると(ステップS62においてNo)、CPU206は、撮影対象物に十字マークJがないものと決定して、この処理を終了する。
On the other hand, if it is determined that the number of edge portions in the mask area is larger than the threshold value ES2 (Yes in step S54), the CPU 206 detects the cross mark J near the center of the base 13 (step S55).
The CPU 206 performs a cross recognition process for the cross mark J according to the flowchart shown in FIG.
First, as shown in FIG. 10, the CPU 206 detects a falling edge in the vertical direction near the center of the pedestal 13 (step S61). Then, the CPU 206 determines whether or not there are two or three falling edges with substantially the same ordinate (step S62). If it is determined that there is no falling edge (No in step S62), the CPU 206 determines that the photographic subject does not have the cross mark J, and ends this process.

一方、ほぼ同じ縦座標で2本もしくは3本の立ち下がりエッジがあったと判定すると(ステップS62においてYes)、CPU206は、台座13の中央部付近で、縦方向の立ち上がりエッジを検出する(ステップS63)。そして、CPU206は、ほぼ同じ縦座標で2本もしくは3本の立ち上がりエッジがあったか否かを判定する(ステップS64)。立ち上がりエッジがなかったと判定すると(ステップS64においてNo)、CPU206は、撮影対象物に十字マークJがないものと決定づけて、この処理を終了する。   On the other hand, if it is determined that there are two or three falling edges with substantially the same ordinate (Yes in step S62), the CPU 206 detects a rising edge in the vertical direction near the center of the base 13 (step S63). ). Then, the CPU 206 determines whether or not there are two or three rising edges at substantially the same ordinate (step S64). If it is determined that there is no rising edge (No in step S64), the CPU 206 determines that the object to be imaged does not have the cross mark J, and ends this process.

一方、ほぼ同じ縦座標で2本もしくは3本の立ち上がりエッジがあったと判定すると(ステップS64においてYes)、CPU206は、図11に示すように、台座13の中央部付近で横方向の立ち下がりエッジを検出する(ステップS65)。そして、CPU206は、ほぼ同じ横座標で2本もしくは3本の立ち下がりエッジがあったか否かを判定する(ステップS66)。立ち下がりエッジがなかったと判定すると(ステップS66においてNo)、CPU206は、撮影対象物に十字マークJがないものと決定づけて、この処理を終了する。   On the other hand, if it is determined that there are two or three rising edges at substantially the same ordinate (Yes in step S64), the CPU 206 causes the horizontal falling edge near the center of the base 13 as shown in FIG. Is detected (step S65). Then, the CPU 206 determines whether or not there are two or three falling edges with substantially the same abscissa (step S66). If it is determined that there is no falling edge (No in step S66), the CPU 206 determines that the object to be imaged does not have the cross mark J, and ends this process.

一方、ほぼ同じ横座標で2本もしくは3本の立ち下がりエッジがあったと判定すると(ステップS66においてYes)、CPU206は、台座13の中央部付近で、横方向の立ち上がりエッジを検出する(ステップS67)。そして、CPU206は、ほぼ同じ横座標で2本もしくは3本の立ち上がりエッジがあったか否かを判定する(ステップS68)。立ち上がりエッジがなかったと判定すると(ステップS68においてNo)、CPU206は、撮影対象物に十字マークJがないものと決定づけて、この処理を終了する。   On the other hand, if it is determined that there are two or three falling edges with substantially the same abscissa (Yes in step S66), the CPU 206 detects a rising edge in the horizontal direction near the center of the base 13 (step S67). ). Then, the CPU 206 determines whether or not there are two or three rising edges on substantially the same abscissa (step S68). If it is determined that there is no rising edge (No in step S68), the CPU 206 determines that the object to be imaged does not have the cross mark J, and ends this process.

一方、ほぼ同じ横座標で2本もしくは3本の立ち上がりエッジがあったと判定すると(ステップS68においてYes)、CPU206は、ステップS61〜68において検出された縦横のエッジが交差しているか否かを判定する(ステップS69)。交差していないと判定すると(ステップS69においてNo)、CPU206は、撮影対象物に十字マークJがないものと決定づけて、この処理を終了する。   On the other hand, if it is determined that there are two or three rising edges at substantially the same abscissa (Yes in step S68), the CPU 206 determines whether the vertical and horizontal edges detected in steps S61 to 68 intersect. (Step S69). If it is determined that they do not intersect (No in step S69), the CPU 206 determines that the object to be imaged has no cross mark J, and ends this process.

一方、縦横のエッジが交差していると判別すると(ステップS69においてYes)、CPU206は、撮影対象物に十字マークJがあるものと決定づけて、この処理を終了する。   On the other hand, if it is determined that the vertical and horizontal edges intersect (Yes in step S69), the CPU 206 determines that the object to be photographed has the cross mark J and ends this processing.

ステップS61〜69で示した一連の処理により、CPU206は撮影対象物に十字マークJが存在するか否かを判定する(図14のフローにおけるステップS56)。撮影対象物に十字マークJが存在しないと判定すると(ステップS56においてNo)、CPU206は、撮影対象物が台座13ではないと判定する。一方、撮影対象物に十字マークJが存在すると判定すると(ステップS56においてYes)、CPU206は、撮影対象物が台座13であると判定する。   Through the series of processes shown in steps S61 to S69, the CPU 206 determines whether or not the cross mark J is present on the photographing target (step S56 in the flow of FIG. 14). If it is determined that the cross mark J does not exist in the shooting target (No in step S56), the CPU 206 determines that the shooting target is not the pedestal 13. On the other hand, if it is determined that the cross mark J is present on the shooting target (Yes in step S56), the CPU 206 determines that the shooting target is the pedestal 13.

台座13のみではないと判定した場合(図12のステップS22においてNo)、即ち、台座13に原稿4が載置されていると判定した場合、CPU206は、撮影モードを静止画モードに設定する(ステップS23)。
CPU206は、高解像度の静止画像を撮影するようにイメージセンサ102を制御する(ステップS24)。
When it is determined that it is not only the pedestal 13 (No in step S22 in FIG. 12), that is, when it is determined that the document 4 is placed on the pedestal 13, the CPU 206 sets the shooting mode to the still image mode ( Step S23).
The CPU 206 controls the image sensor 102 so as to capture a high-resolution still image (step S24).

画像処理装置203は、図16に示すフローチャートに従って、撮影を行った画像に対して画像補正処理を行う(ステップS25)。
CPU206は、画像処理装置203を制御し、画像処理装置203は、読み込まれた高解像度の静止画像に対して、斜め補正を行うための射影パラメータの抽出を行う(ステップS71)。この射影パラメータは、原稿4の画像の形状と実際の原稿4の形状との関係を示すものである。
The image processing apparatus 203 performs image correction processing on the captured image according to the flowchart shown in FIG. 16 (step S25).
The CPU 206 controls the image processing apparatus 203, and the image processing apparatus 203 extracts projection parameters for performing oblique correction on the read high-resolution still image (step S71). This projection parameter indicates the relationship between the shape of the image of the document 4 and the actual shape of the document 4.

画像処理装置203は、さらにその抽出された射影パラメータに従って、撮影対象の切抜きと、正面画像への射影変換を行う(ステップS72)。
画像処理装置203は、作成された補正画像から、コントラスト補正などの鮮明、識別しやすい画像へ変換するため、画像効果補正用パラメータの抽出を行う(ステップS73)。
画像処理装置203は、抽出された画像効果補正用パラメータを用いて、画像効果処理を行う(ステップS74)。
The image processing apparatus 203 further performs clipping of the object to be imaged and projection conversion to the front image in accordance with the extracted projection parameters (step S72).
The image processing apparatus 203 extracts image effect correction parameters in order to convert the created corrected image into a clear and easily identifiable image such as contrast correction (step S73).
The image processing apparatus 203 performs image effect processing using the extracted image effect correction parameters (step S74).

CPU206は、画像効果処理を行った画像データの投影を行うために、動画画像のときと同じように、メモリ201内の所定領域に補正画像データの書き込みを行う。そして、CPU206は、表示装置202から、画像データをRGB信号でプロジェクタ2に出力する(ステップS75)。   The CPU 206 writes the corrected image data in a predetermined area in the memory 201 as in the case of the moving image in order to project the image data subjected to the image effect processing. Then, the CPU 206 outputs image data as RGB signals from the display device 202 to the projector 2 (step S75).

画像処理装置203がこのような画像補正処理を行うと、CPU206は、画像処理装置203が画像補正処理を行った静止画像を、メモリ201に書き込み、保存する(ステップS26)。表示装置202は高解像度画像を投影する。   When the image processing apparatus 203 performs such image correction processing, the CPU 206 writes and stores the still image that has been subjected to image correction processing by the image processing apparatus 203 in the memory 201 (step S26). The display device 202 projects a high resolution image.

CPU206は、カメラ部11の解像度を再び低解像度の読み込み状態に戻し、低解像度画像を取得させる(ステップS27)。   The CPU 206 returns the resolution of the camera unit 11 to the low resolution reading state again, and acquires a low resolution image (step S27).

CPU206は、前述した処理と同様の方法で画像変化量MDを求め、取得した低解像度画像に動きがあるか否かを判定する(ステップS28)。
画像に動きがないと判定した場合(ステップS28においてNo)、CPU206は、再度、低解像度画像を取得させる(ステップS27)。
一方、画像に動きがあると判定した場合(ステップS28においてYes)、CPU206は、再び静止時間Ptimeをリセットして、低解像度の画像を読み込み、画像変化量MDを求める(ステップS14〜S16)。
The CPU 206 obtains the image change amount MD by the same method as that described above, and determines whether or not there is a motion in the acquired low resolution image (step S28).
If it is determined that there is no motion in the image (No in step S28), the CPU 206 obtains a low-resolution image again (step S27).
On the other hand, if it is determined that there is motion in the image (Yes in step S28), the CPU 206 resets the still time Ptime again, reads a low-resolution image, and obtains the image change amount MD (steps S14 to S16).

ここで、撮影モードが静止画モードと判定した場合(ステップS17においてNo)、CPU206は、求めた画像変化量MDともう一つの所定閾値Thresh2(Thresh1<Thresh2)との比較を行い、画像に動きがあるか否かを判定する(ステップS29)。   If it is determined that the shooting mode is the still image mode (No in step S17), the CPU 206 compares the obtained image change amount MD with another predetermined threshold value Thresh2 (Thresh1 <Thresh2), and moves the image. It is determined whether or not there is (step S29).

CPU206は、画像変化量MDが閾値Thresh2以下であれば、画像に動きがないと判定する(ステップS29においてNo)。この場合、CPU206は、引き続き、画像変化量MDと閾値Thresh1との比較を行い、画像に動きがあるか否かを判定する(ステップS30)。   If the image change amount MD is equal to or less than the threshold value Thresh2, the CPU 206 determines that there is no movement in the image (No in step S29). In this case, the CPU 206 continues to compare the image change amount MD with the threshold value Thresh1, and determines whether or not there is a motion in the image (step S30).

そして、画像変化量MDが閾値Thresh2を越えていれば、CPU206は、画像に動きがあると判定し(ステップS29においてYes)、撮影モードを動画モードに設定する(ステップS31)。そして、CPU206は、静止時間Ptimeをリセットする(ステップS14)。   If the image change amount MD exceeds the threshold value Thresh2, the CPU 206 determines that the image has a motion (Yes in step S29), and sets the shooting mode to the moving image mode (step S31). Then, the CPU 206 resets the stationary time Ptime (step S14).

一方、画像変化量MDが閾値Thresh2以下であっても、閾値Thresh1を越えていれば、CPU206は、画像に動きがあると判定する(ステップS30においてYes)。この場合、CPU206は、画像変化量MDが閾値Thresh1と閾値Thresh2との間であるため、撮影モードを動画モードに切り替えないようにする(ステップS22〜S27)。   On the other hand, even if the image change amount MD is equal to or less than the threshold value Thresh2, if the image change amount MD exceeds the threshold value Thresh1, the CPU 206 determines that there is a motion in the image (Yes in step S30). In this case, since the image change amount MD is between the threshold value Thresh1 and the threshold value Thresh2, the CPU 206 does not switch the shooting mode to the moving image mode (steps S22 to S27).

また、画像変化量MDが閾値Thresh2未満であり、かつ、閾値Thresh1未満であれば、CPU206は、静止状態が継続しているものと判定する(ステップS30においてNo)。この場合、CPU206は、ステップ14に戻る。   If the image change amount MD is less than the threshold value Thresh2 and less than the threshold value Thresh1, the CPU 206 determines that the still state is continuing (No in step S30). In this case, the CPU 206 returns to step 14.

このようにして、CPU206は、動画モードと静止画モードとの切り替えを行いながら投影制御を行う。これにより、ユーザが操作を行なっている間は、フレーム周波数優先の画像の投影が行われ、画像が静止すれば、撮影対象の原稿4の切り抜き及び画像効果処理を行って高解像度画像の投影が行われる。   In this way, the CPU 206 performs projection control while switching between the moving image mode and the still image mode. Thereby, while the user is performing the operation, the frame frequency priority image is projected, and when the image is stationary, the document 4 to be imaged is cut out and the image effect processing is performed to project the high resolution image. Done.

以上説明したように、本実施形態によれば、CPU206は、まず、マスク領域の画像を覆って原稿エッジ部判別領域のエッジを検出し、検出したエッジの量を予め設定しておいた閾値と比較する。比較の結果、エッジの量が閾値以上であった場合、CPU206は、撮影対象物が原稿4であると判定する。一方、エッジの量が閾値未満であった場合、次にCPU206は、原稿エッジ部判別領域の画像を覆ってマスク領域のエッジ部を検出し、検出したエッジの量を予め設定した閾値と比較する。そして、閾値以上と判定した場合、CPU206は、撮影対象物の画像中に十字マークJが検出されるか否かを判別する。そして、十字マークJが検出されなかった場合、CPU206は、撮影対象物が台座13ではないと判定する。一方、十字マークが検出された場合、CPU206は、撮影対象物が台座13であると判定する。CPU206は、判定の結果に基づいて、撮影モードを動画モードと静止画モードとに切り替える。   As described above, according to the present embodiment, the CPU 206 first detects the edge of the document edge portion discrimination area by covering the image of the mask area, and sets the detected edge amount to a preset threshold value. Compare. As a result of the comparison, if the edge amount is equal to or greater than the threshold value, the CPU 206 determines that the photographing object is the document 4. On the other hand, if the edge amount is less than the threshold value, the CPU 206 next detects the edge portion of the mask region covering the image of the document edge portion determination region, and compares the detected edge amount with a preset threshold value. . If it is determined that the threshold value is equal to or greater than the threshold, the CPU 206 determines whether or not the cross mark J is detected in the image of the shooting target. If the cross mark J is not detected, the CPU 206 determines that the object to be imaged is not the pedestal 13. On the other hand, when the cross mark is detected, the CPU 206 determines that the photographing target is the pedestal 13. The CPU 206 switches the shooting mode between the moving image mode and the still image mode based on the determination result.

従って、例えば、撮影を行う用紙の交換中などのように台座13に原稿が載置されていない場合や、原稿4の位置が撮影中心から大きく外れている場合などには、高精細画像の撮影、保存及び投影を行わないようになる。また、原稿が白紙の場合などにも、無駄に撮影を行うことを避けることができる。
また、エッジ量に基づいた判定の後、さらに十字マークJの検出による判定を行うことにより、例えばピントのずれた写真や、明確な線でなく濃淡のみで描かれた画像等、エッジの検出が困難な用紙が載置されているような場合にも、撮影対象物が原稿4なのか台座13なのかといった判定を正確に行うことが可能となる。
Therefore, for example, when a document is not placed on the pedestal 13 such as during replacement of a sheet to be photographed, or when the position of the document 4 is greatly deviated from the photographing center, a high-definition image is photographed. , No storage and no projection. Also, it is possible to avoid wasteful shooting even when the document is a blank sheet.
Further, after the determination based on the edge amount, the detection by the detection of the cross mark J is performed to detect the edge of, for example, an out-of-focus photograph or an image drawn with only light and shade instead of a clear line. Even when a difficult sheet is placed, it is possible to accurately determine whether the photographing object is the document 4 or the pedestal 13.

また、CPU206は、エッジ量に基づく判定を行う際、予め台座13の傷とその周りの領域とをエッジ検出に用いない領域として設定した上で、撮影画像中のエッジを検出する。これにより、台座13の状態(台上の傷や汚れ等)によって誤判定が起こるのを防ぐことができる。   Further, when making a determination based on the edge amount, the CPU 206 detects an edge in the captured image after setting the scratch on the pedestal 13 and the surrounding area as an area not used for edge detection. Thereby, it is possible to prevent erroneous determination from occurring due to the state of the pedestal 13 (such as scratches and dirt on the pedestal).

尚、本発明を実施するにあたっては、種々の形態が考えられ、上記実施形態に限られるものではない。
例えば、撮影画像中のマスク領域に含まれるエッジの判定(図14のステップS54)をしてから、撮影画像中のマスク領域以外の部分に含まれるエッジの量の判定(ステップS52)をしてもよい。また、ステップS54の判定でエッジの量が規定値以上の場合(ステップS54においてYes)に、十字マークJの検索をせずに、すぐに台座のみと判定するようにしてもよい。
In carrying out the present invention, various forms are conceivable and the present invention is not limited to the above embodiment.
For example, after determining the edge included in the mask area in the captured image (step S54 in FIG. 14), the amount of edge included in the portion other than the mask area in the captured image is determined (step S52). Also good. Further, if the amount of edge is greater than or equal to the specified value in the determination in step S54 (Yes in step S54), it may be determined immediately that only the pedestal is performed without searching for the cross mark J.

また、上記実施形態では、台座13の表面に十字マークJが記され、それが撮影対象物の画像中に検出されたか否かによって判定を行った。しかし、判定に用いられるマークは十字に限られず、画像中から容易に検出可能な形態のものであればよい。例えば、アルファベット等の模様が台座13に記され、撮影画像中にそのアルファベットが検出されたか否かによって、撮影対象物が台座13か原稿4かを判定することも可能である。   Moreover, in the said embodiment, the cross mark J was marked on the surface of the base 13, and it determined by whether it was detected in the image of a to-be-photographed object. However, the mark used for the determination is not limited to a cross, and any mark that can be easily detected from an image may be used. For example, a pattern such as an alphabet is written on the pedestal 13, and it is possible to determine whether the object to be photographed is the pedestal 13 or the document 4 depending on whether or not the alphabet is detected in the photographed image.

上記実施形態では、プログラムが、それぞれメモリ等に予め記憶されているものとして説明した。しかし、コンピュータを、装置の全部又は一部として動作させ、あるいは、上述の処理を実行させるためのプログラムを、フレキシブルディスク、CD−ROM(Compact
Disk Read-Only Memory)、DVD(Digital Versatile Disk)、MO(Magneto Optical disk)などのコンピュータ読み取り可能な記録媒体に格納して配布し、これを別のコンピュータにインストールし、上述の手段として動作させ、あるいは、上述の工程を実行させてもよい。
さらに、インターネット上のサーバ装置が有するディスク装置等にプログラムを格納しておき、例えば、搬送波に重畳させて、コンピュータにダウンロード等するものとしてもよい。
In the above-described embodiment, the program is described as being stored in advance in a memory or the like. However, a program for causing a computer to operate as all or part of the apparatus or to execute the above-described processing is stored on a flexible disk, a CD-ROM (Compact
Store it on a computer-readable recording medium such as Disk Read-Only Memory (DVD), Digital Versatile Disk (DVD), or MO (Magneto Optical disk), distribute it, install it on another computer, and operate it as the above-mentioned means Alternatively, the above-described steps may be executed.
Furthermore, the program may be stored in a disk device or the like included in a server device on the Internet, and may be downloaded onto a computer by being superimposed on a carrier wave, for example.

本発明の実施形態1に係る撮影装置の構成を示すブロック図である。It is a block diagram which shows the structure of the imaging device which concerns on Embodiment 1 of this invention. 図1に示す撮影装置の台座に十字が描かれている様子を示す図である。It is a figure which shows a mode that the cross is drawn on the base of the imaging device shown in FIG. 図1に示す書画カメラの構成図である。It is a block diagram of the document camera shown in FIG. 図3に示す画像処理装置の機能の説明図である。It is explanatory drawing of the function of the image processing apparatus shown in FIG. 図3に示す操作部が備える各キーの説明図である。It is explanatory drawing of each key with which the operation part shown in FIG. 3 is provided. 図3に示すCPUが設定する原稿エッジ部判別領域とマスク領域とを説明するための説明図である。FIG. 4 is an explanatory diagram for explaining a document edge portion discrimination area and a mask area set by a CPU shown in FIG. 3. 傷をマスクするマスク領域の設定方法の説明図である。It is explanatory drawing of the setting method of the mask area | region which masks a damage | wound. エッジ部の検出方法の説明図である。It is explanatory drawing of the detection method of an edge part. 図3に示すCPUの原稿の有無の判別方法を説明するための図である。It is a figure for demonstrating the determination method of the presence or absence of the original document of CPU shown in FIG. 十字認識処理の際の縦方向のエッジの検出方法を説明するための図である。It is a figure for demonstrating the detection method of the edge of the vertical direction in the case of a cross recognition process. 十字認識処理の際の横方向のエッジの検出方法を説明するための図である。It is a figure for demonstrating the detection method of the edge of the horizontal direction in the case of a cross recognition process. 図1に示す撮影装置が実行する基本投影処理の内容を示すフローチャートである。It is a flowchart which shows the content of the basic projection process which the imaging device shown in FIG. 1 performs. 図1に示す撮影装置が実行する台座の傷をマスクエリアに登録する処理の内容を示すフローチャートである。It is a flowchart which shows the content of the process which registers the damage | wound of the base which the imaging device shown in FIG. 1 performs into a mask area. 図1に示す撮影装置が実行する台座判定の処理の内容を示すフローチャートである。It is a flowchart which shows the content of the process of the base determination which the imaging device shown in FIG. 1 performs. 図1に示す撮影装置が実行する十字認識処理の内容を示すフローチャートである。It is a flowchart which shows the content of the cross recognition process which the imaging device shown in FIG. 1 performs. 図3に示す画像処理装置が実行する画像補正処理の内容を示すフローチャートである。It is a flowchart which shows the content of the image correction process which the image processing apparatus shown in FIG. 3 performs. 従来の問題点を説明するための説明図である。It is explanatory drawing for demonstrating the conventional problem.

符号の説明Explanation of symbols

1・・・書画カメラ、2・・・プロジェクタ、3・・・スクリーン、4・・・原稿、11・・・カメラ部、101・・・光学レンズ装置、201・・・メモリ、202・・・表示装置、203・・・画像処理装置、204・・・操作部、205・・・プログラムコード記憶装置、206・・・CPU   DESCRIPTION OF SYMBOLS 1 ... Document camera, 2 ... Projector, 3 ... Screen, 4 ... Document, 11 ... Camera part, 101 ... Optical lens apparatus, 201 ... Memory, 202 ... Display device 203... Image processing device 204... Operation unit 205 205 Program code storage device 206.

Claims (10)

書画台に載置された原稿を前記書画台を含めて撮影する撮影装置において、
前記書画台とともに前記原稿を低解像度又は高解像度で撮影する撮影部と、
前記撮影部の撮影によって得られた撮影画像に基づいて前記書画台に前記原稿が載置されているか否かを判定し、前記書画台に前記原稿が載置されていると判定した場合、前記撮影部の解像度を高解像度に設定する制御部と、を備え、
前記制御部は、前記撮影部の撮影によって得られた撮影画像に、前記原稿によるエッジ部を判別するための第1の判別領域と前記第1の判別領域外の前記書画台によるエッジ部を含むエッジ部を判別するための第2の判別領域とを予め設定し、前記第2の判別領域の画像を覆って前記第1の判別領域に存在するエッジ部の数を計数し、計数した前記第1の判別領域のエッジ部の数が予め設定された第1の閾値未満であり、かつ、前記第1の判別領域の画像を覆って前記第2の判別領域に含まれているエッジ部の数を計数し、計数した前記第2の判別領域のエッジ部の数が予め設定された第2の閾値未満の場合には、前記書画台に前記原稿が載置されていると判定する、
ことを特徴とする撮影装置。
In a photographing apparatus for photographing a document placed on a document table including the document table,
A photographing unit that photographs the original together with the document table at a low resolution or a high resolution;
When determining whether or not the document is placed on the document stand based on a photographed image obtained by photographing of the photographing unit, if it is determined that the document is placed on the document stand, A control unit for setting the resolution of the photographing unit to a high resolution,
The control unit includes a first determination region for determining an edge portion of the original and an edge portion of the document table outside the first determination region in a photographed image obtained by photographing of the photographing unit. A second discriminating region for discriminating an edge portion is set in advance, the number of edge portions existing in the first discriminating region covering the image of the second discriminating region is counted, and the counted first The number of edge portions in which the number of edge portions of one discrimination region is less than a preset first threshold and covers the image of the first discrimination region and is included in the second discrimination region And when the counted number of edge portions of the second determination area is less than a preset second threshold, it is determined that the document is placed on the document table.
An imaging apparatus characterized by that.
前記制御部は、前記第2の判別領域の画像を覆って前記第1の判別領域に存在するエッジ部の数を計数し、計数した前記第1の判別領域のエッジ部の数が予め設定された第1の閾値未満の場合に、前記第1の判別領域の画像を覆って前記第2の判別領域に含まれているエッジ部の数を計数し、計数した前記第2の判別領域のエッジ部の数が予め設定された第2の閾値未満の場合には、前記書画台に前記原稿が載置されていると判定する、
ことを特徴とする請求項1に記載の撮影装置。
The control unit counts the number of edge portions existing in the first determination region so as to cover the image of the second determination region, and the counted number of edge portions of the first determination region is preset. When the number of edges is less than the first threshold and covers the image of the first discrimination area, the number of edge portions included in the second discrimination area is counted, and the edges of the second discrimination area thus counted are counted. If the number of copies is less than a preset second threshold, it is determined that the document is placed on the document table;
The imaging apparatus according to claim 1, wherein:
前記書画台は、前記原稿によるエッジ部を判別するための前記第1の判別領域に対応する位置に予め識別印が記されたものであって、
前記制御部は、前記第2の領域のエッジ部の数が前記第2の閾値以上の場合は、前記識別印による画像を判別し、前記識別印による画像が判別されなかった場合には、前記書画台に前記原稿が載置されていると判定する、
ことを特徴とする請求項1又は2に記載の撮影装置。
The document table is preliminarily marked with an identification mark at a position corresponding to the first discrimination area for discriminating an edge portion of the document.
The control unit determines an image based on the identification mark when the number of edge portions of the second region is equal to or greater than the second threshold value, and determines that the image based on the identification mark is not determined. It is determined that the document is placed on the document table.
The photographing apparatus according to claim 1 or 2, characterized in that
前記制御部は、前記書画台に前記原稿が載置されていないと判定した場合、前記撮影部の解像度を低解像度に設定する、
ことを特徴とする請求項1乃至3のいずれか1項に記載の撮影装置。
When the control unit determines that the document is not placed on the document table, the control unit sets the resolution of the photographing unit to a low resolution.
The photographing apparatus according to any one of claims 1 to 3, wherein
前記制御部は、前記第1の判別領域又は前記第2の判別領域における画素値を取得して、取得した画素値のうち、隣接した画素の画素値の差分に基づいてエッジ部を検出してエッジ部の数を計数する、
ことを特徴とする請求項1乃至4のいずれか1項に記載の撮影装置。
The control unit acquires a pixel value in the first determination region or the second determination region, and detects an edge portion based on a difference between pixel values of adjacent pixels among the acquired pixel values. Count the number of edges,
The photographing apparatus according to claim 1, wherein the photographing apparatus is characterized in that:
前記制御部は、前記撮影画像中の前記識別印による画像の形状を判別することにより、前記撮影画像に前記原稿の画像が含まれているか否かを判定する、
ことを特徴とする請求項3に記載の撮影装置。
The controller determines whether or not the image of the document is included in the captured image by determining the shape of the image by the identification mark in the captured image;
The imaging device according to claim 3.
前記書画台は、前記形状が設定された識別印として、互いに交差する線分によって形成された十字印が予め記されたものであり、
前記制御部は、前記撮影画像中の前記十字印を形成する前記2つの線分に対して異なる2つの方向に前記撮影画像の画素を走査し、前記十字印の画像と対応するエッジ部が検出されるか否かを判別することにより、前記撮影画像中の前記十字印画像の形状を判別する、
ことを特徴とする請求項6に記載の撮影装置。
The document table is preliminarily written with a cross mark formed by line segments intersecting each other as an identification mark set with the shape,
The control unit scans pixels of the photographed image in two different directions with respect to the two line segments forming the cross mark in the photographed image, and an edge portion corresponding to the image of the cross mark is detected. Determining the shape of the cross mark image in the captured image by determining whether or not
The imaging device according to claim 6.
書画台に載置された原稿を前記書画台を含めて撮影する撮影装置において、
前記書画台とともに前記原稿を低解像度又は高解像度で撮影する撮影部と、
前記撮影部の撮影によって得られた撮影画像に基づいて前記書画台に前記原稿が載置されているか否かを判定し、前記書画台に前記原稿が載置されていると判定した場合、前記撮影部の解像度を高解像度に設定する制御部と、を備え、
前記制御部は、前記撮影部の撮影によって得られた撮影画像に、前記原稿によるエッジ部を判別するための第1の判別領域と前記第1の判別領域外の前記書画台によるエッジ部を含むエッジ部を判別するための第2の判別領域とを予め設定し、前記第2の判別領域の画像を覆って前記第1の判別領域に存在するエッジ部の数を計数し、計数した前記第1の判別領域のエッジ部の数が予め設定された第1の閾値未満の場合に、前記第1の判別領域の画像を覆って前記第2の判別領域に含まれているエッジ部の数を計数し、計数した前記第2の判別領域のエッジ部の数が予め設定された第2の閾値以上の場合には、前記書画台に前記原稿が載置されていないと判定する、
ことを特徴とする撮影装置。
In a photographing apparatus for photographing a document placed on a document table including the document table,
A photographing unit that photographs the original together with the document table at a low resolution or a high resolution;
When determining whether or not the document is placed on the document stand based on a photographed image obtained by photographing of the photographing unit, if it is determined that the document is placed on the document stand, A control unit for setting the resolution of the photographing unit to a high resolution,
The control unit includes a first determination region for determining an edge portion of the original and an edge portion of the document table outside the first determination region in a photographed image obtained by photographing of the photographing unit. A second discriminating region for discriminating an edge portion is set in advance, the number of edge portions existing in the first discriminating region covering the image of the second discriminating region is counted, and the counted first When the number of edge portions of one discrimination area is less than a preset first threshold, the number of edge portions included in the second discrimination area covering the image of the first discrimination area is determined. Counting, and when the counted number of edge portions of the second determination area is equal to or greater than a preset second threshold, it is determined that the document is not placed on the document table.
An imaging apparatus characterized by that.
書画台に載置された原稿を撮影する撮影装置の撮影制御方法であって、
撮影により前記書画台を含む撮影画像を取得するステップと、
撮影によって得られた撮影画像に、前記原稿によるエッジ部を判別するための第1の判別領域と前記第1の判別領域外の前記書画台によるエッジ部を含むエッジ部を判別するための第2の判別領域とを予め設定し、前記第2の判別領域の画像を覆って前記第1の判別領域に存在するエッジ部の数を計数するステップと、
計数した前記第1の判別領域のエッジ部の数と予め設定された第1の閾値とを比較し、計数した前記第1の判別領域のエッジ部の数が前記第1の閾値未満の場合に、前記第1の判別領域の画像を覆って前記第2の判別領域に含まれているエッジ部の数を計数するステップと、
計数した前記第2の判別領域のエッジ部の数と予め設定された第2の閾値とを比較し、計数した前記第2の判別領域のエッジ部の数が前記第2の閾値未満の場合には、前記書画台に前記原稿が載置されていると判定するステップと、
前記書画台に前記原稿が載置されていると判定した場合、前記撮影部の解像度を高解像度に設定するステップと、を備えた、
ことを特徴とする撮影装置の撮影制御方法。
A photographing control method of a photographing device for photographing a document placed on a document table,
Obtaining a photographed image including the document table by photographing;
A second discriminating portion for discriminating an edge portion including a first discriminating region for discriminating an edge portion due to the original and an edge portion due to the document table outside the first discriminating region from the photographed image obtained by photographing. And determining the number of edge portions existing in the first determination area, covering the image of the second determination area,
When the counted number of edge portions of the first discrimination region is compared with a preset first threshold value, and the counted number of edge portions of the first discrimination region is less than the first threshold value Counting the number of edge portions included in the second discrimination area covering the image of the first discrimination area;
When the counted number of edge portions of the second discrimination region is compared with a preset second threshold value, and the counted number of edge portions of the second discrimination region is less than the second threshold value Determining that the document is placed on the document table;
When it is determined that the document is placed on the document table, the resolution of the photographing unit is set to a high resolution.
An imaging control method for an imaging apparatus.
コンピュータに、
書画台に載置された原稿を前記書画台とともに撮影するステップと、
前記撮影によって得られた撮影画像に、前記原稿によるエッジ部を判別するための第1の判別領域と前記第1の判別領域外の前記書画台によるエッジ部を含むエッジ部を判別するための第2の判別領域とを予め設定し、前記第2の判別領域の画像を覆って前記第1の判別領域に存在するエッジ部の数を計数する手順、
計数した前記第1の判別領域のエッジ部の数と予め設定された第1の閾値とを比較し、計数した前記第1の判別領域のエッジ部の数が前記第1の閾値未満の場合に、前記第1の判別領域の画像を覆って前記第2の判別領域に含まれているエッジ部の数を計数する手順、
計数した前記第2の判別領域のエッジ部の数と予め設定された第2の閾値とを比較し、計数した前記第2の判別領域のエッジ部の数が前記第2の閾値未満の場合には、前記書画台に前記原稿が載置されていると判定する手順、
前記書画台に前記原稿が載置されていると判定した場合、前記書画台に載置された前記原稿を撮影するときの解像度を高解像度に設定する手順、
を実行させるためのプログラム。
On the computer,
Photographing the document placed on the document table together with the document table;
A first discrimination region for discriminating an edge portion due to the original and an edge portion including an edge portion due to the document table outside the first discrimination region are identified in the photographed image obtained by the photographing. A procedure for counting the number of edge portions existing in the first discrimination area by covering the image of the second discrimination area in advance.
When the counted number of edge portions of the first discrimination region is compared with a preset first threshold value, and the counted number of edge portions of the first discrimination region is less than the first threshold value , A procedure for counting the number of edge portions included in the second discrimination region covering the image of the first discrimination region;
When the counted number of edge portions of the second discrimination region is compared with a preset second threshold value, and the counted number of edge portions of the second discrimination region is less than the second threshold value Is a procedure for determining that the document is placed on the document table;
A procedure for setting a resolution when shooting the document placed on the document table to a high resolution when it is determined that the document is placed on the document table;
A program for running
JP2004081755A 2004-03-19 2004-03-19 Imaging apparatus, imaging control method for imaging apparatus, and program Expired - Fee Related JP4225226B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004081755A JP4225226B2 (en) 2004-03-19 2004-03-19 Imaging apparatus, imaging control method for imaging apparatus, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004081755A JP4225226B2 (en) 2004-03-19 2004-03-19 Imaging apparatus, imaging control method for imaging apparatus, and program

Publications (2)

Publication Number Publication Date
JP2005269461A JP2005269461A (en) 2005-09-29
JP4225226B2 true JP4225226B2 (en) 2009-02-18

Family

ID=35093491

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004081755A Expired - Fee Related JP4225226B2 (en) 2004-03-19 2004-03-19 Imaging apparatus, imaging control method for imaging apparatus, and program

Country Status (1)

Country Link
JP (1) JP4225226B2 (en)

Also Published As

Publication number Publication date
JP2005269461A (en) 2005-09-29

Similar Documents

Publication Publication Date Title
JP4715527B2 (en) Imaging apparatus, image processing method and program for captured image
JP5951367B2 (en) Imaging apparatus, captured image processing system, program, and recording medium
JP2006211139A (en) Imaging apparatus
JP2006074512A (en) Photographing device, and image processing method, and program for photographing device
JP2007201948A (en) Imaging apparatus, image processing method and program
JP2005122323A (en) Photographing apparatus, image processor, and image processing method and program for photographing device
JP2007074578A (en) Image processor, photography instrument, and program
JP2007074579A (en) Image processor, and program
JP6426815B2 (en) Image processing apparatus and image processing method
JP4501701B2 (en) Image capturing apparatus, image processing method for image capturing apparatus, and program
JP4182937B2 (en) Image capturing apparatus, image processing method for image capturing apparatus, and program
JP2005275447A (en) Image processing device, image processing method and program
JP4600019B2 (en) Imaging apparatus, image processing method, and program
JP4636786B2 (en) Captured image projection device, image processing method and program for captured image projection device
JP4238749B2 (en) Image processing apparatus, image projection apparatus, image processing method, and program
JP4561302B2 (en) Image capturing apparatus, image processing method for image capturing apparatus, and program
JP4225226B2 (en) Imaging apparatus, imaging control method for imaging apparatus, and program
JP4225225B2 (en) Image capturing apparatus, image processing method for image capturing apparatus, and program
JP4524616B2 (en) Imaging apparatus, image processing method and program for captured image
JP4225224B2 (en) Image processing apparatus, captured image projection apparatus, image processing method, and program
JP4314959B2 (en) Image capturing apparatus, method for determining object to be imaged in image capturing apparatus, and program
JP2005122326A (en) Photographed image projecting apparatus, and image processing method and program of photographed image projecting apparatus
JP4591343B2 (en) Image processing apparatus, imaging apparatus, image processing method, and program
JP4735649B2 (en) Image projection device
JP2005217721A (en) Apparatus and method for generating still picture

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070312

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20081021

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20081104

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20081117

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111205

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4225226

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111205

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121205

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121205

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131205

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees