Method and system for automatically generating visualized scripts of film and television short films

By combining spectrum analysis and emotion node analysis with background music and script data, the shot duration is dynamically adjusted, solving the problem that shot duration cannot accurately reflect music and emotion in existing technologies, and improving the production efficiency and accuracy of storyboards for short films.

CN123178674APending Publication Date: 2026-11-27NORTHWEST UNIV OF POLITICAL SCI & LAW
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611464790.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-20
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing methods for generating storyboards for short films fail to effectively combine background music features with script emotional data, resulting in shot lengths that are difficult to accurately reflect how music drives emotions and changes in the intensity of emotions in the script.

Method used

By analyzing background music data and emotional nodes in the script, the music modulation factor and period scaling coefficient are obtained. The shot duration is dynamically adjusted to reflect the synergistic effect of music and emotion, and a storyboard is generated.

Benefits of technology

It achieves an accurate reflection of how music drives emotions through shot duration, improves the efficiency of storyboard production, and adapts to the music styles of different types of short films.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178674A_ABST
    Figure CN123178674A_ABST
Patent Text Reader

Abstract

The application discloses a short film script visualization automatic generation method and system, relates to the technical field of computer-aided design, and obtains background music and script data, respectively performs spectrum analysis and emotion node analysis; target time window comprehensive energy is converted into a music modulation factor through a preset function, and the initial emotion intensity is nonlinearly corrected; the change direction of the periodic scaling coefficient is determined according to the low-frequency, medium-frequency and high-frequency energy dominant relationship, the relative position of the corrected emotion intensity is combined, and the periodic scaling coefficient is determined in a preset interval; the music rhythm reference duration is scaled by the coefficient, the shot duration is obtained, and the shot script parameters are generated; the application realizes the cross-modal deep fusion of music characteristics and script emotions, makes the shot duration reflect the music rhythm and emotion intensity at the same time, can adapt to different music styles, automatically generates the shot parameters, and improves the shot production efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer-aided design technology, specifically to a method and system for the visual automatic generation of storyboards for short films. Background Technology

[0002] Storyboarding is a crucial step in the pre-production phase of film and television short films. Its function is to transform the written descriptions in the script into a visual shot plan, including the duration of each shot, the order of shots, and the start and end intervals of shots on the timeline. The quality of the storyboard directly affects the narrative rhythm and emotional expression of the short film. With the rapid increase in the creation of short videos and micro-films, the efficiency of storyboard production has become a significant factor limiting overall creative efficiency. Traditional storyboard production involves understanding the script content, mastering the rhythm of background music, and designing shot durations; it is a typical field combining multimodal data processing and artistic creation.

[0003] Currently, storyboard creation primarily relies on manual labor. Storyboard artists read the script and design the duration and sequence of each shot based on their personal experience, or manually adjust shot durations using general editing software. In recent years, with the development of computer-aided film and television production technology, some automatic or semi-automatic storyboard generation methods have emerged. For example, these methods automatically estimate the number and duration of shots based on scene descriptions and dialogue lengths in the script, automatically segment shots based on the beat detection results of background music, or map emotional tags in the script to shot durations based on preset rules. These methods attempt to reduce manual operations and improve the efficiency of storyboard production by utilizing audio or text analysis technologies.

[0004] However, the existing methods mentioned above still have significant shortcomings when applied to the automatic generation of storyboards for short films: These methods typically treat background music features and script emotion data as independent dimensions, using music features only for beat segmentation or simple emotion matching, and script emotion only for scene division or emotion labeling, lacking a deep integration mechanism. Therefore, existing methods cannot quantitatively integrate the energy distribution characteristics of different frequency bands in the music with the changes in emotional intensity in the script, making it difficult for the generated shot duration to simultaneously and accurately reflect both the music's driving force on emotion and the changes in the script's emotional intensity, thus hindering the automatic generation of shot durations driven by a synergistic relationship between music and emotion. Summary of the Invention

[0005] To address the shortcomings of existing technologies, this invention provides a method for the visual and automatic generation of storyboards for short films.

[0006] To achieve the above objectives, the technical solution of the present invention is as follows: a method for automatically generating visual storyboards for short films, comprising:

[0007] Obtain background music and script data for the target short film;

[0008] Spectral analysis of the background music data yields music spectrum data for multiple time windows;

[0009] The script data is parsed to obtain emotional sequence data of multiple emotional nodes;

[0010] The initial emotional intensity of the target emotional node is obtained from the emotional sequence data and matched with the target time window of the music spectrum data. The frequency energy of the target time window is obtained. The comprehensive energy is calculated based on the frequency energy and input into a preset function to obtain the music modulation factor. The initial emotional intensity is corrected with the music modulation factor to obtain the corrected emotional intensity.

[0011] The direction of change of the period scaling factor is determined based on the frequency band energy of the target time window, and the relative position of the modified emotional intensity within the preset emotional intensity range is determined; the corresponding coefficient value is determined as the period scaling factor within the preset period scaling factor range based on the direction of change and the relative position.

[0012] The rhythmic baseline duration is obtained from the target time window, and the rhythmic baseline duration is scaled using the period scaling factor as the scaling factor to obtain the shot duration corresponding to the target emotion node.

[0013] Obtain the node time interval and shot duration of the target emotion node, and generate the storyboard parameters for the short film.

[0014] A visual and automated storyboard generation system for short films, including:

[0015] The data acquisition module is used to acquire background music data and script data for the target short film.

[0016] The spectrum analysis module is used to perform spectrum analysis on the background music data to obtain music spectrum data for multiple time windows;

[0017] The emotion analysis module is used to parse the script data into emotion nodes to obtain emotion sequence data of multiple emotion nodes;

[0018] The modulation module is used to obtain the initial emotional intensity of the target emotional node from the emotional sequence data and match it with the target time window of the music spectrum data, obtain the frequency band energy of the target time window, calculate the comprehensive energy based on the frequency band energy and input it into a preset function to obtain the music modulation factor, and use the music modulation factor to correct the initial emotional intensity to obtain the corrected emotional intensity.

[0019] The scaling factor determination module is used to determine the direction of change of the period scaling factor based on the frequency band energy of the target time window, and to determine the relative position of the modified emotional intensity within a preset emotional intensity range; and to determine the corresponding coefficient value as the period scaling factor within the preset period scaling factor range based on the direction of change and the relative position.

[0020] The duration determination module is used to obtain the rhythm reference duration from the target time window, and scale the rhythm reference duration using the period scaling coefficient as a scaling factor to obtain the shot duration corresponding to the target emotion node.

[0021] The script parameter generation module is used to obtain the node time interval and shot duration of the target emotion node, and generate the storyboard script parameters of the short film.

[0022] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0023] 1. This invention converts the comprehensive energy of a time window into a music modulation factor through a preset function. This music modulation factor increases with the comprehensive energy, but the rate of increase decreases as the comprehensive energy increases, conforming to the actual saturation law of music's influence on emotions. This music modulation factor is then used to correct the initial emotional intensity marked in the script, resulting in a corrected emotional intensity that simultaneously reflects the narrative emotion of the script and the effect of music modulation. Thus, music frequency band energy is no longer an independent criterion for segmenting the script's emotions, but directly participates in the quantitative correction of emotional intensity, forming a deep integration mechanism between music and emotion.

