The present application is based on claims from Japanese patent application number 2009-161603, filed Jul. 8, 2009, the disclosure of which is hereby incorporated by reference herein its entirety.
The present invention relates to an information device which is capable of correcting a roll angle based on a pitch angle of an object, an imaging apparatus which has the information device and is capable of displaying the pitch angle and the corrected roll angle, and a method of an angle correction of the object.
Traditionally, in an imaging apparatus such as a camera, for example, as disclosed in Japanese patent application publication number 2009-094987, the invention is known such that a pitch angle and a roll angle of the camera are calculated based on an output from an acceleration sensor, and the pitch angle and the roll angle are displayed on a display section of the camera in the case of imaging.
In Japanese patent application publication number 2009-094987, it is disclosed that as a pitch angle increases, an accuracy of a roll angle degrades, and in order to inform a user of this problem, it is disclosed that when the pitch angle becomes a certain degree, a display blinks and an alarm sound goes off.
Thus, there is a problem such that due to increasing the pitch angle (increasing a sensitivity of a Z axis), the sensitivity of X and Y axes, which are necessary to calculate the roll angle, degrades, which causes an error in the case of calculating the roll angle.
Generally, as for an acceleration sensor, there is a cross-axis sensitivity, and detected acceleration in a Z axis direction affects outputs in directions of other axes (X and Y axes), for example. This occurs because sensing elements which detect acceleration in each axis direction are put into a single package. Therefore, as a pitch angle changes, a detection output of a roll angle is also affected.
An objective of the present invention is to provide an information device which is capable of correcting a roll angle when a pitch angle changes, and an imaging apparatus which has the information device and is capable of displaying the pitch angle and the corrected roll angle, and a method of an angle correction of an object.
In order to achieve the above objective, an embodiment of the present invention provides: an information device, comprising: an angle detector which outputs data for obtaining a roll angle and a pitch angle of an object; and a corrector which corrects the roll angle based on the pitch angle obtained from the data outputted by the angle detector.
In order to achieve the above objective, an embodiment of the present invention provides: a digital camera, which is an object, comprising: an information device, including: an angle detector which outputs data for obtaining a roll angle and a pitch angle of the object; and a corrector which corrects the roll angle based on the pitch angle obtained from the data outputted by the angle detector.
In order to achieve the above objective, an embodiment of the present invention provides: a method of an angle correction of an object, comprising: a step of an angle detection which outputs data for obtaining a roll angle and a pitch angle of the object; and a step of a correction which corrects the roll angle based on the pitch angle obtained from the data outputted in the step of the angle detection.
Hereinafter, referring to drawings, an embodiment of the present invention will be explained. Each reference numeral denotes members and processes of the present invention, and the same reference numerals are used for the same members and processes.
Firstly, the information device of the present invention will be explained.
[Information Device]
The information device of the embodiment includes a digital signal processor (DSP) 104 (corrector), and an acceleration sensor 111 (angle detector). The information device may have a RAM (random access memory) 114, an internal memory 107, a ROM (read-only memory) 113, and an SDRAM (synchronous dynamic random access memory) 103 other than those above.
A more detailed configuration and operation will be explained later.
[Imaging Apparatus Equipped with Information Device]
An imaging apparatus of the embodiment is equipped with the above information device.
As the imaging apparatus equipped with the information device, the digital camera of
As illustrated in
A lens barrel unit 4 includes a zoom optical system 4-1, a focus optical system 4-2, an aperture unit 4-3, a mechanical shutter unit 4-4, and a motor driver 4-5. The zoom optical system 4-1 includes a zoom lens 4-1a where an optical image of a photographic subject passes, and a zoom lens drive motor 4-1b. The focus optical system 4-2 includes a focus lens 4-2a, and a focus lens drive motor 4-2b. The aperture unit 4-3 includes an aperture 4-3a, and an aperture drive motor 4-3b. The mechanical shutter unit 4-4 includes a mechanical shutter 4-4a, and a mechanical shutter drive motor 4-4b. The motor driver 4-5 drives each motor.
In the ROM 113, a control program written in a code readable in the CPU block 104-3 and a control parameter are stored. When the digital camera as the imaging apparatus of the embodiment is turned on, the control program is loaded to a main memory, which is not illustrated, in the information device. The CPU block 104-3 controls the operation of each part of a main body of the imaging apparatus based on the control program, and data and the like which are necessary for control are temporarily stored in a RAM (random access memory) 114 and a local SRAM (static random access memory) 104-4 in the DSP 104. By using a rewritable flash ROM as the ROM 113, it is possible to change the control program and the control parameter, and easily upgrade a function.
The DSP 104 includes the first CCD signal processing block 104-1, a second CCD signal processing block 104-2, the CPU block 104-3, the local SRAM 104-4, a USB block 104-5, a serial block 104-6, a JPEG CODEC block 104-7, a RESIZE block 104-8, a TV signal display block 104-9, and a memory card controller block 104-10. The first CCD signal processing block 104-1 receives output data of the F/E-IC 102 and performs a white balance setting and a gamma setting by use of the output data, and as described above, supplies the VD signal and the HD signal. The second CCD signal processing block 104-2 converts the output data to brightness data and color difference data by a filtering operation. The CPU block 104-3 controls the above-described operations of each part of the apparatus. The local SRAM 104-4 temporarily stores the above-described data and the like which are necessary for control. The USB block 104-5 performs a USB communication with an external device such as a personal computer (PC). The serial block 104-6 performs a serial communication with an external device such as a PC. The JPEG CODEC block 104-7 performs JPEG compression and extension of image data. The RESIZE block 104-8 expands and reduces a size of image data by an interpolation operation. The TV signal display block 104-9 converts image data to a video signal for displaying on an external display device such as a liquid crystal display, a TV (television) and so on. The memory card controller block 104-10 performs a control of a memory card which records shot image data. Each of these blocks is mutually connected via bus lines.
The SDRAM 103 temporarily stores image data, when various processes are performed on image data in the DSP 104. The stored image data, for example, are “RAW-RGB image data”, “YUV image data”, “JPEG image data” and so on. The RAW-RGB image data is image data which is in a state where the white balance setting and the gamma setting have been performed in the first CCD signal processing block 104-1 after being loaded from the CCD 101 via the F/E-IC 102. The YUV image data is image data which is in a state where a conversion to brightness data and color difference data has been performed in the second CCD signal processing block 104-2. The JPEG image data is image data which is in a state where the JPEG compression has been performed in the JPEG CODEC block 104-7. The internal memory 107 is a memory which is capable of recording shot image data. This internal memory 107 can record the JPEG image data.
An LCD driver 108 is a drive circuit which drives an LCD (liquid crystal display) 5. And additionally, the LCD driver 108 also has a function of converting the video signal outputted from the TV signal display block 104-9 to a signal for displaying on the LCD 5. The LCD 5 is a display for monitoring a state of a photographic subject before shooting, checking a shot image, displaying image data recorded in the memory card or the internal memory 107, and so on. A video AMP (amplifier) 109 is an amplifier which converts an impedance of the video signal outputted from the TV signal display block 104-9 to 75Ω. A video jack 110 is a jack which connects to an external display device such as a TV. An operation key unit SW1 to SW15 is a key circuit which a user operates. A SUB-CPU 105 outputs an output signal of the operation key unit SW1 to SW15 and the like as user's operation information to the CPU block 104-3. The SUB-CPU 105 communicates with an RTC (real time clock) 112, which keeps track of the current time, and controls time.
The acceleration sensor 111 is mounted on a printed circuit board (PCB). The acceleration sensor 111 outputs acceleration data in directions of 2 axes (X and Y axes) in the case of a 2-axis acceleration sensor, and outputs acceleration data in directions of 3 axes (X, Y and Z axes) in the case of a 3-axis acceleration sensor. The output data of the acceleration sensor 111 is inputted in an I2C (inter integrated circuit) block 104-11 of the DSP 104 by a serial communication, and a roll angle and a pitch angle of the imaging apparatus are calculated based on the data. The calculated roll angle and pitch angle are displayed on the LCD 5 or the like. A roll angle θA and a pitch angle φ obtained from the acceleration sensor are expressed by the following Formula 1.
θA[deg]=(180/π)×arctan((Y−Y0)/(X−X0))
φ[deg]=(180/π)×arctan((Z−Z0)/(X−X0)) [Formula 1]
Here, each of X0, Y0, and Z0 is an output of the acceleration sensor in zero gravity. Formula 1 is a calculation formula of the roll angle and the pitch angle in the case of the 3-axis acceleration sensor, however also in the case of the 2-axis acceleration sensor, the roll angle and the pitch angle can be obtained by use of the same formula as the above. (However, a method for detecting if a value of the pitch angle is positive or negative is needed.)
A method of an angle correction of the embodiment includes a step of an angle detection which outputs data for obtaining a roll angle and a pitch angle of an object, and a step of a correction which corrects the roll angle based on the pitch angle obtained from the data outputted in the step of the angle detection. In following examples, the step of the correction will be explained in detail.
Referring to
In
As illustrated in
Next, a pitch angle and a roll angle of the imaging apparatus (digital camera) will be explained by use of
In a case where the imaging apparatus (digital camera) is equipped with an electronic level 7 (information device) as illustrated in
In a conventional method of a calculation of an angle, a roll angle θA is calculated from Formula 1 by use of output values of the acceleration sensor, and then a roll angle to be corrected θ (correction roll angle θ) is obtained by subtracting the roll angle θ_offset0 from the calculated roll angle θA (correction roll angle θ=θA−θ_offset0).
Additionally, in the embodiment, output values of the acceleration sensor in a case where a pitch angle φ which is increased and a roll angle θ=0° are also stored in the ROM 113.
In a case where a correction table is created and an angle correction is performed, output values of the acceleration sensor in four cases, which are a case of a pitch angle φ=15° and a roll angle θ=0°, a case of a pitch angle φ=30° and a roll angle θ=0°, a case of a pitch angle φ=45° and a roll angle θ=0°, and a case of a pitch angle φ=60° and a roll angle θ=0°, are stored in the ROM 113. These are taken as reference roll angles θ_offset15 . . . (II), θ_offset30 . . . (III), θ_offset45 . . . (IV), and θ_offset60 . . . (V), respectively.
In Table (correction table) 1 below, each of the reference roll angles (I) to (V) is set per range of pitch angle φ of the digital camera. And a correction roll angle θ is calculated by use of each of the reference roll angles (I) to (V) stored in the ROM 113.
The correction roll angle θ is calculated by subtracting a reference roll angle which is automatically selected based on a pitch angle φ (any one of the reference roll angles θ_offset0, θ_offset15, θ_offset30, θ_offset45, and θ_offset60) from a roll angle θA which is calculated from Formula 1. For example, a correction roll angle θ in the case of a pitch angel φ=20° is obtained by subtracting the reference roll angle θ_offset15 in the case of the pitch angle φ=15° from a roll angle θA which is calculated from Formula 1 by use of output values of the acceleration sensor (see Table 1).
Accuracy improves by use of the method described in Example 1, however tasks increase. In the present example, assuming that a relationship expressed in
The correction roll angle θ is calculated by use of a roll angle θA which is calculated by use of output values of the acceleration sensor and the above calculated reference roll angles θ_offset0 and θ_offset45 (see Formula 2).
θ=θA−((θ_offset45−θ_offset0)/45)*φ [Formula 2]
By calculating the correction roll angle θ by use of Formula 2, it is possible to improve accuracy of a roll angle θ in a case where a pitch angle φ is not 0°. In a method of an angle correction of the present example, it is possible to calculate a correction roll angle by a correction formula expressed by a linear shape as described above derived by use of pitch angles obtained from an acceleration sensor as an angle detector, and then correct a roll angle by use of the correction roll angle.
In the above two examples, a case where values of pitch angles φ are positive has been explained, however the same is true of a case where values of pitch angles φ are negative.
That is, the values of the pitch angles φ in a correction table where the values of the pitch angles φ are negative and the values of the pitch angles φ in Table 1 where the values of the pitch angle φ are positive are symmetrical to the pitch angle of 0°. And by use of the correction table, a reference roll angle is automatically selected based on a pitch angle φ, and then a roll angle θ is corrected by use of the reference roll angle.
As for the information device of the embodiment, an example that an information device is mounted on an imaging apparatus such as a camera and used has been explained, however the information device also can be mounted on mobile devices (game machine, PDA (personal digital assistance), mobile communication device, in-car image input device, and monitoring device) and the like and used.
According to the embodiment, it is possible to display a highly-accurate roll angle of an object, for example, an imaging apparatus such as a digital camera.
Although the present invention has been described in terms of exemplary embodiments, it is not limited thereto. It should be appreciated that variations may be made in the embodiments described by persons skilled in the art without departing from the scope of the present invention as defined by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
2009-161603 | Jul 2009 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
6164117 | Passwater et al. | Dec 2000 | A |
6636826 | Abe et al. | Oct 2003 | B1 |
7337549 | Cho et al. | Mar 2008 | B2 |
7389590 | Lee et al. | Jun 2008 | B2 |
7395987 | Lindquist et al. | Jul 2008 | B2 |
7554578 | Molgaard | Jun 2009 | B2 |
7809505 | Lee et al. | Oct 2010 | B2 |
20040007064 | Sakaguchi | Jan 2004 | A1 |
20050256675 | Kurata | Nov 2005 | A1 |
20060265178 | Townsend et al. | Nov 2006 | A1 |
20070239401 | Cho et al. | Oct 2007 | A1 |
20080084479 | Uenaka | Apr 2008 | A1 |
20080319708 | Cho | Dec 2008 | A1 |
20090096910 | Yasuda et al. | Apr 2009 | A1 |
20090316532 | Hasegawa | Dec 2009 | A1 |
20100165130 | Uenaka | Jul 2010 | A1 |
Number | Date | Country |
---|---|---|
2008-116920 | May 2008 | JP |
2009-94987 | Apr 2009 | JP |
Number | Date | Country | |
---|---|---|---|
20110007169 A1 | Jan 2011 | US |