WO2019100755A1 - Video generation method and device, and electronic apparatus - Google Patents

Video generation method and device, and electronic apparatus Download PDF

Info

Publication number
WO2019100755A1
WO2019100755A1 PCT/CN2018/098600 CN2018098600W WO2019100755A1 WO 2019100755 A1 WO2019100755 A1 WO 2019100755A1 CN 2018098600 W CN2018098600 W CN 2018098600W WO 2019100755 A1 WO2019100755 A1 WO 2019100755A1
Authority
WO
WIPO (PCT)
Prior art keywords
standard
action
audio
standard action
schematic diagram
Prior art date
Application number
PCT/CN2018/098600
Other languages
French (fr)
Chinese (zh)
Inventor
袁冰
李震
卞爱娟
王思佳
陈海蕾
徐年强
Original Assignee
乐蜜有限公司
袁冰
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 乐蜜有限公司, 袁冰 filed Critical 乐蜜有限公司
Publication of WO2019100755A1 publication Critical patent/WO2019100755A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/213Input arrangements for video game devices characterised by their sensors, purposes or types comprising photodetecting means, e.g. cameras, photodiodes or infrared cells
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/25Output arrangements for video game devices
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/54Controlling the output signals based on the game progress involving acoustic signals, e.g. for simulating revolutions per minute [RPM] dependent engine sounds in a driving game or reverberation against a virtual wall
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/10Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
    • A63F2300/1087Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals comprising photodetecting means, e.g. a camera
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/30Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/6063Methods for processing data by generating or executing the game program for sound processing
    • A63F2300/6081Methods for processing data by generating or executing the game program for sound processing generating an output signal, e.g. under timing constraints, for spatialization

