Abstract:
A method and an apparatus for controlling a terminal device by using a non-touch gesture are disclosed. The terminal device includes one or more point light sensors. The terminal device receives a plurality of light intensity signals outputted by the plurality of light sensors when the plurality of point light sensors sense visible light intensity variations generated by the non-touch user gesture. The terminal device determines a change pattern of the light intensity signals and identifies the non-touch user gesture, including identifying the movement direction of the non-touch user gesture, based on the change pattern. Then, the terminal device executes a control operation corresponding to the identified non-touch user gesture. The embodiments of the present invention can control the terminal device by using a non-touch gesture simply and efficiently through software and can enhance user experience.

Description:
CROSS-REFERENCE TO RELATED APPLICATIONS 
       [0001]    This application is a continuation of International Application No. PCT/CN2013/081387, filed on Aug. 13, 2013, which claims priority to Chinese Patent Application No. 201210375886.9, filed with the Chinese Patent Office on Sep. 29, 2012, and Chinese Patent Application No. 201210387215.4, filed with the Chinese Patent Office on Oct. 12, 2012, all of which are hereby incorporated by reference in their entireties. 
     
    
     TECHNICAL FIELD 
       [0002]    The present invention relates to the field of communication technologies, and in particular, to a method and an apparatus for controlling a terminal device by using a non-touch gesture. 
       BACKGROUND 
       [0003]    With continuous development of capabilities of smart terminal devices, people can process complex tasks on a smart terminal such as a smart phone and a tablet computer (a tablet personal computer (PC)), for example, read an e-book, browse a multimedia picture, play music and a video, and browse a Web page. Therefore, it is necessary for a user to frequently exchange information with a mobile smart terminal, for example, perform basic operations such as picture switching and zooming, pausing or playing of music and videos, volume adjustment, and page dragging in Web browsing. 
         [0004]    Most existing smart terminals generally adopt touch gesture recognition for inputting, that is, the single-point or multipoint touch or action of a finger or palm on a touch screen is sensed through the touch screen and mapped to a corresponding operation instruction. However, this input approach requires that the user should perform operations on the touch screen with a hand; there are many restrictions on the user, and experience of man-machine interaction is not natural enough. 
         [0005]    Compared with conventional touch gesture operations, non-touch gesture operations, and in particular, controlling a mobile smart terminal with a hand or an arm not touching the terminal, can achieve a more smooth and natural experience, and provide great convenience for the user in a scenario where it is inconvenient for the user to perform operations on the screen with a hand (for example, when the user is cooking in the kitchen or is outside in winter). 
         [0006]    Existing non-touch gesture recognition technologies mainly include two-dimensional and three-dimensional optical image recognition methods and the like. In the process of implementing the present invention, the inventor finds that the prior art has at least disadvantages of high algorithm complexity, large power consumption, and special requirements on the hardware configuration of the smart terminal, and therefore, the smart terminal cannot be controlled by using a non-touch gesture simply and efficiently through software based on the existing hardware configuration of the smart terminal. 
       SUMMARY 
       [0007]    In view of this, embodiments of the present invention provide a method and an apparatus for controlling a terminal device by using a non-touch gesture, so as to control a smart terminal by using a non-touch gesture simply and efficiently through software based on the existing hardware configuration of the smart terminal. 
         [0008]    According to a first aspect, an embodiment of the present invention provides a terminal device. The terminal device includes a point light sensor and a processor coupled to the point light sensor. The point light sensor senses visible light intensity variations generated by a non-touch user gesture and outputs a plurality of light intensity signals corresponding to the sensed visible light intensity variations. The processor receives the plurality of light intensity signals and determines a change pattern of the plurality of light intensity signals. Then the processor identifies the non-touch user gesture based on the change pattern and executes a control operation corresponding to the identified non-touch user gesture. 
         [0009]    According to a second aspect, an embodiment of the present invention provides a terminal device. The terminal device includes a first point light sensor and a second point light sensor which are positioned at different locations on a body of the terminal device. The first and second point light sensors each senses visible light intensity variations generated by a non-touch user gesture and output a plurality of light intensity signals corresponding to the sensed visible light intensity variations. 
         [0010]    According to a third aspect, an embodiment of the present invention provides a method for controlling a terminal device by using a non-touch gesture. The terminal device includes a point light sensor. In the method, the terminal device receives a plurality of light intensity signals outputted by the point light sensor when the point light sensor senses visible light intensity variations generated by the non-touch user gesture, and determines a change pattern of the plurality of light intensity signals. Then the terminal device identifies the non-touch user gesture based on the change pattern and executes a control operation corresponding to the identified non-touch user gesture. 
         [0011]    According to a third aspect, an embodiment of the present invention provides a method for controlling a terminal device by using a non-touch gesture. The terminal device includes a first point light sensor and a second point light sensor which are positioned at different locations on a body of the terminal device. In the method, the terminal device receives light intensity signals outputted by the first point light sensor and the second point light sensor when the first and second point light sensors sense visible light intensity variations generated by the non-touch user gesture, and determines a change pattern of the light intensity signals. Then, the terminal device identifies the non-touch user gesture, including identifying the movement direction of the non-touch user gesture, based on the change pattern, and executes a control operation corresponding to the identified non-touch user gesture. 
         [0012]    The above technical solutions have the following advantages: low algorithm complexity, small power consumption, no special requirements on the hardware configuration of a smart terminal, and being able to control the terminal device by using a non-touch gesture simply and efficiently on the terminal device through software, and enhancing user experience. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0013]    To illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments. The accompanying drawings show merely some embodiments of the present invention. 
           [0014]      FIG. 1  is a schematic flowchart of Embodiment 1 of the present invention; 
           [0015]      FIG. 2A  is a schematic diagram of a swipe gesture according to Embodiment 2 of the present invention; 
           [0016]      FIG. 2B  is a schematic diagram of a light intensity change rule generated by the swipe gesture according to Embodiment 2 of the present invention; 
           [0017]      FIG. 3A  is a schematic diagram of an uplift gesture according to Embodiment 3 of the present invention; 
           [0018]      FIG. 3B  is a schematic diagram of a light intensity change rule generated by the uplift gesture according to Embodiment 3 of the present invention; 
           [0019]      FIG. 4A  is a schematic diagram of a press gesture according to Embodiment 3 of the present invention; 
           [0020]      FIG. 4B  is a schematic diagram of a light intensity change rule generated by the press gesture according to Embodiment 3 of the present invention; 
           [0021]      FIG. 5  is a schematic diagram of a light intensity change rule generated by a continuous press gesture, uplift gesture, and then press gesture according to Embodiment 3 of the present invention; 
           [0022]      FIG. 6  is a schematic diagram of recommended placement positions supporting a maximum vertical projection distance when a terminal device includes two light sensors according to Embodiment 4 of the present invention; 
           [0023]      FIG. 7  is a schematic diagram of recommended placement positions supporting a maximum horizontal projection distance when a terminal device includes two light sensors according to Embodiment 4 of the present invention; 
           [0024]      FIG. 8  is a schematic diagram of recommended placement positions when a terminal device includes three light sensors according to Embodiment 4 of the present invention; 
           [0025]      FIG. 9A  is a schematic diagram of a mapping of control operations to non-touch gestures for different terminal applications according to Embodiment 5 of the present invention; 
           [0026]      FIG. 9B  is a schematic diagram of another mapping of control operations to non-touch gestures for different terminal applications according to Embodiment 5 of the present invention; 
           [0027]      FIG. 10  is a schematic diagram of an apparatus according to Embodiment 6 of the present invention; 
           [0028]      FIG. 11  is a schematic structural diagram of another apparatus according to Embodiment 6 of the present invention; and 
           [0029]      FIG. 12  is a schematic diagram of a terminal device according to Embodiment 7 of the present invention. 
       
    
    
     DETAILED DESCRIPTION 
       [0030]    To make the objective, technical solutions, and advantages of the present invention clearer, the following further describes the present invention in detail with reference to specific embodiments and relevant accompanying drawings. 
       Embodiment 1 
       [0031]    Embodiment 1 of the present invention provides a method for controlling a terminal device by using a non-touch gesture, where the method is applicable to a terminal device including one or multiple light sensors. The terminal device in this embodiment may be a smart phone, a tablet computer, a notebook computer, and so on; the light sensor (also referred to as an ambient light sensor) in this embodiment is a sensor sensing visible light intensity. Light sensors are widely used on smart phones or tablet computers, and at present, most smart terminals are equipped with a light sensor which is usually located at the top of the front screen of a mobile phone, and the top or right side of the front screen of a tablet computer, and is mainly used for the terminal device to sense ambient visible light intensity for automatically adjusting screen luminance. For example, when an outdoor user uses a terminal device at daytime, screen luminance is automatically adjusted to the maximum to resist intense light; and when the user returns to a building with dark ambient light, screen luminance is automatically reduced. 
         [0032]    As shown in  FIG. 1 , the embodiment of the present invention includes the following steps. 
         [0033]    S 11 . Receive multiple light intensity signals that are output by a light sensor according to a light intensity change in a period of time and reflect the light intensity change, where the light intensity change is generated by a non-touch gesture. 
         [0034]    In this embodiment, a period of time may be a duration for completing one or more non-touch gestures; the light intensity signals reflecting light intensity may be illumination, whose physical meaning is luminous flux illuminated on a unit area, where the luminous flux uses the sensitivity of a human eye to light for reference; the unit of illumination is lumens (Lm) per square meter, also called Lux, where 1 Lux=1 Lm/square meter. 
         [0035]    S 12 . Determine whether a change rule of the output multiple light intensity signals is compliant with a preset change rule corresponding to the non-touch gesture, and if compliant, recognize the non-touch gesture corresponding to the multiple light intensity signals. 
         [0036]    In this embodiment, the change rule of the multiple light intensity signals may be as follows: the light intensity (quantized by illumination) reflected by multiple light intensity signals changes from high to low in a period of time, or changes from low to high in a period of time, or remains unchanged in a period of time, or the change rule may be a combination of several change regularities. In this embodiment, the non-touch gesture may be a swipe gesture, an uplift gesture, a press gesture, or a combination of several gestures, where the swipe gesture may include an up-swipe gesture, a down-swipe gesture, a left-swipe gesture, or a right-swipe gesture. The preset change rule corresponding to the non-touch gesture may also be obtained by training various gestures beforehand. For example, if a swipe gesture is used, when an operation object (such as a hand) swipes a light sensor, the light intensity output by the light sensor changes (for example, the light intensity changes first from high to low, and then from low to high); in this case, the change rule may be recorded, and a change rule corresponding to the non-touch gesture is obtained. It should be noted that the change rule is not fixed, and may also be adjusted in actual use, for example, parameters related to the change rule, such as the light intensity value and detection time, are adjusted. During the specific adjustment, the parameters may be adjusted by the user by directly inputting parameters (receiving by configuring menus) or adjusted by the user by learning, or adjusted according to the ambient light intensity in the running process, and so on. 
         [0037]    S 13 . Execute a control operation corresponding to the recognized non-touch gesture, for a terminal application. 
         [0038]    In this embodiment, terminal applications may be applications such as reading e-books, browsing Web pages, browsing pictures, playing music, and playing videos. The corresponding control operations may be page flipping, up-down dragging, picture zooming, volume adjustment, playing or pausing, and so on. The specific operations and the corresponding applications are not limited herein, for example, page flipping may be directed to applications such as e-books, browsing Web pages, and pictures, and playing or pausing may be directed to applications such as playing music and videos. In this embodiment, the method of a control operation corresponding to the non-touch gesture for a terminal application may be configured beforehand, or may also be defined by the user. 
         [0039]    Further, in the embodiment of the present invention, the determining whether a change rule of the output multiple light intensity signals is compliant with a preset change rule corresponding to the non-touch gesture is, while receiving a light intensity signal, determining, according to the light intensity signals received last time or multiple times, whether the change of the light intensity is compliant with the preset change rule corresponding to the non-touch gesture. The method of processing while receiving may determine the non-touch gesture and execute a corresponding operation as soon as possible. Optionally, this embodiment may also determine, after receiving and buffering multiple light intensity signals, whether the change of the light intensity is compliant with the preset change rule corresponding to the non-touch gesture, or determine a part of signals after buffering a part of signals, and then determine, by using the method of processing while receiving, the remaining signals requiring determining. 
         [0040]    Further, because a shake of the terminal device also causes a light change which may incorrectly trigger a gesture action, to avoid misoperations caused by the shake of the terminal device, it is necessary to first determine whether the terminal device is currently in a relatively stable state, thereby determining whether to trigger recognition of the non-touch gesture. The embodiment of the present invention uses a motion sensor or an orientation sensor to determine whether the terminal device is in a relatively stable state, and the gesture is recognized only when the terminal device is in a relatively stable state. If the terminal device is not in a relatively stable state, it is not necessary to determine whether the change rule of the received light intensity is compliant with the change rule corresponding to the non-touch gesture. 
         [0041]    The state of the terminal device may be determined by a built-in motion sensor or orientation sensor of most current terminals, where the motion sensor includes an accelerometer, a linear accelerometer, a gravity sensor, a gyroscope, and a rotation vector sensor. 
         [0042]    The output of the motion sensor is a motion eigenvalue corresponding to three coordinate axes of the terminal device, for example, linear acceleration and angular acceleration; the orientation sensor outputs angles of rotation of the terminal device along the three coordinate axes, and the state of the terminal device may be determined by using a three-dimensional vector difference in the time sequence. The following describes the determining method by using only an accelerometer as an example, and the determining method using other motion sensors or orientation sensors is similar. 
         [0043]    The determining method using an accelerometer includes calculating vector differences of several three-axis acceleration sample values within a consecutive period of time, and if all the vector differences within the period of time are smaller than a threshold, or if an average value of the vector values is smaller than a threshold, considering that the terminal device is in a relatively stable state. The threshold is related to the sensitivity and precision of the sensor; when the user shakes slightly, a vector difference corresponding to incorrect determination of triggering gesture recognition may be obtained, and the average value is used as the threshold after statistics are collected for many times. 
         [0044]    The above vector difference is expressed by the formula: 
         [0000]      Acc_Diff i ={square root over (( x   i   −x   i−1 ) 2 +( y   i   −y   i−1 ) 2 +( z   i   −z   i−1 ) 2 )}{square root over (( x   i   −x   i−1 ) 2 +( y   i   −y   i−1 ) 2 +( z   i   −z   i−1 ) 2 )}{square root over (( x   i   −x   i−1 ) 2 +( y   i   −y   i−1 ) 2 +( z   i   −z   i−1 ) 2 )} 
         [0000]    where, (x i , y i , z i )is a three-axis acceleration value output by the accelerometer at time T i , and) (x i−1 , y i−1 , z i−1 ) is a three-axis acceleration value output by the accelerometer at time T i−1 . 
         [0045]    Preferably, to improve determining precision, output of the above multiple sensors may be used simultaneously for comprehensive determining. 
         [0046]    Optionally, a gesture recognizing switch may be set; if the switch is turned on, recognition of the non-touch gesture is triggered; if the switch is not turned on, recognition of the non-touch gesture is not triggered. 
         [0047]    This embodiment recognizes a non-touch gesture by determining the change of the light intensity signals output by the light sensor, and does not need to introduce complicated two-dimensional or three-dimensional optical components, which improves user experience while implementing simplicity. 
       Embodiment 2 
       [0048]    This embodiment, based on Embodiment 1, provides a method for controlling a terminal device by using a non-touch gesture, where the method uses a swipe gesture to control a terminal device. 
         [0049]    This embodiment may be based on one or more light sensors. When there is one light sensor, in this embodiment, the preset change rule corresponding to the non-touch gesture includes light intensity being compliant with a decreasing change and then compliant with an increasing change in a first predetermined period of time. If the obtained multiple light intensity signals output by a light sensor are compliant with this change, a swipe gesture is recognized. 
         [0050]    The decreasing change includes signal intensity reflected by the second light intensity signal being smaller than signal intensity reflected by the first light intensity signal among the multiple light intensity signals, with a decrement not smaller than a first threshold, where the first light intensity signal and the second light intensity signal are light intensity signals among the multiple light intensity signals, and time of receiving the second light intensity signal is later than time of receiving the first light intensity signal. 
         [0051]    The increasing change includes signal intensity reflected by the third light intensity signal being greater than signal intensity reflected by the second light intensity signal among the multiple light intensity signals, with an increment not smaller than a second threshold, where the third light intensity signal is a light intensity signal among the multiple light intensity signals, and time of receiving the third light intensity signal is later than the time of receiving the second light intensity signal. 
         [0052]    The first threshold is a typical decrement of light intensity when the light sensor is blocked by an operation object that generates the swipe gesture; and the second threshold is a typical increment of light intensity when the operation object that generates the swipe gesture leaves after the light sensor is blocked. The specific value may be obtained by experiment beforehand. 
         [0053]    For example, three light intensity signals A, B, and C are received in ascending order of time (for ease of description, the three letters also represent values of light intensity); if the light intensity of the three signals satisfies the following condition: B&lt;A, with a decrement not smaller than the first threshold, and C&gt;B, with an increment not greater than the second threshold, it indicates that the light intensity changes from high to low and then from low to high, and it may be considered that a swipe gesture occurs. Of course, actually, determining is not strictly limited to three signals. For example, if there is a B1 signal within a short time after the B signal, whether there is a process of changing from low to high may also be determined by determining whether C is greater than B1 with an increment not smaller than the second threshold. Because in this case, B1 closely follows B, the two values may be considered to be very close, and B1 may be used to replace B. The final purpose of this embodiment is to reduce incorrect determination by using a best algorithm. A person skilled in the art may select proper signal values for determining with reference to this embodiment, and details are not given herein. 
         [0054]    As shown in  FIG. 2A , the swipe gesture refers to a unidirectional swipe of an operation object in a sensing range of the light sensor; for example, the front of the terminal includes a light sensor  21 , and the operation object moves from one side to another side over the terminal screen, where the operation object includes a hand or an arm of a user, and also includes other objects in the hand of the user which can cause a change of light, for example, a book and a pen. The optimal distance from the swipe gesture to the screen is about 5 centimeters (cm) to 30 cm. The optimal distance range information may be displayed on the screen to prompt the user; meanwhile, the optimal distance range may also be adaptively adjusted according to actual light intensity, for example, when the light is weak, the upper limit of the optimal distance may be reduced properly. 
         [0055]    As shown in  FIG. 2B , the preset change rule corresponding to the non-touch gesture includes, in a first predetermined period of time, light intensity changing from high to low, and then changing from low to high. Light intensity of the light sensor received at time T i  is smaller than light intensity received at time T i−1 , and the falling extent is not smaller than the set first threshold Dec — 1; this stage is called a falling stage; light intensity of the light sensor received at time T k+1  is greater than light intensity received at time T k , and the rising extent is not smaller than the set second threshold Inc — 1; this stage is called a rising stage; and the first threshold and second threshold are set to reduce errors; if determining is performed without setting thresholds, it is possible that a slight light intensity change is also considered as a change from high to low and from low to high (for example, rotating a terminal device at an angle), thereby causing incorrect determination. 
         [0056]    If the time length from T i−1  to T i+1  is not greater than the set first threshold T — 1, it is considered that a swipe action occurs. 
         [0057]    At the falling stage, the falling extent Dec i  may be expressed as an absolute value of the decrement between the light intensity L i  at the current time and the light intensity L i−1  at a previous time, namely, 
         [0000]      Dec i   =L   i−1   −L   i . 
         [0058]    The falling extent Dec i  may also be expressed as a ratio of the decrement between the light intensity L i  at the current time and the light intensity L i−1  at the previous time, to the light intensity at the previous time, namely, 
         [0000]    
       
         
           
             
               Dec 
               i 
             
             = 
             
               
                 
                   
                     L 
                     
                       i 
                       - 
                       1 
                     
                   
                   - 
                   
                     L 
                     i 
                   
                 
                 
                   L 
                   
                     i 
                     - 
                     1 
                   
                 
               
               . 
             
           
         
       
     
         [0059]    Likewise, at the rising stage, the rising extent Inc i  may be expressed as an absolute value of the increment between the light intensity L i  at the current time and the light intensity L i−1  at the previous time, namely, 
         [0000]      Inc i   =L   k+1   −L   k . 
         [0060]    The rising extent Inc k  may also be expressed as a ratio of the increment between the light intensity L i  at the current time and the light intensity L i−1  at the previous time, to the light intensity at the previous time, namely, 
         [0000]    
       
         
           
             
               Inc 
               k 
             
             = 
             
               
                 
                   
                     L 
                     
                       k 
                       + 
                       1 
                     
                   
                   - 
                   
                     L 
                     k 
                   
                 
                 
                   L 
                   k 
                 
               
               . 
             
           
         
       
     
         [0061]    Preferably, to avoid incorrectly determining a swipe caused by a light jitter as multiple continuous swipes, if two swipe gestures are recognized within the second predetermined period of time, the control operation corresponding to the second recognized swipe gesture is not triggered, that is, a time interval between two swipes is set to be greater than a threshold, and multiple swipes within the time interval are considered as one swipe action. 
         [0062]    The first threshold is a typical decrement of light intensity when the light sensor is blocked by the operation object that generates the swipe gesture; and the second threshold is a typical increment of light intensity when the operation object that generates the swipe gesture leaves after the light sensor is blocked. The first predetermined period of time is a typical value of the time consumed when the user completes the swipe gesture. The second predetermined period of time is a typical value of a time interval between two swipe gestures performed by the user continuously. 
         [0063]    Optionally, being blocked by the operation object includes being fully blocked, partially blocked, or blocked by the shadow of the operation object. 
         [0064]    Preferably, considering that the ambient light condition of the surroundings has an impact on the light change characteristics corresponding to different gesture actions, the first threshold and second threshold of the change rule may be adaptively adjusted according to the ambient light intensity of the surroundings. For example, when the ambient light of the surroundings is intense, the first threshold and second threshold may be increased properly to reduce incorrect determination caused by a light jitter. 
         [0065]    The first threshold, second threshold, first predetermined period of time, and second predetermined period of time may also be obtained from the gesture habit of the user by self-learning, so that the terminal device may actively adapt to the operation habit of the user. For example, before the gesture recognizing function is used, the user is required to complete several swipe gestures within a specified period of time. Output values of the light sensor include a series of light intensity signals. After the specified period of time ends, first thresholds and second thresholds corresponding to all swipe gestures, all durations of the swipe gestures, and the time interval between two swipes are averaged respectively. The corresponding average values are used as the first threshold, second threshold, first predetermined period of time, and second predetermined period of time. 
         [0066]    Optionally, the first predetermined period of time and second predetermined period of time may also be adaptively adjusted according to the gesture operation speed selected by the user on the interface. For example, three operation modes “high, moderate, and low” are provided on the interface for the user to select; each operation mode corresponds to a set of time thresholds; the user determines the used time threshold after selecting a mode according to the operation habit of the user. Generally, the corresponding time threshold is smaller if the selected gesture operation speed is higher. 
       Embodiment 3 
       [0067]    This embodiment, based on Embodiment 1, provides a method for controlling a terminal device by using a non-touch gesture, where the method uses an uplift gesture, a press gesture, or at least one uplift or press gesture to control a terminal device. 
         [0068]    As shown in  FIG. 3A , the uplift gesture refers to a progressive motion of an operation object in a sensing range of a light sensor in a direction away from the light sensor; as shown in  FIG. 4A , the press gesture refers to a progressive motion of an operation object in a sensing range of the light sensor in a direction toward the light sensor, where the operation object includes a hand or an arm of a user, and also includes other objects in the hand of the user which can cause a change of light, for example, a book and a pen. 
         [0069]    The direction away from or toward the light sensor mainly refers to a vertical direction, that is, when the light sensor is located at the front of the terminal screen, the press or uplift gesture refers to an up-down motion along the direction vertical to the terminal screen. The at least one uplift or press gesture may be a combination of continuous uplift and press actions, and the press and uplift gestures may be performed repeatedly for several times. 
         [0070]    Further, to ensure sufficient space for uplifting, preferably, the initial distance from the uplift gesture to the screen is 5 cm, allowing a positive or negative 2-3 cm error. The distance information may be displayed on the screen to prompt the user; meanwhile, the optimal distance range may also be adaptively adjusted according to actual light intensity, for example, when the light is weak, the optimal distance may be reduced properly. To ensure sufficient space for pressing, preferably, the initial distance from the press gesture to the screen is 15 cm, allowing a positive or negative 5 cm error. The distance range information may be displayed on the screen to prompt the user; meanwhile, the optimal distance may also be adaptively adjusted according to actual light intensity, for example, when the light is weak, the optimal distance may be reduced properly. 
         [0071]    This embodiment may be based on one or more light sensors; when there is one light sensor, the change regularities corresponding to the uplift gesture, press gesture, and a combination of at least one uplift gesture and at least one press gesture are respectively as follows. 
         [0072]    As shown in  FIG. 3B , the preset change rule corresponding to the uplift gesture includes light intensity being compliant with a decreasing change in a third predetermined period of time, then remaining unchanged in a first predetermined period of time, then being compliant with a first low-high change, and then remaining unchanged in a second predetermined period of time. 
         [0073]    As shown in  FIG. 3B , the duration between T i−1  and T i  is not longer than the third predetermined period of time; the light intensity of the light sensor received at time T i  is smaller than the light intensity at time T i−1 , and the falling extent is not smaller than the set third threshold Dec — 2; this stage is called a falling edge; between T i  and T k , where T k  is later than T i , and the duration between T k  and T i  is not longer than the first predetermined period of time T — 2, the rising or falling fluctuation extent of the light intensity does not exceed a fourth threshold Dec_Inc — 1; between T k  and T m , the light intensity gradually increases with the uplift of the gesture, where the light intensity L k  at time T k  is reference light intensity; optionally, the ratio of light intensity L j  at time to the reference light intensity may be calculated, and marked as an uplift extent Pr, where T j ∈(T k ,T m ), 
         [0000]    
       
         
           
             
               
                 Pr 
                 j 
               
               = 
               
                 
                   
                     L 
                     j 
                   
                   
                     L 
                     k 
                   
                 
                 &gt; 
                 1 
               
             
             ; 
           
         
       
     
         [0000]    optionally, the difference between light intensity L j  at time T j  and the reference light intensity may be calculated, and marked as an uplift extent Pr, where T j ∈(T k ,T m ), 
         [0000]        Pr   j   =L   i   −L   k &gt;0; 
         [0000]    between T m  and T n , where T n  is later than T m , and the duration between T n  and T m  is not longer than the second predetermined period of time T — 3, the light intensity basically remains unchanged, and the rising or falling fluctuation extent of the light intensity does not exceed the fourth threshold Dec_Inc — 1. 
         [0074]    As shown in  FIG. 4B , the preset change rule corresponding to the press gesture includes light intensity being compliant with a decreasing change in a third predetermined period of time, then remaining unchanged in a first predetermined period of time, then being compliant with a first decreasing change, and then remaining unchanged in a second predetermined period of time. 
         [0075]    Referring to  FIG. 4B , the duration between T i−1  and T i  is not longer than the third predetermined period of time; the light intensity of the light sensor received at time T i  is smaller than the light intensity at time T i−1 , and the falling extent is not smaller than the set third threshold Dec — 2; this stage is called a falling edge; between T i  and T k , where T k  is later than T i , and the duration between T k  and T i  is not longer than the first predetermined period of time T — 2, the rising or falling fluctuation extent of the light intensity does not exceed a fourth threshold Dec_Inc — 1; between T k  and T m , the light intensity gradually decreases with the press of the gesture, where the light intensity L k  at time T k  is reference light intensity; optionally, the ratio of light intensity L j  at time T j  to the reference light intensity may be calculated, and marked as a press extent Pr, where T j ∈(T k ,T m ), 
         [0000]    
       
         
           
             
               
                 Pr 
                 j 
               
               = 
               
                 
                   
                     L 
                     j 
                   
                   
                     L 
                     k 
                   
                 
                 ∈ 
                 
                   ( 
                   
                     0 
                     , 
                     1 
                   
                   ) 
                 
               
             
             ; 
           
         
       
     
         [0000]    optionally, the difference between light intensity L j  at time T j  and the reference light intensity may be calculated, and marked as an uplift extent Pr, where T j ∈(T k ,T m ), 
         [0000]        Pr   j   =L   j   −L   k &lt;0; 
         [0000]    between T m  and T n , where T n  is later than T m , and the duration between T n  and T m  is not longer than the second predetermined period of time T — 3, the light intensity basically remains unchanged, and the rising or falling fluctuation extent of the light intensity does not exceed the fourth threshold Dec_Inc — 1. 
         [0076]    The preset change rule corresponding to at least one uplift gesture and at least one press gesture includes light intensity being compliant with a decreasing change, then remaining unchanged in a first predetermined period of time, then fluctuating between high and low, and then remaining unchanged in a second predetermined period of time. 
         [0077]    If the decreasing fluctuation is first compliant with a first low-high change and then a first decreasing change, the gesture is an uplift-press gesture; if the decreasing fluctuation is first compliant with a first decreasing change and then a first low-high change, the gesture is a press-uplift gesture. 
         [0078]    Similarly to the method for determining the uplift gesture and press gesture, only between T k  and T m , light intensity gradually decreases with the press of the gesture, or gradually increases with the uplift of the gesture. The change fluctuates repeatedly and continuously. Optionally, the adjusting extent Pr may be calculated, and the calculation method is the same as the method for calculating the uplift extent and press extent. 
         [0079]      FIG. 5  shows the light intensity change generated by a combination of continuous actions “press-uplift-press”; the area between T k  and T m  is a valid area for the combination of continuous actions “press-uplift-press”. Light intensity gradually decreases with the press of the gesture when a press action occurs between T k  and T u ; light intensity gradually increases with the uplift of the gesture when an uplift action occurs between T u  and T v ; light intensity gradually decreases again with the press of the gesture when a press action between T v  and T m  occurs again. 
         [0080]    The first predetermined period of time is a typical value of a time interval between time of blocking the light sensor by the operation object that generates the press gesture or the uplift gesture and time of starting pressing or starting uplifting. The second predetermined period of time is a typical value of a duration in which the light sensor is blocked when the operation object that generates the press gesture or the uplift gesture keeps motionless after being pressed or uplifted to some extent. The third predetermined period of time is a typical value of a time interval between detection time of recognizing the press gesture or the uplift gesture and time of blocking the light sensor by the operation object that generates the press gesture or the uplift gesture. The first predetermined period of time of the swipe gesture in Embodiment 2 is shorter than the first predetermined period of time of the press gesture, the uplift gesture, or at least one press gesture and at least one uplift gesture in this embodiment. The third threshold is a typical decrement of light intensity when the light sensor is fully blocked, partially blocked, or shadowed by the operation object that generates the uplift gesture or the press gesture or gestures including at least one uplift gesture and at least one press gesture. The fourth threshold is a typical increment or decrement of light intensity caused by the motionless operation object after the light sensor is blocked by the operation object that generates the uplift gesture or the press gesture or gestures including at least one uplift gesture and at least one press gesture and before starting of uplifting or pressing. 
         [0081]    Optionally, being blocked by the operation object includes being fully blocked, partially blocked, or blocked by the shadow of the operation object. 
         [0082]    Preferably, considering that the ambient light condition of the surroundings has an impact on the light change characteristics corresponding to different gesture actions, the third threshold and fourth threshold of the change rule may be adaptively adjusted according to the ambient light intensity of the surroundings. For example, when the ambient light of the surroundings is intense, the third threshold may be increased properly to reduce incorrect determination caused by a light jitter. Meanwhile, because the fluctuation range of the light intensity value output by the light sensor is large when the light is intense, the fourth threshold may be increased to increase the probability of successfully detecting the press gesture and the uplift gesture. 
         [0083]    The third threshold, fourth threshold, first predetermined period of time, and second predetermined period of time may also be obtained from the gesture habit of the user by self-learning, so that the terminal device may actively adapt to the operation habit of the user. For example, before the gesture recognizing function is used, the user is required to complete several press gestures and uplift gestures within a specified period of time. Output values of the light sensor include a series of light intensity signals. After the specified period of time ends, third thresholds, fourth thresholds, first predetermined periods of time, and second predetermined periods of time respectively corresponding to all press gestures and uplift gestures are averaged respectively. The corresponding average values are used as the third threshold, fourth threshold, first predetermined period of time, and second predetermined period of time. 
         [0084]    Optionally, the first predetermined period of time and second predetermined period of time may also be adapted according to the gesture operation speed selected by the user on the interface, For example, three operation speeds “high, moderate, low” are provided on the interface for the user to select; each mode corresponds to a set of time thresholds; the user determines the used time threshold after selecting a mode according to the operation habit of the user. Generally, the corresponding time threshold is smaller if the selected gesture operation speed is higher. 
       Embodiment 4 
       [0085]    This embodiment, based on embodiments 1 and 2, provides a method for controlling a terminal device by using a non-touch gesture. Further, when the terminal includes multiple light sensors, based on multiple groups of light intensity signals output by the multiple light sensors, the direction of a swipe gesture may be recognized. A right-swipe gesture is a left-to-right swipe of the operation object in the sensing range of the light sensors; a left-swipe gesture includes a right-to-left swipe of the operation object in the sensing range of the light sensors; a down-swipe gesture includes a top-to-down swipe of the operation object in the sensing range of the light sensors; and an up-swipe gesture includes a bottom-to-up swipe of the operation object in the sensing range of the light sensors. The operation object includes a hand or an arm of a user, and also includes other objects in the hand of the user which can cause a change of light, for example, a book and a pen. 
         [0086]    For describing the embodiment better, all directions in this embodiment are relative to the terminal in the common use state. For example, assuming that a terminal device is an ordinary mobile phone having nine physical numeric keys, generally the common use state of the mobile phone is that the side with the display screen is directed to the face of the user when the user holds the mobile phone; in this case, it may be considered that the display screen or earpiece of the mobile phone is located at the “upper part” of the side, the nine numeric keys are located at the “lower part” of the side, the numeric key 1 is located at the “left” of the numeric key 2, and the numeric key 3 is located at the “right” of the numeric key 2. 
         [0087]    Using two light sensors as an example, when two light sensors are used in  FIG. 6  to recognize a left-swipe or right-swipe gesture, preferred placement positions of the two light sensors are positions that maximize a horizontal distance between relative placement positions of the two light sensors, where the horizontal distance refers to a relative distance after the two light sensors are projected to the x-axis. The specific recognizing method is determining the left-swipe or right-swipe direction according to the distribution characteristics of time of detecting the swipe gesture by a first light sensor  601  and a second light sensor  602 . The method includes the following. 
         [0088]    The gesture is recognized as a right-swipe gesture if the first light sensor  601  placed on the left side of the mobile phone detects a swipe gesture at time A and the second light sensor  602  placed on the right side of the mobile phone detects a swipe gesture at time B, where time B is later than time A, and the time difference between time A and time B is not greater than the second predetermined period of time. 
         [0089]    Otherwise, the gesture is recognized as a left-swipe gesture if the second light sensor  602  placed on the right side of the mobile phone detects a swipe gesture at time A and the first light sensor  601  placed on the left side of the mobile phone detects a swipe gesture at time B, where time B is later than time A, and the time difference between time A and time B is not greater than the second predetermined period of time. 
         [0090]    Using two light sensors as an example, when two light sensors are used in  FIG. 7  to recognize an up-swipe or down-swipe gesture, preferred placement positions of the two light sensors are positions that maximize a vertical distance between relative placement positions of the two light sensors, where the vertical distance refers to a relative distance after the two light sensors are projected to the y-axis. The specific recognizing method is determining the up-swipe or down-swipe direction according to the distribution characteristics of time of detecting the swipe gesture by a first light sensor  701  and a second light sensor  702 . The method includes the following. 
         [0091]    The gesture is recognized as a down-swipe gesture if the first light sensor  701  placed on the upper side of the mobile phone detects a swipe gesture at time A and the second light sensor  702  placed on the lower side of the mobile phone detects a swipe gesture at time B, where time B is later than time A, and the time difference between time A and time B is not greater than the second predetermined period of time. 
         [0092]    Otherwise, the gesture is recognized as an up-swipe gesture if the second light sensor  702  placed on the lower side of the mobile phone detects a swipe gesture at time A and the first light sensor  701  placed on the upper side of the mobile phone detects a swipe gesture at time B, where time B is later than time A, and the time difference between time A and time B is not greater than the second predetermined period of time. 
         [0093]    The second predetermined period of time is a typical value of a time interval between first time of recognizing the first swipe gesture corresponding to the multiple light intensity signals output by the first light sensor and second time of recognizing the second swipe gesture corresponding to the multiple light intensity signals output by the second light sensor. 
         [0094]    Optionally, the second predetermined period of time may be adjusted according to sizes of different devices, placement positions of light sensors, and the habit of the user. For example, the second predetermined period of time may be increased properly when the size of the device is larger or when the horizontal or vertical distance between the two light sensors is greater due to the placement positions. Meanwhile, the user may also select different operation speeds; when the operation speed selected by the user is faster, the second predetermined period of time may be decreased properly. 
         [0095]    Optionally, when swipe gestures are recognized respectively according to the light intensity reflected by light intensity signals output by different light sensors, the first predetermined periods of time corresponding to different light sensors may be configured to a same value or different values. 
         [0096]    Further, using three light sensors as an example, when three light sensors are used in  FIG. 8  to recognize a left-swipe or right-swipe or up-swipe or down-swipe gesture, preferred placement positions of the three light sensors are positions that make the vertical distance and horizontal distance between two adjacent light sensors of the three light sensors equal and maximal. The specific recognizing method is determining the left-swipe or right-swipe or up-swipe or down-swipe gesture direction according to the distribution characteristics of time of detecting the swipe gesture by a first light sensor  801 , a second light sensor  802 , and a third light sensor  803 . The method includes the following. 
         [0097]    The swipe gesture is recognized as a right-swipe gesture if the time sequence of recognizing the swipe gesture by the three light sensors is the light sensor  801 , light sensor  802 , and light sensor  803 , and both the time difference of detecting the swipe gesture by the light sensor  801  and light sensor  802 , and the time difference of detecting the swipe gesture by the light sensor  802  and light sensor  803  are smaller than a time threshold T — 6. Likewise, the swipe gesture is recognized as a left-swipe gesture if the time sequence of recognizing the swipe gesture by the three light sensors is the light sensor  803 , light sensor  802 , and light sensor  801 , and both the time difference of detecting the swipe gesture by the light sensor  802  and light sensor  803 , and the time difference of detecting the swipe gesture by the light sensor  801  and light sensor  802  are smaller than the threshold T — 6. 
         [0098]    It is considered that an up-swipe gesture occurs if the time sequence of recognizing the swipe gesture by the three light sensors is the light sensor  802 , light sensor  801 , and light sensor  803 , and both the time difference of detecting the swipe action by the light sensor  802  and light sensor  801 , and the time difference of detecting the swipe action by the light sensor  801  and light sensor  803  are smaller than a threshold T — 7. Likewise, it is considered that a down-swipe gesture occurs if the time sequence of recognizing the swipe gesture by the three light sensors is the light sensor  803 , light sensor  801 , and light sensor  802 , and both the time difference of detecting the swipe action by the light sensor  802  and light sensor  801 , and the time difference of detecting the swipe action by the light sensor  801  and light sensor  803  are smaller than the threshold T — 7. 
         [0099]    The method for recognizing a swipe gesture by using a light intensity signal output by a single light sensor is the same as that in Embodiment 2. 
         [0100]    Optionally, the time thresholds T — 6 and T — 7 may be adjusted according to sizes of different devices, device types, and the habit of the user. For example, if the size of the device is larger, the T — 6 and T 13  7 may be increased properly. If the terminal device is a smart phone with the longitudinal length greater than the transverse length, the T 6 is set to be smaller than the T — 7; if the terminal device is a tablet computer with the longitudinal length smaller than the transverse length, the T — 7 is set to be smaller than the T — 6. Meanwhile, the user may also select different operation speeds; when the operation speed selected by the user is faster, the T — 6 and T — 7 may be decreased properly. 
         [0101]    Further, in this embodiment, multiple light sensors may be configured to improve accuracy of recognizing the press gesture and uplift gesture actions. The press gesture, uplift gesture, and a combination of at least one uplift gesture and at least one press gesture are comprehensively determined according to the light intensity signals output by one or more light sensors. For the explanation about the gestures, reference may be made to Embodiment 3. 
         [0102]    The preset light change rule corresponding to the uplift gesture includes light intensity reflected by light intensity signals output by A light sensors being respectively compliant with a change rule of changing from high to low, and then remaining unchanged in a first predetermined period of time; then light intensity reflected by light intensity signals output by B light sensors being respectively compliant with a first low-high change; and then light intensity reflected by light intensity signals output by at least one of the B light sensors respectively remaining unchanged in a second predetermined period of time; where, N, A, and B are integers greater than 1, A is not greater than N and not smaller than a first threshold, A light sensors are A light sensors among N light sensors, B light sensors are B light sensors among A light sensors, and B is not smaller than a second threshold. 
         [0103]    The preset light change rule corresponding to the press gesture includes light intensity reflected by light intensity signals output by A light sensors being respectively compliant with a change rule of changing from high to low, and then remaining unchanged in a first predetermined period of time; then light intensity reflected by light intensity signals output by B light sensors being respectively compliant with a first decreasing change; and then light intensity reflected by light intensity signals output by at least one of the B light sensors respectively remaining unchanged in a second predetermined period of time; where, N, A, and B are integers greater than 1, A is not greater than N and not smaller than a first threshold, A light sensors are A light sensors among N light sensors, B light sensors are B light sensors among A light sensors, and B is not smaller than a second threshold. 
         [0104]    The preset light change rule corresponding to at least one press gesture and at least one uplift gesture includes light intensity reflected by light intensity signals output by A light sensors being respectively compliant with a change rule of changing from high to low, and then remaining unchanged in a first predetermined period of time; then light intensity reflected by light intensity signals output by B light sensors respectively fluctuating between high and low; and then light intensity reflected by light intensity signals output by at least one of the B light sensors respectively remaining unchanged in a second predetermined period of time; where, N, A, and B are integers greater than 1, A is not greater than N and not smaller than a first threshold, A light sensors are A light sensors among N light sensors, B light sensors are B light sensors among A light sensors, and B is not smaller than a second threshold. 
         [0105]    Optionally, the first threshold is not smaller than N/2, and the second threshold is not smaller than A/2. 
         [0106]    For the explanation about the decreasing change, remaining unchanged in the first predetermined period of time, remaining unchanged in the second predetermined period of time, first low-high change, first decreasing change, and fluctuation between high and low, reference may be made to Embodiment 3. 
         [0107]    Further, based on Embodiment 3, according to the received multiple light intensity signals output by B light sensors, the uplift extent or press extent of the gesture is calculated respectively, and weight sum calculation is performed to obtain a comprehensive uplift extent or press extent. Using the press extent Pr as an example, the formula is: 
         [0000]    
       
         
           
             
               Pr 
               = 
               
                 
                   ∑ 
                   
                     j 
                     = 
                     1 
                   
                   B 
                 
                  
                 
                     
                 
                  
                 
                   
                     k 
                     j 
                   
                   · 
                   
                     Pr 
                     j 
                   
                 
               
             
             , 
             
               0 
               &lt; 
               
                 k 
                 j 
               
               &lt; 
               1 
             
             , 
             
               
                 
                   ∑ 
                   
                     j 
                     = 
                     1 
                   
                   B 
                 
                  
                 
                     
                 
                  
                 
                   k 
                   j 
                 
               
               = 
               1 
             
           
         
       
     
         [0108]    where, Pr j  is a press extent of a jth (j&lt;=B) light sensor, k j  is the corresponding weighting factor, and k j  may be selected according to parameters of each light sensor, such as precision and sensitivity. 
         [0109]    In addition, weighted averaging may be performed for the reference light intensity of B light sensors to obtain the average reference light intensity LBL; then weighted averaging may be performed for the current light intensity of B light sensors to obtain the current average light intensity L avg ; afterward, the press extent Pr is obtained according to the ratio or difference between the average reference light intensity and the current average light intensity. For the explanation about the reference light intensity and current light intensity, reference may be made to Embodiment 3, namely, 
         [0000]    
       
         
           
             
               
                 L 
                 BL 
               
               = 
               
                 
                   ∑ 
                   
                     i 
                     = 
                     1 
                   
                   B 
                 
                  
                 
                     
                 
                  
                 
                   
                     p 
                     i 
                   
                   · 
                   
                     L 
                     BL 
                     i 
                   
                 
               
             
             , 
             
               0 
               &lt; 
               
                 p 
                 i 
               
               &lt; 
               1 
             
             , 
             
               
                 
                   ∑ 
                   
                     j 
                     = 
                     1 
                   
                   B 
                 
                  
                 
                     
                 
                  
                 
                   p 
                   j 
                 
               
               = 
               1 
             
           
         
       
       
         
           
             
               
                 L 
                 avg 
               
               = 
               
                 
                   ∑ 
                   
                     i 
                     = 
                     1 
                   
                   B 
                 
                  
                 
                     
                 
                  
                 
                   
                     q 
                     i 
                   
                   · 
                   
                     L 
                     i 
                   
                 
               
             
             , 
             
               0 
               &lt; 
               
                 q 
                 i 
               
               &lt; 
               1 
             
             , 
             
               
                 
                   ∑ 
                   
                     j 
                     = 
                     1 
                   
                   B 
                 
                  
                 
                     
                 
                  
                 
                   q 
                   j 
                 
               
               = 
               1 
             
           
         
       
       
         
           
             Pr 
             = 
             
               
                 L 
                 avg 
               
               
                 L 
                 BL 
               
             
           
         
       
       
         
           or 
         
       
       
         
           
             Pr 
             = 
             
               
                 L 
                 avg 
               
               - 
               
                 L 
                 BL 
               
             
           
         
       
     
         [0000]    where, L BL   i  is the reference light intensity of an ith (i&lt;=B) light sensor, L i  is the current light intensity of the i th  (i&lt;=B) light sensor, and p i  and q j  are corresponding weighting factors. The weight factors may be selected according to parameters of each light sensor, such as precision and sensitivity. 
       Embodiment 5 
       [0110]    This embodiment, based on the above embodiments, provides a method for controlling a terminal device by using a non-touch gesture; further, when executing a control operation corresponding to a recognized non-touch gesture, for a terminal application, the method includes a mapping of specific control operations to recognized non-touch gestures in different terminal applications. The mapping of a gesture action may be changed according to different terminal applications. For example,  FIG. 9A  lists a preferred mapping of control operations to the swipe gesture, press gesture, and uplift gesture in four application scenarios, namely, e-books, picture browsing, music playing, and video playing.  FIG. 9B  shows a preferred mapping of up-down-left-right swipe gesture actions in application scenarios of picture browsing, music playing, video playing, and Web page browsing. The mapping of gesture actions may be preset in application software, and may also be defined by the user and adjusted according to the user&#39;s preference. 
         [0111]    Further, the press extent corresponding to the press gesture may be used to adjust the zoom-out ratio of picture browsing in real time, or adjust the volume decrease ratio during musing playing. For example, when the user uses a press gesture in the picture browsing process and the press extent Pr=0.5 (ratio), the displayed picture size is zoomed out to 0.5 times the original picture size. Generally, the Pr in the press gesture process is a value that decreases slowly over the time, and the animation effect of gradual zooming out may be reached by controlling the picture display size through the Pr. 
         [0112]    Likewise, the uplift extent corresponding to the uplift gesture may be used to adjust the zoom-in ratio of picture browsing in real time, and adjust the volume increase ratio during music playing. For example, when the user uses an uplift gesture in the picture browsing process and the uplift extent Lr=2, the displayed picture size is zoomed in to twice the original picture size. Generally, the Lr in the uplift gesture process is a value that increases slowly over the time, and the animation effect of gradual zooming in may be reached by controlling the picture display size through the Lr. 
         [0113]    The combination of continuous actions of press gestures and uplift gestures may be used to trigger continuous picture zooming or volume adjusting operations, and help the user to adjust a picture to a proper size through repetitive fine adjustment, or adjust the volume to a proper value. For example, if the user completes the “press-uplift-press” gesture, and the corresponding adjusting extent Ar is “0.5-0.7-0.6” (ratio), the displayed picture size is first zoomed out to 0.5 times the original picture size, then zoomed in to 0.7 times, then zoomed out to 0.6 times, forming a continuous zooming animation effect. 
         [0114]    It should be noted that a person skilled in the art may recognize multiple non-touch gestures in the above embodiment simultaneously during the specific implementation, for example, recognize not only the swipe but also the uplift and press; the specific solution for simultaneously implementing the above functions is a technology known by a person skilled in the art, and is not further described herein. 
       Embodiment 6 
       [0115]    This embodiment, based on the above embodiments, discloses an apparatus for controlling a terminal device by using a non-touch gesture, where the apparatus is applicable to a terminal device including one or more light sensors. As shown in  FIG. 10 , the apparatus  100  includes a receiving unit  101  configured to receive multiple light intensity signals that are output by the light sensor according to a light intensity change in a period of time and reflect the light intensity change, where the light intensity change is generated by the non-touch gesture; a gesture recognizing unit  102  configured to determine whether a change rule of the multiple light intensity signals received by the receiving unit is compliant with a preset change rule corresponding to the non-touch gesture, and if compliant, recognize the non-touch gesture corresponding to the multiple light intensity signals; and an executing unit  103  configured to execute a control operation corresponding to the non-touch gesture recognized by the gesture recognizing unit, for a terminal application. 
         [0116]    When the terminal device includes one light sensor, the gesture recognizing unit may be configured to recognize a swipe gesture, an uplift gesture, a press gesture, and at least one uplift gesture and at least one press gesture. 
         [0117]    When the terminal device includes N light sensors, the gesture recognizing unit may be configured to recognize an up-swipe gesture, a down-swipe gesture, a left-swipe gesture, a right-swipe gesture, and at least one uplift gesture and at least one press gesture. 
         [0118]    As shown in  FIG. 11 , when the terminal device includes a motion sensor or an orientation sensor, the apparatus  100  further includes a mobile phone state determining unit  111  configured to receive a signal value output by the motion sensor or the orientation sensor, determine whether a mobile phone is in a relatively stable state, and if not, not trigger the step of determining whether the change rule of the output multiple light intensity signals is compliant with the preset change rule corresponding to the non-touch gesture, where the step is executed by the gesture recognizing unit. 
         [0119]    Optionally, the apparatus further includes an uplift extent obtaining unit  112  configured to obtain an uplift extent of the uplift gesture; and a press extent obtaining unit  113  configured to obtain a press extent of the press gesture. 
         [0120]    Optionally, the gesture recognizing unit  102  includes a real-time gesture recognizing subunit  114  configured to, every time when the receiving unit receives one of the light intensity signals output by the light sensor, determine, according to one or more of the light intensity signals output by the light sensor which are received by the receiving unit last time or multiple times, whether the change rule of the output multiple light intensity signals is compliant with the preset change rule corresponding to the non-touch gesture. 
         [0121]    Optionally, the executing unit  103  includes a swipe gesture executing subunit  115  configured to execute a control operation of up page flipping or dragging, down page flipping or dragging, left page flipping or dragging, or right page flipping or dragging respectively corresponding to the up-swipe gesture, or the down-swipe gesture, or the left-swipe gesture, or the right-swipe gesture, for the picture or e-book application; an uplift or press gesture executing subunit  116  configured to execute a zoom operation corresponding to the press gesture and/or the uplift gesture, for the picture application or the e-book application; a first zoom executing subunit  117  configured to execute, according to the uplift extent of the uplift gesture which is obtained by the uplift extent obtaining unit, a zoom operation corresponding to the uplift gesture, for the picture application or the e-book application, where a zoom ratio is determined according to the uplift extent obtained by the uplift extent obtaining unit and when the zoom operation is executed; and a second zoom executing subunit  118  configured to execute, according to the press extent of the press gesture which is obtained by the press extent obtaining unit, a zoom operation corresponding to the press gesture, for the picture application or the e-book application, where a zoom ratio is determined according to the press extent obtained by the press extent obtaining unit and when the zoom operation is executed. 
         [0122]    It should be noted that the division of units in the apparatus in this embodiment is logical division of units and does not indicate that there are physical units corresponding to those units on a one-to-one basis in an actual product. For specific function implementations of the units, reference may be made to the solutions in the foregoing embodiments, and the methods for detecting the specific gesture, based on preset regularities, are also applicable to this embodiment. 
       Embodiment 7 
       [0123]    Based on the above embodiments, this embodiment discloses a terminal device  120 , as shown in  FIG. 12 , including a processor  121 , a memory  122 , and a light sensor  123 , where the light sensor  123  is configured to output multiple light intensity signals reflecting a light intensity change, and one or more light sensors may be included; the memory  122  is configured to store an application program used in the method for controlling a terminal device by using a non-touch gesture in the above embodiments; the processor is configured to read the program in the memory, and execute the following steps: receiving multiple light intensity signals that are output by the light sensor according to a light intensity change in a period of time and reflect the light intensity change, where the light intensity change is generated by the non-touch gesture; determining whether a change rule of the output multiple light intensity signals is compliant with a preset change rule corresponding to the non-touch gesture, and if compliant, recognizing the non-touch gesture corresponding to the multiple light intensity signals; and executing a control operation corresponding to the recognized non-touch gesture, for a terminal application. 
         [0124]    Further, the terminal device may include a motion sensor  125  or an orientation sensor  124 ; a central processing unit (CPU) executes the following step while executing the application program stored in the memory: determining, according to the motion sensor  125  or the orientation sensor  124 , whether a mobile phone is in a relatively stable state, and if not, not triggering the step of determining, by the gesture recognizing unit, whether the change rule of the output multiple light intensity signals is compliant with the preset change rule corresponding to the non-touch gesture; or if yes, triggering the step. 
         [0125]    In this embodiment, when the application program stored in the memory is executed by the CPU, the application program can not only execute the processing steps described in this embodiment, but also complete the step of recognizing various non-touch gestures in the foregoing embodiments and other processing steps (such as obtaining the press extent), which are not described in detail herein again. Meanwhile, how to perform programming based on the solutions provided by the embodiments is a technology known by a person skilled in the art, which is also not described in detail herein again. 
         [0126]    Through the description of the foregoing embodiments, a person skilled in the art may clearly understand that the present invention may be implemented by hardware or by firmware or a combination thereof When the present invention is implemented by software, the above functions may be stored in a computer readable medium or serve as one or multiple instructions or codes on the computer readable medium for transmission. The computer readable medium includes a computer storage medium. The storage medium may be any available medium that the computer can access. For example, the computer readable medium may include but is not limited to a random-access memory (RAM), a read-only memory (ROM), an electric erasable programmable read-only memory (EEPROM), an optical disc, or other optical disc storage and magnetic disk storage media or other magnetic storage devices, or any other computer accessible medium that can be used to carry or store desired program codes having instructions or data structure forms. 
         [0127]    To conclude, the above descriptions are merely exemplary embodiments of the present invention, but not intended to limit the protection scope of the present invention.