Video generation method and apparatus, terminal device, and computer-readable storage medium

CN116226448BActive Publication Date: 2026-09-15SHENZHEN VALUE ONLINE INFORMATION POLYTRON TECH INC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211714876.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-29
Publication Date
2026-09-15
Estimated Expiration
2042-12-29

AI Technical Summary

Technical Problem

当涉及业务数据的数据量较大时,现有的方式耗费人力物力,效率较低;且人工统计大量的业务数据,出错率较高,导致最终的报告内容不准确

Benefits of technology

[0042] It is understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116226448B_ABST
    Figure CN116226448B_ABST
Patent Text Reader

Abstract

The application is suitable for the technical field of data processing, and provides a video generation method and device, terminal equipment and computer readable storage medium, comprising: obtaining report data to be processed; selecting a target video template according to the report data; and generating a report video according to the report data and the selected target video template. Through the above method, manpower and material resources are saved; in addition, since the above process is automatically processed, the problem of report content error caused by manual data statistics is avoided, and the reliability of the report content is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of data processing technology, and in particular relates to a video generation method, apparatus, terminal equipment, and computer-readable storage medium. Background Technology

[0002] Many industries and companies regularly report on their performance. For example, some listed companies are required to publish financial reports every quarter and every year to disclose the company's quarterly or annual business performance and financial status.

[0003] Currently, business data is typically compiled manually by staff, who then manually create reports based on this data. When the volume of business data is large, the existing method is resource-intensive and inefficient; moreover, manually compiling large amounts of business data results in a high error rate, leading to inaccurate final reports. Summary of the Invention

[0004] This application provides a video generation method, apparatus, terminal device, and computer-readable storage medium, which can effectively improve the generation efficiency of report files and reduce the error rate of the content in the report files.

[0005] In a first aspect, embodiments of this application provide a video generation method, including:

[0006] Retrieve the report data to be processed;

[0007] Select the target video template based on the report data;

[0008] A report video is generated based on the report data and the selected target video template.

[0009] In this embodiment, report data is automatically acquired, a target video template is selected based on the report data, and then a report video is automatically generated based on the report data and the target video template. This method saves manpower and resources; furthermore, because the process is automated, it avoids errors in report content caused by manual data collection, greatly improving the reliability of the report content.

[0010] In one possible implementation of the first aspect, obtaining the report data to be processed includes:

[0011] Obtain the target file from the target website;

[0012] Determine the first file category of the target file;

[0013] The report data is extracted from the target file according to the first file category.

[0014] In one possible implementation of the first aspect, extracting the report data from the target file according to the first file category includes:

[0015] The data item name is determined based on the first file category;

[0016] Extract target data items that match the name of the data item from the target file; the target data items are the report data.

[0017] In one possible implementation of the first aspect, selecting the target video template based on the report data includes:

[0018] Calculate the amount of data for each of the target data items in the report data;

[0019] The target template type is determined based on the first file category and the data volume of each target data item;

[0020] The target video template is selected from the preset template library according to the target template type.

[0021] In one possible implementation of the first aspect, generating the report video based on the report data and the selected target video template includes:

[0022] The target video template is populated with data based on the report data to obtain the first video;

[0023] Generate video and audio based on the text in the first video;

[0024] The report video is generated based on the first video and the video audio.

[0025] In one possible implementation of the first aspect, the step of data-filling the target video template based on the report data to obtain the first video includes:

[0026] The video frame size is calculated based on the amount of data for each target data item in the report data;

[0027] Calculate the data position of each target data item in the report data within the video frame based on the video frame size;

[0028] The target data item is filled into the target video template according to the data location to obtain the first video.

[0029] In one possible implementation of the first aspect, the method further includes:

[0030] The second file category of the announcement documents on the target website is determined;

[0031] For each of the second file categories, generate sample video templates corresponding to different data volume ranges;

[0032] The sample video template is labeled with a template type according to the second file category and the data volume range to obtain the labeled sample video template;

[0033] The preset template library is established based on the tagged sample video templates.

[0034] In this embodiment, various sample video templates are pre-built based on the file categories of announcement documents on the target website, thereby establishing a preset template library. Using this method, in practical applications, the required video templates can be obtained from the preset template library to quickly generate report videos, thus greatly saving report video generation time and improving generation efficiency.

