Template processing method, device and equipment, computer readable storage medium and product
By identifying the time range of highlight content in video templates and the template generation protocol, the problem of insufficient video template quality detection is solved, and the quality and consistency of video generation are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2026-03-13
AI Technical Summary
The existing technology does not detect the quality of video templates, which makes it impossible for other users to generate video content that is similar in effect to the first video.
By acquiring the first video generated based on preset templates and materials, identifying the time range of highlight content, determining the template quality using template generation protocols, and pushing the template to the target user group when the conditions are met.
Accurately identify the quality of video templates to ensure that users can generate video content similar to the first video, thereby improving the quality and consistency of video generation.
Smart Images

Figure CN121665024A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of data processing technology, and in particular to a template processing method, apparatus, device, computer-readable storage medium, and product. Background Technology
[0002] In related technologies, users can generate video templates in preset applications according to their actual needs. These templates can include video processing elements such as special effects, filters, and transitions. After generating the video template, users can create a first video based on the template and initial source material, including the video template's anchor points within the first video, and then publish it. Other users can then use this video template to generate their own videos based on the anchor points included in the first video.
[0003] However, currently, before a video template is published, only the information about the template is checked, not its quality. Therefore, other users may not be able to generate video content similar to the first video based on that template. Summary of the Invention
[0004] This disclosure provides a template processing method, apparatus, device, computer-readable storage medium, and product to solve the technical problem that other users are unable to generate video content similar to the first video based on the video template due to the lack of quality testing of the video template.
[0005] In a first aspect, embodiments of this disclosure provide a template processing method, including:
[0006] Obtain the first video generated based on the preset template and the first source material;
[0007] Based on the preset template and the second material, a second video is generated, wherein the material complexity of the second material is lower than that of the first material;
[0008] Based on the first video and the second video, determine at least one time range corresponding to the highlight content in the first video and the second video;
[0009] Based on the at least one time range and the template generation protocol corresponding to the preset template, the template quality of the preset template is determined. The template generation protocol includes at least one video processing element associated with the preset template and a time range associated with the at least one video processing element.
[0010] If the template quality of the preset template meets the preset push conditions, the preset template is pushed to the target user group.
[0011] Secondly, embodiments of this disclosure provide a template processing apparatus, comprising:
[0012] The acquisition module is used to acquire the first video generated based on a preset template and the first source material;
[0013] The generation module is used to generate a second video based on the preset template and the second material, wherein the material complexity of the second material is lower than that of the first material;
[0014] The determining module is configured to determine at least one time range corresponding to the highlight content in the first video and the second video based on the first video and the second video;
[0015] A processing module is configured to determine the template quality of the preset template based on the at least one time range and the template generation protocol corresponding to the preset template, wherein the template generation protocol includes at least one video processing element associated with the preset template and a time range associated with the at least one video processing element.
[0016] The push module is used to push the preset template to the target user group in response to the preset template quality meeting the preset push conditions.
[0017] Thirdly, embodiments of this disclosure provide an electronic device, including: a processor and a memory;
[0018] The memory stores computer-executed instructions;
[0019] The processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the template processing method as described in the first aspect and various possible designs of the first aspect.
[0020] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the template processing method described in the first aspect and various possible designs of the first aspect.
[0021] Fifthly, embodiments of this disclosure provide a computer program product, including a computer program that, when executed by a processor, implements the template processing method described in the first aspect and various possible designs of the first aspect.
[0022] The template processing method, apparatus, device, computer-readable storage medium, and product provided in this embodiment generate a second video based on a preset template associated with the first video and preset second materials after acquiring a first video. At least one time range is determined based on at least one first video frame that meets preset filtering conditions and at least one second video frame that meets preset filtering conditions in the second video. The template quality corresponding to the preset template is determined based on this time range and the template generation protocol associated with the preset template. This allows for accurate identification of the template quality of the preset template. Furthermore, the preset template can be pushed to a target user group based on its template quality. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 A flowchart illustrating the template processing method provided in this embodiment of the disclosure;
[0025] Figure 2 This is a schematic diagram illustrating an application scenario provided by an embodiment of this disclosure;
[0026] Figure 3 A flowchart illustrating a template processing method provided in yet another embodiment of this disclosure;
[0027] Figure 4 A first video illustration provided for an embodiment of this disclosure;
[0028] Figure 5 A flowchart illustrating a template processing method provided in yet another embodiment of this disclosure;
[0029] Figure 6 This is a schematic diagram of the template processing device provided in an embodiment of the present disclosure;
[0030] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0031] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0032] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0033] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.
[0034] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0035] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.
[0036] To address the technical issue of the limited variety of video template distribution methods, this disclosure provides a template processing method, apparatus, device, computer-readable storage medium, and product.
[0037] It should be noted that the template processing methods, apparatus, devices, computer-readable storage media and products provided in this disclosure can be applied to any scenario of video template quality verification.
[0038] Users can generate video templates in preset applications according to their actual needs. These templates can include video processing elements such as special effects, filters, and transitions. After generating the video template, users can publish a first video based on the template and initial source material, including the video template within the first video.
[0039] In related technologies, before a video template is published, only information checks are typically performed on the template itself, without any quality assessment. Since the visual effect of the first video is determined by both the video template and the initial source material, it's impossible to accurately assess the content quality of the video template based solely on the first video's visual quality. Therefore, after the video template is published, other users may be unable to generate videos identical or similar to the first video based on that template.
[0040] In the process of solving the above technical problems, it was found through research that in order to accurately identify the template quality of video templates, after obtaining the first video generated based on the preset template and the first material, a second video can be generated based on the preset template and the preset second material with relatively simple content.
[0041] The system identifies highlight segments in both the first and second videos. It then determines the overlapping time ranges of these highlight segments. For each overlapping time range, it identifies the corresponding video processing element in the template generation protocol associated with the preset template. Finally, it determines whether the highlight effect of the highlight segment was obtained through processing by this video processing element. Based on the processing results, the system can then determine the template quality of the preset template.
[0042] Furthermore, after determining the template quality of each preset template, the preset template can be pushed to the user based on the template quality.
[0043] Figure 1 This is a flowchart illustrating the template processing method provided in the embodiments of this disclosure, as shown below. Figure 1 As shown, the method includes:
[0044] Step 101: Obtain the first video generated based on the preset template and the first source material.
[0045] The execution subject of this embodiment is a template processing device. This template processing device can be coupled to a server. It can then acquire a first video and generate a second video based on a preset template associated with the first video. The template quality of the preset template is verified according to the template generation protocol corresponding to the first video, the second video, and the preset template.
[0046] In this embodiment, the user can generate a preset template in a preset application according to actual needs. The preset template may include video processing elements such as special effects, filters, and transitions. After generating the video template, the user can publish a first video generated based on the preset template and a preset first source material. This first source material can be the original source content selected by the user according to actual needs. The template processing device can acquire this first video.
[0047] Since the visual effect presented in the first video is determined by a combination of the preset template and the first source material, it is impossible to determine whether the video effect of the first video is the result of the preset template's video processing or the effect produced by the first source material. Therefore, it is necessary to test the quality of the preset template.
[0048] Step 102: Based on the preset template and the second material, generate a second video, wherein the material complexity of the second material is lower than that of the first material.
[0049] Optionally, to accurately determine the template quality of the preset template, a second source material can be pre-set. This second source material is typically less complex than the first source material. For example, the second source material could be a solid color image or a portrait image with a simple background. Because the second source material itself does not possess dynamic or vibrant display effects, it can more accurately showcase the video processing effect of the preset template. Therefore, by comparing the first and second videos, it is possible to accurately determine whether the video effect of the first video is the same as the video processing effect of the preset template or generated by the first source material.
[0050] Furthermore, after obtaining the first video, a second video can be generated based on the preset template associated with the first video and the preset second material.
[0051] For example, a second source material can be added to the corresponding position in a preset template, and the second source material can be processed based on the video processing elements at the corresponding position to obtain a second video.
[0052] Step 103: Based on the first video and the second video, determine at least one time range corresponding to the highlight content in the first video and the second video.
[0053] In this embodiment, after acquiring the first video and the second video respectively, the highlight content in the first video and the second video is determined, and at least one time range is determined based on the highlight content.
[0054] Specifically, highlight content in the first and second videos can be identified. Therefore, the at least one time range can be the overlapping time range corresponding to the highlight content in the first and second videos.
[0055] By identifying highlight content, it can be further determined whether the highlight content is generated based on a preset template or based on the content of the source material itself. This allows for the assessment of the template quality based on the determined results.
[0056] Step 104: Based on the at least one time range and the template generation protocol corresponding to the preset template, determine the template quality of the preset template. The template generation protocol includes at least one video processing element associated with the preset template and a time range associated with the at least one video processing element.
[0057] In this embodiment, the preset template can be generated by the user based on a template generation protocol. This template generation protocol may include at least one video processing element associated with the preset template and a time range associated with the video processing element. For example, the template generation protocol may include a timeline, on which different video processing elements can be distributed, each covering a corresponding time range. These video processing elements include, but are not limited to, special effects elements, filter elements, transition elements, sticker elements, graffiti elements, etc., and this disclosure does not impose any limitations on them.
[0058] Furthermore, after determining at least one time range, for each time range, a video processing element matching that time range can be determined based on the template generation protocol. Then, based on this video processing element and the video effects associated with the time range, the template quality corresponding to the preset template can be accurately identified.
[0059] Step 105: In response to the preset template quality meeting the preset push conditions, the preset template is pushed to the target user group.
[0060] In this embodiment, preset push conditions can be set in advance. These preset push conditions can be to push preset templates with high template quality. For example, preset templates whose highlight effects are produced by preset templates for all highlight content can be pushed.
[0061] Once it is determined that the quality of the preset template meets the preset push conditions, the preset template can be pushed to the target user group.
[0062] As a feasible approach, preset templates of varying quality can be pushed to different user groups.
[0063] Alternatively, you can determine the template category of a preset template and push it to user groups that match the template category.
[0064] Figure 2This is a schematic diagram of an application scenario provided by an embodiment of this disclosure. After obtaining the first video 21, a preset template resource can be obtained based on the content acquisition channel associated with the preset template carried by the first video 21, and a second video 22 can be generated. The template quality of the second video template is identified based on the first video 21, the second video 22, and the template generation protocol 23 associated with the preset template. When the template quality meets the preset push conditions, the preset template is pushed to the target user group.
[0065] The template processing method provided in this embodiment generates a second video based on a preset template associated with the first video and preset second materials after acquiring the first video. At least one time range is determined based on at least one first video frame that meets preset filtering conditions and at least one second video frame that meets preset filtering conditions in the second video. The template quality corresponding to the preset template is determined based on this time range and the template generation protocol associated with the preset template. This allows for accurate identification of the template quality of the preset template. When the preset template meets preset push conditions, it is pushed to the user, enabling the user to generate video content similar to the first video based on the preset template.
[0066] Figure 3 This is a flowchart illustrating a template processing method provided in yet another embodiment of the present disclosure. Based on any of the above embodiments, such as... Figure 3 As shown, the first video includes the content acquisition channel associated with the preset template. Step 101 includes:
[0067] Step 301: Obtain the template resource content associated with the preset template based on the content acquisition channel.
[0068] Step 302: Generate the second video based on the template resource content and the second material.
[0069] In this embodiment, the first video includes the content acquisition channel associated with the preset template. This content acquisition channel can be displayed in the form of anchor points.
[0070] Therefore, after obtaining the first video, template resource content associated with the preset template can be obtained based on the content acquisition channel.
[0071] Furthermore, after obtaining the template resource content, the second video can be generated based on the template resource content and the pre-stored second material. Specifically, the second material can be added to the corresponding position in the preset template, and processed based on the video processing elements at that position to obtain the second video.
[0072] Figure 4 A first video illustration provided for an embodiment of this disclosure, such as... Figure 4As shown, the first video 41 includes a content acquisition channel 42 associated with a preset template. This content acquisition channel 42 can be displayed as an anchor point.
[0073] The template processing method provided in this embodiment carries a preset template-associated content acquisition channel in the first video. After obtaining the first video, the template resource content can be quickly obtained through the content acquisition channel, and then the second video can be generated based on the template resource content and the pre-stored second material.
[0074] Furthermore, based on any of the above embodiments, step 302 includes:
[0075] The usage status of multiple preset video generation devices is determined, wherein the usage status includes idle status and occupied status.
[0076] The template resource content is sent to any video generation device that is in an idle state, so that the video generation device generates the second video based on the template resource content and the preset second material.
[0077] Obtain the second video sent by the video generation device.
[0078] In this embodiment, since there are a large number of preset templates, in order to meet the verification operation of multiple preset templates, multiple video generation devices can be set in advance, and the second video can be generated through multiple video generation devices.
[0079] As one feasible approach, when multiple preset templates exist simultaneously, they can be added to a message queue according to their verification time. Then, the preset templates in the message queue can be verified sequentially.
[0080] Furthermore, when validating the preset template, the usage status of multiple preset video generation devices can be determined, including idle and occupied states. Based on this usage status, the video generation device currently in an idle state is identified. The template resource content is sent to any video generation device in an idle state, so that the video generation device generates a second video based on the template resource content and preset second material. The second video sent by the video generation device is then retrieved.
[0081] The template processing method provided in this embodiment improves template verification efficiency by pre-setting multiple video generation devices. After obtaining the template resource content, it can select an idle video generation device from among these devices to generate a second video. Furthermore, by setting multiple video devices, it can support simultaneous quality verification operations on multiple preset templates.
[0082] Furthermore, based on any of the above embodiments, step 102 includes:
[0083] Identify at least one first video frame in the first video that meets preset filtering conditions and at least one second video frame in the second video that meets preset filtering conditions;
[0084] At least one time range is determined based on at least one first video frame and at least one second video frame.
[0085] In this embodiment, to accurately determine the template quality of the preset template, at least one first video frame in the first video and at least one second video frame in the second video that meet the preset filtering conditions can be identified. The preset filtering conditions can be used to filter highlight frames with relatively high display quality.
[0086] Optionally, when the highlight frames in the first video and the second video overlap, it can indicate that there may be video processing elements for video processing in the preset template within that time range. Therefore, by determining at least one first video frame and at least one second video frame respectively, at least one time range can be determined based on at least one first video frame and at least one second video frame.
[0087] The template processing method provided in this embodiment can accurately extract highlight video frames based on pre-set filtering conditions, thereby enabling accurate identification of time ranges based on highlight video frames.
[0088] Optionally, based on any of the above embodiments, determining at least one first video frame in the first video that satisfies the preset filtering conditions and at least one second video frame in the second video that satisfies the preset filtering conditions includes:
[0089] The first video is subjected to frame extraction operation according to preset frame extraction parameters to obtain multiple first video frames to be filtered, wherein the frame extraction parameters include frame extraction frequency and frame extraction number.
[0090] For each first video frame to be screened, a preset image recognition algorithm is used to identify multiple dimensions of image parameters associated with the first video frame to be screened.
[0091] The image parameters of multiple dimensions associated with the first video frame to be screened are weighted according to the weight parameters corresponding to the image parameters of each dimension to obtain the first weighted result.
[0092] The first video frame to be screened whose first weighted result is greater than a preset threshold is determined as the first video frame.
[0093] as well as,
[0094] The second video is subjected to frame extraction operation according to preset frame extraction parameters to obtain multiple second video frames to be filtered, wherein the frame extraction parameters include frame extraction frequency and frame extraction number.
[0095] For each second video frame to be screened, a preset image recognition algorithm is used to identify multiple dimensions of image parameters associated with the second video frame to be screened.
[0096] The image parameters of multiple dimensions associated with the second video frame to be screened are weighted according to the weight parameters corresponding to the image parameters of each dimension to obtain the second weighted result.
[0097] The second video frame to be screened is determined as the second video frame if the second weighted result is greater than the preset threshold.
[0098] In this embodiment, for the first video, frame extraction can be performed according to preset frame extraction parameters to obtain multiple first video frames to be filtered. The frame extraction parameters include the frame extraction frequency and the number of frames extracted. For example, the first video can be extracted at a frame extraction parameter of 10 frames per second.
[0099] Furthermore, for each first video frame to be screened, a preset image recognition algorithm is used to identify multiple dimensions of image parameters associated with the first video frame to be screened. For example, the algorithm can identify and score the color vibrancy, clarity, face quality, aesthetic quality, and meaningless images (images with unclear subject matter, out-of-focus images, low-resolution images, etc.) associated with the first video frame to be screened, and use the scores of the above multiple dimensions as multiple dimensions of image parameters.
[0100] Furthermore, the image parameters of multiple dimensions associated with the first video frame to be filtered can be weighted according to the weight parameters corresponding to the image parameters of each dimension to obtain a first weighted result. The first video frame to be filtered whose first weighted result is greater than a preset threshold is determined as the first video frame. For example, the score range of the weighted result can be (0-1), and the first video frame to be filtered with a score greater than 0.9 can be determined as the first video frame.
[0101] Optionally, for the second video, frame extraction can be performed according to preset frame extraction parameters to obtain multiple second video frames to be filtered. The frame extraction parameters include the frame extraction frequency and the number of frames extracted. For example, the second video can be extracted at a frame extraction parameter of 10 frames per second.
[0102] Furthermore, for each second video frame to be screened, a preset image recognition algorithm identifies multiple dimensions of image parameters associated with the second video frame. For example, it can identify and score aspects such as color vibrancy, sharpness, face quality, aesthetic quality, and meaningless images (images with unclear subject matter, out-of-focus images, low-resolution images, etc.) associated with the second video frame, and use the scores of these multiple dimensions as multiple dimensions of image parameters. A weighted operation is performed on the multiple dimensions of image parameters associated with the second video frame to obtain a second weighted result. Second video frames whose second weighted result is greater than a preset threshold are determined as the second video frames. For example, the score range of the weighted result can be (0-1), and second video frames with a score greater than 0.9 can be determined as the second video frames.
[0103] Furthermore, based on any of the above embodiments, determining at least one time range based on at least one first video frame and at least one second video frame includes:
[0104] Determine at least one first time range corresponding to the at least one first video frame, and determine at least one second time range corresponding to the at least one second video frame.
[0105] Determine at least one overlapping time range that coincides with the at least one first time range and the at least one second time range.
[0106] The at least one overlapping time range is defined as the at least one time range.
[0107] In this embodiment, the at least one first video frame can be at least one highlight frame in the first video. The at least one second video frame can be at least one highlight frame in the second video. When the highlight frames in the first video and the second video overlap, it indicates that there may be video processing elements for video processing in the preset template within that time range.
[0108] Optionally, at least one first video frame in the first video may correspond to at least one first time range, and at least one second video frame in the second video may correspond to at least one second time range. After determining at least one first time range and at least one second time range respectively, at least one overlapping time range can be determined as at least one time range.
[0109] The template processing method provided in this embodiment identifies highlight frames in the first video and the second video respectively, determines the time range in which the highlight frames overlap as at least one time range, and then determines the video processing elements in the template generation protocol based on the time range. This allows the method to determine whether the highlight effect of the highlight frame is generated by a preset template or by the source content, and accurately determines the template quality of the preset template based on the processing result.
[0110] Figure 5 This is a flowchart illustrating a template processing method provided in yet another embodiment of the present disclosure. Based on any of the above embodiments, such as... Figure 5 As shown, step 103 includes:
[0111] Step 501: For each time range, determine the video processing element that matches the time range in the template generation protocol.
[0112] Step 502: Determine whether the video processing effect corresponding to the video processing element matches the video effect corresponding to the time range in the second video, and obtain the processing result.
[0113] Step 503: Determine the template quality corresponding to the preset template based on the processing results corresponding to at least one time range.
[0114] In this embodiment, since the template generation protocol includes multiple video processing elements and the time range corresponding to each video processing element, after determining at least one time range, the video processing element matching the time range can be identified in the template to be verified.
[0115] Furthermore, the video processing effect corresponding to the video processing element can be determined. It is then determined whether the video processing effect corresponding to the video processing element matches the video effect corresponding to the time range in the second video, thus obtaining the processing result.
[0116] It is understandable that when the video processing effect corresponding to a video processing element matches the video effect associated with the second video, it indicates that the video effect was generated by the video processing result of the preset template. Conversely, it indicates that the video processing effect was generated by the effect of the material content itself.
[0117] By determining whether the video processing effect corresponding to the video processing element matches the video effect corresponding to the time range in the second video, the template quality corresponding to the preset template can be accurately determined based on the processing result.
[0118] The template processing method provided in this embodiment determines the video processing elements in the template generation protocol based on the time range, and determines whether the video processing effect corresponding to the video processing element matches the video effect corresponding to the time range in the second video. In this way, it can determine whether the highlight effect of the highlight frame is generated by the preset template or by the material content, and accurately determine the template quality of the preset template based on the processing result.
[0119] Furthermore, based on any of the above embodiments, step 503 includes:
[0120] Determine the target number of time ranges within which the video processing effects corresponding to the video processing elements match the video effects associated with the second video.
[0121] Determine the target proportion of the target quantity within at least one time period.
[0122] The template quality corresponding to the preset template is determined based on the target ratio and the preset ratio threshold.
[0123] In this embodiment, when the video processing effect corresponding to a video processing element matches the video effect associated with the second video, it indicates that the video effect was generated by the video processing result of the preset template. Therefore, if the video processing effects corresponding to most video processing elements match the video effect associated with the second video, it indicates that most of the highlight effects in the first and second videos were generated by the preset template, and that the template quality of the preset template is high.
[0124] Therefore, a target number of time ranges within which the video processing effect corresponding to the video processing element matches the video effect associated with the second video can be determined. A target proportion of this target number within at least one time range is determined. Based on the target proportion and a preset proportion threshold, the template quality corresponding to the preset template is determined. For example, this proportion threshold can be 80%. Alternatively, the user can adjust this proportion threshold according to actual needs. This disclosure does not impose any limitations in this regard.
[0125] For example, the number of time ranges can be 10. If the target number of time ranges in which the video processing effect corresponding to the video processing element matches the video effect associated with the second video is 9, then 90% of the highlight effects are generated by the preset template. If this target proportion is greater than the preset proportion threshold, it indicates that the template quality of the preset template is high.
[0126] The template processing method provided in this embodiment determines the target number of time ranges in which the video processing effect corresponding to a video processing element matches the video effect associated with the second video, and determines the target proportion of the target number within at least one time range. Based on the target proportion and a preset proportion threshold, the template quality corresponding to the preset template is determined. This enables accurate identification of the template quality of templates with verification templates.
[0127] Figure 6 This is a schematic diagram of the template processing device provided in the embodiments of this disclosure, as shown below. Figure 6 As shown, the device includes: an acquisition module 61, a generation module 62, a determination module 63, a processing module 64, and a push module 65. The acquisition module 61 is used to acquire a first video generated based on a preset template and first source material. The generation module 62 is used to determine at least one time range corresponding to highlight content in the first video and the second video, based on the first video and the second video. The determination module 63 is used to determine at least one time range corresponding to highlight content in the first video and the second video, based on the first video and the second video. The processing module 64 is used to determine the template quality of the preset template based on the at least one time range and a template generation protocol corresponding to the preset template, wherein the template generation protocol includes at least one video processing element associated with the preset template and a time range associated with the at least one video processing element. The push module 65 is used to push the preset template to a target user group in response to the preset template quality meeting preset push conditions.
[0128] Furthermore, based on any of the above embodiments, the first video includes a content acquisition channel associated with the preset template. The acquisition module is configured to: acquire template resource content associated with the preset template based on the content acquisition channel; and generate the second video based on the template resource content and the second material.
[0129] Further, based on any of the above embodiments, the acquisition module is configured to: determine the usage status of a preset plurality of video generation devices, wherein the usage status includes an idle status and an occupied status; send the template resource content to any video generation device whose usage status is idle, so that the video generation device generates the second video based on the template resource content and the second material; and acquire the second video sent by the video generation device.
[0130] Furthermore, based on any of the above embodiments, the determining module is configured to: determine at least one first video frame in the first video that satisfies the preset filtering conditions and at least one second video frame in the second video that satisfies the preset filtering conditions;
[0131] At least one time range is determined based on at least one first video frame and at least one second video frame.
[0132] Further, based on any of the above embodiments, the determining module is configured to: perform frame extraction on the first video according to preset frame extraction parameters to obtain multiple first video frames to be filtered, wherein the frame extraction parameters include frame extraction frequency and frame extraction number. For each first video frame to be filtered, identify multiple dimensions of image parameters associated with the first video frame to be filtered using a preset image recognition algorithm. Perform a weighted operation on the multiple dimensions of image parameters associated with the first video frame to be filtered according to the weight parameters corresponding to each dimension of image parameters to obtain a first weighted result. Determine the first video frame to be filtered whose first weighted result is greater than a preset threshold as the first video frame. Also, perform frame extraction on the second video according to preset frame extraction parameters to obtain multiple second video frames to be filtered, wherein the frame extraction parameters include frame extraction frequency and frame extraction number. For each second video frame to be filtered, identify multiple dimensions of image parameters associated with the second video frame to be filtered using a preset image recognition algorithm. Perform a weighted operation on the multiple dimensions of image parameters associated with the second video frame to be filtered according to the weight parameters corresponding to each dimension of image parameters to obtain a second weighted result. The second video frame to be screened is determined as the second video frame if the second weighted result is greater than the preset threshold.
[0133] Further, based on any of the above embodiments, the determining module is configured to: determine at least one first time range corresponding to the at least one first video frame; determine at least one second time range corresponding to the at least one second video frame; determine at least one overlapping time range between the at least one first time range and the at least one second time range; and determine the at least one overlapping time range as the at least one time range.
[0134] Further, based on any of the above embodiments, the processing module is configured to: for each time range, determine video processing elements in the template to be verified that match the time range; determine whether the video processing effect corresponding to the video processing element matches the video effect corresponding to the time range in the second video, and obtain a processing result; and determine the template quality corresponding to the preset template based on the processing result corresponding to at least one time range.
[0135] Further, based on any of the above embodiments, the processing module is configured to: determine a target number of time ranges in which the video processing effect corresponding to the video processing element matches the video effect associated with the second video; determine a target proportion of the target number within at least one time range; and determine the template quality corresponding to the preset template based on the target proportion and a preset proportion threshold.
[0136] The device provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effect are similar, and will not be described again here.
[0137] To implement the above embodiments, this disclosure also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the template processing method as described in any of the above embodiments.
[0138] To implement the above embodiments, this disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements the template processing method as described in any of the above embodiments.
[0139] To implement the above embodiments, this disclosure also provides an electronic device, including: a processor and a memory;
[0140] The memory stores computer-executed instructions;
[0141] The processor executes computer execution instructions stored in the memory, causing the processor to perform the template processing method as described in any of the above embodiments.
[0142] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. The electronic device 700 can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, personal digital assistants (PDAs), portable Android devices (PADs), portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 7 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0143] like Figure 7As shown, the electronic device 700 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. The RAM 703 also stores various programs and data required for the operation of the electronic device 700. The processing unit 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0144] Typically, the following devices can be connected to I / O interface 705: input devices 706 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 707 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 708 including, for example, magnetic tapes, hard disks, etc.; and communication devices 709. Communication device 709 allows electronic device 700 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 7 An electronic device 700 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0145] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 709, or installed from storage device 708, or installed from ROM 702. When the computer program is executed by processing device 701, it performs the functions defined in the methods of embodiments of this disclosure.
[0146] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0147] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0148] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.
[0149] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0150] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0151] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".
[0152] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0153] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0154] In a first aspect, according to one or more embodiments of this disclosure, a template processing method is provided, comprising:
[0155] Obtain the first video generated based on the preset template and the first source material;
[0156] Based on the preset template and the second material, a second video is generated, wherein the material complexity of the second material is lower than that of the first material;
[0157] Based on the first video and the second video, determine at least one time range corresponding to the highlight content in the first video and the second video;
[0158] Based on the at least one time range and the template generation protocol corresponding to the preset template, the template quality of the preset template is determined. The template generation protocol includes at least one video processing element associated with the preset template and a time range associated with the at least one video processing element.
[0159] If the template quality of the preset template meets the preset push conditions, the preset template is pushed to the target user group.
[0160] According to one or more embodiments of this disclosure, the first video includes content acquisition channels associated with the preset template;
[0161] The step of generating a second video based on the preset template and preset second material includes:
[0162] The template resource content associated with the preset template is obtained based on the content acquisition channel;
[0163] The second video is generated based on the template resource content and the second material.
[0164] According to one or more embodiments of this disclosure, generating the second video based on the template resource content and preset second materials includes:
[0165] Determine the usage status of multiple preset video generation devices, wherein the usage status includes idle status and occupied status;
[0166] The template resource content is sent to any video generation device that is in an idle state, so that the video generation device generates the second video based on the template resource content and the second material;
[0167] Obtain the second video sent by the video generation device.
[0168] According to one or more embodiments of this disclosure, determining at least one time range corresponding to the highlight content in the first video and the second video based on the first video and the second video includes:
[0169] Identify at least one first video frame in the first video that meets preset filtering conditions and at least one second video frame in the second video that meets preset filtering conditions;
[0170] At least one time range is determined based on at least one first video frame and at least one second video frame.
[0171] According to one or more embodiments of this disclosure, determining at least one first video frame in the first video that satisfies preset filtering conditions and at least one second video frame in the second video that satisfies preset filtering conditions includes:
[0172] The first video is subjected to frame extraction operation according to preset frame extraction parameters to obtain multiple first video frames to be filtered, wherein the frame extraction parameters include frame extraction frequency and frame extraction number.
[0173] For each first video frame to be screened, a preset image recognition algorithm is used to identify multiple dimensions of image parameters associated with the first video frame to be screened.
[0174] The image parameters of multiple dimensions associated with the first video frame to be screened are weighted according to the weight parameters corresponding to the image parameters of each dimension to obtain the first weighted result;
[0175] The first video frame to be screened whose first weighted result is greater than a preset threshold is determined as the first video frame;
[0176] as well as,
[0177] The second video is subjected to frame extraction operation according to preset frame extraction parameters to obtain multiple second video frames to be filtered. The frame extraction parameters include frame extraction frequency and frame extraction number.
[0178] For each second video frame to be screened, a preset image recognition algorithm is used to identify multiple dimensions of image parameters associated with the second video frame to be screened.
[0179] The image parameters of multiple dimensions associated with the second video frame to be screened are weighted according to the weight parameters corresponding to the image parameters of each dimension to obtain the second weighted result;
[0180] The second video frame to be screened is determined as the second video frame if the second weighted result is greater than the preset threshold.
[0181] According to one or more embodiments of this disclosure, determining at least one time range based on at least one first video frame and at least one second video frame includes:
[0182] Determine at least one first time range corresponding to the at least one first video frame, and determine at least one second time range corresponding to the at least one second video frame;
[0183] Determine at least one overlapping time range that coincides with the at least one first time range and the at least one second time range;
[0184] The at least one overlapping time range is defined as the at least one time range.
[0185] According to one or more embodiments of this disclosure, determining the template quality corresponding to the preset template based on the at least one time range and the template generation protocol corresponding to the preset template includes:
[0186] For each time range, determine the video processing element that matches the time range in the template to be verified;
[0187] Determine whether the video processing effect corresponding to the video processing element matches the video effect corresponding to the time range in the second video, and obtain the processing result;
[0188] The template quality corresponding to the preset template is determined based on the processing results corresponding to at least one time range.
[0189] According to one or more embodiments of this disclosure, determining the template quality corresponding to a preset template based on the processing results corresponding to at least one time range includes:
[0190] Determine the target number of time ranges within which the video processing effects corresponding to the video processing elements match the video effects associated with the second video.
[0191] Determine the target proportion of the target quantity within at least one time period;
[0192] The template quality corresponding to the preset template is determined based on the target ratio and the preset ratio threshold.
[0193] Secondly, according to one or more embodiments of this disclosure, a template processing apparatus is provided, comprising:
[0194] The acquisition module is used to acquire the first video generated based on a preset template and the first source material;
[0195] The generation module is used to generate a second video based on the preset template and the second material, wherein the material complexity of the second material is lower than that of the first material;
[0196] The determining module is configured to determine at least one time range corresponding to the highlight content in the first video and the second video based on the first video and the second video;
[0197] A processing module is configured to determine the template quality of the preset template based on the at least one time range and the template generation protocol corresponding to the preset template, wherein the template generation protocol includes at least one video processing element associated with the preset template and a time range associated with the at least one video processing element.
[0198] The push module is used to push the preset template to the target user group in response to the preset template quality meeting the preset push conditions.
[0199] According to one or more embodiments of this disclosure, the first video includes content acquisition channels associated with the preset template;
[0200] The acquisition module is used for:
[0201] The template resource content associated with the preset template is obtained based on the content acquisition channel;
[0202] The second video is generated based on the template resource content and the second material.
[0203] According to one or more embodiments of this disclosure, the acquisition module is configured to:
[0204] Determine the usage status of multiple preset video generation devices, wherein the usage status includes idle status and occupied status;
[0205] The template resource content is sent to any video generation device that is in an idle state, so that the video generation device generates the second video based on the template resource content and the second material;
[0206] Obtain the second video sent by the video generation device.
[0207] According to one or more embodiments of this disclosure, the determining module is configured to: determine at least one first video frame in the first video that satisfies preset filtering conditions and at least one second video frame in the second video that satisfies preset filtering conditions;
[0208] At least one time range is determined based on at least one first video frame and at least one second video frame.
[0209] According to one or more embodiments of this disclosure, the determining module is configured to:
[0210] The first video is subjected to frame extraction operation according to preset frame extraction parameters to obtain multiple first video frames to be filtered, wherein the frame extraction parameters include frame extraction frequency and frame extraction number.
[0211] For each first video frame to be screened, a preset image recognition algorithm is used to identify multiple dimensions of image parameters associated with the first video frame to be screened.
[0212] The image parameters of multiple dimensions associated with the first video frame to be screened are weighted according to the weight parameters corresponding to the image parameters of each dimension to obtain the first weighted result;
[0213] The first video frame to be screened whose first weighted result is greater than a preset threshold is determined as the first video frame;
[0214] as well as,
[0215] The second video is subjected to frame extraction operation according to preset frame extraction parameters to obtain multiple second video frames to be filtered. The frame extraction parameters include frame extraction frequency and frame extraction number.
[0216] For each second video frame to be screened, a preset image recognition algorithm is used to identify multiple dimensions of image parameters associated with the second video frame to be screened.
[0217] The image parameters of multiple dimensions associated with the second video frame to be screened are weighted according to the weight parameters corresponding to the image parameters of each dimension to obtain the second weighted result;
[0218] The second video frame to be screened is determined as the second video frame if the second weighted result is greater than the preset threshold.
[0219] According to one or more embodiments of this disclosure, the determining module is configured to:
[0220] Determine at least one first time range corresponding to the at least one first video frame, and determine at least one second time range corresponding to the at least one second video frame;
[0221] Determine at least one overlapping time range that coincides with the at least one first time range and the at least one second time range;
[0222] The at least one overlapping time range is defined as the at least one time range.
[0223] According to one or more embodiments of this disclosure, the processing module is configured to:
[0224] For each time range, determine the video processing element that matches the time range in the template to be verified;
[0225] Determine whether the video processing effect corresponding to the video processing element matches the video effect corresponding to the time range in the second video, and obtain the processing result;
[0226] The template quality corresponding to the preset template is determined based on the processing results corresponding to at least one time range.
[0227] According to one or more embodiments of this disclosure, the processing module is configured to:
[0228] Determine the target number of time ranges within which the video processing effects corresponding to the video processing elements match the video effects associated with the second video.
[0229] Determine the target proportion of the target quantity within at least one time period;
[0230] The template quality corresponding to the preset template is determined based on the target ratio and the preset ratio threshold.
[0231] Thirdly, according to one or more embodiments of the present disclosure, an electronic device is provided, comprising: at least one processor and a memory;
[0232] The memory stores computer-executed instructions;
[0233] The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the template processing method as described in the first aspect and various possible designs of the first aspect.
[0234] Fourthly, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein computer-executable instructions are stored therein, and when a processor executes the computer-executable instructions, the template processing method described in the first aspect and various possible designs of the first aspect is implemented.
[0235] Fifthly, according to one or more embodiments of the present disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the template processing method as described in the first aspect and various possible designs of the first aspect.
[0236] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0237] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0238] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A template processing method, characterized in that, include: Obtain the first video generated based on the preset template and the first source material; Based on the preset template and the second material, a second video is generated, wherein the material complexity of the second material is lower than that of the first material; Based on the first video and the second video, determine at least one time range corresponding to the highlight content in the first video and the second video; Based on the at least one time range and the template generation protocol corresponding to the preset template, the template quality of the preset template is determined. The template generation protocol includes at least one video processing element associated with the preset template and a time range associated with the at least one video processing element. If the template quality of the preset template meets the preset push conditions, the preset template is pushed to the target user group.
2. The method according to claim 1, characterized in that, The first video includes the content acquisition channels associated with the preset template; The step of generating a second video based on the preset template and the second material includes: The template resource content associated with the preset template is obtained based on the content acquisition channel; The second video is generated based on the template resource content and the second material.
3. The method according to claim 2, characterized in that, The step of generating the second video based on the template resource content and the second material includes: Determine the usage status of multiple preset video generation devices, wherein the usage status includes idle status and occupied status; The template resource content is sent to any video generation device that is in an idle state, so that the video generation device generates the second video based on the template resource content and the second material; Obtain the second video sent by the video generation device.
4. The method according to claim 1, characterized in that, The step of determining at least one time range corresponding to the highlight content in the first video and the second video based on the first video and the second video includes: Identify at least one first video frame in the first video that meets preset filtering conditions and at least one second video frame in the second video that meets preset filtering conditions; At least one time range is determined based on at least one first video frame and at least one second video frame.
5. The method according to claim 4, characterized in that, The step of determining at least one first video frame in the first video that meets preset filtering conditions and at least one second video frame in the second video that meets preset filtering conditions includes: The first video is subjected to frame extraction operation according to preset frame extraction parameters to obtain multiple first video frames to be filtered, wherein the frame extraction parameters include frame extraction frequency and frame extraction number. For each first video frame to be screened, a preset image recognition algorithm is used to identify multiple dimensions of image parameters associated with the first video frame to be screened. The image parameters of multiple dimensions associated with the first video frame to be screened are weighted according to the weight parameters corresponding to the image parameters of each dimension to obtain the first weighted result; The first video frame to be screened whose first weighted result is greater than a preset threshold is determined as the first video frame; as well as, The second video is subjected to frame extraction operation according to preset frame extraction parameters to obtain multiple second video frames to be filtered. The frame extraction parameters include frame extraction frequency and frame extraction number. For each second video frame to be screened, a preset image recognition algorithm is used to identify multiple dimensions of image parameters associated with the second video frame to be screened. The image parameters of multiple dimensions associated with the second video frame to be screened are weighted according to the weight parameters corresponding to the image parameters of each dimension to obtain the second weighted result; The second video frame to be screened is determined as the second video frame if the second weighted result is greater than the preset threshold.
6. The method according to claim 4, characterized in that, Determining at least one time range based on at least one first video frame and at least one second video frame includes: Determine at least one first time range corresponding to the at least one first video frame, and determine at least one second time range corresponding to the at least one second video frame; Determine at least one overlapping time range that coincides with the at least one first time range and the at least one second time range; The at least one overlapping time range is defined as the at least one time range.
7. The method according to claim 1, characterized in that, Determining the template quality of the preset template based on the at least one time range and the template generation protocol corresponding to the preset template includes: For each time range, video processing elements matching the time range are determined in the template generation protocol; Determine whether the video processing effect corresponding to the video processing element matches the video effect corresponding to the time range in the second video, and obtain the processing result; The template quality corresponding to the preset template is determined based on the processing results corresponding to at least one time range.
8. The method according to claim 7, characterized in that, Determining the template quality corresponding to the preset template based on the processing results corresponding to at least one time range includes: Determine the target number of time ranges within which the video processing effects corresponding to the video processing elements match the video effects associated with the second video. Determine the target proportion of the target quantity within at least one time period; The template quality corresponding to the preset template is determined based on the target ratio and the preset ratio threshold.
9. A template processing device, characterized in that, include: The acquisition module is used to acquire the first video generated based on a preset template and the first source material; The generation module is used to generate a second video based on the preset template and the second material, wherein the material complexity of the second material is lower than that of the first material; The determining module is configured to determine at least one time range corresponding to the highlight content in the first video and the second video based on the first video and the second video; A processing module is configured to determine the template quality of the preset template based on the at least one time range and the template generation protocol corresponding to the preset template, wherein the template generation protocol includes at least one video processing element associated with the preset template and a time range associated with the at least one video processing element. The push module is used to push the preset template to the target user group in response to the preset template quality meeting the preset push conditions.
10. An electronic device, characterized in that, include: Processor and memory; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the template processing method as described in any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the template processing method as described in any one of claims 1 to 8.
12. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the template processing method as described in any one of claims 1 to 8.