[0024] 2. This invention dynamically determines the direction of change of the periodic scaling coefficient based on the relative magnitudes of low-frequency, mid-frequency, and high-frequency energy within a time window. When low-frequency energy is at its maximum, the direction of change is determined to be in the same direction, correcting for longer shot durations when emotional intensity is greater. When high-frequency energy is at its maximum, the direction of change is determined to be in the opposite direction, correcting for shorter shot durations when emotional intensity is greater. When mid-frequency energy is at its maximum, the ratio of mid-frequency energy to the sum of low- and high-frequency energy is used for further determination. Through this mechanism, the direction of change of shot duration matches the emotional driving method of the music, rather than using a fixed single scaling direction, ensuring that the generated shot duration accurately reflects the music's emotional driving method.

[0025] 3. This invention normalizes the modified emotional intensity to its relative position within a preset emotional intensity range. Then, based on the direction of change and relative position, it determines the corresponding coefficient value within a preset period scaling coefficient range as the period scaling coefficient. Finally, it uses this period scaling coefficient to scale the base duration of the music rhythm, obtaining the shot duration corresponding to the target emotional node. Through this mechanism, the shot duration is simultaneously driven by both the music rhythm characteristics and emotional intensity, ensuring that the generated shot duration retains the rhythmic characteristics of the music while incorporating the modulation effects of emotional intensity and music frequency energy.

[0026] 4. This invention obtains the type parameters of the target short film and determines the lower and upper limits of the music modulation factor and the preset rate parameter based on these parameters. This allows the preset function to adapt to the music styles of different types of short films, such as suspense, action, and ballad. Simultaneously, in the calculation of overall energy, the preset weights of low-frequency, mid-frequency, and high-frequency energy are determined according to the type of short film, ensuring that the frequency bands have the greatest impact on emotions, thus improving the targeting of the music modulation factor calculation.

[0027] 5. This invention takes background music data and script data as input, and through steps such as spectrum analysis, emotional node parsing, music modulation factor calculation, period scaling factor determination, and shot duration calculation, it finally generates storyboard parameters containing the time interval, shot duration, and shot arrangement order corresponding to each emotional node. The entire process eliminates the need for manual shot-by-shot duration design and can output a visual storyboard for storyboard artists to use or adjust directly, effectively improving the production efficiency of short film storyboards. Attached Figure Description

[0028] The disclosure of this invention is illustrated with reference to the accompanying drawings. It should be understood that the drawings are for illustrative purposes only and are not intended to limit the scope of protection of this invention. In the drawings, the same reference numerals are used to refer to the same parts. Wherein:

[0029] Figure 1 This is a flowchart of the method of the present invention;

[0030] Figure 2 This is a system structure diagram of the present invention. Detailed Implementation

[0031] It is readily understood that, based on the technical solution of this invention, those skilled in the art can propose various interchangeable structural methods and implementations without altering the essential spirit of the invention. Therefore, the following detailed embodiments and accompanying drawings are merely illustrative examples of the technical solution of this invention and should not be considered as the entirety of the invention or as limitations or restrictions on the technical solution of this invention.

[0032] like Figure 1 As shown, the specific implementation steps of the present invention include the following steps:

[0033] Obtain background music and script data for the target short film.

[0034] This step is the starting point of the entire automatic storyboard generation method, obtaining the original materials needed for all subsequent data processing.

[0035] Specifically, the background music data refers to the complete audio files of the background music used in the target short film, in common audio formats such as WAV, MP3, and AAC. If the background music data consists of multiple audio segments, they need to be spliced ​​together into a complete audio file according to the timeline. After acquisition, the background music data undergoes format unification and noise reduction preprocessing. Format unification includes converting audio files with different sampling rates, bit depths, and number of channels into a unified sampling rate, bit depth, and number of channels. Noise reduction preprocessing includes filtering out ambient noise and device current noise from the audio files.

[0036] The script data refers to the text script of the target short film, in plain text, structured text, or table format, including scene descriptions, character dialogues, and action instructions. The time span of the script data is consistent with the time span of the background music data, that is, the narrative content described in the script corresponds to the complete duration of the background music. If the script data lacks time annotations, time estimation is first performed based on the number of scenes and the length of the dialogue, and a preliminary time interval is assigned to each emotional node. After acquisition, the script data undergoes text cleaning and segmentation preprocessing. The text cleaning includes removing irrelevant characters and unifying punctuation marks, and the segmentation preprocessing includes dividing the script data into multiple text segments according to scenes and paragraphs.

[0037] This step acquires background music and script data from the target short film to provide complete audio input data for subsequent spectrum analysis, ensuring that the music spectrum data covers the entire time span of the short film; it also provides complete text input data for subsequent emotional node analysis, ensuring that the emotional sequence data covers the complete narrative content of the short film; through format standardization and preprocessing, the time span of the background music and script data is made consistent, facilitating the matching of emotional nodes with the target time window in subsequent steps.

[0038] Spectral analysis of the background music data yields music spectrum data for multiple time windows.

[0039] This step converts the continuous audio signal into structured time window data, providing a data source for subsequent steps to obtain the frequency band energy and rhythmic reference duration of the time window. Spectral analysis divides the background music data into multiple time windows along the time dimension, enabling the quantification of energy distribution and rhythmic changes in different time periods of the music.

[0040] Specifically, the method of dividing the time window in the spectrum analysis is as follows: based on the total duration of the background music data and the preset time window length, the background music data is divided into multiple time windows along the time axis; the multiple time windows are connected end to end without overlapping; the number of time windows is directly proportional to the total duration of the background music data and inversely proportional to the preset time window length; the divided time windows are arranged in order along the time axis, and each time window corresponds to a time period in the background music data.

[0041] The preset time window has a length ranging from 0.1 seconds to 5 seconds, preferably 1 second. If the time window is too long, it will be unable to accurately capture the instantaneous changes in the music; if it is too short, it will result in an excessive amount of data and a decrease in the statistical stability of the frequency band energy.

[0042] The specific method for generating the music spectrum data is as follows:

[0043] The background music data is divided into multiple time windows according to preset time windows;

[0044] For each time window, extract the frequency band energy and rhythm reference duration, where the frequency band energy includes low-frequency energy, mid-frequency energy and high-frequency energy;

[0045] The frequency band energy and rhythmic reference duration corresponding to each time window are arranged on the time axis to obtain the music spectrum data. Each time window includes the frequency band energy and the rhythmic reference duration.

[0046] This step specifies the method for generating music spectrum data: dividing and extracting it according to preset time windows. By dividing the background music data according to preset time windows, the continuous audio signal is segmented into multiple short segments, each segment corresponding to a time window. Low-frequency energy, mid-frequency energy, high-frequency energy, and rhythmic reference duration are extracted from each time window, thereby converting the audio signal into structured music spectrum data.

[0047] Specifically, using a preset time window as the dividing unit, the background music data is divided into multiple time windows of equal length along the time axis. Each time window contains all the audio sampling points of the background music data within that time window.

[0048] First, a Fourier transform is performed on each time window to obtain the frequency domain signal. The frequency domain signal is then divided into low-frequency, mid-frequency, and high-frequency bands. The sum of squares of the signal amplitude within each band is calculated as the energy of that band. The low-frequency band ranges from 20Hz to 250Hz, the mid-frequency band ranges from 250Hz to 4000Hz, and the high-frequency band ranges from 4000Hz to 20000Hz.

