1. Field of Invention
The present invention relates to a motion detection device and method having a rotation calibration function, especially a motion detection device and method using a gravity sensor or other means to assist calculating a relative motion of a DUD (device under detection) with respect to a reference light source.
2. Description of Related Art
Recently many electronic interactive systems provide users with a joystick or remote controller such that the users can operate the joystick or remote controller for various actions which can be sensed by the systems, wherein a relative motion of the remote controller or joystick is calculated with respect to a reference light source.
However, when a user holds the remote controller 12, the remote controller 12 is not necessarily in a horizontal position with respect to the reference light source 11. The user usually grips the remote controller 12 by a certain habitual rotation angle; such rotation angle can cause a misjudgment of the image analyzing unit 121 to determine the motion of the received image. The direction of the relative motion of the received image is changed due to the rotation angle. For example, the remote controller actually moves horizontally with respect to ground, but the user holds the controller 12 by a rotation angle, so the image of the reference light source 11 received by the image analyzing unit 121 moves along an oblique direction, and causes a misjudgment. Although, the user can carefully control the controller 12 to avoid this misjudgment, this is inconvenient to the user and greatly reduces the fun of an interactive operation.
In view of the above, the present invention provides a motion detection device, which has the benefits of simple design and easy control, especially advantageous in that it is capable of calculating the motion of a device under detection (DUD) when the DUD rotates at some angle.
The present invention provides a motion detection device and method having a rotation calibration function. The motion detection device detects a relative motion of a DUD with respect to a reference light source; it includes a rotation sensor, an image sensor, and a coordinate transfer unit. The rotation sensor is disposed in the DUD for detecting rotation of the DUD to generate rotation information. The image sensor captures an image generated by the reference light source, to obtain an absolute coordinate according to a coordinate system related to the image sensor. The coordinate transfer unit calibrates the absolute coordinate according to the rotation information to generate a calibrated coordinate.
In one embodiment of the motion detection device, the rotation sensor can include a gravity sensor, a gyro-sensor, or an e-compass.
In another preferable embodiment of the present invention, the motion detection device can calculate a displacement according to absolute coordinates or calibrated coordinates of the DUD before and after a movement of the DUD.
In the aforementioned motion detection device, the image sensor is disposed inside the DUD, and the reference light source is disposed outside the DUD; or, the image sensor is disposed outside the DUD, and the reference light source is disposed inside the DUD.
The DUD can further include a vibration motor, a voice control device, or an audio generation device which is disposed in the motion detection device.
In a preferable embodiment of the present invention, the reference light source includes a light emitting device and an optical lens. The optical lens modifies the light path from the light emitting device to increase the view angle of the reference light source.
From another perspective, the present invention provides a detection method having a rotation calibrating function, for detecting a relative motion of a DUD with respect to a reference light source, the detection method includes: detection a rotation of the DUD to generate rotation information; mapping a light spot received from the reference light onto a coordinate system to obtain an absolute coordinate; and calibrating the absolute coordinate according to the rotation information to generate a calibrated coordinate
In case it is required, the calibrated coordinate can be further transformed into a coordinate with respect to another coordinate system.
The objectives, technical details, features, and effects of the present invention will be better understood with regard to the detailed description of the embodiments below, with reference to the drawings.
The drawings as referred to throughout the description of the present invention are for illustrative purpose only, but not drawn according to actual scale. The orientation wordings in the description such as: above, under, left, and right are for reference with respect to the drawings, but not for limiting the actual product made according to the present invention.
Referring to
The gravity sensor 221 is disposed in the DUD 22 and detects the rotations of the DUD 22 (referring to labels αα′ββ40Yy′ shown in
Referring to
The coordinate transfer unit 223 calibrates the absolute coordinate to generate a calibrated coordinate according to the absolute coordinate obtained from the image sensor 223 and the rotation information from the gravity sensor 221.
In case it is required, the coordinate transfer unit 223 can further transform the calibrated coordinate into a coordinate with respect to another coordinate system. For example, the calibrated coordinate can be complying with the resolution of the coordinate system related to the image sensor resolution, while the transformed coordinate can be complying with the resolution of a coordinate system related to a display device (not shown). Of course, the coordinate transfer unit 223 can transform the calibrated coordinate according to other requirements not limited to the above.
The DUD 22 for example can be but not limited to a remote controller or joystick; when the user moves the DUD 22, the light image from the reference light source 21 which is captured by the image sensor 222 will move correspondingly. The motion detection device 20 can calculate a displacement according to the coordinates (absolute coordinates or calibrated coordinates) before and after the movement of the DUD. This displacement can be applied to generating control information, such as controlling a cursor movement of a display device (not shown in figures), or controlling an action of a game character. The motion detection device 20 can communicate with the display device by wired or wireless manner.
Because the coordinate and displacement are determined by the relative relationship between the reference light source 21 and the image sensor 222, the dispositions of the reference light source 21 and image sensor 222 are interchangeable. That is, the reference light source 21 can be disposed in the DUD 22 and the image sensor 222 can be disposed outside the DUD 22. The captured image by the image sensor 222 can be transmitted to the coordinate transfer unit 223 by wired or wireless communication. The coordinate transfer unit 223 can be disposed either inside the DUD 22 or outside the DUD 22.
The rotation information can be generated not only by the gravity sensor as described in the previous embodiments; any device which can generate rotation information such as a gyro-sensor or an e-compass, etc. can be used.
Besides, the motion detection device 20 can further include a special effect generator 224 inside the DUD 22, which is for example a vibration motor 224. When the DUD 22 receives a vibration command, the vibration motor causes the DUD 22 to vibrate to improve the interactive effect. For example, during playing an interactive game, when the user encounters an impact, a shock, a bumping road, etc, the vibration motor can increase the interactive fun.
The special effect generator 224 can be for generating other effects. For example, the motion detection device can further include a voice control device or an audio generation device, disposed inside the DUD. For example, the user can control the operation of the interactive system by the voice control device, to scroll pages on a screen or to enter a next game stage. The audio generation device can generate an audio effect, which for example can increase the sound field effect of a game, or to remind the user the location of the DUD 22 by an audio sound when use is looking for the DUD 22.
The reference light source 21 can be a spot light source, a linear light source, or a planar light source. In a preferable embodiment of the present invention, referring to
The present invention has been described in considerable detail with reference to certain preferred embodiments thereof. It should be understood that the description is for illustrative purpose, not for limiting the scope of the present invention. Those skilled in this art can readily conceive variations and modifications within the spirit of the present invention. For example, the reference light source can emit light continuously or in pulses. It is not necessarily to use only one of the gravity sensor, gyro-sensor or e-compass; they can be used in combination, i.e., two or more of them can be used together. A circuit or device which does not affect the primary function of the overall system can be inserted between two circuit or devices shown to be in direct connection in the figures. An embodiment or a claim of the present invention does not need to attain or include all the objectives, advantages or features described in the above. The abstract and the title are provided for assisting searches and not to be read as limitations to the scope of the present invention. The scope of the present invention should cover all the variations and modifications within the spirit of the present invention.