[0035] Secondly, embodiments of this application provide a video generation apparatus, including:

[0036] The acquisition unit is used to acquire the report data to be processed.

[0037] The selection unit is used to select a target video template based on the report data;

[0038] The generation unit is used to generate a report video based on the report data and the selected target video template.

[0039] Thirdly, embodiments of this application provide a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the video generation method as described in any one of the first aspects above.

[0040] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the video generation method as described in any one of the first aspects above.

[0041] Fifthly, embodiments of this application provide a computer program product that, when run on a terminal device, causes the terminal device to execute the video generation method described in any one of the first aspects.

[0042] It is understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here. Attached Figure Description

[0043] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0044] Figure 1 This is a flowchart illustrating the process of establishing the preset template library provided in the embodiments of this application;

[0045] Figure 2 This is a flowchart illustrating the video generation method provided in an embodiment of this application;

[0046] Figure 3 This is a structural block diagram of the video generation apparatus provided in the embodiments of this application;

[0047] Figure 4 This is a schematic diagram of the structure of the terminal device provided in the embodiments of this application. Detailed Implementation

[0048] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0049] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0050] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0051] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0052] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0053] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized.

[0054] Many industries and companies regularly report on their performance. For example, some listed companies are required to publish financial reports every quarter and every year to disclose the company's quarterly or annual business performance and financial status.

[0055] Currently, business data is typically compiled manually by staff, who then manually create reports based on this data. When the volume of business data is large, the existing method is resource-intensive and inefficient; moreover, manually compiling large amounts of business data results in a high error rate, leading to inaccurate final reports.

[0056] To address the aforementioned problems, embodiments of this application provide a video generation method, a video generation apparatus, a terminal device, and a computer-readable storage medium. In this embodiment, report data is automatically acquired, a target video template is selected based on the report data, and then a report video is automatically generated based on the report data and the target video template. This method saves manpower and resources; furthermore, because the process is automated, it avoids errors in report content caused by manual data collection, greatly improving the reliability of the report content.

[0057] First, the process of generating the video template involved in the embodiments of this application will be introduced.

[0058] In some embodiments, see Figure 1 This is a flowchart illustrating the process of creating a preset template library provided in this application embodiment. It is intended as an example and not a limitation. Figure 1 As shown, before generating the report video based on the report data, the method may include the following steps:

[0059] S101, the second document category of announcement documents in the target website.

[0060] For example, in some application scenarios, the target website could be the official website of a stock exchange, which includes the latest announcements from listed companies, disclosing their latest financial information and business performance. In other application scenarios, the target website could be an internal website of a company, containing all of the company's historical announcements and the latest announcements, with the historical announcements disclosing the company's historical financial and business information.

[0061] In this embodiment of the application, the target website is equivalent to a database, which stores announcement files for which report videos are to be generated.

[0062] In some embodiments, announcement documents can be obtained from a target website using a web crawler algorithm.

[0063] In this embodiment, the document category may include the industry, the stock sector, and the reporting period type. The industry refers to the industry to which the company involved in the announcement belongs, such as the financial industry or non-financial industry. The stock sector refers to the stock sector to which the company involved in the announcement belongs, such as the Shenzhen Stock Exchange Main Board, Shanghai Stock Exchange Main Board, ChiNext, STAR Market, and Beijing Stock Exchange. The reporting period type refers to the time period corresponding to the content disclosed in the announcement, such as first-quarter report, semi-annual report, third-quarter report, and annual report.

[0064] Optionally, the statistical methods for classifying the document categories of announcement documents may include:

[0065] The type of reporting period is determined by the name of the announcement document; the industry and sector to which the company belongs are determined by the company name in the announcement document.

[0066] For example, suppose the announcement document is named "Company X Annual Report". This name indicates that the reporting period is an annual report. The company name "Company X" can be used to look up the company's industry and sector. Alternatively, the company's stock code can be extracted from the announcement document, and the stock code can be used to determine the company's industry and sector.

[0067] S102, for each of the second file categories, generate sample video templates corresponding to different data volume ranges.

