Summary of the invention
The present invention be solve how to improve the precision and success rate of gesture identification, and reduce gesture identification operation time and
The technical issues of power consumption, provides a kind of three-dimensional static gesture identification method and device.
The technical solution adopted by the invention is as follows:
A kind of three-dimensional static gesture identification method, comprising: obtain gesture direct picture;Obtain gesture side image;According to
The gesture direct picture and the gesture side image generate three-dimension gesture model;Dimensionality reduction is carried out to the three-dimension gesture model
Processing;Gesture identification is carried out according to the three-dimension gesture model after dimensionality reduction.
The gesture direct picture is acquired by the first image acquisition units of corresponding target hand front setting, and is passed through
The second image acquisition units moved along the guide rail of corresponding target hand side setting are from multiple and different multiple hands of angle acquisition
Gesture side image.
The guide rail is arc-shaped guide rail, and the plane where the arc-shaped guide rail is perpendicular to where the palm of the target hand
Plane.
The first image acquisition unit acquires the primary gesture direct picture, and second image acquisition units are along institute
Arc-shaped guide rail is stated to move to the multiple gesture side images of second end acquisition from first end or move to first end acquisition from second end
Multiple gesture side images complete the synchronous acquisition of gesture direct picture and gesture side image.
Three-dimension gesture model is generated according to the gesture direct picture and the gesture side image, is specifically included: reference
The constraint relationship of three-dimensional hand skeleton model obtains three-dimension gesture model finger joint parameter according to the gesture direct picture;It calculates
The area of hand in each gesture side image, and the smallest gesture side image of area for choosing hand is as selected hand
Gesture side image;In conjunction with three-dimension gesture model finger joint parameter, three-dimension gesture model is obtained according to the selected gesture side image
Hold the angle parameter of finger joint and the plane of delineation;Refer in conjunction with the three-dimension gesture model finger joint parameter and the three-dimension gesture model end
The angle parameter of section and the plane of delineation generates the three-dimension gesture model.
The three-dimension gesture model finger joint parameter includes the length and root finger joint, middle finger joint, end finger joint of each finger finger joint
With the angle of the plane of delineation.
Dimension-reduction treatment is carried out to the three-dimension gesture model, is specifically included: three-dimension gesture model parameter vector is tieed up from 27
It is down to 12 dimensions.
Gesture identification is carried out according to the three-dimension gesture model after dimensionality reduction, is specifically included: with the three-dimension gesture model after dimensionality reduction
For input, three-dimension gesture model feature vector is obtained with the gesture identification deep learning model pre-established;To the three-dimensional
Gesture model feature vector is quantified, and obtains single gesture discrete features vector, and according to the single gesture discrete features
Vector is trained, and obtains static gesture classifier parameters;Static gesture classifier after training is used for the single hand
Gesture discrete features vector carries out classification judgement, exports gesture identification result.
A kind of three-dimensional static gesture identifying device, comprising: the first image acquisition units, the first image acquisition unit are used
In acquisition gesture direct picture;Second image acquisition units, second image acquisition units are for acquiring gesture side image;
Terminal, the terminal pass through with the first image acquisition unit and second image acquisition units respectively
Communication interface is connected, and the terminal is used to be generated according to the gesture direct picture and the gesture side image three-dimensional
Gesture model, and dimension-reduction treatment is carried out to the three-dimension gesture model, and hand is carried out according to the three-dimension gesture model after dimensionality reduction
Gesture identification.
The communication interface is USB (Universal Serial Bus, universal serial bus) data transmission interface or API
(Application Programming Interface, application programming interface) interface.
Beneficial effects of the present invention:
The present invention generates three-dimension gesture model by obtaining gesture direct picture and gesture side image, then to three
It ties up gesture model and carries out dimension-reduction treatment, and gesture identification is carried out according to the three-dimension gesture model after dimensionality reduction, hand can not only be improved
The precision and success rate of gesture identification, additionally it is possible to reduce operation time and the power consumption of gesture identification.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
As shown in Figure 1, the three-dimensional static gesture identification method of the embodiment of the present invention the following steps are included:
S1 obtains gesture direct picture.
In one embodiment of the invention, as shown in Fig. 2, the first image of corresponding target hand front setting can be passed through
Acquisition unit 1 acquires gesture direct picture.
S2 obtains gesture side image.
In one embodiment of the invention, as shown in Fig. 2, the guide rail 3 along corresponding target hand side setting can be passed through
Second image acquisition units 2 of movement are from multiple and different multiple gesture side images of angle acquisition.Wherein, guide rail 3 is arc
Guide rail, the plane where arc-shaped guide rail is perpendicular to the plane where the palm of target hand.It should be noted that target in Fig. 2
Positional relationship between hand and the first image acquisition units 1, guide rail 3 is only as signal, in a particular embodiment with the first figure
As the plane where the palm of 1 face target hand of acquisition unit one side, guide rail 3 is perpendicular to flat where the palm of target hand
Subject to face.
As shown in figure 3, when the second image acquisition units 2 are moved along guide rail 3, it can be according to preset angle acquisition hand
Gesture side image.N value is the angle number of acquisition, and N is integer and N > 1, it should be understood that in the certain situation of arc-shaped guide rail angle
Under, N value is bigger, and interval angles are smaller, and collected gesture side image is more;N value is smaller, and interval angles are bigger, collects
Gesture side image it is fewer.M value is any acquisition angles number, and M is integer and 1 < M < N.
It in one embodiment of the invention, can a synchronous acquisition gesture direct picture when carrying out gesture identification every time
With gesture side image.Specifically, the first image acquisition units acquire a gesture direct picture, the second image acquisition units edge
Arc-shaped guide rail moves to that second end acquires multiple gesture side images or to move to first end acquisition from second end more from first end
A gesture side image completes the synchronous acquisition of gesture direct picture and gesture side image.Second image acquisition units are completed
After the acquisition of multi-angle gesture side image, stop movement, when carrying out that images of gestures acquires next time, along guide rail to negative side
To movement.As shown in figure 4, the second image acquisition units 2 first time images of gestures moves clockwise when acquiring along guide rail 3,
Second end is moved to from first end, is moved for the second time along 3 counter clockwise direction of guide rail, moves to first end, third from second end
It is secondary to move clockwise along guide rail 3, and so on.
S3 generates three-dimension gesture model according to gesture direct picture and gesture side image.
S4 carries out dimension-reduction treatment to three-dimension gesture model.
Specifically, step S3 includes: the constraint relationship with reference to three-dimensional hand skeleton model, is obtained according to gesture direct picture
Three-dimension gesture model finger joint parameter;The area of hand in each gesture side image is calculated, and the area for choosing hand is the smallest
Gesture side image is as selected gesture side image;In conjunction with three-dimension gesture model finger joint parameter, according to selected gesture side view
As obtaining the angle parameter of three-dimension gesture model end finger joint and the plane of delineation;In conjunction with three-dimension gesture model finger joint parameter and three-dimensional hand
Potential model end finger joint and the angle parameter of the plane of delineation generate three-dimension gesture model.
Wherein, the smallest gesture side image of the area of hand, as most accurate gesture side image are more by acquiring
A gesture side image simultaneously determines most accurate gesture side image, can be improved the accuracy of gesture side image acquisition, from
And improve subsequent gesture identification precision.
In one embodiment of the invention, three-dimension gesture model finger joint parameter includes the length and root of each finger finger joint
Finger joint, middle finger joint, the angle for holding finger joint and the plane of delineation.
Further, hand Segmentation can be carried out to gesture direct picture and gesture side image, obtains normalized hand
Image.
The length and width of each finger finger joint can be obtained according to the collected gesture direct picture of the first image acquisition units
Degree, i.e., each finger are indicated that an angle indicates the angle of root finger joint and the plane of delineation by 2 angles, another angle indicates
The angle of middle finger joint and the plane of delineation, according to the linear restriction between root finger joint, middle finger joint angle and middle finger joint, end finger joint angle
Relation derivation obtains the angle of end finger joint and the plane of delineation, and manpower skeleton pattern is 27 freedom degrees.In addition each finger movement angle
The dynamic constrained between the static constraint and finger movement finger joint of range is spent, three-dimension gesture model parameter vector is down to from 27 dimensions
12 dimensions.Wherein, thumb freedom degree is reduced to 2 by 5, and middle finger freedom degree is reduced to 1 by 4, other three finger freedom degrees are reduced to 2 by 4,
The rotation angle of manpower indicates 3 freedom degrees, so, finally obtained three-dimension gesture model parameter vector is 12 dimensions.
S5 carries out gesture identification according to the three-dimension gesture model after dimensionality reduction.
It specifically, can be input with the three-dimension gesture model after dimensionality reduction, with the gesture identification deep learning pre-established
Model obtains three-dimension gesture model feature vector, wherein gesture identification deep learning model is the three-dimension gesture model of 12 dimensions.Again
Three-dimension gesture model feature vector is quantified, obtains single gesture discrete features vector, and according to the discrete spy of single gesture
Sign vector is trained, and obtains static gesture classifier parameters.Then, the static gesture classifier after training is used for single
Gesture discrete features vector carries out classification judgement, exports gesture identification result.
In one embodiment of the invention, above-mentioned step S3 to S5 can be executed by terminal.
In one particular embodiment of the present invention, as shown in figure 5, three-dimensional static gesture identification method includes following step
It is rapid:
S101, the first image acquisition units acquire gesture direct picture.
S102, the second image acquisition units do one-way movement along guide rail and case set angle acquires the hand of multiple and different angles
Gesture direct picture.
S103, terminal receive the first image acquisition units and the second image acquisition units acquired image.
S104 obtains three-dimension gesture model according to gesture direct picture with reference to the constraint relationship of three-dimensional hand skeleton model
Finger joint parameter.
S105 chooses the smallest gesture side image of area of hand as selected gesture side image.
S106 obtains three-dimension gesture model end according to selected gesture side image in conjunction with three-dimension gesture model finger joint parameter
The angle parameter of finger joint and the plane of delineation.
S107, in conjunction with the angle parameter of three-dimension gesture model finger joint parameter and three-dimension gesture model end finger joint and the plane of delineation
Generate three-dimension gesture model.
Three-dimension gesture model parameter vector is down to 12 dimensions from 27 dimensions by S108.
S109 carries out gesture identification according to the three-dimension gesture model after dimensionality reduction.
In conclusion three-dimensional static gesture identification method according to an embodiment of the present invention, by obtaining gesture direct picture
With gesture side image, and generate three-dimension gesture model, dimension-reduction treatment then carried out to three-dimension gesture model, and according to dimensionality reduction after
Three-dimension gesture model carry out gesture identification, the precision and success rate of gesture identification can not only be improved, additionally it is possible to reduce gesture
The operation time of identification and power consumption.
The three-dimensional static gesture identification method of corresponding above-described embodiment, the present invention also propose a kind of three-dimensional static gesture identification
Device.
As shown in fig. 6, the three-dimensional static gesture identifying device of the embodiment of the present invention, including the first image acquisition units 1,
Two image acquisition units 2 and terminal 4.Wherein, the first image acquisition units 1 are for acquiring gesture direct picture;Second
Image acquisition units 2 are for acquiring gesture side image;Terminal 4 respectively with the first image acquisition units 1 and the second figure
Picture acquisition unit 2 is connected by communication interface, and terminal 4 is used to be generated according to gesture direct picture and gesture side image
Three-dimension gesture model, and dimension-reduction treatment is carried out to three-dimension gesture model, and hand is carried out according to the three-dimension gesture model after dimensionality reduction
Gesture identification.
In one embodiment of the invention, communication interface is USB data transfer interface or api interface.
In one embodiment of the invention, terminal 4 includes master control and the human-computer interaction module being connected with master control,
Human-computer interaction module can be used for being arranged the value of above-mentioned N, check gesture identification result etc..
The more specific embodiment of three-dimensional static gesture identifying device can refer to above-mentioned three-dimensional static gesture identification method
Embodiment, details are not described herein.
Three-dimensional static gesture identifying device according to an embodiment of the present invention is acquiring gesture just by the first image acquisition units
Face image acquires gesture side image by the second image acquisition units, by terminal according to gesture direct picture and
Gesture side image generates three-dimension gesture model, and carries out dimension-reduction treatment to three-dimension gesture model, and according to three after dimensionality reduction
It ties up gesture model and carries out gesture identification, the precision and success rate of gesture identification can not only be improved, additionally it is possible to reduce gesture identification
Operation time and power consumption.
In the description of the present invention, the meaning of " plurality " is two or more, unless otherwise specifically defined.
In the present invention unless specifically defined or limited otherwise, term " installation ", " connected ", " connection ", " fixation " etc.
Term shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or integral;It can be mechanical connect
It connects, is also possible to be electrically connected;It can be directly connected, can also can be in two elements indirectly connected through an intermediary
The interaction relationship of the connection in portion or two elements.It for the ordinary skill in the art, can be according to specific feelings
Condition understands the concrete meaning of above-mentioned term in the present invention.
In the present invention unless specifically defined or limited otherwise, fisrt feature in the second feature " on " or " down " can be with
It is that the first and second features directly contact or the first and second features pass through intermediary mediate contact.Moreover, fisrt feature exists
Second feature " on ", " top " and " above " but fisrt feature be directly above or diagonally above the second feature, or be merely representative of
First feature horizontal height is higher than second feature.Fisrt feature can be under the second feature " below ", " below " and " below "
One feature is directly under or diagonally below the second feature, or is merely representative of first feature horizontal height less than second feature.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
It although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, can be with
A variety of variations, modification, replacement can be carried out to these embodiments without departing from the principles and spirit of the present invention by understanding
And modification, the scope of the present invention is defined by the appended.