[0049] Then, beat detection is performed on each time window to identify beat points in the music; the time interval between adjacent beat points is calculated; the average of the time intervals between all adjacent beat points within the time window is taken as the rhythmic reference duration of that time window. The rhythmic reference duration ranges from 0.2 seconds to 1 second, preferably 0.5 seconds, and the rhythmic reference duration does not exceed the length of the preset time window. When the number of beat points within the time window is less than two, the rhythmic reference duration of the adjacent time window is taken as the rhythmic reference duration of that time window.

[0050] This step converts continuous audio signals into structured time window data, enabling the quantification of frequency energy and rhythmic variations at different times in the music. The extraction of low-frequency energy, mid-frequency energy, high-frequency energy, and rhythmic baseline duration fully preserves the characteristic information of the music in both the time and frequency domains, providing a data foundation for subsequent calculations of music modulation factors and determination of period scaling coefficients. Multiple time windows are arranged along the time axis, facilitating the matching of emotional nodes with target time windows in subsequent steps.

[0051] In practical implementation, the method of extracting frequency band energy can be replaced by calculating the average value or root mean square value of the signal amplitude within the frequency band; the extraction of rhythm reference duration can be replaced by a method based on autocorrelation function or wavelet transform; and the frequency domain transformation method can be replaced by short-time Fourier transform or Mel frequency cepstral coefficient extraction.

[0052] The script data is parsed to obtain emotional sequence data of multiple emotional nodes.

[0053] This step converts the unstructured text script into structured emotion node data, providing a data source for subsequent steps to obtain the initial emotion intensity and time interval of the target emotion node from the emotion sequence data. Emotion node parsing divides the script data into multiple emotion nodes according to the narrative order. Each emotion node corresponds to a narrative segment with specific emotional characteristics, thereby enabling the quantification of emotional changes in the script.

[0054] Specifically, the emotional node parsing refers to performing semantic analysis on script data to identify emotional turning points in the script, and taking the narrative segment between two adjacent emotional turning points as an emotional node; the identification criteria for emotional turning points include scene changes, character emotional descriptive words, changes in dialogue tone, and changes in action rhythm; after parsing, multiple emotional nodes are obtained in the order of the narrative, and each emotional node corresponds to a narrative content in the script with continuous emotional characteristics.

[0055] The generation of the emotion sequence data is specifically as follows:

[0056] The script data is analyzed, and multiple emotional nodes arranged in narrative order are determined according to preset emotional transition recognition rules.

[0057] Label each emotion node with its emotion type, initial emotion intensity, and time interval.

[0058] The labeled emotion nodes are arranged in narrative order to obtain the emotion sequence data.

[0059] This step concretizes the analysis of emotion nodes, clarifying that the generation method for emotion sequence data is node identification and annotation. By analyzing the script data, the narrative content in the script is divided into multiple emotion nodes according to emotional changes, with each emotion node corresponding to a narrative segment with specific emotional characteristics. Each emotion node is labeled with its emotion type, initial emotion intensity, and time interval, thereby converting the script data into structured emotion sequence data.

[0060] Specifically, the preset emotional transition recognition rule is used to locate emotional transition points in script data. It can be located based on at least one of scene switching, character emotional description words, changes in dialogue tone, and changes in action rhythm. The text segment between two adjacent emotional transition points is taken as an emotional node, and the emotional nodes are arranged in the narrative order to obtain multiple emotional nodes.

[0061] When labeling each emotional node, the emotion type can be labeled as one of the preset categories such as joy, sadness, tension, calmness, anger, and fear, based on the narrative content and emotional characteristics of that emotional node. The initial emotion intensity is labeled as a value between 0 and 10, based on the intensity of the emotion in the narrative, where 0 represents the weakest emotion and 10 represents the strongest emotion. The node time interval represents the time range corresponding to that emotional node in the short film, including the start and end times, which can be converted into time length according to the number of scenes, dialogue length, and action descriptions corresponding to that emotional node in the script, according to a preset ratio. Through the above labeling, each emotional node has three attributes: emotion type, initial emotion intensity, and node time interval. After arranging all emotional nodes in narrative order, the emotional sequence data is obtained.

[0062] This step converts the unstructured text script into structured emotion node data, enabling the emotional changes in the script to be quantified. By labeling emotion type, initial emotion intensity, and node time interval, the narrative structure and emotional information of the script are fully preserved. Multiple emotion nodes are arranged in narrative order, which facilitates matching emotion nodes with target time windows in subsequent steps.

[0063] In practical implementation, the identification of emotion nodes can be replaced by keyword matching or emotion dictionary-based methods; the labeling of initial emotion intensity can be replaced by automatic scoring methods based on emotion dictionaries; and the determination of node time intervals can be replaced by alignment based on the beat points of background music data.

[0064] The initial emotional intensity of the target emotional node is obtained from the emotional sequence data and matched with the target time window of the music spectrum data. The frequency energy of the target time window is obtained. The comprehensive energy is calculated based on the frequency energy and input into a preset function to obtain the music modulation factor. The initial emotional intensity is corrected with the music modulation factor to obtain the corrected emotional intensity.

[0065] This step integrates the initial emotional intensity of emotional nodes with the musical characteristics of the corresponding time periods, so that the emotional intensity not only reflects the narrative emotions of the script itself, but also reflects the modulating effect of the background music on the emotions.

[0066] Specifically, the matching method between the target emotion node and the time window of the music spectrum data is as follows: The start and end times of the node's time interval are obtained; among multiple time windows in the music spectrum data, the time window with the highest overlap with the node's time interval is found, and this time window is used as the target time window corresponding to the target emotion node. If the node's time interval spans multiple time windows, the time window with the longest overlap is taken as the matching result; if multiple time windows have the same overlap duration, the earlier time window on the timeline is taken.

[0067] The music modulation factor increases with the increase of the overall energy, and the rate of increase decreases with the increase of the overall energy. This indicates that the relationship between the music modulation factor and the overall energy is a monotonically increasing saturated function. When the overall energy is small, the music modulation factor increases rapidly with the increase of the overall energy; when the overall energy is large, the music modulation factor slowly approaches the upper limit value with the increase of the overall energy.

[0068] The modified emotional intensity is obtained by multiplying the initial emotional intensity by the music modulation factor. When the music modulation factor is greater than 1, the modified emotional intensity is greater than the initial emotional intensity, indicating that the music enhances the emotion; when the music modulation factor is less than 1, the modified emotional intensity is less than the initial emotional intensity, indicating that the music weakens the emotion.

[0069] The calculation of the comprehensive energy is as follows:

[0070] The maximum energy value of each frequency band in all time windows of the music spectrum data is obtained respectively;

[0071] For the target time window, the energy of each frequency band is normalized and mapped based on the maximum energy value of each frequency band to obtain the normalized energy of each frequency band.

[0072] The energy of each normalized frequency band is weighted and summed according to the preset weights corresponding to the energy of each normalized frequency band to obtain the comprehensive energy.

[0073] The preset weights are determined based on the type of the target short film, with different types of short films corresponding to different weight combinations.