[0068] In practical applications, the amount of data involved varies depending on the type of reporting period. For example, for a quarterly report, the announcement document needs to disclose business data for each of the three months, meaning each business data item includes three data points; for an annual report, the announcement document needs to disclose business data for each of the twelve months, meaning each business data item includes twelve data points. To further improve the efficiency of report video generation, in this embodiment, multiple sample video templates can be generated for each file category based on different data volume ranges.

[0069] In some embodiments, the generation of the sample video template for each second file category may include:

[0070] Pre-configure the data items corresponding to each second file category; determine the candidate data volume for each data item based on the reporting period type in the second file category; generate sample video templates based on the data volume range to which the candidate data volume belongs.

[0071] In this application embodiment, data items refer to the data types involved in the content disclosed in the announcement document. For example, common data items include report summary, performance overview, operating revenue, gross profit margin, net profit attributable to the parent company, net profit margin, basic earnings per share, operating revenue structure (analysis by industry or by region, etc.), profitability, solvency, growth capacity - operating revenue growth rate, growth capacity - operating profit growth rate, growth capacity - net profit growth rate, operating capacity, cash flow situation, asset and liability situation, top 10 shareholders, top 10 circulating shareholders, changes in the number of shareholders, annual turnover, market capitalization changes, and stock price fluctuation trends, etc.

[0072] For example, the data volume range can be divided into 1 record, 2-5 records, more than 5 records, one year's data, three years' data, five years' data, positive data, and negative data. Assuming the second file category is the first-quarter report of the financial industry's Science and Technology Innovation Board, since the first-quarter report may disclose the net profit for each of the three months, as well as the overall net profit for the first quarter, and the net profit may be positive or negative, four sample video templates can be generated: one corresponding to 1 record, two to 5 corresponding to 2 records, a sample video template for positive data, and a sample video template for negative data.

[0073] Optionally, candidate data sets for the data items in the second file category can be rearranged and combined; then, sample video templates corresponding to each combination can be generated. For example, the second file category involves two data items: net profit and net profit margin. The candidate data sets for net profit include 1 and 3, and the candidate data sets for net profit margin also include 1 and 3. The permutations and combinations are: 1 data set for net profit and 1 data set for net profit margin, 1 data set for net profit margin and 3 data sets for net profit margin, 3 data sets for net profit margin and 1 data set for net profit margin, and 3 data sets for net profit margin and 3 data sets for net profit margin. Sample video templates corresponding to each combination are generated, resulting in a total of 4 sample video templates.

[0074] Optionally, the sample video template may include information such as element type, initial position and offset value of the element, element width, element height, element color, element animation effects, width increase for each additional data item in the element, height increase for each additional data item in the element, template background image, and subtitles. Specifically, the element type for fixed elements in the template (such as backgrounds, stock phrases, etc.) can be a display type, such as text or image. The element type for elements that can be added (such as data items) can include both data item type and display type.

[0075] S103, mark the sample video template with a template type according to the second file category and the data volume range, and obtain the marked sample video template.

[0076] As described in S101-S102 above, the template type may include the file category (industry, sector, and reporting period type, etc.) and the data volume range corresponding to each data item.

[0077] S104, Establish the preset template library based on the marked sample video template.

[0078] In some application scenarios, the preset template library can be stored in the cloud, in local storage media, or in the form of blockchain, so that multiple nodes can update or modify the preset template library in parallel.

[0079] In this embodiment, various sample video templates are pre-built based on the file categories of announcement documents on the target website, thereby establishing a preset template library. Using this method, in practical applications, the required video templates can be obtained from the preset template library to quickly generate report videos, thus greatly saving report video generation time and improving generation efficiency.

[0080] based on Figure 1 The following describes the process of generating the report video, based on the preset template library established in this example. (See also...) Figure 2 This is a flowchart illustrating the video generation method provided in an embodiment of this application. It is intended as an example and not a limitation. The method may include the following steps:

[0081] S201, Obtain the report data to be processed.

[0082] In some embodiments, S201 may include the following steps:

[0083] Obtain the target file from the target website; determine the first file category of the target file; extract the report data from the target file according to the first file category.

