Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Fig. 1 shows the realization flow figure of the method for controlling operation thereof of the earphone that the embodiment of the present invention provides, and details are as follows:
In step S101, open images of gestures by camera collection N, and according to gather N open described images of gestures determination gesture path, wherein, N be greater than 1 integer;
Alternatively, before step S101, described method also comprises: receive user by pre-set button on earphone or existing button in after the information of initiation gesture controlling functions that sends of the combination of a button or multiple button, start the gesture controlling functions of earphone.
Alternatively, describedly open images of gestures by camera collection N and be specially: gather N by camera with predeterminated frequency and open images of gestures, wherein, predeterminated frequency can be 10FPS, N can be 4, in this no limit.
Alternatively, described camera is infrared camera, and the operation also carrying out earphone according to the images of gestures collected also can gather images of gestures in dark surrounds controls.
In step s 102, obtain the operational order corresponding with described gesture path according to the map listing prestored, and perform the described operational order obtained.
Such as, when gesture path be from left to right time, bent for switching to next according to the operational order that the map listing that prestores obtains; When gesture path be from right to left time, the operational order obtained according to the map listing that prestores is for switching to a upper song; When gesture path be from the top down time, the operational order obtained according to the map listing that prestores is for reducing volume; When gesture path be from bottom to top time, the operational order obtained according to the map listing that prestores is for increasing volume; When gesture path be slid clockwise one enclose time, be incoming call answering according to the operational order that the map listing that prestores obtains; When gesture path is when sliding a circle counterclockwise, the operational order according to the map listing acquisition prestored is refusing incoming call; When gesture path is near to time far away, be end current talking according to the operational order that the map listing prestored obtains.
It should be noted that, when terminal device is in different conditions, identical gesture path may correspond to different operational orders.Such as, if terminal device is current be in music state, when gesture path is wave slip, be broadcasting or time-out current audio file according to the operational order that the map listing prestored obtains; If terminal device is current be in talking state, when gesture path is wave slip, be end current talking according to the operational order that the map listing prestored obtains.
Alternatively, after step s 102, described method also comprises: receive user by pre-set button on earphone or existing button in after the information of closedown gesture controlling functions that sends of the combination of a button or multiple button, close the gesture controlling functions of earphone, to reduce the power consumption of earphone.
Fig. 2 shows the specific implementation process flow diagram of the method for controlling operation thereof step S101 of the earphone that the embodiment of the present invention provides, with reference to Fig. 2:
In step s 201, open images of gestures by camera collection N, open described images of gestures according to the N gathered and determine often to open fingertip area corresponding to images of gestures and finger tip center;
In step S202, calculate the standard deviation of the area of N number of described fingertip area, obtain the first standard deviation; Calculate the standard deviation of the distance between N number of described finger tip center and default initial point, obtain the second standard deviation;
In step S203, when described first standard deviation is less than the first preset value and described second standard deviation is more than or equal to the second preset value, according to N open described images of gestures gather time order and function sequence interlock described in finger tip center, obtain gesture path;
In step S204, when described first standard deviation is more than or equal to described first preset value and described second standard deviation is less than described second preset value, the time order and function order of opening described images of gestures collection according to N determines the area change information of described fingertip area, and determines described gesture path according to described area change information.
In embodiments of the present invention, according to the area change degree of N number of fingertip area, can judge whether finger tip moves forward and backward; According to the intensity of variation of the distance of N number of finger tip center and default initial point, can judge whether finger tip moves up and down.Wherein, default initial point can be the geometric center point of images of gestures, in this no limit.
As one embodiment of the present of invention, when the first standard deviation is less than the first preset value and the second standard deviation is more than or equal to the second preset value, judge the direction of motion of finger tip as upwards, downwards, to the left or to the right in any one.Now, according to the N number of finger tip center of time order and function sequence interlock that N opens images of gestures acquisition, gesture path is obtained.When the first standard deviation is more than or equal to the first preset value and the second standard deviation is less than the second preset value, judge that the direction of motion of finger tip is as forward or backward.Now, open according to N the time order and function order that images of gestures obtains, if the area of fingertip area diminishes gradually, then judge that the direction of motion of finger tip is as backward; If the area of fingertip area becomes large gradually, then judge that the direction of motion of finger tip is as forward.
Fig. 3 shows the specific implementation process flow diagram of the method for controlling operation thereof step S101 of the earphone that another embodiment of the present invention provides, with reference to Fig. 3:
In step S301, open images of gestures by camera collection N, open described images of gestures according to the N gathered and determine often to open finger tip center corresponding to images of gestures;
In step s 302, obtain the coordinate figure at N number of finger tip center, according to the N number of described coordinate figure determination gesture path obtained.
, equal 4 for N here, the embodiment of the present invention is described.After camera collection 4 images of gestures, calculate the finger tip center of often opening images of gestures.If the coordinate at 4 finger tip centers in chronological sequence order is respectively (0,1), (0,0), (0 ,-1) and (0,2), then judge that gesture path is as from the top down, the operational order obtained according to the map listing prestored is for reducing volume.If the coordinate at 4 finger tip centers in chronological sequence order is respectively (1,2), (2,1), (1,0) and (0,1), then gesture path is slid clockwise one circle, is incoming call answering according to the operational order that the map listing prestored obtains.
If the finger tip centre coordinate of calculate 4 images of gestures is (0,1.1), (-0.2,0.1), (0.15 ,-1.12) and (0,2.02), then approximate treatment is carried out to the finger tip centre coordinate of 4 images of gestures, obtain the approximate value of the finger tip centre coordinate of 4 images of gestures for (0,1), (0,0), (0 ,-1) and (0,2), judge that gesture path is as from the top down thus, the operational order obtained according to the map listing prestored is for reducing volume.By carrying out approximate treatment to the finger tip centre coordinate of images of gestures, anti-interference and the fault-tolerant ability of the method for controlling operation thereof of the earphone that the embodiment of the present invention provides can be improved.
Alternatively, the map listing that described basis prestores obtains the operational order corresponding with described gesture path, and the described operational order performing acquisition comprises:
Obtain the operational order corresponding with described gesture path according to the map listing prestored, the described operational order obtained is sent to designated terminal equipment, performs described operational order to make described designated terminal equipment.
Alternatively, the described operational order obtained is sent to designated terminal equipment to be specially: by default wireless communication technology, the described operational order obtained is sent to designated terminal equipment.
Such as, when gesture path is wave slip, be broadcasting or time-out current audio file according to the operational order that the map listing prestored obtains.After earphone obtains this operational order, this operational order is sent to the terminal device associated with earphone by bluetooth, terminal device is play or suspends current audio file.
Again such as, when gesture path is when sliding a circle counterclockwise, operational order according to the map listing acquisition prestored is refusing incoming call, after earphone obtains this operational order, this operational order is sent to the terminal device associated with earphone by bluetooth, makes terminal device play rejection current call.
Preferably, describedly open images of gestures by camera collection N, and open described images of gestures determination gesture path according to the N gathered and be specially:
After receiving default phonetic order, open images of gestures by camera collection N, and open described images of gestures determination gesture path according to the N gathered.
As one embodiment of the present of invention, after the default phonetic order receiving user's input, start the gesture controlling functions of earphone.When initiation gesture controlling functions, start camera.
As an alternative embodiment of the invention, after receiving the instruction of user by the initiation gesture controlling functions of the touch pad input on earphone, initiation gesture controlling functions.
As an alternative embodiment of the invention, the instruction of this initiation gesture controlling functions, after receiving the instruction of user by the initiation gesture controlling functions of designated terminal application input, is sent to earphone, makes earphone initiation gesture controlling functions by terminal device.
Should be understood that in embodiments of the present invention, the size of the sequence number of above-mentioned each process does not also mean that the priority of execution sequence, and the execution sequence of each process should be determined with its function and internal logic, and should not form any restriction to the implementation process of the embodiment of the present invention.
The embodiment of the present invention by adding camera in earphone, again by camera collection gesture path, the operational order corresponding with gesture path is obtained according to the map listing prestored, and perform the operational order obtained, make user carry out operation by gesture to earphone thus to control, breach and can only carry out operating the limitation controlled to earphone by the button on earphone or the terminal applies be connected with earphone, improve the dirigibility that earphone operation controls.
Fig. 4 shows the structured flowchart of the operating control device of the earphone that the embodiment of the present invention provides, and this device may be used for the method for controlling operation thereof of the earphone described in service chart 1 to Fig. 3.For convenience of explanation, illustrate only part related to the present embodiment.
With reference to Fig. 4, described device comprises:
Gesture path determining unit 41, for opening images of gestures by camera collection N, and according to gather N open described images of gestures determination gesture path, wherein, N be greater than 1 integer;
Operational order performance element 42, for obtaining the operational order corresponding with described gesture path according to the map listing prestored, and performs the described operational order obtained.
Preferably, described gesture path determining unit 41 comprises:
Subelement 411 is determined at fingertip area and finger tip center, for opening images of gestures by camera collection N, opening described images of gestures determine often to open fingertip area corresponding to images of gestures and finger tip center according to the N gathered;
Standard deviation computation subunit 412, for calculating the standard deviation of the area of N number of described fingertip area, obtains the first standard deviation; Calculate the standard deviation of the distance between N number of described finger tip center and default initial point, obtain the second standard deviation;
First gesture track determination subelement 413, for when described first standard deviation is less than the first preset value and described second standard deviation is more than or equal to the second preset value, according to N open described images of gestures gather time order and function sequence interlock described in finger tip center, obtain gesture path.
Preferably, described gesture path determining unit 41 also comprises:
Second gesture path determination subelement 414, for when described first standard deviation is more than or equal to described first preset value and described second standard deviation is less than described second preset value, the time order and function order of opening described images of gestures collection according to N determines the area change information of described fingertip area, and determines described gesture path according to described area change information.
Alternatively, described gesture path determining unit 41 specifically for:
Open images of gestures by camera collection N, open described images of gestures according to the N gathered and determine often to open finger tip center corresponding to images of gestures;
Obtain the coordinate figure at N number of finger tip center, according to the N number of described coordinate figure determination gesture path obtained.
Preferably, described gesture path determining unit 41 specifically for:
After receiving default phonetic order, open images of gestures by camera collection N, and open described images of gestures determination gesture path according to the N gathered.
The embodiment of the present invention by adding camera in earphone, again by camera collection gesture path, the operational order corresponding with gesture path is obtained according to the map listing prestored, and perform the operational order obtained, make user carry out operation by gesture to earphone thus to control, breach and can only carry out operating the limitation controlled to earphone by the button on earphone or the terminal applies be connected with earphone, improve the dirigibility that earphone operation controls.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the device of foregoing description and the specific works process of unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.