Definitions

  • the present application relates to the field of mobile terminal technologies, and in particular, to a video generation method, apparatus, and electronic device.
  • Somatosensory dance games through the Internet operating platform, human-computer interaction.
  • the user makes the corresponding body movements according to the prompts of the dancing device according to the somatosensory, so that the user can achieve the fitness function while enjoying the somatosensory interaction experience while dancing.
  • the somatosensory dance game is mainly applied to fixed devices, such as a somatosensory dance machine, a computer, etc., and the portability is poor.
  • the judgment of the user's body movement is determined by determining whether the arrow direction of the user's foot is correct or not, and the manner of dancing is relatively simple.
  • the present application aims to solve at least one of the technical problems in the related art to some extent.
  • the first object of the present application is to provide a video generation method. Since the standard action is a human body action that the user needs to make, the dance action can be effectively enriched compared to the dance mode of the user's foot arrow in the prior art. To enhance the user experience.
  • the prior art somatosensory dance game is mainly applied to fixed devices, such as a somatosensory dance machine, a computer, etc., and the portability is poor.
  • the judgment of the user's body movement is a technical problem by which the direction of the arrow of the user's foot is correct or not, and the manner of dancing is relatively simple.
  • a second object of the present application is to propose a video generating apparatus.
  • a third object of the present application is to propose an electronic device.
  • a fourth object of the present application is to propose a non-transitory computer readable storage medium.
  • a fifth object of the present application is to propose a computer program product.
  • the first aspect of the present application provides a video generating method, including:
  • a target video is generated based on the captured video frame frame and the audio.
  • the displaying, according to the preset advance time, the corresponding standard actions are started before the audio is played to each time node including:
  • the difference between the time node and the advance time is taken as the starting time
  • a schematic diagram of the standard action is displayed, and a schematic diagram of controlling the standard action is moved along a preset trajectory.
  • the method further includes:
  • the schematic diagram of controlling the standard action is moved along a preset trajectory, including:
  • a preset trajectory for displaying a schematic diagram of the standard action Determining, from a plurality of candidate trajectories, a preset trajectory for displaying a schematic diagram of the standard action; the preset trajectory is different from a trajectory displayed by a schematic diagram corresponding to a standard action of an adjacent time node;
  • a schematic diagram of controlling the standard action is performed along the preset trajectory at a preset speed and direction.
  • the method further includes:
  • the method further includes:
  • the method further includes:
  • the method further includes:
  • the motion evaluation information of the human body motion is generated according to the degree of difference between the human body motion and the standard motion.
  • the video generating method of the embodiment of the present application obtains the selected audio and the standard action corresponding to each time node in the audio, and starts to collect the video picture frame when starting to play the audio; according to the preset advance time, the audio is played to Before each time node, start to display the corresponding standard action; identify the human body motion in the video frame frame collected during the display of the standard action; end the display process of the standard action when the human action matches the standard action; At the end of playback, the target video is generated based on the captured video frame and audio.
  • the standard action is a human body action that the user needs to make, compared with the dance mode of the user's foot arrow in the prior art, the dance action can be effectively enriched and the user experience can be improved.
  • the video generation method can be applied to an electronic device, which can effectively improve the applicability of the method.
  • the display process of the standard action is ended, and the number of schematic diagrams of the standard actions displayed in the shooting interface can be reduced, which is convenient for the user to watch, further enhance the user experience, and is used to solve the existing body dance.
  • the game is mainly used on fixed devices, such as somatosensory dance machines, computers, etc., and the portability is poor.
  • the judgment of the user's body movement is a technical problem by which the direction of the arrow of the user's foot is correct or not, and the manner of dancing is relatively simple.
  • the second aspect of the present application provides a video generating apparatus, including:
  • a selection module for acquiring selected audio and standard actions corresponding to each time node in the audio
  • An acquisition module configured to start collecting video frame frames when starting to play the audio
  • a display module configured to start displaying corresponding standard actions before the audio is played to each time node according to a preset advance time
  • An identification module configured to identify a human body motion in a video frame frame collected during the display of the standard action
  • control module configured to end a display process of the standard action when the human body action matches the standard action
  • a generating module configured to generate a target video according to the collected video picture frame and the audio when the audio playing ends.
  • the display module includes:
  • a processing submodule configured, for each time node, a difference between the time node and the advance time as a starting time
  • control submodule configured to display a schematic diagram of the standard action from the start time, and control a schematic diagram of the standard action to move along a preset trajectory.
  • the display module further includes:
  • the stop sub-module is configured to stop displaying the schematic diagram of the standard action if the human body action matching the standard action is not recognized when the schematic diagram of the standard action moves to the end point of the preset track.
  • control submodule is specifically configured to:
  • a preset trajectory for displaying a schematic diagram of the standard action Determining, from a plurality of candidate trajectories, a preset trajectory for displaying a schematic diagram of the standard action; the preset trajectory is different from a trajectory displayed by a schematic diagram corresponding to a standard action of an adjacent time node;
  • a schematic diagram of controlling the standard action is performed along the preset trajectory at a preset speed and direction.
  • control submodule is further configured to:
  • the preset trajectory has a schematic diagram being displayed, according to the number of the schematic diagrams being displayed and the length of the preset trajectory, the schematic diagram of the preset trajectory being displayed and the standard motion are reduced.
  • the size of the schematic is such that the distance between two adjacent schematics in the predetermined trajectory is greater than or equal to a threshold distance.
  • the device further includes:
  • the display playing module is configured to display a countdown interface after the selected audio and the standard action corresponding to each time node in the audio, and start counting down, and when the countdown ends, start playing the audio.
  • the device further includes:
  • a determining module configured to determine, according to the human body motion in the video frame frame collected during the displaying of the standard action, whether the difference between the human motion and the standard motion is greater than a difference threshold, It is determined whether the human body action matches the standard action.
  • the device further includes:
  • the evaluation information generating module is configured to generate motion evaluation information of the human body motion according to a degree of difference between the human body motion and the standard motion after the human body motion is matched with the standard motion.
  • the video generating apparatus of the embodiment of the present application acquires the selected audio and the standard action corresponding to each time node in the audio, and starts to collect the video picture frame when starting to play the audio; according to the preset advance time, the audio is played to Before each time node, start to display the corresponding standard action; identify the human body motion in the video frame frame collected during the display of the standard action; end the display process of the standard action when the human action matches the standard action; At the end of playback, the target video is generated based on the captured video frame and audio.
  • the standard action is a human body action that the user needs to make, compared with the dance mode of the user's foot arrow in the prior art, the dance action can be effectively enriched and the user experience can be improved.
  • the video generation method can be applied to an electronic device, which can effectively improve the applicability of the method.
  • the display process of the standard action is ended, and the number of schematic diagrams of the standard actions displayed in the shooting interface can be reduced, which is convenient for the user to watch, further enhance the user experience, and is used to solve the existing body dance.
  • the game is mainly used on fixed devices, such as somatosensory dance machines, computers, etc., and the portability is poor.
  • the judgment of the user's body movement is a technical problem by which the direction of the arrow of the user's foot is correct or not, and the manner of dancing is relatively simple.
  • an embodiment of the third aspect of the present application provides an electronic device including: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside the space enclosed by the housing, and is processed. And a memory disposed on the circuit board; a power supply circuit for powering each circuit or device of the electronic device; a memory for storing executable program code; and the processor operating by reading executable program code stored in the memory The program corresponding to the executable program code is used to execute the video generating method described in the first aspect of the present application.
  • the fourth aspect of the present application provides a non-transitory computer readable storage medium having stored thereon a computer program, wherein the program is executed by the processor to implement the first aspect of the present application.
  • the fifth aspect of the present application provides a computer program product, where the instructions in the computer program product are executed by a processor, and the video generation method according to the embodiment of the first aspect of the present application is executed. .
  • FIG. 1 is a schematic flowchart diagram of a first image collection method according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a second image collection method according to an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a third image collection method according to an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an image collection device according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of another image capturing apparatus according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of an embodiment of an electronic device according to the present application.
  • the existing somatosensory dance game is mainly applied to fixed devices, such as a somatosensory dance machine, a computer, etc., and the portability is poor.
  • the determination of the user's body motion is to determine whether the direction of the arrow of the user's foot is correct or not, and the manner of dancing is relatively simple.
  • the selected audio and the time nodes in the audio are obtained.
  • Corresponding standard action when starting to play audio, start collecting video picture frames; according to the preset advance time, before the audio is played to each time node, start to display corresponding standard actions; recognition is collected during the display of standard actions
  • the standard action is a human body action that the user needs to make, compared with the dance mode of the user's foot arrow in the prior art, the dance action can be effectively enriched and the user experience can be improved.
  • the video generation method can be applied to an electronic device, which can effectively improve the applicability of the method.
  • the display process of the standard action is ended, and the number of schematic diagrams of the standard actions displayed in the shooting interface can be reduced, which is convenient for the user to watch and further enhance the user experience.
  • the video generation method, apparatus, and electronic device of the embodiments of the present application are described below with reference to the accompanying drawings.
  • the video generation method can be applied to an application of an electronic device, such as a personal computer (PC), a cloud device or a mobile device, a mobile device such as a smart phone, or a tablet computer.
  • PC personal computer
  • cloud device or a mobile device
  • mobile device such as a smart phone
  • tablet computer a tablet computer
  • FIG. 1 is a schematic flowchart diagram of a first video generating method according to an embodiment of the present application.
  • the video generation method includes the following steps:
  • Step 101 Acquire selected audio, and standard actions corresponding to each time node in the audio.
  • an application condition of the audio selection may be set on the application of the electronic device.
  • the trigger condition may be an audio selection control, and the user may trigger the selection of audio through the audio selection control.
  • the song selection interface can be invoked, and then the user can arbitrarily select an audio from the song selection interface as the audio selected by itself.
  • the application can get the audio selected by the user.
  • a shooting control may be set on an application of the electronic device, and when the application detects the user's operation for the shooting control, for example, when the user clicks the shooting control, the application interface
  • the song selection interface can be automatically displayed, and then the user can arbitrarily select an audio from the song selection interface as the audio selected by itself.
  • the application can get the audio selected by the user.
  • the audio in the song selection interface may be pre-imported into a corresponding standard action. Specifically, each time node in the audio has a corresponding standard action. Therefore, after the application obtains the selected audio, the application The program can obtain standard actions corresponding to each time node from the audio.
  • Step 102 When the audio is started to be played, the video frame frame is started to be acquired.
  • the electronic device can play the audio according to the user's operation. For example, when the electronic device detects that the user clicks the audio, the electronic device can play the audio and simultaneously open the audio. The camera captures each video frame.
  • Step 103 Start displaying the corresponding standard action before the audio is played to each time node according to the preset advance time.
  • the audio can be played to each time node.
  • the advance time preset in advance showing the corresponding standard action.
  • the preset advance time can be set by the user according to his own needs, or the preset advance time can be preset by the built-in program of the electronic device, which is not limited. It should be understood that the preset advance time should not be set too long, for example, the preset advance time may be 0.2 s.
  • the time node is compared with the advance time to obtain a difference, and then the difference is used as a starting time, and then a schematic diagram of the standard action can be displayed from the starting time.
  • a schematic diagram of a standard motion may be displayed in any area of the shooting interface.
  • the schematic diagram of the standard motion may be fixed, or the schematic diagram of the standard motion may move along a preset trajectory. limit.
  • the preset track may be preset for the built-in program of the electronic device.
  • the user can watch the standard action.
  • the semi-transparent mask can be displayed on the shooting interface, wherein the mask has In the hollowed out area of interest, the area of interest displays an image showing the standard action, ie a schematic showing the standard actions in the area of interest.
  • the corresponding standard action can be displayed in the form of a barrage on the shooting interface, which is not limited.
  • the schematic diagram of the standard motion moves along the preset trajectory
  • the photographing interface displays the schematic diagram of the standard motion
  • the schematic diagram of the standard motion can be controlled to move along the preset trajectory.
  • Step 104 identifying a human body motion in a video frame frame collected during the presentation of the standard action.
  • the camera for collecting video frame frames may be a camera capable of collecting user depth information, and the acquired depth information may identify human body motions in the video frame.
  • the camera may be a Red-Green-Blue Depth (RGBD), and the depth information of the human body in the video picture frame may be acquired while being imaged, so that the human body motion in the video picture frame can be identified according to the depth information.
  • the body motion depth information can be acquired by the structured light or the TOF lens, so that the human body motion in the video frame frame can be identified according to the depth information, which is not limited.
  • each joint of the human body in the video picture frame can be identified.
  • the face information in the video picture frame and the position information of the human face can be recognized according to the face recognition technology, and then according to the human anatomy.
  • the proportional relationship between the limb and the height can be used to calculate the position information of each joint of the human body.
  • the position information of each joint of the human body in the video picture frame can also be determined by other algorithms, which is not limited.
  • the two joints adjacent to each joint of the human body can be connected to obtain the connection between the adjacent two joints, and finally according to the actual angle between the connection between the adjacent joints and the preset reference direction. Determine the human motion in the video frame.
  • the preset reference direction may be a horizontal direction or a vertical direction.
  • Step 105 If the human body action matches the standard action, the display process of the standard action is ended.
  • the display process of the standard motion is ended. Thereby, the number of standard motion diagrams displayed in the shooting interface can be reduced, which is convenient for the user to watch and enhance the user experience.
  • whether the human motion and the standard motion match can be determined according to whether the difference degree between the human motion and the standard motion is greater than a difference threshold. Specifically, it is possible to determine a standard angle between a line connecting each adjacent two joints and a reference direction when performing a standard action, and compare the corresponding standard angle with the actual line for each adjacent two joints. The difference between the angles. When the difference calculated by the connection between each adjacent two joints is within the error range, it can be determined that the human motion in the video frame is matched with the standard motion, and when there is at least one adjacent two joints When the difference calculated by the connection is not within the error range, it can be determined that the human motion in the video frame does not match the standard motion.
  • the human body action matches the standard action, it indicates that the degree of difference between the human body action and the corresponding standard action made by the user is small.
  • the display process of the standard action may be ended to perform the next time node.
  • the corresponding standard action display may be ended to perform the next time node.
  • Step 106 When the audio playback ends, the target video is generated according to the collected video picture frame and audio.
  • the application program may generate the target video according to all the captured video frame frames and audio.
  • the shooting interface displays a standard action corresponding to the last time node of the audio
  • the camera collects a video frame during the display of the standard action, and if the human action in the video frame matches the standard action, the user may end The presentation process of the standard action, and then the application can generate the target video based on all captured video frame frames and audio.
  • the video generating method of the embodiment obtains the selected audio, and the standard action corresponding to each time node in the audio, and starts to collect the video picture frame when starting to play the audio; according to the preset advance time, the audio is played to each Before a time node, start to display the corresponding standard action; identify the human body motion in the video frame frame collected during the display of the standard action; end the display process of the standard action when the human action matches the standard action; At the end, the target video is generated based on the captured video frame and audio.
  • the standard action is a human body action that the user needs to make, compared with the dance mode of the user's foot arrow in the prior art, the dance action can be effectively enriched and the user experience can be improved.
  • the video generation method can be applied to an electronic device, which can effectively improve the applicability of the method.
  • the display process of the standard action is ended, and the number of schematic diagrams of the standard actions displayed in the shooting interface can be reduced, which is convenient for the user to watch, further enhance the user experience, and is used to solve the existing body dance.
  • the game is mainly used on fixed devices, such as somatosensory dance machines, computers, etc., and the portability is poor.
  • the judgment of the user's body movement is a technical problem by which the direction of the arrow of the user's foot is correct or not, and the manner of dancing is relatively simple.
  • FIG. 2 is a schematic flowchart of another video generation method according to an embodiment of the present application.
  • the video generation method may include the following steps:
  • Step 201 Acquire selected audio, and standard actions corresponding to each time node in the audio.
  • Step 202 When the audio is started to be played, the video frame frame is started to be collected.
  • Step 203 For each time node, the difference between the time node and the advance time is taken as the starting time.
  • the preset advance time of the mark is T
  • the start time corresponding to the time node is A-T.
  • Step 204 starting from the start time, showing a schematic diagram of the standard action.
  • step 204 For the execution process of step 204, refer to the execution process of step 103 in the foregoing embodiment, and details are not described herein.
  • Step 205 Determine, from among the plurality of to-be-selected tracks, a preset track for displaying a schematic diagram of the standard action.
  • the shooting interface may have multiple to-be-selected tracks, and each track is used to display a schematic diagram of standard actions corresponding to different time nodes, where the preset track is different from the schematic diagram of the corresponding standard action of the adjacent time node.
  • the trajectory thereby enabling a schematic representation of multiple standard actions simultaneously displayed on the capture interface.
  • a preset trajectory for displaying a schematic diagram of a standard action may be determined from a plurality of candidate trajectories. For example, when there are three candidate tracks in the shooting interface, respectively: track 1, track 2, and track 3, track 1 shows a schematic diagram of the standard action corresponding to time node N, and track 2 shows time node N+1. A schematic diagram of the standard action.
  • the schematic diagram of the standard action corresponding to the current time node may be displayed on the track 3, or displayed on the track 1, that is, the preset track may be the track 1 or the track 3, Therefore, the preset trajectory may be different from the adjacent time node, that is, the trajectory displayed by the node N+1 corresponding to the schematic diagram of the standard action may be different from the trajectory 2.
  • Step 206 Determine whether the preset track has a schematic diagram being displayed. If yes, go to step 207. Otherwise, go to step 208.
  • Step 207 When the distance between two adjacent schematic images in the preset track is less than the threshold distance, according to the number of the schematics being displayed and the length of the preset track in the preset track, the schematic and standard of the preset track being displayed are reduced.
  • the size of the schematic of the action is such that the distance between two adjacent schematics in the preset trajectory is greater than or equal to the threshold distance.
  • the distance between two adjacent schematic views in the preset track is greater than or equal to the threshold distance, wherein the threshold distance may be built in by the electronic device.
  • the program is preset.
  • the number of the schematic diagram being displayed and the length of the preset trajectory may be automatically reduced according to the preset trajectory.
  • the schematic diagram of the preset trajectory and the size of the schematic diagram of the standard motion so that the distance between two adjacent schematic diagrams in the preset trajectory is greater than or equal to the threshold distance, so that multiple schematic diagrams can be displayed in the preset trajectory at the same time. Avoid the situation where the two adjacent schematics overlap, and ensure the display effect of the standard action.
  • Step 208 Control a schematic diagram of the standard action to move along the preset trajectory with a preset speed and direction.
  • the preset speed may be preset by a built-in program of the electronic device, for example, the preset speed may be 0.3 pixels per second.
  • a schematic diagram of the standard action can be controlled to move along the preset trajectory with a preset speed and direction.
  • step 209 it is determined whether the human body action matches the standard action. If yes, step 210 is performed; otherwise, step 211 is performed.
  • step 210 may be triggered, and when the human body motion does not match the standard motion, step 211 may be performed.
  • Step 210 ending the display process of the standard action.
  • the standard action can be ended immediately.
  • Step 211 When the schematic diagram of the standard action moves to the end point of the preset track, it is determined whether the human body action matching the standard action is recognized. If yes, step 210 is performed; otherwise, step 212 is performed.
  • step 212 the schematic diagram showing the standard action is stopped.
  • the schematic diagram of the standard motion moves to the end point of the preset trajectory, if the human body action matching the standard action is not recognized, at this time, in order to enable the user to make the standard action corresponding to the next time node in time, the final generation is guaranteed.
  • the continuity of the video in the embodiment of the present application, can stop the schematic diagram showing the standard action.
  • Step 213 generating motion evaluation information of the human body motion according to the degree of difference between the human body motion and the standard motion.
  • the action evaluation information of the human body action includes a human action action score, which is used to indicate the degree of difference between the human body action and the corresponding standard action. Specifically, the higher the human action action score indicates the human body action and the corresponding The smaller the difference between the standard actions, and the lower the human action score, the greater the difference between the human body action and the corresponding standard action.
  • the score obtained by the user's human motion may be set to 0, and when the human motion in the video frame matches the standard motion, A line connecting two adjacent joints determines the scoring coefficient of the line according to the corresponding difference and error range.
  • the mark error range is [a, b]
  • the scoring coefficient p of the connection is calculated, or the scoring coefficient of the connection may be calculated according to other algorithms, which is not limited.
  • the evaluation information of the connection may be generated according to the scoring coefficient of the connection and the score corresponding to the connection. For example, the evaluation information of the connection may be equal to the scoring coefficient of the connection multiplied by the connection. Corresponding score.
  • the motion evaluation information of the human body motion can be obtained by adding the evaluation information of the links between the adjacent two joints.
  • the motion evaluation information of the human body motion may further include an animation effect corresponding to the section to which the human motion score belongs. For example, when the human action score is 100, if the human action score belongs to the interval [90, 100], the animation effect can be “perfect or perfect” and match the diamond flash, the interval [80, 90), the animation effect can It is "very good or good” and is matched with flowers.
  • the generated human action score is 94 points, and the animation effect generated on the shooting interface is “perfect” and is matched with the diamond flashing.
  • Step 214 When the audio playback ends, the target video is generated according to the audio, each video frame frame, and the motion evaluation information of each human body motion.
  • the action evaluation information of the human body action corresponding to the different time nodes may be acquired, and then the target video is generated according to the audio, the acquired video picture frames, and the motion evaluation information of the corresponding human body motion.
  • motion evaluation information corresponding to the human body motion may be added to each video frame frame according to the human body motion recognized by each video frame frame, and then the motion evaluation information is added according to the audio and the action information. a video frame frame to generate the target video.
  • the video generating method of the embodiment obtains the selected audio, and the standard action corresponding to each time node in the audio, and starts to collect the video picture frame when starting to play the audio; according to the preset advance time, the audio is played to each Before a time node, start to display the corresponding standard action; identify the human body motion in the video frame frame collected during the display of the standard action; end the display process of the standard action when the human action matches the standard action; At the end, the target video is generated based on the captured video frame and audio.
  • the standard action is a human body action that the user needs to make, compared with the dance mode of the user's foot arrow in the prior art, the dance action can be effectively enriched and the user experience can be improved.
  • the video generation method can be applied to an electronic device, which can effectively improve the applicability of the method.
  • the display process of the standard action is ended, and the number of schematic diagrams of the standard actions displayed in the shooting interface can be reduced, which is convenient for the user to watch, further enhance the user experience, and is used to solve the existing body dance.
  • the game is mainly used on fixed devices, such as somatosensory dance machines, computers, etc., and the portability is poor.
  • the judgment of the user's body movement is a technical problem by which the direction of the arrow of the user's foot is correct or not, and the manner of dancing is relatively simple.
  • the video generating method may further include the following steps:
  • step 301 the countdown interface is displayed and the countdown is started.
  • the application of the electronic device can display the countdown interface and start counting down.
  • the countdown time can be set by the user according to his own needs, or the countdown time can be preset by the built-in program of the electronic device, and no limitation is imposed here.
  • the countdown time can be 3s.
  • Step 302 when the countdown ends, the audio is started to play.
  • audio can be played when the countdown on the countdown interface ends.
  • the video generation method of this embodiment displays the countdown interface and starts counting down. When the countdown ends, the audio is started to be played. Thereby, it is possible to realize that during the countdown period, the user can adjust his or her own state, thereby better making a human body action that matches the standard action.
  • the present application also proposes a video generating apparatus.
  • FIG. 4 is a schematic structural diagram of a video generating apparatus according to an embodiment of the present disclosure.
  • the video generating apparatus 400 includes a selection module 410, an acquisition module 420, a presentation module 430, an identification module 440, a control module 450, and a generation module 460. among them,
  • the selection module 410 is configured to acquire selected audio and standard actions corresponding to each time node in the audio.
  • the collecting module 420 is configured to start collecting video frame frames when starting to play audio.
  • the display module 430 is configured to start displaying corresponding standard actions before the audio is played to each time node according to the preset advance time.
  • the identification module 440 is configured to identify a human body motion in a video frame frame collected during the presentation of the standard action.
  • the control module 450 is configured to end the display process of the standard action when the human body action matches the standard action.
  • the generating module 460 is configured to generate a target video according to the collected video picture frame and audio when the audio playing ends.
  • the video generating apparatus 400 may further include:
  • the display play module 470 is configured to display the countdown interface after acquiring the selected audio and the standard action corresponding to each time node in the audio, and start counting down, and when the countdown ends, start playing the audio.
  • the determining module 480 is configured to determine whether the human body action and the standard action are based on whether the degree of difference between the human body action and the standard action is greater than a difference threshold after identifying a human body motion in the video frame frame collected during the display of the standard action match.
  • the evaluation information generating module 490 is configured to generate motion evaluation information of the human body motion according to the degree of difference between the human body motion and the standard motion after the human body motion is matched with the standard motion.
  • the display module 430 includes:
  • the processing sub-module 431 is configured to use, as a starting time, a difference between the time node and the advance time length for each time node.
  • the control sub-module 432 is configured to display a schematic diagram of the standard action from the start time, and control the schematic diagram of the standard action to move along the preset trajectory.
  • control sub-module 432 is specifically configured to determine, from a plurality of to-be-selected tracks, a preset track for displaying a schematic diagram of the standard action; the preset track is different from the corresponding standard of the adjacent time node.
  • the schematic diagram of the action is displayed; the schematic diagram of the control standard action is moved along the preset trajectory by the preset speed and direction.
  • control sub-module 432 is further configured to: when the preset trajectory has a schematic diagram being displayed, according to the preset trajectory, the number of the schematic diagram being displayed and the length of the preset trajectory, reducing the schematic diagram that the preset trajectory is being displayed And the size of the schematic diagram of the standard action, such that the distance between two adjacent schematics in the preset trajectory is greater than or equal to the threshold distance.
  • the stop sub-module 433 is configured to stop the display of the standard action if the human body action matching the standard action is not recognized when the schematic diagram of the standard action moves to the end point of the preset track.
  • the video generating apparatus of the embodiment obtains the selected audio and the standard action corresponding to each time node in the audio, and starts to collect the video picture frame when starting to play the audio; according to the preset advance time, the audio is played to each Before a time node, start to display the corresponding standard action; identify the human body motion in the video frame frame collected during the display of the standard action; end the display process of the standard action when the human action matches the standard action; At the end, the target video is generated based on the captured video frame and audio.
  • the standard action is a human body action that the user needs to make, compared with the dance mode of the user's foot arrow in the prior art, the dance action can be effectively enriched and the user experience can be improved.
  • the video generation method can be applied to an electronic device, which can effectively improve the applicability of the method.
  • the display process of the standard action is ended, and the number of schematic diagrams of the standard actions displayed in the shooting interface can be reduced, which is convenient for the user to watch, further enhance the user experience, and is used to solve the existing body dance.
  • the game is mainly used on fixed devices, such as somatosensory dance machines, computers, etc., and the portability is poor.
  • the judgment of the user's body movement is a technical problem by which the direction of the arrow of the user's foot is correct or not, and the manner of dancing is relatively simple.
  • the embodiment of the present application further provides an electronic device, where the electronic device includes the device described in any of the foregoing embodiments.
  • FIG. 6 is a schematic structural diagram of an embodiment of an electronic device according to the present application, which may implement the process of the embodiment shown in FIG. 1-5 of the present application.
  • the electronic device may include: a housing 61, a processor 62, and a memory.
  • the circuit board 64 is disposed inside the space surrounded by the housing 61, the processor 62 and the memory 63 are disposed on the circuit board 64; and the power supply circuit 65 is used for the electronic device
  • the memory 63 is for storing executable program code
  • the processor 62 is operative to execute a program corresponding to the executable program code by reading the executable program code stored in the memory 63 for performing any of the foregoing embodiments The video generation method.
  • the electronic device exists in a variety of forms including, but not limited to:
  • Mobile communication devices These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication.
  • Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
  • Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access.
  • Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
  • Portable entertainment devices These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
  • the server consists of a processor, a hard disk, a memory, a system bus, etc.
  • the server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
  • the present application further provides a non-transitory computer readable storage medium having stored thereon a computer program, wherein the program is executed by a processor to implement a video generation method as described in the foregoing embodiments. .
  • the present application also provides a computer program product that, when executed by a processor, executes a video generation method as described in the foregoing embodiments.
  • first and second are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated.
  • features defining “first” or “second” may include at least one of the features, either explicitly or implicitly.
  • the meaning of "a plurality” is at least two, such as two, three, etc., unless specifically defined otherwise.
  • a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device.
  • computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
  • the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
  • portions of the application can be implemented in hardware, software, firmware, or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware and in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: discrete with logic gates for implementing logic functions on data signals Logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), and the like.
  • each functional unit in each embodiment of the present application may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
  • the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like. While the embodiments of the present application have been shown and described above, it is understood that the above-described embodiments are illustrative and are not to be construed as limiting the scope of the present application. The embodiments are subject to variations, modifications, substitutions and variations.

