1. Field of the Invention
The present invention generally relates to a detecting method, in particular, to a method for detecting motion direction of a portable electronic device.
2. Description of Prior Art
As the information technology develops rapidly nowadays, various electronic devices become popular in daily life. In particular, portable electronic device with diversified functions have become a critical part of modern life. Portable electronic device are characterized by being compact and low power consumption. Users are given the conveniences to use the devices anywhere anytime. Consequently, engineers are working on making the electronic devices portable in recent years. Mobile phones, portable MP3 players and digital cameras are typical products resulted from the engineering effort making products compact and portable. Under the trend, electronic devices are becoming more and more popular and convenient to users.
Frequently, the demand of an electronic device grows rapidly when the device becomes portable. In order to cover requirements from different customer groups, developers start to develop and offer value added functions such as photo taking function on a mobile phone or a MP3 player. Furthermore, products are provided with screen touch control function and wireless network access in order to make the electronic products become more attractive to potential users. Recently, touch control mobile phones such as I-Phone from Apple or HTC Touch Diamond from HTC further provide sensing flip and rotate movements, marking a new direction for mobile phone market.
In addition to two models of touch control mobile phone above, there are also portable electronic device in the market capable of sensing flip and rotate movements implemented by an accelerometer or a gyro installed. Users control the electronic device by flip and rotate the electronics device. The electronic device senses tilted angles and speeds of the electronic device caused by the motion and sends instructions based on the sensed angles and speeds processed by a program to control motion of the electronic device. In some applications, users are capable of playing interactive games on an electronic device by flip and rotate the device.
However, it is a pity that the above mentioned electronic devices are provided with capability sensing flip and rotate action of the devices, and have not fully utilized and studied on two-dimensional translation. Moreover, an accelerometer and a gyro are additional components added to an electronic device. The cost to add the accelerometer or the gyro may not be significant. Yet the total cost to add the component to an electronic device under mass production still stands for a portion in overall cost for manufacturers.
In terms of the above disadvantages, an electronic device and method are demanded in the market capable of sensing the motion of an electronic device surrounding the electronic device and further transforming the sensed data into a control signal controlling action of the electronic device without adding sensing components.
The objective of the present invention is to provide a detecting method for detecting motion direction of a portable electronic device. Upon the electronic device has motion under an external force, the electronic device determines an angel or a direction of the motion and sends a corresponding control signal for controlling action of the electronic device.
In order to realize the above objective, an image sense unit is used according to the present invention for sensing a plurality of images in continuous time sequence. In addition, a process unit is used for analyzing differences among the plurality of images for determining motion direction of the electronic device to generate motion data and sends control signal corresponding to the motion data.
The features of the invention believed to be novel are set forth with particularity in the appended claims. The invention itself, however, may be best understood by reference to the following detailed description of the invention, which describes an exemplary embodiment of the invention, taken in conjunction with the accompanying drawings, in which:
In cooperation with attached drawings, the technical contents and detailed description of the present invention are described thereinafter according to a preferable embodiment.
It should be noted that the objective of the present invention is determining the motion direction of the portable electronic device 10 upon external force via sensing external image differences. Therefore, image quality of the plurality of images generated on the image sense unit 12 is expected to reach a level sufficient for effective determination on the image differences. The quality requirement standard is not as stringent as the standard demanded by general digital photos for sharing and records by users. Thus, it is not required to install devices to retrieve and process data for generating high quality digital images. Instead, the required device of the embodiment is an image sense unit 12. It is not needed to use a well equipped digital camera.
According the preferred embodiment, the control signal C1 sent is used for controlling an object displayed on the display unit 13 of the electronic device 10. As shown in
When the second image 32 is as shown in
It should be noted that the preferred embodiment of the present invention should not limit the scope of the invention. In the above preferred embodiment, the motion direction indicated by of two images 31, 32 of the target 33 are used for determining the motion of the electronic device 10 motion. The electronic device 10 of the present invention can use a complete image sensed by the image sense unit 12 for determining motion direction. The differences of the target 33 in
The control signal C1 generated by the electronic device 10 of the present invention can be used in diversified applications. Depending on the application scenarios, the motion determination can be further categorized into the electronic device 10 having a one-dimensional rotation motion or two-dimensional translation motion and a more specific control signal C1 accordingly can be generated.
As mentioned above,
The step S44 is further completed by the step S440 to the step S450. Firstly, the image sense unit 12 senses the first image 31 (step S440). The first image 31 is used for defining a start point of the electronic device 10. Following defining the start point, the image sense unit 12 senses the second image 32 in time sequence (step S442). The images 31, 32 are sent to the process unit 14 for determining and analyzing the differences of rotation factors of the image 31, 32 (step S444), and generating the corresponding motion data. Upon the analyzing is completed, if the electronic device 10 has rotation motion, the control signal C1 is generated corresponding to the rotation motion (step S446). The control signal C1 is sent for controlling the object on the electronic device 10 to perform rotation action (step S448). Lastly, the second image 32 replaces the first image 31 (step S450) to redefine the start point of the electronic device 10. The process then returns to the step S442 to proceed to the next round of image sensing activity.
In the step S42, if the operation mode is determined as a two-dimension mode, which means the operating mode is determined to analyze image differences of translation motion factors of the electronic device 10, the process moves to the step S46. The step S46 further completed by the step S460 to the step S470. Identical with the step S44, the image sense unit 12 senses the first image 31 (step S460). The first image 31 is used for defining a start point of the electronic device 10. Following defining the start point, the image sense unit 12 senses the second image 32 in time sequence (step S462). The images 31, 32 are sent to the process unit 14 for determination. Yet, in this part of S46, the process unit 14 analyzes and decides if the electronic device 10 has translation motion or not based on the images 31, 32. As a result, the process unit 14 analyzes the differences of translation factors between images 31, 32 (step S464), and generates the motion data. Upon the motion data is analyzed, the process unit 14 determines that the electronic device 10 has the translation motion, the process unit 14 generates control signal C1 corresponding to the translation motion (step S466). The control signal C1 sent is used for controlling the object of the electronic device 10 to perform translation action (step S468). Lastly, the second image 32 replaces the first image 31 (step S470), to redefine the start point of the electronic device 10. The process then returns to the step S462 to proceed to the next round of image sensing activity.
The above step S44 is used for determining if the electronic device 10 has rotation motion and the process unit 14 does not process factors related to translation motion of the electronic device 10. On the other hand, the step S46 is used for determining of the electronic device 10 has translation motion and the process unit 14 does not process factors related to rotation motion of the electronic device 10.
In
As the skilled person will appreciate, various changes and modifications can be made to the described embodiments. It is intended to include all such variations, modifications and equivalents which fall within the scope of the invention, as defined in the accompanying claims.