[0084] In this embodiment, the target file refers to the file containing the video to be used to generate the report. In some application scenarios, a specific announcement file, i.e., the target file, can also be obtained from a target website using a web crawler algorithm. For example, if it is necessary to analyze Company X's annual report, the target file can be obtained by using a web crawler algorithm to retrieve Company X's annual report announcement file from the target website.

[0085] In this embodiment of the application, the method for determining the first file category of the target file is similar to... Figure 1 The method used in the embodiment to count the second file category of announcement files on the target website is the same; see details below. Figure 1 The descriptions in the embodiments will not be repeated here.

[0086] It should be noted that the first file category and the second file category in this application embodiment involve the same content, that is, both the first file category and the second file category include the industry, the sector, and the reporting period type, etc. The terms "first" and "second" are only used to distinguish different data processing processes; that is, the first file category represents the file category of the target file during the generation of the report video, and the second file category represents the file category of the announcement file during the establishment of the preset template library.

[0087] Optionally, one way to extract report data may include:

[0088] The data item name is determined according to the first file category; the target data item that matches the data item name is extracted from the target file, and the target data item is the report data.

[0089] like Figure 1 As described in the embodiments, data items corresponding to each second file category are pre-configured. Accordingly, after determining the first file category of the target file, the names of the data items corresponding to the first file category can be determined. For example, assuming that the data items corresponding to the announcement document of the financial industry's Science and Technology Innovation Board annual report (second file category) are pre-configured include net profit margin, net profit, earnings per share, and assets and liabilities. When the first file category of the target file is determined to be the financial industry's Science and Technology Innovation Board annual report, its data item names can be determined to include net profit margin, net profit, earnings per share, and assets and liabilities.

[0090] Optionally, Natural Language Processing (NLP) algorithms can be used to extract target data items from the target file.

[0091] An extraction model can be pre-trained. Specifically, a large number of announcement files are obtained from the target website, and the data items involved in the announcement files are labeled. The labeled announcement files are used as training data. The extraction model is trained using the training data until the accuracy of the extraction model reaches the preset value, and the trained extraction model is obtained.

[0092] S202, Select the target video template based on the reported data.

[0093] based on Figure 1 In the embodiment, a preset template library is established in advance. In step S202, a target video template is selected from the preset template library according to the report data.

[0094] In some embodiments, S202 may include the following steps:

[0095] The data volume of each target data item in the report data is counted; the target template type is determined based on the first file category and the data volume of each target data item; the target video template is selected from the preset template library based on the target template type.

[0096] In this embodiment of the application, a template type that matches the first file category and the data volume of each target data item is searched in a preset template library and recorded as the target template type. Then, the sample video template corresponding to the target template type is determined as the target video template.

[0097] For example, assuming the first file category is the Q1 report of the Science and Technology Innovation Board in the financial industry, the target data items involved include net profit and net profit margin, where there are 3 data items for net profit and 3 data items for net profit margin, then the target video template is the template of the Q1 report of the Science and Technology Innovation Board in the financial industry, and the data items corresponding to net profit margin in this template are in the range of 2-5, and the data items corresponding to net profit margin are in the range of 2-5.

[0098] In some embodiments, S202 may also include the following:

[0099] If the number of sample video templates corresponding to the target template type in the preset template library is greater than 1, then the target video template is selected from the sample video templates corresponding to the target template type in the preset template library according to the number of times it is used.

[0100] By using the above methods, sample video templates that are used more frequently can be prioritized, which facilitates faster template adaptation and thus improves the efficiency of report video generation.

[0101] Optionally, after selecting a target video template, the process may further include: obtaining video parameters input by the user; adjusting the target video template according to the video parameters to obtain an adjusted target video template.

[0102] Accordingly, in S203 below, a report video is generated based on the report data and the adjusted target video template.

[0103] In this embodiment of the application, video parameters may include video logo, template background image, template background music, subtitle dubbing type (such as male voice, female voice, broadcast voice or reading voice, etc.), and subtitle font (such as font size, font color and font type, etc.).

[0104] Using the methods described above, users can generate personalized report videos according to their own needs, making the report videos more flexible and personalized, thereby improving the user experience.

[0105] S203, Generate a report video based on the report data and the selected target video template.

