Fitness video transition processing method and device, electronic equipment and storage medium

By segmenting video clips in fitness videos and adding transition animations, users' interruption problems when looking for suitable videos are solved, achieving continuity and rhythm of exercises, and improving fitness effects and user experience.

CN118984408APending Publication Date: 2024-11-19BEIJING XIAOTANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411100278.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-11-19

AI Technical Summary

Technical Problem

In existing fitness video applications, users need to frequently pause and switch when looking for suitable videos, resulting in interruption of exercise activities and the length of long videos makes it difficult for users to jump.

Method used

By adding transition mode to fitness videos, setting the corresponding exercise rhythm, obtaining video information of the current video, dividing long video clips into sub-snippets, and inserting transition animations or videos between adjacent video clips to ensure continuous exercise Sex and rhythm.

Benefits of technology

It realizes that users can find videos without interrupting exercise, maintain the rhythm of exercise, and improve exercise results and user interest.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118984408A_ABST
    Figure CN118984408A_ABST
Patent Text Reader

Abstract

The invention relates to a transition processing method and device for a fitness video, electronic equipment and a storage medium, and the method comprises the steps: obtaining the video information of a current fitness video; when the number of the video clips forming the current fitness video is multiple, a transition animation or transition video with a preset duration is added between every two adjacent video clips; when the duration of the video clip exceeds a first duration threshold, segmenting the video clip into a plurality of sub-clips; adding a transition animation or transition video with a preset duration between two adjacent sub-segments; when there is one video clip forming the current fitness video and the duration exceeds a first duration threshold, segmenting the video clip into a plurality of sub-clips; and adding a transition animation or transition video with a preset duration between two adjacent sub-segments. According to the embodiment of the invention, the user does not need to interrupt the exercise activity when taking exercise along with the fitness video, and can keep a certain rhythm, so that the exercise effect is improved, and the fitness interest of the user is promoted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of video processing, and in particular to a method, device, electronic equipment and storage medium for processing transitions of a fitness video. Background Art

[0002] With the improvement of living standards, people are generally concerned about their physical health. Whether it is the elderly, middle-aged people or young people, they generally have fitness methods that are suitable for them. For example, retired elderly people are very fond of square dancing, which not only exercises the body but also improves social interaction, making up for the lack of social activities of the elderly. However, the elderly who can participate in square dancing usually have good physical strength or extroverted personalities. For the elderly with poor physical strength or introverted personalities, this type of elderly people prefer some fitness activities that can be carried out in quiet and private places. For middle-aged and young people, some people prefer fitness venues, but for some people who are limited by time and energy, home is a better choice.

[0003] With the development of the Internet, applications (APPs) and video technology, more and more application content is presented to users in the form of videos. In particular, as people of all ages pay more and more attention to fitness and fitness is becoming more and more common, video content providers provide a variety of fitness content videos to meet this situation. For those elderly people who are not physically strong enough and introverted, or most middle-aged and young people, they can use video applications to exercise in any suitable place for them. Therefore, the rise of such video applications meets the fitness needs of many people.

[0004] Although current video applications provide a variety of fitness content for people's fitness needs, such as equipment applications, fitness movements and training methods, yoga, meditation, Tai Chi, Tai Chi sword and other types of fitness activities, such as different durations of 2 minutes, 5 minutes, 30 minutes, or different exercise intensities and calorie consumption, thus meeting the needs of different users, some problems also arise. For example, in order to achieve better fitness results, users need to spend time to find videos that suit them from a large number of videos of many types, different durations, and different exercise intensities. After following a video, you have to stop and continue to look for the next video, resulting in interruptions in fitness activities. This interruption not only interrupts the continuity of fitness, but also easily distracts users when looking for videos. For another example, when users choose a video to jump, they usually have to watch the video first to understand the content of the video, especially the type of movement, intensity, etc., which further increases the time it takes for users to select videos. For another example, the duration of current videos varies, and for some longer videos, some users have difficulty following. Summary of the invention

[0005] In view of the technical problems existing in the prior art, the present invention proposes a method, device, electronic device and storage medium for processing transitions of fitness videos. While providing users with continuously played fitness videos, the present invention sets a corresponding exercise rhythm for users by adding transition modes in fitness videos.

[0006] In order to solve the above technical problem, according to one aspect of the present invention, the present invention provides a method for processing transitions of a fitness video, which includes the following steps:

[0007] Obtaining video information of a current fitness video, wherein the current fitness video is a collection of one or more continuously played video segments obtained based on current progress information of a user in a fitness plan, and the video information at least includes the number of video segments constituting the current fitness video and the duration of each video segment;

[0008] When there are multiple video clips constituting the current fitness video, adding a transition animation or transition video of a preset duration between two adjacent video clips;

[0009] Check whether the duration of each video segment exceeds a first duration threshold;

[0010] In response to the duration of the video segment exceeding a first duration threshold, dividing the video segment whose duration exceeds the first duration threshold into a plurality of sub-segments;

[0011] Add a transition animation or transition video with a preset duration between two adjacent sub-clips;

[0012] When there is only one video segment constituting the current fitness video and the duration exceeds a first duration threshold, dividing the video segment into a plurality of sub-segments; and

[0013] Add a transition animation or transition video with a preset duration between two adjacent sub-clips.

[0014] According to another aspect of the present invention, the present invention also provides a transition processing device for a fitness video, comprising:

