CN108282612B - Video processing method, computer storage medium and terminal - Google Patents

Video processing method, computer storage medium and terminal Download PDF

Info

Publication number
CN108282612B
CN108282612B CN201810032471.9A CN201810032471A CN108282612B CN 108282612 B CN108282612 B CN 108282612B CN 201810032471 A CN201810032471 A CN 201810032471A CN 108282612 B CN108282612 B CN 108282612B
Authority
CN
China
Prior art keywords
ghost
picture
video
pictures
image
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.)
Active
Application number
CN201810032471.9A
Other languages
Chinese (zh)
Other versions
CN108282612A (en
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.)
Bigo Technology Pte Ltd
Original Assignee
Guangzhou Baiguoyuan Information 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 Guangzhou Baiguoyuan Information Technology Co Ltd filed Critical Guangzhou Baiguoyuan Information Technology Co Ltd
Priority to CN201810032471.9A priority Critical patent/CN108282612B/en
Publication of CN108282612A publication Critical patent/CN108282612A/en
Application granted granted Critical
Publication of CN108282612B publication Critical patent/CN108282612B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2621Cameras specially adapted for the electronic generation of special effects during image pickup, e.g. digital cameras, camcorders, video cameras having integrated special effects capability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/272Means for inserting a foreground image in a background image, i.e. inlay, outlay

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Studio Circuits (AREA)

Abstract

The invention relates to the field of software application, in particular to a video processing method, a computer storage medium and a terminal, wherein the method comprises the following steps: acquiring a video to be processed; identifying an image to be processed from the video, wherein the image to be processed comprises at least two continuous frames of pictures; acquiring a plurality of frames of pictures from the at least two continuous frames of pictures as ghost pictures; and synthesizing the ghost image and the image to generate a video with the ghost. According to the invention, a plurality of frames of pictures of the image to be processed in the video are used as the ghost pictures and are synthesized with the image to be processed to generate the video with the ghost effect, the video effect is more vivid and cool, professional video editing software is not needed, and the video with the better visual effect is simply and quickly manufactured.

Description