[0106] In some embodiments, the report video can be a silent video, i.e., only with animation effects. In this case, the report video can be obtained by populating the target video template with data based on the report data.

[0107] To make the report video more intelligent and present richer content, in some embodiments, step S203 may include the following steps:

[0108] The target video template is populated with data based on the report data to obtain the first video;

[0109] Generate video and audio based on the text in the first video;

[0110] The report video is generated based on the first video and the video audio.

[0111] In one implementation, the playback time of the report video can be set to be longer than the audio duration. For example, the playback time of the report video can be set to the audio duration plus 2 seconds. This avoids the situation where the report video finishes playing but the audio has not yet finished.

[0112] In this embodiment, the report video consists of multiple frames. Correspondingly, the target video template includes multiple image templates. During the generation of the first video, the content of the report data is filled into the corresponding image templates in the target video template. One frame is generated based on each filled image template, and then the multiple frames are used to generate the report video.

[0113] Optionally, the method for generating the first video may include:

[0114] The video frame size is calculated based on the amount of data for each target data item in the report data;

[0115] Calculate the data position of each target data item in the report data within the video frame based on the video frame size;

[0116] The target data item is filled into the target video template according to the data location to obtain the first video.

[0117] like Figure 1 As described in the embodiments, the sample video template may include information such as element type, initial element position and deviation value, element width, element height, width increase for each additional data item in the element, and height increase for each additional data item in the element. Based on the data volume of each target data item, and the aforementioned element width, element height, width increase for each additional data item in the element, and height increase for each additional data item in the element, the final height and final width of the video frame, and the video frame size, can be calculated. Then, the data position of each target data item in the video frame is calculated based on the initial element position and deviation value.

[0118] In this embodiment, report data is automatically acquired, a target video template is selected based on the report data, and then a report video is automatically generated based on the report data and the target video template. This method saves manpower and resources; furthermore, because the process is automated, it avoids errors in report content caused by manual data collection, greatly improving the reliability of the report content.

[0119] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0120] Corresponding to the video generation method described in the above embodiments, Figure 3 This is a structural block diagram of the video generation apparatus provided in the embodiments of this application. For ease of explanation, only the parts related to the embodiments of this application are shown.

[0121] Reference Figure 3 The device includes:

[0122] Acquisition unit 31 is used to acquire report data to be processed.

[0123] Selection unit 32 is used to select a target video template based on the report data.

[0124] The generation unit 33 is used to generate a report video based on the report data and the selected target video template.

[0125] Optionally, the acquisition unit 31 is also used for:

[0126] Obtain the target file from the target website;

[0127] Determine the first file category of the target file;

[0128] The report data is extracted from the target file according to the first file category.

[0129] Optionally, the acquisition unit 31 is also used for:

[0130] The data item name is determined based on the first file category;

[0131] Extract target data items that match the name of the data item from the target file; the target data items are the report data.

[0132] Optionally, selection unit 32 is also used for:

[0133] Calculate the amount of data for each of the target data items in the report data;

[0134] The target template type is determined based on the first file category and the data volume of each target data item;

[0135] The target video template is selected from the preset template library according to the target template type.

[0136] Optionally, the generating unit 33 is also used for:

[0137] The target video template is populated with data based on the report data to obtain the first video;

[0138] Generate video and audio based on the text in the first video;

[0139] The report video is generated based on the first video and the video audio.

[0140] Optionally, the generating unit 33 is also used for:

[0141] The video frame size is calculated based on the amount of data for each target data item in the report data;

[0142] Calculate the data position of each target data item in the report data within the video frame based on the video frame size;

[0143] The target data item is filled into the target video template according to the data location to obtain the first video.

[0144] Optionally, device 3 also includes:

[0145] Establishment unit 34 is used to count the second file categories of announcement files in the target website; for each second file category, generate sample video templates corresponding to different data volume ranges; mark the sample video templates with template types according to the second file category and the data volume range to obtain the marked sample video templates; establish the preset template library according to the marked sample video templates.

[0146] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.

[0147] in addition, Figure 3 The video generation device shown can be a software unit, hardware unit, or a combination of software and hardware built into an existing terminal device, or it can be integrated into the terminal device as an independent component, or it can exist as an independent terminal device.