[0015] a data acquisition module configured to acquire video information of a current fitness video, wherein the current fitness video is a collection of one or more continuously played video clips acquired based on current progress information of a user in a fitness plan, and the video information at least includes the number of video clips constituting the current fitness video and the duration of each video clip;

[0016] a transition condition module, which is connected to the data acquisition module and is configured to count the number of video segments constituting the current fitness video and the duration of each video segment, and to check whether the duration of each video segment exceeds a first duration threshold;

[0017] a video segmentation module connected to the transition condition module and configured to, in response to a duration of the video segment exceeding a first duration threshold, segment the video segment whose duration exceeds the first duration threshold into a plurality of sub-segments; and

[0018] A transition video insertion module is connected to the transition condition module and the video segmentation module respectively, and is configured to add a transition animation or a transition video of a preset duration between two adjacent video segments when there are multiple video segments constituting the current fitness video; and / or, to add a transition animation or a transition video of a preset duration between two adjacent sub-segments.

[0019] According to another aspect of the present invention, the present invention further provides an electronic device, comprising a processor and a memory storing computer program instructions; when the electronic device executes the computer program instructions, the aforementioned fitness video transition processing method is implemented.

[0020] According to another aspect of the present invention, the present invention further provides a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the aforementioned fitness video transition processing method is implemented.

[0021] According to another aspect of the present invention, the present invention further provides a computer program product, which includes computer program instructions, and when the computer program instructions are executed by a processor, the aforementioned fitness video transition processing method is implemented.

[0022] The embodiment of the present invention not only provides users with continuously played fitness videos, but also sets a corresponding exercise rhythm for users by adding a transition method in the fitness video, so that users do not need to interrupt their exercise activities to find fitness videos, and can maintain a certain rhythm, which alleviates the intensity of continuous following jumps, thereby improving the exercise effect and promoting users' fitness interest. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The preferred embodiments of the present invention will be further described in detail below with reference to the accompanying drawings, wherein:

[0024] Figure 1 is a flow chart of a fitness video transition processing method according to an embodiment of the present invention;

[0025] Figure 2is a flow chart of a method for dividing a video segment having a duration exceeding a first duration threshold into a plurality of sub-segments according to an embodiment of the present invention;

[0026] Figure 3 is a flow chart of a processing method for adding transition videos according to Embodiment 1 of the present invention;

[0027] Figure 4 is a flow chart of a processing method for adding transition videos according to Embodiment 2 of the present invention;

[0028] Figure 5 is a flow chart of a method for processing transition videos according to Embodiment 3 of the present invention;

[0029] Figure 6 is a principle block diagram of a transition processing device for a fitness video according to an embodiment of the present invention; and

[0030] Figure 7 FIG. 4 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0032] In the following detailed description, reference may be made to the various specification drawings that are part of the present application and are used to illustrate specific embodiments of the present application. In the accompanying drawings, similar reference numerals describe substantially similar components in different figures. The various specific embodiments of the present application are described below in sufficient detail so that a person of ordinary skill in the art with relevant knowledge and skills in the art can implement the technical solutions of the present application. It should be understood that other embodiments may also be used or structural, logical or electrical changes may be made to the embodiments of the present application.

[0033] The present invention relates to a processing method and device applied to a video platform, and the video platform includes but is not limited to a video application (APP) applied to a smart phone, a website provided in the form of a web page applied to a desktop computer, a tablet computer, a laptop computer, etc. Users of the video platform include video providing users and ordinary users who watch videos. In the following description, unless otherwise specified, the "user" in the present invention refers to an ordinary user who watches videos.

[0034] After a user registers as a user on the video platform, in order to better serve the user, the video platform monitors and records the user's behavior and video playback data on the platform and stores them in the database to form a video playback record database. Each video playback data obtained is called a record, which includes the video ID, time and other related information played by the user. Therefore, the video playback record database stores a historical video playback record table for each user. Each record records the user's playback behavior on the video platform and the data of a corresponding video, including the recording time, video ID, and related information reflecting the video playback. Video IDs include video names, video IDs (ID), or video providing user names, etc. Relevant information used to reflect video playback includes, for example, the start time of playback, the end time of playback, etc.

[0035] In order to facilitate understanding of the content of each video and for related business processing, the video platform sets a variety of tags for each video in the video library, and each tag corresponds to a video feature, which includes, for example, the following types of video features and corresponding feature information: For example, "fitness activity type" is a video feature, and its corresponding feature information includes "fitness exercise", "belly slimming exercise", "body shape", "lazy exercise", "cervical spine exercise", "yoga", "Pilates", "whole body sweating" or "patting exercise", etc. "Exercise type" is a video feature, and its corresponding feature information includes "aerobic exercise", "anaerobic exercise", "strength training", etc., and similarly includes "action type", "video duration", "video background", "exercise intensity", "calorie consumption", "targeted parts", etc. Each tag of each video records one or more feature information corresponding to a video feature. For example, the "exercise intensity" tag records the specific intensity of the video, such as medium, low or high, and the "calorie consumption" tag records the specific number of calories if the user follows the video, such as 100 kcal or 200 kcal, etc.

[0036] The feature information of the aforementioned various video features of each video is stored in the video information library in the form of tags, and corresponds to the video identifier one by one. Therefore, when a video identifier of a video is obtained, the feature information of the corresponding video feature can be found by searching the video information library based on the video identifier.

[0037] In order to solve the problem that users need to stop and search for videos that meet their preferences when exercising through videos on an application video platform, which leads to interruption of exercise activities, the present invention provides users with a fitness plan, and provides the user with the currently applied fitness video according to the user's fitness plan each time the user goes online.

