1. Technical Field
Embodiments of the present disclosure relate generally to display devices, and particularly to a cursor controlling method of a display device.
2. Description of Related Art
Controlling television (TV) sets using a remote control is well known in the art. For example, a user can control a TV set to switch from one channel to another channel by pressing buttons of the remote control. TV sets, such as digital TV, high definition TV, and network TV, can order online programs according to user requirements. A user can use the buttons arranged on the remote control to move a cursor displayed on the TV set, thereby controlling the TV set to perform corresponding functions. However, moving the cursor using the buttons of the remote control is inconvenient. Therefore, there is room for improvement in the art.
The disclosure, including the accompanying drawings, is illustrated by way of example and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one”. The reference “a plurality of” means “at least two”.
In this embodiment, the cursor control system 10 includes an image capturing module 101, an image analysis module 102, a calculation module 103, a cursor location determination module 104, and a cursor control module 105. The modules 101-105 include computerized codes in the form of one or more programs that are stored in the storage 11 or other storage mediums of the display device 100. The computerized codes include computer-readable program codes (instructions) that are executed by the processor 12 to provide functions for the display device 1. The storage 11 may be a cache or a dedicated memory, such as an erasable programmable read only memory (EPROM), a hard disk drive (HDD), or a flash memory. In general, the word “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as in an EPROM. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable medium include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
In step S1, when cursor control button 21 is pressed, the cursor is displayed on the display screen 13, and the light-emitting element 20 of the remote control 200 continuously emits light. In the embodiment, the cursor is displayed at a predetermined location of the display screen 13 (e.g., geometry center of the display screen 13) when the cursor control button 21 is pressed.
In step S2, the image capturing module 101 controls the image capturing device 110 to capture real-time images of the remote control 200 during the time when the light-emitting element 20 emits light. In the embodiment, the image capturing module 101 controls the image capturing device 110 to capture images at regular time intervals (e.g., every 0.5 seconds).
In step S3, the image analysis module 102 analyzes the captured images to determine a current location Pk+1(Xk+1, Yk+1) of the light-emitting element 20 in a current real-time image of the remote control 200 and to determine a previous location Pk(Xk, Yk) of the light-emitting element 20 in a previous real-time image of the remote control 200. In the embodiment, both the current location Pk+1(Xk+1, Yk+1) and the previous location Pk(Xk, Yk) represent coordinates of the light-emitting element 20 in the current real-time image and the previous real-time image. The image analysis module 102 converts the current mage of the remote control 200 into a first grey image, and then calculates a pixel which has a maximum brightness value of the first grey image. The location of the calculated pixel of the first grey image is determined to be the current location Pk+1(Xk+1, Yk+1) of the light-emitting element 20 in the current real-time image. In the same manner, the image analysis module 102 converts the previous real-time image of the remote control 200 into a second grey image, and then calculates a pixel which has a maximum brightness value of the second grey image. The location of the calculated pixel of the second grey image is determined to be the previous location Pk(Xk, Yk) of the light-emitting element 20 in the previous real-time image.
In step S4, the calculation module 103 calculates a horizontal movement distance Xoff and a vertical movement distance Yoff of the light-emitting element 20 according to the current location Pk+1(Xk+1, Yk+1) and the previous location Pk(Xk, Yk) of the light-emitting element 20, where Xoff=Xk+1−Xk, Yoff=Yk+1−Yk.
In step S5, the cursor location determination module 104 obtains a current location C0(X′0, Y′0) of the cursor on the display screen 13, and calculates a target location C1(X′1, Y′1) where the cursor to be moved to according to the horizontal movement distance Xoff and the vertical movement distance Yoff of the light-emitting element 20. In the embodiment, the target location C1(X′1, Y′1) is calculated according to the formula of: X′1=X′0+S1×Xoff, Y′1=Y′0+S2×Yoff, where S1 is a first predetermined coefficient, S2 is a second predetermined coefficient. The coefficients S1 and S2 are predetermined according to a resolution of the display screen 13 and a resolution of the image capturing device 110. For example, if the resolution of the display screen is P1×Q1 and the resolution of the image capturing device is P′1×Q′1, the coefficient S1 is equal to a ratio of P1 to P′1 and the coefficient S2 is equal to a ratio of Q1 to Q′1.
In step S6, the cursor control module 105 controls the cursor to move from the current location C0(X′0, Y′0) to the target location C1(X′1, Y′1) on the display screen 13.
When the cursor is moved to the target location C1(X′1, Y′1), the user can operate the buttons of the remote control 200 to select a corresponding option displayed on the display screen 13 where the cursor is located, thereby controlling the display device 100 to perform a corresponding function. Thus, the user can control the movements of the cursor by moving the remote control 100, which is more convenient for the user to control the display device 100 using the remote control 200.
Although certain embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
101144676 | Nov 2012 | TW | national |