CN115633177A - Dynamic picture processing method, device, equipment and medium - Google Patents

Dynamic picture processing method, device, equipment and medium Download PDF

Info

Publication number
CN115633177A
CN115633177A CN202211375723.0A CN202211375723A CN115633177A CN 115633177 A CN115633177 A CN 115633177A CN 202211375723 A CN202211375723 A CN 202211375723A CN 115633177 A CN115633177 A CN 115633177A
Authority
CN
China
Prior art keywords
picture
frame
dynamic
pictures
target
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.)
Pending
Application number
CN202211375723.0A
Other languages
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.)
Shenzhen Xunlei Network Technology Co Ltd
Original Assignee
Shenzhen Xunlei Network Technology Co 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 Shenzhen Xunlei Network Technology Co Ltd filed Critical Shenzhen Xunlei Network Technology Co Ltd
Priority to CN202211375723.0A priority Critical patent/CN115633177A/en
Publication of CN115633177A publication Critical patent/CN115633177A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/172Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a picture, frame or field
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/20Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video object coding
    • H04N19/27Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video object coding involving both synthetic and natural picture components, e.g. synthetic natural hybrid coding [SNHC]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application discloses a method, a device, equipment and a medium for processing dynamic pictures, which comprise the following steps: obtaining a transparent picture; respectively carrying out synthesis operation on a non-first frame picture of the dynamic picture to be processed and the transparent picture to obtain a corresponding target dynamic picture; and presetting the target dynamic picture frame by frame. Therefore, before the preset processing of the dynamic pictures frame by frame, the non-first frame picture is respectively combined with the transparent picture, so that the information integrity of each frame of picture can be guaranteed, errors during the frame-by-frame processing are avoided, and the processed picture can keep the animation effect of the original picture.

Description