[0074] This step specifies the calculation of the comprehensive energy for the target time window. The comprehensive energy is obtained by weighted summation of normalized energy across frequency bands, which includes low-frequency energy, mid-frequency energy, and high-frequency energy. The preset weights corresponding to each normalized frequency band energy include a first preset weight for low-frequency energy, a second preset weight for mid-frequency energy, and a third preset weight for high-frequency energy.

[0075] Normalization refers to a data processing method that maps the energy of each frequency band to the 0-1 range. Its purpose is to eliminate the influence of absolute differences in energy values ​​between different frequency bands on the calculation of the overall energy, ensuring that the contribution of each frequency band to the overall energy is determined by preset weights rather than by absolute numerical values, and that the overall energy falls between 0 and 1, providing a unified basis for the preset rate parameter in the preset function. By setting different preset weights for different frequency bands, the frequency bands with the greatest impact on emotions can be highlighted, allowing the music modulation factor to more accurately reflect the modulation effect of music on emotions. Different short film types correspond to different weight combinations, enabling the scheme to adapt to the musical characteristics of different types of short films.

[0076] Specifically, the first preset weight, the second preset weight, and the third preset weight all range from 0 to 1, and their sum is 1. The specific values ​​of the first preset weight, the second preset weight, and the third preset weight are determined according to the type of the target short film.

[0077] For suspenseful short films, the first preset weight ranges from 0.4 to 0.6, preferably 0.5; the second preset weight ranges from 0.2 to 0.4, preferably 0.3; and the third preset weight ranges from 0.1 to 0.3, preferably 0.2. Low-frequency energy corresponds to the rhythm and low-frequency vibration in music, which contributes significantly to creating a sense of oppression and tension. Suspenseful short films emphasize low frequencies to enhance the tension.

[0078] For action-oriented short films, the first preset weight ranges from 0.2 to 0.4, preferably 0.3; the second preset weight ranges from 0.3 to 0.5, preferably 0.4; and the third preset weight ranges from 0.2 to 0.4, preferably 0.3. Mid-frequency energy corresponds to the melody and vocals, contributing significantly to emotional expression and rhythmic progression. Action-oriented short films emphasize mid-frequency to enhance rhythm, while maintaining a balanced participation of low and high frequencies to balance impact and excitement.

[0079] For lyrical short films, the first preset weight ranges from 0.1 to 0.3, preferably 0.2; the second preset weight ranges from 0.4 to 0.6, preferably 0.6; and the third preset weight ranges from 0.1 to 0.3, preferably 0.2. Mid-frequency energy corresponds to the melody and vocals, contributing significantly to emotional expression. Lyrical short films emphasize mid-frequency to highlight emotional expression, while low and high frequencies participate in a balanced manner to maintain a gentle atmosphere.

[0080] The mathematical form of the preset function is as follows:

[0081] ;

[0082] in Music modulation factor, The total energy of the target time window. This is the lower limit value of the modulation of the music modulation factor. is the upper limit of the modulation of the music modulation factor, and k is a preset rate parameter.

[0083] This step specifies that the mathematical form of the preset function is a saturated exponential function.

[0084] Specifically, the reason for choosing the aforementioned saturation exponential function form is that this function naturally satisfies the rule that the music modulation factor increases with increasing overall energy, and the rate of increase decreases with increasing overall energy. When the overall energy is low, the exponential term increases rapidly with increasing overall energy, and the music modulation factor rises rapidly accordingly; as the overall energy gradually increases, the growth rate of the exponential term gradually slows down, and the music modulation factor approaches its upper limit and no longer increases significantly. This characteristic is consistent with the actual law of music's influence on emotions: when the music energy is low, a small increase in energy can significantly enhance the emotional effect; when the music energy is already high, further increases in energy tend to saturate the effect of enhancing emotions.

[0085] The lower modulation limit represents the value of the music modulation factor when the overall energy approaches zero. That is, when the background music has almost no energy within the target time window, the music modulation factor takes the lower modulation limit value, providing a weaker correction to the initial emotional intensity. The upper modulation limit represents the value of the music modulation factor when the overall energy approaches infinity. That is, when the background music has extremely high energy within the target time window, the music modulation factor takes the upper modulation limit value, providing a stronger correction to the initial emotional intensity.

[0086] The preset rate parameter controls the rate at which the music modulation factor approaches the modulation upper limit from the lower limit. The larger the rate parameter, the faster the music modulation factor approaches the modulation upper limit. The comprehensive energy E is a dimensionless value after normalization mapping, ranging from 0 to 1. The preset rate parameter k is a dimensionless coefficient, and the product of k and E is a dimensionless quantity that can be directly used as the independent variable of the exponential function.

[0087] The specific values ​​of the modulation upper limit, modulation lower limit, and preset rate parameter are as follows:

[0088] Obtain the type parameters of the target short film, and determine the value of the lower modulation limit of the music modulation factor, the upper modulation limit of the music modulation factor, and the value of the preset rate parameter based on the type parameters;

[0089] The value of the lower limit of the music modulation factor is negatively correlated with the degree of music's weakening effect on emotion, as represented by the type parameter.

[0090] The upper limit of the modulation factor of the music is positively correlated with the degree of enhancement of emotion by the music represented by the type parameter.

[0091] The value of the preset rate parameter is positively correlated with the rhythm speed represented by the type parameter.

[0092] This step specifies the methods for determining the upper limit, lower limit, and preset rate parameters, enabling them to adaptively adjust according to the type parameters of the target short film.

[0093] Specifically, the type parameter refers to the identifier data representing the type of the target short film. Its value range is from multiple preset type numbers, preferably category numbers such as suspense, action, lyrical, comedy, and horror. The type parameter can be manually selected or automatically determined by analyzing keywords and emotional distribution in the script data.

[0094] The lower limit of the music modulation factor ranges from 0.5 to 1.0, preferably 0.8. The lower limit is negatively correlated with the degree of emotional attenuation represented by the type parameter; that is, the stronger the attenuation of emotion, the smaller the lower limit, allowing the music modulation factor to drop to a lower value, thus producing a stronger attenuation effect on the initial emotional intensity. The lower limit values ​​corresponding to different types are as follows: Suspense short film music has a medium attenuation of emotion, with a lower limit of 0.8; action short film music has a weak attenuation of emotion, with a lower limit of 0.9; and lyrical short film music has a strong attenuation of emotion, with a lower limit of 0.7.

[0095] The upper limit value of the music modulation factor ranges from 1.0 to 2.0, preferably 1.5. The upper limit value is positively correlated with the degree of emotional enhancement represented by the type parameter; that is, the stronger the emotional enhancement, the larger the upper limit value, allowing the music modulation factor to reach a higher value, thus producing a stronger enhancement effect on the initial emotional intensity. The upper limit values ​​corresponding to different types are as follows: Suspense short film music has a strong emotional enhancement, with an upper limit value of 1.5; action short film music has a strong emotional enhancement, with an upper limit value of 1.8; and lyrical short film music has a medium emotional enhancement, with an upper limit value of 1.3. Under the same enhancement level, different types can correspond to different specific values.

