1. Technical Field
Embodiments of the present disclosure relate to projector technology, and particularly to a control system and method for a computer using a projector.
2. Description of Related Art
Projectors are devices which project images onto a screen. Projectors are often used to make presentations. A user may press a key on a keyboard of a computer or use a laser pointer to change a slide when addressing his/her audience. However, if the user has no laser pointer, or is some distance away from the keyboard, or is in the dark, it is not convenient to change the slide. Further and better methods are desirable.
The disclosure is illustrated by way of examples and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. 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.
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 media include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
The capturing module 210 captures an image of the projection screen 30. In one embodiment, the image is captured by a camera of the projector 1. The image of the projection screen 30 includes a shape of the shadow of the object. The object is positioned between the projector 1 and the projection screen 30.
The determination module 220 determines if the shape of the shadow of the object matches a predetermined shape. The shape of the shadow of the object is generated when the object is positioned between the projector 1 and the projection screen 30. As shown in
The obtaining module 230 obtains coordinates of each pixel of the shape of the shadow of the object and calculates average coordinates of the shape of the shadow of the object, in response to a determination that the shape of the shadow of the object matches the predetermined shape. As shown in
The execution module 240 executes an operation of the computer 2 according to the average coordinates of the shape of the shadow of the object. For example, the execution module 240 may execute a computer function, such as a double click or a single click, on the average coordinates of the shape of the shadow of the object. If an operation system installed in the computer 2 is MICROSOFT WINDOWS, a command corresponding to the single click is WM_LBUTTONDOWN, and a command corresponding to the double click is WM_LBUTTONDBLCLK. The execution module 240 invokes WM_LBUTTONDOWN to execute the single click, and invokes WM_LBUTTONDBLCLK to execute the double click. Additionally, the execution module 240 also obtains a time duration for the shape of the shadow of the object staying in the projection screen 30, the execution module 240 executes the operation according to the time duration. For example, if the time duration is greater than two seconds and less than three seconds, the execution module 240 executes the single click on the average coordinates of the shape of the shadow of the object. If the time duration is equal to or greater than three second, the execution module 240 executes the double click on the average coordinates of the shape of the shadow of the object.
In step S10, the capturing module 210 captures an image of the projection screen 30. In one embodiment, the image may include a shape of the shadow of the object. As shown in
In step S20, the determination module 220 determines if the shape of the shadow of the object matches a predetermined shape. As shown in
In step S30, the obtaining module 230 obtains coordinates of each pixel of the shape of the shadow of the object and calculates average coordinates of the shape of the shadow of the object. For example, if the black area A includes five pixels, the coordinates of the five pixels are P1, P2, P3, P4 and P5, the average coordinates of the five pixels is equal to (P1+P2+P3+P4+P5)/5.
In step S40, the execution module 240 executes an operation of the computer 2 according to the average coordinates of the shape of the shadow of the object. Additionally, the execution module 240 executes an operation on the average coordinates of the shape of the shadow of the object based on a time duration that the shape of the shadow of the object stays in the projection screen 30. For example, if the time duration is greater than two seconds and less than three seconds, the execution module 240 executes the single click on the average coordinates of the shape of the shadow of the object. If the time duration is equal to or greater than three second, the execution module 240 executes the double click on the average coordinates of the shape of the shadow of the object.
Although certain inventive 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 |
---|---|---|---|
201110117009.7 | May 2011 | CN | national |