[0038] The fitness plan can be formulated by the user, or by the video platform according to the user's historical behavior and playback data on the video platform. In one embodiment, the video platform provides users with a variety of fitness plan templates. After logging into the video platform, the user can set various parameter items provided by the fitness plan template according to their own situation, thereby obtaining a fitness plan.

[0039] The fitness plan template is, for example, a fitness plan suitable for various groups of people determined according to the prior knowledge of experts, and the various groups of people can be determined by multiple dimensional information, such as age, gender, occupation, and weight. The fitness plan includes a total number of times or a total time span, such as 30 times, half a year, one month, three months, etc. The fitness plan can also include multiple stages, and for a fitness plan with a total time span, its various stages can be divided by time nodes. For example, for a 6-month fitness plan, the same day of each month from the start date is used as a time node to divide the entire fitness plan into 6 stages. For a fitness plan with a total number of times, its various stages can be obtained by dividing the total number of times by the number of times. For example, for a 30-time fitness plan, every 5 times is used as a segmentation point to divide the entire fitness plan into 6 stages. The above time nodes and the number of times are called progress nodes. Each stage can also further include a secondary progress node, thereby dividing the stage into multiple sub-stages.

[0040] The fitness plan may also include fitness index data corresponding to each progress node, such as tasks to be completed and / or goals to be achieved at each stage, and the fitness index may be, for example, the shortest exercise duration, the minimum calorie consumption, the intensity to be taken during exercise, etc. The above progress nodes and corresponding fitness index data are collectively referred to as progress information.

[0041] When making a fitness plan, the user can first specify one from multiple fitness plan templates and set the aforementioned progress nodes and corresponding fitness index data. In another embodiment, the video platform provides a template evaluation function. When the user is unable to determine which fitness plan template to specify, the user can enter the template evaluation page provided by the video platform to evaluate and determine a fitness plan template that suits their needs. The template evaluation page configures various options, such as age, gender, occupation, weight, etc. The video platform determines a fitness plan template for the user based on the various options configured by the user.

[0042] The user then sets the fitness plan template to obtain a personalized fitness plan. The template provides multiple video features for each progress node. When setting the fitness plan template, the user sets multiple video features for each progress node based on his / her exercise preferences and video preferences, so that each progress node corresponds to a video feature set.

[0043] In another embodiment, the video platform counts the user's video preference features and exercise preference features from the user's historical video playback records, thereby obtaining a feature set of user preferences. Then, the user's personal information is obtained, and a fitness plan template adapted to the personal information is matched based on a preset fitness plan template, and then the corresponding progress node and the corresponding fitness index are determined based on the exercise preference feature, and then the video features that meet the fitness index of each progress node are selected from the user's preferred feature set, thereby forming a complete fitness plan. In another embodiment, a large model can be used to construct prompt information based on the user's personal information and the user's preferred feature set, and the large model outputs a complete fitness plan.

[0044] Whether it is a fitness plan formulated by the user or a fitness plan generated by the video platform for the user, each progress node corresponds to a set of video features.

[0045] The fitness plan is stored in the database as a kind of personal information of the user, and the user can view it through the user's personal interface after logging into the video platform. In addition, the video platform records the user's application data of the fitness plan, such as recording the user's playback information of the fitness video or video set generated based on the fitness plan, such as the playback time, the fitness video played, etc., and based on the progress information in the fitness plan, determines the stage of the user's fitness video playback behavior at the time of recording, thereby marking the progress information in the fitness plan to obtain progress marking information.

[0046] When the user is detected to be online, the current progress information of the user is determined by querying the progress mark information of the fitness plan, and the corresponding video feature set is obtained. Based on the video feature set, multiple fitness videos are obtained to obtain a candidate video set, and one or more candidate videos are selected from the candidate video set to obtain the current fitness video of the user. Therefore, the current fitness video of the user is a fitness video obtained based on the current progress information in the user's fitness plan or a fitness video collection consisting of multiple continuously played video clips. For the convenience of explanation, the fitness video or the fitness video collection consisting of multiple continuously played video clips is collectively referred to as a fitness video below.

[0047] The present invention adds a rest segment, a content overview preview segment or a short transition segment in a fitness video by adding transitions, thereby achieving the purpose of setting the exercise rhythm for the user. Figure 1 , Figure 1 is a flow chart of a fitness video transition processing method according to an embodiment of the present invention, the method comprising the following steps:

[0048] Step S101, obtaining video information of a current fitness video, wherein the video information at least includes the number of video segments constituting the current fitness video and the duration of each video segment.

[0049] Step S102, determining whether there is one video clip constituting the current fitness video, if there is one, executing step S109, if there are multiple video clips constituting the current fitness video, executing step S103.

[0050] Step S103: adding a transition animation or a transition video of a preset duration between two adjacent video clips.

[0051] Step S104, taking a video clip as a processing target.

[0052] Step S105, checking the duration T of the video segment P Is it greater than or equal to the first duration threshold T V1 , if the duration of the video segment is T P Greater than or equal to the first duration threshold T V1 In step S106, the video segment is divided into a plurality of time segments whose duration is less than a first time threshold T. V1 If the duration of the video segment T P Less than the first duration threshold T V1 , then execute step S108.

[0053] Step S107: adding a transition video of a preset duration between two adjacent sub-segments.