Abstract

Provided are a video generation method and device, and an electronic apparatus. The method comprises: acquiring a selected audio file and standard movements corresponding to respective time points in the audio file; when the audio file begins to play, starting to collect video picture frames; starting to display, according to a preset advance time, and before the respective time points in the audio file are reached, the corresponding standard movements; recognizing body movements in the video picture frames collected in the process of displaying the standard movements; if the body movements match the standard movements, ending the process of displaying the standard movements; and when playing of the audio file ends, generating a target video according to the collected video picture frames and the audio file. The method is applicable to electronic apparatuses, thereby effectively enhancing applicability thereof. In the invention, a process of displaying a standard movement ends when a body movement matches a standard movement, thereby reducing the number of images demonstrating standard movements in a photographing interface, and allowing a user to view conveniently.

Description

视频生成方法、装置和电子设备Video generation method, device and electronic device
相关申请的交叉引用Cross-reference to related applications
本申请要求乐蜜有限公司于2017年11月23日提交的、发明名称为“视频生成方法、装置和电子设备”的、中国专利申请号“201711184350.8”的优先权。The present application claims priority from Chinese Patent Application No. "201711184350.8" filed on November 23, 2017, entitled "Video Generation Method, Apparatus, and Electronic Apparatus".
技术领域Technical field
本申请涉及移动终端技术领域,尤其涉及一种视频生成方法、装置和电子设备。The present application relates to the field of mobile terminal technologies, and in particular, to a video generation method, apparatus, and electronic device.
背景技术Background technique
体感跳舞游戏,通过互联网运营平台,进行人机互动。用户通过根据体感跳舞设备的提示,做出相应的身体的动作,从而使用户在跳舞的同时,能够达到健身的作用,享受体感互动的体验。Somatosensory dance games, through the Internet operating platform, human-computer interaction. The user makes the corresponding body movements according to the prompts of the dancing device according to the somatosensory, so that the user can achieve the fitness function while enjoying the somatosensory interaction experience while dancing.
现有技术中,体感跳舞游戏主要应用于固定设备上,例如体感跳舞机、电脑等,便携性较差。此外,对用户身体动作的判断,是通过确定用户脚踩的箭头方向正确与否,跳舞的方式较为单一。In the prior art, the somatosensory dance game is mainly applied to fixed devices, such as a somatosensory dance machine, a computer, etc., and the portability is poor. In addition, the judgment of the user's body movement is determined by determining whether the arrow direction of the user's foot is correct or not, and the manner of dancing is relatively simple.
发明内容Summary of the invention
本申请旨在至少在一定程度上解决相关技术中的技术问题之一。The present application aims to solve at least one of the technical problems in the related art to some extent.
为此,本申请的第一个目的在于提出一种视频生成方法,由于标准动作为用户需要做出的人体动作,相比于现有技术中用户脚踩箭头的跳舞方式,能够有效丰富跳舞动作,提升用户体验。解决现有技术中体感跳舞游戏主要应用于固定设备上,例如体感跳舞机、电脑等,便携性较差。此外,对用户身体动作的判断,是通过确定用户脚踩的箭头方向正确与否,跳舞的方式较为单一的技术问题。To this end, the first object of the present application is to provide a video generation method. Since the standard action is a human body action that the user needs to make, the dance action can be effectively enriched compared to the dance mode of the user's foot arrow in the prior art. To enhance the user experience. The prior art somatosensory dance game is mainly applied to fixed devices, such as a somatosensory dance machine, a computer, etc., and the portability is poor. In addition, the judgment of the user's body movement is a technical problem by which the direction of the arrow of the user's foot is correct or not, and the manner of dancing is relatively simple.
本申请的第二个目的在于提出一种视频生成装置。A second object of the present application is to propose a video generating apparatus.
本申请的第三个目的在于提出一种电子设备。A third object of the present application is to propose an electronic device.
本申请的第四个目的在于提出一种非临时性计算机可读存储介质。A fourth object of the present application is to propose a non-transitory computer readable storage medium.
本申请的第五个目的在于提出一种计算机程序产品。A fifth object of the present application is to propose a computer program product.
为达上述目的,本申请第一方面实施例提出了一种视频生成方法,包括:To achieve the above objective, the first aspect of the present application provides a video generating method, including:
获取选定的音频,以及所述音频中各时间节点对应的标准动作;Obtaining selected audio, and standard actions corresponding to each time node in the audio;
当开始播放所述音频时,开始采集视频画面帧;When the audio is started to be played, the acquisition of the video picture frame is started;
根据预设的提前时长,在所述音频播放至每一个时间节点之前,开始展示对应的标准动作;According to the preset advance time, before the audio is played to each time node, the corresponding standard action is started to be displayed;
识别在所述标准动作的展示过程中采集到的视频画面帧中的人体动作;Identifying human body motions in a video frame frame acquired during the presentation of the standard action;
若所述人体动作与所述标准动作匹配,结束所述标准动作的展示过程;Ending the display process of the standard action if the human body action matches the standard action;
当所述音频播放结束时,根据采集的视频画面帧和所述音频生成目标视频。When the audio playback ends, a target video is generated based on the captured video frame frame and the audio.
可选地,作为第一方面的第一种可能的实现方式,所述根据预设的提前时长,在所述音频播放至每一个时间节点之前,开始展示对应的标准动作,包括:Optionally, as a first possible implementation manner of the first aspect, the displaying, according to the preset advance time, the corresponding standard actions are started before the audio is played to each time node, including:
针对每一个时间节点,将所述时间节点与所述提前时长之差,作为起始时刻;For each time node, the difference between the time node and the advance time is taken as the starting time;
从所述起始时刻开始,展示所述标准动作的示意图,并控制所述标准动作的示意图沿预设轨迹移动。Starting from the start time, a schematic diagram of the standard action is displayed, and a schematic diagram of controlling the standard action is moved along a preset trajectory.
可选地,作为第一方面的第二种可能的实现方式,,所述控制所述标准动作的示意图沿预设轨迹移动之后,还包括:Optionally, as a second possible implementation manner of the first aspect, after the schematic diagram of controlling the standard action is moved along a preset trajectory, the method further includes:
当所述标准动作的示意图移动至所述预设轨迹终点时,若未识别到与所述标准动作匹配的人体动作,停止展示所述标准动作的示意图。When the schematic diagram of the standard action moves to the end point of the preset trajectory, if the human body action matching the standard action is not recognized, the schematic diagram showing the standard action is stopped.
可选地,作为第一方面的第三种可能的实现方式,所述控制所述标准动作的示意图沿预设轨迹移动,包括:Optionally, as a third possible implementation manner of the first aspect, the schematic diagram of controlling the standard action is moved along a preset trajectory, including:
从多个待选轨迹中,确定用于对所述标准动作的示意图进行展示的预设轨迹;所述预设轨迹不同于相邻时间节点对应标准动作的示意图进行展示的轨迹;Determining, from a plurality of candidate trajectories, a preset trajectory for displaying a schematic diagram of the standard action; the preset trajectory is different from a trajectory displayed by a schematic diagram corresponding to a standard action of an adjacent time node;
控制所述标准动作的示意图,以预设速度和方向,沿所述预设轨迹移动。A schematic diagram of controlling the standard action is performed along the preset trajectory at a preset speed and direction.
可选地,作为第一方面的第四种可能的实现方式,所述确定用于对所述标准动作的示意图进行展示的预设轨迹之后,还包括:Optionally, as a fourth possible implementation manner of the first aspect, after determining the preset trajectory for displaying the schematic diagram of the standard action, the method further includes:
若所述预设轨迹存在正在展示的示意图;If the preset track has a schematic diagram being displayed;
根据所述预设轨迹中,正在展示的示意图的数量和预设轨迹的长度,缩小所述预设轨迹正在展示的示意图以及所述标准动作的示意图的尺寸,以使所述预设轨迹中相邻两示意图之间的距离大于或等于阈值距离。Defining a schematic diagram of the preset trajectory being displayed and a size of the schematic diagram of the standard motion according to the number of the schematics being displayed and the length of the preset trajectory in the preset trajectory, so that the preset trajectory is in phase The distance between the adjacent two schematics is greater than or equal to the threshold distance.
可选地,作为第一方面的第五种可能的实现方式,所述获取选定的音频,以及所述音频中各时间节点对应的标准动作之后,还包括:Optionally, as a fifth possible implementation manner of the first aspect, after the acquiring the selected audio, and the standard action corresponding to each time node in the audio, the method further includes:
展示倒计时界面,并开始倒计时;Show the countdown interface and start counting down;
当倒计时结束时,开始播放所述音频。When the countdown ends, the audio begins to play.
可选地,作为第一方面的第六种可能的实现方式,所述识别在所述标准动作的展示过程中采集到的视频画面帧中的人体动作之后,还包括:Optionally, as a sixth possible implementation manner of the first aspect, after the recognizing the human body motion in the video frame frame collected during the displaying of the standard action, the method further includes:
根据所述人体动作与所述标准动作之间的差异程度是否大于差异阈值,判断所述人体动作与所述标准动作是否匹配。And determining whether the human body action matches the standard action according to whether the degree of difference between the human body action and the standard action is greater than a difference threshold.
可选地,作为第一方面的第七种可能的实现方式,所述若所述人体动作与所述标准动作匹配之后,还包括:Optionally, as a seventh possible implementation manner of the first aspect, after the human body action is matched with the standard action, the method further includes:
根据所述人体动作与所述标准动作之间的差异程度,生成所述人体动作的动作评价信息。The motion evaluation information of the human body motion is generated according to the degree of difference between the human body motion and the standard motion.
本申请实施例的视频生成方法,通过获取选定的音频,以及音频中各时间节点对应的标准动作,当开始播放音频时,开始采集视频画面帧;根据预设的提前时长,在音频播放至每一个时间节点之前,开始展示对应的标准动作;识别在标准动作的展示过程中采集到的视频画面帧中的人体动作;在人体动作与标准动作匹配时,结束标准动作的展示过程;当音频播放结束时,根据采集的视频画面帧和音频生成目标视频。本实施例中,由于标准动作为用户需要做出的人体动作,相比于现有技术中用户脚踩箭头的跳舞方式,能够有效丰富跳舞动作,提升用户体验。此外,该视频生成方法可以应用于电子设备中,可以有效提升该方法的适用性。并且,在人体动作与标准动作匹配时,结束标准动作的展示过程,可以降低拍摄界面中展示的标准动作的示意图数量,便于用户进行观看,进一步提升用户的使用体验,用于解决现有体感跳舞游戏主要应用于固定设备上,例如体感跳舞机、电脑等,便携性较差。此外,对用户身体动作的判断,是通过确定用户脚踩的箭头方向正确与否,跳舞的方式较为单一的技术问题。The video generating method of the embodiment of the present application obtains the selected audio and the standard action corresponding to each time node in the audio, and starts to collect the video picture frame when starting to play the audio; according to the preset advance time, the audio is played to Before each time node, start to display the corresponding standard action; identify the human body motion in the video frame frame collected during the display of the standard action; end the display process of the standard action when the human action matches the standard action; At the end of playback, the target video is generated based on the captured video frame and audio. In this embodiment, since the standard action is a human body action that the user needs to make, compared with the dance mode of the user's foot arrow in the prior art, the dance action can be effectively enriched and the user experience can be improved. In addition, the video generation method can be applied to an electronic device, which can effectively improve the applicability of the method. Moreover, when the human body action is matched with the standard action, the display process of the standard action is ended, and the number of schematic diagrams of the standard actions displayed in the shooting interface can be reduced, which is convenient for the user to watch, further enhance the user experience, and is used to solve the existing body dance. The game is mainly used on fixed devices, such as somatosensory dance machines, computers, etc., and the portability is poor. In addition, the judgment of the user's body movement is a technical problem by which the direction of the arrow of the user's foot is correct or not, and the manner of dancing is relatively simple.
为达上述目的,本申请第二方面实施例提出了一种视频生成装置,包括:In order to achieve the above objective, the second aspect of the present application provides a video generating apparatus, including:
选择模块,用于获取选定的音频,以及所述音频中各时间节点对应的标准动作;a selection module for acquiring selected audio and standard actions corresponding to each time node in the audio;
采集模块,用于当开始播放所述音频时,开始采集视频画面帧;An acquisition module, configured to start collecting video frame frames when starting to play the audio;
展示模块,用于根据预设提前时长,在所述音频播放至每一个时间节点之前,开始展示对应的标准动作;a display module, configured to start displaying corresponding standard actions before the audio is played to each time node according to a preset advance time;
识别模块,用于识别在所述标准动作的展示过程中采集到的视频画面帧中的人体动作;An identification module, configured to identify a human body motion in a video frame frame collected during the display of the standard action;
控制模块,用于在所述人体动作与所述标准动作匹配时,结束所述标准动作的展示过程;a control module, configured to end a display process of the standard action when the human body action matches the standard action;
生成模块,用于当所述音频播放结束时,根据采集的视频画面帧和所述音频生成目标视频。And a generating module, configured to generate a target video according to the collected video picture frame and the audio when the audio playing ends.
可选地,作为第二方面的第一种可能的实现方式,所述展示模块,包括:Optionally, as a first possible implementation manner of the second aspect, the display module includes:
处理子模块,用于针对每一个时间节点,将所述时间节点与所述提前时长之差,作为起始时刻;a processing submodule, configured, for each time node, a difference between the time node and the advance time as a starting time;
控制子模块,用于从所述起始时刻开始,展示所述标准动作的示意图,并控制所述标 准动作的示意图沿预设轨迹移动。And a control submodule, configured to display a schematic diagram of the standard action from the start time, and control a schematic diagram of the standard action to move along a preset trajectory.
可选地,作为第二方面的第二种可能的实现方式,所述展示模块,还包括:Optionally, as a second possible implementation manner of the second aspect, the display module further includes:
停止子模块,用于当所述标准动作的示意图移动至所述预设轨迹终点时,若未识别到与所述标准动作匹配的人体动作,停止展示所述标准动作的示意图。The stop sub-module is configured to stop displaying the schematic diagram of the standard action if the human body action matching the standard action is not recognized when the schematic diagram of the standard action moves to the end point of the preset track.
可选地,作为第二方面的第三种可能的实现方式,所述控制子模块,具体用于:Optionally, as a third possible implementation manner of the second aspect, the control submodule is specifically configured to:
从多个待选轨迹中,确定用于对所述标准动作的示意图进行展示的预设轨迹;所述预设轨迹不同于相邻时间节点对应标准动作的示意图进行展示的轨迹;Determining, from a plurality of candidate trajectories, a preset trajectory for displaying a schematic diagram of the standard action; the preset trajectory is different from a trajectory displayed by a schematic diagram corresponding to a standard action of an adjacent time node;
控制所述标准动作的示意图,以预设速度和方向,沿所述预设轨迹移动。A schematic diagram of controlling the standard action is performed along the preset trajectory at a preset speed and direction.
可选地,作为第二方面的第四种可能的实现方式,所述控制子模块,还用于:Optionally, as a fourth possible implementation manner of the second aspect, the control submodule is further configured to:
在所述预设轨迹存在正在展示的示意图时,根据所述预设轨迹中,正在展示的示意图的数量和预设轨迹的长度,缩小所述预设轨迹正在展示的示意图以及所述标准动作的示意图的尺寸,以使所述预设轨迹中相邻两示意图之间的距离大于或等于阈值距离。When the preset trajectory has a schematic diagram being displayed, according to the number of the schematic diagrams being displayed and the length of the preset trajectory, the schematic diagram of the preset trajectory being displayed and the standard motion are reduced. The size of the schematic is such that the distance between two adjacent schematics in the predetermined trajectory is greater than or equal to a threshold distance.
可选地,作为第二方面的第五种可能的实现方式,所述装置还包括:Optionally, as a fifth possible implementation manner of the second aspect, the device further includes:
展示播放模块,用于在所述获取选定的音频,以及所述音频中各时间节点对应的标准动作之后,展示倒计时界面,并开始倒计时,当倒计时结束时,开始播放所述音频。The display playing module is configured to display a countdown interface after the selected audio and the standard action corresponding to each time node in the audio, and start counting down, and when the countdown ends, start playing the audio.
可选地,作为第二方面的第六种可能的实现方式,所述装置还包括:Optionally, as a sixth possible implementation manner of the second aspect, the device further includes:
判断模块,用于在所述识别在所述标准动作的展示过程中采集到的视频画面帧中的人体动作之后,根据所述人体动作与所述标准动作之间的差异程度是否大于差异阈值,判断所述人体动作与所述标准动作是否匹配。a determining module, configured to determine, according to the human body motion in the video frame frame collected during the displaying of the standard action, whether the difference between the human motion and the standard motion is greater than a difference threshold, It is determined whether the human body action matches the standard action.
可选地,作为第二方面的第七种可能的实现方式,所述装置还包括:Optionally, as a seventh possible implementation manner of the second aspect, the device further includes:
评价信息生成模块,用于在人体动作与所述标准动作匹配之后,根据所述人体动作与所述标准动作之间的差异程度,生成所述人体动作的动作评价信息。The evaluation information generating module is configured to generate motion evaluation information of the human body motion according to a degree of difference between the human body motion and the standard motion after the human body motion is matched with the standard motion.
本申请实施例的视频生成装置,通过获取选定的音频,以及音频中各时间节点对应的标准动作,当开始播放音频时,开始采集视频画面帧;根据预设的提前时长,在音频播放至每一个时间节点之前,开始展示对应的标准动作;识别在标准动作的展示过程中采集到的视频画面帧中的人体动作;在人体动作与标准动作匹配时,结束标准动作的展示过程;当音频播放结束时,根据采集的视频画面帧和音频生成目标视频。本实施例中,由于标准动作为用户需要做出的人体动作,相比于现有技术中用户脚踩箭头的跳舞方式,能够有效丰富跳舞动作,提升用户体验。此外,该视频生成方法可以应用于电子设备中,可以有效提升该方法的适用性。并且,在人体动作与标准动作匹配时,结束标准动作的展示过程,可以降低拍摄界面中展示的标准动作的示意图数量,便于用户进行观看,进一步提升用户的使用体验,用于解决现有体感跳舞游戏主要应用于固定设备上,例如体感跳舞机、电脑 等,便携性较差。此外,对用户身体动作的判断,是通过确定用户脚踩的箭头方向正确与否,跳舞的方式较为单一的技术问题。The video generating apparatus of the embodiment of the present application acquires the selected audio and the standard action corresponding to each time node in the audio, and starts to collect the video picture frame when starting to play the audio; according to the preset advance time, the audio is played to Before each time node, start to display the corresponding standard action; identify the human body motion in the video frame frame collected during the display of the standard action; end the display process of the standard action when the human action matches the standard action; At the end of playback, the target video is generated based on the captured video frame and audio. In this embodiment, since the standard action is a human body action that the user needs to make, compared with the dance mode of the user's foot arrow in the prior art, the dance action can be effectively enriched and the user experience can be improved. In addition, the video generation method can be applied to an electronic device, which can effectively improve the applicability of the method. Moreover, when the human body action is matched with the standard action, the display process of the standard action is ended, and the number of schematic diagrams of the standard actions displayed in the shooting interface can be reduced, which is convenient for the user to watch, further enhance the user experience, and is used to solve the existing body dance. The game is mainly used on fixed devices, such as somatosensory dance machines, computers, etc., and the portability is poor. In addition, the judgment of the user's body movement is a technical problem by which the direction of the arrow of the user's foot is correct or not, and the manner of dancing is relatively simple.
为达上述目的,本申请第三方面实施例提出了一种电子设备,包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为上述电子设备的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,用于执行本申请第一方面实施例所述的视频生成方法。To achieve the above objective, an embodiment of the third aspect of the present application provides an electronic device including: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside the space enclosed by the housing, and is processed. And a memory disposed on the circuit board; a power supply circuit for powering each circuit or device of the electronic device; a memory for storing executable program code; and the processor operating by reading executable program code stored in the memory The program corresponding to the executable program code is used to execute the video generating method described in the first aspect of the present application.
为达上述目的,本申请第四方面实施例提出了一种非临时性计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如本申请第一方面实施例所述的视频生成方法。To achieve the above objective, the fourth aspect of the present application provides a non-transitory computer readable storage medium having stored thereon a computer program, wherein the program is executed by the processor to implement the first aspect of the present application. The video generation method described in the embodiment.
为达上述目的,本申请第五方面实施例提出了一种计算机程序产品,当所述计算机程序产品中的指令由处理器执行时,执行如本申请第一方面实施例所述的视频生成方法。In order to achieve the above object, the fifth aspect of the present application provides a computer program product, where the instructions in the computer program product are executed by a processor, and the video generation method according to the embodiment of the first aspect of the present application is executed. .
本申请附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。The aspects and advantages of the present invention will be set forth in part in the description which follows.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments will be briefly described below. Obviously, the drawings in the following description are some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1为本申请实施例所提供的第一种图像采集方法的流程示意图;FIG. 1 is a schematic flowchart diagram of a first image collection method according to an embodiment of the present application;
图2为本申请实施例所提供的第二种图像采集方法的流程示意图;2 is a schematic flowchart of a second image collection method according to an embodiment of the present application;
图3为本申请实施例所提供的第三种图像采集方法的流程示意图;3 is a schematic flowchart of a third image collection method according to an embodiment of the present application;
图4为本申请实施例提供的一种图像采集装置的结构示意图;4 is a schematic structural diagram of an image collection device according to an embodiment of the present application;
图5为本申请实施例提供的另一种图像采集装置的结构示意图;FIG. 5 is a schematic structural diagram of another image capturing apparatus according to an embodiment of the present disclosure;
图6为本申请电子设备一个实施例的结构示意图。FIG. 6 is a schematic structural diagram of an embodiment of an electronic device according to the present application.
具体实施方式Detailed ways
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。The embodiments of the present application are described in detail below, and the examples of the embodiments are illustrated in the drawings, wherein the same or similar reference numerals are used to refer to the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are intended to be illustrative, and are not to be construed as limiting.
针对现有体感跳舞游戏主要应用于固定设备上,例如体感跳舞机、电脑等,便携性较差。此外,对用户身体动作的判断,是通过确定用户脚踩的箭头方向正确与否,跳舞的方 式较为单一的技术问题,本申请实施例中,通过获取选定的音频,以及音频中各时间节点对应的标准动作,当开始播放音频时,开始采集视频画面帧;根据预设的提前时长,在音频播放至每一个时间节点之前,开始展示对应的标准动作;识别在标准动作的展示过程中采集到的视频画面帧中的人体动作;在人体动作与标准动作匹配时,结束标准动作的展示过程;当音频播放结束时,根据采集的视频画面帧和音频生成目标视频。本实施例中,由于标准动作为用户需要做出的人体动作,相比于现有技术中用户脚踩箭头的跳舞方式,能够有效丰富跳舞动作,提升用户体验。此外,该视频生成方法可以应用于电子设备中,可以有效提升该方法的适用性。并且,在人体动作与标准动作匹配时,结束标准动作的展示过程,可以降低拍摄界面中展示的标准动作的示意图数量,便于用户进行观看,进一步提升用户的使用体验。The existing somatosensory dance game is mainly applied to fixed devices, such as a somatosensory dance machine, a computer, etc., and the portability is poor. In addition, the determination of the user's body motion is to determine whether the direction of the arrow of the user's foot is correct or not, and the manner of dancing is relatively simple. In the embodiment of the present application, the selected audio and the time nodes in the audio are obtained. Corresponding standard action, when starting to play audio, start collecting video picture frames; according to the preset advance time, before the audio is played to each time node, start to display corresponding standard actions; recognition is collected during the display of standard actions The human body motion in the video frame frame; when the human body motion matches the standard motion, the standard motion display process is ended; when the audio playback ends, the target video is generated according to the collected video frame frame and audio. In this embodiment, since the standard action is a human body action that the user needs to make, compared with the dance mode of the user's foot arrow in the prior art, the dance action can be effectively enriched and the user experience can be improved. In addition, the video generation method can be applied to an electronic device, which can effectively improve the applicability of the method. Moreover, when the human body action is matched with the standard action, the display process of the standard action is ended, and the number of schematic diagrams of the standard actions displayed in the shooting interface can be reduced, which is convenient for the user to watch and further enhance the user experience.
下面参考附图描述本申请实施例的视频生成方法、装置和电子设备。该视频生成方法可以应用于电子设备的应用程序中,其中,电子设备例如为个人电脑(Personal Computer,PC),云端设备或者移动设备,移动设备例如智能手机,或者平板电脑等。The video generation method, apparatus, and electronic device of the embodiments of the present application are described below with reference to the accompanying drawings. The video generation method can be applied to an application of an electronic device, such as a personal computer (PC), a cloud device or a mobile device, a mobile device such as a smart phone, or a tablet computer.
图1为本申请实施例所提供的第一种视频生成方法的流程示意图。FIG. 1 is a schematic flowchart diagram of a first video generating method according to an embodiment of the present application.
如图1所示,该视频生成方法包括以下步骤:As shown in FIG. 1, the video generation method includes the following steps:
步骤101,获取选定的音频,以及音频中各时间节点对应的标准动作。Step 101: Acquire selected audio, and standard actions corresponding to each time node in the audio.
作为一种可能的实现方式,电子设备的应用程序上可以设置一个音频选取的触发条件,例如,触发条件可以为一个音频选取控件,用户可以通过该音频选取控件触发选取音频。例如,当用户触发该音频选取控件时,可以调用歌曲选择界面,而后用户可以从歌曲选择界面任意选取一个音频,作为自身选定的音频。当用户选定音频后,应用程序可以获取用户选定的音频。As a possible implementation manner, an application condition of the audio selection may be set on the application of the electronic device. For example, the trigger condition may be an audio selection control, and the user may trigger the selection of audio through the audio selection control. For example, when the user triggers the audio selection control, the song selection interface can be invoked, and then the user can arbitrarily select an audio from the song selection interface as the audio selected by itself. When the user selects the audio, the application can get the audio selected by the user.
作为另一种可能的实现方式,电子设备的应用程序上可以设置一个拍摄控件,当应用程序探测到用户针对该拍摄控件的操作时,例如,当用户点击该拍摄控件时,该应用程序的界面可以自动展示歌曲选择界面,而后用户可以从歌曲选择界面任意选取一个音频,作为自身选定的音频。当用户选定音频后,应用程序可以获取用户选定的音频。As another possible implementation manner, a shooting control may be set on an application of the electronic device, and when the application detects the user's operation for the shooting control, for example, when the user clicks the shooting control, the application interface The song selection interface can be automatically displayed, and then the user can arbitrarily select an audio from the song selection interface as the audio selected by itself. When the user selects the audio, the application can get the audio selected by the user.
本实施例中,歌曲选择界面中的音频,可以预先导入对应的标准动作,具体地,音频中每个时间节点均具有对应的标准动作,因此,在应用程序获取选定的音频后,该应用程序可以从该音频中获取各时间节点对应的标准动作。In this embodiment, the audio in the song selection interface may be pre-imported into a corresponding standard action. Specifically, each time node in the audio has a corresponding standard action. Therefore, after the application obtains the selected audio, the application The program can obtain standard actions corresponding to each time node from the audio.
步骤102,当开始播放音频时,开始采集视频画面帧。Step 102: When the audio is started to be played, the video frame frame is started to be acquired.
可选地,在拍摄界面,当用户选定音频后,电子设备可以根据用户的操作对该音频进行播放,例如,当电子设备监测到用户点击该音频时,电子设备可以播放该音频,同时打开摄像头,采集各视频画面帧。Optionally, in the shooting interface, after the user selects the audio, the electronic device can play the audio according to the user's operation. For example, when the electronic device detects that the user clicks the audio, the electronic device can play the audio and simultaneously open the audio. The camera captures each video frame.
步骤103,根据预设的提前时长,在音频播放至每一个时间节点之前,开始展示对应的标准动作。Step 103: Start displaying the corresponding standard action before the audio is played to each time node according to the preset advance time.
可以理解的是,用户从看到标准动作到做出人体动作,大脑需要反应一段时间,因此,本申请实施例中,为了便于用户及时做出人体动作,可以在音频播放至每一个时间节点之前,提前预设的提前时长,展示对应的标准动作。其中,预设的提前时长可以由用户根据自身需求进行设置,或者,预设的提前时长可以由电子设备的内置程序预先设定,对此不作限制。应当理解的是,预设的提前时长不应设置的过长,例如预设的提前时长可以为0.2s。It can be understood that the user needs to react for a period of time from the time when the user sees the standard action to the human body action. Therefore, in the embodiment of the present application, in order to facilitate the user to make the human body action in time, the audio can be played to each time node. , the advance time preset in advance, showing the corresponding standard action. The preset advance time can be set by the user according to his own needs, or the preset advance time can be preset by the built-in program of the electronic device, which is not limited. It should be understood that the preset advance time should not be set too long, for example, the preset advance time may be 0.2 s.
具体地,可以针对每一个时间节点,将时间节点与提前时长作差,得到差值,而后将差值作为起始时刻,进而可以从起始时刻开始,展示标准动作的示意图。Specifically, for each time node, the time node is compared with the advance time to obtain a difference, and then the difference is used as a starting time, and then a schematic diagram of the standard action can be displayed from the starting time.
作为一种可能的实现方式,可以在拍摄界面的任意区域展示标准动作的示意图,该标准动作的示意图可以是固定不动的,或者,该标准动作的示意图可以沿预设轨迹移动,对此不作限制。其中,预设轨迹可以为电子设备的内置程序预先设置的。As a possible implementation manner, a schematic diagram of a standard motion may be displayed in any area of the shooting interface. The schematic diagram of the standard motion may be fixed, or the schematic diagram of the standard motion may move along a preset trajectory. limit. The preset track may be preset for the built-in program of the electronic device.
作为另一种可能的实现方式,为了不影响用户查看电子设备屏幕上内容的同时,用户又能观看标准动作,本实施例中,可以在拍摄界面,展示半透明蒙版,其中,蒙版具有镂空的关注区,关注区内展示有用于示意标准动作的图像,即在关注区内展示标准动作的示意图。或者,可以在拍摄界面以弹幕的形式展示对应的标准动作,对此不作限制。As another possible implementation manner, in order to prevent the user from viewing the content on the screen of the electronic device, the user can watch the standard action. In this embodiment, the semi-transparent mask can be displayed on the shooting interface, wherein the mask has In the hollowed out area of interest, the area of interest displays an image showing the standard action, ie a schematic showing the standard actions in the area of interest. Alternatively, the corresponding standard action can be displayed in the form of a barrage on the shooting interface, which is not limited.
当标准动作的示意图沿预设轨迹移动时,在拍摄界面展示标准动作的示意图的同时,可以控制该标准动作的示意图沿预设轨迹移动。When the schematic diagram of the standard motion moves along the preset trajectory, while the photographing interface displays the schematic diagram of the standard motion, the schematic diagram of the standard motion can be controlled to move along the preset trajectory.
步骤104,识别在标准动作的展示过程中采集到的视频画面帧中的人体动作。 Step 104, identifying a human body motion in a video frame frame collected during the presentation of the standard action.
作为一种可能的实现方式,用于采集视频画面帧的摄像头可以为能够采集用户深度信息的摄像头,通过获取的深度信息,可以识别出视频画面帧中的人体动作。例如,该摄像头可以为深度摄像头(Red-Green-Blue Depth,RGBD),成像的同时可以获取视频画面帧中人体的深度信息,从而根据深度信息可以识别视频画面帧中的人体动作。此外,还可以通过结构光或者TOF镜头进行人体动作深度信息的获取,从而根据深度信息可以识别视频画面帧中的人体动作,对此不作限制。As a possible implementation manner, the camera for collecting video frame frames may be a camera capable of collecting user depth information, and the acquired depth information may identify human body motions in the video frame. For example, the camera may be a Red-Green-Blue Depth (RGBD), and the depth information of the human body in the video picture frame may be acquired while being imaged, so that the human body motion in the video picture frame can be identified according to the depth information. In addition, the body motion depth information can be acquired by the structured light or the TOF lens, so that the human body motion in the video frame frame can be identified according to the depth information, which is not limited.
作为另一种可能的实现方式,可以识别视频画面帧中人体的各关节,例如,可以根据人脸识别技术识别出视频画面帧中的人脸以及人脸的位置信息,而后根据人体解剖学中肢体与身高的比例关系,可计算得到人体各关节的位置信息。当然也可以通过其他算法确定视频画面帧中人体的各关节的位置信息,对此不作限制。As another possible implementation manner, each joint of the human body in the video picture frame can be identified. For example, the face information in the video picture frame and the position information of the human face can be recognized according to the face recognition technology, and then according to the human anatomy. The proportional relationship between the limb and the height can be used to calculate the position information of each joint of the human body. Of course, the position information of each joint of the human body in the video picture frame can also be determined by other algorithms, which is not limited.
在识别各关节后,可以连接人体各关节相邻的两关节,得到相邻两关节之间的连线,最后根据相邻两关节之间的连线与预设参考方向之间的实际夹角,确定视频画面帧中的人体动作。其中,预设参考方向可以为水平方向或者垂直方向。After identifying each joint, the two joints adjacent to each joint of the human body can be connected to obtain the connection between the adjacent two joints, and finally according to the actual angle between the connection between the adjacent joints and the preset reference direction. Determine the human motion in the video frame. The preset reference direction may be a horizontal direction or a vertical direction.
步骤105,若人体动作与标准动作匹配,结束标准动作的展示过程。Step 105: If the human body action matches the standard action, the display process of the standard action is ended.
本申请实施例中,可以预先判断视频画面帧中的人体动作是否与标准动作匹配,当人体动作与标准动作匹配时,结束标准动作的展示过程。由此,可以降低拍摄界面中展示的标准动作示意图的数量,便于用户进行观看,提升用户的使用体验。In the embodiment of the present application, it may be determined in advance whether the human body motion in the video frame frame matches the standard motion, and when the human motion matches the standard motion, the display process of the standard motion is ended. Thereby, the number of standard motion diagrams displayed in the shooting interface can be reduced, which is convenient for the user to watch and enhance the user experience.
作为一种可能的实现方式,可以根据人体动作与标准动作之间的差异程度是否大于差异阈值,判断人体动作与标准动作是否匹配。具体地,可以确定在执行标准动作时,各相邻两关节之间的连线与参考方向之间的标准角度,针对每一条相邻两关节之间的连线,比较对应的标准角度与实际角度之间的差值。当每一条相邻两关节之间的连线计算出的差值均在误差范围内时,可以确定视频画面帧中的人体动作与标准动作匹配,而当存在至少一条相邻两关节之间的连线计算出的差值未处于误差范围内时,可以确定视频画面帧中的人体动作与标准动作不匹配。As a possible implementation manner, whether the human motion and the standard motion match can be determined according to whether the difference degree between the human motion and the standard motion is greater than a difference threshold. Specifically, it is possible to determine a standard angle between a line connecting each adjacent two joints and a reference direction when performing a standard action, and compare the corresponding standard angle with the actual line for each adjacent two joints. The difference between the angles. When the difference calculated by the connection between each adjacent two joints is within the error range, it can be determined that the human motion in the video frame is matched with the standard motion, and when there is at least one adjacent two joints When the difference calculated by the connection is not within the error range, it can be determined that the human motion in the video frame does not match the standard motion.
可选地,在人体动作与标准动作匹配时,表明用户做出的人体动作与对应的标准动作之间的差异程度较小,此时,可以结束标准动作的展示过程,以进行下一个时间节点对应的标准动作的展示。Optionally, when the human body action matches the standard action, it indicates that the degree of difference between the human body action and the corresponding standard action made by the user is small. At this time, the display process of the standard action may be ended to perform the next time node. The corresponding standard action display.
步骤106,当音频播放结束时,根据采集的视频画面帧和音频生成目标视频。Step 106: When the audio playback ends, the target video is generated according to the collected video picture frame and audio.
本申请实施例中,当拍摄界面的音频播放结束时,应用程序可以根据采集的全部视频画面帧和音频生成目标视频。具体地,当拍摄界面展示音频的最后一个时间节点对应的标准动作时,摄像头在该标准动作的展示过程中采集视频画面帧,若视频画面帧中的人体动作与该标准动作匹配,则可以结束该标准动作的展示过程,而后应用程序可以根据采集的全部视频画面帧和音频生成目标视频。In the embodiment of the present application, when the audio playback of the shooting interface ends, the application program may generate the target video according to all the captured video frame frames and audio. Specifically, when the shooting interface displays a standard action corresponding to the last time node of the audio, the camera collects a video frame during the display of the standard action, and if the human action in the video frame matches the standard action, the user may end The presentation process of the standard action, and then the application can generate the target video based on all captured video frame frames and audio.
本实施例的视频生成方法,通过获取选定的音频,以及音频中各时间节点对应的标准动作,当开始播放音频时,开始采集视频画面帧;根据预设的提前时长,在音频播放至每一个时间节点之前,开始展示对应的标准动作;识别在标准动作的展示过程中采集到的视频画面帧中的人体动作;在人体动作与标准动作匹配时,结束标准动作的展示过程;当音频播放结束时,根据采集的视频画面帧和音频生成目标视频。本实施例中,由于标准动作为用户需要做出的人体动作,相比于现有技术中用户脚踩箭头的跳舞方式,能够有效丰富跳舞动作,提升用户体验。此外,该视频生成方法可以应用于电子设备中,可以有效提升该方法的适用性。并且,在人体动作与标准动作匹配时,结束标准动作的展示过程,可以降低拍摄界面中展示的标准动作的示意图数量,便于用户进行观看,进一步提升用户的使用体验,用于解决现有体感跳舞游戏主要应用于固定设备上,例如体感跳舞机、电脑等,便携性较差。此外,对用户身体动作的判断,是通过确定用户脚踩的箭头方向正确与否,跳舞的方式较为单一的技术问题。The video generating method of the embodiment obtains the selected audio, and the standard action corresponding to each time node in the audio, and starts to collect the video picture frame when starting to play the audio; according to the preset advance time, the audio is played to each Before a time node, start to display the corresponding standard action; identify the human body motion in the video frame frame collected during the display of the standard action; end the display process of the standard action when the human action matches the standard action; At the end, the target video is generated based on the captured video frame and audio. In this embodiment, since the standard action is a human body action that the user needs to make, compared with the dance mode of the user's foot arrow in the prior art, the dance action can be effectively enriched and the user experience can be improved. In addition, the video generation method can be applied to an electronic device, which can effectively improve the applicability of the method. Moreover, when the human body action is matched with the standard action, the display process of the standard action is ended, and the number of schematic diagrams of the standard actions displayed in the shooting interface can be reduced, which is convenient for the user to watch, further enhance the user experience, and is used to solve the existing body dance. The game is mainly used on fixed devices, such as somatosensory dance machines, computers, etc., and the portability is poor. In addition, the judgment of the user's body movement is a technical problem by which the direction of the arrow of the user's foot is correct or not, and the manner of dancing is relatively simple.
为了清楚说明上一实施例,本实施例提供了另一种视频生成方法,图2为本申请实施例所提供的另一种视频生成方法的流程示意图。In order to clearly illustrate the previous embodiment, this embodiment provides another video generation method. FIG. 2 is a schematic flowchart of another video generation method according to an embodiment of the present application.
如图2所示,该视频生成方法可以包括以下步骤:As shown in FIG. 2, the video generation method may include the following steps:
步骤201,获取选定的音频,以及音频中各时间节点对应的标准动作。Step 201: Acquire selected audio, and standard actions corresponding to each time node in the audio.
步骤202,当开始播放音频时,开始采集视频画面帧。Step 202: When the audio is started to be played, the video frame frame is started to be collected.
步骤201~202的执行过程可以参见上述实施例中步骤101~102的执行过程,在此不做赘述。For the execution process of the steps 201 to 202, refer to the execution process of the steps 101 to 102 in the foregoing embodiment, and details are not described herein.
步骤203,针对每一个时间节点,将时间节点与提前时长之差,作为起始时刻。Step 203: For each time node, the difference between the time node and the advance time is taken as the starting time.
例如,当某个时间节点为A时,标记预设的提前时长为T,则该时间节点对应的起始时刻为A-T。For example, when a certain time node is A, the preset advance time of the mark is T, and the start time corresponding to the time node is A-T.
步骤204,从起始时刻开始,展示标准动作的示意图。 Step 204, starting from the start time, showing a schematic diagram of the standard action.
步骤204的执行过程可以参见上述实施例中步骤103的执行过程,在此不做赘述。For the execution process of step 204, refer to the execution process of step 103 in the foregoing embodiment, and details are not described herein.
步骤205,从多个待选轨迹中,确定用于对标准动作的示意图进行展示的预设轨迹。Step 205: Determine, from among the plurality of to-be-selected tracks, a preset track for displaying a schematic diagram of the standard action.
本申请实施例中,拍摄界面可以有多个待选轨迹,每个轨迹用于展示不同时间节点对应的标准动作的示意图,其中,预设轨迹不同于相邻时间节点对应标准动作的示意图进行展示的轨迹,由此可以实现在拍摄界面同时展示多个标准动作的示意图。In the embodiment of the present application, the shooting interface may have multiple to-be-selected tracks, and each track is used to display a schematic diagram of standard actions corresponding to different time nodes, where the preset track is different from the schematic diagram of the corresponding standard action of the adjacent time node. The trajectory, thereby enabling a schematic representation of multiple standard actions simultaneously displayed on the capture interface.
具体实现时,可以从多个待选轨迹中,确定用于对标准动作的示意图进行展示的预设轨迹。举例而言,当拍摄界面共有3个待选轨迹时,分别为:轨迹1、轨迹2以及轨迹3,轨迹1展示时间节点N对应的标准动作的示意图,轨迹2展示时间节点N+1对应的标准动作的示意图,若当前时间节点为时间节点N+2,则当前时间节点对应的标准动作的示意图可以展示在轨迹3,或者展示在轨迹1,即预设轨迹可以为轨迹1或者轨迹3,从而该预设轨迹可以不同于相邻时间节点,即节点N+1对应标准动作的示意图进行展示的轨迹可以不同于轨迹2。In a specific implementation, a preset trajectory for displaying a schematic diagram of a standard action may be determined from a plurality of candidate trajectories. For example, when there are three candidate tracks in the shooting interface, respectively: track 1, track 2, and track 3, track 1 shows a schematic diagram of the standard action corresponding to time node N, and track 2 shows time node N+1. A schematic diagram of the standard action. If the current time node is the time node N+2, the schematic diagram of the standard action corresponding to the current time node may be displayed on the track 3, or displayed on the track 1, that is, the preset track may be the track 1 or the track 3, Therefore, the preset trajectory may be different from the adjacent time node, that is, the trajectory displayed by the node N+1 corresponding to the schematic diagram of the standard action may be different from the trajectory 2.
步骤206,判断预设轨迹是否存在正在展示的示意图,若是,执行步骤207,否则,执行步骤208。Step 206: Determine whether the preset track has a schematic diagram being displayed. If yes, go to step 207. Otherwise, go to step 208.
步骤207,当预设轨迹中相邻两示意图之间的距离小于阈值距离时,根据预设轨迹中,正在展示的示意图的数量和预设轨迹的长度,缩小预设轨迹正在展示的示意图以及标准动作的示意图的尺寸,以使预设轨迹中相邻两示意图之间的距离大于或等于阈值距离。Step 207: When the distance between two adjacent schematic images in the preset track is less than the threshold distance, according to the number of the schematics being displayed and the length of the preset track in the preset track, the schematic and standard of the preset track being displayed are reduced. The size of the schematic of the action is such that the distance between two adjacent schematics in the preset trajectory is greater than or equal to the threshold distance.
本申请实施例中,为了便于用户查看标准动作的示意图,保证标准动作的展示效果,预设轨迹中相邻两示意图之间的距离大于或等于阈值距离,其中,阈值距离可以由电子设备的内置程序预先设置。In the embodiment of the present application, in order to facilitate the user to view the schematic diagram of the standard action and ensure the display effect of the standard action, the distance between two adjacent schematic views in the preset track is greater than or equal to the threshold distance, wherein the threshold distance may be built in by the electronic device. The program is preset.
可以理解的是,当拍摄界面上的预设轨迹存在正在展示的示意图时,为了便于展示标 准动作的示意图,可以根据预设轨迹中,正在展示的示意图的数量和预设轨迹的长度,自动缩小预设轨迹正在展示的示意图以及标准动作的示意图的尺寸,以使预设轨迹中相邻两示意图之间的距离大于或等于阈值距离,从而可以实现在预设轨迹中,同时展示多张示意图,避免相邻两示意图交叠的情况出现,保证标准动作的展示效果。It can be understood that when the preset trajectory on the shooting interface has a schematic diagram being displayed, in order to facilitate the display of the schematic diagram of the standard motion, the number of the schematic diagram being displayed and the length of the preset trajectory may be automatically reduced according to the preset trajectory. The schematic diagram of the preset trajectory and the size of the schematic diagram of the standard motion, so that the distance between two adjacent schematic diagrams in the preset trajectory is greater than or equal to the threshold distance, so that multiple schematic diagrams can be displayed in the preset trajectory at the same time. Avoid the situation where the two adjacent schematics overlap, and ensure the display effect of the standard action.
步骤208,控制标准动作的示意图,以预设速度和方向,沿预设轨迹移动。Step 208: Control a schematic diagram of the standard action to move along the preset trajectory with a preset speed and direction.
本申请实施例中,预设速度可以由电子设备的内置程序预先设置,例如预设速度可以为0.3像素每秒。In the embodiment of the present application, the preset speed may be preset by a built-in program of the electronic device, for example, the preset speed may be 0.3 pixels per second.
当确定用于对标准动作的示意图进行展示的预设轨迹时,可以控制标准动作的示意图,以预设速度和方向,沿预设轨迹移动。When determining a preset trajectory for displaying a schematic diagram of a standard action, a schematic diagram of the standard action can be controlled to move along the preset trajectory with a preset speed and direction.
步骤209,判断人体动作与标准动作是否匹配,若是,执行步骤210,否则,执行步骤211。In step 209, it is determined whether the human body action matches the standard action. If yes, step 210 is performed; otherwise, step 211 is performed.
本申请实施例中,在标准动作的示意沿预设轨迹移动时,可以根据人体动作与标准动作之间的差异程度是否大于差异阈值,判断人体动作与标准动作是否匹配。具体地,可以参见上述实施例中步骤105的描述,在此不做赘述。In the embodiment of the present application, when the schematic of the standard motion moves along the preset trajectory, whether the human motion and the standard motion match are determined according to whether the difference degree between the human motion and the standard motion is greater than the difference threshold. For details, refer to the description of step 105 in the foregoing embodiment, and details are not described herein.
当人体动作与标准动作匹配时,可以触发步骤210,而当人体动作与标准动作不匹配时,可以执行步骤211。When the human body action matches the standard motion, step 210 may be triggered, and when the human body motion does not match the standard motion, step 211 may be performed.
步骤210,结束标准动作的展示过程。 Step 210, ending the display process of the standard action.
可选地,在标准动作的示意图移动的过程中,若识别出人体动作与标准动作匹配,表明用户做出的人体动作与对应的标准动作之间的差异程度,此时,可以立即结束标准动作的展示过程,以进行下一个时间节点对应的标准动作的展示。Optionally, in the process of moving the schematic diagram of the standard action, if the human body action is recognized to match the standard action, indicating the degree of difference between the human body action and the corresponding standard action made by the user, at this time, the standard action can be ended immediately. The presentation process to show the standard actions corresponding to the next time node.
步骤211,当标准动作的示意图移动至预设轨迹终点时,判断是否识别到与标准动作匹配的人体动作,若是,执行步骤210,否则,执行步骤212。Step 211: When the schematic diagram of the standard action moves to the end point of the preset track, it is determined whether the human body action matching the standard action is recognized. If yes, step 210 is performed; otherwise, step 212 is performed.
步骤212,停止展示标准动作的示意图。In step 212, the schematic diagram showing the standard action is stopped.
可选地,当标准动作的示意图移动至预设轨迹终点时,若未识别到与标准动作匹配的人体动作,此时,为了使用户及时做出下一个时间节点对应的标准动作,保证最终生成的视频的连续性,本申请实施例中,可以停止展示标准动作的示意图。Optionally, when the schematic diagram of the standard motion moves to the end point of the preset trajectory, if the human body action matching the standard action is not recognized, at this time, in order to enable the user to make the standard action corresponding to the next time node in time, the final generation is guaranteed. The continuity of the video, in the embodiment of the present application, can stop the schematic diagram showing the standard action.
步骤213,根据人体动作与标准动作之间的差异程度,生成人体动作的动作评价信息。 Step 213, generating motion evaluation information of the human body motion according to the degree of difference between the human body motion and the standard motion.
本申请实施例中,人体动作的动作评价信息包括人体动作分值,用于指示人体动作与对应的标准动作之间的差异程度,具体地,人体动作分值越高,表明人体动作与对应的标准动作之间的差异程度越小,而人体动作分值越低,表明人体动作与对应的标准动作之间的差异程度越大。In the embodiment of the present application, the action evaluation information of the human body action includes a human action action score, which is used to indicate the degree of difference between the human body action and the corresponding standard action. Specifically, the higher the human action action score indicates the human body action and the corresponding The smaller the difference between the standard actions, and the lower the human action score, the greater the difference between the human body action and the corresponding standard action.
具体地,当视频画面帧中的人体动作与标准动作不匹配时,可以将用户做出的人体动 作得到的评分置0,而当视频画面帧中的人体动与标准动作匹配时,可以针对每一条相邻两关节之间的连线,根据对应的差值和误差范围,确定连线的评分系数,例如,标记误差范围为[a,b],误差为Δ,可以根据公式p=1-[2Δ/(a-b)],计算得到连线的评分系数p,或者可以根据其他算法计算连线的评分系数,对此不作限制。当得到连线的评分系数后,可以根据连线的评分系数和连线对应的分值,生成连线的评价信息,例如,连线的评价信息可以等于该连线的评分系数乘以连线对应的分值。最后,可以通过将各条相邻两关节之间的连线的评价信息相加,得到人体动作的动作评价信息。Specifically, when the human motion in the video frame does not match the standard motion, the score obtained by the user's human motion may be set to 0, and when the human motion in the video frame matches the standard motion, A line connecting two adjacent joints determines the scoring coefficient of the line according to the corresponding difference and error range. For example, the mark error range is [a, b], and the error is Δ, which can be based on the formula p=1- [2Δ/(ab)], the scoring coefficient p of the connection is calculated, or the scoring coefficient of the connection may be calculated according to other algorithms, which is not limited. After obtaining the scoring coefficient of the connection, the evaluation information of the connection may be generated according to the scoring coefficient of the connection and the score corresponding to the connection. For example, the evaluation information of the connection may be equal to the scoring coefficient of the connection multiplied by the connection. Corresponding score. Finally, the motion evaluation information of the human body motion can be obtained by adding the evaluation information of the links between the adjacent two joints.
进一步地,人体动作的动作评价信息还可以包括人体动作分值所属区间对应的动画效果。例如,当人体动作分值满分为100时,若人体动作分值所属的区间[90,100],动画效果可以为“完美或perfect”并搭配钻石闪烁,所属的区间[80,90),动画效果可以为“很好或good”并搭配鲜花闪烁。Further, the motion evaluation information of the human body motion may further include an animation effect corresponding to the section to which the human motion score belongs. For example, when the human action score is 100, if the human action score belongs to the interval [90, 100], the animation effect can be “perfect or perfect” and match the diamond flash, the interval [80, 90), the animation effect can It is "very good or good" and is matched with flowers.
举例而言,根据时间节点A的标准动作与人体动作之间的差异程度,生成的人体动作分值为94分,在拍摄界面生成的动画效果为“perfect”并搭配钻石闪烁。由此,可以使得用户及时了解自己做出的人体动作是否标准,从而提升了用户的代入感。For example, according to the degree of difference between the standard action of the time node A and the human body motion, the generated human action score is 94 points, and the animation effect generated on the shooting interface is “perfect” and is matched with the diamond flashing. Thereby, the user can be made aware of whether the human body movements made by the user are in a timely manner, thereby improving the user's sense of substitution.
步骤214,当音频播放结束时,根据音频、各视频画面帧和各人体动作的动作评价信息,生成目标视频。Step 214: When the audio playback ends, the target video is generated according to the audio, each video frame frame, and the motion evaluation information of each human body motion.
本申请实施例中,当音频播放结束时,可以获取不同时间节点对应的人体动作的动作评价信息,而后根据该音频、获取的各视频画面帧和对应的人体动作的动作评价信息,生成目标视频。In the embodiment of the present application, when the audio playback ends, the action evaluation information of the human body action corresponding to the different time nodes may be acquired, and then the target video is generated according to the audio, the acquired video picture frames, and the motion evaluation information of the corresponding human body motion. .
作为一种可能的实现方式,可以根据各视频画面帧所识别出的人体动作,在各视频画面帧中,添加相应人体动作的动作评价信息,而后根据所述音频和添加所述动作评价信息后的视频画面帧,生成所述目标视频。As a possible implementation manner, motion evaluation information corresponding to the human body motion may be added to each video frame frame according to the human body motion recognized by each video frame frame, and then the motion evaluation information is added according to the audio and the action information. a video frame frame to generate the target video.
本实施例的视频生成方法,通过获取选定的音频,以及音频中各时间节点对应的标准动作,当开始播放音频时,开始采集视频画面帧;根据预设的提前时长,在音频播放至每一个时间节点之前,开始展示对应的标准动作;识别在标准动作的展示过程中采集到的视频画面帧中的人体动作;在人体动作与标准动作匹配时,结束标准动作的展示过程;当音频播放结束时,根据采集的视频画面帧和音频生成目标视频。本实施例中,由于标准动作为用户需要做出的人体动作,相比于现有技术中用户脚踩箭头的跳舞方式,能够有效丰富跳舞动作,提升用户体验。此外,该视频生成方法可以应用于电子设备中,可以有效提升该方法的适用性。并且,在人体动作与标准动作匹配时,结束标准动作的展示过程,可以降低拍摄界面中展示的标准动作的示意图数量,便于用户进行观看,进一步提升用户的使用体验,用于解决现有体感跳舞游戏主要应用于固定设备上,例如体感跳舞机、电脑等, 便携性较差。此外,对用户身体动作的判断,是通过确定用户脚踩的箭头方向正确与否,跳舞的方式较为单一的技术问题。The video generating method of the embodiment obtains the selected audio, and the standard action corresponding to each time node in the audio, and starts to collect the video picture frame when starting to play the audio; according to the preset advance time, the audio is played to each Before a time node, start to display the corresponding standard action; identify the human body motion in the video frame frame collected during the display of the standard action; end the display process of the standard action when the human action matches the standard action; At the end, the target video is generated based on the captured video frame and audio. In this embodiment, since the standard action is a human body action that the user needs to make, compared with the dance mode of the user's foot arrow in the prior art, the dance action can be effectively enriched and the user experience can be improved. In addition, the video generation method can be applied to an electronic device, which can effectively improve the applicability of the method. Moreover, when the human body action is matched with the standard action, the display process of the standard action is ended, and the number of schematic diagrams of the standard actions displayed in the shooting interface can be reduced, which is convenient for the user to watch, further enhance the user experience, and is used to solve the existing body dance. The game is mainly used on fixed devices, such as somatosensory dance machines, computers, etc., and the portability is poor. In addition, the judgment of the user's body movement is a technical problem by which the direction of the arrow of the user's foot is correct or not, and the manner of dancing is relatively simple.
作为一种可能的实现方式,参见图3,在图1和图2所示实施例的基础上,在步骤101或者201之后,该视频生成方法还可以包括以下步骤:As a possible implementation manner, referring to FIG. 3, based on the embodiment shown in FIG. 1 and FIG. 2, after the step 101 or 201, the video generating method may further include the following steps:
步骤301,展示倒计时界面,并开始倒计时。In step 301, the countdown interface is displayed and the countdown is started.
可选地,为了给用户留有准备时间,本申请实施例中,在用户选定音频后,电子设备的应用程序可以展示倒计时界面,并开始倒计时。其中,倒计时时间可以由用户根据自身需求进行设置,或者,倒计时时间可以由电子设备的内置程序预先设置,在此不做限制。例如,倒计时时间可以为3s。Optionally, in order to leave a preparation time for the user, in the embodiment of the present application, after the user selects the audio, the application of the electronic device can display the countdown interface and start counting down. The countdown time can be set by the user according to his own needs, or the countdown time can be preset by the built-in program of the electronic device, and no limitation is imposed here. For example, the countdown time can be 3s.
步骤302,当倒计时结束时,开始播放音频。 Step 302, when the countdown ends, the audio is started to play.
可选地,当倒计时界面上倒计时结束时,可以播放音频。Alternatively, audio can be played when the countdown on the countdown interface ends.
本实施例的视频生成方法,通过展示倒计时界面,并开始倒计时,当倒计时结束时,开始播放音频。由此,可以实现在倒计时时间段内,用户可以调整自身的状态,从而更好地做出与标准动作匹配的人体动作。The video generation method of this embodiment displays the countdown interface and starts counting down. When the countdown ends, the audio is started to be played. Thereby, it is possible to realize that during the countdown period, the user can adjust his or her own state, thereby better making a human body action that matches the standard action.
为了实现上述实施例,本申请还提出一种视频生成装置。In order to implement the above embodiments, the present application also proposes a video generating apparatus.
图4为本申请实施例提供的一种视频生成装置的结构示意图。FIG. 4 is a schematic structural diagram of a video generating apparatus according to an embodiment of the present disclosure.
如图4所示,该视频生成装置400包括:选择模块410、采集模块420、展示模块430、识别模块440、控制模块450,以及生成模块460。其中,As shown in FIG. 4, the video generating apparatus 400 includes a selection module 410, an acquisition module 420, a presentation module 430, an identification module 440, a control module 450, and a generation module 460. among them,
选择模块410,用于获取选定的音频,以及音频中各时间节点对应的标准动作。The selection module 410 is configured to acquire selected audio and standard actions corresponding to each time node in the audio.
采集模块420,用于当开始播放音频时,开始采集视频画面帧。The collecting module 420 is configured to start collecting video frame frames when starting to play audio.
展示模块430,用于根据预设提前时长,在音频播放至每一个时间节点之前,开始展示对应的标准动作。The display module 430 is configured to start displaying corresponding standard actions before the audio is played to each time node according to the preset advance time.
识别模块440,用于识别在标准动作的展示过程中采集到的视频画面帧中的人体动作。The identification module 440 is configured to identify a human body motion in a video frame frame collected during the presentation of the standard action.
控制模块450,用于在人体动作与标准动作匹配时,结束标准动作的展示过程。The control module 450 is configured to end the display process of the standard action when the human body action matches the standard action.
生成模块460,用于当音频播放结束时,根据采集的视频画面帧和音频生成目标视频。The generating module 460 is configured to generate a target video according to the collected video picture frame and audio when the audio playing ends.
进一步地,作为本申请实施例的一种可能的实现方式,参见图5,在图4所示实施例的基础上,该视频生成装置400还可以包括:Further, as a possible implementation manner of the embodiment of the present application, referring to FIG. 5, on the basis of the embodiment shown in FIG. 4, the video generating apparatus 400 may further include:
展示播放模块470,用于在获取选定的音频,以及音频中各时间节点对应的标准动作之后,展示倒计时界面,并开始倒计时,当倒计时结束时,开始播放音频。The display play module 470 is configured to display the countdown interface after acquiring the selected audio and the standard action corresponding to each time node in the audio, and start counting down, and when the countdown ends, start playing the audio.
判断模块480,用于在识别在标准动作的展示过程中采集到的视频画面帧中的人体动作之后,根据人体动作与标准动作之间的差异程度是否大于差异阈值,判断人体动作与标准动作是否匹配。The determining module 480 is configured to determine whether the human body action and the standard action are based on whether the degree of difference between the human body action and the standard action is greater than a difference threshold after identifying a human body motion in the video frame frame collected during the display of the standard action match.
评价信息生成模块490,用于在人体动作与标准动作匹配之后,根据人体动作与标准动作之间的差异程度,生成人体动作的动作评价信息。The evaluation information generating module 490 is configured to generate motion evaluation information of the human body motion according to the degree of difference between the human body motion and the standard motion after the human body motion is matched with the standard motion.
本申请实施例中,展示模块430,包括:In the embodiment of the present application, the display module 430 includes:
处理子模块431,用于针对每一个时间节点,将时间节点与提前时长之差,作为起始时刻。The processing sub-module 431 is configured to use, as a starting time, a difference between the time node and the advance time length for each time node.
控制子模块432,用于从起始时刻开始,展示标准动作的示意图,并控制标准动作的示意图沿预设轨迹移动。The control sub-module 432 is configured to display a schematic diagram of the standard action from the start time, and control the schematic diagram of the standard action to move along the preset trajectory.
作为一种可能的实现方式,控制子模块432,具体用于从多个待选轨迹中,确定用于对标准动作的示意图进行展示的预设轨迹;预设轨迹不同于相邻时间节点对应标准动作的示意图进行展示的轨迹;控制标准动作的示意图,以预设速度和方向,沿预设轨迹移动。As a possible implementation manner, the control sub-module 432 is specifically configured to determine, from a plurality of to-be-selected tracks, a preset track for displaying a schematic diagram of the standard action; the preset track is different from the corresponding standard of the adjacent time node. The schematic diagram of the action is displayed; the schematic diagram of the control standard action is moved along the preset trajectory by the preset speed and direction.
可选地,控制子模块432,还用于在预设轨迹存在正在展示的示意图时,根据预设轨迹中,正在展示的示意图的数量和预设轨迹的长度,缩小预设轨迹正在展示的示意图以及标准动作的示意图的尺寸,以使预设轨迹中相邻两示意图之间的距离大于或等于阈值距离。Optionally, the control sub-module 432 is further configured to: when the preset trajectory has a schematic diagram being displayed, according to the preset trajectory, the number of the schematic diagram being displayed and the length of the preset trajectory, reducing the schematic diagram that the preset trajectory is being displayed And the size of the schematic diagram of the standard action, such that the distance between two adjacent schematics in the preset trajectory is greater than or equal to the threshold distance.
停止子模块433,用于当标准动作的示意图移动至预设轨迹终点时,若未识别到与标准动作匹配的人体动作,停止展示标准动作的示意图。The stop sub-module 433 is configured to stop the display of the standard action if the human body action matching the standard action is not recognized when the schematic diagram of the standard action moves to the end point of the preset track.
需要说明的是,前述对视频生成方法实施例的解释说明也适用于该实施例的视频生成装置400,此处不再赘述。It should be noted that the foregoing description of the video generation method embodiment is also applicable to the video generation apparatus 400 of this embodiment, and details are not described herein again.
本实施例的视频生成装置,通过获取选定的音频,以及音频中各时间节点对应的标准动作,当开始播放音频时,开始采集视频画面帧;根据预设的提前时长,在音频播放至每一个时间节点之前,开始展示对应的标准动作;识别在标准动作的展示过程中采集到的视频画面帧中的人体动作;在人体动作与标准动作匹配时,结束标准动作的展示过程;当音频播放结束时,根据采集的视频画面帧和音频生成目标视频。本实施例中,由于标准动作为用户需要做出的人体动作,相比于现有技术中用户脚踩箭头的跳舞方式,能够有效丰富跳舞动作,提升用户体验。此外,该视频生成方法可以应用于电子设备中,可以有效提升该方法的适用性。并且,在人体动作与标准动作匹配时,结束标准动作的展示过程,可以降低拍摄界面中展示的标准动作的示意图数量,便于用户进行观看,进一步提升用户的使用体验,用于解决现有体感跳舞游戏主要应用于固定设备上,例如体感跳舞机、电脑等,便携性较差。此外,对用户身体动作的判断,是通过确定用户脚踩的箭头方向正确与否,跳舞的方式较为单一的技术问题。The video generating apparatus of the embodiment obtains the selected audio and the standard action corresponding to each time node in the audio, and starts to collect the video picture frame when starting to play the audio; according to the preset advance time, the audio is played to each Before a time node, start to display the corresponding standard action; identify the human body motion in the video frame frame collected during the display of the standard action; end the display process of the standard action when the human action matches the standard action; At the end, the target video is generated based on the captured video frame and audio. In this embodiment, since the standard action is a human body action that the user needs to make, compared with the dance mode of the user's foot arrow in the prior art, the dance action can be effectively enriched and the user experience can be improved. In addition, the video generation method can be applied to an electronic device, which can effectively improve the applicability of the method. Moreover, when the human body action is matched with the standard action, the display process of the standard action is ended, and the number of schematic diagrams of the standard actions displayed in the shooting interface can be reduced, which is convenient for the user to watch, further enhance the user experience, and is used to solve the existing body dance. The game is mainly used on fixed devices, such as somatosensory dance machines, computers, etc., and the portability is poor. In addition, the judgment of the user's body movement is a technical problem by which the direction of the arrow of the user's foot is correct or not, and the manner of dancing is relatively simple.
本申请实施例还提供一种电子设备,电子设备包含前述任一实施例所述的装置。The embodiment of the present application further provides an electronic device, where the electronic device includes the device described in any of the foregoing embodiments.
图6为本申请电子设备一个实施例的结构示意图,可以实现本申请图1-5所示实施例的流程,如图6所示,上述电子设备可以包括:壳体61、处理器62、存储器63、电路板 64和电源电路65,其中,电路板64安置在壳体61围成的空间内部,处理器62和存储器63设置在电路板64上;电源电路65,用于为上述电子设备的各个电路或器件供电;存储器63用于存储可执行程序代码;处理器62通过读取存储器63中存储的可执行程序代码来运行与可执行程序代码对应的程序,用于执行前述任一实施例所述的视频生成方法。FIG. 6 is a schematic structural diagram of an embodiment of an electronic device according to the present application, which may implement the process of the embodiment shown in FIG. 1-5 of the present application. As shown in FIG. 6, the electronic device may include: a housing 61, a processor 62, and a memory. 63, a circuit board 64 and a power supply circuit 65, wherein the circuit board 64 is disposed inside the space surrounded by the housing 61, the processor 62 and the memory 63 are disposed on the circuit board 64; and the power supply circuit 65 is used for the electronic device Each circuit or device is powered; the memory 63 is for storing executable program code; the processor 62 is operative to execute a program corresponding to the executable program code by reading the executable program code stored in the memory 63 for performing any of the foregoing embodiments The video generation method.
处理器62对上述步骤的具体执行过程以及处理器62通过运行可执行程序代码来进一步执行的步骤,可以参见本申请图1-5所示实施例的描述,在此不再赘述。The description of the embodiment shown in FIG. 1-5 of the present application is omitted, and details are not described herein.
该电子设备以多种形式存在,包括但不限于:The electronic device exists in a variety of forms including, but not limited to:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。(1) Mobile communication devices: These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication. Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。(2) Ultra-mobile personal computer equipment: This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access. Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。(3) Portable entertainment devices: These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
(4)服务器:提供计算服务的设备,服务器的构成包括处理器、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。(4) Server: A device that provides computing services. The server consists of a processor, a hard disk, a memory, a system bus, etc. The server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
(5)其他具有数据交互功能的电子设备。(5) Other electronic devices with data interaction functions.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The foregoing is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any change or replacement that can be easily conceived by those skilled in the art within the technical scope disclosed by the present application is All should be covered by the scope of this application. Therefore, the scope of protection of this application should be determined by the scope of protection of the claims.
为了实现上述实施例,本申请还提出一种非临时性计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如前述实施例所述的视频生成方法。In order to implement the above embodiments, the present application further provides a non-transitory computer readable storage medium having stored thereon a computer program, wherein the program is executed by a processor to implement a video generation method as described in the foregoing embodiments. .
为了实现上述实施例,本申请还提出一种计算机程序产品,当所述计算机程序产品中的指令由处理器执行时,执行如前述实施例所述的视频生成方法。In order to implement the above embodiments, the present application also provides a computer program product that, when executed by a processor, executes a video generation method as described in the foregoing embodiments.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者 特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of the present specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" and the like means a specific feature described in connection with the embodiment or example. A structure, material or feature is included in at least one embodiment or example of the application. In the present specification, the schematic representation of the above terms is not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. In addition, various embodiments or examples described in the specification, as well as features of various embodiments or examples, may be combined and combined.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。Moreover, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, features defining "first" or "second" may include at least one of the features, either explicitly or implicitly. In the description of the present application, the meaning of "a plurality" is at least two, such as two, three, etc., unless specifically defined otherwise.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现定制逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method description in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logic function or process. And the scope of the preferred embodiments of the present application includes additional implementations, in which the functions may be performed in a substantially simultaneous manner or in the reverse order depending on the functions involved, in accordance with the illustrated or discussed order. It will be understood by those skilled in the art to which the embodiments of the present application pertain.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer readable medium, Used in conjunction with, or in conjunction with, an instruction execution system, apparatus, or device (eg, a computer-based system, a system including a processor, or other system that can fetch instructions and execute instructions from an instruction execution system, apparatus, or device) Or use with equipment. For the purposes of this specification, a "computer-readable medium" can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM). In addition, the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。如,如果用硬件来实现和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可 编程门阵列(FPGA)等。It should be understood that portions of the application can be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware and in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: discrete with logic gates for implementing logic functions on data signals Logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), and the like.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art can understand that all or part of the steps carried by the method of implementing the above embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, one or a combination of the steps of the method embodiments is included.
此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。The above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like. While the embodiments of the present application have been shown and described above, it is understood that the above-described embodiments are illustrative and are not to be construed as limiting the scope of the present application. The embodiments are subject to variations, modifications, substitutions and variations.

