Summary of the invention
The object of the present invention is to provide a kind of method and system of realizing the video gesture identification, solve the problem that in the video gesture identification of prior art, occurs erroneous judgement easily, prevent erroneous judgement.
To achieve these goals, the invention provides a kind of method that realizes the video gesture identification, comprise step 1: judge whether the user has the input startup command,, carry out and import the corresponding instruction of startup command, and start timing with the user if having; Step 2: import in the process of the corresponding instruction of startup command with the user in described execution, judge whether the user has the input gesture command,, carry out and import the corresponding instruction of gesture command with the user if having, otherwise, after finishing, timing returns step 1.
Preferably, described step 1 also specifically comprises: receive the gesture motion that the user imports startup command;
According to first corresponding tables between the startup command and instruction, judge in described first corresponding tables, whether to include the corresponding gesture of gesture motion of importing startup command with described user; In described first corresponding tables, include when importing the corresponding gesture of the gesture motion of startup command, carry out and import the corresponding instruction of startup command with the user with described user, and the startup timing.
Preferably, described step 2 specifically comprises: import in the process of the corresponding instruction of startup command with the user in described execution, the gesture motion that the reception user imports gesture command judges whether include the corresponding gesture of gesture motion of importing gesture command with described user in described second corresponding tables according to second corresponding tables between the gesture command and instruction; In described second corresponding tables, include when importing the corresponding gesture of the gesture motion of gesture command, carry out and import the corresponding instruction of gesture command, otherwise after the timing end, return step 1 with the user with described user.
Preferably, import in the process of the corresponding instruction of startup command with the user carrying out, or execution imports in the process of the corresponding instruction of gesture command with the user, show that to the user current interface of current state correspondence is fed back.
Preferably, described startup command and gesture command all obtain by the operation that camera receives the user.
The present invention also provides a kind of system that realizes the video gesture identification, comprises performance element, first judging unit and second judging unit, and described performance element is used to carry out with the user imports the corresponding instruction of startup command, and starts timing; Described judging unit is used to judge whether the user has the input startup command, if having, described performance element is carried out and imported the corresponding instruction of startup command with the user, and starts timing; Described second judging unit is used for importing described execution and user the process of the corresponding instruction of startup command, judge whether the user has the input gesture command, if have, described performance element is carried out and is imported the corresponding instruction of gesture command with the user, otherwise, after timing finishes, return described first judging unit and judge again.
Preferably, described system also comprises receiving element, is used to receive the gesture motion that the user imports startup command, perhaps carries out at described performance element and imports in the process of the corresponding instruction of startup command with the user, receives the gesture motion that the user imports gesture command.
Preferably, described receiving element is a camera.
Preferably, described system also comprises first inspection unit, be used to check first corresponding tables between the startup command and instruction, the inspection that described first judging unit carries out according to described first inspection unit, whether judgement includes the corresponding gesture of gesture motion of importing startup command with described user in described first corresponding tables, in described first corresponding tables, include when importing the corresponding gesture of the gesture motion of startup command with described user, carry out and import the corresponding instruction of startup command, and start timing with the user.
Preferably, described system also comprises second inspection unit, be used to check second corresponding tables between the gesture command and instruction, the inspection that described second judging unit carries out according to described second inspection unit, whether judgement includes in described second corresponding tables is imported the corresponding gesture of the gesture motion of gesture command with described user and includes in described first corresponding tables when importing the corresponding gesture of the gesture motion of gesture command with described user, carry out and import the corresponding instruction of gesture command, judge usefulness otherwise after timing finishes, return described first judging unit with the user.
Compared with prior art, the method and system of realization video gesture identification of the present invention uses new flow process to carry out gesture identification, judge earlier by using startup command, when the gesture motion of user input is consistent with predefined gesture as startup command, just carry out and import the corresponding instruction of startup command, and start timing with the user; Then, import in the process of the corresponding instruction of startup command with the user in execution, judge whether the user has the input gesture command,, carry out and import the corresponding instruction of gesture command with the user if having, otherwise, after timing finishes, return and rejudge the user whether the startup command stage is arranged, promptly, begin the identification of gesture command more earlier by the input startup command, can get rid of the unconscious action of user effectively, prevent erroneous judgement.
By following description also in conjunction with the accompanying drawings, it is more clear that the present invention will become, and these accompanying drawings are used to explain embodiments of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme among the embodiment is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.With reference now to accompanying drawing, describe embodiments of the invention, the similar elements label is represented similar elements in the accompanying drawing.
Please refer to Fig. 1, the process flow diagram for the present invention realizes the method for video gesture identification comprises:
Step 101: judge whether the user has the input startup command,, carry out and import the corresponding instruction of startup command, and start timing with the user if having;
Step 102: import in the process of the corresponding instruction of startup command with the user in described execution, judge whether the user has the input gesture command,, carry out and import the corresponding instruction of gesture command with the user if having, otherwise, after finishing,timing returns step 101.
Concrete, below in conjunction with specific embodiment each step shown in Figure 1 is further described.
In the Gesture Recognition, need gesture and instruction corresponding tables,, carry out corresponding operating according to the instruction of user's gesture correspondence so that system, searches gesture and instruction corresponding tables according to user's gesture.In inventive embodiments, the gesture motion of predefined can be used as " startup command " is formed by following gesture motion combination in any: A. user face forward is in the face of equipment; B. eyes of user is watched equipment attentively; C. user's palm sensing equipment.Like this, set up first corresponding tables between gesture A, B, C and instruction, certainly, the predefined gesture of first corresponding tables is not limited thereto.
Same, also want corresponding second corresponding tables of setting up between the gesture command and instruction, with the corresponding instruction of gesture motion commonly used, so that system is according to user's gesture, search second corresponding tables between the gesture command and instruction, identify user's gesture and carry out corresponding operating according to the instruction of user's gesture correspondence.
Wherein, described startup command and gesture command all obtain by the operation that the camera of installing on the equipment receives the user.
Please refer to Fig. 2, the present invention realizes that a specific embodiment of the method for video gesture identification can comprise the steps:
Step 201: beginning;
Step 202: receive the gesture motion that the user imports startup command;
Step 203: check first corresponding tables between the startup command and instruction;
Step 204: judge whether the gesture motion of the current input startup command of user meets the gesture of the startup command in described first corresponding tables, if, then enterstep 205, otherwise, step 201 returned;
Step 205: carry out and import the corresponding instruction of startup command, and start timing, show the current interface feedback of current state correspondence simultaneously to the user with the user;
Step 206: instep 205 process, judge whether system receives the gesture command that the user imports,, then enterstep 208 if having, otherwise, enterstep 207;
Step 207: when timing finishes, return step 201 again, otherwise, returnstep 206;
Step 208: check second corresponding tables between the gesture command and instruction;
Step 209: in described second corresponding tables, include when importing the corresponding gesture of the gesture motion of gesture command, enterstep 210 with described user, otherwise, returnstep 206;
Step 210: carry out and import the corresponding instruction of gesture command, show the current interface feedback of current state correspondence simultaneously to the user, and pick up counting again with the user;
Step 211: when timing finishes, return step 201 again, otherwise, returnstep 206.
Step 201 tostep 211 couple user makes gesture before camera situation has been described in detail, it is to be noted, method provided by the invention is except this sensor of camera, can also carry out gesture identification by sensors such as touch-screens, at this moment, the step 201 of execution is to 211 similar, difference is, if carry out gesture identification by touch-screen, then the user need import gesture on touch-screen, rather than makes gesture before camera.
Please refer to Fig. 3, the structural drawing for the present invention realizes the system of video gesture identification comprises:
Performance element 301 is used to carry out with the user and imports the corresponding instruction of startup command, and starts timing;
First judging unit 302 is used to judge whether the user has the input startup command, if having, describedperformance element 301 is carried out and imported the corresponding instruction of startup command with the user, and starts timing;
Second judging unit 303, be used for carrying out the process of importing the corresponding instruction of startup command with the user at describedperformance element 301, judge whether the user has the input gesture command, if have, describedperformance element 301 is carried out and is imported the corresponding instruction of gesture command with the user, otherwise, after timing finishes, return describedfirst module 302 and judge.
Tostep 211, system shown in Figure 3 can also comprise in conjunction with said method step 201:
Receivingelement 304 is used to receive the gesture motion that the user imports startup command, perhaps carries out at describedperformance element 301 and imports in the process of the corresponding instruction of startup command with the user, receives the gesture motion that the user imports gesture command.Wherein, described receivingelement 304 is a camera.
First inspection unit 305, be used to check first corresponding tables between the startup command and instruction, the inspection that describedfirst judging unit 302 carries out according to describedfirst inspection unit 305, whether judgement includes the corresponding gesture of gesture motion of importing startup command with described user in described first corresponding tables, in described first corresponding tables, include when importing the corresponding gesture of the gesture motion of startup command with described user, notify describedperformance element 301 to carry out and import the corresponding instruction of startup command, and start timing with the user.
Second inspection unit 306, be used to check second corresponding tables between the gesture command and instruction, the inspection that describedsecond judging unit 303 carries out according to describedsecond inspection unit 306, whether judgement includes in described second corresponding tables is imported the corresponding gesture of the gesture motion of gesture command with described user and includes in described first corresponding tables when importing the corresponding gesture of the gesture motion of gesture command with described user, notify describedperformance element 301 to carry out and import the corresponding instruction of gesture command, judge usefulness otherwise after timing finishes, return described first judging unit with the user.
Display unit 307, be used for importing the corresponding instruction of startup command with the user inperformance element 301 execution, perhaps,performance element 301 is carried out and is imported in the process of the corresponding instruction of gesture command with the user, shows the current interface feedback of current state correspondence simultaneously to the user.
The operation of carrying out to pair above-mentioned each unit ofstep 210 below in conjunction with above-mentioned steps 201 is elaborated: when the user makes gesture motion as startup command before camera, described receiving element 304(is a camera) receive the gesture motion that the user imports startup command, simultaneously, describedfirst inspection unit 305 receives the current gesture motion that the user imports according to receivingelement 304, checks first corresponding tables between the startup command and instruction; The inspection that describedfirst judging unit 302 carries out according to describedfirst inspection unit 305, whether judgement includes the corresponding gesture of gesture motion of importing startup command with described user in described first corresponding tables, if, notify describedperformance element 301 to carry out and import the corresponding instruction of startup command, and start timing with the user; Import in the process of the corresponding instruction of startup command with the user in describedperformance element 301 execution, when the user makes gesture motion as gesture command before camera, described receiving element 304(is a camera) receive the gesture motion that the user imports gesture command, simultaneously, describedsecond inspection unit 306 receives the current gesture motion of user's input according to receivingelement 304, check second corresponding tables between the gesture command and instruction, the inspection that describedsecond judging unit 303 carries out according to describedsecond inspection unit 306, if whether judgement includes the corresponding gesture of gesture motion of importing gesture command with described user in described second corresponding tables, notify describedperformance element 301 to carry out and import the corresponding instruction of gesture command, judge again otherwise after timing finishes, return describedfirst judging unit 302 with the user.
Be appreciated that ground, system provided by the invention accepts the unit except this sensor conduct of camera, can also carry out gesture identification by sensors such as touch-screens, at this moment, the course of work is similar, and difference is, if carry out gesture identification by touch-screen, then the user need import gesture on touch-screen, rather than makes gesture before camera.
In addition, because the various gesture states of gesture all can carry out the interface feedback by display unit in real time, thereby, brought natural, true to nature operating experience to the user.
In sum, the method and system of realization video gesture identification of the present invention uses new flow process to carry out gesture identification, judge earlier by using startup command, when the gesture motion of user input is consistent with predefined gesture as startup command, just carry out and import the corresponding instruction of startup command, and start timing with the user; Then, import in the process of the corresponding instruction of startup command with the user in execution, judge whether the user has the input gesture command,, carry out and import the corresponding instruction of gesture command with the user if having, otherwise, after timing finishes, return and rejudge the user whether the startup command stage is arranged, promptly, begin the identification of gesture command more earlier by the input startup command, can get rid of the unconscious action of user effectively, prevent erroneous judgement.
Above invention has been described in conjunction with most preferred embodiment, but the present invention is not limited to the embodiment of above announcement, and should contain various modification, equivalent combinations of carrying out according to essence of the present invention.