[0054] Step S108, determine whether there are unprocessed video clips, if yes, then return to step S104, take another video clip as the processing target for processing. If no, then illustrate that the current transition processing is completed, then end the processing flow.

[0055] Step S109, checking the duration T of the video clip P Is it greater than or equal to the first duration threshold T V1 , if the duration of the video segment is T P Greater than or equal to the first duration threshold T V1 In step S110, the video segment is divided into a plurality of time segments whose duration is less than a first time threshold T. V1 If the duration of the video segment T P Less than the first duration threshold T V1 , it means that the current video clip is short and no transition video needs to be added, so the processing flow ends.

[0056] Step S111, adding a transition video of preset duration between two adjacent sub-segments, and then ending the processing flow.

[0057] In this embodiment, according to the number and duration of video clips constituting the fitness video, a transition video of a certain duration is added between the video clips. When the total duration of the fitness video is long, the user's exercise rhythm can be eased by adding a transition video, so that the user can take a short break when the transition video is played after following the current video clip, so as to prepare for entering the next exercise environment.

[0058] In this embodiment, the transition video may be a transition animation of a shorter duration (e.g., 5 seconds), the animation content may be randomly selected from a preset animation resource library, and the playback of the animation content may randomly adopt one or more combinations of a variety of animation effects.

[0059] The transition video may also be a slightly longer video, for example, 15 seconds. The video may be a recorded video or a composite video, and its content may be a variety of content that serves to relax and unwind, for example, a recorded landscape video, a composite video composed of a background image, specific sound effects, background music, and motivational copy, and the like.

[0060] In order to effectively set the exercise rhythm, the present invention also provides a first duration threshold T V1 , which is an empirical value, representing the longest follow-jump exercise duration of the user. When the user's exercise duration exceeds the longest follow-jump exercise duration, the user will become physically overly fatigued and may want to give up exercise. Since the duration of the video clips that make up the fitness video varies, it is necessary to check whether the duration of each video clip exceeds the first duration threshold T. V1 , when the duration T of the current video segment is determined in step S105 and step S109 P Is it greater than or equal to the first duration threshold T V1 In step S106 and step S110, the current video segment is divided into multiple segments with a duration less than the first duration threshold T V1 sub-fragment of .

[0061] See also Figure 2 , Figure 2 The present invention is a flow chart of a method for dividing a video segment whose duration exceeds a first duration threshold into a plurality of sub-segments according to an embodiment of the present invention, wherein the video segment whose duration exceeds the first duration threshold is used as a target video segment, and the method comprises the following steps:

[0062] Step S201: The duration T of the target video segment is P Pre-divided into multiple sub-segments with a preliminary duration T cut .

[0063] Step S202: based on the preliminary durations T of the plurality of sub-segments cut Determine a pre-segmentation point P in the target video segment t .

[0064] Step S203: determining a plurality of action segmentation points P in the target video segment according to the actions of the characters in the video. a .

[0065] Step S204, respectively compare the action segmentation points P a And each pre-segmentation point P t .

[0066] Step S205: each pre-segmentation point P t The action segmentation point P with the smallest time difference a Determine a split point P.

[0067] Step S206 divides the video segment into a plurality of sub-segments based on the segmentation point P.

[0068] In one embodiment, the initial duration of the sub-segment is T cut It can be less than or equal to the first duration threshold T V1 For example, at the first duration threshold T V1 When the sub-segment duration is 5 minutes, the initial duration of the sub-segment is T cut For example, it is 5 minutes, 4 minutes or 3 minutes. In step S201, a preset value, such as 5 minutes, is used as the initial preset duration, and the number N of sub-segments that can be divided is calculated according to formula 1-1.

[0069] N = ROUNDUP (T p / T cut )1-1

[0070] In one embodiment, the test T p / T cut Is the remainder of less than the sub-segment duration threshold, such as 3 minutes? p / T cut The remainder is less than the sub-segment duration threshold, the difference M between the two is calculated, and then a certain amount of time is taken from the preliminary durations of other sub-segments to compensate for the sub-segment.

[0071] For example, for a 12-minute video, when the sub-segments are segmented according to the initial duration of 5 minutes, the number of sub-segments N = ROUNDUP (12 / 5) = 3. That is, there are 3 sub-segments. The initial durations of two sub-segments are 5 minutes, and the initial duration of one sub-segment is 2 minutes. The initial duration of 2 minutes is less than the sub-segment duration threshold 3. Therefore, in one embodiment, 1 minute can be taken from the initial durations of the other two sub-segments to compensate for the 2-minute sub-segment, so that the initial durations of the three sub-segments are all 4 minutes.

[0072] In another embodiment, the initial duration T of different available sub-segments may be cut Calculate the number of sub-segments, and use the number of sub-segments and the preliminary duration of each sub-segment determined by a calculation method with the smallest difference in sub-segment duration and the least number of sub-segments as the result of step S201. Still taking a 12-minute video as an example, when the sub-segments are divided according to the preliminary duration of 5 minutes, the number of sub-segments N = ROUNDUP (12 / 5) = 3. Two of the 3 sub-segments have a preliminary duration of 5 minutes, and the other has a duration of 2 minutes, and the difference in the duration of the sub-segments is 5-2 = 3 minutes; when the sub-segments are divided according to the preliminary duration of 4 minutes, the number of sub-segments N = ROUNDUP (12 / 4) = 3. The preliminary durations of the 3 sub-segments are all 4 minutes, and the difference in the duration of the sub-segments is 4-4 = 0 minutes; when the sub-segments are divided according to the preliminary duration of 3 minutes, the number of sub-segments N = ROUNDUP (12 / 3) = 4. However, the number of sub-segments is 4, which is greater than the previous two. Therefore, the preliminary duration of 4 minutes and 3 sub-segments obtained by the second method is used as the calculation result of step S201.