[0096] The preset rate parameter ranges from 0.5 to 5.0, preferably 2.0. Since the normalized value of the overall energy ranges from 0 to 1, the preset rate parameter has a unified value within this range: the larger the preset rate parameter, the faster the music modulation factor approaches its upper limit when the overall energy is low; the smaller the preset rate parameter, the faster the music modulation factor approaches its upper limit when the overall energy is high. The preset rate parameter is positively correlated with the tempo represented by the type parameter; that is, the faster the music tempo, the larger the preset rate parameter, causing the music modulation factor to approach its upper limit more quickly. The preset rate parameters corresponding to different types are as follows: For suspenseful short films, the tempo is medium, and the preset rate parameter is 2.0; for action short films, the tempo is fast, and the preset rate parameter is 3.5; for lyrical short films, the tempo is slow, and the preset rate parameter is 1.0.

[0097] This step achieves deep integration of script emotion data and music spectrum data by correcting the initial emotion intensity of the target emotion node with the music modulation factor of the matching time window. This allows the corrected emotion intensity to simultaneously reflect the narrative emotion of the script itself and the modulating effect of background music on emotion, avoiding the one-sidedness of determining shot duration solely based on the script or music. Simultaneously, a preset function that increases with increasing comprehensive energy while decreasing at a rate that increases with increasing comprehensive energy is used. This causes the music modulation factor to rise rapidly when the comprehensive energy is low and approach its upper limit when the comprehensive energy is high, conforming to the actual law of music's influence on emotion. Combined with weighted calculation of comprehensive energy, the comprehensive energy is made more closely aligned with the music characteristics of different types of short films. Furthermore, the lower limit, upper limit, and preset rate parameters are adaptively determined through type parameters, enabling the solution to adapt to the music styles of different types of short films, such as suspense, action, and lyrical films. Ultimately, this provides a more accurate emotional intensity input for determining the subsequent period scaling coefficient.

[0098] In specific implementation, the frequency band energy of the target time window can be replaced by directly taking the maximum value among low-frequency energy, mid-frequency energy, or high-frequency energy, or by taking the arithmetic mean of the three; the preset function can be replaced by other monotonically increasing functions with saturation characteristics, such as hyperbolic tangent function, sigmoid function, or rational function; the way the music modulation factor corrects the initial emotional intensity can be replaced by addition operation, weighted average operation, or lookup table mapping operation; the way the type parameter determines the lower limit, upper limit, and preset rate parameter can be replaced by lookup table method, continuous function mapping method, or statistical fitting method based on historical data; the first preset weight, the second preset weight, and the third preset weight can be replaced by fixed weights, or by weights dynamically adjusted according to the emotional type.

[0099] The direction of change of the period scaling factor is determined based on the frequency band energy of the target time window, and the relative position of the modified emotional intensity within the preset emotional intensity range is determined; the corresponding coefficient value is determined as the period scaling factor within the preset period scaling factor range based on the direction of change and the relative position.

[0100] This step converts the adjusted emotional intensity and music frequency band energy into a specific periodic scaling factor, providing a scaling factor for subsequent shot duration calculations. This step comprises three parts: First, determining the direction of change of the periodic scaling factor based on the frequency band energy of the time window, i.e., determining whether the periodic scaling factor increases or decreases as the adjusted emotional intensity increases; second, determining the relative position of the adjusted emotional intensity within a preset emotional intensity range, i.e., quantifying the current emotional intensity level within the emotional range; and third, determining the corresponding coefficient value within the preset periodic scaling factor range based on the direction of change and relative position. This step serves as a bridge connecting emotional intensity data and shot duration data, enabling shot duration to simultaneously reflect both emotional intensity and music characteristics.

[0101] Specifically, the direction of change is used to characterize the relationship between the modified emotional intensity and the period scaling factor. The direction of change includes both unidirectional and inverse directions: unidirectional indicates that the greater the modified emotional intensity, the greater the period scaling factor, meaning a longer shot duration; inverse direction indicates that the greater the modified emotional intensity, the smaller the period scaling factor, meaning a shorter shot duration. The direction of change is determined by the frequency energy of the time window, with different directions corresponding to different dominant frequency energy bands.

[0102] The relative position is used to quantify the level of the corrected emotional intensity within a preset emotional intensity range. A relative position of 0 indicates that the corrected emotional intensity equals the lower limit of the range, and a relative position of 1 indicates that the corrected emotional intensity equals the upper limit of the range. The relative position is determined by performing a normalization operation based on the corrected emotional intensity and the lower and upper limits of the preset emotional intensity range, resulting in a value between 0 and 1.

[0103] The preset periodic scaling factor range refers to the allowable value range of the periodic scaling factor, with a lower limit of 0.3 to 0.8, preferably 0.5; and an upper limit of 1.5 to 3.0, preferably 2.0. The range width is the difference between the upper and lower limits. The method for determining the coefficient value within the preset periodic scaling factor range based on the direction of change and relative position is as follows: when the direction of change is the same, the lower limit is used as the reference, and the larger the relative position, the closer the periodic scaling factor is to the upper limit; when the direction of change is opposite, the upper limit is used as the reference, and the larger the relative position, the closer the periodic scaling factor is to the lower limit.

[0104] The determination of the direction of change of the period scaling factor is specifically as follows:

[0105] Compare the magnitude relationships among the low-frequency energy, mid-frequency energy, and high-frequency energy of the target time window;

[0106] If the low-frequency energy is the largest, then the direction of change of the period scaling factor is determined to be in the same direction, which means that the larger the relative position, the larger the period scaling factor.

[0107] If the high-frequency energy is at its maximum, then the direction of change of the period scaling factor is determined to be reversed, and the reversed direction indicates that the larger the relative position, the smaller the period scaling factor;

[0108] If the intermediate frequency energy is at its maximum, the ratio of the intermediate frequency energy to the sum of the energies is obtained. The sum of the energies is the sum of the low-frequency energy and the high-frequency energy. If the ratio is greater than a preset ratio threshold, the direction of change is determined to be in the same direction. If the ratio is not greater than the preset ratio threshold, the direction of change is determined to be in the opposite direction.

[0109] This step specifies the determination of the direction of change, clarifying that it is determined by the relative magnitudes of low-frequency, mid-frequency, and high-frequency energy. When low-frequency energy dominates, the music emphasizes rhythm and a sense of pressure; the stronger the emotion, the longer the montage should be to enhance immersion. When high-frequency energy dominates, the music emphasizes sharpness and stimulation; the stronger the emotion, the shorter the montage should be to enhance urgency. When mid-frequency energy dominates, it is necessary to further determine the proportion of mid-frequency energy relative to the sum of low-frequency and high-frequency energy, and determine the direction of change based on whether this proportion exceeds a preset threshold.

[0110] Specifically, the preset ratio threshold ranges from 0.5 to 2.0, preferably 1.0. When the ratio is greater than the preset ratio threshold, it indicates that the mid-frequency energy is dominant relative to the sum of the low-frequency and high-frequency energy. The music is mainly based on melody and vocals, and the stronger the emotion, the longer the shot should be to highlight the emotional expression. Therefore, the direction of change is the same. When the ratio is not greater than the preset ratio threshold, it indicates that the mid-frequency energy is not dominant relative to the sum of the low-frequency and high-frequency energy. The rhythm and stimulation of the low-frequency or high-frequency in the music are still significant. The stronger the emotion, the shorter the shot should be to enhance the rhythm. Therefore, the direction of change is opposite.