Claims (19)

  1. 一种视频生成方法,其特征在于,包括以下步骤:A video generation method, comprising the steps of:
    获取选定的音频,以及所述音频中各时间节点对应的标准动作;Obtaining selected audio, and standard actions corresponding to each time node in the audio;
    当开始播放所述音频时,开始采集视频画面帧;When the audio is started to be played, the acquisition of the video picture frame is started;
    根据预设的提前时长,在所述音频播放至每一个时间节点之前,开始展示对应的标准动作;According to the preset advance time, before the audio is played to each time node, the corresponding standard action is started to be displayed;
    识别在所述标准动作的展示过程中采集到的视频画面帧中的人体动作;Identifying human body motions in a video frame frame acquired during the presentation of the standard action;
    若所述人体动作与所述标准动作匹配,结束所述标准动作的展示过程;Ending the display process of the standard action if the human body action matches the standard action;
    当所述音频播放结束时,根据采集的视频画面帧和所述音频生成目标视频。When the audio playback ends, a target video is generated based on the captured video frame frame and the audio.
  2. 根据权利要求1所述的视频生成方法,其特征在于,所述根据预设的提前时长,在所述音频播放至每一个时间节点之前,开始展示对应的标准动作,包括:The video generating method according to claim 1, wherein the displaying the corresponding standard action starts before the audio is played to each time node according to the preset advance time length, including:
    针对每一个时间节点,将所述时间节点与所述提前时长之差,作为起始时刻;For each time node, the difference between the time node and the advance time is taken as the starting time;
    从所述起始时刻开始,展示所述标准动作的示意图,并控制所述标准动作的示意图沿预设轨迹移动。Starting from the start time, a schematic diagram of the standard action is displayed, and a schematic diagram of controlling the standard action is moved along a preset trajectory.
  3. 根据权利要求2所述的视频生成方法,其特征在于,所述控制所述标准动作的示意图沿预设轨迹移动之后,还包括:The video generating method according to claim 2, wherein after the schematic diagram of controlling the standard action moves along a preset trajectory, the method further includes:
    当所述标准动作的示意图移动至所述预设轨迹终点时,若未识别到与所述标准动作匹配的人体动作,停止展示所述标准动作的示意图。When the schematic diagram of the standard action moves to the end point of the preset trajectory, if the human body action matching the standard action is not recognized, the schematic diagram showing the standard action is stopped.
  4. 根据权利要求2或3所述的视频生成方法,其特征在于,所述控制所述标准动作的示意图沿预设轨迹移动,包括:The video generating method according to claim 2 or 3, wherein the controlling the schematic diagram of the standard motion to move along a preset trajectory comprises:
    从多个待选轨迹中,确定用于对所述标准动作的示意图进行展示的预设轨迹;所述预设轨迹不同于相邻时间节点对应标准动作的示意图进行展示的轨迹;Determining, from a plurality of candidate trajectories, a preset trajectory for displaying a schematic diagram of the standard action; the preset trajectory is different from a trajectory displayed by a schematic diagram corresponding to a standard action of an adjacent time node;
    控制所述标准动作的示意图,以预设速度和方向,沿所述预设轨迹移动。A schematic diagram of controlling the standard action is performed along the preset trajectory at a preset speed and direction.
  5. 根据权利要求4所述的视频生成方法,其特征在于,所述确定用于对所述标准动作的示意图进行展示的预设轨迹之后,还包括:The video generating method according to claim 4, further comprising: after determining the preset trajectory for displaying the schematic diagram of the standard action, further comprising:
    若所述预设轨迹存在正在展示的示意图;If the preset track has a schematic diagram being displayed;
    根据所述预设轨迹中,正在展示的示意图的数量和预设轨迹的长度,缩小所述预设轨迹正在展示的示意图以及所述标准动作的示意图的尺寸,以使所述预设轨迹中相邻两示意图之间的距离大于或等于阈值距离。Defining a schematic diagram of the preset trajectory being displayed and a size of the schematic diagram of the standard motion according to the number of the schematics being displayed and the length of the preset trajectory in the preset trajectory, so that the preset trajectory is in phase The distance between the adjacent two schematics is greater than or equal to the threshold distance.
  6. 根据权利要求1-5任一项所述的视频生成方法,其特征在于,所述获取选定的音频,以及所述音频中各时间节点对应的标准动作之后,还包括:The video generating method according to any one of claims 1 to 5, wherein after the acquiring the selected audio and the standard action corresponding to each time node in the audio, the method further includes:
    展示倒计时界面,并开始倒计时;Show the countdown interface and start counting down;
    当倒计时结束时,开始播放所述音频。When the countdown ends, the audio begins to play.
  7. 根据权利要求1-6任一项所述的视频生成方法,其特征在于,所述识别在所述标准动作的展示过程中采集到的视频画面帧中的人体动作之后,还包括:The video generating method according to any one of claims 1 to 6, wherein the recognizing the human body motion in the video frame frame collected during the display of the standard action further comprises:
    根据所述人体动作与所述标准动作之间的差异程度是否大于差异阈值,判断所述人体动作与所述标准动作是否匹配。And determining whether the human body action matches the standard action according to whether the degree of difference between the human body action and the standard action is greater than a difference threshold.
  8. 根据权利要求1-7任一项所述的视频生成方法,其特征在于,所述若所述人体动作与所述标准动作匹配之后,还包括:The video generating method according to any one of claims 1 to 7, wherein if the human body action matches the standard action, the method further includes:
    根据所述人体动作与所述标准动作之间的差异程度,生成所述人体动作的动作评价信息。The motion evaluation information of the human body motion is generated according to the degree of difference between the human body motion and the standard motion.
  9. 一种视频生成装置,其特征在于,所述装置包括:A video generating device, the device comprising:
    选择模块,用于获取选定的音频,以及所述音频中各时间节点对应的标准动作;a selection module for acquiring selected audio and standard actions corresponding to each time node in the audio;
    采集模块,用于当开始播放所述音频时,开始采集视频画面帧;An acquisition module, configured to start collecting video frame frames when starting to play the audio;
    展示模块,用于根据预设提前时长,在所述音频播放至每一个时间节点之前,开始展示对应的标准动作;a display module, configured to start displaying corresponding standard actions before the audio is played to each time node according to a preset advance time;
    识别模块,用于识别在所述标准动作的展示过程中采集到的视频画面帧中的人体动作;An identification module, configured to identify a human body motion in a video frame frame collected during the display of the standard action;
    控制模块,用于在所述人体动作与所述标准动作匹配时,结束所述标准动作的展示过程;a control module, configured to end a display process of the standard action when the human body action matches the standard action;
    生成模块,用于当所述音频播放结束时,根据采集的视频画面帧和所述音频生成目标视频。And a generating module, configured to generate a target video according to the collected video picture frame and the audio when the audio playing ends.
  10. 根据权利要求9所述的视频生成装置,其特征在于,所述展示模块,包括:The video generating apparatus according to claim 9, wherein the display module comprises:
    处理子模块,用于针对每一个时间节点,将所述时间节点与所述提前时长之差,作为起始时刻;a processing submodule, configured, for each time node, a difference between the time node and the advance time as a starting time;
    控制子模块,用于从所述起始时刻开始,展示所述标准动作的示意图,并控制所述标准动作的示意图沿预设轨迹移动。And a control submodule, configured to display a schematic diagram of the standard action from the start time, and control a schematic diagram of the standard action to move along a preset trajectory.
  11. 根据权利要求10所述的视频生成装置,其特征在于,所述展示模块,还包括:The video generating apparatus according to claim 10, wherein the display module further comprises:
    停止子模块,用于当所述标准动作的示意图移动至所述预设轨迹终点时,若未识别到与所述标准动作匹配的人体动作,停止展示所述标准动作的示意图。The stop sub-module is configured to stop displaying the schematic diagram of the standard action if the human body action matching the standard action is not recognized when the schematic diagram of the standard action moves to the end point of the preset track.
  12. 根据权利要求10或11所述的视频生成装置,其特征在于,所述控制子模块,具体用于:The video generating apparatus according to claim 10 or 11, wherein the control submodule is specifically configured to:
    从多个待选轨迹中,确定用于对所述标准动作的示意图进行展示的预设轨迹;所述预设轨迹不同于相邻时间节点对应标准动作的示意图进行展示的轨迹;Determining, from a plurality of candidate trajectories, a preset trajectory for displaying a schematic diagram of the standard action; the preset trajectory is different from a trajectory displayed by a schematic diagram corresponding to a standard action of an adjacent time node;
    控制所述标准动作的示意图,以预设速度和方向,沿所述预设轨迹移动。A schematic diagram of controlling the standard action is performed along the preset trajectory at a preset speed and direction.
  13. 根据权利要求12所述的视频生成装置,其特征在于,所述控制子模块,还用于:The video generating apparatus according to claim 12, wherein the control submodule is further configured to:
    在所述预设轨迹存在正在展示的示意图时,根据所述预设轨迹中,正在展示的示意图的数量和预设轨迹的长度,缩小所述预设轨迹正在展示的示意图以及所述标准动作的示意图的尺寸,以使所述预设轨迹中相邻两示意图之间的距离大于或等于阈值距离。When the preset trajectory has a schematic diagram being displayed, according to the number of the schematic diagrams being displayed and the length of the preset trajectory, the schematic diagram of the preset trajectory being displayed and the standard motion are reduced. The size of the schematic is such that the distance between two adjacent schematics in the predetermined trajectory is greater than or equal to a threshold distance.
  14. 根据权利要求9-13任一项所述的视频生成装置,其特征在于,所述装置还包括:The video generating apparatus according to any one of claims 9 to 13, wherein the apparatus further comprises:
    展示播放模块,用于在所述获取选定的音频,以及所述音频中各时间节点对应的标准动作之后,展示倒计时界面,并开始倒计时,当倒计时结束时,开始播放所述音频。The display playing module is configured to display a countdown interface after the selected audio and the standard action corresponding to each time node in the audio, and start counting down, and when the countdown ends, start playing the audio.
  15. 根据权利要求9-14任一项所述的视频生成装置,其特征在于,所述装置还包括:The video generating apparatus according to any one of claims 9 to 14, wherein the apparatus further comprises:
    判断模块,用于在所述识别在所述标准动作的展示过程中采集到的视频画面帧中的人体动作之后,根据所述人体动作与所述标准动作之间的差异程度是否大于差异阈值,判断所述人体动作与所述标准动作是否匹配。a determining module, configured to determine, according to the human body motion in the video frame frame collected during the displaying of the standard action, whether the difference between the human motion and the standard motion is greater than a difference threshold, It is determined whether the human body action matches the standard action.
  16. 根据权利要求9-15任一项所述的视频生成装置,其特征在于,所述装置还包括:The video generating apparatus according to any one of claims 9 to 15, wherein the apparatus further comprises:
    评价信息生成模块,用于在人体动作与所述标准动作匹配之后,根据所述人体动作与所述标准动作之间的差异程度,生成所述人体动作的动作评价信息。The evaluation information generating module is configured to generate motion evaluation information of the human body motion according to a degree of difference between the human body motion and the standard motion after the human body motion is matched with the standard motion.
  17. 一种电子设备,其特征在于,包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为上述电子设备的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,用于执行权利要求1-8任一项所述的视频生成方法。An electronic device, comprising: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside the space enclosed by the housing, and the processor and the memory are disposed on the circuit board; a circuit for powering each circuit or device of the above electronic device; a memory for storing executable program code; the processor running a program corresponding to the executable program code by reading executable program code stored in the memory, for A video generation method according to any one of claims 1-8.
  18. 一种非临时性计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-8任一项所述的视频生成方法。A non-transitory computer readable storage medium having stored thereon a computer program, wherein the program is executed by a processor to implement the video generating method according to any one of claims 1-8.
  19. 一种计算机程序产品,其特征在于,当所述计算机程序产品中的指令由处理器执行时,执行如权利要求1-8任一项所述的视频生成方法。A computer program product, wherein the video generation method according to any one of claims 1-8 is performed when an instruction in the computer program product is executed by a processor.