[0073] In step S202, based on the preliminary durations T of the plurality of sub-segments cut Determine a pre-segmentation point P in the target video segment t , thus obtaining the corresponding pre-segmentation point P ti For example, there are N sub-segments, and the pre-segmentation point P t The time series [T cut ,2*T cut ,……,(n-1)T cut ].

[0074] In step S203, the target video clip can be segmented into multiple action sub-segments according to action segmentation techniques, such as based on body posture, skeleton features, deep learning, etc., and each action sub-segment corresponds to a segmentation point P a , the corresponding duration is T a , thus obtaining multiple action segmentation points P a The time series [T a1 ,T a2,……,T am ].

[0075] In one embodiment, in step S204, a pre-segmentation point P is calculated using formula 1-2. t and its nearby action segmentation point P a The time difference δ.

[0076] δ=|T cut -T a | 1-2

[0077] In step S205, the multiple time difference values ​​δ are sorted, and the action segmentation point P with the smallest time difference δ is selected. a As with the pre-segmentation point P t The corresponding accurate segmentation points, that is, the insertion points for inserting the transition animation or the transition video, are obtained by the above method.

[0078] By using the above method, when the duration of a video segment is greater than the first duration threshold T V1 When exercising, it can be divided into multiple sub-segments and a transition video can be inserted between two adjacent sub-segments, so that the exercise rhythm can still be set for the user when an original video segment is too long.

[0079] Since the current fitness video generated for the user according to the fitness plan is usually composed of multiple original videos, and these original videos are provided by the content provider users in the video platform, there is no uniform standard for the video length. According to this feature, in a further embodiment of the present invention, the category of the added transition video is determined according to the duration of the video clip in the current fitness video. In this embodiment, the category of the transition video is, for example, a shorter transition animation, a slightly longer first transition video for rest and relaxation, a second transition video including an overview of the content of the next video clip, a third transition video including an overview of the overall content of the current fitness video, and so on. The duration of the second transition video and the third transition video can be long or short, with the main purpose of clearly and completely conveying the content to the user. Therefore, in the embodiment of the present invention, the category of the transition video is, for example, a shorter transition animation, a first transition video with a slightly longer duration for rest and relaxation, a second transition video including an overview of the content of the next video clip, and a third transition video including an overview of the overall content of the current fitness video. Figure 1 When adding transition videos in step S103, step S107 and step S111, different transition videos are added according to different video lengths. For the convenience of explanation, in the following description, the sub-segments obtained by segmentation are also referred to as video segments. For the specific processing method of adding transition videos, please refer to the detailed description of the following embodiment.

[0080] Embodiment 1

[0081] Figure 3 is a flow chart of a processing method for adding a transition video according to Embodiment 1 of the present invention. In this embodiment, when determining to add a transition video, the method includes the following steps:

[0082] Step S301, respectively obtain the duration of two adjacent video segments.

[0083] Step S302, check whether the duration of two adjacent video clips is less than or equal to the second duration threshold; wherein, the second duration threshold represents that the duration of the video clip is short, which is not enough to provide the user with a rest and relaxation time, such as 3 minutes, which is less than or equal to the first duration threshold. If the duration of two adjacent video clips is less than or equal to the second duration threshold, then in step S303, a transition animation of a first preset duration is added between the two adjacent video clips, and the first preset duration is, for example, 5 seconds. If the duration of one or both of the two adjacent video clips is greater than the second duration threshold, execute step S304.

[0084] Step S304: adding a first transition video of a second preset duration between the two adjacent video segments. The second preset duration is, for example, 15 seconds, which is greater than the first preset duration.

[0085] In this embodiment, when the duration of two adjacent video clips is relatively short, a transition animation with a shorter duration is added; if one of the video clips is relatively long, a transition video with a rest duration is added, so that the user can rest and relax for a certain length of time between following the two fitness videos.

[0086] Embodiment 2

[0087] Figure 4 is a flow chart of a processing method for adding a transition video according to Embodiment 2 of the present invention. In this embodiment, when determining to add a transition video, the method includes the following steps:

[0088] Step S401, respectively obtain the duration of two adjacent video segments.

[0089] Step S402, checks whether the duration of two adjacent video clips is less than or equal to the second duration threshold; wherein, the second duration threshold represents that the duration of the video clip is short, which is not enough to provide the user with rest and relaxation time, such as 3 minutes, which is less than or equal to the first duration threshold. If the duration of two adjacent video clips is less than or equal to the second duration threshold, then in step S403, a transition animation of a first preset duration is added between the two adjacent video clips, and then the processing flow ends. The first preset duration is, for example, 5 seconds. If the duration of one or both of the two adjacent video clips is greater than the second duration threshold, execute step S404.

[0090] Step S404, determine whether the duration of the second video segment is greater than or equal to the third duration threshold, if yes, then execute step S405. If not, then execute step S408, add a first transition video of the second preset duration between two adjacent video segments, and then end the processing flow.

[0091] Step S405: Obtain basic content information of the second video clip.

[0092] In step S406, the basic content information of the second video clip is added to the first transition video.

