WO2021136334A1 - Video generating method and apparatus, electronic device, and computer readable storage medium - Google Patents

Video generating method and apparatus, electronic device, and computer readable storage medium Download PDF

Info

Publication number
WO2021136334A1
WO2021136334A1 PCT/CN2020/141204 CN2020141204W WO2021136334A1 WO 2021136334 A1 WO2021136334 A1 WO 2021136334A1 CN 2020141204 W CN2020141204 W CN 2020141204W WO 2021136334 A1 WO2021136334 A1 WO 2021136334A1
Authority
WO
WIPO (PCT)
Prior art keywords
image data
text
data
video
matching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2020/141204
Other languages
French (fr)
Chinese (zh)
Inventor
金莉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Publication of WO2021136334A1 publication Critical patent/WO2021136334A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234336Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by media transcoding, e.g. video is transformed into a slideshow of still pictures or audio is converted into text
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440236Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by media transcoding, e.g. video is transformed into a slideshow of still pictures, audio is converted into text
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/475End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data

Definitions

  • This application relates to the field of video generation, and in particular to a video generation method and device, electronic equipment, and computer-readable storage media.
  • the embodiments of the present application provide a video generation method and device, electronic equipment, and computer-readable storage medium, which can automatically parse text in an image and establish a matching relationship with audio, thereby generating a video with text and audio synchronization display effects.
  • an embodiment of the present application provides a video generation method, including:
  • the first video data is generated according to the plurality of second image data.
  • the embodiment of the application also provides a video generation method, including:
  • the first video data is generated according to the second image data.
  • the embodiment of the application also provides a video generation method, including:
  • the first video data is generated according to the second image data.
  • the embodiment of the present application also provides a video generation device, including:
  • An acquiring component used to acquire at least one first image data and at least one first text segment
  • An analysis component which is used to perform text analysis processing on the first image data to obtain text information contained in the first image data
  • a matching component the matching component is used to determine the text information of the first image data and the matching data of the first text segment;
  • An image data generation component the image data generation component is used to process the first image data according to the matching data to generate a plurality of second image data, wherein the second image data and the first text
  • the matched text information has the first display effect
  • the video data generating component is configured to generate first video data according to the plurality of second image data.
  • the embodiment of the present application also provides a video generation device, including:
  • An image data acquisition component the image data acquisition component being used to acquire at least one piece of first image data
  • An analysis component which is used to perform text analysis processing on the first image data to obtain text information contained in the first image data
  • a text segment acquisition component which is used to input the text information into a search engine to acquire at least one first text segment
  • a matching component the matching component is used to determine the text information of the first image data and the matching data of the first text segment;
  • An image data generation component the image data generation component is used to process the first image data according to the matching data to generate a plurality of second image data, wherein the second image data and the first text
  • the matched text information has the first display effect
  • the video data generating component is configured to generate first video data according to the plurality of second image data.
  • the embodiment of the present application also provides a video generation device, including:
  • a receiving component configured to receive at least one first image data and at least one first text segment input by a user
  • An analysis component which is used to perform text analysis processing on the first image data to obtain text information contained in the first image data
  • a matching component the matching component is used to determine the text information of the first image data and the matching data of the first text segment;
  • a display component for displaying the matching data to the user
  • the receiving component is further configured to receive instruction data for the matching data input by a user, wherein the instruction data includes at least instruction information for the first display effect of the matching data;
  • the video generating device further includes: an image data generating component configured to process the first image data according to the instruction data to generate a plurality of second image data, wherein the second image The text information in the data that matches the first text segment has the first display effect; and
  • a video data generating component configured to generate first video data according to the second image data
  • the embodiment of the present application also provides an electronic device, including:
  • a memory coupled to the processing unit and containing instructions stored thereon, which when executed by the processing unit causes the device to perform actions, the actions including:
  • the first video data is generated according to the plurality of second image data.
  • the embodiments of the present application also provide a computer-readable storage medium on which instructions are stored, and the instructions include:
  • the first video data is generated according to the plurality of second image data.
  • the video generation method and device, electronic equipment, and computer-readable storage medium obtained by the embodiments of the present application obtain the text information contained in the image data from the first image data and determine the match between such text information and at least one text segment Data, so that the matching relationship between the image data and at least one text segment can be established, and then the image data can be processed based on such matching relationship to generate a plurality of second image data corresponding to the text segment, and finally based on these first images.
  • the image data generates video data in which the text information matching the text segment has the first display effect. In this way, the image and text video in which the image data and the text segment correspond to each other can be automatically generated based on various graphic materials, thereby greatly improving Improved the efficiency of graphic and video generation.
  • FIGS. 1A to 1C are schematic diagrams describing application scenarios of a video generation solution according to an embodiment of the present application.
  • Fig. 2 is a schematic flowchart of a video generation method according to an embodiment of the present application
  • Fig. 3 is a schematic diagram describing an application scenario of a video generation method according to an embodiment of the present application
  • FIG. 4 is a schematic flowchart of another video generation method according to an embodiment of the present application.
  • Fig. 5 is a schematic structural diagram of a video generating device according to an embodiment of the present application.
  • Fig. 6 is a schematic structural diagram of a video generating device according to an embodiment of the present application.
  • Fig. 7 is a schematic structural diagram of a video generating device according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of an electronic device according to an embodiment of the application.
  • Such a graphic video is different from various common videos, and it is actually a collection of various materials related to specific content, such as pictures and text.
  • a content needs to be explained, it needs to be explained based on a picture and combined with a paragraph of explanatory text. That is, it is necessary to record a video based on one or more pictures and text or audio corresponding to the content of the picture.
  • the playback of the picture needs to be synchronized with the text of the explanation, and the text can be further converted into audio, so as to realize the audio explanation of the content of the picture.
  • image-text video can only be produced manually. For example, you need to collect and organize various materials, such as pictures, articles, and video clips, etc., and then manually edit and organize them. For example, collect the corresponding text according to the content of the picture or manually make the text, and generate matching graphic data , So as to finally form a graphic video.
  • an existing manual video production method requires a lot of manual participation, which is not only high in cost but also relatively low in production efficiency.
  • FIG. 1A to 1C are schematic diagrams describing application scenarios of a video generation solution according to an embodiment of the present application.
  • various materials can be obtained from various data sources as input data. These materials may include, for example, pictures, text, mixed data of pictures and text, video, audio, and so on.
  • the pictures and text segments in these materials can be directly used as pictures 11 and text segments 12 for subsequent video generation processing, or if the obtained material data is mixed data containing pictures and text, video, audio, etc., you can These data are processed in advance, and the processed pictures and text are used as the picture 11 and the text segment 12 shown in FIG. 1A for subsequent video generation processing.
  • the picture 11 can be extracted to extract various text information in the picture 11.
  • text information 111 to 11n can be extracted from the picture 11.
  • the extracted text information 111 to 11n may be, for example, subtitles of some sub-content involved in the content described in the picture. Therefore, the matching data between these text information 111 to 11n and the text segment 12 can be further determined.
  • the matching data mentioned here may be the correspondence between each of the text information 111 to 11n and the corresponding content in the text segment 12.
  • the text segment 12 may include sub-text segments 121 to 12n, which respectively correspond to the respective text information 111 to 11n in the picture 11, and may be for the text information 111 to 11n in the picture 11.
  • each subtitle of the content of the picture 11 shown. Therefore, after determining the matching data between the text information of the picture 11 and the text segment, the picture 11 can be processed according to the matching data and a plurality of pictures 131 to 13n for the video can be generated, each of which is a picture for the video. It may be one of the sub-text segments including the content of the picture 11 and the text segment 12, and the text information of the picture 11 corresponding to the included sub-text segment may be given a specific display effect. For example, the text information 111 of the picture 11 corresponds to the sub-text segment 121 of the text segment 12.
  • the sub-text segment 121 records the description and explanation of the text information 111, and the picture 11 can be processed based on such matching data, thereby A picture 131 containing the entire content of the picture 11 and the video of the sub-section 121 is generated, and the picture 131 may contain a display effect applied to the text information 111 corresponding to the sub-text section 121, for example, as shown in FIG. 1A As shown, the text information 111 can be highlighted, so that the user can clearly understand when watching this part of the video, that the sub-text segment 121 is explaining and explaining the text information 111.
  • the video 15 can be further generated based on these pictures 131 to 13n.
  • FIG. 2 is a schematic flowchart of a video generation method according to an embodiment of the present application. As shown in FIG. 2, the video generation method according to the embodiment of the present application includes the following steps:
  • the material used to generate the video can be obtained from various data sources as the first image data.
  • a picture containing text may be obtained from various web pages as the first image data, or the user may directly input a picture containing text on the user interface as the first image data.
  • various pictures can also be obtained from various data sources, and then the obtained pictures are preprocessed to identify pictures containing text as the first image data.
  • the user may input any material through the user interface, and process the picture input by the user to recognize the picture containing text as the first image data.
  • various text analysis processing such as text extraction technology, can be used to analyze and process the acquired first image data, so that the text sentences contained in the image can be acquired. Segment as text information. For example, when the picture 11 shown in FIG. 1A is acquired as the first image data, all the text segments contained in the image can be acquired through image processing as the text information "TOP1" 111, "in the embodiment of the present application. "High conversion” 112 and "S-level big promotion” 113.
  • At least one first text segment 12 can be further acquired.
  • at least one first text segment can be obtained according to the first image data, or various text segments can be obtained from a text data source to be used as a candidate first text segment for subsequent processing.
  • the first text segment 12 may include a plurality of first sub-text segments.
  • the first text segment 12 may be a text segment containing multiple text fields or multiple text sentences.
  • the at least one first text segment obtained in step 203 may be a text segment related to the content of the first image data, or a text segment containing text related to the content of the first image data. , Or any text segment.
  • step 201 may be performed to obtain the first image data and then step 203 may be performed to obtain the first text segment, or step 203 may be performed to obtain the first text segment, and then step 201 may be performed to obtain the first image data.
  • step 201 and step 203 can also be performed at the same time.
  • the matching data between these text information 111-113 in the first image data and the first text segment can be further determined.
  • the multiple sub-text segments contained in the first text segment may be compared with the text information 111-113, respectively, to determine the sub-text segments 121-123 that respectively match the text information 111-113.
  • each first text segment can be compared with the text information one by one to determine matching data.
  • step 204 can be used to determine that the text information "TOP1" 111, "High Conversion” 112, and "S-level promotion” 113 are respectively associated with the sub-text segment in the text segment 12.
  • "121, "Intelligent Optimal Placement Hosting” 122, and "Unlimited Theme Differential Marketing” 123 have a corresponding relationship, and thus constitute matching data.
  • the first text segment 12 may additionally contain another first text that contains sub-text segments "first place in search results for 30 days", "optimized conversion improvement" level 1 "S-level promotion, town shop treasure, etc.” Segment 12. Therefore, in this case, it can be determined in this step 204 that the text information "TOP1" 111, "High Conversion” 112, and “S-level promotion” 113 are respectively and the sub-text segment in the text segment 12 "marking the first position to show the strength" "121, "Smart Optimal Placement Hosting” 122 and "Unlimited Theme Differential Marketing" 123 have a corresponding relationship, and the text information "TOP1" 111, "High Conversion” 112 and "S-Level Promotion” 113 are respectively in another text segment 12.
  • the first image data may be processed based on the matching data thus determined.
  • the processing may include embedding each corresponding sub-text segment in the first text segment in the first image data, and corresponding to the embedded sub-text segment, so that the text information corresponding to the embedded sub-text segment has a specific Display of results.
  • the text information can be highlighted, the font of the text information can be displayed in bold, or a graphic mark can be added to the text information. Therefore, when the user views the plurality of second image data formed in this way, the object described by the currently displayed subtext field can be obtained according to the text information with a display effect.
  • step 204 when it is determined in step 204 that the text information "TOP1" 111, "High Conversion” 112, and "S-level promotion” 113 are respectively the same as the sub-text segment in the text segment 12 "Marking the first position to show strength” 121 , "Intelligent Optimal Placement Hosting” 122 and "Unlimited Theme Differential Marketing” 123 have a corresponding relationship, and after forming matching data, image 11 can be processed based on such matching data, so that the image 11 can be embedded with children.
  • the text segment "Marking the first place to show strength” 121, "Smart optimal placement hosting” 122 and "Unlimited theme difference marketing” 123 are the three sub-text segments pictures 131-133, and each of the pictures 131-133 corresponds to the
  • the text information of the embedded sub-text segment may have a specific display effect.
  • the text information "TOP1" 111 corresponding to the sub-text segment "marking the first place to show strength” 121 can have a highlight display effect to remind The user who is watching, the content currently being explained or explained is the text information "TOP1" 111.
  • FIG. 3 is a schematic diagram describing an application scenario of a video generation method according to an embodiment of the present application.
  • the picture 11 is acquired and the text information in the picture 11 is extracted.
  • text information 111 to 11n are extracted from the picture 11.
  • the text segment 12 can be acquired, and the audio data 181-18n corresponding to each sub-text segment 121-12n in the text segment 12 can be generated or acquired based on the text segment 12. Then, as shown in FIG.
  • the picture 11 can be processed according to such matching data and a plurality of pictures 131 to 131 for video can be generated. 13n, the picture for each video can be one of the sub-text segments containing the content of the picture 11 and the text segment 12, and the text information of the picture 11 corresponding to the contained sub-text segment can be applied with specific Display effect.
  • the text information 111 of the picture 11 corresponds to the sub-text segment 121 of the text segment 12.
  • the sub-text segment 121 records the description and explanation of the text information 111, and the picture 11 can be processed based on such matching data, thereby A picture 131 for the video containing the entire content of the picture 11 and the sub-text segment 121 is generated, and the picture 131 may contain a display effect applied to the text information 111 corresponding to the sub-text segment 121, for example, as shown in FIG. 1A As shown, the text information 111 can be highlighted, so that the user can clearly understand when watching this part of the video, that the sub-text segment 121 is explaining and explaining the text information 111.
  • FIG. 1A the text information 111 can be highlighted, so that the user can clearly understand when watching this part of the video, that the sub-text segment 121 is explaining and explaining the text information 111.
  • the generated video not only includes the sub-text segment corresponding to the text information as the content object of the current explanation or description, but also includes the sub-text segment corresponding to the sub-text segment. Audio data, so when the user views the part, he can not only watch the text explaining or explaining the text information, but also listen to the audio of the explanation or explanation.
  • FIG. 4 is another schematic flowchart of the video generation method according to the embodiment of the present application.
  • the video generation method according to another embodiment of the present application includes the following steps:
  • the material used to generate the video can be obtained from various data sources as the first image data.
  • a picture containing text may be obtained from various web pages as the first image data, or the user may directly input a picture containing text on the user interface as the first image data.
  • various pictures can also be obtained from various data sources, and then the obtained pictures are preprocessed to identify pictures containing text as the first image data.
  • the user may input any material through the user interface, and process the picture input by the user to recognize the picture containing text as the first image data.
  • the first image data and the first text segment may be obtained by performing image extraction processing and text extraction processing on the mixed data respectively.
  • step 402 may be performed to obtain the first image data and then step 403 may be performed to obtain the first text segment, or step S303 may be performed to obtain the first text segment, and then step 402 may be performed to obtain the first image data.
  • step 402 and step 403 can also be performed at the same time.
  • various text analysis processing such as text extraction technology, can be used to analyze and process the acquired first image data.
  • Acquire text segments contained in the image as text information For example, when the picture 11 shown in FIG. 1A is acquired as the first image data, all the text segments contained in the image can be acquired through image processing as the text information "TOP1" 111, "in the embodiment of the present application. High conversion" 112 and "S-level big promotion” 113. 203, obtain at least one first text segment.
  • the text analysis processing can use any technical solution in the art to obtain the text information contained in the first image data.
  • the blank area in the first image data can be recognized first, and then the text area surrounded by the blank area can be determined based on the recognized blank area, and then text extraction processing can be performed on the text area to generate text information.
  • At least one first text segment 12 can be further acquired.
  • at least one first text segment can be obtained according to the first image data, or various text segments can be obtained from a text data source to be used as a candidate first text segment for subsequent processing.
  • the first text segment 12 may include a plurality of first sub-text segments.
  • the first text segment 12 may be a text segment containing multiple text fields or multiple text sentences.
  • the acquired at least one first text segment may be a text segment related to the content of the first image data, or a text segment containing text related to the content of the first image data, or also Any text segment can be used.
  • At least one keyword may be generated based on the text information contained in the first image data, and the first text segment may be obtained based on the generated keyword.
  • a search algorithm may be used to perform a search process on the Internet based on the generated keywords to obtain a text segment related to the text information contained in the first image data.
  • a text generation algorithm can be used based on the generated keyword to directly generate a text segment matching the text information corresponding to the keyword based on the keyword.
  • the matching data between these text information 111-113 in the first image data and the first text segment can be further determined.
  • the multiple sub-text segments contained in the first text segment may be compared with the text information 111-113, respectively, to determine the sub-text segments 121-123 that respectively match the text information 111-113.
  • each first text segment can be compared with the text information one by one to determine matching data.
  • step 204 can be used to determine the text information "TOP1" 111, "High Conversion” 112, and "S-level Big Promotion” 113, respectively, and the sub-text segment in the text segment 12.
  • "121, "Intelligent Optimal Placement Hosting” 122 and "Unlimited Theme Differential Marketing” 123 have a corresponding relationship, and thus constitute matching data.
  • the first text segment 12 may additionally contain another first text that contains sub-text segments "first place in search results for 30 days", "optimized conversion improvement” level 1 "S-level promotion, town shop treasure, etc.” Segment 12. Therefore, in this case, the determined text information "TOP1" 111, "High Conversion” 112, and “S-level Big Promotion” 113 can be combined with the sub-text segment in the text segment 12 "Marking the first position to show strength” 121, "Smart Optimal Placement Hosting” 122 and “Unlimited Theme Differential Marketing” 123 have a corresponding relationship, and the text information "TOP1" 111, “High Conversion” 112 and “S-Class Promotion” 113 are respectively subtexts in another text segment 12
  • the paragraphs "the first 30 days in search results", “optimized conversion improvement", "S-level big promotion, town shop treasures and other scenes” have a corresponding relationship. Therefore, in this case, such a two-layer correspondence relationship can constitute the matching data between the text information of the first image data and
  • the first image data can be processed based on the matching data thus determined.
  • the processing may include embedding each corresponding sub-text segment in the first text segment in the first image data, and corresponding to the embedded sub-text segment, so that the text information corresponding to the embedded sub-text segment has a specific Display of results.
  • the text information can be highlighted, the font of the text information can be displayed in bold, or a graphic mark can be added to the text information. Therefore, when the user views the plurality of second image data formed in this way, the object described by the currently displayed subtext field can be obtained according to the text information with a display effect.
  • the text segment "Marking the first place to show strength” 121, "Smart optimal placement hosting” 122 and "Unlimited theme difference marketing” 123 are the three sub-text segments pictures 131-133, and each of the pictures 131-133 corresponds to the
  • the text information of the embedded sub-text segment may have a specific display effect.
  • the text information "TOP1" 111 corresponding to the sub-text segment "marking the first place to show strength” 121 can have a highlight display effect to remind The user who is watching, the content currently being explained or explained is the text information "TOP1" 111.
  • the audio data 181-18n corresponding to each sub-text segment 121-12n in the text segment 12 can be further generated or obtained based on the text segment 12.
  • audio data is generated based on the text segment 12 in various ways.
  • TTS Text To Speech
  • other algorithms can also be used to generate content-related audio data based on the content of the text segment 12.
  • the generated video not only includes the sub-text segment corresponding to the text information as the content object of the current explanation or description, but also includes the sub-text segment corresponding to the sub-text segment. Audio data, so when the user views the part, he can not only watch the text explaining or explaining the text information, but also listen to the audio of the explanation or explanation.
  • the audio data generated from the text segment may further include time information corresponding to the text.
  • the audio information generated based on the sub-text segment "marking the first place to show strength" 121 may further include the playback time required for the audio corresponding to the eight words contained in the sub-text segment "marking the first place to show strength" 121.
  • the playing time can be determined according to the preset speech rate and the length of the text. Therefore, in the video generation method according to the present application, the audio data can be further synchronized with the second image data generated based on the first image data based on the time information.
  • the second image data 131 embedded with the sub-text segment generated based on the sub-text segment "Marking the first position to show strength" 121 can be synchronized with the audio data corresponding to the sub-text segment "Marking the first position to show strength" 121, and further based on In this way, the synchronized second image data and audio data are used to generate video data, so as to ensure that when the user is watching the second image data, the time that the second image data remains played is sufficient to make the audio corresponding to the second image data Data playback is complete.
  • the user may further specify the playback time of the audio clip corresponding to the second image data before the video data is generated, and after the user confirms the playback time, the second image data and the specified playback time may be combined.
  • the audio clips after the time are synchronized, and video data is generated based on the second image data and audio clips synchronized in this way.
  • the image data and the at least one text segment can be established.
  • the image data can be processed based on such a matching relationship to generate a plurality of second image data corresponding to the text segment, and finally based on these second image data and the matching image data
  • the audio data corresponding to the text segment is generated.
  • the text information that matches the text segment has the first display effect and is synchronized with the video data with audio explanations or instructions. In this way, the image data and the video data can be automatically generated based on various graphic materials.
  • Fig. 5 is a schematic structural diagram of a video generating device according to an embodiment of the present application.
  • the video generation device of the present application may include: an acquisition component 501, an analysis component 502, a matching component 503, an image data generation component 504, and a video data generation component 505.
  • the acquiring component 501 is configured to acquire at least one first image data and at least one first text segment.
  • the obtaining component 501 may obtain the material used to generate the video from various data sources as the first image data.
  • a picture containing text may be obtained from various web pages as the first image data, or the user may directly input a picture containing text on the user interface as the first image data.
  • various pictures can also be obtained from various data sources, and then the obtained pictures are preprocessed to identify pictures containing text as the first image data.
  • the user may input any material through the user interface, and process the picture input by the user to recognize the picture containing text as the first image data.
  • the acquiring component 501 can acquire at least one first text segment according to the first image data, or can acquire various text segments from a text data source to be used as a candidate first text segment for subsequent processing.
  • the first text segment 12 may include a plurality of first sub-text segments.
  • the first text segment 12 may be a text segment containing multiple text fields or multiple text sentences.
  • the at least one first text segment acquired by the acquiring component 501 may be a text segment related to the content of the first image data, or a text segment containing text related to the content of the first image data. , Or any text segment.
  • the acquiring component 501 may also acquire the first data including the image and the text, and further acquire the first image data and the first text segment by performing image extraction and text extraction on the first data.
  • the obtaining component 501 may obtain pictures containing text from various web pages as the first image data, or the user may directly input pictures containing text on the user interface as the first image data.
  • the acquiring component 501 may also acquire various pictures from various data sources, and then preprocess the acquired pictures to identify pictures containing text as the first image data.
  • the acquiring component 501 can also be used by the user to input any material through the user interface, and process the picture input by the user to recognize the picture containing text as the first image data.
  • the first image data and the first text segment may be obtained by performing image extraction processing and text extraction processing on the mixed data respectively.
  • the analysis component 502 is configured to perform text analysis processing on the first image data to obtain text information contained in the first image data.
  • the analysis component 502 can use various text analysis and processing technologies, such as text extraction technology, to analyze and process the first image data acquired by the acquisition component 501, so as to obtain The text segment contained in the image is used as text information.
  • the analyzing component 502 can acquire all the text segments contained in the image through image processing as the text information in the embodiment of the present application. "TOP1" 111, "High conversion” 112 and "S-level big promotion” 113. 203, obtain at least one first text segment.
  • At least one first text segment 12 can be further acquired.
  • the acquiring component 501 can acquire at least one first text segment according to the first image data, or can acquire various text segments from a text data source to use as a candidate first text segment for subsequent processing.
  • the first text segment 12 may include a plurality of first sub-text segments.
  • the first text segment 12 may be a text segment containing multiple text fields or multiple text sentences.
  • the at least one first text segment acquired by the acquiring component 501 may be a text segment related to the content of the first image data, or a text segment containing text related to the content of the first image data. , Or any text segment.
  • the matching component 503 is used to determine the matching data between the text information of the first image data and the first text segment. In the embodiment of the present application, after the analysis component 502 obtains the text information 111-113 and obtains the first text segment of the component 501, the matching component 503 can determine the text information 111-113 in the first image data and the first text segment Matching data.
  • the matching component 503 may compare the multiple sub-text segments contained in the first text segment with the text information 111-113, respectively, to determine the sub-text segments 121-123 respectively matching the text information 111-113.
  • the matching component 503 may compare each first text segment with the text information one by one to determine matching data. For example, as shown in FIG. 1A, the matching component 503 can determine that the text information "TOP1" 111, "High Conversion” 112, and "S-level Big Promotion" 113 are respectively associated with the sub-text segment in the text segment 12 "marking the first position to show strength.” 121.
  • “Intelligent Optimal Placement Hosting” 122 and “Unlimited Theme Differential Marketing” 123 have a corresponding relationship and therefore constitute matching data.
  • the first text segment 12 may additionally contain another first text that contains sub-text segments "first place in search results for 30 days", "optimized conversion improvement" level 1 "S-level promotion, town shop treasure, etc.” Segment 12.
  • the matching component 503 can determine that the textual information "TOP1" 111, "High Conversion” 112, and “S-level Big Promotion” 113 are respectively and the sub-text segment in the text segment 12 "marking the first position to show strength" 121, "Smart Optimal Placement Hosting” 122 and "Unlimited Theme Differential Marketing” 123 have a corresponding relationship, and the text information "TOP1" 111, "High Conversion” 112 and “S-Class Promotion” 113 are respectively subtexts in another text segment 12
  • the paragraphs "the first 30 days in search results", “optimized conversion improvement”, "S-level big promotion, town shop treasures and other scenes” have a corresponding relationship. Therefore, in this case, such a two-layer correspondence relationship can constitute the matching data between the text information of the first image data and the multiple first text segments.
  • the image data generating component 504 is configured to process the first image data according to the matching data to generate a plurality of second image data, wherein the text information in the second image data that matches the first text segment has The first display effect.
  • the image data generating component 504 may process the first image data based on the matching data determined by the matching component 503. For example, the processing may include embedding each corresponding sub-text segment in the first text segment in the first image data, and corresponding to the embedded sub-text segment, so that the text information corresponding to the embedded sub-text segment has a specific Display of results.
  • the text information can be highlighted, the font of the text information can be displayed in bold, or a graphic mark can be added to the text information. Therefore, when the user views the plurality of second image data formed in this way, the object described by the currently displayed subtext field can be obtained according to the text information with a display effect.
  • the video data generating component 505 is configured to generate first video data according to the plurality of second image data.
  • the video data generating component 505 may generate video data based on these pictures.
  • the video generation device of the embodiment of the present application by acquiring the text information contained in the image data from the first image data and determining the matching data between such text information and at least one text segment, the image data and at least one text segment can be established.
  • the matching relationship between a text segment, and then the image data can be processed based on such a matching relationship to generate multiple second image data corresponding to the text segment, and finally based on these second image data to generate which matches the text segment
  • the text information has the first display effect of video data. In this way, the image and text video in which the image data and the text segment correspond to each other can be automatically generated based on various image and text materials, thereby greatly improving the generation efficiency of the image and text video.
  • Fig. 6 is a schematic structural diagram of a video generation device according to an embodiment of the present application.
  • the video generation device of the present application may include: an image data acquisition component 601, an analysis component 602, a text segment acquisition component 603, a matching component 604, an image data generation component 605, and a video data generation component 606.
  • the image data acquisition component 601 can acquire the materials used to generate the video from various data sources as the first image data. For example, a picture containing text may be obtained from various web pages as the first image data, or the user may directly input a picture containing text on the user interface as the first image data.
  • various pictures can also be obtained from various data sources, and then the obtained pictures are preprocessed to identify pictures containing text as the first image data.
  • the user may input any material through the user interface, and process the picture input by the user to recognize the picture containing text as the first image data.
  • the analysis component 602 is configured to perform text analysis processing on the first image data to obtain text information contained in the first image data.
  • the analysis component 602 can use various text analysis and processing technologies, such as text extraction technology, to analyze the first image data acquired by the image data acquisition component 601. Perform analysis and processing, so that the text segment contained in the image can be obtained as text information.
  • the text segment obtaining component 603 is used to input text information into the search engine to obtain at least one first text segment.
  • the text segment obtaining component 603 may generate at least one keyword according to the text information contained in the first image data obtained by the image data obtaining component 601, and obtain the first text segment based on the generated keyword.
  • a search algorithm may be used to perform a search process on the Internet based on the generated keywords to obtain a text segment related to the text information contained in the first image data.
  • a text generation algorithm can be used based on the generated keyword to directly generate a text segment matching the text information corresponding to the keyword based on the keyword.
  • the matching component 604 is used to determine the matching data between the text information of the first image data and the first text segment.
  • the matching component 604 can determine the text information in the first image data and the first text Matching data of the segment.
  • the image data generating component 605 is configured to process the first image data according to the matching data to generate a plurality of second image data, wherein the text in the second image data that matches the first text segment Information has the first display effect.
  • the image data generating component 605 may process the first image data based on the matching data determined by the matching component 604. For example, the processing may include embedding each corresponding sub-text segment in the first text segment in the first image data, and corresponding to the embedded sub-text segment, so that the text information corresponding to the embedded sub-text segment has a specific Display of results. For example, the text information can be highlighted, the font of the text information can be displayed in bold, or a graphic mark can be added to the text information. Therefore, when the user views the plurality of second image data formed in this way, the object described by the currently displayed subtext field can be obtained according to the text information with a display effect.
  • the video data generating component 606 is configured to generate first video data according to the plurality of second image data.
  • the first text segment can be obtained from the Internet using a search algorithm based on the text information in the first image data, and the text information contained in the image data can be obtained by obtaining the text information contained in the image data from the first image data and determining this
  • the matching data between the text information and at least one text segment can establish a matching relationship between the image data and the at least one text segment, and then the image data can be processed based on such a matching relationship to generate a corresponding text segment A plurality of second image data, and finally based on these second image data to generate video data in which the text information matched with the text segment has the first display effect, in this way, the image data and the video data can be automatically generated based on various graphic materials.
  • the textual video corresponding to each other in the text segment greatly improves the generation efficiency of the graphic video.
  • Fig. 7 is a schematic structural diagram of a video generation device according to an embodiment of the present application.
  • the video generating device of the present application may include: a receiving component 701, an analyzing component 702, a matching component 703, a display component 704, an image data generating component 705, and a video data generating component 706.
  • the receiving component 701 is configured to receive at least one first image data and at least one first text segment input by a user.
  • the user may input various image data and text segments on, for example, a user interface as the first image data and the first text segment.
  • the user can also input the first image data and text for the first image data as the first text segment through the receiving component.
  • the analysis component 702 is configured to perform text analysis processing on the first image data to obtain text information contained in the first image data. After the user inputs the first image data through the receiving component 701, the analysis component 702 can use various text analysis and processing technologies, such as text extraction technology, to analyze and process the first image data input by the user through the receiving component 701, so as to obtain The text segment contained in the image is used as text information.
  • various text analysis and processing technologies such as text extraction technology
  • the matching component 703 is used to determine the matching data between the text information of the first image data and the first text segment. In the embodiment of the present application, after the receiving component 701 receives the first image data and the first text segment input by the user, the matching component 703 can determine the matching data between the text information in the first image data and the first text segment.
  • the display component 704 is used to display matching data to the user.
  • the display component 704 may be used to display the result of the matching processing performed by the matching component 703 on the image data and text segment input by the user to the user. Therefore, the receiving component 701 may be further configured to receive instruction data for the matching data input by the user, where the instruction data includes at least instruction information for the first display effect of the matching data.
  • the matching component 703 determines that the text information "TOP1" 111, "High Conversion” 112, and "S-Class Promotion” 113 are respectively associated with the sub-text segment in the text segment 12, the "marking first position" is highlighted.
  • the display component 704 can display the result to the user, so that the user can determine to apply a bold effect to the text information 111, and to the text information 112 applies an underline effect, and applies a bubble graphic to the text information 113, so that the user can customize the display effect.
  • the image data generating component 705 is configured to process the first image data according to the instruction data to generate a plurality of second image data, wherein the text information matching the first text segment in the second image data has the The first display effect.
  • the image data generating component 705 can process the image data according to the instruction to generate a plurality of images that meet the requirements of the user.
  • the second image data When the user specifies the display effect for only part of the text information, the image data generating component 705 can automatically specify the display effect for other text information, or the automatically specified display effect can also be output to the user, and then further through the receiving component 701 Receive user instructions.
  • the video data generating component 706 is configured to generate first video data according to a plurality of second image data.
  • FIG. 8 is a schematic structural diagram of an electronic device according to an embodiment of the application.
  • the electronic device of the present disclosure may be a mobile terminal device with mobility, or a less mobile or non-mobile computing device.
  • the electronic device of the present disclosure has at least a processing unit and a memory, and instructions are stored in the memory.
  • the processing unit obtains the instructions from the memory and executes processing to make the electronic device perform actions.
  • the generation device can be implemented as an electronic device.
  • the electronic device includes a memory 801 and a processor 802.
  • the memory 801 is used to store programs. In addition to the aforementioned programs, the memory 801 may also be configured to store other various data to support operations on the electronic device. Examples of these data include instructions for any application or method operating on the electronic device, contact data, phone book data, messages, pictures, videos, etc.
  • the memory 801 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable and Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM erasable and Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic Disk Magnetic Disk or Optical Disk.
  • the processor 802 is not only limited to the central processing unit (CPU), but may also be a graphics processing unit (GPU), field programmable gate array (FPGA), embedded neural network processor (NPU) or artificial intelligence (AI) chip Wait for the processing chip.
  • the processor 802 is coupled with the memory 801, and executes the program stored in the memory 501 for:
  • the first video data is generated according to the plurality of second image data.
  • the electronic device may further include: a communication component 803, a power supply component 804, an audio component 805, a display 806 and other components. Only part of the components are schematically shown in the figure, which does not mean that the electronic device only includes the components shown in the figure.
  • the communication component 803 is configured to facilitate wired or wireless communication between the electronic device and other devices.
  • Electronic devices can access wireless networks based on communication standards, such as WiFi, 4G or 5G, or a combination of them.
  • the communication component 803 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component 803 further includes a near field communication (NFC) module to facilitate short-range communication.
  • NFC near field communication
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • the power supply component 804 provides power for various components of the electronic device.
  • the power supply component 804 may include a power management system, one or more power supplies, and other components associated with the generation, management, and distribution of power for electronic devices.
  • the audio component 805 is configured to output and/or input audio signals.
  • the audio component 805 includes a microphone (MIC), and when the electronic device is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive external audio signals.
  • the received audio signal may be further stored in the memory 801 or sent via the communication component 803.
  • the audio component 805 further includes a speaker for outputting audio signals.
  • the display 806 includes a screen, and the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure related to the touch or slide operation.
  • a person of ordinary skill in the art can understand that all or part of the steps in the foregoing method embodiments can be implemented by a program instructing relevant hardware.
  • the aforementioned program can be stored in a computer readable storage medium. When the program is executed, it executes the steps including the foregoing method embodiments; and the foregoing storage medium includes: ROM, RAM, magnetic disk, or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Processing Or Creating Images (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Disclosed in the present application are a video generating method and apparatus, an electronic device, and a computer readable storage medium. The method comprises: obtaining at least one piece of first image data; performing character analysis processing on the first image data to obtain character information comprised in the first image data; obtaining at least one first text segment; determining matching data of the character information of the first image data and the first text segment; according to the matching data, processing the first image data to generate a plurality of pieces of second image data, wherein character information, matched with the first text segment, in the second image data has a first display effect; and generating first video data according to the plurality of pieces of second image data. The method can automatically generate, according to various image and text materials, an image and text video in which image data and a text segment correspond to each other, thereby greatly improving the generation efficiency of the image and text video.

Description

视频生成方法和装置、电子设备以及计算机可读存储介质Video generation method and device, electronic equipment and computer readable storage medium

本申请要求2019年12月31日递交的申请号为201911412228.0、发明名称为“视频生成方法和装置、电子设备以及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on December 31, 2019 with the application number 201911412228.0 and the invention title "Video generation method and device, electronic equipment, and computer-readable storage medium", the entire content of which is incorporated by reference In this application.

技术领域Technical field

本申请涉及视频生成领域,尤其涉及一种视频生成方法和装置、电子设备以及计算机可读存储介质。This application relates to the field of video generation, and in particular to a video generation method and device, electronic equipment, and computer-readable storage media.

背景技术Background technique

随着互联网技术的发展,越来越多的用户通过观看视频来进行学习,因此需要大量的图文并茂的视频。这样的图文视频区别于常见的各种视频,其实际上是与特定内容相关的诸如图片和文本的素材的集合体,因此,现有技术中往往只能通过人工编辑的方式来生成图文视频。例如,需要先搜集整理各种图文素材,例如,图片、文章等等,然后进行人工整理,最终形成图文视频。但是这样的现有的人工制作图文视频的方式需要大量的人工参与,不仅成本高而且制作效率也比较低。With the development of Internet technology, more and more users learn by watching videos, so a large number of videos with pictures and texts are needed. This kind of graphic video is different from various common videos. It is actually a collection of materials related to specific content, such as pictures and text. Therefore, in the prior art, graphics and text can only be generated by manual editing. video. For example, it is necessary to collect and organize various graphic materials, such as pictures, articles, etc., and then manually organize them to finally form graphic videos. However, such an existing method of manually making graphic videos requires a lot of manual participation, which is not only costly, but also relatively low in production efficiency.

因此,需要一种能够基于各种图文素材,自动制作图文视频的方案,以降低制作成本,提高效率。Therefore, there is a need for a solution that can automatically produce graphics and text videos based on various graphics and text materials to reduce production costs and improve efficiency.

发明内容Summary of the invention

提供本申请实施例内容是为了以精简的形式介绍将在以下详细描述中进一步描述的一些概念。本申请内容并不旨在标识所要求保护主题的关键特征或必要特征,也不旨在用于限制所要求保护主题的范围。The content of the embodiments of this application is provided to introduce some concepts that will be further described in the following detailed description in a condensed form. The content of this application is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.

本申请实施例提供了一种视频生成方法和装置、电子设备以及计算机可读存储介质,能够自动地解析图像中的文字并与音频建立匹配关系,从而生成文字音频同步的展示效果的视频。The embodiments of the present application provide a video generation method and device, electronic equipment, and computer-readable storage medium, which can automatically parse text in an image and establish a matching relationship with audio, thereby generating a video with text and audio synchronization display effects.

为达到上述目的,本申请实施例提供了一种视频生成方法,包括:To achieve the foregoing objective, an embodiment of the present application provides a video generation method, including:

获取至少一个第一图像数据;Acquiring at least one first image data;

对第一图像数据进行文字分析处理以获取所述第一图像数据中包含的文字信息;Performing text analysis processing on the first image data to obtain text information contained in the first image data;

获取至少一个第一文本段;Obtain at least one first text segment;

确定所述第一图像数据的文字信息与所述第一文本段的匹配数据;Determining the matching data between the text information of the first image data and the first text segment;

根据所述匹配数据对所述第一图像数据进行处理以生成多个第二图像数据,其中所述第二图像数据中与所述第一文本段匹配的文字信息具有第一展示效果;以及Processing the first image data according to the matching data to generate a plurality of second image data, wherein the text information in the second image data that matches the first text segment has a first display effect; and

根据所述多个第二图像数据生成第一视频数据。The first video data is generated according to the plurality of second image data.

本申请实施例还提供了一种视频生成方法,包括:The embodiment of the application also provides a video generation method, including:

获取至少一个第一图像数据;Acquiring at least one first image data;

对第一图像数据进行文字分析处理以获取所述第一图像数据中包含的文字信息;Performing text analysis processing on the first image data to obtain text information contained in the first image data;

将所述文字信息输入到搜索引擎,以获取至少一个第一文本段;Input the text information into a search engine to obtain at least one first text segment;

确定所述第一图像数据的文字信息与所述第一文本段的匹配数据;Determining the matching data between the text information of the first image data and the first text segment;

根据所述匹配数据对所述第一图像数据进行处理以生成多个第二图像数据,其中所述第二图像数据中与所述第一文本段匹配的文字信息具有第一展示效果;以及Processing the first image data according to the matching data to generate a plurality of second image data, wherein the text information in the second image data that matches the first text segment has a first display effect; and

根据所述第二图像数据生成第一视频数据。The first video data is generated according to the second image data.

本申请实施例还提供了一种视频生成方法,包括:The embodiment of the application also provides a video generation method, including:

接收用户输入的至少一个第一图像数据和至少一个第一文本段;Receiving at least one first image data and at least one first text segment input by a user;

对第一图像数据进行文字分析处理以获取所述第一图像数据中包含的文字信息;Performing text analysis processing on the first image data to obtain text information contained in the first image data;

确定所述第一图像数据的文字信息与所述第一文本段的匹配数据;Determining the matching data between the text information of the first image data and the first text segment;

向所述用户展示所述匹配数据;Showing the matching data to the user;

接收用户输入的针对所述匹配数据的指示数据,其中所述指示数据至少包括针对所述匹配数据的第一展示效果的指令信息;Receiving instruction data for the matching data input by a user, where the instruction data includes at least instruction information for the first display effect of the matching data;

根据所述指示数据对所述第一图像数据进行处理以生成多个第二图像数据,其中所述第二图像数据中与所述第一文本段匹配的文字信息具有所述第一展示效果;以及Processing the first image data according to the instruction data to generate a plurality of second image data, wherein the text information matching the first text segment in the second image data has the first display effect; as well as

根据所述第二图像数据生成第一视频数据。The first video data is generated according to the second image data.

本申请实施例还提供了一种视频生成装置,包括:The embodiment of the present application also provides a video generation device, including:

获取组件,所述获取组件用于获取至少一个第一图像数据和至少一个第一文本段;An acquiring component, the acquiring component used to acquire at least one first image data and at least one first text segment;

分析组件,所述分析组件用于对第一图像数据进行文字分析处理以获取所述第一图像数据中包含的文字信息;An analysis component, which is used to perform text analysis processing on the first image data to obtain text information contained in the first image data;

匹配组件,所述匹配组件用于确定所述第一图像数据的文字信息与所述第一文本段的匹配数据;A matching component, the matching component is used to determine the text information of the first image data and the matching data of the first text segment;

图像数据生成组件,所述图像数据生成组件用于根据所述匹配数据对所述第一图像数据进行处理以生成多个第二图像数据,其中所述第二图像数据中与所述第一文本段匹 配的文字信息具有第一展示效果;以及An image data generation component, the image data generation component is used to process the first image data according to the matching data to generate a plurality of second image data, wherein the second image data and the first text The matched text information has the first display effect; and

视频数据生成组件,所述视频数据生成组件用于根据所述多个第二图像数据生成第一视频数据。The video data generating component is configured to generate first video data according to the plurality of second image data.

本申请实施例还提供了一种视频生成装置,包括:The embodiment of the present application also provides a video generation device, including:

图像数据获取组件,所述图像数据获取组件用于获取至少一个第一图像数据;An image data acquisition component, the image data acquisition component being used to acquire at least one piece of first image data;

分析组件,所述分析组件用于对第一图像数据进行文字分析处理以获取所述第一图像数据中包含的文字信息;An analysis component, which is used to perform text analysis processing on the first image data to obtain text information contained in the first image data;

文本段获取组件,所述文本段获取组件用于将所述文字信息输入到搜索引擎,以获取至少一个第一文本段;A text segment acquisition component, which is used to input the text information into a search engine to acquire at least one first text segment;

匹配组件,所述匹配组件用于确定所述第一图像数据的文字信息与所述第一文本段的匹配数据;A matching component, the matching component is used to determine the text information of the first image data and the matching data of the first text segment;

图像数据生成组件,所述图像数据生成组件用于根据所述匹配数据对所述第一图像数据进行处理以生成多个第二图像数据,其中所述第二图像数据中与所述第一文本段匹配的文字信息具有第一展示效果;以及An image data generation component, the image data generation component is used to process the first image data according to the matching data to generate a plurality of second image data, wherein the second image data and the first text The matched text information has the first display effect; and

视频数据生成组件,所述视频数据生成组件用于根据所述多个第二图像数据生成第一视频数据。The video data generating component is configured to generate first video data according to the plurality of second image data.

本申请实施例还提供了一种视频生成装置,包括:The embodiment of the present application also provides a video generation device, including:

接收组件,所述接收组件用于接收用户输入的至少一个第一图像数据和至少一个第一文本段;A receiving component configured to receive at least one first image data and at least one first text segment input by a user;

分析组件,所述分析组件用于对第一图像数据进行文字分析处理以获取所述第一图像数据中包含的文字信息;An analysis component, which is used to perform text analysis processing on the first image data to obtain text information contained in the first image data;

匹配组件,所述匹配组件用于确定所述第一图像数据的文字信息与所述第一文本段的匹配数据;A matching component, the matching component is used to determine the text information of the first image data and the matching data of the first text segment;

展示组件,所述展示组件用于向所述用户展示所述匹配数据,并且A display component for displaying the matching data to the user, and

所述接收组件进一步用于接收用户输入的针对所述匹配数据的指示数据,其中所述指示数据至少包括针对所述匹配数据的第一展示效果的指令信息;The receiving component is further configured to receive instruction data for the matching data input by a user, wherein the instruction data includes at least instruction information for the first display effect of the matching data;

所述视频生成装置进一步包括:图像数据生成组件,所述图像数据生成组件用于根据所述指示数据对所述第一图像数据进行处理以生成多个第二图像数据,其中所述第二图像数据中与所述第一文本段匹配的文字信息具有所述第一展示效果;以及The video generating device further includes: an image data generating component configured to process the first image data according to the instruction data to generate a plurality of second image data, wherein the second image The text information in the data that matches the first text segment has the first display effect; and

视频数据生成组件,所述视频数据生成组件用于根据所述第二图像数据生成第一视 频数据A video data generating component, the video data generating component is configured to generate first video data according to the second image data

本申请实施例还提供了一种电子设备,包括:The embodiment of the present application also provides an electronic device, including:

处理单元;以及Processing unit; and

存储器,耦合至所述处理单元并且包含存储于其上的指令,所述指令在由所述处理单元执行时使所述设备执行动作,所述动作包括:A memory, coupled to the processing unit and containing instructions stored thereon, which when executed by the processing unit causes the device to perform actions, the actions including:

获取至少一个第一图像数据;Acquiring at least one first image data;

对第一图像数据进行文字分析处理以获取所述第一图像数据中包含的文字信息;Performing text analysis processing on the first image data to obtain text information contained in the first image data;

获取至少一个第一文本段;Obtain at least one first text segment;

确定所述第一图像数据的文字信息与所述第一文本段的匹配数据;Determining the matching data between the text information of the first image data and the first text segment;

根据所述匹配数据对所述第一图像数据进行处理以生成多个第二图像数据,其中所述第二图像数据中与所述第一文本段匹配的文字信息具有第一展示效果;以及Processing the first image data according to the matching data to generate a plurality of second image data, wherein the text information in the second image data that matches the first text segment has a first display effect; and

根据所述多个第二图像数据生成第一视频数据。The first video data is generated according to the plurality of second image data.

本申请实施例还提供了一种计算机可读存储介质,在所述计算机可读存储介质上存储有指令,所述指令包括:The embodiments of the present application also provide a computer-readable storage medium on which instructions are stored, and the instructions include:

获取至少一个第一图像数据;Acquiring at least one first image data;

对第一图像数据进行文字分析处理以获取所述第一图像数据中包含的文字信息;Performing text analysis processing on the first image data to obtain text information contained in the first image data;

获取至少一个第一文本段;Obtain at least one first text segment;

确定所述第一图像数据的文字信息与所述第一文本段的匹配数据;Determining the matching data between the text information of the first image data and the first text segment;

根据所述匹配数据对所述第一图像数据进行处理以生成多个第二图像数据,其中所述第二图像数据中与所述第一文本段匹配的文字信息具有第一展示效果;以及Processing the first image data according to the matching data to generate a plurality of second image data, wherein the text information in the second image data that matches the first text segment has a first display effect; and

根据所述多个第二图像数据生成第一视频数据。The first video data is generated according to the plurality of second image data.

本申请实施例提供的视频生成方法和装置、电子设备以及计算机可读存储介质,通过从第一图像数据获取图像数据中包含的文字信息并确定这样的文字信息与至少一个文本段之间的匹配数据,从而能够建立图像数据与至少一个文本段之间的匹配关系,之后可以基于这样的匹配关系对图像数据进行处理,以生成与文本段对应的多个第二图像数据,从而最终基于这些第二图像数据生成其中与文本段匹配的文字信息具有第一展示效果的视频数据,以该方式能够基于各种图文素材自动地生成其中图像数据和文本段彼此对应的图文视频,从而大大提高了图文视频的生成效率。The video generation method and device, electronic equipment, and computer-readable storage medium provided by the embodiments of the present application obtain the text information contained in the image data from the first image data and determine the match between such text information and at least one text segment Data, so that the matching relationship between the image data and at least one text segment can be established, and then the image data can be processed based on such matching relationship to generate a plurality of second image data corresponding to the text segment, and finally based on these first images. Second, the image data generates video data in which the text information matching the text segment has the first display effect. In this way, the image and text video in which the image data and the text segment correspond to each other can be automatically generated based on various graphic materials, thereby greatly improving Improved the efficiency of graphic and video generation.

上述说明仅是本公开技术方案的概述,为了能够更清楚了解本公开的技术手段,而可依照说明书的内容予以实施,并且为了让本公开的上述和其它目的、特征和优点能够 更明显易懂,以下特举本公开的具体实施方式。The above description is only an overview of the technical solutions of the present disclosure. In order to understand the technical means of the present disclosure more clearly, they can be implemented in accordance with the content of the specification, and in order to make the above and other objectives, features and advantages of the present disclosure more obvious and understandable. In the following, specific embodiments of the present disclosure are specifically cited.

附图说明Description of the drawings

图1A至图1C为描述根据本申请实施例的视频生成方案的应用场景的示意图;1A to 1C are schematic diagrams describing application scenarios of a video generation solution according to an embodiment of the present application;

图2为根据本申请一个实施方式的视频生成方法的流程示意图;Fig. 2 is a schematic flowchart of a video generation method according to an embodiment of the present application;

图3为描述根据本申请实施方式的视频生成方法的应用场景的示意图;Fig. 3 is a schematic diagram describing an application scenario of a video generation method according to an embodiment of the present application;

图4为根据本申请的实施方式的视频生成方法的又一流程示意图;FIG. 4 is a schematic flowchart of another video generation method according to an embodiment of the present application;

图5为根据本申请一个实施方式的视频生成装置的结构示意图;Fig. 5 is a schematic structural diagram of a video generating device according to an embodiment of the present application;

图6为根据本申请一个实施方式的视频生成装置的结构示意图;Fig. 6 is a schematic structural diagram of a video generating device according to an embodiment of the present application;

图7为根据本申请一个实施方式的视频生成装置的结构示意图;Fig. 7 is a schematic structural diagram of a video generating device according to an embodiment of the present application;

图8为本申请实施例的电子设备的结构示意图。FIG. 8 is a schematic structural diagram of an electronic device according to an embodiment of the application.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Hereinafter, exemplary embodiments of the present disclosure will be described in more detail with reference to the accompanying drawings. Although the drawings show exemplary embodiments of the present disclosure, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

随着互联网技术的发展,越来越多的用户通过观看视频来进行学习,因此需要大量的图文并茂的视频。这样的图文视频区别于常见的各种视频,其实际上是与特定内容相关的诸如图片和文本的各种素材的集合体。例如当需要讲解某个内容时,需要基于一张图片并结合一段说明文字进行讲解。即,需要录制基于一个或多个图片以及与图片的内容对应的文字或音频的视频。在该情况下,需要图片的播放与讲解的文本同步,并且进一步的可以将文字转换为音频,从而实现对图片内容的音频讲解。With the development of Internet technology, more and more users learn by watching videos, so a large number of videos with pictures and texts are needed. Such a graphic video is different from various common videos, and it is actually a collection of various materials related to specific content, such as pictures and text. For example, when a content needs to be explained, it needs to be explained based on a picture and combined with a paragraph of explanatory text. That is, it is necessary to record a video based on one or more pictures and text or audio corresponding to the content of the picture. In this case, the playback of the picture needs to be synchronized with the text of the explanation, and the text can be further converted into audio, so as to realize the audio explanation of the content of the picture.

然而,现有技术中往往只能通过人工的方式进行这样的图文视频的制作。例如,需要先搜集整理各种素材,例如,图片、文章以及视频片段等等,然后进行人工的剪辑和整理,例如,根据图片内容搜集对应的文本或者人工制作文本,并且生成匹配的图文数据,从而最终形成图文视频。但是这样的现有的人工制作视频的方式需要大量的人工参与,不仅成本高而且制作效率也比较低。However, in the prior art, such image-text video can only be produced manually. For example, you need to collect and organize various materials, such as pictures, articles, and video clips, etc., and then manually edit and organize them. For example, collect the corresponding text according to the content of the picture or manually make the text, and generate matching graphic data , So as to finally form a graphic video. However, such an existing manual video production method requires a lot of manual participation, which is not only high in cost but also relatively low in production efficiency.

因此,需要一种能够基于各种素材,自动制作图文视频的方案,以降低制作成本,提高效率。Therefore, there is a need for a solution that can automatically produce graphics and text videos based on various materials to reduce production costs and improve efficiency.

图1A至图1C为描述根据本申请实施例的视频生成方案的应用场景的示意图。如图1A中所示,在根据本申请的实施例的一个应用场景中,可以从各种数据源获取各种素材作为输入数据。这些素材可以包括例如图片、文本、图片和文本的混合数据、视频、音频等等。这些素材中的图片和文本段可以直接作为用来进行后续视频生成处理的图片11和文本段12,或者如果获取的是包含图片和文本的混合数据、视频、音频等等素材数据,则可以对这些数据进行预先处理,并且将处理之后的图片和文本作为图1A中所示的图片11和文本段12来进行后续的视频生成处理。在获取了图片11之后,可以对图片11进行提取处理以提取图片11中的各种文字信息。例如,如图1A中所示,可以从图片11中提取出文字信息111至11n。这些提取出的文字信息111至11n可以是例如图片中所描述的内容所涉及的一些子内容的小标题。因此,可以进一步确定这些文字信息111至11n与文本段12的匹配数据。这里所说的匹配数据可以是文字信息111至11n中的每一个与文本段12中的对应的内容之间的对应关系。例如,如图1A中所示,文本段12中可以包括子文本段121至12n,其分别对应于图片11中的各个文字信息111至11n,并且可以是对于图片11中的文字信息111至11n所表示的图片11的内容的各小标题的进一步的说明。因此,在确定了图片11的文字信息与文本段的匹配数据之后,可以根据这样的匹配数据来对图片11进行处理并生成多个视频用的图片131至13n,其中的每个视频用的图片可以是包含有图片11的内容以及文本段12的子文本段中的一个,并且对应于所包含的子文本段的图片11的文字信息可以被施加有特定的展示效果。例如,图片11的文字信息111与文本段12的子文本段121对应,即,子文本段121记载了对于文字信息111的说明和讲解,则可以基于这样的匹配数据对图片11进行处理,从而生成了包含有图片11的全部内容以及子本段121的视频用的图片131,并且图片131中可以包含对于与子文本段121对应的文字信息111施加的展示效果,例如,如图1A中所示,文字信息111可以被高亮,以便于用户在观看视频的该部分时能够清楚地了解,子文本段121正在对文字信息111进行说明和讲解。以此类推,当生成了多个图片131至13n时,可以根据这些图片131至13n来进一步生成视频15。1A to 1C are schematic diagrams describing application scenarios of a video generation solution according to an embodiment of the present application. As shown in FIG. 1A, in an application scenario according to an embodiment of the present application, various materials can be obtained from various data sources as input data. These materials may include, for example, pictures, text, mixed data of pictures and text, video, audio, and so on. The pictures and text segments in these materials can be directly used as pictures 11 and text segments 12 for subsequent video generation processing, or if the obtained material data is mixed data containing pictures and text, video, audio, etc., you can These data are processed in advance, and the processed pictures and text are used as the picture 11 and the text segment 12 shown in FIG. 1A for subsequent video generation processing. After the picture 11 is obtained, the picture 11 can be extracted to extract various text information in the picture 11. For example, as shown in FIG. 1A, text information 111 to 11n can be extracted from the picture 11. The extracted text information 111 to 11n may be, for example, subtitles of some sub-content involved in the content described in the picture. Therefore, the matching data between these text information 111 to 11n and the text segment 12 can be further determined. The matching data mentioned here may be the correspondence between each of the text information 111 to 11n and the corresponding content in the text segment 12. For example, as shown in FIG. 1A, the text segment 12 may include sub-text segments 121 to 12n, which respectively correspond to the respective text information 111 to 11n in the picture 11, and may be for the text information 111 to 11n in the picture 11. Further explanation of each subtitle of the content of the picture 11 shown. Therefore, after determining the matching data between the text information of the picture 11 and the text segment, the picture 11 can be processed according to the matching data and a plurality of pictures 131 to 13n for the video can be generated, each of which is a picture for the video. It may be one of the sub-text segments including the content of the picture 11 and the text segment 12, and the text information of the picture 11 corresponding to the included sub-text segment may be given a specific display effect. For example, the text information 111 of the picture 11 corresponds to the sub-text segment 121 of the text segment 12. That is, the sub-text segment 121 records the description and explanation of the text information 111, and the picture 11 can be processed based on such matching data, thereby A picture 131 containing the entire content of the picture 11 and the video of the sub-section 121 is generated, and the picture 131 may contain a display effect applied to the text information 111 corresponding to the sub-text section 121, for example, as shown in FIG. 1A As shown, the text information 111 can be highlighted, so that the user can clearly understand when watching this part of the video, that the sub-text segment 121 is explaining and explaining the text information 111. By analogy, when multiple pictures 131 to 13n are generated, the video 15 can be further generated based on these pictures 131 to 13n.

接下来参考图1A和图2,将详细描述根据本申请实施例的视频生成方法。图2为根据本申请一个实施方式的视频生成方法的流程示意图。如图2中所示,根据本申请实施例的视频生成方法包括如下步骤:Next, referring to FIG. 1A and FIG. 2, the video generation method according to the embodiment of the present application will be described in detail. Fig. 2 is a schematic flowchart of a video generation method according to an embodiment of the present application. As shown in FIG. 2, the video generation method according to the embodiment of the present application includes the following steps:

201,获取至少一个第一图像数据;201. Acquire at least one piece of first image data.

在本申请实施例中,可以从各种数据源获取生成视频所使用的素材作为第一图像数 据。例如,可以从各种网页上获取包含有文字的图片作为第一图像数据,或者也可以由用户在用户界面上直接输入包含有文字的图片作为第一图像数据。当然,在本申请实施例中,也可以从各种数据源获取各种图片,然后对所获取的图片进行预处理以识别出包含有文字的图片作为第一图像数据。或者也可以由用户通过用户界面输入任意素材,并且对用户输入的图片进行处理以识别出包含有文字的图片作为第一图像数据。In the embodiment of the present application, the material used to generate the video can be obtained from various data sources as the first image data. For example, a picture containing text may be obtained from various web pages as the first image data, or the user may directly input a picture containing text on the user interface as the first image data. Of course, in the embodiment of the present application, various pictures can also be obtained from various data sources, and then the obtained pictures are preprocessed to identify pictures containing text as the first image data. Alternatively, the user may input any material through the user interface, and process the picture input by the user to recognize the picture containing text as the first image data.

202,对第一图像数据进行文字分析处理以获取第一图像数据中包含的文字信息。202. Perform text analysis processing on the first image data to obtain text information contained in the first image data.

在本申请实施例中,当获取了第一图像数据之后,可以利用各种文字分析处理,例如文字提取技术来对所获取的第一图像数据进行分析处理,从而能够获取图像中包含的文字句段作为文字信息。例如,当获取了图1A中所示的图片11作为第一图像数据时,可以通过图像处理而获取到图像中包含的所有文字句段作为本申请实施例中的文字信息“TOP1”111、“高转化”112和“S级大促”113。In the embodiments of the present application, after the first image data is acquired, various text analysis processing, such as text extraction technology, can be used to analyze and process the acquired first image data, so that the text sentences contained in the image can be acquired. Segment as text information. For example, when the picture 11 shown in FIG. 1A is acquired as the first image data, all the text segments contained in the image can be acquired through image processing as the text information "TOP1" 111, "in the embodiment of the present application. "High conversion" 112 and "S-level big promotion" 113.

203,获取至少一个第一文本段。203. Acquire at least one first text segment.

在本申请实施例中,当获取了第一图像数据之后,可以进一步获取至少一个第一文本段12。在本申请实施例中,可以根据第一图像数据来获取至少一个第一文本段,也可以从文本数据源获取各种文本段,以用作后续处理的候选第一文本段。第一文本段12可以包含有多个第一子文本段。例如,第一文本段12可以是包含有多个文字段或多个文字句的文本段。在本申请实施例中,在步骤203获取的至少一个第一文本段可以是与第一图像数据的内容相关的文本段,也可以是包含有与第一图像数据的内容相关的文字的文本段,或者也可以任意文本段。In the embodiment of the present application, after the first image data is acquired, at least one first text segment 12 can be further acquired. In the embodiment of the present application, at least one first text segment can be obtained according to the first image data, or various text segments can be obtained from a text data source to be used as a candidate first text segment for subsequent processing. The first text segment 12 may include a plurality of first sub-text segments. For example, the first text segment 12 may be a text segment containing multiple text fields or multiple text sentences. In the embodiment of the present application, the at least one first text segment obtained in step 203 may be a text segment related to the content of the first image data, or a text segment containing text related to the content of the first image data. , Or any text segment.

特别地,在本申请实施例中,第一图像数据的获取和第一文本段的获取这两个步骤的顺序没有任何限制。例如,可以先进行步骤201来获取第一图像数据之后再进行步骤203来获取第一文本段,也可以先进行步骤203来获取第一文本段,之后再进行步骤201来获取第一图像数据,当然也可以同时进行步骤201和步骤203。In particular, in the embodiment of the present application, there is no restriction on the order of the two steps of obtaining the first image data and obtaining the first text segment. For example, step 201 may be performed to obtain the first image data and then step 203 may be performed to obtain the first text segment, or step 203 may be performed to obtain the first text segment, and then step 201 may be performed to obtain the first image data. Of course, step 201 and step 203 can also be performed at the same time.

204,确定第一图像数据的文字信息与第一文本段的匹配数据。204. Determine the matching data between the text information of the first image data and the first text segment.

在本申请实施例中,在获取了文字信息111-113以及第一文本段之后,可以进一步确定第一图像数据中的这些文字信息111-113与第一文本段的匹配数据。例如,可以将第一文本段中包含的多个子文本段分别与文字信息111-113进行对比,以确定与文字信息111-113分别匹配的子文本段121-123。在本申请实施例中,当获取了多个第一文本段时,可以将每个第一文本段逐一与文字信息进行比对以确定匹配数据。例如,如图1A中所示,可以通过步骤204,确定文字信息“TOP1”111、“高转化”112和“S级大促”113 分别与文本段12中的子文本段“标定首位彰显实力”121、“智能优选投放托管”122以及“无限主题差异营销”123具有对应关系,因此构成了匹配数据。在本申请实施例中,可以存在多个第一文本段,例如,可以存在包含有上述子文本段“标定首位彰显实力”121、“智能优选投放托管”122以及“无限主题差异营销”123的第一文本段12并且可以额外存在包含有子文本段“搜索结果第一位30天”、“优选转化提高”一级“S级大促,镇店之宝等场景”的另一个第一文本段12。因此,在该情况下,可以可以在本步骤204中确定文字信息“TOP1”111、“高转化”112和“S级大促”113分别与文本段12中的子文本段“标定首位彰显实力”121、“智能优选投放托管”122以及“无限主题差异营销”123具有对应关系并且文字信息“TOP1”111、“高转化”112和“S级大促”113分别与另一文本段12中的子文本段“搜索结果第一位30天”、“优选转化提高”一级“S级大促,镇店之宝等场景”具有对应关系。因此在该情况下,这样的两层对应关系可以构成第一图像数据的文字信息与多个第一文本段的匹配数据。In the embodiment of the present application, after the text information 111-113 and the first text segment are obtained, the matching data between these text information 111-113 in the first image data and the first text segment can be further determined. For example, the multiple sub-text segments contained in the first text segment may be compared with the text information 111-113, respectively, to determine the sub-text segments 121-123 that respectively match the text information 111-113. In the embodiment of the present application, when multiple first text segments are acquired, each first text segment can be compared with the text information one by one to determine matching data. For example, as shown in Figure 1A, step 204 can be used to determine that the text information "TOP1" 111, "High Conversion" 112, and "S-level promotion" 113 are respectively associated with the sub-text segment in the text segment 12. "121, "Intelligent Optimal Placement Hosting" 122, and "Unlimited Theme Differential Marketing" 123 have a corresponding relationship, and thus constitute matching data. In the embodiment of this application, there may be multiple first text segments. For example, there may be sub-text segments containing the above-mentioned sub-text segments "marking the first position to show strength" 121, "intelligent preferred placement hosting" 122, and "unlimited theme difference marketing" 123. The first text segment 12 may additionally contain another first text that contains sub-text segments "first place in search results for 30 days", "optimized conversion improvement" level 1 "S-level promotion, town shop treasure, etc." Segment 12. Therefore, in this case, it can be determined in this step 204 that the text information "TOP1" 111, "High Conversion" 112, and "S-level promotion" 113 are respectively and the sub-text segment in the text segment 12 "marking the first position to show the strength" "121, "Smart Optimal Placement Hosting" 122 and "Unlimited Theme Differential Marketing" 123 have a corresponding relationship, and the text information "TOP1" 111, "High Conversion" 112 and "S-Level Promotion" 113 are respectively in another text segment 12. The sub-text segments of "search results ranked first for 30 days", "optimized conversion improvement" level one, "S-level big promotion, town shop treasure, etc. scenes" have a corresponding relationship. Therefore, in this case, such a two-layer correspondence relationship can constitute the matching data between the text information of the first image data and the multiple first text segments.

205,根据匹配数据对第一图像数据进行处理以生成多个第二图像数据。205. Process the first image data according to the matching data to generate multiple second image data.

在本申请实施例中,在步骤204中确定了第一图像数据的文字信息与第一文本段的匹配数据之后,可以基于这样确定的匹配数据对第一图像数据进行处理。例如,处理可以包括在第一图像数据中分别嵌入第一文本段中的各对应的子文本段,并且对应于嵌入的子文本段,使得与所嵌入的子文本段对应的文字信息具有特定的展示效果。例如,可以使得文字信息高亮显示,使得文字信息字体加粗显示或者为文字信息添加图形标记。从而当用户观看到这样形成的多个第二图像数据时,能够根据具有展示效果的文字信息获知当前显示的子文字段所说明的对象。In the embodiment of the present application, after the text information of the first image data and the matching data of the first text segment are determined in step 204, the first image data may be processed based on the matching data thus determined. For example, the processing may include embedding each corresponding sub-text segment in the first text segment in the first image data, and corresponding to the embedded sub-text segment, so that the text information corresponding to the embedded sub-text segment has a specific Display of results. For example, the text information can be highlighted, the font of the text information can be displayed in bold, or a graphic mark can be added to the text information. Therefore, when the user views the plurality of second image data formed in this way, the object described by the currently displayed subtext field can be obtained according to the text information with a display effect.

例如,参考图1A,当在步骤204中确定了文字信息“TOP1”111、“高转化”112和“S级大促”113分别与文本段12中的子文本段“标定首位彰显实力”121、“智能优选投放托管”122以及“无限主题差异营销”123具有对应关系,并形成匹配数据之后,可以基于这样的匹配数据来对图片11进行处理,从而能够形成在图片11上分别嵌入有子文本段“标定首位彰显实力”121、“智能优选投放托管”122以及“无限主题差异营销”123这三个子文本段的图片131-133,并且在图片131-133中的每一个中对应于所嵌入的子文本段的文字信息可以具有特定的展示效果。例如,在前如有子文本段“标定首位彰显实力”121的图片131中,对应于子文本段“标定首位彰显实力”121的文字信息“TOP1”111可以具有高亮的展示效果,以提示正在观看的用户,当前正在说明或讲解的内容是文字信息“TOP1”111。For example, referring to FIG. 1A, when it is determined in step 204 that the text information "TOP1" 111, "High Conversion" 112, and "S-level promotion" 113 are respectively the same as the sub-text segment in the text segment 12 "Marking the first position to show strength" 121 , "Intelligent Optimal Placement Hosting" 122 and "Unlimited Theme Differential Marketing" 123 have a corresponding relationship, and after forming matching data, image 11 can be processed based on such matching data, so that the image 11 can be embedded with children. The text segment "Marking the first place to show strength" 121, "Smart optimal placement hosting" 122 and "Unlimited theme difference marketing" 123 are the three sub-text segments pictures 131-133, and each of the pictures 131-133 corresponds to the The text information of the embedded sub-text segment may have a specific display effect. For example, in the picture 131 of the sub-text segment "marking the first place to show strength" 121, the text information "TOP1" 111 corresponding to the sub-text segment "marking the first place to show strength" 121 can have a highlight display effect to remind The user who is watching, the content currently being explained or explained is the text information "TOP1" 111.

206,根据多个第二图像数据生成第一视频数据。206. Generate first video data according to the multiple second image data.

当如上所述生成了嵌入有文本段12的多个子文本段的多个图片131-133时,可以根据这些图片来生成视频数据。因此,根据本申请实施例的视频生成方法,通过从第一图像数据获取图像数据中包含的文字信息并确定这样的文字信息与至少一个文本段之间的匹配数据,从而能够建立图像数据与至少一个文本段之间的匹配关系,之后可以基于这样的匹配关系对图像数据进行处理,以生成与文本段对应的多个第二图像数据,从而最终基于这些第二图像数据生成其中与文本段匹配的文字信息具有第一展示效果的视频数据,以该方式能够基于各种图文素材自动地生成其中图像数据和文本段彼此对应的图文视频,从而大大提高了图文视频的生成效率。When multiple pictures 131-133 embedded with multiple sub-text segments of the text segment 12 are generated as described above, video data can be generated based on these pictures. Therefore, according to the video generation method of the embodiment of the present application, by obtaining the text information contained in the image data from the first image data and determining the matching data between such text information and at least one text segment, the image data and the at least one text segment can be established. The matching relationship between a text segment, and then the image data can be processed based on such a matching relationship to generate multiple second image data corresponding to the text segment, and finally based on these second image data to generate which matches the text segment The text information has the first display effect of video data. In this way, the image and text video in which the image data and the text segment correspond to each other can be automatically generated based on various image and text materials, thereby greatly improving the generation efficiency of the image and text video.

根据本申请另一实施例,如图3中所示,图3为描述根据本申请实施方式的视频生成方法的应用场景的示意图。如图3中所示,在根据本申请实施例的另一应用场景中,在获取了图片11并且提取了图片11中的文字信息之后。例如,如图3中所示,从图片11中提取出文字信息111至11n。之后,可以获取文本段12并且基于文本段12生成或获取与文本段12中的各子文本段121-12n对应的音频数据181-18n。之后,如图1A中所示地,在确定了这些文字信息111至11n与文本段12的匹配数据之后,可以根据这样的匹配数据来对图片11进行处理并生成多个视频用的图片131至13n,其中的每个视频用的图片可以是包含有图片11的内容以及文本段12的子文本段中的一个,并且对应于所包含的子文本段的图片11的文字信息可以被施加有特定的展示效果。例如,图片11的文字信息111与文本段12的子文本段121对应,即,子文本段121记载了对于文字信息111的说明和讲解,则可以基于这样的匹配数据对图片11进行处理,从而生成了包含有图片11的全部内容以及子文本段121的视频用的图片131,并且图片131中可以包含对于与子文本段121对应的文字信息111施加的展示效果,例如,如图1A中所示,文字信息111可以被高亮,以便于用户在观看视频的该部分时能够清楚地了解,子文本段121正在对文字信息111进行说明和讲解。以此类推,在图3中所示的应用场景中,当生成了多个图片131至13n时,可以根据这些图片131至13n以及与这些图片131至13n中所嵌入的子文本段121-12n对应的音频181-18n来进一步生成视频。因此,在如图3中所示的应用场景中,生成的视频中不仅包括有与作为当前讲解或说明的内容对象的文字信息对应的子文本段,而且还包括了与该子文本段对应的音频数据,因此当用户观看到该部分时,能够既观看对该文字信息讲解或说明的文字,又能够听到讲解或说明的音频。According to another embodiment of the present application, as shown in FIG. 3, FIG. 3 is a schematic diagram describing an application scenario of a video generation method according to an embodiment of the present application. As shown in FIG. 3, in another application scenario according to an embodiment of the present application, after the picture 11 is acquired and the text information in the picture 11 is extracted. For example, as shown in FIG. 3, text information 111 to 11n are extracted from the picture 11. After that, the text segment 12 can be acquired, and the audio data 181-18n corresponding to each sub-text segment 121-12n in the text segment 12 can be generated or acquired based on the text segment 12. Then, as shown in FIG. 1A, after the matching data of the text information 111 to 11n and the text segment 12 is determined, the picture 11 can be processed according to such matching data and a plurality of pictures 131 to 131 for video can be generated. 13n, the picture for each video can be one of the sub-text segments containing the content of the picture 11 and the text segment 12, and the text information of the picture 11 corresponding to the contained sub-text segment can be applied with specific Display effect. For example, the text information 111 of the picture 11 corresponds to the sub-text segment 121 of the text segment 12. That is, the sub-text segment 121 records the description and explanation of the text information 111, and the picture 11 can be processed based on such matching data, thereby A picture 131 for the video containing the entire content of the picture 11 and the sub-text segment 121 is generated, and the picture 131 may contain a display effect applied to the text information 111 corresponding to the sub-text segment 121, for example, as shown in FIG. 1A As shown, the text information 111 can be highlighted, so that the user can clearly understand when watching this part of the video, that the sub-text segment 121 is explaining and explaining the text information 111. By analogy, in the application scenario shown in FIG. 3, when multiple pictures 131 to 13n are generated, these pictures 131 to 13n and the sub-text segments 121-12n embedded in these pictures 131 to 13n can be used. Corresponding audio 181-18n to further generate video. Therefore, in the application scenario as shown in Figure 3, the generated video not only includes the sub-text segment corresponding to the text information as the content object of the current explanation or description, but also includes the sub-text segment corresponding to the sub-text segment. Audio data, so when the user views the part, he can not only watch the text explaining or explaining the text information, but also listen to the audio of the explanation or explanation.

下面参考图4来描述根据本申请实施例的视频生成方法,图4为根据本申请的实施 方式的视频生成方法的又一流程示意图。如图4所示,根据本申请另一实施例的视频生成方法包括如下步骤:The following describes the video generation method according to an embodiment of the present application with reference to FIG. 4, which is another schematic flowchart of the video generation method according to the embodiment of the present application. As shown in FIG. 4, the video generation method according to another embodiment of the present application includes the following steps:

401,获取包含图像和文字的第一数据。401. Acquire first data including images and text.

402,对第一数据进行图像提取处理,以从所述第一数据中提取出至少一个图像作为第一图像数据。402. Perform image extraction processing on the first data to extract at least one image from the first data as first image data.

403,对第一数据进行文字提取处理,以从所述第一数据中提取出至少一个文本段作为第一文本段。403. Perform text extraction processing on the first data to extract at least one text segment from the first data as a first text segment.

在本申请实施例中,可以从各种数据源获取生成视频所使用的素材作为第一图像数据。例如,可以从各种网页上获取包含有文字的图片作为第一图像数据,或者也可以由用户在用户界面上直接输入包含有文字的图片作为第一图像数据。当然,在本申请实施例中,也可以从各种数据源获取各种图片,然后对所获取的图片进行预处理以识别出包含有文字的图片作为第一图像数据。或者也可以由用户通过用户界面输入任意素材,并且对用户输入的图片进行处理以识别出包含有文字的图片作为第一图像数据。In the embodiment of the present application, the material used to generate the video can be obtained from various data sources as the first image data. For example, a picture containing text may be obtained from various web pages as the first image data, or the user may directly input a picture containing text on the user interface as the first image data. Of course, in the embodiment of the present application, various pictures can also be obtained from various data sources, and then the obtained pictures are preprocessed to identify pictures containing text as the first image data. Alternatively, the user may input any material through the user interface, and process the picture input by the user to recognize the picture containing text as the first image data.

在实际应用中,也会存在各种同时包含图像和对应文字的混合数据。例如,对于某个事件的新闻报道等等。因此,在这样的混合数据中,已经存在了图片和对该图片进行说明的文本段。因此,如本申请实施例中所示,可以在获取了这样的混合数据之后,通过对该混合数据分别进行图像提取处理和文字提取处理来分别获取第一图像数据和第一文本段。In practical applications, there will also be various mixed data containing both images and corresponding texts. For example, for news reports of a certain event, etc. Therefore, in such mixed data, a picture and a text segment describing the picture already exist. Therefore, as shown in the embodiment of the present application, after obtaining such mixed data, the first image data and the first text segment may be obtained by performing image extraction processing and text extraction processing on the mixed data respectively.

特别地,在本申请实施例中,第一图像数据的获取和第一文本段的获取这两个步骤的顺序没有任何限制。例如,可以先进行步骤402来获取第一图像数据之后再进行步骤403来获取第一文本段,也可以先进行步骤S303来获取第一文本段,之后再进行步骤402来获取第一图像数据,当然也可以同时进行步骤402和步骤403。In particular, in the embodiment of the present application, there is no restriction on the order of the two steps of obtaining the first image data and obtaining the first text segment. For example, step 402 may be performed to obtain the first image data and then step 403 may be performed to obtain the first text segment, or step S303 may be performed to obtain the first text segment, and then step 402 may be performed to obtain the first image data. Of course, step 402 and step 403 can also be performed at the same time.

404,对第一图像数据进行文字分析处理以获取第一图像数据中包含的文字信息。404. Perform text analysis processing on the first image data to obtain text information contained in the first image data.

在本申请实施例中,在本申请实施例中,当获取了第一图像数据之后,可以利用各种文字分析处理,例如文字提取技术来对所获取的第一图像数据进行分析处理,从而能够获取图像中包含的文字句段作为文字信息。例如,当获取了图1A中所示的图片11作为第一图像数据时,可以通过图像处理而获取到图像中包含的所有文字句段作为本申请实施例中的文字信息“TOP1”111、“高转化”112和“S级大促”113。203,获取至少一个第一文本段。In the embodiment of the present application, in the embodiment of the present application, after the first image data is acquired, various text analysis processing, such as text extraction technology, can be used to analyze and process the acquired first image data. Acquire text segments contained in the image as text information. For example, when the picture 11 shown in FIG. 1A is acquired as the first image data, all the text segments contained in the image can be acquired through image processing as the text information "TOP1" 111, "in the embodiment of the present application. High conversion" 112 and "S-level big promotion" 113. 203, obtain at least one first text segment.

在本申请实施例中,文字分析处理可以使用本领域中的任何技术方案来从第一图像 数据中获取包含的文字信息。例如,可以先识别第一图像数据中的空白区域,之后基于识别出的空白区域确定空白区域所围绕的文字区域,然后可以利用文字提取处理来对该该而文字区域进行文字提取处理以生成文字信息。In the embodiment of the present application, the text analysis processing can use any technical solution in the art to obtain the text information contained in the first image data. For example, the blank area in the first image data can be recognized first, and then the text area surrounded by the blank area can be determined based on the recognized blank area, and then text extraction processing can be performed on the text area to generate text information.

在本申请实施例中,当获取了第一图像数据之后,可以进一步获取至少一个第一文本段12。在本申请实施例中,可以根据第一图像数据来获取至少一个第一文本段,也可以从文本数据源获取各种文本段,以用作后续处理的候选第一文本段。第一文本段12可以包含有多个第一子文本段。例如,第一文本段12可以是包含有多个文字段或多个文字句的文本段。在本申请实施例中,获取的至少一个第一文本段可以是与第一图像数据的内容相关的文本段,也可以是包含有与第一图像数据的内容相关的文字的文本段,或者也可以任意文本段。In the embodiment of the present application, after the first image data is acquired, at least one first text segment 12 can be further acquired. In the embodiment of the present application, at least one first text segment can be obtained according to the first image data, or various text segments can be obtained from a text data source to be used as a candidate first text segment for subsequent processing. The first text segment 12 may include a plurality of first sub-text segments. For example, the first text segment 12 may be a text segment containing multiple text fields or multiple text sentences. In the embodiment of the present application, the acquired at least one first text segment may be a text segment related to the content of the first image data, or a text segment containing text related to the content of the first image data, or also Any text segment can be used.

此外,如图1B所示的场景,在本申请实施例中,也可以根据第一图像数据中包含的文字信息来生成至少一个关键字,并且基于生成的关键字来获取第一文本段。例如,可以基于生成的关键字利用搜索算法在互联网上执行搜索处理,以获取与第一图像数据中包含的文字信息相关的文本段。再例如,可以基于生成的关键字利用文本生成算法来直接基于关键字生成与该关键字对应的文字信息匹配的文本段。In addition, in the scenario shown in FIG. 1B, in the embodiment of the present application, at least one keyword may be generated based on the text information contained in the first image data, and the first text segment may be obtained based on the generated keyword. For example, a search algorithm may be used to perform a search process on the Internet based on the generated keywords to obtain a text segment related to the text information contained in the first image data. For another example, a text generation algorithm can be used based on the generated keyword to directly generate a text segment matching the text information corresponding to the keyword based on the keyword.

405,确定第一图像数据的文字信息与第一文本段的匹配数据。405. Determine the matching data between the text information of the first image data and the first text segment.

在本申请实施例中,在获取了文字信息111-113以及第一文本段之后,可以进一步确定第一图像数据中的这些文字信息111-113与第一文本段的匹配数据。例如,可以将第一文本段中包含的多个子文本段分别与文字信息111-113进行对比,以确定与文字信息111-113分别匹配的子文本段121-123。在本申请实施例中,当获取了多个第一文本段时,可以将每个第一文本段逐一与文字信息进行比对以确定匹配数据。例如,如图3中所示,可以通过步骤204,确定文字信息“TOP1”111、“高转化”112和“S级大促”113分别与文本段12中的子文本段“标定首位彰显实力”121、“智能优选投放托管”122以及“无限主题差异营销”123具有对应关系,因此构成了匹配数据。在本申请实施例中,可以存在多个第一文本段,例如,可以存在包含有上述子文本段“标定首位彰显实力”121、“智能优选投放托管”122以及“无限主题差异营销”123的第一文本段12并且可以额外存在包含有子文本段“搜索结果第一位30天”、“优选转化提高”一级“S级大促,镇店之宝等场景”的另一个第一文本段12。因此,在该情况下,可以在所确定的文字信息“TOP1”111、“高转化”112和“S级大促”113分别与文本段12中的子文本段“标定首位彰显实力”121、“智能优选投放托管”122以及“无限主题差异营销”123具有对应关系并 且文字信息“TOP1”111、“高转化”112和“S级大促”113分别与另一文本段12中的子文本段“搜索结果第一位30天”、“优选转化提高”一级“S级大促,镇店之宝等场景”具有对应关系。因此在该情况下,这样的两层对应关系可以构成第一图像数据的文字信息与多个第一文本段的匹配数据。In the embodiment of the present application, after the text information 111-113 and the first text segment are obtained, the matching data between these text information 111-113 in the first image data and the first text segment can be further determined. For example, the multiple sub-text segments contained in the first text segment may be compared with the text information 111-113, respectively, to determine the sub-text segments 121-123 that respectively match the text information 111-113. In the embodiment of the present application, when multiple first text segments are acquired, each first text segment can be compared with the text information one by one to determine matching data. For example, as shown in Figure 3, step 204 can be used to determine the text information "TOP1" 111, "High Conversion" 112, and "S-level Big Promotion" 113, respectively, and the sub-text segment in the text segment 12. "121, "Intelligent Optimal Placement Hosting" 122 and "Unlimited Theme Differential Marketing" 123 have a corresponding relationship, and thus constitute matching data. In the embodiment of this application, there may be multiple first text segments. For example, there may be sub-text segments containing the above-mentioned sub-text segments "marking the first position to show strength" 121, "intelligent preferred placement hosting" 122, and "unlimited theme difference marketing" 123. The first text segment 12 may additionally contain another first text that contains sub-text segments "first place in search results for 30 days", "optimized conversion improvement" level 1 "S-level promotion, town shop treasure, etc." Segment 12. Therefore, in this case, the determined text information "TOP1" 111, "High Conversion" 112, and "S-level Big Promotion" 113 can be combined with the sub-text segment in the text segment 12 "Marking the first position to show strength" 121, "Smart Optimal Placement Hosting" 122 and "Unlimited Theme Differential Marketing" 123 have a corresponding relationship, and the text information "TOP1" 111, "High Conversion" 112 and "S-Class Promotion" 113 are respectively subtexts in another text segment 12 The paragraphs "the first 30 days in search results", "optimized conversion improvement", "S-level big promotion, town shop treasures and other scenes" have a corresponding relationship. Therefore, in this case, such a two-layer correspondence relationship can constitute the matching data between the text information of the first image data and the multiple first text segments.

406,根据匹配数据对第一图像数据进行处理以生成多个第二图像数据,其中第二图像数据中与第一文本段匹配的文字信息具有第一展示效果。406. Process the first image data according to the matching data to generate a plurality of second image data, wherein the text information in the second image data that matches the first text segment has a first display effect.

在本申请实施例中,在步骤405中确定了第一图像数据的文字信息与第一文本段的匹配数据之后,可以基于这样确定的匹配数据对第一图像数据进行处理。例如,处理可以包括在第一图像数据中分别嵌入第一文本段中的各对应的子文本段,并且对应于嵌入的子文本段,使得与所嵌入的子文本段对应的文字信息具有特定的展示效果。例如,可以使得文字信息高亮显示,使得文字信息字体加粗显示或者为文字信息添加图形标记。从而当用户观看到这样形成的多个第二图像数据时,能够根据具有展示效果的文字信息获知当前显示的子文字段所说明的对象。In the embodiment of the present application, after the text information of the first image data and the matching data of the first text segment are determined in step 405, the first image data can be processed based on the matching data thus determined. For example, the processing may include embedding each corresponding sub-text segment in the first text segment in the first image data, and corresponding to the embedded sub-text segment, so that the text information corresponding to the embedded sub-text segment has a specific Display of results. For example, the text information can be highlighted, the font of the text information can be displayed in bold, or a graphic mark can be added to the text information. Therefore, when the user views the plurality of second image data formed in this way, the object described by the currently displayed subtext field can be obtained according to the text information with a display effect.

例如,参考图3,当在步骤405中确定了文字信息“TOP1”111、“高转化”112和“S级大促”113分别与文本段12中的子文本段“标定首位彰显实力”121、“智能优选投放托管”122以及“无限主题差异营销”123具有对应关系,并形成匹配数据之后,可以基于这样的匹配数据来对图片11进行处理,从而能够形成在图片11上分别嵌入有子文本段“标定首位彰显实力”121、“智能优选投放托管”122以及“无限主题差异营销”123这三个子文本段的图片131-133,并且在图片131-133中的每一个中对应于所嵌入的子文本段的文字信息可以具有特定的展示效果。例如,在前如有子文本段“标定首位彰显实力”121的图片131中,对应于子文本段“标定首位彰显实力”121的文字信息“TOP1”111可以具有高亮的展示效果,以提示正在观看的用户,当前正在说明或讲解的内容是文字信息“TOP1”111。For example, referring to Figure 3, when it is determined in step 405 that the text information "TOP1" 111, "High Conversion" 112, and "S-Class Promotion" 113 are respectively the same as the sub-text segment in the text segment 12 "Marking the first position to show strength" 121 , "Intelligent Optimal Placement Hosting" 122 and "Unlimited Theme Differential Marketing" 123 have a corresponding relationship, and after forming matching data, image 11 can be processed based on such matching data, so that the image 11 can be embedded with children. The text segment "Marking the first place to show strength" 121, "Smart optimal placement hosting" 122 and "Unlimited theme difference marketing" 123 are the three sub-text segments pictures 131-133, and each of the pictures 131-133 corresponds to the The text information of the embedded sub-text segment may have a specific display effect. For example, in the picture 131 of the sub-text segment "marking the first place to show strength" 121, the text information "TOP1" 111 corresponding to the sub-text segment "marking the first place to show strength" 121 can have a highlight display effect to remind The user who is watching, the content currently being explained or explained is the text information "TOP1" 111.

407,根据第一文本段生成第一音频片段,其中,所述第一音频片段包括与所述第一文本段对应的音频数据。407. Generate a first audio segment according to the first text segment, where the first audio segment includes audio data corresponding to the first text segment.

根据本申请实施例,可以进一步基于文本段12生成或获取与文本段12中的各子文本段121-12n对应的音频数据181-18n。在本申请实施例中,以通过各种方式来基于文本段12生成音频数据。例如,可以采用TTS(Text To Speech,从文本到语音)技术来将文本段12转换为音频数据181-18n,也可以采用其他算法来基于文本段12的内容生成与内容相关的音频数据。According to the embodiment of the present application, the audio data 181-18n corresponding to each sub-text segment 121-12n in the text segment 12 can be further generated or obtained based on the text segment 12. In the embodiment of the present application, audio data is generated based on the text segment 12 in various ways. For example, TTS (Text To Speech) technology can be used to convert the text segment 12 into audio data 181-18n, and other algorithms can also be used to generate content-related audio data based on the content of the text segment 12.

408,根据所述第二图像数据和所述第一音频片段生成所述第一视频数据。408. Generate the first video data according to the second image data and the first audio segment.

如图3中所示地,当生成了多个图片131至13n时,可以根据这些图片131至13n以及与这些图片131至13n中所嵌入的子文本段121-12n对应的音频181-18n来进一步生成视频。因此,在如图3中所示的应用场景中,生成的视频中不仅包括有与作为当前讲解或说明的内容对象的文字信息对应的子文本段,而且还包括了与该子文本段对应的音频数据,因此当用户观看到该部分时,能够既观看对该文字信息讲解或说明的文字,又能够听到讲解或说明的音频。As shown in FIG. 3, when a plurality of pictures 131 to 13n are generated, the pictures 131 to 13n and the audio 181-18n corresponding to the sub-text segments 121-12n embedded in the pictures 131 to 13n can be used to generate Further generate video. Therefore, in the application scenario as shown in Figure 3, the generated video not only includes the sub-text segment corresponding to the text information as the content object of the current explanation or description, but also includes the sub-text segment corresponding to the sub-text segment. Audio data, so when the user views the part, he can not only watch the text explaining or explaining the text information, but also listen to the audio of the explanation or explanation.

此外,在本申请实施例中,根据文本段生成的音频数据可以进一步包括与文字对应的时间信息。例如,基于子文本段“标定首位彰显实力”121生成的音频信息可以进一步包括对应于子文本段“标定首位彰显实力”121所包含的这八个文字的音频所需的播放时间。播放时间可以根据预先设置的语速以及文字的的长度来确定。因此,根据本申请的视频生成方法中,可以进一步根据该时间信息来将音频数据与基于第一图像数据生成的第二图像数据进行同步。例如,基于子文本段“标定首位彰显实力”121生成的嵌入有该子文本段的第二图像数据131可以与对应于该子文本段“标定首位彰显实力”121的音频数据同步,并进一步基于这样同步后的第二图像数据和音频数据来生成视频数据,从而能够确保用户在观看该第二图像数据时,该第二图像数据所保持播放的时间足以使得该第二图像数据所对应的音频数据播放完毕。In addition, in the embodiment of the present application, the audio data generated from the text segment may further include time information corresponding to the text. For example, the audio information generated based on the sub-text segment "marking the first place to show strength" 121 may further include the playback time required for the audio corresponding to the eight words contained in the sub-text segment "marking the first place to show strength" 121. The playing time can be determined according to the preset speech rate and the length of the text. Therefore, in the video generation method according to the present application, the audio data can be further synchronized with the second image data generated based on the first image data based on the time information. For example, the second image data 131 embedded with the sub-text segment generated based on the sub-text segment "Marking the first position to show strength" 121 can be synchronized with the audio data corresponding to the sub-text segment "Marking the first position to show strength" 121, and further based on In this way, the synchronized second image data and audio data are used to generate video data, so as to ensure that when the user is watching the second image data, the time that the second image data remains played is sufficient to make the audio corresponding to the second image data Data playback is complete.

此外,在本申请实施例中,也可以在生成视频数据之前由用户进一步指定第二图像数据所对应的音频片段的播放时间,并且在用户确认播放时间之后再将第二图像数据与指定了播放时间之后的音频片段同步,并且基于这样同步后的第二图像数据和音频片段来生成视频数据。In addition, in the embodiments of the present application, the user may further specify the playback time of the audio clip corresponding to the second image data before the video data is generated, and after the user confirms the playback time, the second image data and the specified playback time may be combined. The audio clips after the time are synchronized, and video data is generated based on the second image data and audio clips synchronized in this way.

因此,根据本申请实施例的视频生成方法,通过从第一图像数据获取图像数据中包含的文字信息并确定这样的文字信息与至少一个文本段之间的匹配数据,从而能够建立图像数据与至少一个文本段之间的匹配关系,之后可以基于这样的匹配关系对图像数据进行处理,以生成与文本段对应的多个第二图像数据,从而最终基于这些第二图像数据以及与图像数据匹配的文本段所对应的音频数据生成其中与文本段匹配的文字信息具有第一展示效果并且同步配有音频讲解或说明的视频数据,以该方式能够基于各种图文素材自动地生成其中图像数据和文本段以及音频彼此对应的图文视频,从而大大提高了图文视频的生成效率。Therefore, according to the video generation method of the embodiment of the present application, by obtaining the text information contained in the image data from the first image data and determining the matching data between such text information and at least one text segment, the image data and the at least one text segment can be established. After a matching relationship between a text segment, the image data can be processed based on such a matching relationship to generate a plurality of second image data corresponding to the text segment, and finally based on these second image data and the matching image data The audio data corresponding to the text segment is generated. The text information that matches the text segment has the first display effect and is synchronized with the video data with audio explanations or instructions. In this way, the image data and the video data can be automatically generated based on various graphic materials. The text segment and audio corresponding to each other's graphic video, thereby greatly improving the efficiency of generating graphic video.

图5为根据本申请一个实施方式的视频生成装置的结构示意图。参考图5,本申请 的视频生成装置可以包括:获取组件501、分析组件502、匹配组件503、图像数据生成组件504和视频数据生成组件505。Fig. 5 is a schematic structural diagram of a video generating device according to an embodiment of the present application. Referring to FIG. 5, the video generation device of the present application may include: an acquisition component 501, an analysis component 502, a matching component 503, an image data generation component 504, and a video data generation component 505.

具体地,获取组件501用于获取至少一个第一图像数据和至少一个第一文本段。Specifically, the acquiring component 501 is configured to acquire at least one first image data and at least one first text segment.

在本申请实施例中,获取组件501可以从各种数据源获取生成视频所使用的素材作为第一图像数据。例如,可以从各种网页上获取包含有文字的图片作为第一图像数据,或者也可以由用户在用户界面上直接输入包含有文字的图片作为第一图像数据。当然,在本申请实施例中,也可以从各种数据源获取各种图片,然后对所获取的图片进行预处理以识别出包含有文字的图片作为第一图像数据。或者也可以由用户通过用户界面输入任意素材,并且对用户输入的图片进行处理以识别出包含有文字的图片作为第一图像数据。此外,获取组件501可以根据第一图像数据来获取至少一个第一文本段,也可以从文本数据源获取各种文本段,以用作后续处理的候选第一文本段。第一文本段12可以包含有多个第一子文本段。例如,第一文本段12可以是包含有多个文字段或多个文字句的文本段。在本申请实施例中,获取组件501获取的至少一个第一文本段可以是与第一图像数据的内容相关的文本段,也可以是包含有与第一图像数据的内容相关的文字的文本段,或者也可以任意文本段。In the embodiment of the present application, the obtaining component 501 may obtain the material used to generate the video from various data sources as the first image data. For example, a picture containing text may be obtained from various web pages as the first image data, or the user may directly input a picture containing text on the user interface as the first image data. Of course, in the embodiment of the present application, various pictures can also be obtained from various data sources, and then the obtained pictures are preprocessed to identify pictures containing text as the first image data. Alternatively, the user may input any material through the user interface, and process the picture input by the user to recognize the picture containing text as the first image data. In addition, the acquiring component 501 can acquire at least one first text segment according to the first image data, or can acquire various text segments from a text data source to be used as a candidate first text segment for subsequent processing. The first text segment 12 may include a plurality of first sub-text segments. For example, the first text segment 12 may be a text segment containing multiple text fields or multiple text sentences. In the embodiment of the present application, the at least one first text segment acquired by the acquiring component 501 may be a text segment related to the content of the first image data, or a text segment containing text related to the content of the first image data. , Or any text segment.

此外,获取组件501也可以获取包含图像和文字的第一数据,并且进而通过对第一数据进行图像提取和文字提取来获取第一图像数据和第一文本段。例如,获取组件501可以从各种网页上获取包含有文字的图片作为第一图像数据,或者也可以由用户在用户界面上直接输入包含有文字的图片作为第一图像数据。当然,在本申请实施例中,获取组件501也可以从各种数据源获取各种图片,然后对所获取的图片进行预处理以识别出包含有文字的图片作为第一图像数据。或者获取组件501也可以由用户通过用户界面输入任意素材,并且对用户输入的图片进行处理以识别出包含有文字的图片作为第一图像数据。In addition, the acquiring component 501 may also acquire the first data including the image and the text, and further acquire the first image data and the first text segment by performing image extraction and text extraction on the first data. For example, the obtaining component 501 may obtain pictures containing text from various web pages as the first image data, or the user may directly input pictures containing text on the user interface as the first image data. Of course, in the embodiment of the present application, the acquiring component 501 may also acquire various pictures from various data sources, and then preprocess the acquired pictures to identify pictures containing text as the first image data. Or the acquiring component 501 can also be used by the user to input any material through the user interface, and process the picture input by the user to recognize the picture containing text as the first image data.

在实际应用中,也会存在各种同时包含图像和对应文字的混合数据。例如,对于某个事件的新闻报道等等。因此,在这样的混合数据中,已经存在了图片和对该图片进行说明的文本段。因此,如本申请实施例中所示,可以在获取了这样的混合数据之后,通过对该混合数据分别进行图像提取处理和文字提取处理来分别获取第一图像数据和第一文本段。In practical applications, there will also be various mixed data containing both images and corresponding texts. For example, for news reports of a certain event, etc. Therefore, in such mixed data, a picture and a text segment describing the picture already exist. Therefore, as shown in the embodiment of the present application, after obtaining such mixed data, the first image data and the first text segment may be obtained by performing image extraction processing and text extraction processing on the mixed data respectively.

分析组件502用于对第一图像数据进行文字分析处理以获取所述第一图像数据中包含的文字信息。在本申请实施例中,当获取了第一图像数据之后,分析组件502可以利 用各种文字分析处理技术,例如文字提取技术来对获取组件501获取的第一图像数据进行分析处理,从而能够获取图像中包含的文字句段作为文字信息。例如,当获取组件501获取了图1A中所示的图片11作为第一图像数据时,分析组件502可以通过图像处理而获取到图像中包含的所有文字句段作为本申请实施例中的文字信息“TOP1”111、“高转化”112和“S级大促”113。203,获取至少一个第一文本段。The analysis component 502 is configured to perform text analysis processing on the first image data to obtain text information contained in the first image data. In the embodiment of the present application, after acquiring the first image data, the analysis component 502 can use various text analysis and processing technologies, such as text extraction technology, to analyze and process the first image data acquired by the acquisition component 501, so as to obtain The text segment contained in the image is used as text information. For example, when the acquiring component 501 acquires the picture 11 shown in FIG. 1A as the first image data, the analyzing component 502 can acquire all the text segments contained in the image through image processing as the text information in the embodiment of the present application. "TOP1" 111, "High conversion" 112 and "S-level big promotion" 113. 203, obtain at least one first text segment.

在本申请实施例中,当获取组件501获取了第一图像数据之后,可以进一步获取至少一个第一文本段12。在本申请实施例中,获取组件501可以根据第一图像数据来获取至少一个第一文本段,也可以从文本数据源获取各种文本段,以用作后续处理的候选第一文本段。第一文本段12可以包含有多个第一子文本段。例如,第一文本段12可以是包含有多个文字段或多个文字句的文本段。在本申请实施例中,获取组件501获取的至少一个第一文本段可以是与第一图像数据的内容相关的文本段,也可以是包含有与第一图像数据的内容相关的文字的文本段,或者也可以任意文本段。In the embodiment of the present application, after the acquiring component 501 acquires the first image data, at least one first text segment 12 can be further acquired. In the embodiment of the present application, the acquiring component 501 can acquire at least one first text segment according to the first image data, or can acquire various text segments from a text data source to use as a candidate first text segment for subsequent processing. The first text segment 12 may include a plurality of first sub-text segments. For example, the first text segment 12 may be a text segment containing multiple text fields or multiple text sentences. In the embodiment of the present application, the at least one first text segment acquired by the acquiring component 501 may be a text segment related to the content of the first image data, or a text segment containing text related to the content of the first image data. , Or any text segment.

匹配组件503用于确定所述第一图像数据的文字信息与所述第一文本段的匹配数据。在本申请实施例中,在分析组件502获取了文字信息111-113并且获取组件501第一文本段之后,匹配组件503可以确定第一图像数据中的这些文字信息111-113与第一文本段的匹配数据。The matching component 503 is used to determine the matching data between the text information of the first image data and the first text segment. In the embodiment of the present application, after the analysis component 502 obtains the text information 111-113 and obtains the first text segment of the component 501, the matching component 503 can determine the text information 111-113 in the first image data and the first text segment Matching data.

例如,匹配组件503可以将第一文本段中包含的多个子文本段分别与文字信息111-113进行对比,以确定与文字信息111-113分别匹配的子文本段121-123。在本申请实施例中,当获取组件501获取了多个第一文本段时,匹配组件503可以将每个第一文本段逐一与文字信息进行比对以确定匹配数据。例如,如图1A中所示,匹配组件503可以确定文字信息“TOP1”111、“高转化”112和“S级大促”113分别与文本段12中的子文本段“标定首位彰显实力”121、“智能优选投放托管”122以及“无限主题差异营销”123具有对应关系,因此构成了匹配数据。在本申请实施例中,可以存在多个第一文本段,例如,可以存在包含有上述子文本段“标定首位彰显实力”121、“智能优选投放托管”122以及“无限主题差异营销”123的第一文本段12并且可以额外存在包含有子文本段“搜索结果第一位30天”、“优选转化提高”一级“S级大促,镇店之宝等场景”的另一个第一文本段12。因此,在该情况下,匹配组件503可以确定文字信息“TOP1”111、“高转化”112和“S级大促”113分别与文本段12中的子文本段“标定首位彰显实力”121、“智能优选投放托管”122以及“无限主题差异营销”123具有对应关系并且文字信息“TOP1”111、“高转化”112和“S级大促”113分别与另一文本段12中的子文本段“搜索结 果第一位30天”、“优选转化提高”一级“S级大促,镇店之宝等场景”具有对应关系。因此在该情况下,这样的两层对应关系可以构成第一图像数据的文字信息与多个第一文本段的匹配数据。For example, the matching component 503 may compare the multiple sub-text segments contained in the first text segment with the text information 111-113, respectively, to determine the sub-text segments 121-123 respectively matching the text information 111-113. In the embodiment of the present application, when the acquiring component 501 acquires multiple first text segments, the matching component 503 may compare each first text segment with the text information one by one to determine matching data. For example, as shown in FIG. 1A, the matching component 503 can determine that the text information "TOP1" 111, "High Conversion" 112, and "S-level Big Promotion" 113 are respectively associated with the sub-text segment in the text segment 12 "marking the first position to show strength." 121. "Intelligent Optimal Placement Hosting" 122 and "Unlimited Theme Differential Marketing" 123 have a corresponding relationship and therefore constitute matching data. In the embodiment of this application, there may be multiple first text segments. For example, there may be sub-text segments containing the above-mentioned sub-text segments "marking the first position to show strength" 121, "intelligent preferred placement hosting" 122, and "unlimited theme difference marketing" 123. The first text segment 12 may additionally contain another first text that contains sub-text segments "first place in search results for 30 days", "optimized conversion improvement" level 1 "S-level promotion, town shop treasure, etc." Segment 12. Therefore, in this case, the matching component 503 can determine that the textual information "TOP1" 111, "High Conversion" 112, and "S-level Big Promotion" 113 are respectively and the sub-text segment in the text segment 12 "marking the first position to show strength" 121, "Smart Optimal Placement Hosting" 122 and "Unlimited Theme Differential Marketing" 123 have a corresponding relationship, and the text information "TOP1" 111, "High Conversion" 112 and "S-Class Promotion" 113 are respectively subtexts in another text segment 12 The paragraphs "the first 30 days in search results", "optimized conversion improvement", "S-level big promotion, town shop treasures and other scenes" have a corresponding relationship. Therefore, in this case, such a two-layer correspondence relationship can constitute the matching data between the text information of the first image data and the multiple first text segments.

图像数据生成组件504用于根据所述匹配数据对所述第一图像数据进行处理以生成多个第二图像数据,其中所述第二图像数据中与所述第一文本段匹配的文字信息具有第一展示效果。在匹配组件503确定了第一图像数据的文字信息与第一文本段的匹配数据之后,图像数据生成组件504可以基于匹配组件503确定的匹配数据对第一图像数据进行处理。例如,处理可以包括在第一图像数据中分别嵌入第一文本段中的各对应的子文本段,并且对应于嵌入的子文本段,使得与所嵌入的子文本段对应的文字信息具有特定的展示效果。例如,可以使得文字信息高亮显示,使得文字信息字体加粗显示或者为文字信息添加图形标记。从而当用户观看到这样形成的多个第二图像数据时,能够根据具有展示效果的文字信息获知当前显示的子文字段所说明的对象。The image data generating component 504 is configured to process the first image data according to the matching data to generate a plurality of second image data, wherein the text information in the second image data that matches the first text segment has The first display effect. After the matching component 503 determines the text information of the first image data and the matching data of the first text segment, the image data generating component 504 may process the first image data based on the matching data determined by the matching component 503. For example, the processing may include embedding each corresponding sub-text segment in the first text segment in the first image data, and corresponding to the embedded sub-text segment, so that the text information corresponding to the embedded sub-text segment has a specific Display of results. For example, the text information can be highlighted, the font of the text information can be displayed in bold, or a graphic mark can be added to the text information. Therefore, when the user views the plurality of second image data formed in this way, the object described by the currently displayed subtext field can be obtained according to the text information with a display effect.

视频数据生成组件505用于根据所述多个第二图像数据生成第一视频数据。当如上所述图像数据生成组件504生成了嵌入有文本段12的多个子文本段的多个图片131-133时,视频数据生成组件505可以根据这些图片来生成视频数据。The video data generating component 505 is configured to generate first video data according to the plurality of second image data. When the image data generating component 504 generates multiple pictures 131-133 embedded with multiple sub-text segments of the text segment 12 as described above, the video data generating component 505 may generate video data based on these pictures.

因此,根据本申请实施例的视频生成装置,通过从第一图像数据获取图像数据中包含的文字信息并确定这样的文字信息与至少一个文本段之间的匹配数据,从而能够建立图像数据与至少一个文本段之间的匹配关系,之后可以基于这样的匹配关系对图像数据进行处理,以生成与文本段对应的多个第二图像数据,从而最终基于这些第二图像数据生成其中与文本段匹配的文字信息具有第一展示效果的视频数据,以该方式能够基于各种图文素材自动地生成其中图像数据和文本段彼此对应的图文视频,从而大大提高了图文视频的生成效率。Therefore, according to the video generation device of the embodiment of the present application, by acquiring the text information contained in the image data from the first image data and determining the matching data between such text information and at least one text segment, the image data and at least one text segment can be established. The matching relationship between a text segment, and then the image data can be processed based on such a matching relationship to generate multiple second image data corresponding to the text segment, and finally based on these second image data to generate which matches the text segment The text information has the first display effect of video data. In this way, the image and text video in which the image data and the text segment correspond to each other can be automatically generated based on various image and text materials, thereby greatly improving the generation efficiency of the image and text video.

图6为根据本申请一个实施方式的视频生成装置的结构示意图。参考图6,本申请的视频生成装置可以包括:图像数据获取组件601、分析组件602、文本段获取组件603、匹配组件604、图像数据生成组件605和视频数据生成组件606。图像数据获取组件601可以从各种数据源获取生成视频所使用的素材作为第一图像数据。例如,可以从各种网页上获取包含有文字的图片作为第一图像数据,或者也可以由用户在用户界面上直接输入包含有文字的图片作为第一图像数据。当然,在本申请实施例中,也可以从各种数据源获取各种图片,然后对所获取的图片进行预处理以识别出包含有文字的图片作为第一图像数据。或者也可以由用户通过用户界面输入任意素材,并且对用户输入的图片进行 处理以识别出包含有文字的图片作为第一图像数据。Fig. 6 is a schematic structural diagram of a video generation device according to an embodiment of the present application. 6, the video generation device of the present application may include: an image data acquisition component 601, an analysis component 602, a text segment acquisition component 603, a matching component 604, an image data generation component 605, and a video data generation component 606. The image data acquisition component 601 can acquire the materials used to generate the video from various data sources as the first image data. For example, a picture containing text may be obtained from various web pages as the first image data, or the user may directly input a picture containing text on the user interface as the first image data. Of course, in the embodiment of the present application, various pictures can also be obtained from various data sources, and then the obtained pictures are preprocessed to identify pictures containing text as the first image data. Alternatively, the user may input any material through the user interface, and process the picture input by the user to recognize the picture containing text as the first image data.

分析组件602用于对第一图像数据进行文字分析处理以获取所述第一图像数据中包含的文字信息。在本申请实施例中,当图像数据获取组件601获取了第一图像数据之后,分析组件602可以利用各种文字分析处理技术,例如文字提取技术来对图像数据获取组件601获取的第一图像数据进行分析处理,从而能够获取图像中包含的文字句段作为文字信息。The analysis component 602 is configured to perform text analysis processing on the first image data to obtain text information contained in the first image data. In the embodiment of the present application, after the image data acquisition component 601 acquires the first image data, the analysis component 602 can use various text analysis and processing technologies, such as text extraction technology, to analyze the first image data acquired by the image data acquisition component 601. Perform analysis and processing, so that the text segment contained in the image can be obtained as text information.

文本段获取组件603用于将文字信息输入到搜索引擎,以获取至少一个第一文本段。在本申请实施例中,文本段获取组件603可以根据图像数据获取组件601获取的第一图像数据中包含的文字信息来生成至少一个关键字,并且基于生成的关键字来获取第一文本段。例如,可以基于生成的关键字利用搜索算法在互联网上执行搜索处理,以获取与第一图像数据中包含的文字信息相关的文本段。再例如,可以基于生成的关键字利用文本生成算法来直接基于关键字生成与该关键字对应的文字信息匹配的文本段。The text segment obtaining component 603 is used to input text information into the search engine to obtain at least one first text segment. In the embodiment of the present application, the text segment obtaining component 603 may generate at least one keyword according to the text information contained in the first image data obtained by the image data obtaining component 601, and obtain the first text segment based on the generated keyword. For example, a search algorithm may be used to perform a search process on the Internet based on the generated keywords to obtain a text segment related to the text information contained in the first image data. For another example, a text generation algorithm can be used based on the generated keyword to directly generate a text segment matching the text information corresponding to the keyword based on the keyword.

匹配组件604用于确定所述第一图像数据的文字信息与所述第一文本段的匹配数据。在本申请实施例中,在图像数据获取组件601获取了第一图像数据并且文本段获取组件603获取了第一文本段之后,匹配组件604可以确定第一图像数据中的文字信息与第一文本段的匹配数据。The matching component 604 is used to determine the matching data between the text information of the first image data and the first text segment. In the embodiment of the present application, after the image data acquisition component 601 acquires the first image data and the text segment acquisition component 603 acquires the first text segment, the matching component 604 can determine the text information in the first image data and the first text Matching data of the segment.

所述图像数据生成组件605用于根据所述匹配数据对所述第一图像数据进行处理以生成多个第二图像数据,其中所述第二图像数据中与所述第一文本段匹配的文字信息具有第一展示效果。The image data generating component 605 is configured to process the first image data according to the matching data to generate a plurality of second image data, wherein the text in the second image data that matches the first text segment Information has the first display effect.

在匹配组件604确定了第一图像数据的文字信息与第一文本段的匹配数据之后,图像数据生成组件605可以基于匹配组件604确定的匹配数据对第一图像数据进行处理。例如,处理可以包括在第一图像数据中分别嵌入第一文本段中的各对应的子文本段,并且对应于嵌入的子文本段,使得与所嵌入的子文本段对应的文字信息具有特定的展示效果。例如,可以使得文字信息高亮显示,使得文字信息字体加粗显示或者为文字信息添加图形标记。从而当用户观看到这样形成的多个第二图像数据时,能够根据具有展示效果的文字信息获知当前显示的子文字段所说明的对象。After the matching component 604 determines the text information of the first image data and the matching data of the first text segment, the image data generating component 605 may process the first image data based on the matching data determined by the matching component 604. For example, the processing may include embedding each corresponding sub-text segment in the first text segment in the first image data, and corresponding to the embedded sub-text segment, so that the text information corresponding to the embedded sub-text segment has a specific Display of results. For example, the text information can be highlighted, the font of the text information can be displayed in bold, or a graphic mark can be added to the text information. Therefore, when the user views the plurality of second image data formed in this way, the object described by the currently displayed subtext field can be obtained according to the text information with a display effect.

视频数据生成组件606用于根据所述多个第二图像数据生成第一视频数据。The video data generating component 606 is configured to generate first video data according to the plurality of second image data.

因此,根据本申请实施例的视频生成装置,能够基于第一图像数据中的文字信息利用搜索算法从互联网获取第一本文段,通过从第一图像数据获取图像数据中包含的文字信息并确定这样的文字信息与至少一个文本段之间的匹配数据,从而能够建立图像数据 与至少一个文本段之间的匹配关系,之后可以基于这样的匹配关系对图像数据进行处理,以生成与文本段对应的多个第二图像数据,从而最终基于这些第二图像数据生成其中与文本段匹配的文字信息具有第一展示效果的视频数据,以该方式能够基于各种图文素材自动地生成其中图像数据和文本段彼此对应的图文视频,从而大大提高了图文视频的生成效率。Therefore, according to the video generation device of the embodiment of the present application, the first text segment can be obtained from the Internet using a search algorithm based on the text information in the first image data, and the text information contained in the image data can be obtained by obtaining the text information contained in the image data from the first image data and determining this The matching data between the text information and at least one text segment can establish a matching relationship between the image data and the at least one text segment, and then the image data can be processed based on such a matching relationship to generate a corresponding text segment A plurality of second image data, and finally based on these second image data to generate video data in which the text information matched with the text segment has the first display effect, in this way, the image data and the video data can be automatically generated based on various graphic materials. The textual video corresponding to each other in the text segment greatly improves the generation efficiency of the graphic video.

图7为根据本申请一个实施方式的视频生成装置的结构示意图。参考图7,本申请的视频生成装置可以包括:接收组件701、分析组件702、匹配组件703、展示组件704、图像数据生成组件705和视频数据生成组件706。接收组件701用于接收用户输入的至少一个第一图像数据和至少一个第一文本段。在本申请实施例中,可以由用户在例如用户界面输入各种图像数据和文本段来作为第一图像数据和第一文本段。当然,用户也可以通过接收组件来输入第一图像数据和针对该第一图像数据的文字作为第一文本段。Fig. 7 is a schematic structural diagram of a video generation device according to an embodiment of the present application. Referring to FIG. 7, the video generating device of the present application may include: a receiving component 701, an analyzing component 702, a matching component 703, a display component 704, an image data generating component 705, and a video data generating component 706. The receiving component 701 is configured to receive at least one first image data and at least one first text segment input by a user. In the embodiment of the present application, the user may input various image data and text segments on, for example, a user interface as the first image data and the first text segment. Of course, the user can also input the first image data and text for the first image data as the first text segment through the receiving component.

分析组件702用于对第一图像数据进行文字分析处理以获取所述第一图像数据中包含的文字信息。当用户通过接收组件701输入了第一图像数据之后,分析组件702可以利用各种文字分析处理技术,例如文字提取技术来对用户通过接收组件701输入的第一图像数据进行分析处理,从而能够获取图像中包含的文字句段作为文字信息。The analysis component 702 is configured to perform text analysis processing on the first image data to obtain text information contained in the first image data. After the user inputs the first image data through the receiving component 701, the analysis component 702 can use various text analysis and processing technologies, such as text extraction technology, to analyze and process the first image data input by the user through the receiving component 701, so as to obtain The text segment contained in the image is used as text information.

匹配组件703用于确定所述第一图像数据的文字信息与所述第一文本段的匹配数据。在本申请实施例中,在接收组件701接收到用户输入的第一图像数据以及第一文本段之后,匹配组件703可以确定第一图像数据中的这些文字信息与第一文本段的匹配数据。The matching component 703 is used to determine the matching data between the text information of the first image data and the first text segment. In the embodiment of the present application, after the receiving component 701 receives the first image data and the first text segment input by the user, the matching component 703 can determine the matching data between the text information in the first image data and the first text segment.

展示组件704用于向用户展示匹配数据。The display component 704 is used to display matching data to the user.

在本申请的实施例中,如图1C中所示,当接收组件接收到用户输入的第一图像数据和第一文本段之后,尤其是当用户输入了多个图像数据和各种文本段之后,用户往往希望能够看到所输入的这些图像数据和文本段之间的匹配结果,以便于确定想要的展示效果。因此,在本申请实施例中,可以通过展示组件704来向用户展示匹配组件703对用户输入的图像数据和文本段进行的匹配处理的结果。从而接收组件701可以进一步用于接收用户输入的针对所述匹配数据的指示数据,其中所述指示数据至少包括针对所述匹配数据的第一展示效果的指令信息。例如,如图1C和3中所示,当匹配组件703确定文字信息“TOP1”111、“高转化”112和“S级大促”113分别与文本段12中的子文本段“标定首位彰显实力”121、“智能优选投放托管”122以及“无限主题差异营销”123具有对应关系时,展示组件704可以向用户展示该结果,从而用户可以确定对文字信息111 施加加粗效果,对文字信息112施加下划线效果,并且对文字信息113施加气泡图形,从而能够实现用户对于展示效果的定制。In the embodiment of the present application, as shown in FIG. 1C, after the receiving component receives the first image data and the first text segment input by the user, especially after the user has input multiple image data and various text segments , Users often want to be able to see the matching results between the inputted image data and text segments in order to determine the desired display effect. Therefore, in the embodiment of the present application, the display component 704 may be used to display the result of the matching processing performed by the matching component 703 on the image data and text segment input by the user to the user. Therefore, the receiving component 701 may be further configured to receive instruction data for the matching data input by the user, where the instruction data includes at least instruction information for the first display effect of the matching data. For example, as shown in Figures 1C and 3, when the matching component 703 determines that the text information "TOP1" 111, "High Conversion" 112, and "S-Class Promotion" 113 are respectively associated with the sub-text segment in the text segment 12, the "marking first position" is highlighted. When “strength” 121, “intelligent optimal placement hosting” 122, and “unlimited theme difference marketing” 123 have a corresponding relationship, the display component 704 can display the result to the user, so that the user can determine to apply a bold effect to the text information 111, and to the text information 112 applies an underline effect, and applies a bubble graphic to the text information 113, so that the user can customize the display effect.

图像数据生成组件705用于根据指示数据对所述第一图像数据进行处理以生成多个第二图像数据,其中所述第二图像数据中与所述第一文本段匹配的文字信息具有所述第一展示效果。在本申请实施例中,当用户通过接收组件701输入了对于文字信息的展示效果的指示之后,图像数据生成组件705可以根据这样的指示来对图像数据进行处理,以生成符合用户要求的多个第二图像数据。当用户仅针对部分文字信息指定了展示效果时,可以由图像数据生成组件705自动地为其他文字信息指定展示效果,或者也可以将自动指定的展示效果输出给用户,并进而通过接收组件701进一步接收用户的指示。The image data generating component 705 is configured to process the first image data according to the instruction data to generate a plurality of second image data, wherein the text information matching the first text segment in the second image data has the The first display effect. In the embodiment of the present application, after the user inputs an instruction for the display effect of text information through the receiving component 701, the image data generating component 705 can process the image data according to the instruction to generate a plurality of images that meet the requirements of the user. The second image data. When the user specifies the display effect for only part of the text information, the image data generating component 705 can automatically specify the display effect for other text information, or the automatically specified display effect can also be output to the user, and then further through the receiving component 701 Receive user instructions.

视频数据生成组件706用于根据多个第二图像数据生成第一视频数据。The video data generating component 706 is configured to generate first video data according to a plurality of second image data.

图8为本申请实施例的电子设备的结构示意图。FIG. 8 is a schematic structural diagram of an electronic device according to an embodiment of the application.

本公开的电子设备可以是具有可移动性的移动终端设备,也可以是较少移动的或者非移动的计算设备。本公开的电子设备至少具有处理单元和存储器,存储器上存储有指令,处理单元从存储器上获取指令,并执行处理,以使电子设备执行动作。The electronic device of the present disclosure may be a mobile terminal device with mobility, or a less mobile or non-mobile computing device. The electronic device of the present disclosure has at least a processing unit and a memory, and instructions are stored in the memory. The processing unit obtains the instructions from the memory and executes processing to make the electronic device perform actions.

以上描述了视频生成方法以及视频生成装置,该生成装置可以实现为一种电子设备。如图8所示,该电子设备包括存储器801和处理器802。The video generation method and the video generation device are described above, and the generation device can be implemented as an electronic device. As shown in FIG. 8, the electronic device includes a memory 801 and a processor 802.

存储器801,用于存储程序。除上述程序之外,存储器801还可被配置为存储其它各种数据以支持在电子设备上的操作。这些数据的示例包括用于在电子设备上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。The memory 801 is used to store programs. In addition to the aforementioned programs, the memory 801 may also be configured to store other various data to support operations on the electronic device. Examples of these data include instructions for any application or method operating on the electronic device, contact data, phone book data, messages, pictures, videos, etc.

存储器801可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 801 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable and Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.

处理器802,不仅仅局限于中央处理器(CPU),还可能为图形处理器(GPU)、现场可编辑门阵列(FPGA)、嵌入式神经网络处理器(NPU)或人工智能(AI)芯片等处理芯片。处理器802,与存储器801耦合,执行存储器501所存储的程序,以用于:The processor 802 is not only limited to the central processing unit (CPU), but may also be a graphics processing unit (GPU), field programmable gate array (FPGA), embedded neural network processor (NPU) or artificial intelligence (AI) chip Wait for the processing chip. The processor 802 is coupled with the memory 801, and executes the program stored in the memory 501 for:

获取至少一个第一图像数据;Acquiring at least one first image data;

对第一图像数据进行文字分析处理以获取所述第一图像数据中包含的文字信息;Performing text analysis processing on the first image data to obtain text information contained in the first image data;

获取至少一个第一文本段;Obtain at least one first text segment;

确定所述第一图像数据的文字信息与所述第一文本段的匹配数据;Determining the matching data between the text information of the first image data and the first text segment;

根据所述匹配数据对所述第一图像数据进行处理以生成多个第二图像数据,其中所述第二图像数据中与所述第一文本段匹配的文字信息具有第一展示效果;以及Processing the first image data according to the matching data to generate a plurality of second image data, wherein the text information in the second image data that matches the first text segment has a first display effect; and

根据所述多个第二图像数据生成第一视频数据。The first video data is generated according to the plurality of second image data.

进一步,如图8所示,电子设备还可以包括:通信组件803、电源组件804、音频组件805、显示器806等其它组件。图中仅示意性给出部分组件,并不意味着电子设备只包括图所示组件。Further, as shown in FIG. 8, the electronic device may further include: a communication component 803, a power supply component 804, an audio component 805, a display 806 and other components. Only part of the components are schematically shown in the figure, which does not mean that the electronic device only includes the components shown in the figure.

通信组件803被配置为便于电子设备和其他设备之间有线或无线方式的通信。电子设备可以接入基于通信标准的无线网络,如WiFi,4G或5G,或它们的组合。在一个示例性实施例中,通信组件803经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件803还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 803 is configured to facilitate wired or wireless communication between the electronic device and other devices. Electronic devices can access wireless networks based on communication standards, such as WiFi, 4G or 5G, or a combination of them. In an exemplary embodiment, the communication component 803 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 803 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

电源组件804,为电子设备的各种组件提供电力。电源组件804可以包括电源管理系统,一个或多个电源,及其他与为电子设备生成、管理和分配电力相关联的组件。The power supply component 804 provides power for various components of the electronic device. The power supply component 804 may include a power management system, one or more power supplies, and other components associated with the generation, management, and distribution of power for electronic devices.

音频组件805被配置为输出和/或输入音频信号。例如,音频组件805包括一个麦克风(MIC),当电子设备处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器801或经由通信组件803发送。在一些实施例中,音频组件805还包括一个扬声器,用于输出音频信号。The audio component 805 is configured to output and/or input audio signals. For example, the audio component 805 includes a microphone (MIC), and when the electronic device is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive external audio signals. The received audio signal may be further stored in the memory 801 or sent via the communication component 803. In some embodiments, the audio component 805 further includes a speaker for outputting audio signals.

显示器806包括屏幕,其屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。The display 806 includes a screen, and the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure related to the touch or slide operation.

本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。A person of ordinary skill in the art can understand that all or part of the steps in the foregoing method embodiments can be implemented by a program instructing relevant hardware. The aforementioned program can be stored in a computer readable storage medium. When the program is executed, it executes the steps including the foregoing method embodiments; and the foregoing storage medium includes: ROM, RAM, magnetic disk, or optical disk and other media that can store program codes.

最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其 依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the application, not to limit them; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or equivalently replace some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present application. range.

Claims (17)

一种视频生成方法,其特征在于,包括:A video generation method, characterized in that it comprises: 获取至少一个第一图像数据;Acquiring at least one first image data; 对第一图像数据进行文字分析处理以获取所述第一图像数据中包含的文字信息;Performing text analysis processing on the first image data to obtain text information contained in the first image data; 获取至少一个第一文本段;Obtain at least one first text segment; 确定所述第一图像数据的文字信息与所述第一文本段的匹配数据;Determining the matching data between the text information of the first image data and the first text segment; 根据所述匹配数据对所述第一图像数据进行处理以生成多个第二图像数据,其中所述第二图像数据中与所述第一文本段匹配的文字信息具有第一展示效果;以及Processing the first image data according to the matching data to generate a plurality of second image data, wherein the text information in the second image data that matches the first text segment has a first display effect; and 根据所述多个第二图像数据生成第一视频数据。The first video data is generated according to the plurality of second image data. 根据权利要求1所述的视频生成方法,其特征在于,所述视频生成方法进一步包括:The video generation method according to claim 1, wherein the video generation method further comprises: 根据所述第一文本段生成第一音频片段,其中,所述第一音频片段包括与所述第一文本段对应的音频数据,并且Generate a first audio segment according to the first text segment, wherein the first audio segment includes audio data corresponding to the first text segment, and 所述根据所述第二图像数据生成第一视频数据进一步包括:The generating first video data according to the second image data further includes: 根据所述第二图像数据和所述第一音频片段生成所述第一视频数据。The first video data is generated based on the second image data and the first audio segment. 根据权利要求2所述的视频生成方法,其特征在于,所述音频片段进一步包括与所述第一文本段包含的文字对应的时间信息,所述方法还包括:根据所述时间信息将所述音频数据与所述第二图像数据同步。The video generation method according to claim 2, wherein the audio clip further includes time information corresponding to the text contained in the first text segment, and the method further comprises: converting the time information to the The audio data is synchronized with the second image data. 根据权利要求1所述的视频生成方法,其特征在于,在所述获取至少一个第一图像数据之前,所述视频生成方法进一步包括:The video generation method according to claim 1, wherein before said acquiring at least one first image data, the video generation method further comprises: 获取包含图像和文字的第一数据,Get the first data containing images and text, 所述获取至少一个第一图像数据包括:对所述第一数据进行图像提取处理,以从所述第一数据中提取出至少一个图像作为所述第一图像数据,并且The acquiring at least one first image data includes: performing image extraction processing on the first data to extract at least one image from the first data as the first image data, and 所述获取至少一个第一文本段包括:对所述第一数据进行文字提取处理,以从所述第一数据中提取出至少一个文本段作为所述第一文本段。The acquiring at least one first text segment includes: performing text extraction processing on the first data to extract at least one text segment from the first data as the first text segment. 根据权利要求1所述的视频生成方法,其特征在于,所述获取至少一个第一文本段包括:The video generation method according to claim 1, wherein said obtaining at least one first text segment comprises: 根据所述文本信息生成至少一个第一关键字;Generating at least one first keyword according to the text information; 使用所述第一关键字从至少一个数据源获取所述第一文本段。Obtain the first text segment from at least one data source using the first keyword. 根据权利要求1所述的视频生成方法,其特征在于,所述获取至少一个第一文本 段包括:The video generation method according to claim 1, wherein said obtaining at least one first text segment comprises: 根据所述文字信息生成至少一个第一关键字;Generating at least one first keyword according to the text information; 基于所述第一关键字使用至少一个预置的文本生成算法生成所述第一文本段。At least one preset text generation algorithm is used to generate the first text segment based on the first keyword. 根据权利要求1所述的视频生成方法,其特征在于,所述对第一图像数据进行文字分析处理以获取所述第一图像数据中包含的文字信息包括:The video generation method according to claim 1, wherein the performing text analysis processing on the first image data to obtain text information contained in the first image data comprises: 识别所述第一图像数据中的至少一个空白区域;Identifying at least one blank area in the first image data; 基于所识别出的至少一个空白区域确定所述第一图像数据中的至少一个文字区域;以及Determining at least one text area in the first image data based on the identified at least one blank area; and 对所述至少一个文字区域进行文字提取处理以获得所述文字信息。Performing text extraction processing on the at least one text area to obtain the text information. 根据权利要求1所述的视频生成方法,其特征在于,所述方法进一步包括:根据所述文字处理分析的结果确定视频模版,并且The video generation method according to claim 1, wherein the method further comprises: determining a video template according to the result of the word processing analysis, and 所述根据所述第二图像数据生成第一视频数据包括:The generating first video data according to the second image data includes: 基于所确定的视频模版根据所述第二图像数据生成所述第一视频数据。The first video data is generated according to the second image data based on the determined video template. 根据权利要求1所述的视频生成方法,其中,所述第一展示效果包括所述文本信息中的文字的颜色。The video generation method according to claim 1, wherein the first display effect includes the color of the text in the text information. 根据权利要求1所述的视频生成方法,其中,所述根据所述匹配数据对所述第一图像数据进行处理以生成多个第二图像数据包括:The video generation method according to claim 1, wherein the processing the first image data according to the matching data to generate a plurality of second image data comprises: 根据所述文字信息获取至少一个图形数据;Acquiring at least one graphic data according to the text information; 根据所述匹配数据确定所述第二图像数据中所述文字信息的关联位置;Determining the associated position of the text information in the second image data according to the matching data; 根据所述匹配数据、所述至少一个图形数据以及所述关联位置生成所述多个第二图像数据中的至少一个,其中所述至少一个第二图像数据中的每一个包含位于所述关联位置处的所述至少一个图形数据中的至少一个。At least one of the plurality of second image data is generated according to the matching data, the at least one graphic data, and the associated location, wherein each of the at least one second image data includes the location at the associated location At least one of the at least one graphic data at the location. 一种视频生成方法,其特征在于,包括:A video generation method, characterized in that it comprises: 获取至少一个第一图像数据;Acquiring at least one first image data; 对第一图像数据进行文字分析处理以获取所述第一图像数据中包含的文字信息;Performing text analysis processing on the first image data to obtain text information contained in the first image data; 将所述文字信息输入到搜索引擎,以获取至少一个第一文本段;Input the text information into a search engine to obtain at least one first text segment; 确定所述第一图像数据的文字信息与所述第一文本段的匹配数据;Determining the matching data between the text information of the first image data and the first text segment; 根据所述匹配数据对所述第一图像数据进行处理以生成多个第二图像数据,其中所述第二图像数据中与所述第一文本段匹配的文字信息具有第一展示效果;以及Processing the first image data according to the matching data to generate a plurality of second image data, wherein the text information in the second image data that matches the first text segment has a first display effect; and 根据所述第二图像数据生成第一视频数据。The first video data is generated according to the second image data. 一种视频生成方法,其特征在于,包括:A video generation method, characterized in that it comprises: 接收用户输入的至少一个第一图像数据和至少一个第一文本段;Receiving at least one first image data and at least one first text segment input by a user; 对第一图像数据进行文字分析处理以获取所述第一图像数据中包含的文字信息;Performing text analysis processing on the first image data to obtain text information contained in the first image data; 确定所述第一图像数据的文字信息与所述第一文本段的匹配数据;Determining the matching data between the text information of the first image data and the first text segment; 向所述用户展示所述匹配数据;Showing the matching data to the user; 接收用户输入的针对所述匹配数据的指示数据,其中所述指示数据至少包括针对所述匹配数据的第一展示效果的指令信息;Receiving instruction data for the matching data input by a user, where the instruction data includes at least instruction information for the first display effect of the matching data; 根据所述指示数据对所述第一图像数据进行处理以生成多个第二图像数据,其中所述第二图像数据中与所述第一文本段匹配的文字信息具有所述第一展示效果;以及Processing the first image data according to the instruction data to generate a plurality of second image data, wherein the text information matching the first text segment in the second image data has the first display effect; as well as 根据所述第二图像数据生成第一视频数据。The first video data is generated according to the second image data. 一种视频生成装置,其特征在于,包括:A video generating device, characterized in that it comprises: 获取组件,所述获取组件用于获取至少一个第一图像数据和至少一个第一文本段;An acquiring component, the acquiring component used to acquire at least one first image data and at least one first text segment; 分析组件,所述分析组件用于对第一图像数据进行文字分析处理以获取所述第一图像数据中包含的文字信息;An analysis component, which is used to perform text analysis processing on the first image data to obtain text information contained in the first image data; 匹配组件,所述匹配组件用于确定所述第一图像数据的文字信息与所述第一文本段的匹配数据;A matching component, the matching component is used to determine the text information of the first image data and the matching data of the first text segment; 图像数据生成组件,所述图像数据生成组件用于根据所述匹配数据对所述第一图像数据进行处理以生成多个第二图像数据,其中所述第二图像数据中与所述第一文本段匹配的文字信息具有第一展示效果;以及An image data generation component, the image data generation component is used to process the first image data according to the matching data to generate a plurality of second image data, wherein the second image data and the first text The matched text information has the first display effect; and 视频数据生成组件,所述视频数据生成组件用于根据所述多个第二图像数据生成第一视频数据。The video data generating component is configured to generate first video data according to the plurality of second image data. 一种视频生成装置,其特征在于,包括:A video generating device, characterized in that it comprises: 图像数据获取组件,所述图像数据获取组件用于获取至少一个第一图像数据;An image data acquisition component, the image data acquisition component being used to acquire at least one piece of first image data; 分析组件,所述分析组件用于对第一图像数据进行文字分析处理以获取所述第一图像数据中包含的文字信息;An analysis component, which is used to perform text analysis processing on the first image data to obtain text information contained in the first image data; 文本段获取组件,所述文本段获取组件用于将所述文字信息输入到搜索引擎,以获取至少一个第一文本段;A text segment acquisition component, which is used to input the text information into a search engine to acquire at least one first text segment; 匹配组件,所述匹配组件用于确定所述第一图像数据的文字信息与所述第一文本段的匹配数据;A matching component, the matching component is used to determine the text information of the first image data and the matching data of the first text segment; 图像数据生成组件,所述图像数据生成组件用于根据所述匹配数据对所述第一图像 数据进行处理以生成多个第二图像数据,其中所述第二图像数据中与所述第一文本段匹配的文字信息具有第一展示效果;以及An image data generation component, the image data generation component is used to process the first image data according to the matching data to generate a plurality of second image data, wherein the second image data and the first text The matched text information has the first display effect; and 视频数据生成组件,所述视频数据生成组件用于根据所述多个第二图像数据生成第一视频数据。The video data generating component is configured to generate first video data according to the plurality of second image data. 一种视频生成装置,其特征在于,包括:A video generating device, characterized in that it comprises: 接收组件,所述接收组件用于接收用户输入的至少一个第一图像数据和至少一个第一文本段;A receiving component configured to receive at least one first image data and at least one first text segment input by a user; 分析组件,所述分析组件用于对第一图像数据进行文字分析处理以获取所述第一图像数据中包含的文字信息;An analysis component, which is used to perform text analysis processing on the first image data to obtain text information contained in the first image data; 匹配组件,所述匹配组件用于确定所述第一图像数据的文字信息与所述第一文本段的匹配数据;A matching component, the matching component is used to determine the text information of the first image data and the matching data of the first text segment; 展示组件,所述展示组件用于向所述用户展示所述匹配数据,并且A display component for displaying the matching data to the user, and 所述接收组件进一步用于接收用户输入的针对所述匹配数据的指示数据,其中所述指示数据至少包括针对所述匹配数据的第一展示效果的指令信息;The receiving component is further configured to receive instruction data for the matching data input by a user, wherein the instruction data includes at least instruction information for the first display effect of the matching data; 所述视频生成装置进一步包括:图像数据生成组件,所述图像数据生成组件用于根据所述指示数据对所述第一图像数据进行处理以生成多个第二图像数据,其中所述第二图像数据中与所述第一文本段匹配的文字信息具有所述第一展示效果;以及The video generating device further includes: an image data generating component configured to process the first image data according to the instruction data to generate a plurality of second image data, wherein the second image The text information in the data that matches the first text segment has the first display effect; and 视频数据生成组件,所述视频数据生成组件用于根据所述第二图像数据生成第一视频数据。The video data generating component is configured to generate first video data according to the second image data. 一种电子设备,包括:An electronic device including: 处理单元;以及Processing unit; and 存储器,耦合至所述处理单元并且包含存储于其上的指令,所述指令在由所述处理单元执行时使所述设备执行动作,所述动作包括:A memory, coupled to the processing unit and containing instructions stored thereon, which when executed by the processing unit causes the device to perform actions, the actions including: 获取至少一个第一图像数据;Acquiring at least one first image data; 对第一图像数据进行文字分析处理以获取所述第一图像数据中包含的文字信息;Performing text analysis processing on the first image data to obtain text information contained in the first image data; 获取至少一个第一文本段;Obtain at least one first text segment; 确定所述第一图像数据的文字信息与所述第一文本段的匹配数据;Determining the matching data between the text information of the first image data and the first text segment; 根据所述匹配数据对所述第一图像数据进行处理以生成多个第二图像数据,其中所述第二图像数据中与所述第一文本段匹配的文字信息具有第一展示效果;以及Processing the first image data according to the matching data to generate a plurality of second image data, wherein the text information in the second image data that matches the first text segment has a first display effect; and 根据所述多个第二图像数据生成第一视频数据。The first video data is generated according to the plurality of second image data. 一种计算机可读存储介质,在所述计算机可读存储介质上存储有指令,所述指令包括:A computer-readable storage medium having instructions stored on the computer-readable storage medium, the instructions including: 获取至少一个第一图像数据;Acquiring at least one first image data; 对第一图像数据进行文字分析处理以获取所述第一图像数据中包含的文字信息;Performing text analysis processing on the first image data to obtain text information contained in the first image data; 获取至少一个第一文本段;Obtain at least one first text segment; 确定所述第一图像数据的文字信息与所述第一文本段的匹配数据;Determining the matching data between the text information of the first image data and the first text segment; 根据所述匹配数据对所述第一图像数据进行处理以生成多个第二图像数据,其中所述第二图像数据中与所述第一文本段匹配的文字信息具有第一展示效果;以及Processing the first image data according to the matching data to generate a plurality of second image data, wherein the text information in the second image data that matches the first text segment has a first display effect; and 根据所述多个第二图像数据生成第一视频数据。The first video data is generated according to the plurality of second image data.
PCT/CN2020/141204 2019-12-31 2020-12-30 Video generating method and apparatus, electronic device, and computer readable storage medium Ceased WO2021136334A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911412228.0 2019-12-31
CN201911412228.0A CN113132781B (en) 2019-12-31 2019-12-31 Video generation method and apparatus, electronic device, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
WO2021136334A1 true WO2021136334A1 (en) 2021-07-08

Family

ID=76686533

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/141204 Ceased WO2021136334A1 (en) 2019-12-31 2020-12-30 Video generating method and apparatus, electronic device, and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN113132781B (en)
WO (1) WO2021136334A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114222196A (en) * 2022-01-04 2022-03-22 阿里巴巴新加坡控股有限公司 A method, device, and electronic device for generating a short video of plot commentary
CN115580758A (en) * 2022-10-12 2023-01-06 中国平安人寿保险股份有限公司 Video content generation method and device, electronic equipment and storage medium
WO2026056580A1 (en) * 2024-09-10 2026-03-19 荣耀终端股份有限公司 Video generation method and electronic device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116304146B (en) * 2023-05-22 2023-10-20 荣耀终端有限公司 Image processing method and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120321223A1 (en) * 2011-06-20 2012-12-20 Fujifilm Corporation Image processing apparatus, image processing method, and image processing program
CN102915549A (en) * 2011-08-05 2013-02-06 联想(北京)有限公司 Image file processing method and device
CN104965921A (en) * 2015-07-10 2015-10-07 陈包容 Information matching method
CN107071554A (en) * 2017-01-16 2017-08-18 腾讯科技(深圳)有限公司 Method for recognizing semantics and device
CN110489674A (en) * 2019-07-02 2019-11-22 百度在线网络技术(北京)有限公司 Page processing method, device and equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943839A (en) * 2017-10-30 2018-04-20 百度在线网络技术(北京)有限公司 Method, apparatus, equipment and storage medium based on picture and word generation video
CN107885430B (en) * 2017-11-07 2020-07-24 Oppo广东移动通信有限公司 Audio playing method and device, storage medium and electronic equipment
CN109614537A (en) * 2018-12-06 2019-04-12 北京百度网讯科技有限公司 Method, apparatus, device and storage medium for generating video

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120321223A1 (en) * 2011-06-20 2012-12-20 Fujifilm Corporation Image processing apparatus, image processing method, and image processing program
CN102915549A (en) * 2011-08-05 2013-02-06 联想(北京)有限公司 Image file processing method and device
CN104965921A (en) * 2015-07-10 2015-10-07 陈包容 Information matching method
CN107071554A (en) * 2017-01-16 2017-08-18 腾讯科技(深圳)有限公司 Method for recognizing semantics and device
CN110489674A (en) * 2019-07-02 2019-11-22 百度在线网络技术(北京)有限公司 Page processing method, device and equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114222196A (en) * 2022-01-04 2022-03-22 阿里巴巴新加坡控股有限公司 A method, device, and electronic device for generating a short video of plot commentary
CN115580758A (en) * 2022-10-12 2023-01-06 中国平安人寿保险股份有限公司 Video content generation method and device, electronic equipment and storage medium
WO2026056580A1 (en) * 2024-09-10 2026-03-19 荣耀终端股份有限公司 Video generation method and electronic device

Also Published As

Publication number Publication date
CN113132781B (en) 2023-04-18
CN113132781A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
US12406672B2 (en) Systems and methods for live broadcasting of context-aware transcription and/or other elements related to conversations and/or speeches
US12483683B2 (en) Interactive information processing method, device and medium
US11350178B2 (en) Content providing server, content providing terminal and content providing method
KR101909807B1 (en) Method and apparatus for inputting information
CN108847214B (en) Voice processing method, client, device, terminal, server and storage medium
WO2021136334A1 (en) Video generating method and apparatus, electronic device, and computer readable storage medium
US20060173859A1 (en) Apparatus and method for extracting context and providing information based on context in multimedia communication system
US11024316B1 (en) Systems and methods for capturing, processing, and rendering one or more context-aware moment-associating elements
CN113821690B (en) Data processing method, apparatus, electronic device and storage medium
CN114494951B (en) Video processing method, device, electronic equipment and storage medium
CN106021496A (en) Video search method and video search device
CN104657074A (en) A method, device and mobile terminal for realizing recording
CN111128183B (en) Speech recognition method, apparatus and medium
US12574592B2 (en) Video processing method and apparatus, device and storage medium
CN113886612A (en) A kind of multimedia browsing method, apparatus, equipment and medium
CN102855317A (en) Multimode indexing method and system based on demonstration video
CN112291614A (en) Video generation method and device
CN118338072A (en) Video editing method, device, equipment, medium and product based on large model
CN113312516A (en) Video processing method and related device
CN112562687A (en) Audio and video processing method and device, recording pen and storage medium
KR102703767B1 (en) System for providing generative artificial intelligence based music making service using photo
CN109376145A (en) Establishment method, establishment device and storage medium of film and television dialogue database
CN117174092B (en) Mobile corpus transcription method and device based on voiceprint recognition and multi-modal analysis
CN119364098A (en) Short video timeline slicing method and device
CN111160051A (en) Data processing method, device, electronic device and storage medium

Legal Events

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

Ref document number: 20909528

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20909528

Country of ref document: EP

Kind code of ref document: A1