1. Field of the Invention
The invention relates to a gesture control device and, more particularly, to a method for setting and cancelling a gesture operating region in a gesture control device.
2. Description of the Prior Art
So far a user usually operates an electronic device by an input device, such as keyboard, mouse, touch panel, remote controller, and so on. However, since the user has to hold or touch those input devices including keyboard, mouse, touch panel, remote controller, and so on for operation, it is inconvenient for the user. As motion control gets more and more popular, the present operation behavior of user may change in the future, wherein gesture control may be adapted for various applications. In general, gesture control is implemented by installing an image capturing module on an upper middle portion of a display device (or TV) so as to capture a gesture image of a user facing the display device. Afterward, the gesture image is analyzed by software or hardware so as to operate an operating object in the display screen. At present, a conventional gesture control device provides a gesture operating region, which has fixed size and location, in the display screen of the display device using the gesture image captured by the image capturing module such that the user can perform a gesture within the fixed gesture operating region to execute related function. However, the build, standing pose including a location where the user stands and an angle which the user faces the image capturing module, dominant hand and so on of different users are not exactly the same. Therefore, if a gesture performed by a user is out of the gesture operating region or the user is replaced by another user with different build, standing pose, dominant hand and so on, the gesture control device may not be controlled normally to execute related function. In other words, the fixed gesture operating region is inconvenient for different users in operation.
The invention provides a gesture control device and a method for setting and cancelling a gesture operating region in the gesture control device so as to solve the aforesaid problems.
According to an embodiment of the invention, a method for setting and cancelling a gesture operating region in a gesture control device comprises steps of capturing at least one image; detecting whether there is a palm in the at least one image; if there is a palm in the at least one image, detecting whether there is a face in the at least one image; if there is a face in the at least one image, setting the gesture operating region according to the palm and the face; and cancelling the gesture operating region when the palm is at rest over a first time period or the palm disappears from the gesture operating region over a second time period.
According to another embodiment of the invention, a gesture control device comprises an image capturing unit and a processing unit, wherein the processing unit is electrically connected to the image capturing unit. The image capturing unit is used for capturing at least one image. The processing unit detects whether there is a palm in the at least one image. If there is a palm in the at least one image, the processing unit detects whether there is a face in the at least one image. If there is a face in the at least one image, the processing unit sets a gesture operating region according to the palm and the face. The processing unit cancels the gesture operating region when the processing unit detects that the palm is at rest over a first time period or the palm disappears from the gesture operating region over a second time period.
As mentioned in the above, the invention detects whether there is a palm first after capturing an image so as to obtain a location of a user and then detects whether there is a face so as to set a gesture operating region corresponding to the user according to the palm and the face. When the palm is at rest over a first time period (e.g. five seconds) or the palm disappears from the gesture operating region over a second time period (e.g. three seconds), the gesture operating region will be cancelled accordingly. In other words, when the user changes his/her standing pose or changes his/her dominant hand to non-dominant hand, the user can cancel the original gesture operating region and reset a new gesture operating region by the aforesaid operation manner. In a similar way, when the current user is replaced by another user, the new user can also cancel the original gesture operating region and reset a new gesture operating region by the aforesaid operation manner. Accordingly, the invention can set a gesture operating region suitable for a specific user according to the build, standing pose, dominant hand and so on of the user. Furthermore, the invention allows the user to cancel the original gesture operating region and reset a new gesture operating region according to his/her using requirements.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Referring to
In practical applications, the display unit 10 may be a liquid crystal display device, other display devices or a projection screen, the image capturing unit 12 may be, but not limited to, a charge-coupled device (CCD) sensor or a complementary metal-oxide semiconductor (CMOS) sensor, and the processing unit 14 may be a processor or a controller with data calculating/processing function. In general, the gesture control device 1 may be further equipped with some necessary hardware or software components for specific purposes, such as a memory, a storage device, a power supply, an operating system, etc., and it depends on practical applications.
Referring to
When the user 3 is located in front of the image capturing unit 12 and raises the hand 30 (as shown in
If there is a palm 32 of the user 3 in the at least one image I, the processing unit 14 detects whether there is a face 34 of the user 3 in the at least one image I in step S104 of
In this embodiment, when the processing unit 14 detects that the palm 32 of the user 3 is in the at least one image I, the processing unit 14 can define a palm region 320 for the palm 32; and when the processing unit 14 detects that the face 34 of the user 3 is in the at least one image I, the processing unit 14 can define a face region 340 for the face 34, as shown in
In this embodiment, a scale of the gesture operating region is corresponding to a scale of the display screen 102. As shown in
The processing unit 14 can determine a size of the gesture operating region 5 according to a maximum extendable length of the palm 32 (i.e. the length of the arm) and a size of the face 34. For example, the gesture control device 1 may store a look-up table, as the table 1 shown in the following. As shown in the table 1, when the maximum extendable length of the palm 32 is between L0 and L1 and the size of the face 34 is between F0 and F1, the size of the gesture operating region 5 is equal to X1.
Furthermore, the processing unit 14 may also determine a size of the gesture operating region 5 according to a distance between the palm 32 and the face 34. As shown in
After calculating the size of the gesture operating region 5, the processing unit 14 can determine a location of the gesture operating region 5 according to the face 34 and the palm 32. For example, when the palm 32 is a right palm, the processing unit 14 can locate the face 34 at an upper left corner of the gesture operating region 5, as shown in
When the processing unit 14 detects that the palm 32 is at rest over a first time period (e.g. five seconds), the processing unit 14 will cancel the gesture operating region 5 in step S108 of
In other words, when the user 3 changes his/her standing pose or changes his/her dominant hand (e.g. right hand) to non-dominant hand (e.g. left hand), the user 3 can cancel the original gesture operating region 5 by the aforesaid step S108 or S110 and reset a new gesture operating region 5 by the aforesaid steps S100-S106. In a similar way, when the current user 3 is replaced by another user, the new user can also cancel the original gesture operating region 5 by the aforesaid step S108 or S110 and reset a new gesture operating region 5 by the aforesaid steps S100-S106.
Referring to
In other words, in this embodiment, the user 3 can cancel the gesture operating region 5 by keeping the palm 32 at rest over the first time period, moving the palm 32 out of the gesture operating region 5 over the second time period, or changing the palm 32 into the first 32′ in the gesture operating region 5 over the second time period.
Furthermore, the control logic of the method for setting and cancelling the gesture operating region in the gesture control device 1 shown in
As mentioned in the above, the invention detects whether there is a palm first after capturing an image so as to obtain a location of a user and then detects whether there is a face so as to set a gesture operating region corresponding to the user according to the palm and the face. When the palm is at rest over a first time period (e.g. five seconds) or the palm disappears from the gesture operating region over a second time period (e.g. three seconds), the gesture operating region will be cancelled accordingly. In other words, when the user changes his/her standing pose or changes his/her dominant hand to non-dominant hand, the user can cancel the original gesture operating region and reset a new gesture operating region by the aforesaid operation manner. In a similar way, when the current user is replaced by another user, the new user can also cancel the original gesture operating region and reset a new gesture operating region by the aforesaid operation manner. Accordingly, the invention can set a gesture operating region suitable for a specific user according to the build, standing pose, dominant hand and so on of the user. Furthermore, the invention allows the user to cancel the original gesture operating region and reset a new gesture operating region according to his/her using requirements.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
101138066 | Oct 2012 | TW | national |