[0093] In step S407, the first transition video including the basic content information of the second video segment is added between two adjacent video segments, and then the processing flow ends.

[0094] The basic content information in step S405 includes text expressing basic item data, and the basic items include one or more of duration, calorie consumption, movement intensity (such as high / low / medium intensity), movement variation type (such as more / less / moderate movement), and core training parts (such as waist and abdomen / shoulder and neck / whole body).

[0095] In this embodiment, when the second video clip of two adjacent video clips is longer, the basic content information of the second video clip is added to the first transition video between the two video clips, so that the user can understand the content summary of the next video clip to follow during the rest process, so that the user can exercise at a more moderate pace and have some anticipation for the next exercise content.

[0096] In another embodiment, the basic content information of the video clip can also be made into a second transition video, such as a picture or animation, which stays for an appropriate length of time, such as 5 seconds, and is played in sequence with the first transition video. In this embodiment, the total length of the two videos does not exceed a preset value, such as 20 seconds.

[0097] In another embodiment, when the basic content information of a video clip is obtained, one or more key frame images are extracted from the second video clip, and when the basic content information of the second video clip is added to the first transition video, the key frame images are added to the first transition video. Alternatively, when the basic content information of the video clip is made into the second transition video, the key frame images are used as background images, or the key frame images are added to the background images, and the added key frame images may provide users with visual content summary information.

[0098] Embodiment 3

[0099] Figure 5is a flow chart of a method for processing a transition video according to Embodiment 3 of the present invention. In this embodiment, according to Figure 1 After step S101 obtains the video information of the current fitness video and before step S102, the following steps are also included:

[0100] Step S501, calculating the total duration of the current fitness video.

[0101] Step S502, checking whether the total duration of the current fitness video is greater than or equal to the fourth duration threshold. If the total duration of the current fitness video is greater than or equal to the fourth duration threshold, in step S503, obtaining basic content information of all video clips constituting the current fitness video, and then executing step S504. If the total duration of the current fitness video is less than the fourth duration threshold, executing Figure 1 Step S102.

[0102] Step S504: Create a third transition video based on the basic content information of all video clips.

[0103] Step S505, adding the third transition video to the first video clip of the current fitness video, and then executing Figure 1 Step S102 in .

[0104] In this embodiment, the fourth duration threshold is, for example, a longer duration, such as 30 minutes, 40 minutes, 60 minutes, etc. Since the total duration of the current fitness video is relatively long, in order to enable the user to have some understanding of the fitness activities to be carried out before starting fitness, this embodiment makes the basic content information of all video clips into a third transition video and places it before a video clip. The third transition video can be, for example, a whole information formed by the combination of the basic information of each video clip, which can be displayed on the background image in the form of text, charts, pictures or voice, such as the total duration of the fitness plan, total calories, exercise intensity curve, action change type, and core exercise part information. Among them, the whole information can be the total data of each basic item data, such as total duration, total calories; based on the same basic item data of all video clips, a statistical table / graph of the corresponding basic item is made, and the whole information is displayed in the form of a graph / table. For example, the exercise intensity of each video clip is statistically made into an exercise intensity curve graph, the key frame of the exercise part of each video clip is proposed, and the character image is extracted from it, and the character exercise image group is formed in chronological order, etc.

[0105] See also Figure 6 , Figure 6It is a principle block diagram of a transition processing device for a fitness video according to an embodiment of the present invention, and the processing device is applied to a video platform to implement transition processing. The transition processing device 10 for a fitness video of this embodiment includes a data acquisition module 11, a transition condition module 12, a video segmentation module 13, and a transition video insertion module 14, wherein the data acquisition module 11 is configured to obtain video information of a current fitness video being played by a user, wherein the current fitness video is a collection of one or more continuously played video clips obtained based on the current progress information of the user in the fitness plan, and the video information includes at least the number of video clips constituting the current fitness video and the duration of each video clip.

[0106] The transition condition module 12 is connected to the data acquisition module 11, the video segmentation module 13, and the transition video insertion module 14, respectively, and is configured to count the number of video segments constituting the current fitness video and the duration of each video segment, and to check whether the duration of each video segment exceeds a first duration threshold. When the number of video segments of the current fitness video exceeds one, a notification is sent to the transition video insertion module 14, and when the duration of a video segment exceeds the first duration threshold, a notification is sent to the video segmentation module 13.

[0107] When receiving the notification sent by the transition condition module 12 , the video segmentation module 13 divides the video segment whose duration exceeds the first duration threshold into a plurality of sub-segments in response to the duration of the video segment exceeding the first duration threshold, and then sends a notification to the transition video insertion module 14 .

[0108] When the transition video insertion module 14 receives the notification sent by the transition condition module 12, in response to the fact that there are multiple video segments constituting the current fitness video, a transition animation or a transition video of a preset duration is added between two adjacent video segments; in response to the notification received from the video segmentation module 13, a transition animation or a transition video of a preset duration is added between two adjacent sub-segments.

[0109] Further, the transition condition module 12 checks whether the duration of two adjacent video segments is less than or equal to the second duration threshold, and sends the test result to the transition video insertion module 14. When the test result is that the duration of two adjacent video segments is less than or equal to the second duration threshold, the transition video insertion module 14 adds a transition animation of a first preset duration between the two adjacent video segments in response to the duration of the two adjacent video segments being less than or equal to the second duration threshold, wherein the second duration threshold is less than or equal to the first duration threshold; when the test result is that the duration of one or both of the two adjacent video segments is greater than the second duration threshold and less than the first duration threshold, the transition video insertion module 14 adds a first transition video of a second preset duration between the two adjacent video segments in response to the test result.