Video processing method, computer storage medium and terminal
Technical Field
The invention relates to the field of software application, in particular to a video processing method, a computer storage medium and a terminal.
Background
With the rapid development of internet technology, more and more people share their own works with other social users by using social applications and platforms based on the internet, especially, the continuous deepening of the concept of User Generated Content (UGC) and the development of streaming media technology, people are willing to record video works through a mobile terminal and then upload the video works to the applications and platforms to share with other people, videos published by different users are displayed on the applications in a centralized manner, other users can browse and watch the video works through the applications, in order to make interesting videos, the applications can provide simple video filters for users to make different video special effects, such as black and white filters and old movie filters, while the filters provided by the current applications are often only used for processing video colors, rarely combined with the actions of main bodies in the videos, and are difficult to simply and simply make on the mobile terminal, And rapidly making a video with better visual effect.
Disclosure of Invention
In order to overcome the technical problems, in particular to the problem that the prior art cannot simply and quickly manufacture a video with better visual effect, the following technical scheme is provided:
in a first aspect, the present invention provides a video processing method, including:
acquiring a video to be processed;
identifying an image to be processed from the video, wherein the image to be processed comprises at least two continuous frames of pictures;
acquiring a plurality of frames of pictures from the at least two continuous frames of pictures as ghost pictures;
and synthesizing the ghost image and the image to generate a video with the ghost.
Further, the synthesizing the ghost picture with the image to generate the video with the ghost includes:
acquiring a ghost image, and taking the ghost image as a bottom layer;
acquiring a picture of a rear frame of the ghost picture, and taking the picture of the rear frame as an upper layer;
and arranging the pictures of the following frames above the ghost pictures, and synthesizing the video frames with the ghost to generate the video with the ghost.
Optionally, the acquiring a picture of a frame behind the ghost picture includes:
acquiring a picture of a 1 st frame behind the ghost picture; or
Acquiring a picture with a preset frame number behind the ghost picture; or
And acquiring pictures of all the frames behind the ghost picture.
Further, the acquiring the ghost image and using the ghost image as a bottom layer includes:
acquiring a ghost picture, setting the transparency of the ghost picture to a preset value, and taking the ghost picture with the transparency set as a bottom layer.
Further, before the setting the transparency of the ghost picture to the preset value, the method further includes:
and acquiring the characteristics of the image to be processed, and acquiring the preset value corresponding to the transparency of the ghost image according to the characteristics.
Further, before the setting the transparency of the ghost picture to the preset value, the method further includes:
and confirming the change condition of the picture of the subsequent frame relative to the ghost picture, and acquiring the preset value corresponding to the transparency of the ghost picture according to the change condition.
Further, before acquiring a plurality of frames of pictures from the at least two consecutive frames of pictures as the ghost picture, the method further includes:
acquiring the characteristics of the video, and setting frame taking frequency of interval frame taking according to the characteristics of the video; or
Acquiring performance information and application requirements of the terminal, and setting frame taking frequency of interval frame taking according to the performance information and the application requirements of the terminal;
the acquiring a plurality of frames of pictures as a ghost picture from the at least two continuous frames of pictures comprises:
and acquiring a plurality of frames of pictures from the at least two continuous pictures at the frame taking frequency of the interval frame taking to serve as ghost pictures.
Further, the video to be processed is a video shot by the terminal; after the generating the video with the ghost, the method further comprises:
transmitting the generated video to a content server through an application.
In a second aspect, the present invention also provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the video processing method described above.
In a third aspect, the present invention also provides a terminal comprising one or more processors, a memory, and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to perform the video processing method described above.
Compared with the prior art, the invention has the following beneficial effects:
according to the invention, a plurality of frames of pictures of the image to be processed in the video are used as the ghost pictures and are synthesized with the image to be processed to generate the video with the ghost effect, the video effect is more vivid and cool, professional video editing software is not needed, and the video with the better visual effect is simply and quickly manufactured.
In addition, the invention outputs the ghost videos with special effects of ghost at different degrees by setting the frame taking frequency of different interval frame taking and/or the transparency of different ghost pictures, thereby meeting the use requirements of different users and making a more natural ghost effect.
Moreover, the invention also determines the frame taking frequency of the alternate frame taking mode of the ghost picture according to the performance information of the terminal, when the image processing performance of the terminal is higher, the frame taking frequency of the alternate frame taking of the ghost picture is set to be smaller so as to synthesize a ghost video with more obvious ghost effect, and when the image processing performance of the terminal is lower, the frame taking frequency of the alternate frame taking of the ghost picture is set to be larger so as to synthesize the ghost video with the ghost effect more quickly, thereby effectively utilizing the terminal resources and meeting the requirements of different users.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flow chart illustrating a video processing method according to an embodiment of the present invention;
FIG. 2 is a diagram of a frame included in an image to be processed according to the present invention;
fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, or operations, but do not preclude the presence or addition of one or more other features, integers, steps, operations, or groups thereof.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
It will be appreciated by those skilled in the art that the terms "application," "application program," "application software," and the like, as used herein, are intended to refer to a computer software product electronically-adapted to be electronically-constructed, from a collection of computer instructions and associated data resources, in accordance with the principles of the present invention. Unless otherwise specified, such nomenclature is not itself limited by the programming language class, level, or operating system or platform upon which it depends. Of course, such concepts are not limited to any type of terminal.
In one embodiment, the present invention provides a video processing method, as shown in fig. 1, comprising:
s100: and acquiring a video to be processed.
S200: and identifying an image to be processed from the video, wherein the image to be processed comprises at least two continuous frames of pictures.
The application scene of the embodiment is a video application, the application provides a function of quickly making a special ghost effect video, when a user records a video by using the application, the application firstly guides the user to record a background picture, then guides the user to record a main picture after the background picture is determined, and after the video is recorded, the user selects special ghost effect processing on the video, wherein the video is the video to be processed. The application of this embodiment then acquires the video to be processed, and then identifies an image to be processed, that is, the main picture from the video to be processed, where the main picture changes with the time of video recording, and the image to be processed of this embodiment includes at least two continuous frames of pictures.
Specifically, in this embodiment, the video to be processed is obtained; one way to identify the image to be processed from the video is to: acquiring a video of a pure background to be processed; and identifying an image appearing on the solid background from the video by taking the solid background as a reference, and taking the image as an image to be processed.
When recording a video, a user firstly records a solid background, then records a main picture under the solid background, and uses the solid background as a reference to subtract the components of the solid background recorded at the beginning from the video in which the main picture is recorded under the solid background, thereby identifying the main picture in the video, namely identifying the image to be processed in the video to be processed.
The video to be processed is obtained; another implementation of identifying an image to be processed from the video is as follows: acquiring a video of a static background to be processed; and with the static background as a reference, identifying an image appearing on the static background from the video, and taking the image as an image to be processed.
When recording a video, a user firstly records a static background, then records a main body picture under the static background, the static background is not changed, and the same components of the static background recorded at the beginning are subtracted from the video in which the main body picture is recorded under the static background, so that the main body picture in the video is identified, namely, an image to be processed in the video to be processed is identified.
The image appearing on the background is used as the image to be processed, one frame of the image is used for carrying out the ghost on the images of other frames, compared with a mode of carrying out the ghost on the whole image by dynamic pixels in the whole image, the processing difficulty can be reduced, and the ghost effect can better show the layering sense.
S300: and acquiring a plurality of frames of pictures from the at least two continuous frames of pictures as ghost pictures.
In this embodiment, in order to produce a video with a ghost effect, after an image to be processed is identified, a plurality of frames of pictures are obtained from at least two consecutive frames of pictures included in the image to be processed as ghost pictures for subsequent processing. As shown in fig. 2, the identified image to be processed includes 8 consecutive frames of pictures including frames 1,2,3,4,5,6,7, and 8, and several frames of pictures are selected from the 8 frames of pictures as ghost pictures, for example, frame 2, frame 5, and frame 6 are selected as ghost pictures.
In an embodiment of obtaining a ghost image in this embodiment, a plurality of frames of images are obtained as the ghost image from at least two consecutive frames of images in an interval frame taking manner, as shown in fig. 2, an identified image to be processed includes 8 frames of consecutive images including frames 1,2,3,4,5,6,7,8, and if the ghost image is selected in an interval frame 1 manner, the frames 1, 3, 5, and 7 are ghost images; if the ghost image is selected in the mode of 2 frames at intervals, the frame 1, the frame 4 and the frame 7 are ghost images, and ghost videos with special effects of ghost images of different degrees are output by setting different frame taking frequencies of interval frame taking.
S400: and synthesizing the ghost image and the image to generate a video with the ghost.
After the ghost image is obtained, in order to make the ghost special effect, the ghost image is synthesized with the image to be processed, and each frame of ghost image is a frame of image obtained from the image to be processed. For example, the frames 1, 3, 5 and 7 in fig. 2 are ghost pictures, which can be synthesized with the image to be processed of other frames besides the self, such as the frame 1 and the frame 2, the frame 3 and the frame 4, the frame 5 and the frame 6, the frame 7 and the frame 8, which are synthesized to include the frame 1, the frame 12 of the frame 1 and the frame 2, the frame 3, the frame 34 of the frame 3 and the frame 4, the frame 5, the frame 56 of the frame 5 and the frame 6, the frame 7 and the frame 78 of the frame 8, and then the frames are synthesized into the video, so as to generate the video with the ghost effect.
According to the invention, a plurality of frames of pictures of the image to be processed in the video are used as the ghost pictures and are synthesized with the image to be processed to generate the video with the ghost effect, the video effect is more vivid and cool, professional video editing software is not needed, and the video with the better visual effect is simply and quickly manufactured.
In an embodiment of the present invention, the synthesizing the ghost picture with the image to generate a video with ghost includes:
s401: acquiring a ghost image, and taking the ghost image as a bottom layer;
s402: acquiring a picture of a rear frame of the ghost picture, and taking the picture of the rear frame as an upper layer;
s403: and arranging the pictures of the following frames above the ghost pictures, and synthesizing the video frames with the ghost to generate the video with the ghost.
In the process of synthesizing the ghost image and the identified image, taking the example of synthesizing the ghost image and the image of one frame, first obtaining one frame of ghost image, then the ghost image is taken as a bottom image, the image of the frame behind the frame of ghost image is obtained, the picture of the following frame is also one frame of picture in the image to be processed, the picture of the following frame is taken as an upper layer, then the pictures of the following frames are arranged above the ghost picture for synthesis to synthesize a video frame with the ghost, for example, selecting frame 1 as a ghost picture, selecting frame 2 as a picture of a following frame, placing frame 1 on the bottom layer and frame 2 on the top layer, synthesizing a frame 12 with a ghost effect, and then all the acquired ghost images are synthesized with the image of the next frame according to the mode to obtain all the video frames, and finally, the video with the ghost is generated.
Further, in the above embodiment, the acquiring a picture of a frame following the ghost picture includes:
acquiring a picture of a 1 st frame behind the ghost picture; or
Acquiring a picture with a preset frame number behind the ghost picture; or
And acquiring pictures of all the frames behind the ghost picture.
In the embodiment, in order to make different degrees of ghost special effects, in one embodiment, after obtaining a ghost picture, a picture of the following 1 st frame of the ghost picture is taken as a picture of the following frame to be synthesized with the ghost picture, so as to obtain a video frame with the ghost effect; in order to make the ghost effect more obvious, in another embodiment, after a ghost image is acquired, all images with preset frame numbers behind the ghost image are taken as the images of the following frames to be synthesized with the ghost image, if the frame 1 is the ghost image, all the image frames 2,3 and 4 of the frame 3 behind the frame 1 are taken as the images of the following frames, and then the frame 1 is respectively synthesized with the frame 2, the frame 3 and the frame 4 to obtain a video frame with the ghost effect; similarly, in order to obtain the maximum ghost effect, in another embodiment, after the ghost picture is acquired, all the pictures of the number of frames behind the ghost picture are combined with the ghost picture as the pictures of the following frame, so as to obtain the video frame with the ghost effect.
Further, in an embodiment of the present invention, the acquiring the ghost image and using the ghost image as a bottom layer includes:
acquiring a ghost picture, setting the transparency of the ghost picture to a preset value, and taking the ghost picture with the transparency set as a bottom layer.
Because the ghost picture is synthesized as the bottom layer and the picture of the next frame, in order to reduce the influence of the ghost picture on the content information of the picture of the next frame, after the ghost picture is obtained, the transparency of the ghost picture is set to a preset value, generally, the transparency of the ghost picture is set to be less than 50%, then, the ghost picture with the transparency set is used as the bottom layer, the picture of the next frame is used as the upper layer, the ghost picture with the transparency set is synthesized with the picture of the next frame at the moment, the ghost picture influences the content information of the picture of the next frame to a lower degree, the ghost picture is used as the secondary content information, the picture of the next frame is used as the main content information, the synthesized video frame has a layered sense, and the synthesized video has a ghost visual effect.
Further, in an embodiment of the present invention, before the setting the transparency of the ghost picture to the preset value, the method further includes:
and acquiring the characteristics of the image to be processed, and acquiring a preset value corresponding to the transparency of the ghost image according to the characteristics.
In this embodiment, preset values of transparency of ghost pictures configured for different main pictures are different, and first, characteristics of the image to be processed, that is, what the main picture is, are identified, and preset values of transparency of the ghost pictures corresponding to different main pictures are different, for example, when the main picture is a person, a preset value corresponding to the transparency of the ghost picture is obtained by 40%, when the main picture is an animal, since a moving speed of the animal is not easily controlled, a preset value corresponding to the transparency of the ghost picture is obtained by 30%, and when the main picture is an article without a vital sign, a preset value corresponding to the transparency of the ghost picture is obtained by 25%, so that ghost effects of different degrees of different main pictures are expressed.
Further, in an embodiment of the present invention, before the setting the transparency of the ghost picture to the preset value, the method further includes:
and confirming the change condition of the picture of the subsequent frame relative to the ghost picture, and acquiring a preset value corresponding to the transparency of the ghost picture according to the change condition.
In the foregoing embodiment, the transparency of all the ghost pictures is set to be the same preset value, in this embodiment, the preset values of the transparency of different ghost pictures are self-defined and adjusted according to the change situations of the ghost pictures and the pictures of the following frames, after the ghost pictures are obtained, the change situations of the pictures of the following frames relative to the ghost pictures are confirmed, preferably, after the ghost pictures are selected, the pictures of the following frames are the pictures of the first frame behind the ghost pictures, according to an implementation manner of this embodiment, the change situations of the pictures of the following frames and the ghost pictures are calculated according to SSIM (Structural Similarity Index), when the Structural Similarity is higher, it is indicated that the pictures of the two frames are closer, when the Structural Similarity is lower, it is indicated that the picture difference between the two frames is larger, then the preset value of the transparency of the ghost picture is obtained according to the change situations, the preset value of the transparency of the ghost picture is lower when the variation is larger, and the preset value of the transparency of the ghost picture is higher when the variation is smaller, so that the synthesized ghost video frame is more natural. In another mode of this embodiment, if the ratio of the change area of the picture of the subsequent frame to the change area of the ghost picture is greater than the predetermined threshold, a first preset value is obtained, and the first preset value is used as a preset value of the transparency of the ghost picture; and if the change area ratio of the picture of the subsequent frame relative to the ghost picture is less than or equal to a preset threshold value, acquiring a second preset value, taking the second preset value as a preset value of the transparency of the ghost picture, wherein the first preset value is less than the second preset value.
Before acquiring a plurality of frames of pictures as a ghost picture from at least two consecutive frames of pictures in a manner of taking frames at intervals, an embodiment of the present invention further includes:
acquiring the characteristics of the video, and setting frame taking frequency of interval frame taking according to the characteristics of the video; or
And acquiring the performance information of the terminal, and setting frame taking frequency for interval frame taking according to the performance information of the terminal.
In this embodiment, before a plurality of frames of pictures are obtained from the at least two consecutive frames of pictures as the ghost pictures, characteristics of a video are obtained, the characteristics of the video include a video recording frame rate, a video recording duration, a video resolution and the like, and then different frame taking frequencies are obtained according to different video characteristics, for example, when the video recording frame rate is 30fps, the frame taking frequency of the ghost pictures for frame taking at intervals is set to be 1 frame, and when the video recording frequency is 60fps, the frame taking frequency of the ghost pictures for frame taking at intervals is set to be 2 frames; similarly, the frame-taking frequency of the interval frame-taking of the ghost pictures can be set according to other characteristics of the video, so that video frames with different ghost degrees are synthesized, and further ghost videos with different ghost degrees are generated.
Further, the higher the frame taking frequency is, the more video frames need to be synthesized by the application, the larger the calculation amount required by the terminal is, considering the factor of the terminal performance, the frame taking frequency of the interval frame taking of the ghost image can be determined by obtaining the image processing performance information of the terminal, before obtaining a plurality of frame images as the ghost image from the at least two continuous images, the image processing performance information of the terminal is obtained, when the image processing performance of the terminal is higher, the frame taking frequency of the interval frame taking of the ghost image is set to be smaller so as to synthesize the ghost image with more obvious ghost effect, and when the image processing performance of the terminal is lower, the frame taking frequency of the interval frame taking of the ghost image is set to be larger so as to synthesize the ghost image with the ghost effect more quickly, so that the terminal resources are effectively utilized, and the requirements of different users are met.
In this embodiment of the present invention, the video to be processed is a video shot by the terminal, and further, after the video with a ghost is generated, the method further includes: transmitting the generated video to a content server through an application. After a user records a video on an application and generates a video with a ghost, the video with the ghost is sent to an application server, so that the made video can be shared by more users through an application platform.
In another embodiment, the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the video processing method described in the above embodiments. The computer-readable storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random AcceSS memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a form readable by a device (e.g., a computer, a cellular phone), and may be a read-only memory, a magnetic or optical disk, or the like.
The computer-readable storage medium provided by the embodiment of the invention can realize the acquisition of a video to be processed; identifying an image to be processed from the video, wherein the image to be processed comprises at least two continuous frames of pictures; acquiring a plurality of frames of pictures from the at least two continuous frames of pictures as ghost pictures; and synthesizing the ghost image and the image to generate a video with the ghost. A plurality of frames of pictures of the image to be processed in the video are used as ghost pictures and are synthesized with the image to be processed to generate the video with the ghost effect, the video effect is more vivid and cool, professional video editing software is not needed, and the video with the better visual effect is simply and quickly manufactured. In addition, the computer-readable storage medium provided by the invention can also realize that the ghost videos with different degrees of ghost special effects are output by setting the frame taking frequency of different interval frame taking and/or the transparency of different ghost pictures, thereby meeting the use requirements of different users and making a more natural ghost effect. In addition, the computer-readable storage medium provided by the invention can also determine the frame taking frequency of the interval frame taking mode of the ghost picture according to the performance information of the terminal, effectively utilize the terminal resources and meet the requirements of different users.
The computer-readable storage medium provided in the embodiments of the present invention can implement the embodiments of the video processing method, and for specific function implementation, reference is made to the description in the embodiments of the method, which is not repeated herein.
In addition, in another embodiment, the present invention further provides a terminal, as shown in fig. 3, the terminal may include one or more processors 301, further include a memory 302, a WiFi (wireless fidelity) circuit 303, a RF (Radio Frequency) circuit 304, an audio circuit 305, a sensor 306, an output device 307, an input device 304, and a power supply 309, where the processor 301 is a control center of the terminal and is connected to the above portions by using various interfaces and lines. Those skilled in the art will appreciate that the terminal structure shown in fig. 3 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The WiFi circuit 303 may provide wireless local area network or internet access for the user; which may include an antenna, a WiFi module, etc. RF circuitry 304 may receive and transmit information, or the reception and transmission of signals during a call; which may include an antenna, at least one amplifier, a tuner, one or more oscillators, couplers, duplexers, and so forth. The audio circuit 305 may convert the received audio data into an electrical signal to be transmitted to the speaker, or convert a sound signal collected by the microphone into audio data to be sent to the processor 301 for processing; which may be provided with a speaker, microphone, earphone interface, etc. The sensor 306 can be used for sensing external signals and sending the signals to the processor 301 for processing; which may include motion sensors, light sensors, etc. The output device 307 may be used to display various signals; the Display panel may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), and the like. The input device 304 may be used to input information such as numbers and characters; which may be physical keys, touch panels, etc. The power supply 309 can supply power to each part of the terminal and is logically connected with the processor 309 through a power management system; which may include one or more components of a dc or ac power source, a charging system, a power status indicator, etc. Memory 302 may be used to store software programs and modules; it may be a computer readable storage medium, specifically a hard disk, a flash memory, etc. The processor is a control center of the terminal, and performs various functions of the terminal and processes terminal data by operating or executing software programs and/or modules stored in the memory 302 and calling data stored in the memory 302.
As one embodiment, a terminal includes: one or more processors 301, a memory 302, one or more applications, wherein the one or more applications are stored in the memory 302 and configured to be executed by the one or more processors 301, the one or more programs configured to perform the video processing method described in the above embodiments.
The terminal provided by the embodiment of the invention can acquire the video to be processed; identifying an image to be processed from the video, wherein the image to be processed comprises at least two continuous frames of pictures; acquiring a plurality of frames of pictures from the at least two continuous frames of pictures as ghost pictures; and synthesizing the ghost image and the image to generate a video with the ghost. A plurality of frames of pictures of the image to be processed in the video are used as ghost pictures and are synthesized with the image to be processed to generate the video with the ghost effect, the video effect is more vivid and cool, professional video editing software is not needed, and the video with the better visual effect is simply and quickly manufactured. In addition, the terminal provided by the invention can output the ghost videos with different degrees of ghost special effects by setting different frame taking frequencies of frame taking at intervals and/or different transparencies of ghost pictures, thereby meeting the use requirements of different users and making a more natural ghost effect. In addition, the terminal provided by the invention can also determine the frame taking frequency of the interval frame taking mode of the ghost picture according to the performance information of the terminal, effectively utilize the terminal resources and meet the requirements of different users.
The terminal provided in the embodiment of the present invention can implement the embodiment of the video processing method provided above, and for specific function implementation, reference is made to the description in the embodiment of the method, which is not described herein again.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A video processing method, comprising:
acquiring a video to be processed; the video to be processed comprises a background picture and a main picture in the background picture;
identifying an image to be processed from the video, wherein the image to be processed is the main picture, and the image to be processed comprises at least two continuous frames of pictures;
acquiring a plurality of frames of pictures from the at least two continuous frames of pictures as ghost pictures;
synthesizing the ghost picture with the image to generate a video with a ghost, the method comprising the following steps: and synthesizing each acquired ghost image frame and the image of the frame behind the acquired ghost image frame to obtain a plurality of synthesized video frames, and generating a video with a special ghost effect according to the plurality of synthesized video frames.
2. The method of claim 1, wherein said combining said ghost picture with said image to generate a video with ghost comprises:
acquiring a ghost image, and taking the ghost image as a bottom layer;
acquiring a picture of a rear frame of the ghost picture, and taking the picture of the rear frame as an upper layer;
and arranging the pictures of the following frames above the ghost pictures, and synthesizing the video frames with the ghost to generate the video with the ghost.
3. The method of claim 2, wherein said obtaining pictures of a frame following the overlay picture comprises:
acquiring a picture of a 1 st frame behind the ghost picture; or
Acquiring a picture with a preset frame number behind the ghost picture; or
And acquiring pictures of all the frames behind the ghost picture.
4. The method of claim 2, wherein the obtaining the overlay picture with the overlay picture as a base layer comprises:
acquiring a ghost picture, setting the transparency of the ghost picture to a preset value, and taking the ghost picture with the transparency set as a bottom layer.
5. The method of claim 4, wherein before the setting the transparency of the ghost picture to the preset value, the method further comprises:
and acquiring the characteristics of the image to be processed, and acquiring the preset value corresponding to the transparency of the ghost image according to the characteristics.
6. The method of claim 4, wherein before the setting the transparency of the ghost picture to the preset value, the method further comprises:
and confirming the change condition of the picture of the subsequent frame relative to the ghost picture, and acquiring the preset value corresponding to the transparency of the ghost picture according to the change condition.
7. The method according to claim 1, wherein before obtaining several frames of pictures as the ghost picture from the at least two consecutive pictures, further comprising:
acquiring the characteristics of the video, and setting frame taking frequency of interval frame taking according to the characteristics of the video; or
Acquiring performance information and application requirements of the terminal, and setting frame taking frequency of interval frame taking according to the performance information and the application requirements of the terminal;
the acquiring a plurality of frames of pictures as a ghost picture from the at least two continuous frames of pictures comprises:
and acquiring a plurality of frames of pictures from the at least two continuous pictures at the frame taking frequency of the interval frame taking to serve as ghost pictures.
8. The method according to claim 1, wherein the video to be processed is a video shot by the terminal; after the generating the video with the ghost, the method further comprises:
transmitting the generated video to a content server through an application.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the video processing method of any one of claims 1 to 8.
10. A terminal, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform the video processing method of any of claims 1 to 8.
CN201810032471.9A 2018-01-12 2018-01-12 Video processing method, computer storage medium and terminal Active CN108282612B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810032471.9A CN108282612B (en) 2018-01-12 2018-01-12 Video processing method, computer storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810032471.9A CN108282612B (en) 2018-01-12 2018-01-12 Video processing method, computer storage medium and terminal