[0148] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0149] Figure 4 This is a schematic diagram of the structure of the terminal device provided in the embodiments of this application. For example... Figure 4 As shown, the terminal device 4 in this embodiment includes: at least one processor 40 ( Figure 4 (Only one is shown) a processor, a memory 41, and a computer program 42 stored in the memory 41 and executable on the at least one processor 40, which, when executing the computer program 42, implements the steps in any of the above-described video generation method embodiments.

[0150] The terminal device may be a desktop computer, laptop, handheld computer, or cloud server, etc. This terminal device may include, but is not limited to, a processor and memory. Those skilled in the art will understand that... Figure 4 This is merely an example of terminal device 4 and does not constitute a limitation on terminal device 4. It may include more or fewer components than shown in the figure, or combine certain components, or different components. For example, it may also include input / output devices, network access devices, etc.

[0151] The processor 40 may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0152] In some embodiments, the memory 41 may be an internal storage unit of the terminal device 4, such as a hard disk or memory of the terminal device 4. In other embodiments, the memory 41 may be an external storage device of the terminal device 4, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the terminal device 4. Furthermore, the memory 41 may include both internal and external storage units of the terminal device 4. The memory 41 is used to store the operating system, applications, boot loader, data, and other programs, such as the program code of the computer program. The memory 41 can also be used to temporarily store data that has been output or will be output.

[0153] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the steps in the above-described method embodiments.

[0154] This application provides a computer program product that, when run on a terminal device, enables the terminal device to implement the steps described in the various method embodiments.

[0155] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a device / terminal equipment, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.

[0156] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0157] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0158] In the embodiments provided in this application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0159] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0160] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A video generation method, characterized in that, include: Obtaining the report data to be processed includes: obtaining the target file from the target website, wherein the target file is a listed company announcement document; determining the first file category of the target file, wherein the first file category includes the industry, sector, and reporting period type; and extracting the report data from the target file according to the first file category. The data item name is determined based on the first file category; Extract the target data items that match the data item names from the target file, and use them as the report data to be processed; Calculate the amount of data for each of the target data items in the report data; The target template type is determined based on the first file category and the data volume of each target data item; Select a target video template from a preset template library according to the target template type, wherein the preset template library includes sample video templates pre-established according to different file categories and different data volume ranges; The video frame size is calculated based on the amount of data for each target data item in the report data; Calculate the data position of each target data item in the report data within the video frame based on the video frame size; The target data items are filled into the target video template according to the data location to obtain the first video; Generate video and audio based on the text in the first video; A report video is generated based on the first video and the video audio.

2. The video generation method as described in claim 1, characterized in that, The target data item is the report data.

3. The video generation method as described in claim 1, characterized in that, The method further includes: The second file category of the announcement documents on the target website is determined; For each of the second file categories, generate sample video templates corresponding to different data volume ranges; The sample video template is labeled with a template type according to the second file category and the data volume range to obtain the labeled sample video template; The preset template library is established based on the tagged sample video templates.

4. A video generation device, characterized in that, include: The acquisition unit is used to acquire the report data to be processed. The selection unit is used to select a target video template based on the report data; A generation unit is used to generate a report video based on the report data and the selected target video template; The acquisition unit is further configured to: acquire a target file from a target website, wherein the target file is a listed company announcement document; determine a first file category of the target file, wherein the first file category includes the industry, sector, and reporting period type; and extract the report data from the target file according to the first file category. The selection unit is further configured to: determine the data item name according to the first file category; extract target data items that match the data item name from the target file as report data to be processed; count the data volume of each target data item in the report data; determine the target template type according to the first file category and the data volume of each target data item; and select a target video template from a preset template library according to the target template type, wherein the preset template library includes sample video templates pre-established according to different file categories and different data volume ranges; The generation unit is further configured to: calculate the video frame size based on the data volume of each target data item in the report data; calculate the data position of each target data item in the report data in the video frame based on the video frame size; fill the target data item into the target video template based on the data position to obtain a first video; generate video audio based on the text in the first video; and generate a report video based on the first video and the video audio.

5. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1 to 3.

6. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Method, system and device for generating and interacting medical reports

    CN107358023A