[0111] When multiple frequency bands have the same maximum energy, the dominant frequency band is determined according to a preset frequency band priority order, and the direction of change is determined based on the dominant frequency band. The preset frequency band priority order is low frequency over mid frequency, and mid frequency over high frequency. This is because low frequency energy corresponds to rhythm and low-frequency vibrations in music, contributing the most to creating emotional background and tense atmosphere; mid frequency energy corresponds to melody and vocals, contributing secondarily to emotional expression and rhythmic progression; and high frequency energy corresponds to brightness and sharp sound effects, mainly playing a modifying and stimulating role. When multiple frequency bands have the same maximum energy, prioritizing the frequency band with the most fundamental impact on emotion as the dominant frequency band ensures that the determined direction of change better aligns with the actual way music drives emotion, while also guaranteeing that the machine can determine a unique dominant frequency band during execution.

[0112] The relative position of the modified emotional intensity within the preset emotional intensity range is determined specifically as follows:

[0113] Obtain the lower limit and upper limit of the preset emotion intensity range;

[0114] The difference between the modified emotion intensity and the lower limit of the interval is calculated to obtain the first difference;

[0115] The difference between the upper limit value and the lower limit value of the interval is calculated to obtain the second difference value;

[0116] The relative position is obtained by performing a ratio operation between the first difference and the second difference.

[0117] This step specifies the determination of relative position, clarifying that the calculation method for relative position is a combination of difference and ratio operations. By dividing the difference between the modified emotional intensity and the lower limit of the interval by the difference between the upper and lower limits of the interval, a normalized value between 0 and 1 is obtained. This value represents the relative level of the modified emotional intensity within the emotional interval.

[0118] Specifically, the lower limit of the preset emotion intensity range is 0 to 2, preferably 0; the upper limit is 8 to 10, preferably 10. The reason for choosing this range is that the initial emotion intensity is labeled in the range of 0 to 10, and the corrected emotion intensity after music modulation factor correction may be slightly higher than 10 or slightly lower than 0. Setting the upper and lower limits of the emotion range to 10 and 0 respectively can cover most of the values ​​of the corrected emotion intensity.

[0119] The calculation of relative position adopts a normalization method, which means that the modified emotional intensity is mapped to a uniform 0 to 1 scale, so that the determination of the subsequent period scaling factor is not affected by the absolute value of the emotional intensity. No matter how the upper and lower limits of the emotional range are set, the relative position can always reflect the relative level of the modified emotional intensity in the range.

[0120] When the corrected emotion intensity is less than the lower limit, it indicates that the current emotion intensity is below the lowest level of the emotion range. In this case, the relative position is 0, representing the lowest point of the range. When the corrected emotion intensity is greater than the upper limit, it indicates that the current emotion intensity exceeds the highest level of the emotion range. In this case, the relative position is 1, representing the highest point of the range. When the corrected emotion intensity exceeds the preset emotion intensity range, the relative position is set to the boundary value and no longer changes with the corrected emotion intensity to avoid the period scaling factor exceeding the preset period scaling factor range. When the corrected emotion intensity is between the lower and upper limits, the relative position is calculated using difference and ratio operations, resulting in a value between 0 and 1. This relative position serves as the input for subsequent period scaling factor determination steps, directly determining the position of the period scaling factor within the preset range.

[0121] The determination of the period scaling factor is specifically as follows:

[0122] Obtain the lower limit and upper limit of the preset period scaling factor range;

[0123] If the change direction is the same, the period scaling factor is based on the lower limit of the preset period scaling factor interval and shifts towards the upper limit of the interval according to the correspondence between the relative position and the interval width. The interval width is the difference between the upper limit of the preset period scaling factor interval and the lower limit of the interval.

[0124] If the direction of change is reversed, the period scaling factor is offset towards the lower limit of the interval based on the upper limit of the preset period scaling factor interval, according to the correspondence between the relative position and the interval width.

[0125] This step specifies the determination of the period scaling factor, clarifying how to determine the factor value within a preset period scaling factor range based on the direction of change. When the direction of change is the same, the lower limit is used as the benchmark; the larger the relative position, the closer the period scaling factor is to the upper limit, meaning that the greater the correction of emotional intensity, the longer the shot duration. When the direction of change is opposite, the upper limit is used as the benchmark; the larger the relative position, the closer the period scaling factor is to the lower limit, meaning that the greater the correction of emotional intensity, the shorter the shot duration.

[0126] Specifically, the lower limit of the preset periodic scaling factor range is 0.3 to 0.8, preferably 0.5; the upper limit range is 1.5 to 3.0, preferably 2.0; and the width of the range is the difference between the upper and lower limits, ranging from 0.7 to 2.7, preferably 1.5. The preset periodic scaling factor range is set based on the following: the lower limit represents the minimum multiple by which the shot duration can be shortened relative to the rhythmic baseline duration; the upper limit represents the maximum multiple by which the shot duration can be extended relative to the rhythmic baseline duration; and the width of the range should be set so that the range of shot duration variation meets the needs of emotional expression without disrupting the overall rhythm of the short film due to excessive scaling.

[0127] When the directions of change are in the same direction, the period scaling factor equals the lower limit of the interval plus the product of the relative position and the interval width. The greater the intensity of the corrected emotion, the greater the period scaling factor. This means that the larger the relative position, the higher the level of the corrected emotion intensity within the emotion interval, the stronger the emotion, and the closer the period scaling factor is to the upper limit of the interval. This results in the shot duration being extended more relative to the rhythmic baseline duration, thus carrying a stronger emotion with a longer shot duration.

[0128] When the direction of change is reversed, the period scaling factor equals the upper limit of the interval minus the product of the relative position and the interval width. The greater the intensity of the corrected emotion, the smaller the period scaling factor. This means that the larger the relative position, the higher the level of the corrected emotion within the emotional interval, the stronger the emotion, and the closer the period scaling factor is to the lower limit of the interval. This results in the shot duration being shortened more relative to the rhythmic baseline duration, thus conveying a stronger emotion in a shorter shot duration and creating a rapid and tense rhythm.

[0129] Regardless of whether the change direction is the same or opposite, the value of the period scaling factor falls within the preset period scaling factor range, ensuring that the scaling range of the shot duration is within a reasonable range. The determined period scaling factor serves as the scaling factor for subsequent shot duration calculation steps, directly determining the shot duration corresponding to the target emotion node.

[0130] This step determines the direction of change based on the frequency band energy of the time window, the relative position based on the corrected emotional intensity, and the coefficient value within a preset periodic scaling factor range based on the direction of change and the relative position. This achieves the linkage between the shot scaling strategy and the musical characteristics and emotional intensity. When low frequencies dominate, the greater the corrected emotional intensity, the longer the shot duration; when high frequencies dominate, the greater the corrected emotional intensity, the shorter the shot duration; and when mid frequencies dominate, the direction is determined based on the proportion of mid-frequency, so that the direction of change in shot duration matches the emotional driving method of the music. At the same time, the level of emotional intensity within the emotional range is quantified by the relative position, so that the value of the periodic scaling factor is proportional to the emotional intensity. Ultimately, this provides a scaling factor that takes into account both musical characteristics and emotional intensity for the subsequent calculation of shot duration.