Publications (2)

Publication Number Publication Date
CN108282612A CN108282612A (en) 2018-07-13
CN108282612B true CN108282612B (en) 2021-11-19

Family

ID=62803531

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810032471.9A Active CN108282612B (en) 2018-01-12 2018-01-12 Video processing method, computer storage medium and terminal

Country Status (1)

Country Link
CN (1) CN108282612B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110913118B (en) * 2018-09-17 2021-12-17 腾讯数码(天津)有限公司 Video processing method, device and storage medium
CN109525886B (en) * 2018-11-08 2020-07-07 北京微播视界科技有限公司 Method, device and equipment for controlling video playing speed and storage medium
CN110930478B (en) * 2019-11-19 2023-12-01 广东明创软件科技有限公司 Method, device, terminal equipment and storage medium for realizing ghost effect
CN111246196B (en) * 2020-01-19 2021-05-07 北京字节跳动网络技术有限公司 Video processing method and device, electronic equipment and computer readable storage medium
CN113313788A (en) * 2020-02-26 2021-08-27 北京小米移动软件有限公司 Image processing method and apparatus, electronic device, and computer-readable storage medium
CN111327840A (en) * 2020-02-27 2020-06-23 努比亚技术有限公司 Multi-frame special-effect video acquisition method, terminal and computer readable storage medium
CN111432291B (en) * 2020-03-20 2021-11-05 稿定(厦门)科技有限公司 View updating method and device under video segmentation frame taking scene
CN112087582A (en) * 2020-09-14 2020-12-15 努比亚技术有限公司 Special effect video generation method, mobile terminal and computer readable storage medium
CN112135045A (en) * 2020-09-23 2020-12-25 努比亚技术有限公司 Video processing method, mobile terminal and computer storage medium
CN112887515B (en) * 2021-01-26 2023-09-19 维沃移动通信有限公司 Video generation method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1756313A (en) * 2004-09-30 2006-04-05 中国科学院计算技术研究所 The panorama composing method of sport video
CN101120589A (en) * 2005-01-18 2008-02-06 松下电器产业株式会社 Image synthesis device
CN103475826A (en) * 2013-09-27 2013-12-25 深圳市中视典数字科技有限公司 Video matting and synthesis method
WO2014205460A2 (en) * 2013-05-02 2014-12-24 Waterston Entertainment (Pty) Ltd System and method for incorporating digital footage into a digital cinematographic template
CN104811797A (en) * 2015-04-15 2015-07-29 广东欧珀移动通信有限公司 Video processing method and mobile terminal
CN105554361A (en) * 2014-10-28 2016-05-04 中兴通讯股份有限公司 Processing method and system of dynamic video shooting
CN105827946A (en) * 2015-11-26 2016-08-03 维沃移动通信有限公司 Panoramic image generating method, panoramic image playing method and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1756313A (en) * 2004-09-30 2006-04-05 中国科学院计算技术研究所 The panorama composing method of sport video
CN101120589A (en) * 2005-01-18 2008-02-06 松下电器产业株式会社 Image synthesis device
WO2014205460A2 (en) * 2013-05-02 2014-12-24 Waterston Entertainment (Pty) Ltd System and method for incorporating digital footage into a digital cinematographic template
CN103475826A (en) * 2013-09-27 2013-12-25 深圳市中视典数字科技有限公司 Video matting and synthesis method
CN105554361A (en) * 2014-10-28 2016-05-04 中兴通讯股份有限公司 Processing method and system of dynamic video shooting
CN104811797A (en) * 2015-04-15 2015-07-29 广东欧珀移动通信有限公司 Video processing method and mobile terminal
CN105827946A (en) * 2015-11-26 2016-08-03 维沃移动通信有限公司 Panoramic image generating method, panoramic image playing method and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《监控视频摘要生成技术的研究与实现》;周小龙;《中国优秀硕士学位论文全文数据库》;20120229;正文第9-12,31-32,45,61页 *