[0110] In another embodiment, when the transition condition module 12 detects that the duration of one or both of the two adjacent video segments is greater than the second duration threshold and less than the first duration threshold, it further detects whether the duration of the second video segment is greater than or equal to the third duration threshold, and sends the test result to the transition video insertion module 14. When the test result is that the duration of the second video segment is greater than or equal to the third duration threshold, the transition video insertion module 14 obtains the basic content information of the second video segment; adds the basic content information of the second video segment to the first transition video; or, makes the basic content information of the second video segment into a second transition video, and plays it sequentially with the first transition video.

[0111] In another further embodiment, the transition video insertion module 14 extracts one or more key frame images from the second video clip while obtaining the basic content information of the second video clip, and adds the key frame images to the first transition video while adding the basic content information of the second video clip to the first transition video.

[0112] In another embodiment, the transition condition module 12 further calculates the total duration of the current fitness video, checks whether the total duration of the current fitness video is greater than or equal to the fourth duration threshold, and sends the test result to the transition video insertion module 14. When the test result is that the total duration of the current fitness video is greater than or equal to the fourth duration threshold, the transition video insertion module 14 obtains the basic content information of all video segments constituting the current fitness video in response to the test result, creates a third transition video based on the basic content information of all video segments, and adds the third transition video before the first video segment of the current fitness video.

[0113] In a further embodiment, the transition video insertion module 14 calculates the total data of each basic item; or / and makes a statistical table / graph of the corresponding basic item based on the same basic item data of all video clips; and makes a third transition video based on the total data and / or statistical table / graph of each basic item.

[0114] In a specific embodiment, the step of the video segmentation module 13 dividing a video segment having a duration exceeding a first duration threshold into a plurality of sub-segments includes:

[0115] Taking a video segment whose duration exceeds a first duration threshold as a target video segment, pre-segmenting the duration of the target video segment into a plurality of sub-segments with preliminary durations;

[0116] Determining a pre-segmentation point in the target video segment based on the preliminary durations of the plurality of sub-segments;

[0117] Determining a plurality of action segmentation points in the target video segment according to the actions of the characters in the video;

[0118] comparing the action segmentation point with each pre-segmentation point respectively; and

[0119] An action segmentation point having the smallest time difference with each pre-segmentation point is determined as a segmentation point; wherein the plurality of segmentation points divide the video segment into a plurality of sub-segments.

[0120] The specific processing process of the transition processing device of the fitness video can be found in the description of the aforementioned method part, which will not be repeated here.

[0121] The present invention also provides an electronic device, comprising a processor and a memory storing a computer program instruction set; when the processor executes the computer program instruction set, the method for processing the transition of the fitness video in any of the above embodiments is implemented. Figure 7 FIG. 1 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. Figure 7 As shown, the electronic device may include a processor 601 and a memory 602 storing computer program instructions.

[0122] Specifically, the processor 601 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.

[0123] The memory 602 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 602 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 602 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 602 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 602 is a non-volatile solid-state memory.

[0124] The memory 602 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory 602 includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it can be operated to perform the operations described in any of the video transition processing methods based on a fitness program of the present invention.

[0125] The processor 601 reads and executes the computer program instructions stored in the memory 602 to implement any one of the fitness video transition processing methods in the above embodiments.

[0126] In one example, the electronic device may further include a communication interface 603 and a bus 610. The processor 601, the memory 602, and the communication interface 603 are connected through the bus 610 and complete the communication between each other. The communication interface 603 is mainly used to realize the communication between the modules, devices, units and / or devices in the embodiment of the present invention. The bus 610 includes hardware, software or both, and couples the components of the online data traffic billing device to each other. For example, but not limitation, the bus may include an accelerated graphics port (AGP) or other graphics bus, an enhanced industrial standard architecture (EISA) bus, a front-end bus (FSB), a hypertransport (HT) interconnect, an industrial standard architecture (ISA) bus, an infinite bandwidth interconnect, a low pin count (LPC) bus, a memory bus, a micro channel architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standard association local (VLB) bus or other suitable buses or a combination of two or more of these. Where appropriate, the bus 610 may include one or more buses. Although embodiments of the present invention describe and illustrate a particular bus, the present invention contemplates any suitable bus or interconnect.

[0127] In addition, in combination with the transition processing method of the fitness video in the above embodiment, the embodiment of the present invention can provide a computer-readable storage medium and a computer program product. The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by the processor, any one of the transition processing methods of the fitness video in the above embodiment is implemented. The computer-readable storage medium is, for example, the various memories mentioned above. The computer program product described in the present invention can be a software package or code segment that can be downloaded via a computer network such as the Internet, an intranet, etc.

[0128] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Computer-readable storage medium" may include any medium capable of storing or transmitting information, may include a non-transient computer-readable storage medium, such as including an electronic circuit, a semiconductor memory device, a ROM, a flash memory, an erasable ROM (EROM), a floppy disk, a CD-ROM, an optical disk, a hard disk, an optical fiber medium, may also include a radio frequency (RF) link, etc.

[0129] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.

[0130] The above embodiments are only used to illustrate the present invention, but not to limit the present invention. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the scope of the present invention. Therefore, all equivalent technical solutions should also fall within the scope of the present invention.

Claims