Dynamic picture processing method, device, equipment and medium
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a method, an apparatus, a device, and a medium for processing a dynamic image.
Background
At present, a processing scheme for a dynamic picture is only to process a first frame of the dynamic picture, so that the dynamic picture is changed into a static picture after being processed, because the dynamic picture compresses the same pixels of multiple frames of pictures in order to reduce the storage volume of the pictures, after the frames of the dynamic picture are disassembled, the information of other frames of pictures is incomplete except for the first frame of picture, and if the pictures are processed frame by frame, errors can occur.
Disclosure of Invention
In view of this, an object of the present application is to provide a method, an apparatus, a device, and a medium for processing a dynamic picture, which can ensure the integrity of information of each frame of picture, thereby avoiding errors occurring during frame-by-frame processing and ensuring that the processed picture retains the animation effect of an original picture. The specific scheme is as follows:
in a first aspect, the present application discloses a method for processing a dynamic picture, including:
obtaining a transparent picture;
respectively carrying out synthesis operation on the non-first frame picture of the dynamic picture to be processed and the transparent picture to obtain a corresponding target dynamic picture;
and presetting the target dynamic picture frame by frame.
Optionally, the preset processing on the target dynamic picture frame by frame includes:
and carrying out frame-by-frame scaling processing on the target dynamic picture.
Optionally, the to-be-processed dynamic picture includes a plurality of dynamic pictures, and performing preset processing on the target dynamic picture frame by frame includes:
and performing frame-by-frame synthesis processing on a plurality of target dynamic pictures corresponding to the plurality of dynamic pictures.
Optionally, before performing frame-by-frame synthesis processing on the multiple target dynamic pictures corresponding to the multiple dynamic pictures, the method further includes:
determining a dynamic picture to be zoomed from a plurality of target dynamic pictures; the dynamic pictures to be zoomed are one or more dynamic pictures in the target dynamic pictures;
and zooming the dynamic picture to be zoomed into a target size frame by frame.
Optionally, the performing, frame by frame, a synthesizing process on the plurality of target dynamic pictures corresponding to the plurality of dynamic pictures includes:
if the sizes of the target dynamic pictures are not consistent, determining a standard dynamic picture from the target dynamic pictures, and determining the pixel coordinates of a corresponding frame picture of each frame picture in the non-standard dynamic picture based on the pixel coordinates of each frame picture in the standard dynamic picture to obtain the synthetic coordinates of each frame picture in the non-standard dynamic picture;
and carrying out frame-by-frame synthesis processing on the non-standard dynamic picture and the standard dynamic picture based on the synthesis coordinates.
Optionally, the method further includes:
if the frame numbers of the plurality of dynamic pictures are not consistent, performing frame extraction on the first dynamic picture to obtain a dynamic picture with the frame number consistent with that of the second dynamic picture;
the first dynamic picture is the dynamic picture with the lowest non-frame number in the plurality of dynamic pictures, and the second dynamic picture is the dynamic picture with the lowest frame number in the plurality of dynamic pictures.
Optionally, the method further includes:
if the playing time delays of the plurality of dynamic pictures are inconsistent, modifying the playing time delay of the first dynamic picture according to the playing time delay of the second dynamic picture;
the first dynamic picture is a dynamic picture with the lowest non-frame number in the plurality of dynamic pictures, and the second dynamic picture is a dynamic picture with the lowest frame number in the plurality of dynamic pictures.
In a second aspect, the present application discloses a motion picture processing apparatus, comprising:
the transparent picture acquisition module is used for acquiring a transparent picture;
the transparent picture synthesis module is used for respectively carrying out synthesis operation on a non-first frame picture of the dynamic picture to be processed and the transparent picture to obtain a corresponding target dynamic picture;
and the picture presetting processing module is used for presetting the target dynamic picture frame by frame.
In a third aspect, the present application discloses an electronic device comprising a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the above-mentioned motion picture processing method.
In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the aforementioned dynamic picture processing method.
Therefore, the method and the device for processing the target dynamic picture acquire the transparent picture, then synthesize the non-first frame picture of the dynamic picture to be processed with the transparent picture respectively to obtain the corresponding target dynamic picture, and finally preset the target dynamic picture frame by frame. That is, according to the method and the device, before the preset processing of the dynamic picture frame by frame, the non-first frame picture is firstly combined with the transparent picture, so that the information integrity of each frame picture can be guaranteed, errors are avoided during the frame-by-frame processing, and the processed picture is guaranteed to keep the animation effect of the original picture.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a dynamic picture processing method disclosed in the present application;
FIG. 2 is a schematic diagram of a specific video scaling process disclosed in the present application;
FIG. 3 is a schematic diagram of a motion picture synthesis process disclosed in the present application;
FIG. 4 is a schematic diagram illustrating the synthesis of two specific target motion pictures according to the present disclosure;
FIG. 5 is a schematic structural diagram of a motion picture processing apparatus according to the disclosure;
fig. 6 is a block diagram of an electronic device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, a processing scheme for a dynamic picture is only to process a first frame of the dynamic picture, so that the dynamic picture is changed into a static picture after being processed, because the dynamic picture compresses the same pixels of multiple frames of pictures in order to reduce the picture storage volume, after the dynamic picture is subjected to frame splitting, except for a first frame of picture, the information of other frames of pictures is incomplete, and if the pictures are processed frame by frame, errors can occur. Therefore, the dynamic picture processing scheme is provided, and the information integrity of each frame of picture can be guaranteed, so that errors are avoided during frame-by-frame processing, and the processed picture is guaranteed to keep the animation effect of the original picture.
Referring to fig. 1, an embodiment of the present application discloses a method for processing a dynamic picture, including:
step S11: obtaining a transparent picture;
and all the pixels in the transparent picture are transparent pixels. The size of the transparent picture is consistent with the picture size of the dynamic picture to be processed.
Step S12: and respectively carrying out synthesis operation on the non-first frame picture of the dynamic picture to be processed and the transparent picture to obtain a corresponding target dynamic picture.
In an embodiment, if the to-be-processed dynamic picture is a dynamic picture, the non-first frame picture of the dynamic picture is respectively synthesized with the transparent picture to obtain a corresponding target dynamic picture.
In another embodiment, if the to-be-processed dynamic picture includes multiple dynamic pictures, the non-first-frame picture of each dynamic picture is synthesized with the transparent picture to obtain a target dynamic picture corresponding to each dynamic picture. That is, a plurality of target moving pictures are obtained, wherein the plurality is greater than or equal to two.
And firstly, the dynamic picture is subjected to frame removal processing, and then the non-first frame picture and the transparent picture are respectively subjected to synthesis operation to obtain a corresponding target dynamic picture.
It should be noted that, in order to reduce the picture storage volume, the dynamic picture compresses the same pixels of multiple frames of pictures, so that after the dynamic picture is subjected to frame removal, it cannot be guaranteed that the picture size of each frame is the same, in order to make the picture size of each frame the same for subsequent picture processing, the application adopts a transparent picture with a preset size to perform synthesis operation with a non-first frame of picture, in order to reduce the picture storage volume, the dynamic pictures such as GIF, APNG and the like adopt a pixel compression algorithm in the multi-frame picture synthesis, the algorithm is realized by the dynamic picture itself, and the transparent pixels are only filled into the default part of the picture, so that the picture size of each frame is kept consistent. The preset size is the same as the size of the dynamic picture to be processed.
Step S13: and presetting the target dynamic picture frame by frame.
In one embodiment, the target dynamic picture is scaled frame by frame. For example, referring to fig. 2, fig. 2 is a schematic diagram of a specific dynamic image scaling process disclosed in the embodiment of the present application, a dynamic image with a size of 300 × 300 and a total of 30 frames is first split into frames, the frames are synthesized with a transparent image with a size of 300 × 300 frame by frame from the 2 nd frame, then the frames are reduced to 100 × 100 frames, and finally a dynamic image with 100 × 100 and a total of 30 frames is obtained.
In another embodiment, if the to-be-processed moving picture includes a plurality of moving pictures, the target moving pictures corresponding to the plurality of moving pictures are synthesized frame by frame.
For example, as shown in fig. 3, fig. 3 is a schematic diagram of a dynamic picture synthesis process disclosed in the embodiment of the present application, two dynamic pictures of 30 frames are first synthesized with a transparent picture, respectively, where the size of the transparent picture is consistent with that of the original dynamic picture, specifically, a non-first frame picture of each dynamic picture is synthesized with the transparent picture, and then the two dynamic pictures are synthesized frame by frame to obtain a synthesized dynamic picture.
In one embodiment, a dynamic picture to be zoomed may be determined from a plurality of the target dynamic pictures; the dynamic pictures to be zoomed are one or more dynamic pictures in the plurality of target dynamic pictures; and zooming the dynamic picture to be zoomed frame by frame to a target size.
For example, referring to fig. 4, fig. 4 is a schematic diagram illustrating a composite of two specific target motion pictures disclosed in the embodiment of the present application, where the two target motion pictures have a size of 200 × 200 and a size of 500 × 250, and the picture of 500 × 250 is processed to be 500 × 200, so as to make the two target motion pictures more beautiful after being spliced.
In one embodiment, if the sizes of the plurality of target dynamic pictures are not consistent, a standard dynamic picture is determined from the plurality of target dynamic pictures, and the pixel coordinates of a frame picture corresponding to each frame picture in the non-standard dynamic picture are determined based on the pixel coordinates of each frame picture in the standard dynamic picture, so as to obtain the composite coordinates of each frame picture in the non-standard dynamic picture; and carrying out frame-by-frame synthesis processing on the non-standard dynamic picture and the standard dynamic picture based on the synthesis coordinates. For example, the number of the first target dynamic picture is two, the last row of pixels of the first frame picture in the first target dynamic picture are (x 1, y 1), (x 1, y 2) and (x 1, y 3) \8230, the composite coordinates of the first row of the second target dynamic picture are (x 1+ n, y 1), (x 1+ n, y 2) and (x 1+ n, y 3) \8230, and n is the horizontal coordinate distance between two pixel points.
Further, in an embodiment, if the number of frames of the plurality of dynamic pictures is not consistent, performing frame extraction on the first dynamic picture to obtain a dynamic picture with the number of frames consistent with that of the second dynamic picture; the first dynamic picture is a dynamic picture with the lowest non-frame number in the plurality of dynamic pictures, and the second dynamic picture is a dynamic picture with the lowest frame number in the plurality of dynamic pictures.
That is, a plurality of dynamic pictures can be processed into dynamic pictures with consistent frame number between the synthesis operations of the non-first frame picture of the dynamic picture to be processed and the transparent picture.
In one embodiment, if the playing delays of the plurality of dynamic pictures are inconsistent, the playing delay of the first dynamic picture is modified according to the playing delay of the second dynamic picture; the first dynamic picture is a dynamic picture with the lowest non-frame number in the plurality of dynamic pictures, and the second dynamic picture is a dynamic picture with the lowest frame number in the plurality of dynamic pictures. In addition, before the playing delay of the first dynamic picture is modified according to the playing delay of the second dynamic picture, frame extraction operation is carried out on the second dynamic picture, so that the frame number of the second dynamic picture is consistent with that of the first dynamic picture.
It can be understood that the playing delay, i.e., the time interval between two frames of pictures, needs to be processed to be consistent before the composition, for example, if the playing delay of a dynamic picture with a lower frame number in two dynamic pictures is 0.2s, and the playing delay of a dynamic picture with a higher frame number is 0.1s, the frame of the dynamic picture with a higher frame number is extracted first, and then the playing delay is processed to be 0.2s. For example, the playing delay of one motion picture is 0.2 for 25 frames, the playing delay of the other motion picture is 0.1 for 30 frames, the frames of the motion pictures of 30 frames are first extracted into 25 frames, and then the playing delay is processed into 0.2s.
As can be seen, in the embodiment of the present application, a transparent picture is obtained first, then a non-first frame picture of a to-be-processed dynamic picture is synthesized with the transparent picture, respectively, to obtain a corresponding target dynamic picture, and finally, the target dynamic picture is subjected to frame-by-frame preset processing. That is, in the embodiment of the present application, before performing the preset processing frame by frame on the dynamic picture, the non-first frame picture is synthesized with the transparent picture, so that the information integrity of each frame of picture can be ensured, thereby avoiding an error occurring during the frame by frame processing, and ensuring that the processed picture retains the animation effect of the original picture.
Referring to fig. 5, an embodiment of the present application discloses a motion picture processing apparatus, including:
a transparent picture obtaining module 11, configured to obtain a transparent picture;
the transparent picture synthesis module 12 is configured to perform synthesis operation on a non-first frame picture of the to-be-processed dynamic picture and the transparent picture respectively to obtain a corresponding target dynamic picture;
and the picture presetting processing module 13 is configured to perform frame-by-frame presetting processing on the target dynamic picture.
Therefore, in the embodiment of the application, the transparent picture is obtained first, then the non-first frame picture of the dynamic picture to be processed is synthesized with the transparent picture respectively to obtain the corresponding target dynamic picture, and finally the target dynamic picture is subjected to frame-by-frame preset processing. That is, in the embodiment of the present application, before performing the preset processing frame by frame on the dynamic picture, the non-first frame picture is synthesized with the transparent picture, so that the integrity of the information of each frame picture can be ensured, thereby avoiding the occurrence of errors during the frame by frame processing, and ensuring that the processed picture retains the animation effect of the original picture.
In an embodiment, the picture presetting processing module 13 is specifically configured to perform frame-by-frame scaling processing on the target dynamic picture.
In another embodiment, the to-be-processed dynamic pictures include a plurality of dynamic pictures, and the picture pre-setting processing module 13 is specifically configured to perform frame-by-frame synthesis processing on a plurality of target dynamic pictures corresponding to the plurality of dynamic pictures.
Further, the apparatus further comprises: a to-be-zoomed dynamic picture processing module, configured to determine a to-be-zoomed dynamic picture from the multiple target dynamic pictures before the picture preset processing module 13 performs frame-by-frame synthesis processing on the multiple target dynamic pictures corresponding to the multiple dynamic pictures; the dynamic pictures to be zoomed are one or more dynamic pictures in the plurality of target dynamic pictures; and zooming the dynamic picture to be zoomed frame by frame to a target size.
In an embodiment, the picture presetting processing module 13 is configured to determine a standard dynamic picture from the target dynamic pictures if sizes of the target dynamic pictures are not consistent, determine a pixel coordinate of a frame picture corresponding to each frame picture in the non-standard dynamic picture based on a pixel coordinate of each frame picture in the standard dynamic picture, and obtain a synthesized coordinate of each frame picture in the non-standard dynamic picture; and performing frame-by-frame synthesis processing on the non-standard dynamic picture and the standard dynamic picture based on the synthesis coordinates.
In addition, the device also comprises a frame extracting module, which is used for extracting the frame of the first dynamic picture to obtain the dynamic picture with the frame number consistent with the second dynamic picture if the frame numbers of the plurality of dynamic pictures are inconsistent;
the first dynamic picture is a dynamic picture with the lowest non-frame number in the plurality of dynamic pictures, and the second dynamic picture is a dynamic picture with the lowest frame number in the plurality of dynamic pictures.
Further, the device further comprises a playing delay processing module, configured to modify the playing delay of the first dynamic picture according to the playing delay of the second dynamic picture if the playing delays of the multiple dynamic pictures are not consistent;
the first dynamic picture is the dynamic picture with the lowest non-frame number in the plurality of dynamic pictures, and the second dynamic picture is the dynamic picture with the lowest frame number in the plurality of dynamic pictures.
Referring to fig. 6, an embodiment of the present application discloses an electronic device 20, which includes a processor 21 and a memory 22; wherein, the memory 22 is used for storing computer programs; the processor 21 is configured to execute the computer program to implement the following steps:
acquiring a transparent picture; respectively carrying out synthesis operation on the non-first frame picture of the dynamic picture to be processed and the transparent picture to obtain a corresponding target dynamic picture; and presetting the target dynamic picture frame by frame.
Therefore, in the embodiment of the application, the transparent picture is obtained first, then the non-first frame picture of the dynamic picture to be processed is synthesized with the transparent picture respectively to obtain the corresponding target dynamic picture, and finally the target dynamic picture is subjected to frame-by-frame preset processing. That is, in the embodiment of the present application, before performing the preset processing frame by frame on the dynamic picture, the non-first frame picture is synthesized with the transparent picture, so that the integrity of the information of each frame picture can be ensured, thereby avoiding the occurrence of errors during the frame by frame processing, and ensuring that the processed picture retains the animation effect of the original picture.
In this embodiment, when the processor 21 executes the computer subprogram stored in the memory 22, the following steps may be specifically implemented: and carrying out frame-by-frame scaling processing on the target dynamic picture.
In this embodiment, when the processor 21 executes the computer subprogram stored in the memory 22, the following steps may be specifically implemented: the dynamic pictures to be processed comprise a plurality of dynamic pictures, and a plurality of target dynamic pictures corresponding to the dynamic pictures are synthesized frame by frame.
In this embodiment, when the processor 21 executes the computer subprogram stored in the memory 22, the following steps may be specifically implemented: before a plurality of target dynamic pictures corresponding to a plurality of dynamic pictures are subjected to frame-by-frame synthesis processing, determining a dynamic picture to be zoomed from the plurality of target dynamic pictures; the dynamic pictures to be zoomed are one or more dynamic pictures in the plurality of target dynamic pictures; and zooming the dynamic picture to be zoomed frame by frame to a target size.
In this embodiment, when the processor 21 executes the computer subprogram stored in the memory 22, the following steps may be specifically implemented: if the sizes of the target dynamic pictures are not consistent, determining a standard dynamic picture from the target dynamic pictures, and determining the pixel coordinates of a corresponding frame picture of each frame picture in the non-standard dynamic picture based on the pixel coordinates of each frame picture in the standard dynamic picture to obtain the synthetic coordinates of each frame picture in the non-standard dynamic picture; and performing frame-by-frame synthesis processing on the non-standard dynamic picture and the standard dynamic picture based on the synthesis coordinates.
In this embodiment, when the processor 21 executes the computer subprogram stored in the memory 22, the following steps may be specifically implemented: if the frame numbers of the plurality of dynamic pictures are inconsistent, performing frame extraction on the first dynamic picture to obtain a dynamic picture with the frame number consistent with that of the second dynamic picture; the first dynamic picture is a dynamic picture with the lowest non-frame number in the plurality of dynamic pictures, and the second dynamic picture is a dynamic picture with the lowest frame number in the plurality of dynamic pictures.
In this embodiment, when the processor 21 executes the computer subprogram stored in the memory 22, the following steps may be specifically implemented: if the playing time delays of the plurality of dynamic pictures are inconsistent, modifying the playing time delay of the first dynamic picture according to the playing time delay of the second dynamic picture; the first dynamic picture is the dynamic picture with the lowest non-frame number in the plurality of dynamic pictures, and the second dynamic picture is the dynamic picture with the lowest frame number in the plurality of dynamic pictures.
The memory 22 is used as a carrier for resource storage, and may be a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the storage manner may be a transient storage manner or a permanent storage manner.
In addition, the electronic device 20 further includes a power supply 23, a communication interface 24, an input-output interface 25, and a communication bus 26; the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to a specific application requirement, which is not specifically limited herein.
Further, an embodiment of the present application discloses a computer readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the following steps:
obtaining a transparent picture; respectively carrying out synthesis operation on a non-first frame picture of the dynamic picture to be processed and the transparent picture to obtain a corresponding target dynamic picture; and presetting the target dynamic picture frame by frame.
Therefore, in the embodiment of the application, the transparent picture is obtained first, then the non-first frame picture of the dynamic picture to be processed is synthesized with the transparent picture respectively to obtain the corresponding target dynamic picture, and finally the target dynamic picture is subjected to frame-by-frame preset processing. That is, in the embodiment of the present application, before performing the preset processing frame by frame on the dynamic picture, the non-first frame picture is synthesized with the transparent picture, so that the integrity of the information of each frame picture can be ensured, thereby avoiding the occurrence of errors during the frame by frame processing, and ensuring that the processed picture retains the animation effect of the original picture.
In this embodiment, when the processor executes the computer subprogram stored in the computer readable storage medium, the following steps may be specifically implemented: and carrying out frame-by-frame scaling processing on the target dynamic picture.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: the dynamic pictures to be processed comprise a plurality of dynamic pictures, and a plurality of target dynamic pictures corresponding to the dynamic pictures are synthesized frame by frame.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: before a plurality of target dynamic pictures corresponding to a plurality of dynamic pictures are subjected to frame-by-frame synthesis processing, determining a dynamic picture to be zoomed from the plurality of target dynamic pictures; the dynamic pictures to be zoomed are one or more dynamic pictures in the target dynamic pictures; and zooming the dynamic picture to be zoomed into a target size frame by frame.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: if the sizes of the target dynamic pictures are not consistent, determining a standard dynamic picture from the target dynamic pictures, and determining the pixel coordinates of a corresponding frame picture of each frame picture in the non-standard dynamic picture based on the pixel coordinates of each frame picture in the standard dynamic picture to obtain the synthetic coordinates of each frame picture in the non-standard dynamic picture; and performing frame-by-frame synthesis processing on the non-standard dynamic picture and the standard dynamic picture based on the synthesis coordinates.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: if the frame numbers of the plurality of dynamic pictures are not consistent, performing frame extraction on the first dynamic picture to obtain a dynamic picture with the frame number consistent with that of the second dynamic picture; the first dynamic picture is the dynamic picture with the lowest non-frame number in the plurality of dynamic pictures, and the second dynamic picture is the dynamic picture with the lowest frame number in the plurality of dynamic pictures.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: if the playing delays of the plurality of dynamic pictures are not consistent, modifying the playing delay of the first dynamic picture according to the playing delay of the second dynamic picture; the first dynamic picture is the dynamic picture with the lowest non-frame number in the plurality of dynamic pictures, and the second dynamic picture is the dynamic picture with the lowest frame number in the plurality of dynamic pictures.
In the present specification, the embodiments are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same or similar parts between the embodiments are referred to each other. The device disclosed in the embodiment corresponds to the method disclosed in the embodiment, so that the description is simple, and the relevant points can be referred to the description of the method part.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The method, apparatus, device and medium for processing a dynamic image provided by the present application are described in detail above, and specific examples are applied herein to explain the principles and embodiments of the present application, and the description of the above embodiments is only used to help understand the method and core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for processing a moving picture, comprising:
obtaining a transparent picture;
respectively carrying out synthesis operation on a non-first frame picture of the dynamic picture to be processed and the transparent picture to obtain a corresponding target dynamic picture;
and presetting the target dynamic picture frame by frame.
2. The method according to claim 1, wherein said performing a preset process frame by frame on the target moving picture comprises:
and carrying out zooming processing on the target dynamic picture frame by frame.
3. The method according to claim 1, wherein the to-be-processed moving picture includes a plurality of moving pictures, and the performing frame-by-frame preset processing on the target moving picture includes:
and performing frame-by-frame synthesis processing on a plurality of target dynamic pictures corresponding to the plurality of dynamic pictures.
4. The method according to claim 3, wherein before the synthesizing process, frame by frame, of the target moving pictures corresponding to the moving pictures, the method further comprises:
determining a dynamic picture to be zoomed from a plurality of target dynamic pictures; the dynamic pictures to be zoomed are one or more dynamic pictures in the target dynamic pictures;
and zooming the dynamic picture to be zoomed frame by frame to a target size.
5. The method of claim 3, wherein the performing of frame-by-frame synthesis processing on the plurality of target moving pictures corresponding to the plurality of moving pictures comprises:
if the sizes of the target dynamic pictures are not consistent, determining a standard dynamic picture from the target dynamic pictures, and determining the pixel coordinates of a corresponding frame picture of each frame picture in the non-standard dynamic picture based on the pixel coordinates of each frame picture in the standard dynamic picture to obtain the synthetic coordinates of each frame picture in the non-standard dynamic picture;
and carrying out frame-by-frame synthesis processing on the non-standard dynamic picture and the standard dynamic picture based on the synthesis coordinates.
6. The moving picture processing method according to claim 3, further comprising:
if the frame numbers of the plurality of dynamic pictures are not consistent, performing frame extraction on the first dynamic picture to obtain a dynamic picture with the frame number consistent with that of the second dynamic picture;
the first dynamic picture is a dynamic picture with the lowest non-frame number in the plurality of dynamic pictures, and the second dynamic picture is a dynamic picture with the lowest frame number in the plurality of dynamic pictures.
7. The moving picture processing method according to claim 3, further comprising:
if the playing time delays of the plurality of dynamic pictures are inconsistent, modifying the playing time delay of the first dynamic picture according to the playing time delay of the second dynamic picture;
the first dynamic picture is the dynamic picture with the lowest non-frame number in the plurality of dynamic pictures, and the second dynamic picture is the dynamic picture with the lowest frame number in the plurality of dynamic pictures.
8. A moving picture processing apparatus, comprising:
the transparent picture acquisition module is used for acquiring a transparent picture; the transparent picture synthesis module is used for respectively carrying out synthesis operation on a non-first frame picture of the dynamic picture to be processed and the transparent picture to obtain a corresponding target dynamic picture;
and the picture presetting processing module is used for presetting the target dynamic picture frame by frame.
9. An electronic device comprising a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the moving picture processing method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program is for implementing a moving picture processing method according to any one of claims 1 to 7 when executed by a processor.
CN202211375723.0A 2022-11-04 2022-11-04 Dynamic picture processing method, device, equipment and medium Pending CN115633177A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211375723.0A CN115633177A (en) 2022-11-04 2022-11-04 Dynamic picture processing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211375723.0A CN115633177A (en) 2022-11-04 2022-11-04 Dynamic picture processing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115633177A true CN115633177A (en) 2023-01-20