[0131] In specific implementation, the determination of the direction of change can be replaced by the comparison result of the frequency band energy of the time window with the preset energy threshold, or by the change trend of the frequency band energy; the calculation of the relative position can be replaced by comparing the modified emotional intensity with the median value of the preset emotional intensity range and taking the sign function, or by using a piecewise mapping method; the determination of the period scaling factor can be replaced by directly using the relative position as the period scaling factor, or by using a nonlinear mapping method to map the relative position to the preset period scaling factor range.

[0132] The rhythmic baseline duration is obtained from the target time window, and the rhythmic baseline duration is scaled using the period scaling factor as a scaling factor to obtain the shot duration corresponding to the target emotion node.

[0133] This step applies the period scaling factor determined in the previous step to the rhythmic baseline duration to calculate the shot duration corresponding to the target emotional node. The rhythmic baseline duration comes from the target time window matched to the target emotional node, reflecting the average interval of musical beats within that time period. The period scaling factor reflects the combined influence of modified emotional intensity and musical frequency energy on shot duration. By scaling the rhythmic baseline duration using the period scaling factor as a scaling factor, the shot duration retains the rhythmic characteristics of the music itself while incorporating the modulation effects of emotional intensity and musical frequency energy, thus ensuring that the generated shot duration is coordinated with the musical rhythm and emotional changes.

[0134] Specifically, the rhythmic reference duration is obtained as follows: based on the target time window matched to the target emotion node, the rhythmic reference duration is read from the music spectrum data of the target time window. The rhythmic reference duration represents the average interval duration of the music beats within the target time window, and its value ranges from 0.2 seconds to 1 second, preferably 0.5 seconds. Scaling the rhythmic reference duration refers to multiplying the rhythmic reference duration by a period scaling factor to obtain the shot duration corresponding to the target emotion node. When the period scaling factor is greater than 1, the shot duration is greater than the rhythmic reference duration, indicating that the shot is extended; when the period scaling factor is less than 1, the shot duration is less than the rhythmic reference duration, indicating that the shot is shortened.

[0135] After obtaining the shot duration corresponding to the target emotion node, it is determined whether the shot duration is less than a preset minimum duration threshold. If the shot duration is less than the preset minimum duration threshold, the preset minimum duration threshold is used as the shot duration corresponding to that emotion node. The preset minimum duration threshold ranges from 0.2 seconds to 0.5 seconds, preferably 0.3 seconds. This process avoids generating excessively short shot durations due to a too small period scaling factor, ensuring that each shot has sufficient display time during playback and preventing excessively frequent shot transitions that could negatively impact the viewing experience.

[0136] This step obtains the rhythmic baseline duration from the time window and scales it using a periodic scaling factor to ensure that the shot duration is consistent with the characteristics of the musical rhythm, and that the changes in shot duration are consistent with the trend of musical beat changes. The periodic scaling factor incorporates the effects of correcting emotional intensity and musical frequency energy into the shot duration, allowing the shot duration to simultaneously reflect emotional intensity and musical characteristics. After obtaining the shot duration, a preset minimum duration threshold is used to protect the shot duration from being too short due to an excessively small periodic scaling factor, ensuring that each shot has sufficient display time during playback and preventing excessively frequent shot transitions that could negatively impact the viewing experience. This provides crucial data—the shot duration corresponding to the target emotional node—for the subsequent generation of storyboard parameters.

[0137] In specific implementation, the rhythm reference duration can be replaced by the median or mode of the musical beat interval within the time window; the scaling method can be replaced by performing a weighted average calculation of the period scaling factor and the rhythm reference duration, or by using a lookup table mapping method to determine the shot duration; the rhythm reference duration can also be replaced by the duration of the time window itself, directly scaling the duration of the time window using the period scaling factor.

[0138] Obtain the node time interval and shot duration of the target emotion node, and generate the storyboard parameters for the short film.

[0139] This step is the final output of the entire automatic storyboard generation method. Its function is to integrate the node time interval and shot duration of the target emotion node calculated in the previous steps to generate the storyboard parameters for the short film. The node time interval represents the time range corresponding to the emotion node in the short film, and the shot duration represents the duration of the shot corresponding to the emotion node. By combining the two, the start time, end time, and shot duration of the shot corresponding to the emotion node in the short film can be determined, thus forming complete storyboard parameters, providing a direct basis for subsequent editing of the short film.

[0140] Specifically, the storyboard parameters refer to a set of parameters describing the storyboard scheme of a short film, including at least the time interval of the target emotional node, the shot duration, and the shot arrangement order on the timeline. The generation method is as follows: obtain the start and end times of the time interval of the target emotional node, obtain the shot duration corresponding to the target emotional node, and arrange the time interval and shot duration according to the narrative order of the emotional sequence data to generate the storyboard parameters. The storyboard parameters can be used to output a visual storyboard, including the time range, shot duration, and shot arrangement order corresponding to each emotional node. When multiple emotional nodes exist, arranging the time interval and shot duration of each emotional node sequentially according to the narrative order yields the complete storyboard parameters.

[0141] This step integrates the time intervals of nodes and the duration of shots into storyboard parameters, providing a directly usable storyboard solution for editing short films, including the start time, end time, and duration of shots corresponding to each emotional node; by arranging the storyboard parameters of multiple emotional nodes in narrative order, a complete sequence of storyboard parameters is formed, which is convenient for subsequent editing software to read and use directly; and it realizes the automated generation of storyboard parameters from background music data and script data, reducing the workload of manual storyboarding.

[0142] In practice, the output format of the storyboard parameters can be replaced with a table, a timeline, or a structured text format; the storyboard parameters may also include additional parameters such as shot type and shot movement; the storyboard parameters can be directly output to editing software or output as a visual interface for manual adjustment.

[0143] like Figure 2 As shown, this invention provides a visual automatic generation system for storyboards of short films, including:

[0144] The data acquisition module is used to acquire background music data and script data for the target short film.

[0145] The spectrum analysis module is used to perform spectrum analysis on the background music data to obtain music spectrum data for multiple time windows;

[0146] The emotion analysis module is used to parse the script data into emotion nodes to obtain emotion sequence data of multiple emotion nodes;

[0147] The modulation module is used to obtain the initial emotional intensity of the target emotional node from the emotional sequence data and match it with the target time window of the music spectrum data, obtain the frequency band energy of the target time window, calculate the comprehensive energy based on the frequency band energy and input it into a preset function to obtain the music modulation factor, and use the music modulation factor to correct the initial emotional intensity to obtain the corrected emotional intensity.

[0148] The scaling factor determination module is used to determine the direction of change of the period scaling factor based on the frequency band energy of the target time window, and to determine the relative position of the modified emotional intensity within a preset emotional intensity range; and to determine the corresponding coefficient value as the period scaling factor within the preset period scaling factor range based on the direction of change and the relative position.

[0149] The duration determination module is used to obtain the rhythm reference duration from the target time window, and scale the rhythm reference duration using the period scaling coefficient as a scaling factor to obtain the shot duration corresponding to the target emotion node.

[0150] The script parameter generation module is used to obtain the node time interval and shot duration of the target emotion node, and generate the storyboard script parameters of the short film.

