The content of the invention
It is contemplated that solve at least some of the technical problems in related technologies.
For this reason, first purpose of the present invention is to propose a kind of image-pickup method, to realize in human action and standard
During standby action matching, Image Acquisition is proceeded by, it is possible thereby to the shooting control of user's inadvertent free electronic equipment is avoided, so that
Cause camera by mistake gather image situation, alternatively, can to avoid camera in the case of misalignment user just progress image
Collection, so as to cause the situation of the invalid image of typing, can ensure the validity and accuracy of subsequent image acquisition.
Second object of the present invention is to propose a kind of image collecting device.
Third object of the present invention is to propose a kind of electronic equipment.
Fourth object of the present invention is to propose a kind of non-transitorycomputer readable storage medium.
In order to achieve the above object, first aspect present invention embodiment proposes a kind of image-pickup method, including:
Prepare interface, show warming-up exercise, and gather preparation image;
Identify the human action in the preparation image;
Judge whether the human action in the preparation image matches with the warming-up exercise;
If the human action prepared in image is matched with the warming-up exercise, Image Acquisition is proceeded by.
Alternatively, the first possible implementation as first aspect, the method further include:
If the human action prepared in image is mismatched with the warming-up exercise, preparation image is resurveyed.
Alternatively, second of possible implementation as first aspect, it is described to proceed by Image Acquisition, including:
It is used to indicate ready prompt message in the preparation interface display;
The preparation interface is exited, and shows shooting interface;
At the shooting interface, previously selected audio is commenced play out, and gather in the audio process is played and respectively regard
Frequency image frame.
Alternatively, the third possible implementation as first aspect, it is described at the shooting interface, commence play out
Previously selected audio, and after each video pictures frame is gathered in playing the audio process, further include:
When the audio is played to each timing node, corresponding standard operation is shown, and identify and the time
Human action in the video pictures frame of node synchronous acquisition;
According to the difference degree between the standard operation of same timing node and the human action, the people is generated
The action evaluation information of body action;
According to the action evaluation information of the audio, each video pictures frame and each human action, target video is generated.
Alternatively, the 4th kind of possible implementation as first aspect, the identification people prepared in image
Body acts, including:
Identify each joint of human body in the preparation image;
Two joint adjacent in each joint of human body is connected, obtains the line between adjacent two joint;
According to the actual angle between the line between adjacent two joint and preset reference direction, human action is determined.
Alternatively, the 5th kind of possible implementation as first aspect, it is described to judge the people prepared in image
Whether body action matches with the warming-up exercise, including:
Determine when performing the warming-up exercise, the mark between line and the reference direction between each adjacent two joint
Quasi- angle;
For the line between the adjacent two joint of each, the more corresponding standard angle and the actual angle it
Between difference;
If the difference that the line between the adjacent two joint of each calculates in error range, determines the preparation figure
Whether the human action as in matches with the warming-up exercise;
To be not in if there are the difference that the line between at least one adjacent two joint calculates in error range, determine institute
The human action prepared in image is stated to mismatch with the warming-up exercise.
Alternatively, the 6th kind of possible implementation as first aspect, described to prepare interface, displaying prepares dynamic
Make, and gather preparation image, further include:
At the preparation interface, translucent masking-out is shown, wherein, the masking-out has the concern area of hollow out, the concern
Displaying is useful for the image for illustrating the warming-up exercise in area;
Camera is called, to gather the preparation image.
The image-pickup method of the embodiment of the present invention is accurate by before electronic equipment carries out Image Acquisition, being introduced into advance
Stage.Specifically, prepare interface, show warming-up exercise, and gather preparation image;Identification prepares the human action in image;
Whether the human action for judging to prepare in image matches with warming-up exercise;Human action and warming-up exercise in image is prepared
Timing, proceeds by Image Acquisition.In the present embodiment, by when human action is matched with warming-up exercise, proceeding by image
Collection, it is possible thereby to the shooting control of user's inadvertent free electronic equipment be avoided, so as to cause camera to miss the feelings for gathering image
Condition, alternatively, can to avoid camera in the case of misalignment user with regard to carry out Image Acquisition, so as to cause the invalid figure of typing
The situation of picture, can ensure the validity and accuracy of subsequent image acquisition.In addition, the image-pickup method can be applied to electricity
In sub- equipment, the applicability of this method is effectively lifted, it is existing since somatic sensation television game is applied to fixed equipment for solving, it is portable
Property is poor.In addition, when the shooting control in the application program of user's inadvertent free somatic sensation television game, camera will be caused to gather by mistake
Image, alternatively, when subscriber station is in the region of camera misalignment, causes the effective image of camera collection, so as to cause to take the photograph
As the technical problem that the validity and accuracy of head collection image are poor.
In order to achieve the above object, second aspect of the present invention embodiment proposes a kind of image collecting device, including:
Display module, for preparing interface, shows warming-up exercise, and gather preparation image;
Identification module, for identifying the human action in the preparation image;
Judgment module, for judging whether the human action in the preparation image matches with the warming-up exercise;
Acquisition module, when being matched for the human action in the preparation image with the warming-up exercise, proceeds by
Image Acquisition.
Alternatively, the first possible implementation as second aspect, the acquisition module, is additionally operable to:
When human action in the preparation image is mismatched with the warming-up exercise, preparation image is resurveyed.
Alternatively, second of possible implementation as second aspect, the acquisition module, is specifically used for:
It is used to indicate ready prompt message in the preparation interface display;
The preparation interface is exited, and shows shooting interface;
At the shooting interface, previously selected audio is commenced play out, and gather in the audio process is played and respectively regard
Frequency image frame.
Alternatively, the third possible implementation as second aspect, described device further include:
Show generation module, at the shooting interface, commencing play out previously selected audio, and play the sound
After each video pictures frame is gathered during frequency, when the audio is played to each timing node, corresponding standard is shown
Action, and identify the human action in the video pictures frame with the timing node synchronous acquisition;According to same timing node
Difference degree between the standard operation and the human action, generates the action evaluation information of the human action;According to
The action evaluation information of the audio, each video pictures frame and each human action, generates target video.
Alternatively, the 4th kind of possible implementation as second aspect, the identification module, is specifically used for:
Identify each joint of human body in the preparation image;
Two joint adjacent in each joint of human body is connected, obtains the line between adjacent two joint;
According to the actual angle between the line between adjacent two joint and preset reference direction, human action is determined.
Alternatively, the 5th kind of possible implementation as second aspect, the judgment module, is specifically used for:
Determine when performing the warming-up exercise, the mark between line and the reference direction between each adjacent two joint
Quasi- angle;
For the line between the adjacent two joint of each, the more corresponding standard angle and the actual angle it
Between difference;
If the difference that the line between the adjacent two joint of each calculates in error range, determines the preparation figure
Whether the human action as in matches with the warming-up exercise;
To be not in if there are the difference that the line between at least one adjacent two joint calculates in error range, determine institute
The human action prepared in image is stated to mismatch with the warming-up exercise.
Alternatively, the 6th kind of possible implementation as second aspect, the display module, is specifically used for:
At the preparation interface, translucent masking-out is shown, wherein, the masking-out has the concern area of hollow out, the concern
Displaying is useful for the image for illustrating the warming-up exercise in area;
Camera is called, to gather the preparation image.
The image collecting device of the embodiment of the present invention is accurate by before electronic equipment carries out Image Acquisition, being introduced into advance
Stage.Specifically, prepare interface, show warming-up exercise, and gather preparation image;Identification prepares the human action in image;
Whether the human action for judging to prepare in image matches with warming-up exercise;Human action and warming-up exercise in image is prepared
Timing, proceeds by Image Acquisition.In the present embodiment, by when human action is matched with warming-up exercise, proceeding by image
Collection, it is possible thereby to the shooting control of user's inadvertent free electronic equipment be avoided, so as to cause camera to miss the feelings for gathering image
Condition, alternatively, can to avoid camera in the case of misalignment user with regard to carry out Image Acquisition, so as to cause the invalid figure of typing
The situation of picture, can ensure the validity and accuracy of subsequent image acquisition.In addition, the image-pickup method can be applied to electricity
In sub- equipment, the applicability of this method is effectively lifted, it is existing since somatic sensation television game is applied to fixed equipment for solving, it is portable
Property is poor.In addition, when the shooting control in the application program of user's inadvertent free somatic sensation television game, camera will be caused to gather by mistake
Image, alternatively, when subscriber station is in the region of camera misalignment, causes the effective image of camera collection, so as to cause to take the photograph
As the technical problem that the validity and accuracy of head collection image are poor.
In order to achieve the above object, third aspect present invention embodiment proposes a kind of electronic equipment, including:Housing, processor,
Memory, circuit board and power circuit, wherein, circuit board is placed in the interior volume that housing surrounds, and processor and memory are set
Put on circuit boards;Power circuit, for each circuit or the device power supply for above-mentioned electronic equipment;Memory can for storage
Executive program code;The executable program code that processor is stored by reading in memory is run and executable program code
Corresponding program, for performing the image-pickup method described in first aspect present invention embodiment.
In order to achieve the above object, fourth aspect present invention embodiment proposes non-transitorycomputer readable storage medium, its
On be stored with computer program, it is characterised in that realized when the program is executed by processor such as first aspect present invention embodiment
The image-pickup method.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description
Obtain substantially, or recognized by the practice of the present invention.
Embodiment
The embodiment of the present invention is described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end
Same or similar label represents same or similar element or has the function of same or like element.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
For existing since somatic sensation television game is applied in fixed equipment, portability is poor.In addition, work as user's inadvertent free body
Feel game application program in shooting control when, will cause camera by mistake collection image, alternatively, when subscriber station in camera not
During the region of alignment, cause the effective image of camera collection, so as to cause the validity and accuracy of camera collection image
Poor technical problem, in the embodiment of the present invention, by before electronic equipment carries out Image Acquisition, being introduced into the preparation stage in advance.
Specifically, prepare interface, show warming-up exercise, and gather preparation image;Identification prepares the human action in image;Judge accurate
Whether the human action in standby image matches with warming-up exercise;When the human action in preparing image is matched with warming-up exercise,
Proceed by Image Acquisition.In the present embodiment, by when human action is matched with warming-up exercise, proceeding by Image Acquisition,
It is possible thereby to the shooting control of user's inadvertent free electronic equipment is avoided, so that cause camera to miss the situation for gathering image, or
Person, can to avoid camera in the case of misalignment user with regard to carry out Image Acquisition, so as to cause the invalid image of typing
Situation, can ensure the validity and accuracy of subsequent image acquisition.Set in addition, the image-pickup method can be applied to electronics
In standby, the applicability of this method is effectively lifted.
Below with reference to the accompanying drawings the image-pickup method, device and electronic equipment of the embodiment of the present invention are described.
The flow diagram for the first image-pickup method that Fig. 1 is provided by the embodiment of the present invention.The Image Acquisition side
Method can be applied in electronic equipment, wherein, electronic equipment is, for example, PC (Personal Computer, PC), high in the clouds
Equipment or mobile equipment, mobile equipment such as smart mobile phone, or tablet computer etc..
As shown in Figure 1, the image-pickup method comprises the following steps:
Step 101, prepare interface, show warming-up exercise, and gather preparation image.
In order to avoid the shooting control of user's inadvertent free electronic equipment, so as to cause camera to miss the feelings for gathering image
Condition, alternatively, in order to avoid camera in the case of misalignment user with regard to carry out Image Acquisition, so as to cause the invalid figure of typing
The situation of picture, in the embodiment of the present invention, before electronic equipment carries out Image Acquisition, can be introduced into the preparation stage in advance.
Specifically, interface can prepared, is showing warming-up exercise, which can be by the plug-in of electronic equipment
Pre-set, warming-up exercise for example can be the action that both hands put down act, or be other, this is not restricted.Prepare in displaying
While action, the camera of electronic equipment can gather preparation image, wherein, prepare the human body made in image comprising user
Action.
As a kind of possible implementation, warming-up exercise can be shown in the arbitrary region for preparing interface, which moves
Work can be fixed in preset time period, alternatively, the warming-up exercise can be moved along desired guiding trajectory, this is not restricted.
Wherein, desired guiding trajectory can be that the plug-in of electronic equipment is pre-set.
As alternatively possible implementation, while checking content on electronic equipment screen in order not to influence user,
User can watch warming-up exercise again, in the present embodiment, can prepare interface, show translucent masking-out, wherein, masking-out, which has, engraves
Empty concern area, pays close attention to the image that displaying in area is useful for signal warming-up exercise, the i.e. signal in the displaying warming-up exercise of concern area
Figure.Alternatively, warming-up exercise can be shown in the form of barrage preparing interface, this is not restricted.
Step 102, identification prepares the human action in image.
As a kind of possible implementation, the camera for preparing image for gathering can be that can gather user's depth
The camera of information, by the depth information of acquisition, can identify the human action prepared in image.For example, the camera
Can be depth camera (Red-Green-Blue Depth, RGBD), imaging while, which can obtain, prepares human body in image
Depth information so that according to depth information can identify prepare image in human action.Further, it is also possible to pass through structure light
Or TOF camera lenses carry out the acquisition of human action depth information, so as to can identify the people prepared in image according to depth information
Body acts, this is not restricted.
As alternatively possible implementation, each joint for preparing human body in image can be identified, for example, can basis
Face recognition technology identifies the positional information of the face and face that prepare in image, then according to limbs in human anatomy
With the proportionate relationship of height, the positional information in each joint of human body can be calculated.Standard can certainly be determined by other algorithms
The positional information in each joint of human body, is not restricted this in standby image.
After each joint is identified, the adjacent two joint in each joint of human body can be connected, obtains the company between adjacent two joint
Line, finally according to the actual angle between the line between adjacent two joint and preset reference direction, determines in video pictures frame
Human action.Wherein, preset reference direction can be horizontal direction or vertical direction.
Step 103, whether the human action for judging to prepare in image matches with warming-up exercise.
In the embodiment of the present invention, whether difference threshold can be more than according to the difference degree between human action and warming-up exercise
Value, judges whether human action matches with warming-up exercise.Specifically, it may be determined that when performing warming-up exercise, each adjacent two close
The standard angle between line and reference direction between section, for the line between the adjacent two joint of each, compares correspondence
Standard angle and actual angle between difference.When the difference that the line between the adjacent two joint of each calculates is by mistake
When in poor scope, it may be determined that the human action prepared in image is matched with warming-up exercise, and when there are at least one adjacent two
When the difference that line between joint calculates is not in error range, it may be determined that prepare the human action and standard in image
Standby action mismatches.
Step 104, if the human action prepared in image is matched with warming-up exercise, Image Acquisition is proceeded by.
Alternatively, when the human action in preparing image is matched with warming-up exercise, the human action that user makes is shown
Difference degree between warming-up exercise is smaller, at this point it is possible to proceed by Image Acquisition.Specifically, user can shoot
Interface preselects audio, and electronic equipment can play the audio according to the operation of user, and open camera at the same time, and collection is each
Video pictures frame.
The image-pickup method of the present embodiment, by before electronic equipment carries out Image Acquisition, being introduced into precise stage in advance.
Specifically, prepare interface, show warming-up exercise, and gather preparation image;Identification prepares the human action in image;Judge accurate
Whether the human action in standby image matches with warming-up exercise;When the human action in preparing image is matched with warming-up exercise,
Proceed by Image Acquisition.In the present embodiment, by when human action is matched with warming-up exercise, proceeding by Image Acquisition,
It is possible thereby to the shooting control of user's inadvertent free electronic equipment is avoided, so that cause camera to miss the situation for gathering image, or
Person, can to avoid camera in the case of misalignment user with regard to carry out Image Acquisition, so as to cause the invalid image of typing
Situation, can ensure the validity and accuracy of subsequent image acquisition.Set in addition, the image-pickup method can be applied to electronics
In standby, effectively lift the applicability of this method, it is existing since somatic sensation television game is applied to fixed equipment for solving, portability compared with
Difference.In addition, when the shooting control in the application program of user's inadvertent free somatic sensation television game, camera will be caused to miss collection figure
Picture, alternatively, when subscriber station is in the region of camera misalignment, causes the effective image of camera collection, so as to cause to image
Head gathers the validity of image and the technical problem that accuracy is poor.
As a kind of possible implementation, referring to Fig. 2, on the basis of embodiment illustrated in fig. 1, proceed by image and adopt
Collection, specifically includes following steps:
Step 201, interface display is being prepared for indicating ready prompt message.
Alternatively, when preparing the human action in image and being matched with warming-up exercise, interface is prepared at this point it is possible to exit,
Hence into shooting interface.Specifically, it can be used to indicate ready prompt message preparing interface display, be, for example,:
Action is correct, into shooting link.
Step 202, exit and prepare interface, and show shooting interface.
Step 203, at shooting interface, previously selected audio is commenced play out, and gather in audio process is played and respectively regard
Frequency image frame.
In the embodiment of the present invention, shooting interface can include shooting control, and the shooting control is directed to when detecting user
During operation, for example, when user clicks on the shooting control, shooting interface can be with automatic Display song selection interface, then user
An audio can be arbitrarily chosen from song selection interface, the audio selected as itself.
After user selectes audio, electronic equipment can play out the audio according to the operation of user, for example, when electricity
Sub- monitoring of equipment to user click on the audio when, electronic equipment can play the audio, while open camera, gather each video
Image frame.
The image-pickup method of the present embodiment, by preparing interface display for indicating ready prompt message,
Exit and prepare interface, and show shooting interface, at shooting interface, commence play out previously selected audio, and playing audio mistake
Each video pictures frame is gathered in journey.In the present embodiment, by preparing interface display for indicating ready prompt message,
Exit and prepare interface, and show shooting interface, it is possible thereby to the shooting control of user's inadvertent free electronic equipment be avoided, so as to lead
Camera is caused to gather the situation of image by mistake, alternatively, can be adopted to avoid camera in the case of misalignment user with regard to carrying out image
Collection, so as to cause the situation of the invalid image of typing, can ensure to gather at shooting interface the validity of each video pictures frame and
Accuracy.
,, should after step 203 on the basis of embodiment illustrated in fig. 2 referring to Fig. 3 as a kind of possible implementation
Image-pickup method can also comprise the following steps:
Step 301, when audio is played to each timing node, corresponding standard operation is shown.
Specifically, when audio is played to each timing node, the timing node can be corresponded in shooting showing interface
Standard operation.
As a kind of possible implementation, can in the schematic diagram of the arbitrary region displaying standard operation at shooting interface,
The schematic diagram of the standard operation can be fixed, alternatively, the schematic diagram of the standard operation can be moved along desired guiding trajectory,
This is not restricted.Wherein, desired guiding trajectory can be that the plug-in of electronic equipment is pre-set.
As alternatively possible implementation, while checking content on electronic equipment screen in order not to influence user,
User can watch standard operation again, in the present embodiment, can show translucent masking-out at shooting interface, wherein, masking-out, which has, engraves
Empty concern area, pays close attention to the image that displaying in area is useful for signal standard operation, i.e., shows showing for standard operation in concern area
It is intended to.Alternatively, corresponding standard operation can be shown in the form of barrage at shooting interface, this is not restricted.
When the schematic diagram of standard operation is moved along desired guiding trajectory, the same of the schematic diagram of showing interface standard operation is being shot
When, the schematic diagram of the standard operation can be controlled to be moved along desired guiding trajectory.
Step 302, identification and the human action in the video pictures frame of timing node synchronous acquisition.
As a kind of possible implementation, the camera for gathering video pictures frame can be that can gather user's depth
The camera of information is spent, by the depth information of acquisition, can identify the human action in video pictures frame.For example, this is taken the photograph
As head can be depth camera, imaging while, can obtain the depth information of human body in video pictures frame, so that according to depth
Degree information can identify the human action in video pictures frame.Further, it is also possible to human body is carried out by structure light or TOF camera lenses
The acquisition of depth information is acted, so as to can identify the human action in video pictures frame according to depth information, this is not limited
System.
As alternatively possible implementation, human body can then be connected with each joint of human body in criterion of identification image
The adjacent two joint in each joint, obtains the line between adjacent two joint, finally according to the line between adjacent two joint and in advance
If the actual angle between reference direction, determines the human action in video pictures frame.
Step 303, moved according to the difference degree between the standard operation and human action of same timing node, generation human body
The action evaluation information of work.
In the embodiment of the present invention, the evaluation information of human action includes human action score value, for indicate human action with
Difference degree between corresponding standard operation, specifically, human action score value are higher, show human action and corresponding standard
Difference degree between action is smaller, and human action score value is lower, shows between human action and corresponding standard operation
Difference degree is bigger.
Specifically, when the human action in video pictures frame and standard operation mismatch, the people that user can be made
The scoring that body acts is set to 0, and when the human body in video pictures frame is moved and matched with standard operation, each phase can be directed to
Line between adjacent two joint, according to corresponding difference and error range, determines the scoring coefficient of line, for example, marking error
Scope is [a, b], and error is Δ, and the scoring coefficient p of line according to formula p=1- [2 Δs/(a-b)], can be calculated, or
Person can calculate the scoring coefficient of line according to other algorithms, this is not restricted., can be with after the scoring coefficient of line is obtained
According to the corresponding score value of scoring coefficient and line of line, the evaluation information of line is generated, for example, the evaluation information of line can be with
Scoring coefficient equal to the line is multiplied by the corresponding score value of line.Finally, can be by by the company between the adjacent two joint of each bar
The evaluation information of line is added, and obtains the evaluation information of human action.
Further, it is corresponding dynamic can also to include the affiliated section of human action score value for the action evaluation information of human action
Draw effect.For example, when human action score value full marks are 100, if the section [90,100] belonging to human action score value, animation effect
Fruit can be " perfect or perfect " and diamond of arranging in pairs or groups flickers, affiliated section [80,90), animation effect can be " very well or
Good " and fresh flower of arranging in pairs or groups flicker.
For example, moved according to the difference degree between the standard operation and human action of timing node A, the human body of generation
Make score value as 94 points, flickered in the animation effect of shooting interface generation for " perfect " and diamond of arranging in pairs or groups.Thus, it is possible to so that
User understand in time the human action that makes their own whether standard, so as to improve the substitution sense of user.
Step 304, according to the action evaluation information of audio, each video pictures frame and each human action, target video is generated.
In the embodiment of the present invention, at the end of the audio at shooting interface plays, it is corresponding that different time node can be obtained
The evaluation information of human action, is then commented according to the action of the audio, each video pictures frame and corresponding human action that obtain
Valency information, generates target video.
Specifically, when the corresponding standard operation of last timing node for shooting showing interface audio, camera exists
Video pictures frame is gathered during the displaying of the standard operation, then the application program in electronic equipment is according to last time
Difference degree between the standard operation and human action of node, generates the action evaluation information of human action.When shooting interface
Audio play at the end of, the evaluation information of the corresponding human action of each timing node can be obtained, then according to the audio,
Each video pictures frame and the action evaluation information of corresponding human action obtained, generates target video.
The image-pickup method of the present embodiment, when showing standard operation, gathers the video pictures frame of human action, can be with
By identifying human body adjacent segment in human body video pictures frame, obtain the line of adjacent segment, calculate adjacent segment line and
Actual angle between preset reference direction, and according to the difference between the actual angle and standard angle, determine human action
Whether matched with standard operation, it is possible thereby to realize the accurate identification of human action.In addition, the action by generating human action
Evaluation information, which can indicate the difference degree between human action and standard operation, can after ultimately producing video
So that user understands in playback and corrects human action, so that when recording video next time, the mark of human action can be lifted
Parasexuality.
In order to realize above-described embodiment, the present invention also proposes a kind of image collecting device.
Fig. 4 is a kind of structure diagram of image collecting device provided in an embodiment of the present invention.
As shown in figure 4, the image collecting device 400 includes:Display module 410, identification module 420, judgment module 430,
And acquisition module 440.Wherein,
Display module 410, for preparing interface, shows warming-up exercise, and gather preparation image.
As a kind of possible implementation, display module 410, specifically for preparing interface, shows translucent masking-out,
Wherein, masking-out has the concern area of hollow out, pays close attention to the image that displaying in area is useful for signal warming-up exercise;Camera is called, with
Collection prepares image.
Identification module 420, for identifying the human action prepared in image.
Judgment module 430, for judging to prepare whether the human action in image matches with warming-up exercise.
Acquisition module 440, for when the human action in preparing image is matched with warming-up exercise, proceeding by image and adopting
Collection.
In the embodiment of the present invention, acquisition module 440, specifically for preparing interface display for indicating ready carry
Show information;Exit and prepare interface, and show shooting interface;At shooting interface, previously selected audio is commenced play out, and playing
Each video pictures frame is gathered in audio process.
Alternatively, acquisition module 440, are additionally operable to when the human action in preparing image and warming-up exercise mismatch, weight
New collection prepares image.
Further, a kind of possible implementation as the embodiment of the present invention, referring to Fig. 5, in embodiment illustrated in fig. 4
On the basis of, which can also include:
Show generation module 450, for shooting interface, commence play out previously selected audio, and playing audio mistake
After each video pictures frame is gathered in journey, when audio is played to each timing node, corresponding standard operation is shown, and know
Not with the human action in the video pictures frame of timing node synchronous acquisition;According to the standard operation and human body of same timing node
Difference degree between action, generates the action evaluation information of human action;Moved according to audio, each video pictures frame and each human body
The action evaluation information of work, generates target video.
As a kind of possible implementation, identification module 420, prepares each of human body in image specifically for identification and closes
Section;Two joint adjacent in each joint of human body is connected, obtains the line between adjacent two joint;According between adjacent two joint
Actual angle between line and preset reference direction, determines human action.
As a kind of possible implementation, judgment module 430, specifically for determining when performing warming-up exercise, each phase
The standard angle between line and reference direction between adjacent two joint;For the line between the adjacent two joint of each, than
Difference between more corresponding standard angle and actual angle;If the difference that the line between the adjacent two joint of each calculates
In error range, whether the human action for determining to prepare in image matches with warming-up exercise;It is if adjacent there are at least one
The difference that line between two joint calculates is not in error range, is determined to prepare the human action in image and is moved with preparing
Mismatch.
It should be noted that the foregoing explanation to image-pickup method embodiment is also applied for the image of the embodiment
Harvester 400, details are not described herein again.
The image collecting device of the present embodiment, by before electronic equipment carries out Image Acquisition, being introduced into precise stage in advance.
Specifically, prepare interface, show warming-up exercise, and gather preparation image;Identification prepares the human action in image;Judge accurate
Whether the human action in standby image matches with warming-up exercise;When the human action in preparing image is matched with warming-up exercise,
Proceed by Image Acquisition.In the present embodiment, by when human action is matched with warming-up exercise, proceeding by Image Acquisition,
It is possible thereby to the shooting control of user's inadvertent free electronic equipment is avoided, so that cause camera to miss the situation for gathering image, or
Person, can to avoid camera in the case of misalignment user with regard to carry out Image Acquisition, so as to cause the invalid image of typing
Situation, can ensure the validity and accuracy of subsequent image acquisition.Set in addition, the image-pickup method can be applied to electronics
In standby, effectively lift the applicability of this method, it is existing since somatic sensation television game is applied to fixed equipment for solving, portability compared with
Difference.In addition, when the shooting control in the application program of user's inadvertent free somatic sensation television game, camera will be caused to miss collection figure
Picture, alternatively, when subscriber station is in the region of camera misalignment, causes the effective image of camera collection, so as to cause to image
Head gathers the validity of image and the technical problem that accuracy is poor.
The embodiment of the present invention also provides a kind of electronic equipment, and electronic equipment includes the device described in foregoing any embodiment.
Fig. 6 is the structure diagram of electronic equipment one embodiment of the present invention, it is possible to achieve is implemented shown in Fig. 1-5 of the present invention
The flow of example, as shown in fig. 6, above-mentioned electronic equipment can include:Housing 41, processor 42, memory 43, circuit board 44 and electricity
Source circuit 45, wherein, circuit board 44 is placed in the interior volume that housing 41 surrounds, and processor 42 and memory 43 are arranged on circuit
On plate 44;Power circuit 45, for each circuit or the device power supply for above-mentioned electronic equipment;Memory 43 is used to store and can hold
Line program code;Processor 42 is run and executable program generation by reading the executable program code stored in memory 43
The corresponding program of code, for performing the image-pickup method described in foregoing any embodiment.
Processor 42 to the specific implementation procedures of above-mentioned steps and processor 42 by run executable program code come
The step of further performing, may refer to the description of Fig. 1-5 illustrated embodiments of the present invention, details are not described herein.
The electronic equipment exists in a variety of forms, includes but not limited to:
(1) mobile communication equipment:The characteristics of this kind equipment is that possess mobile communication function, and to provide speech, data
Communicate as main target.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, feature mobile phone, and it is low
Hold mobile phone etc..
(2) super mobile personal computer equipment:This kind equipment belongs to the category of personal computer, there is calculating and processing work(
Can, generally also possess mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device:This kind equipment can show and play content of multimedia.The kind equipment includes:Audio,
Video player (such as iPod), handheld device, e-book, and intelligent toy and portable car-mounted navigation equipment.
(4) server:The equipment for providing the service of calculating, the composition of server are total including processor, hard disk, memory, system
Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy
Power, stability, reliability, security, scalability, manageability etc. are more demanding.
(5) other have the function of the electronic equipment of data interaction.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, the change or replacement that can readily occur in, all should
It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to scope of the claims.
In order to realize above-described embodiment, the present invention also proposes a kind of non-transitorycomputer readable storage medium, deposits thereon
Contain computer program, it is characterised in that Image Acquisition as in the foregoing embodiment is realized when the program is executed by processor
Method.
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 the spy for combining the embodiment or example description
Point is contained at least one embodiment of the present invention or example.In the present specification, schematic expression of the above terms is not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
Combined in an appropriate manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this area
Art personnel can be tied the different embodiments or example described in this specification and different embodiments or exemplary feature
Close and combine.
In addition, term " first ", " second " are only used for description purpose, and it is not intended that instruction or hint relative importance
Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present invention, " multiple " are meant that at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process or method described otherwise above description in flow chart or herein is construed as, and represents to include
Module, fragment or the portion of the code of the executable instruction of one or more the step of being used for realization custom logic function or process
Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable
Sequence, including according to involved function by it is basic at the same time in the way of or in the opposite order, carry out perform function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction
The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass
Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment
Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring
Connecting portion (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or if necessary with it
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned
In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage
Or firmware is realized.Such as, if realized with hardware with another embodiment, following skill well known in the art can be used
Any one of art or their combination are realized:With the logic gates for realizing logic function to data-signal from
Logic circuit is dissipated, the application-specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile
Journey gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method carries
Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium
In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, can also
That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould
Block can both be realized in the form of hardware, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized in the form of software function module and as independent production marketing or in use, can also be stored in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although have been shown and retouch above
The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention
System, those of ordinary skill in the art can be changed above-described embodiment, change, replace and become within the scope of the invention
Type.