1. A method for processing transitions of a fitness video, characterized in that: include: Obtaining video information of a current fitness video, wherein the current fitness video is a collection of one or more continuously played video segments obtained based on current progress information of a user in a fitness plan, and the video information at least includes the number of video segments constituting the current fitness video and the duration of each video segment; When there are multiple video clips constituting the current fitness video, adding a transition animation or transition video of a preset duration between two adjacent video clips; Check whether the duration of each video segment exceeds a first duration threshold; In response to the duration of the video segment exceeding a first duration threshold, dividing the video segment whose duration exceeds the first duration threshold into a plurality of sub-segments; Add a transition animation or transition video with a preset duration between two adjacent sub-clips; When there is only one video segment constituting the current fitness video and the duration thereof exceeds a first duration threshold, dividing the video segment into a plurality of sub-segments; as well as Add a transition animation or transition video with a preset duration between two adjacent sub-clips.

2. The method for processing transitions of a fitness video according to claim 1, characterized in that: Further including: Check whether the durations of two adjacent video segments are both less than or equal to a second duration threshold; In response to the duration of two adjacent video segments being less than or equal to a second duration threshold, adding a transition animation of a first preset duration between the two adjacent video segments, wherein the second duration threshold is less than or equal to the first duration threshold; as well as In response to the fact that the duration of one or both of two adjacent video segments is greater than the second duration threshold and less than the first duration threshold, a first transition video with a second preset duration is added between the two adjacent video segments.

3. The method for processing transitions of fitness videos according to claim 2, characterized in that: Further including: Checking whether the duration of the second video segment is greater than or equal to a third duration threshold; In response to the duration of the second video segment being greater than or equal to a third duration threshold, acquiring basic content information of the second video segment; as well as The basic content information of the second video clip is added to the first transition video; or, the basic content information of the second video clip is made into a second transition video, and is played sequentially with the first transition video.

4. The method for processing transitions of a fitness video according to claim 3, characterized in that: While acquiring the basic content information of the second video clip, one or more key frame images are extracted from the second video clip, and while adding the basic content information of the second video clip to the first transition video, the key frame images are added to the first transition video.

5. The method for processing transitions of fitness videos according to claim 1, characterized in that: Further including: Calculate the total duration of the current fitness video; Check whether the total duration of the current fitness video is greater than or equal to a fourth duration threshold; In response to the total duration of the current fitness video being greater than or equal to a fourth duration threshold, acquiring basic content information of all video clips constituting the current fitness video; Producing a third transition video based on the basic content information of all video clips; and The third transition video is added before the first video segment of the current fitness video.

6. The method for processing transitions of a fitness video according to any one of claims 3 to 5, characterized in that: The basic content information includes text expressing basic item data, and the basic items include one or more of duration, calorie consumption, action intensity, action variation type, and core exercise parts.

7. The method for processing transitions of a fitness video according to claim 6, characterized in that: Before making the third transition video based on the basic content information of all video clips, it includes: Calculate the total data for each basic item; or / and Based on the same basic item data of all video clips, statistical tables / graphs of corresponding basic items are made; Correspondingly, a third transition video is produced based on the total data and / or statistical tables / graphs of each basic item.

8. The method for processing transitions of fitness videos according to claim 1, characterized in that: The step of dividing a video segment having a duration exceeding a first duration threshold into a plurality of sub-segments comprises: Taking a video segment whose duration exceeds a first duration threshold as a target video segment, pre-segmenting the duration of the target video segment into a plurality of sub-segments with preliminary durations; Determining a pre-segmentation point in the target video segment based on the preliminary durations of the plurality of sub-segments; Determining a plurality of action segmentation points in the target video segment according to the actions of the characters in the video; comparing the action segmentation point with each pre-segmentation point respectively; and Determine the action segmentation point with the smallest time difference from each pre-segmentation point as a segmentation point; The plurality of segmentation points divide the video segment into a plurality of sub-segments.

9. A transition processing device for a fitness video, characterized in that: include: a data acquisition module configured to acquire video information of a current fitness video, wherein the current fitness video is a collection of one or more continuously played video clips acquired based on current progress information of a user in a fitness plan, and the video information at least includes the number of video clips constituting the current fitness video and the duration of each video clip; a transition condition module, which is connected to the data acquisition module and is configured to count the number of video segments constituting the current fitness video and the duration of each video segment, and to check whether the duration of each video segment exceeds a first duration threshold; a video segmentation module connected to the transition condition module and configured to, in response to a duration of the video segment exceeding a first duration threshold, segment the video segment whose duration exceeds the first duration threshold into a plurality of sub-segments; and A transition video insertion module is connected to the transition condition module and the video segmentation module respectively, and is configured to add a transition animation or a transition video of a preset duration between two adjacent video segments when there are multiple video segments constituting the current fitness video; and / or, to add a transition animation or a transition video of a preset duration between two adjacent sub-segments.

10. An electronic device, characterized in that: The electronic device comprises a processor and a memory storing computer program instructions; when the electronic device executes the computer program instructions, the method for processing the transition of the fitness video as described in any one of claims 1 to 8 is implemented.

11. A computer-readable storage medium, characterized in that: The computer storage medium stores computer program instructions, which, when executed by a processor, implement the method for processing transitions of a fitness video according to any one of claims 1 to 8.

12. A computer program product, characterized in that It includes computer program instructions, which, when executed by a processor, implement the fitness video transition processing method as described in any one of claims 1-8.