[0151] The technical scope of this invention is not limited to the content described above. Those skilled in the art can make various modifications and variations to the above embodiments without departing from the technical concept of this invention, and all such modifications and variations should fall within the protection scope of this invention.

Claims

1. A method for automatically generating storyboards for short films using visualization, characterized in that: Specifically, it includes: Obtain background music and script data for the target short film; Spectral analysis of the background music data yields music spectrum data for multiple time windows; The script data is parsed to obtain emotional sequence data of multiple emotional nodes; The initial emotional intensity of the target emotional node is obtained from the emotional sequence data and matched with the target time window of the music spectrum data. The frequency energy of the target time window is obtained. The comprehensive energy is calculated based on the frequency energy and input into a preset function to obtain the music modulation factor. The initial emotional intensity is corrected with the music modulation factor to obtain the corrected emotional intensity. The direction of change of the period scaling factor is determined based on the frequency band energy of the target time window, and the relative position of the modified emotional intensity within the preset emotional intensity range is determined; the corresponding coefficient value is determined as the period scaling factor within the preset period scaling factor range based on the direction of change and the relative position. The rhythmic baseline duration is obtained from the target time window, and the rhythmic baseline duration is scaled using the period scaling factor as the scaling factor to obtain the shot duration corresponding to the target emotion node. Obtain the node time interval and shot duration of the target emotion node, and generate the storyboard parameters for the short film.

2. The method for automatically generating visual storyboards for short films according to claim 1, characterized in that: The specific method for generating the music spectrum data is as follows: The background music data is divided into multiple time windows according to preset time windows; For each time window, extract the frequency band energy and rhythm reference duration, where the frequency band energy includes low-frequency energy, mid-frequency energy and high-frequency energy; The frequency band energy and rhythmic reference duration corresponding to each time window are arranged on the time axis to obtain the music spectrum data. Each time window includes the frequency band energy and the rhythmic reference duration.

3. The method for automatically generating visual storyboards for short films according to claim 1, characterized in that: The generation of the emotion sequence data is specifically as follows: The script data is analyzed, and multiple emotional nodes arranged in narrative order are determined according to preset emotional transition recognition rules. Label each emotion node with its emotion type, initial emotion intensity, and time interval. The labeled emotion nodes are arranged in narrative order to obtain the emotion sequence data.

4. The method for automatically generating visual storyboards for short films according to claim 2, characterized in that: The calculation of the comprehensive energy is as follows: The maximum energy value of each frequency band in all time windows of the music spectrum data is obtained respectively; For the target time window, the energy of each frequency band is normalized and mapped based on the maximum energy value of each frequency band to obtain the normalized energy of each frequency band. The energy of each normalized frequency band is weighted and summed according to the preset weights corresponding to the energy of each normalized frequency band to obtain the comprehensive energy. The preset weights are determined based on the type of the target short film, with different types of short films corresponding to different weight combinations.

5. The method for automatically generating visual storyboards for short films according to claim 1, characterized in that: The mathematical form of the preset function is as follows: ; in Music modulation factor, The total energy of the target time window. This is the lower limit value of the modulation of the music modulation factor. is the upper limit of the modulation of the music modulation factor, and k is a preset rate parameter.

6. The method for automatically generating visual storyboards for short films according to claim 5, characterized in that: The specific values ​​of the modulation upper limit, modulation lower limit, and preset rate parameter are as follows: Obtain the type parameters of the target short film, and determine the value of the lower modulation limit of the music modulation factor, the upper modulation limit of the music modulation factor, and the value of the preset rate parameter based on the type parameters; The value of the lower limit of the music modulation factor is negatively correlated with the degree of music's weakening effect on emotion, as represented by the type parameter. The upper limit of the modulation factor of the music is positively correlated with the degree of enhancement of emotion by the music represented by the type parameter. The value of the preset rate parameter is positively correlated with the rhythm speed represented by the type parameter.

7. The method for automatically generating visual storyboards for short films according to claim 2, characterized in that: The determination of the direction of change of the period scaling factor is specifically as follows: Compare the magnitude relationships among the low-frequency energy, mid-frequency energy, and high-frequency energy of the target time window; If the low-frequency energy is the largest, then the direction of change of the period scaling factor is determined to be in the same direction, which means that the larger the relative position, the larger the period scaling factor. If the high-frequency energy is at its maximum, then the direction of change of the period scaling factor is determined to be reversed, and the reversed direction indicates that the larger the relative position, the smaller the period scaling factor; If the intermediate frequency energy is at its maximum, the ratio of the intermediate frequency energy to the sum of the energies is obtained. The sum of the energies is the sum of the low-frequency energy and the high-frequency energy. If the ratio is greater than a preset ratio threshold, the direction of change is determined to be in the same direction. If the ratio is not greater than the preset ratio threshold, the direction of change is determined to be in the opposite direction.

8. The method for automatically generating visual storyboards for short films according to claim 1, characterized in that: The relative position of the modified emotional intensity within the preset emotional intensity range is determined specifically as follows: Obtain the lower limit and upper limit of the preset emotion intensity range; The difference between the modified emotion intensity and the lower limit of the interval is calculated to obtain the first difference; The difference between the upper limit value and the lower limit value of the interval is calculated to obtain the second difference value; The relative position is obtained by performing a ratio operation between the first difference and the second difference.

9. The method for automatically generating visual storyboards for short films according to claim 1, characterized in that: The determination of the period scaling factor is specifically as follows: Obtain the lower limit and upper limit of the preset period scaling factor range; If the change direction is the same, the period scaling factor is based on the lower limit of the preset period scaling factor interval and shifts towards the upper limit of the interval according to the correspondence between the relative position and the interval width. The interval width is the difference between the upper limit of the preset period scaling factor interval and the lower limit of the interval. If the direction of change is reversed, the period scaling factor is offset towards the lower limit of the interval based on the upper limit of the preset period scaling factor interval, according to the correspondence between the relative position and the interval width.

10. A visual automatic generation system for storyboards of short films, characterized in that: Specifically, it includes: The data acquisition module is used to acquire background music data and script data for the target short film. The spectrum analysis module is used to perform spectrum analysis on the background music data to obtain music spectrum data for multiple time windows; The emotion analysis module is used to parse the script data into emotion nodes to obtain emotion sequence data of multiple emotion nodes; The modulation module is used to obtain the initial emotional intensity of the target emotional node from the emotional sequence data and match it with the target time window of the music spectrum data, obtain the frequency band energy of the target time window, calculate the comprehensive energy based on the frequency band energy and input it into a preset function to obtain the music modulation factor, and use the music modulation factor to correct the initial emotional intensity to obtain the corrected emotional intensity. The scaling factor determination module is used to determine the direction of change of the period scaling factor based on the frequency band energy of the target time window, and to determine the relative position of the modified emotional intensity within a preset emotional intensity range; and to determine the corresponding coefficient value as the period scaling factor within the preset period scaling factor range based on the direction of change and the relative position. The duration determination module is used to obtain the rhythm reference duration from the target time window, and scale the rhythm reference duration using the period scaling coefficient as a scaling factor to obtain the shot duration corresponding to the target emotion node. The script parameter generation module is used to obtain the node time interval and shot duration of the target emotion node, and generate the storyboard script parameters of the short film.