Also Published As

Publication number Publication date
CN108282612A (en) 2018-07-13

Similar Documents

Publication Publication Date Title
CN108282612B (en) Video processing method, computer storage medium and terminal
CN105430295B (en) Image processing apparatus and method
CN111641828B (en) Video processing method and device, storage medium and electronic equipment
US11475243B2 (en) Training method and device for an image enhancement model, and storage medium
CN107566730B (en) A kind of panoramic picture image pickup method and mobile terminal
CN109168026A (en) Instant video display methods, device, terminal device and storage medium
CN110706310B (en) Image-text fusion method and device and electronic equipment
CN102209195A (en) Imaging apparatus, image processing apparatus,image processing method, and program
CN102209142A (en) Imaging apparatus, image processing apparatus, image processing method, and program
CN106303290B (en) A kind of terminal and the method for obtaining video
CN111741303B (en) Deep video processing method and device, storage medium and electronic equipment
CN109196865B (en) Data processing method, terminal and storage medium
EP3890332A1 (en) Video splitting method and electronic device
CN110933334B (en) Video noise reduction method, device, terminal and storage medium
CN106534667A (en) Distributed cooperative rendering method and terminal
CN104751488B (en) Photographing method for moving track of moving object and terminal equipment
CN105611264A (en) Automatic white balance method and device
CN106803879A (en) Cooperate with filming apparatus and the method for finding a view
CN113014804A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN104796625A (en) Picture synthesizing method and device
CN115373777A (en) Display method and related device
CN109068063A (en) A kind of processing of 3 d image data, display methods, device and mobile terminal
CN113593567B (en) Method for converting video and sound into text and related equipment
CN112269554B (en) Display system and display method
CN114449090A (en) Data sharing method, device and system and electronic equipment

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220601

Address after: 31a, 15 / F, building 30, maple mall, bangrang Road, Brazil, Singapore

Patentee after: Baiguoyuan Technology (Singapore) Co.,Ltd.

Address before: Building B-1, North District, Wanda Commercial Plaza, Wanbo business district, No. 79, Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU BAIGUOYUAN INFORMATION TECHNOLOGY Co.,Ltd.