PCT/CN2018/098600 2017-11-23 2018-08-03 Video generation method and device, and electronic apparatus WO2019100755A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711184350.8A CN107952238B (en) 2017-11-23 2017-11-23 Video generation method and device and electronic equipment
CN201711184350.8 2017-11-23

Publications (1)

Publication Number Publication Date
WO2019100755A1 true WO2019100755A1 (en) 2019-05-31

Family

ID=61961759

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/098600 WO2019100755A1 (en) 2017-11-23 2018-08-03 Video generation method and device, and electronic apparatus

Country Status (2)

Country Link
CN (1) CN107952238B (en)
WO (1) WO2019100755A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107952238B (en) * 2017-11-23 2020-11-17 香港乐蜜有限公司 Video generation method and device and electronic equipment
CN107920269A (en) * 2017-11-23 2018-04-17 乐蜜有限公司 Video generation method, device and electronic equipment
CN109525891B (en) * 2018-11-29 2020-01-21 北京字节跳动网络技术有限公司 Multi-user video special effect adding method and device, terminal equipment and storage medium
CN109621425B (en) * 2018-12-25 2023-08-18 广州方硅信息技术有限公司 Video generation method, device, equipment and storage medium
CN112399234B (en) * 2019-08-18 2022-12-16 聚好看科技股份有限公司 Interface display method and display equipment
CN113678137B (en) * 2019-08-18 2024-03-12 聚好看科技股份有限公司 Display apparatus
CN110971963A (en) * 2019-12-31 2020-04-07 维沃移动通信有限公司 Video playing control method, electronic equipment and storage medium
CN112604260B (en) * 2020-11-16 2022-04-26 广州博冠智能科技有限公司 Dance analysis guidance method and device for group dance
CN113596353A (en) * 2021-08-10 2021-11-02 广州艾美网络科技有限公司 Somatosensory interaction data processing method and device and somatosensory interaction equipment
CN113395462B (en) * 2021-08-17 2021-12-14 腾讯科技(深圳)有限公司 Navigation video generation method, navigation video acquisition method, navigation video generation device, navigation video acquisition device, server, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201349264Y (en) * 2008-12-30 2009-11-18 深圳市同洲电子股份有限公司 Motion image processing device and system
US20120108334A1 (en) * 2010-10-28 2012-05-03 Konami Digital Entertainment Co., Ltd. Game device, control method for a game device, and a non-transitory information storage medium
CN102724449A (en) * 2011-03-31 2012-10-10 青岛海信电器股份有限公司 Interactive TV and method for realizing interaction with user by utilizing display device
CN104462535A (en) * 2014-12-24 2015-03-25 北京奇艺世纪科技有限公司 Push information exhibiting method and device
CN107952238A (en) * 2017-11-23 2018-04-24 乐蜜有限公司 Video generation method, device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106843709B (en) * 2015-12-04 2020-04-14 阿里巴巴集团控股有限公司 Method and device for displaying display object according to real-time information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201349264Y (en) * 2008-12-30 2009-11-18 深圳市同洲电子股份有限公司 Motion image processing device and system
US20120108334A1 (en) * 2010-10-28 2012-05-03 Konami Digital Entertainment Co., Ltd. Game device, control method for a game device, and a non-transitory information storage medium
CN102724449A (en) * 2011-03-31 2012-10-10 青岛海信电器股份有限公司 Interactive TV and method for realizing interaction with user by utilizing display device
CN104462535A (en) * 2014-12-24 2015-03-25 北京奇艺世纪科技有限公司 Push information exhibiting method and device
CN107952238A (en) * 2017-11-23 2018-04-24 乐蜜有限公司 Video generation method, device and electronic equipment

