Audio and video data generation method, device, equipment and computer readable medium
By acquiring and transforming preset images to generate audio and video data, it solves the problems of equipment failure and large time consumption when acquiring vehicle monitoring audio and video data in the existing technology, and achieves fast and simplified audio and video data generation.
Patent Information
- Application Number
- CN202010938191.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-09
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-09-09
AI Technical Summary
When obtaining vehicle monitoring audio and video data, existing technology requires building a real vehicle environment, which leads to equipment failure problems and a long time to obtain audio and video data.
By obtaining audio and preset images, transforming them to generate transformed images, and generating videos based on the images, the audio and video are finally synthesized to generate audio and video data, avoiding dependence on the real vehicle environment and multiple devices.
It simplifies the generation process of audio and video data, reduces the risk of equipment failure and acquisition time, saves video processing steps, and achieves rapid generation of audio and video data.
Smart Images

Figure CN114245134B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to methods, devices, equipment, and computer-readable media for generating audio and video data. Background Art
[0002] With the development of wireless network construction and video technology, the operation of obtaining audio and video data of vehicle monitoring using wireless networks has become a very convenient industry application. The relevant vehicle monitoring audio and video data acquisition method requires the construction of a real vehicle environment, the use of a variety of hardware devices to collect the vehicle monitoring audio and video data stream, and then to capture packets from the vehicle monitoring video data stream to intercept the required audio and video stream. Finally, the obtained audio and video stream is saved or used.
[0003] However, when the above method is used to obtain audio and video data, the following technical problems often occur:
[0004] First, obtaining audio and video data requires the use of multiple devices to build a real vehicle monitoring environment, which may lead to equipment failure and other problems;
[0005] Second, the images included in the audio and video data in the audio and video data stream need to be detected and then acquired, so generating the audio and video data consumes a lot of time. Summary of the invention
[0006] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.
[0007] Some embodiments of the present disclosure propose methods, devices, equipment, and computer-readable media for generating audio and video data to solve one or more of the technical problems mentioned in the above background technology section.
[0008] In a first aspect, some embodiments of the present disclosure provide a method for generating audio and video data, the method comprising: acquiring audio and a preset image; transforming the preset image to generate a transformed image; generating a video based on the transformed image; and synthesizing the audio with the video to generate audio and video data.
[0009] In a second aspect, some embodiments of the present disclosure provide an audio and video data generating device, the device comprising: an acquisition unit, configured to acquire audio and a preset image; a first generation unit, configured to transform the above-mentioned preset image to generate a transformed image; a second generation unit, configured to generate a video based on the above-mentioned transformed image; and a synthesis unit, configured to synthesize the above-mentioned audio with the above-mentioned video to generate audio and video data.
[0010] In a third aspect, some embodiments of the present disclosure provide a device, comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in the first aspect.
[0011] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein the program implements the method described in the first aspect when executed by a processor.
[0012] The above-mentioned embodiments of the present disclosure have the following beneficial effects: First, audio and preset images are obtained. Since only arbitrary audio and a preset image are obtained, the audio and preset image used to generate audio and video data can be simply obtained. Then, the preset image is transformed to generate a transformed image. Transforming the image can be to transform the preset image into a desired image, so that the transformed image is prepared for the subsequent generation of the video. Then, the transformed image can be used to generate a video. Since the transformed image is the desired image processed by the transformation, the video generated according to the transformed image can also inherit the characteristics of the transformed desired image, so the generated video does not need to be processed again according to the required video characteristics, and can be used directly. As a result, the step of processing the entire video is saved, and thus, the equipment for processing the video is not required. Finally, the audio and video are synthesized to generate audio and video data. Since the audio and video data can be quickly generated by a preset image and audio, it is no longer necessary to intercept the required audio and video data from a large number of video streams generated by the real vehicle environment. Furthermore, it is not necessary to build a real vehicle monitoring environment and a variety of equipment required to build a real environment. This avoids problems such as equipment failure caused by using multiple devices to build a real vehicle monitoring environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0014] Figure 1 is a schematic diagram of an application scenario of the method for generating audio and video data according to some embodiments of the present disclosure;
[0015] Figure 2 is a flow chart of some embodiments of the method for generating audio and video data according to the present disclosure;
[0016] Figure 3 is a schematic diagram of the structure of some embodiments of the audio and video data generating device according to the present disclosure;
[0017] Figure 4 It is a structural schematic diagram of an electronic device according to the audio and video data generating method disclosed in the present invention. DETAILED DESCRIPTION
[0018] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0019] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0020] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0021] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0022] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0023] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0024] Figure 1 It is a schematic diagram of an application scenario of the method for generating audio and video data according to some embodiments of the present disclosure.
[0025] exist Figure 1 In the application scenario, the computing device 101 may first obtain the audio 102 and the preset image 103. Then, the computing device 101 may transform the preset image 103 to generate a transformed image 104. In addition, based on the transformed image 104, a video 105 is generated. Finally, the audio 102 and the video 105 are synthesized to generate audio and video data 106. Optionally, the computing device 101 may store the audio and video data 106 and send it to the service terminal 107.
[0026] It should be noted that the computing device 101 can be hardware or software. When the computing device is hardware, it can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device. When the computing device is embodied as software, it can be installed in the hardware devices listed above. It can be implemented as multiple software or software modules for providing distributed services, or as a single software or software module. No specific limitation is made here.
[0027] It should be understood that Figure 1 The number of computing devices in the embodiment is only illustrative. Any number of computing devices may be provided according to implementation requirements.
[0028] Continue to refer Figure 2 , shows a process 200 of some embodiments of the method for generating audio and video data according to the present disclosure. The method for generating audio and video data comprises the following steps:
[0029] Step 201, obtaining audio and a preset image.
[0030] In some embodiments, the execution subject of the audio and video data generation method (for example Figure 1 The computing device 101 shown in the figure can obtain audio and preset images through a wired connection or a wireless connection. The above audio can be audio of any content. The above preset image can be an image of the vehicle's surrounding environment taken by a preset vehicle-mounted monitoring system.
[0031] Step 202: transform the preset image to generate a transformed image.
[0032] In some embodiments, based on the preset image obtained in step 201, the execution entity may transform the preset image in various ways to generate a transformed image.
[0033] As an example, the image transformation may be to rotate the preset image to obtain a rotationally transformed image. For example, the rotation angle may be 90 degrees. Then, the rotationally transformed image becomes an image rotated 90 degrees clockwise.
[0034] In some optional implementations of some embodiments, the execution subject transforms the preset image to generate a transformed image, which may include the following steps:
[0035] The first step is to determine the scheduled timestamp.
[0036] As an example, the predetermined timestamp may be a preset time point, for example: “2020.02.20”.
[0037] The second step is to perform a superposition transformation on the predetermined timestamp and the preset image to generate a transformed image. For example, the predetermined timestamp can be superimposed on the preset image to generate a transformed image.
[0038] In some optional implementations of some embodiments, the execution subject superimposes and transforms the predetermined timestamp with the preset image to generate a transformed image, which may include the following steps:
[0039] The first step is to determine the coordinate value of the predetermined transformation position in the preset image, wherein the coordinate value may be a predetermined position coordinate value selected from the preset image.
[0040] As an example, the coordinate value of the predetermined transformation position may be: (10, 20).
[0041] The second step is to use the position coordinate value to superimpose the predetermined timestamp onto the preset image to generate a transformed image. Specifically, the leftmost end of the predetermined timestamp image is superimposed onto the preset image according to the preset transformation position to generate a transformed image.
[0042] Step 203: Generate a video based on the transformed image.
[0043] In some embodiments, the execution subject of the audio and video data generation method may perform a secondary transformation on the transformed image to generate a plurality of secondary transformed images, and then fuse the plurality of secondary transformed images to generate a video.
[0044] In some optional implementations of some embodiments, the execution subject generates a video based on the transformed image, which may include the following steps:
[0045] The first step is to generate a predicted image sequence based on the above transformed images.
[0046] As an example, the transformed image can be rotated clockwise in a plane. The image is saved once every rotation angle. Then, multiple rotated images can be obtained as a prediction image sequence.
[0047] The second step is to fuse the transformed image with each predicted image in the predicted image sequence to generate a video.
[0048] As an example, the transformed image is merged with the prediction images in the prediction image sequence according to the order in which the prediction images in the prediction image sequence are generated, so as to generate a video format that can continuously play images, thereby obtaining a video.
[0049] In some optional implementations of some embodiments, the execution subject generates a predicted image sequence based on the transformed image, which may include the following steps:
[0050] In the first step, the transformed image is segmented to generate a segmented image sequence. Specifically, segmenting the transformed image may be dividing the image into a plurality of sub-images of the same size.
[0051] As an example, each sub-image may have multiple pixel blocks. The segmented images are segmented to generate a segmented image sequence in a segmentation order.
[0052] In the second step, each segmented image in the segmented image sequence is encoded to generate an encoded image, thereby obtaining an encoded image sequence.
[0053] As an example, encoding each segmented image may be sequentially encoding each pixel block in each segmented image. Finally, a sequence of encoded images is obtained.
[0054] The third step is to generate a predicted image sequence based on the encoded image sequence.
[0055] As an example, pixel prediction can be performed based on each pixel block of each encoded image, the pixel value can be changed to generate a corresponding set of predicted pixel points, and then the predicted pixel point set can be used to generate a predicted image.
[0056] In some optional implementations of some embodiments, the execution subject generates a predicted image sequence based on the encoded image sequence, which may include the following steps:
[0057] First, determine the number of pixels in the encoded image and the pixel value corresponding to each pixel. For example, the number of pixels in the encoded image may be 100. The pixel value of the first pixel in the encoded image may be 55.
[0058] In the second step, the pixel values corresponding to each pixel point in each encoded image in the encoded image sequence are predicted and transformed using the following formula to generate a predicted pixel value sequence, thereby obtaining a predicted pixel value sequence set:
[0059]
[0060] Where A represents the predicted pixel value sequence.
[0061] d represents the predicted pixel value in the predicted pixel value sequence.
[0062] n represents the sequence number of the pixel value in the predicted pixel value sequence.
[0063] d n Represents the nth pixel value in the predicted pixel value sequence.
[0064] p represents the pixel value of a pixel in the encoded image.
[0065] l represents the lth pixel in the encoded image.
[0066] p l Represents the pixel value of the lth pixel in the encoded image.
[0067] M represents the number of pixels in the encoded image.
[0068] p min Indicates the minimum pixel value corresponding to each pixel in the encoded image.
[0069] The predicted variable representing the nth pixel value in the predicted pixel value sequence. Specifically, the value range of the predicted variable of the pixel value in the predicted pixel value sequence may be 1 to 4.
[0070] In the third step, each predicted pixel value in each predicted pixel value sequence in the predicted pixel value sequence set is combined to generate a predicted image, thereby obtaining a predicted image sequence.
[0071] As an example, the predicted pixel values in the predicted pixel value sequence may be arranged and combined in sequence from left to right and from top to bottom according to the generation order corresponding to the predicted pixel points in each predicted pixel point set to generate a predicted image.
[0072] The above formula, as an inventive point of an embodiment of the present disclosure, solves the second technical problem mentioned in the background technology, that is, it is necessary to detect and then acquire the image included in the audio and video data in the audio and video data stream, so generating audio and video data consumes a lot of time.
[0073] First, since the maximum value of a pixel value can be 255, the value range of the predictor variable of each pixel value in the predicted pixel value sequence in the above formula can be: 1 to 4. Then, the predictor variable of each pixel value in the predicted pixel value set will change with the value range of the pixel value. Therefore, the range of pixel value generation can be limited. Then, by limiting the generation range of the predicted pixel value, the overall change between the generated predicted image and the encoded image can also be within a controllable range. Therefore, the generated predicted image does not need to be detected. The steps of image detection are reduced. Since the predicted image is generated by adding a predictor variable to the pixel value of each pixel point in the encoded image, and the predictor variable can be quickly generated according to the pixel value within a controllable range. Therefore, the required predicted image can be quickly obtained. Thus, a large amount of time consumed in generating audio and video can be reduced.
[0074] Step 204, synthesize the audio and the video to generate audio and video data.
[0075] In some embodiments, the execution subject may fuse the audio with the video to generate audio and video data. Specifically, the audio may be fused into the video at a frame rate to generate audio and video data.
[0076] In some optional implementations of some embodiments, the execution subject synthesizes the audio and the video to generate audio and video data, which may include the following steps:
[0077] The first step is to determine the number of frames and frame rate of the above video.
[0078] As an example, the number of frames may be the number of images played per second in a video, and the frame rate may be the frequency at which the video is played on a display.
[0079] In the second step, based on the frame number and frame rate of the video, the audio is segmented to generate the audio to be synthesized.
[0080] As an example, the number of video frames may be divided by the frame rate to obtain the duration of the video, and then the audio may be segmented to obtain audio to be synthesized of the same duration.
[0081] The third step is to merge the audio to be synthesized with the video to generate audio and video data.
[0082] As an example, the audio to be synthesized of the same duration is merged into the video to obtain data that can be played simultaneously, thereby generating audio and video data. The audio and video data may be data that meets the format requirements of JT1078 (Ministry of Transport Standard 1078 Protocol).
[0083] Optionally, the above audio and video data are stored and sent to a service terminal.
[0084] In some embodiments, the execution subject may store the audio and video data and then send it to the server. The audio and video data may be stored in a variety of formats.
[0085] As an example, the format in which the audio and video data is stored may be a text format, a binary format, a string format, etc.
[0086] The above-mentioned embodiments of the present disclosure have the following beneficial effects: First, audio and preset images are obtained. Since only arbitrary audio and a preset image are obtained, the audio and preset image used to generate audio and video data can be simply obtained. Then, the preset image is transformed to generate a transformed image. Transforming the image can be to transform the preset image into a desired image, so that the transformed image is prepared for the subsequent generation of the video. Then, the transformed image can be used to generate a video. Since the transformed image is the desired image processed by the transformation, the video generated according to the transformed image can also inherit the characteristics of the transformed desired image, so the generated video does not need to be processed again according to the required video characteristics, and can be used directly. As a result, the step of processing the entire video is saved, and thus, no equipment for processing the video is required. Finally, the audio and the video are synthesized to generate audio and video data. Since the audio and video data can be quickly generated by a preset image and audio, it is no longer necessary to intercept the required audio and video data from a large number of video streams generated by a real vehicle environment. Furthermore, it is not necessary to build a real vehicle monitoring environment and the various equipment required to build the environment. This avoids problems such as equipment failure caused by using multiple devices to build a real vehicle monitoring environment.
[0087] Further references Figure 3 As an implementation of the above methods in the above figures, the present disclosure provides some embodiments of an audio and video data generating device, and these device embodiments are Figure 2 Corresponding to the above method embodiments, the device can be specifically applied to various electronic devices.
[0088] like Figure 3As shown, the audio and video data generating apparatus 300 of some embodiments includes: an acquisition unit 301, a first generation unit 302, a second generation unit 303, and a synthesis unit 304. The acquisition unit 301 is configured to acquire audio and a preset image; the first generation unit 302 is configured to transform the preset image to generate a transformed image; the second generation unit 303 is configured to generate a video based on the transformed image; and the synthesis unit 304 is configured to synthesize the audio with the video to generate audio and video data.
[0089] Reference below Figure 4 , which shows an electronic device (eg, Figure 1 Schematic diagram of the structure of the computing device 101)400. Figure 4 The server shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0090] like Figure 4 As shown, the electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 404 is also connected to the bus 404.
[0091] Typically, the following devices may be connected to the I / O interface 404: input devices 406 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 408 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 409. The communication devices 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The electronic device 400 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 4 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0092] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.
[0093] It should be noted that the computer-readable medium in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0094] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0095] The computer-readable medium may be included in the device, or may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains audio and a preset image; transforms the preset image to generate a transformed image; generates a video based on the transformed image; and synthesizes the audio with the video to generate audio and video data.
[0096] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0097] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0098] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor, for example, may be described as: a processor includes an acquisition unit, a first generation unit, a second generation unit, and a third generation unit. The names of these units do not constitute limitations on the units themselves in certain circumstances, for example, the acquisition unit may also be described as a "unit for acquiring audio and preset images".
[0099] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), etc.
[0100] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure to form a technical method.
Claims
1. A method for generating audio and video data, comprising: Get audio and preset images; Transforming the preset image to generate a transformed image; Based on the transformed image, generating a video; Synthesizing the audio and the video to generate audio and video data; Wherein, transforming the preset image to generate a transformed image includes: determining a predetermined timestamp; Superimposing and transforming the predetermined timestamp and the preset image to generate a transformed image; The step of performing a superposition transformation on the predetermined timestamp and the preset image to generate a transformed image includes: Determining coordinate values of a predetermined transformation position in the preset image; Using the coordinate values, superimposing the predetermined timestamp onto the preset image to generate a transformed image; The step of generating a video based on the transformed image includes: Based on the transformed image, generating a predicted image sequence; Fusion of the transformed image with each predicted image in the predicted image sequence to generate a video; The step of synthesizing the audio and the video to generate audio and video data includes: Determine the number of frames and frame rate of the video; Based on the number of frames and the frame rate of the video, segment the audio to generate audio to be synthesized; Combining the audio to be synthesized with the video to generate audio and video data; The step of generating a predicted image sequence based on the transformed image comprises: Segmenting the transformed image to generate a segmented image sequence; Encoding each segmented image in the segmented image sequence to generate an encoded image, thereby obtaining an encoded image sequence; Based on the encoded image sequence, generating a predicted image sequence; The step of generating a predicted image sequence based on the encoded image sequence includes: Determine the number of each pixel point in the encoded image and the pixel value corresponding to each pixel point; The following formula is used to perform a predictive transformation on the pixel values corresponding to each pixel point in each encoded image in the encoded image sequence to generate a predicted pixel value sequence, thereby obtaining a predicted pixel value sequence set: , in, Represents the predicted pixel value sequence; represents a predicted pixel value in a predicted pixel value sequence; Represents the sequence number of the pixel value in the predicted pixel value sequence; Represents the first pixel in the predicted pixel value sequence pixel value; Represents the pixel value of a pixel in the encoded image; Indicates the first pixels; Indicates the first The pixel value of a pixel; Represents the number of each pixel in the encoded image; Indicates the minimum pixel value corresponding to each pixel in the encoded image; Represents the first pixel in the predicted pixel value sequence Predictor variables for pixel values; The predicted pixel values in each predicted pixel value sequence in the predicted pixel value sequence set are combined to generate a predicted image, thereby obtaining a predicted image sequence.
2. The method according to claim 1, wherein: The method further comprises: The audio and video data are stored and sent to a service terminal.
3. An audio and video data generating device, applied to the method according to claim 1, comprising: An acquisition unit, configured to acquire audio and a preset image; A first generating unit, configured to transform the preset image to generate a transformed image; A second generating unit is configured to generate a video based on the transformed image; The synthesis unit is configured to synthesize the audio and the video to generate audio and video data.
4. An electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1-2.
Citation Information
Patent Citations
Mobile-phone PDA direct broadcasting system based on android
CN102595139A
Real-time correction method and system for self-learning multipath image fusion
CN107085842A
