1. Field of the Invention
The present invention relates to a captured image projection apparatus and a correction method for a captured image.
2. Description of the Related Art
Recently, projectors are used in presentations, meetings, etc. to expandingly project documents (characters and drawings, etc.) stored in personal computers on a screen. Projectors generally have a configuration for converting image information of documents obtained from personal computers, etc. into projection light by using an image conversion element such as liquid crystal, micro mirror array, etc.
In a case where a projector is used in a meeting, etc., in addition to the documents in the personal computer, written materials (newspapers, articles in magazines, presentation papers, written documents, etc.) one has on hand may need to be projected. In this case, since the written materials need to be digitalized (need to be converted into image data), image capturing of the written materials is done by using a so-called calligraphy/drawing camera. As the calligraphy/drawing camera, for example, one that has a configuration of a digital camera having a CCD and a MOS type image capture element is used.
In image-capturing the written materials using the calligraphy/drawing camera for digitalization, it is necessary to match the orientation of the paper and that of the calligraphy/drawing camera. For example, in image-capturing, if the camera is inclined, that is, if the center axis of the lens is not perpendicular to the written material, the resultant captured image is trapezoidally deformed and cannot be a rectangular image. A method of solving this problem is disclosed in, for example, Unexamined Japanese Patent Application KOKAI Publication No. 2002-354331 (
However, according to this method for correcting the captured image based only on the inclination angle of the camera unit, adjustment of the captured image before projection is limited to only correction of the trapezoidal deformation. For example, in image-capturing a written material for projecting the material on a screen, it is difficult to match the size, the orientation, etc. of the photo-object (written material) with the image range of the camera accurately. If correction other than correction for trapezoidal deformation is required as in this case, the above-described method cannot adjust the captured image.
Further, according to the above-described method, in a case where image-capturing of a large-sized written material is done without mounting the written material on the document mounting and by adjusting the orientation of the camera unit, if the written material is inclined, it is difficult to obtain the accurate inclination angle of the camera unit, i.e. the accurate image capturing angle with respect to the written material. Accordingly, in this case, there is a problem that trapezoidal deformation in the captured image cannot be properly corrected.
The present invention was made in view of the above circumstance, and relates to a captured image projection apparatus and a captured image correction method which are capable of dealing with various corrections necessary for adjusting a captured image before projection, and of performing an accurate correction.
According to one aspect of the invention, an image capturing apparatus is provided which includes: a document table adapted to have a written material placed thereon; an image capturing section which captures an image of the written material; an obtaining section which obtains image information from the captured image, the image information including four lines located closest to four circumferential sides, respectively, of the captured image; and a correction section which corrects distortion of an image region corresponding to the written material within the captured image based on the image information, the correction of the distortion comprising deforming the image region into a rectangular shape.
These objects and other objects and advantages of the present invention will become more apparent upon reading of the following detailed description and the accompanying drawings in which:
One embodiment of the present invention will now be explained with reference to the drawings.
A captured image projection apparatus comprises a projector 1, a lap-top personal computer (hereinafter referred to as PC) 2, and a calligraphy/drawing camera 3, as its configuration diagram being shown in
The projector 1 is structured such that a projection unit 1A in which an optical system such as a projection lens, etc. is stored is provided on the front surface of the projector body. An optical system such as a projection lens, etc. is stored in the projection unit 1A. The projector 1 projects documents and images on a screen S (or a whiteboard, etc.) by irradiating a light from the projection unit 1A.
The calligraphy/drawing camera 3 comprise a camera mounting 3A, a support pillar 3B which is provided to stand on the camera mounting 3A, and a camera 3C set on the top end of the support pillar 3B. The camera 3C is provided so as to be able to turn upward and downward, and leftward and rightward. When the calligraphy/drawing camera 3 is used, a written material A such as a newspaper, an article in a magazine, a presentation paper, a written document, etc. is mounted on the camera mounting 3A as illustrated, and is image-captured (imaged, picked-up) by the camera 3C.
The projector 1 mainly comprises a CPU 11, a ROM 12, a RAM 13, a display unit 14, and a key input unit 15, as its schematic electrical structure being shown in
The display unit 14 is the projection section according to the present invention. The display unit 14 includes a light source such as krypton lamp, etc., an image conversion element such as liquid crystal, micro mirror array, etc., a drive circuit, and an optical system such as a projection lens, etc. The display unit 14 projects documents and captured imaged sent from the PC 2 on the screen S. The image conversion element is for converting a light from the light source into a projection light, and the drive circuit is for driving the image conversion element in accordance with an RGB signal input from the input terminal 16. The key input unit 15 is constituted by a plurality of operation buttons for receiving operations on the projector 1 by a user.
The CPU 11 operates in accordance with a program stored in the ROM 12, and controls each of the aforementioned components by using the RAM 13 as a work memory. The input terminal 16 is provided in an unillustrated input image processing circuit which is connected to the CPU 11.
The PC 2 mainly comprises a CPU 21, a RAM 22, a storage device 23, an input device 24 such as a plurality of keys provided on the body of the PC 2 and a mouse connected to the body, etc., and a display device 25 constituted by an LCD and a drive circuit therefore, etc. Further, the PC 2 has an RGB output terminal 26 to which the RGB cable 4 is connected, and a USB connection terminal 27 to which the USB cable 5 is connected.
The storage device 23 is constituted by a hard disk or the like having a relatively large storage capacity. An image processing program and an image display program are stored in the storage device 23. The image processing program is a program for performing later-described various image processes to be applied to a captured image. The image display program is a program for displaying an image based on image data on the display device 25 or for making the image be projected by the projector 1. The RGB output terminal 26 is provided in an unillustrated image signal processing circuit which is connected to the CPU 21. The USB connection terminal 27 is provided in an unillustrated USB input/output interface circuit which is connected to the CPU 21.
The compressed image data stored in the image memory 35 is read by the CPU 34 if necessity arises. The read image data is expanded and then reproduced and displayed on the LCD 33 as a still image, or output to the PC 2. The image memory 35 is a non-volatile memory such as a flash memory, etc. which is built inside the camera 3C or detachable from the camera 3C. Further, the calligraphy/drawing camera 3 comprises a ROM 37, a RAM 38, and a key input unit 39. Various control programs necessary for the CPU 34 to perform compression and expansion of the image data or to control the entire device are stored in the ROM 37. The RAM 38 is a work memory of the CPU 34. The key input unit 39 is constituted by a shutter key and many other operation keys.
The outline of the operation of the captured image projection apparatus having the above configuration will now be explained with reference to a flowchart shown in
In the captured image projection apparatus, the calligraphy/drawing camera 3 image-captures an arbitrary document or the like (written material A) and outputs the image data of the captured document to the PC 2 (step S101). The PC 2 corrects the captured image by performing various image processes such as a deformation correction process, a rotation process, a cut out process, etc. on the input image data (step S102 to S104). Then, the PC 2 outputs the processed image data to the projector 1 in accordance with the display program (step S105). The PC 2 performs part or all of the image processes in accordance with necessity. The projector 1 projects the captured image of the document or the like on the screen S based on the image data input from the PC 2 (step S106).
Next, an operation according to the present embodiment for adjusting the captured image of the written material A captured by the calligraphy/drawing camera 3 for projecting the image on the screen S will be explained.
In the captured image projection apparatus, when a captured image is output from the calligraphy/drawing camera 3 to the PC 2, the PC 2 performs a rectangular conversion process. The rectangular conversion process is a process for correcting deformation in a captured image and converting the shape of the image into a rectangle. The rectangular conversion process will now be explained with reference to
The PC 2 identifies edges in a captured image G1 in accordance with changes in color and luminance (step S11,
Subsequently, the PC 2 performs an aspect ratio conversion process, as its procedure being shown in a flowchart of
After this, PC 2 transforms the written material region GA which has been through the rectangular deformation correction, by either of the set aspect ratios (step S127). In this process, the PC 2 performs the transformation based on coordinate data of the four vertexes of the smallest rectangle B used in the conversion (step S114) in the rectangular conversion process explained above. For example, in a case where widthwise placement of a regular sheet is designated, the PC 2 transforms the written material region GA by expanding the region GA in the vertical direction such that the aspect ratio of the region GA will be “1:1.41”, as shown in
After this, as shown in a flowchart of
Due to this, when the written material A is image-captured by the calligraphy/drawing camera 3 and projected on the screen S, a fine captured image having no rectangular deformation and no unnecessary frame image can be projected on the screen S.
Next, the second embodiment of the present invention will be explained. In the present embodiment, unlike the first embodiment, the captured image projection apparatus having the same structure as that shown in
In the present embodiment, the PC 2 has a function for obtaining the angle of the lens of calligraphy/drawing camera 3 at which the written material A fully falls within the image range of camera 3 at the time the written material A is image-captured (this angle will hereinafter be referred to as angle of view), and for obtaining the resolution of the image output from the calligraphy/drawing camera 3. In the storage device 23 of the PC 2, a program for controlling the PC 2 to perform a direction detection process to be described below is stored.
The direction detection process by the PC 2 will now be explained with reference to a flowchart shown in
Next, the PC 2 calculates the amount of deformation in the image based on the coordinates of the obtained four vertexes by using the formerly obtained angle of view and resolution (step S144). The calculation method for this process will now be explained. Generally, deformation in an image is produced if the sheet (written material A) is image-captured obliquely in a state where the camera 3C of the calligraphy/drawing camera 3 is positioned off the sheet when the sheet is seen from right above, as shown in
As illustrated in
In this case, [Expression 1] indicated below is established.
Δ is derived from [Expression 1].
After Δ is derived, the height N of the sheet with respect to the lower side length M is derived from [Expression 2] indicated below.
Then, the PC 2 adds the amount of deformation calculated in the manner described above to the length of height and length of width of the sheet region respectively (step S145). After this addition, if the length of height is larger than the length of width (step S146: YES), the PC 2 determines that the written material A is placed lengthwise (step S147). On the contrary, if the length of height is not larger than the length of width (step S146: NO), the PC 2 determines that the written material A is placed widthwise (step S148).
As explained above, according to the present embodiment, it can be automatically detected whether the written material A is placed lengthwise or widthwise. Accordingly, the above-described adjustment of the captured image can be performed without the user's designation of the orientation of the written material A.
Next, the third embodiment of the present invention will be explained. The present embodiment relates to a method of a captured image projection apparatus having the same configuration as that shown in
Next, the procedure of the captured image projection apparatus for obtaining the image capturing angle will be explained with reference to a flowchart shown in
Angle calculation at this time is performed in the manner described below. In a case where, as shown in
the inclination (image capturing angle Δ) of the camera 3C to be calculated is represented by (Δ)=α×M/L.
Further, the length (L) of the circular arc AB and the length (M) of the circular arc CD correspond to the line segment EF and line segment GH of the captured image G1, respectively. Therefore, the inclination (Δ) of the camera 3C is derived by Inclination (Δ)=α×line segment EF/line segment GH.
Accordingly, in the present embodiment, the captured image projection apparatus can adjust the captured image by using the image capturing angle (Δ) obtained in the manner described above. That is, the captured image projection apparatus carries out trapezoidal correction in the vertical direction and in the horizontal direction on the captured image of the written material A placed on the camera mounting 3A, by using the image capturing angle (Δ). Due to this, the same image as that which is obtained when the written material A is image-captured vertically can be obtained.
Next, the fourth embodiment of the present invention will be explained. The present embodiment relates to a method of the captured image projection apparatus having the same configuration as that shown in
The procedure of the captured image projection apparatus for obtaining the image capturing angle in the present embodiment will be explained with reference to a flowchart shown in
The calculation of the angle is performed in the manner described below. In
the inclination (image capturing angle) A of the camera 3C is derived by inclination Δ=arctan (W/H).
Therefore, according to the present embodiment, the captured image can be adjusted by using the image capturing angle (Δ) obtained in the manner described above. That is, the captured image projection apparatus performs trapezoidal correction in the vertical direction and in the horizontal direction on the captured image of the written material A placed on the camera mounting 3A, by using the image capturing angle (Δ). Due to this, the same image as that which is obtained when the written material A is image-captured vertically can be obtained.
The fifth embodiment of the present invention will now be explained. The present embodiment relates to a method of the captured image projection apparatus having the same configuration as that shown in
The procedure of the rotation correction process by the PC 2 will be explained with reference to a flowchart shown in
When a normal marginal distribution E is obtained in any scanning line (step S183: YES,
Next, the sixth embodiment of the present invention will be explained. The present embodiment relates to a method of the captured image projection apparatus having the same configuration as that shown in
The procedure of the rotation correction process by the PC 2 will be explained with reference to a flowchart shown in
Accordingly, even if the written material A is not a document, and moreover, is a picture or a photograph including no characters, the captured image projection apparatus can automatically obtain an adjusted captured image G2, by image-capturing the written material A in such a way that one of the material's sides is included in the captured image.
Next, the seventh embodiment of the present invention will be explained. The present embodiment relates to a method of the captured image projection apparatus having the same configuration as that shown in
The procedure of the rotation correction process by the PC 2 will be explained with reference to a flowchart shown in
The eight embodiment of the present invention will now be explained. According to the present embodiment, the captured image projection apparatus having the same configuration as that shown in
In the present embodiment, the PC 2 first identifies any edges in a captured image G1 in accordance with changes in color and luminance (step S211), and determines whether circumferential four sides can be found in the identified edges. If determining that four sides can be found (step S212: YES), the PC 2 obtains the four circumferential lines from the identified edges and four vertexes in accordance with the method explained in the first embodiment. After this, the PC 2 obtains an image G2 consisting only of a written material region (sheet region) in the captured image G1 in accordance with the process explained in the earlier embodiment (step S213,
In a case where four sides can not be found, i.e. circumferential four sides can not be recognized in the identified edges (step S212: NO), the PC 2 performs the following process. First, as shown in
Therefore, according to the present embodiment, the captured image projection apparatus can obtain an adjusted captured image G2 by a simple process, even if the difference in color and luminance between the written material region and its surrounding region is small and the circumferential four sides can not be recognized from the identified edges.
The ninth embodiment of the present invention will be explained. The present embodiment relates to a process of the PC 2 in the captured image projection apparatus according to, for example, the above-described third to seventh embodiments, for cutting out a necessary region from a captured image of a written material A which can not fully fall inside the image region of the camera 3C, after performing correction of rectangular deformation or inclination on this captured image in the manners described above.
In the present embodiment, as shown in a flowchart of
Therefore, final adjustment can be performed on a captured image obtained by image-capturing a written material A which does not fully fall inside the image range.
The tenth embodiment of the present invention will be explained. The present embodiment also relates to a process of the PC 2 in the captured image projection apparatus according to, for example, the above-described third to seventh embodiments, for cutting out a necessary region from a captured image of a written material A which can not fully fall inside the image region of the camera 3C, after performing correction of rectangular deformation or inclination on this captured image in the manners described above.
In the present embodiment, as shown in a flowchart of
Therefore, final adjustment can be performed on a captured image obtained by image-capturing a written material A which does not fully fall inside the image range. In addition, the captured image projection apparatus can deal with the case where the user's necessary region is not rectangle.
The eleventh embodiment of the present invention will be explained. The present embodiment relates to a method for automatically obtaining an image capturing angle used for adjusting the captured image of the written material A accurately and in real time. In the present embodiment, the captured image projection apparatus having the same configuration as that shown in
The content of the image capturing angle obtaining process by the PC 2 in the present embodiment will be explained with reference to a flowchart shown in
Therefore, according to the present embodiment, the captured image projection apparatus can adjust the captured image by using the image capturing angle (Δ) obtained in the way described above. That is, trapezoidal correction in the vertical direction and in the horizontal direction is performed on the captured image of the written material A placed on the camera mounting 3A by using the image capturing angle (Δ). Due to this, the same image as that obtained by image-capturing the written material A vertically can be obtained.
Furthermore, the captured image projection apparatus can automatically obtain the image capturing angle (Δ) accurately in real time, without the preparatory steps as in the third and fourth embodiments, which is convenient for the user.
In the embodiments described above, there has been explained a captured image projection apparatus in which the projection section of the present invention is realized by the projector 1 and the correction section of the present invention is realized by the PC 2. In this explanation, various image processes relating to correction of a captured image are performed by the PC 2. However, the present invention is not limited to this, but the above-described various image processes may be performed by the projector 1 and the calligraphy/drawing camera 3. In this case, the PC 2 may not be used. Further, the projector 1 and the calligraphy/drawing camera 3 may be integral.
Each of the above-described embodiments may not be realized separately, but may be realized in combination.
As explained above, according to the present invention, since the captured image is corrected based on image information obtained from the captured image, not only correction of trapezoidal deformation but also various corrections can be performed on the captured image. Due to this, it is possible to deal with various corrections necessary for adjustment of the captured image before projection.
Further, according to the present invention, the inclination of the captured image can be corrected based on a proper image capturing angle directly obtained from the captured image. Due to this, it becomes possible to accurately perform correction on the captured image before projection.
Still further, according to the present invention, a proper image capturing angle can be obtained even in a case where the captured image is obtained in a state where the written material is not placed on the camera mounting and the camera mounting is inclined. Due to this, correction before projection, of the captured image obtained by the camera supported by the camera mounting can be accurately performed.
Various embodiments and changes may be made thereunto without departing from the broad spirit and scope of the invention. The above-described embodiments are intended to illustrate the present invention, not to limit the scope of the present invention. The scope of the present invention is shown by the attached claims rather than the embodiments. Various modifications made within the meaning of an equivalent of the claims of the invention and within the claims are to be regarded to be in the scope of the present invention.
This application is based on Japanese Patent Application No. 2003-157384 filed on Jun. 2, 2003 and including specification, claims, drawings and summary. The disclosure of the above Japanese Patent Application is incorporated herein by reference in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2003-157384 | Jun 2003 | JP | national |
The present application is a Divisional Application of U.S. application Ser. No. 10/858,708, filed Jun. 1, 2004, which is incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | 10858708 | Jun 2004 | US |
Child | 12174508 | US |