Also Published As

Publication number Publication date
CN107952238B (en) 2020-11-17
CN107952238A (en) 2018-04-24

Similar Documents

Publication Publication Date Title
WO2019100757A1 (en) Video generation method and device, and electronic apparatus
WO2019100755A1 (en) Video generation method and device, and electronic apparatus
WO2019100756A1 (en) Image acquisition method and apparatus, and electronic device
WO2019100753A1 (en) Video generation method and apparatus, and electronic device
WO2019100754A1 (en) Human body movement identification method and device, and electronic device
RU2679316C1 (en) Method and device for playback of video content from any location and at any time
CN110944727B (en) System and method for controlling virtual camera
US9071808B2 (en) Storage medium having stored information processing program therein, information processing apparatus, information processing method, and information processing system
CN107096221B (en) System and method for providing time-shifted intelligent synchronized gaming video
US20170151484A1 (en) Virtual reality sports training systems and methods
US11826628B2 (en) Virtual reality sports training systems and methods
TW202105331A (en) Human body key point detection method and device, electronic device and storage medium
CN107251550B (en) Information processing program and information processing method
CN109640125B (en) Video content processing method, device, server and storage medium
JP2018506205A (en) Control virtual reality content
JP7466730B2 (en) Program, electronic device and data recording method
JP2017000545A (en) Information processor, information processing system, information processing method, and information processing program
CN113453034A (en) Data display method and device, electronic equipment and computer readable storage medium
KR20170078176A (en) Apparatus for presenting game based on action recognition, method thereof and computer recordable medium storing the method
US10083519B2 (en) Information processing apparatus and information processing method for specifying a composition of a picture
US20130005434A1 (en) Game device, control method for game device, and information recording medium
KR20210067875A (en) Electronic device for tagging event on sports play video and operating method thereof
JP2010137097A (en) Game machine and information storage medium
JP2014023745A (en) Dance teaching device
CN111179694B (en) Dance teaching interaction method, intelligent sound box and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18880910

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18880910

Country of ref document: EP

Kind code of ref document: A1