Family

ID=84908253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211375723.0A Pending CN115633177A (en) 2022-11-04 2022-11-04 Dynamic picture processing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115633177A (en)

Similar Documents

Publication Publication Date Title
CN108235055B (en) Method and device for realizing transparent video in AR scene
CN112132836A (en) Video image clipping method and device, electronic equipment and storage medium
CN113225606B (en) Video barrage processing method and device
CN104811797A (en) Video processing method and mobile terminal
CN112714357A (en) Video playing method, video playing device, electronic equipment and storage medium
CN107564084B (en) Method and device for synthesizing motion picture and storage equipment
US10951870B2 (en) Digital image conversion method and apparatus, storage medium, and device
CN110572713B (en) Transcoding method and processing terminal for adaptive video bandwidth ratio
US20110157465A1 (en) Look up table update method
CN115633177A (en) Dynamic picture processing method, device, equipment and medium
CN111045576B (en) Display control method, display control device, terminal equipment and electronic equipment
CN114245027B (en) Video data hybrid processing method, system, electronic equipment and storage medium
US9036909B2 (en) Pyramid collapse color interpolation
CN110519530B (en) Hardware-based picture-in-picture display method and device
CN111372048B (en) Image pre-monitoring processing equipment and method thereof, and field programmable logic gate array
US20180225846A1 (en) Method of converting data format
CN115037885A (en) Image amplification method, device, equipment, medium and display of liquid crystal screen
CN114693894A (en) Method, system and device for converting pictures into building blocks in virtual world
CN113379768A (en) Image processing method, image processing device, storage medium and computer equipment
CN104899915A (en) Picture processing method and terminal
CN110677577A (en) Image processing method and device
CN112073686B (en) Image display method and device and electronic equipment
CN114727051B (en) Media resource transmission device, system and method
CN110837575B (en) Method and device for generating transmission characteristic information of video image
US7362337B2 (en) Method and apparatus for adjusting size of image

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination