CN110248115B - Image processing method, device and storage medium - Google Patents

Image processing method, device and storage medium Download PDF

Info

Publication number
CN110248115B
CN110248115B CN201910544797.4A CN201910544797A CN110248115B CN 110248115 B CN110248115 B CN 110248115B CN 201910544797 A CN201910544797 A CN 201910544797A CN 110248115 B CN110248115 B CN 110248115B
Authority
CN
China
Prior art keywords
image
image frame
frame sequence
group
transition
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
CN201910544797.4A
Other languages
Chinese (zh)
Other versions
CN110248115A (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.)
Shanghai Moxiang Network Technology Co ltd
Original Assignee
Shanghai Moxiang 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 Shanghai Moxiang Network Technology Co ltd filed Critical Shanghai Moxiang Network Technology Co ltd
Priority to CN201910544797.4A priority Critical patent/CN110248115B/en
Publication of CN110248115A publication Critical patent/CN110248115A/en
Application granted granted Critical
Publication of CN110248115B publication Critical patent/CN110248115B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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/265Mixing

Landscapes

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

Abstract

The embodiment of the application provides an image processing method, an image processing device and a storage medium, wherein the image processing method comprises the following steps: generating a transition image frame sequence according to a first group of image frames, a second group of image frames and a preset switching effect, wherein the first group of image frames belongs to the first image frame sequence, and the second group of image frames belongs to the second image frame sequence; a transition image frame sequence is inserted between the first image frame sequence and the second image frame sequence. Because of the gap in the playing of the first image frame sequence and the second image frame sequence, the transition image frame sequence is played, so that the transition part of the playing of the first image frame sequence and the second image frame sequence is more natural.

Description

Image processing method, device and storage medium
Technical Field
The embodiment of the application relates to the technical field of image processing, in particular to an image processing method, an image processing device and a storage medium.
Background
With the development of information interaction, images and videos are widely used for information dissemination because they are more intuitive to watch. When there are multiple images or videos, the multiple images or videos are typically stitched together for viewing. In the related art, when images or videos are spliced, for example, when a video is spliced, a next video is directly spliced at the end of a previous video, and the previous video and the next video are switched to be abrupt, in order to solve the above problem, image frames at the connection position of the previous video and the next video are subjected to effect processing, such as fade-in and fade-out, but when the scene difference of the two videos or two image sequences is large, the splicing mode still appears to be excessively hard.
Disclosure of Invention
In view of the above, an object of the present invention is to provide an image processing method, an image processing apparatus and a storage medium, so as to overcome the defects of an unnatural display effect and a hard transition after video or image stitching in the prior art.
In a first aspect, an embodiment of the present application provides an image processing method, which includes:
generating a transition image frame sequence according to a first group of image frames, a second group of image frames and a preset switching effect, wherein the first group of image frames belongs to the first image frame sequence, and the second group of image frames belongs to the second image frame sequence;
a transition image frame sequence is inserted between the first image frame sequence and the second image frame sequence.
Optionally, in an embodiment of the present application, the method further includes:
the preset switching effect is determined based on at least one of a shape and a variation of a first key image element in the first set of image frames.
Optionally, in an embodiment of the present application, determining the preset switching effect according to at least one of a shape and a variation of the first key image element in the first group of image frames includes:
and determining a preset switching effect according to the change condition of the first key image element in the first group of image frames and a preset mapping, wherein the preset mapping is used for indicating the corresponding relation between the change condition of at least one image element and at least one switching effect.
Optionally, in an embodiment of the present application, generating the transition image frame sequence according to the first group of image frames, the second group of image frames, and the preset switching effect includes:
adding a second key image element in a second group of image frames to at least one image frame in the first group of image frames according to a preset switching effect, and generating at least one transition image frame;
at least one transition image frame is ordered according to playing time, and a transition image frame sequence is generated.
Optionally, in an embodiment of the present application, the first group of image frames is located at the end of the first image frame sequence, and the second group of image frames is located at the head of the second image frame sequence;
inserting a transition image frame sequence between a first image frame sequence and a second image frame sequence, comprising:
the transition image frame sequence is added after the first image frame sequence and the second image frame sequence is added after the transition image frame sequence.
Optionally, in an embodiment of the present application, the first group of image frames is located at the head of the first image frame sequence, and the second group of image frames is located at the tail of the second image frame sequence;
inserting a transition image frame sequence between a first image frame sequence and a second image frame sequence, comprising:
the transition image frame sequence is added after the second image frame sequence and the first image frame sequence is added after the transition image frame sequence.
Optionally, in an embodiment of the present application, the method further includes:
and determining a first group of image frames in the first image frame sequence according to at least one of a preset frame number, a preset time length and the area of the key object.
Optionally, in an embodiment of the present application, the method further includes:
the image frames to be replaced are deleted from the first set of image frames and the second set of image frames according to the sequence of transition image frames.
In a second aspect, an embodiment of the present application provides an image processing apparatus, including: a frame processing module and a sequence management module;
the frame processing module is used for generating a transition image frame sequence according to a first group of image frames, a second group of image frames and a preset switching effect, wherein the first group of image frames belongs to the first image frame sequence, and the second group of image frames belongs to the second image frame sequence;
a sequence management module for inserting a transition image frame sequence between the first image frame sequence and the second image frame sequence.
An embodiment of the present application provides a storage medium, and when a program stored in the storage medium is called, the image processing method described in the first aspect or any one of the embodiments of the first aspect is implemented.
In this embodiment of the application, the transition image frame sequence is generated according to the first group of image frames, the second group of image frames and a preset switching effect, and after the transition image frame sequence is inserted between the first image frame sequence and the second image frame sequence, the transition image frame sequence is played in a gap between the playing of the first image frame sequence and the playing of the second image frame sequence, so that the transition part of the playing of the first image frame sequence and the playing of the second image frame sequence is more natural.
Drawings
Some specific embodiments of the present application will be described in detail hereinafter by way of illustration and not limitation with reference to the accompanying drawings. The same reference numbers in the drawings identify the same or similar elements or components. Those skilled in the art will appreciate that the drawings are not necessarily drawn to scale. In the drawings:
fig. 1 is a flowchart of an image processing method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a handover effect according to an embodiment of the present application;
fig. 3 is a schematic diagram of a handover effect according to an embodiment of the present application;
fig. 4 is a flowchart of an image processing method according to an embodiment of the present application;
fig. 5 is a structural diagram of an image processing apparatus according to an embodiment of the present application;
fig. 6 is a structural diagram of an image processing apparatus according to an embodiment of the present application.
Detailed Description
The following further describes specific implementation of the embodiments of the present invention with reference to the drawings.
Example one
An embodiment of the present application provides an image processing method, which is applied to an image processing apparatus, where the image processing apparatus may be a computer, a notebook, an intelligent terminal, or an image processing unit installed on an electronic device, for example, an image processing unit installed on an unmanned aerial vehicle controller, an image processing unit installed on a camera device, and the like, and the image processing apparatus may also be a pan-tilt apparatus. As shown in fig. 1, fig. 1 is a flowchart of an image processing method according to an embodiment of the present application. The image processing method comprises the following steps:
101. and generating a transition image frame sequence according to the first group of image frames, the second group of image frames and a preset switching effect.
The first group of image frames belongs to a first image frame sequence and the second group of image frames belongs to a second image frame sequence. The first image frame sequence and the second image frame sequence may be a video (continuous image frame sequence) or a set of related pictures (discrete image frame sequence). Each of the first group of image frames and the second group of image frames may include at least one image frame, and for example, when the number of image frames included in the first group of image frames is greater than or equal to 2, at least two image frames included in the first group of image frames are sorted according to the playing order of the video or the image.
The switching effect refers to a playing display effect of a transition part between two image frame sequences during playing, in this application, the preset switching effect is a playing display effect of a transition part between a first image frame sequence and a second image frame sequence, and the preset switching effect may include: translation, rotation, magnification, reduction, etc.
Alternatively, in the first application scenario, the preset switching effect may be determined before step 101, here, how to determine the preset switching effect is illustrated.
Optionally, in an embodiment of the present application, the method further includes: the preset switching effect is determined based on at least one of a shape and a variation of a first key image element in the first set of image frames.
Further, a preset switching effect is determined according to a change condition of a first key image element in the first group of image frames and a preset mapping, the preset switching effect may also be determined according to a shape of the first key image element in the first group of image frames and the preset mapping, and the preset switching effect may also be determined according to the preset mapping by combining the shape and the change condition of the first key image element. The preset map is used for indicating the corresponding relation between the change condition of the at least one image element and the at least one switching effect, and can also indicate the corresponding relation between the shape of the at least one image element and the at least one switching effect.
It should be noted that the variation of the first key image element in the first group of image frames includes position variation, size variation (i.e. pixel area variation), shape variation, etc., and here, two specific examples are listed to illustrate how to determine the preset switching effect.
For example, in a first example, when the first group of image frames is ordered in the playing order, the position of the first key image element changes from left to right in the horizontal direction, and the preset switching effect may be determined to be a left to right translation in the horizontal direction.
For another example, in the second example, when the first group of image frames are sorted according to the playing order, the area occupied by the first key image element changes from small to large, and it may be determined that the preset switching effect is amplification.
Of course, this is merely an example and does not represent a limitation of the present application.
Optionally, in a second application scenario, it is illustrated how the first set of image frames and the second set of image frames are determined.
Optionally, in an embodiment of the present application, the method further includes:
and determining a first group of image frames in the first image frame sequence according to at least one of a preset frame number, a preset time length and the area of the key object.
Similarly, the second group of image frames may also be determined in the second image frame sequence according to at least one of a preset number of frames, a preset time length, and an area of a key object.
Here, taking the example that the first image frame sequence is played before the second image frame sequence as an example, for example, if the preset frame number is 10, the last 10 image frames in the first image frame sequence may be determined as the first group of image frames in the image frame playing order, and of course, the 10 image frames in the starting position in the second image frame sequence may also be determined as the second group of image frames in the image frame playing order; for another example, after determining the key object in the first image frame sequence, n consecutive image frames in the first image frame sequence, in which the area of the tail key object exceeds the preset area, are determined as the first group of image frames in the image frame playing order, where n is an integer greater than or equal to 1. Of course, this is merely an example, and does not represent a limitation of the present disclosure, and there may be various implementations as to how to determine the first set of image frames and the second set of image frames, which is not limited in this application.
Alternatively, in a third application scenario, it is illustrated how a sequence of transition image frames is generated.
Optionally, in an embodiment of the present application, generating the transition image frame sequence according to the first group of image frames, the second group of image frames, and the preset switching effect includes:
adding a second key image element in a second group of image frames to at least one image frame in the first group of image frames according to a preset switching effect, and generating at least one transition image frame; at least one transition image frame is ordered according to playing time, and a transition image frame sequence is generated.
It should be noted that at least one image frame in the first group of image frames may be the last m image frames of the first group of image frames sorted in the playing order, m is an integer greater than or equal to 1, and m is less than or equal to the number of frames of the first group of image frames.
Here, two specific examples are listed for explanation:
in a first example, as shown in fig. 2, fig. 2 is a schematic diagram of a switching effect provided by an embodiment of the present application, in fig. 2, a vertex at a lower left corner of an image is taken as an origin, directions along which two sides of the image extend are taken as an x direction and a y direction, respectively, in this example, image frames all display the same size, a side length of the image in the x direction is w, a side length of the image in the y direction is h, and m is taken as 2, the preset switching effect includes an example of translation along the x direction, in a first group of image frames, a 2 nd to last image frame and a last to last image frame are taken as an image frame a and an image frame b, respectively, in a second group of image frames, a first image frame arranged in a playing order is taken as an image frame c, and the first image frame c is taken as a.
For image frame a, the 1/3 on the right side in image frame a is deleted and the rest 2/3 is moved to the rightmost side to obtain image frame a', that is, the pixels with x coordinate greater than 2w/3 in image frame a are deleted and the rest x coordinate is increased by w/3; the left 1/3 in image frame c is then added to the region 1/3 left free by image frame a' to yield the 1 st transition image frame.
For image frame b, the 2/3 on the right side in image frame b is deleted and the remaining 1/3 is moved to the far right to get image frame b', that is, the pixels in image frame b with x coordinate larger than w/3 are deleted and the x coordinate of the remaining pixels is increased by 2 w/3; the 2/3 on the left in image frame c is then added to the region 2/3 left free of image frame b' to get the 2 nd transition image frame.
In a second example, as shown in fig. 3, fig. 3 is a schematic diagram of a switching effect provided in an embodiment of the present application, where m is 2, the preset switching effect includes an enlargement as an example, a first key image element included in a first group of image frames, in which a 2 nd last image frame and a last image frame are an image frame a and an image frame b, respectively, presents an enlargement effect when playing.
For image frame a, the second key image element in the second group of image frames is reduced to 1/3 with the original size to obtain key image element c1The key image element c1The 1 st transition image frame is obtained by adding the center position of the first key image element in the image frame a.
For image frame b, the second key image element in the second group of image frames is reduced to 2/3 of the original size to obtain key image element c2The key image element c2The 2 nd transition image frame is obtained by increasing the center position of the first key image element in image frame b.
Of course, this is only illustrated by two examples, and does not represent that the present application is limited thereto.
In connection with the above-described first, second and third application scenarios, a first key image element, a key object and a second key image element are explained here. The first key image element and the key object may indicate the same object or may indicate two different objects. Here, taking the first key image element as an example, two specific implementations are listed, and how to determine the key object, the first key image element, or the second key image element is described in detail.
In a first implementation manner, a target image frame is divided into at least one region, the target image frame is any one image frame in a first group of image frames, each region is compared with image elements in a database, image elements included in the target image frame are determined, the image elements included in the first group of image frames with the largest number are determined as first key image elements, and the image elements included in the first group of image frames with the largest area can also be determined as first key image elements;
in a second implementation manner, at least one image element is determined in the target image frame according to a pixel value, where the pixel value may be an RGB component or a gray value, and this application is not limited to this, and in the target image frame, if a difference value between the RGB components of one pixel and an adjacent pixel exceeds a preset threshold, the pixel is marked as a contour pixel, a shape of the at least one image element is determined according to pixel coordinates of all contour pixels, an image element with the largest number included in the first group of image frames is determined as a first key image element, and an image element with the largest area included in the first group of image frames may also be determined as a first key image element.
102. A transition image frame sequence is inserted between the first image frame sequence and the second image frame sequence.
According to the playing order of the first image frame sequence and the second image frame sequence, two examples are listed here for illustration:
optionally, in an embodiment of the present application, the first group of image frames is located at the end of the first image frame sequence, and the second group of image frames is located at the head of the second image frame sequence;
inserting a transition image frame sequence between a first image frame sequence and a second image frame sequence, comprising:
the transition image frame sequence is added after the first image frame sequence and the second image frame sequence is added after the transition image frame sequence.
Optionally, in another embodiment of the present application, the first group of image frames is located at the head of the first image frame sequence, and the second group of image frames is located at the tail of the second image frame sequence;
inserting a transition image frame sequence between a first image frame sequence and a second image frame sequence, comprising:
the transition image frame sequence is added after the second image frame sequence and the first image frame sequence is added after the transition image frame sequence.
Optionally, in an embodiment of the present application, the method further includes:
the image frames to be replaced are deleted from the first set of image frames and the second set of image frames according to the sequence of transition image frames. The image frames to be replaced may include image frames in the first set of image frames and may also include image frames in the second set of image frames. The image frame to be replaced is an image frame to which key image elements are added, for example, if A, B, C image frames are determined in the first group of image frames and the second key image element in the second group of image frames is inserted into the image frames A, B and C, the image frame A, B, C is the image frame to be replaced.
In this embodiment of the application, the transition image frame sequence is generated according to the first group of image frames, the second group of image frames and a preset switching effect, and after the transition image frame sequence is inserted between the first image frame sequence and the second image frame sequence, the transition image frame sequence is played in a gap between the playing of the first image frame sequence and the playing of the second image frame sequence, so that the transition part of the playing of the first image frame sequence and the playing of the second image frame sequence is more natural.
Example two
Based on the first embodiment, the second embodiment of the present application provides an image processing method, and fig. 4 is a flowchart of the image processing method provided by the second embodiment of the present application. In the present embodiment, for example, the first image frame sequence is played first, and then the second image frame sequence is played, a transition image frame sequence between the first image frame sequence and the second image frame sequence is generated. The image processing method comprises the following steps:
401. a first set of image frames is determined in a first image frame sequence and a second set of image frames is determined in a second image frame sequence.
402. A first key image element is determined in the first group of image frames, and a preset switching effect is determined according to the variation condition of the first key image element in the first group of image frames.
403. Determining a second key image element in the second set of image frames, adding the second key image element in the second set of image frames to at least one image frame in the first set of image frames, and generating a sequence of transition image frames.
404. The image frame to be replaced is deleted in the first set of image frames in accordance with the sequence of transition image frames.
405. A transition image frame sequence is inserted between the first image frame sequence and the second image frame sequence.
It should be noted that step 404 and step 405 are not in sequence. The second embodiment is only a specific example provided based on the first embodiment, and does not represent that the application is limited thereto.
Here, the image processing method is described in detail by taking two specific application scenarios:
in a first application scenario, the image processing device may be an intelligent terminal, a user may capture a video material (i.e., a first image frame sequence and a second image frame sequence) through a capture device (e.g., a pocket camera), the user may also directly capture a video using the intelligent terminal, the capture device transmits the captured video material to the intelligent terminal, and the intelligent terminal processes the video material to generate a transition image frame sequence between two video materials and inserts the transition image frame sequence between the two video materials to generate a composite video.
In the second application scene, image processing apparatus can be an unmanned aerial vehicle controller, and the user shoots the video material (being first image frame sequence and second image frame sequence) through the shooting unit of installation on the unmanned aerial vehicle, and unmanned aerial vehicle will shoot the video material transmission that good to unmanned aerial vehicle controller, and unmanned aerial vehicle controller handles the video material, generates the composite video.
Of course, this is merely an example and does not represent a limitation of the present application.
Example III,
An embodiment of the present application provides an image processing apparatus for executing the image processing methods provided in the first and second embodiments, and referring to fig. 5, the image processing apparatus 50 includes: a frame processing module 501 and a sequence management module 502;
the frame processing module 501 is configured to generate a transition image frame sequence according to a first group of image frames, a second group of image frames, and a preset switching effect, where the first group of image frames belongs to the first image frame sequence, and the second group of image frames belongs to the second image frame sequence;
a sequence management module 502 for inserting a transition image frame sequence between the first image frame sequence and the second image frame sequence.
Optionally, in an embodiment of the present application, as shown in fig. 6, the image processing apparatus 50 further includes: a switch effect module 503;
a switching effect module 503, configured to determine a preset switching effect according to at least one of a shape and a change of a first key image element in the first group of image frames.
Alternatively, in one embodiment of the present application,
the switching effect module 503 is further configured to determine a preset switching effect according to a variation of a first key image element in the first group of image frames and a preset mapping, where the preset mapping is used to indicate a correspondence between a variation of at least one image element and at least one switching effect.
Optionally, in an embodiment of the present application, as shown in fig. 6, the sequence management module 502 includes: an adding unit 5021 and a sorting unit 5022;
an adding unit 5021, configured to add a second key image element in a second group of image frames to at least one image frame in a first group of image frames according to a preset switching effect, and generate at least one transition image frame;
a sorting unit 5022, configured to sort at least one transition image frame according to a playing time and generate a transition image frame sequence.
Optionally, in an embodiment of the present application, the first group of image frames is located at the end of the first image frame sequence, and the second group of image frames is located at the head of the second image frame sequence;
the sequence management module 502 is further configured to add the transition image frame sequence after the first image frame sequence and to add the second image frame sequence after the transition image frame sequence.
Optionally, in an embodiment of the present application, the first group of image frames is located at the head of the first image frame sequence, and the second group of image frames is located at the tail of the second image frame sequence;
the sequence management module 502 is further configured to add the transition image frame sequence after the second image frame sequence and to add the first image frame sequence after the transition image frame sequence.
Optionally, in an embodiment of the present application, the frame processing module 501 is further configured to determine the first group of image frames in the first image frame sequence according to at least one of a preset number of frames, a preset time length, and an area of a key object.
Optionally, in an embodiment of the present application, the sequence management module 502 is further configured to delete the image frame to be replaced in the first group of image frames and the second group of image frames according to the transition image frame sequence.
The image processing device may be a computer, a notebook, an intelligent terminal, or an image processing unit mounted on another device, for example, an image processing unit mounted on an unmanned aerial vehicle controller, an image processing unit mounted on a camera device, or the like. The image processing device can also be a holder device, a user transmits an image frame sequence to the holder device through a user terminal, the holder device performs image processing on the image frame sequence and transmits the processed image frame sequence to the user terminal for playing. Of course, this is merely an example and does not represent a limitation of the present application.
Example four,
Based on the image processing methods provided in the first and second embodiments, embodiments of the present application provide a storage medium, and when a program stored in the storage medium is called, the image processing method described in the first or second embodiment is implemented.
Thus, particular embodiments of the present subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may be advantageous.
The above-described embodiments illustrate means, modules or units, which may be implemented in particular by a computer chip or entity, or by an article of manufacture having some functionality. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by functions, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular transactions or implement particular abstract data types. The application may also be practiced in distributed computing environments where transactions are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (9)

1. An image processing method, comprising:
generating a transition image frame sequence according to a first group of image frames, a second group of image frames and a preset switching effect, wherein the first group of image frames belongs to a first image frame sequence, and the second group of image frames belongs to a second image frame sequence;
inserting the transition image frame sequence between the first image frame sequence and the second image frame sequence; wherein the generating of the sequence of transition image frames from the first set of image frames, the second set of image frames and the preset switching effect comprises
Adding a second key image element in the second group of image frames to at least one image frame in the first group of image frames according to the preset switching effect and generating at least one transition image frame;
and sequencing the at least one transition image frame according to the playing time and generating the transition image frame sequence.
2. The method of claim 1, further comprising:
determining the preset switching effect according to at least one of a shape and a variation of a first key image element in the first set of image frames.
3. The method according to claim 2, wherein determining the preset switching effect based on at least one of a shape and a variation of a first key image element in the first set of image frames comprises:
determining the preset switching effect according to the change condition of a first key image element in the first group of image frames and a preset mapping, wherein the preset mapping is used for indicating the corresponding relation between the change condition of at least one image element and at least one switching effect.
4. The method of claim 1, wherein the first set of image frames is located at an end of the first image frame sequence and the second set of image frames is located at a head of the second image frame sequence;
inserting the transition image frame sequence between a first image frame sequence and a second image frame sequence, comprising:
adding the transition image frame sequence after the first image frame sequence and adding the second image frame sequence after the transition image frame sequence.
5. The method of claim 1, wherein the first set of image frames is located at a head of the first image frame sequence and the second set of image frames is located at a tail of the second image frame sequence;
inserting the transition image frame sequence between a first image frame sequence and a second image frame sequence, comprising:
adding the transition image frame sequence after the second image frame sequence and adding the first image frame sequence after the transition image frame sequence.
6. The method of claim 1, further comprising:
and determining the first group of image frames in the first image frame sequence according to at least one of a preset frame number, a preset time length and the area of a key object.
7. The method according to any one of claims 1-6, further comprising:
deleting image frames to be replaced in the first set of image frames and the second set of image frames according to the transition image frame sequence.
8. An image processing apparatus characterized by comprising: a frame processing module and a sequence management module;
the frame processing module is used for generating a transition image frame sequence according to a first group of image frames, a second group of image frames and a preset switching effect, wherein the first group of image frames belongs to the first image frame sequence, and the second group of image frames belongs to the second image frame sequence;
the sequence management module to insert the transition image frame sequence between the first image frame sequence and the second image frame sequence; wherein the sequence management module comprises an adding unit and a sorting unit,
the adding unit is used for adding a second key image element in the second group of image frames in at least one image frame in the first group of image frames according to a preset switching effect and generating at least one transition image frame;
the sorting unit is used for sorting the at least one transition image frame according to playing time and generating the transition image frame sequence.
9. A computer storage medium characterized in that the image processing method according to any one of claims 1 to 7 is implemented when a program stored in the computer storage medium is called.
CN201910544797.4A 2019-06-21 2019-06-21 Image processing method, device and storage medium Active CN110248115B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910544797.4A CN110248115B (en) 2019-06-21 2019-06-21 Image processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910544797.4A CN110248115B (en) 2019-06-21 2019-06-21 Image processing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN110248115A CN110248115A (en) 2019-09-17
CN110248115B true CN110248115B (en) 2020-11-24

Family

ID=67888894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910544797.4A Active CN110248115B (en) 2019-06-21 2019-06-21 Image processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN110248115B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970562A (en) * 2020-08-17 2020-11-20 Oppo广东移动通信有限公司 Video processing method, video processing device, storage medium and electronic equipment
CN112179294A (en) * 2020-09-21 2021-01-05 杭州星网测绘技术有限公司 Land proofreading method, device and system
CN112200739A (en) * 2020-09-30 2021-01-08 北京大米科技有限公司 Video processing method and device, readable storage medium and electronic equipment
CN113018855B (en) * 2021-03-26 2022-07-01 完美世界(北京)软件科技发展有限公司 Action switching method and device for virtual role
CN113242465B (en) * 2021-04-27 2022-08-16 Oppo广东移动通信有限公司 Video processing method and device, electronic equipment and readable storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139524B (en) * 2011-12-05 2016-07-06 联想(北京)有限公司 Method for optimizing video and messaging device
CN104091318B (en) * 2014-06-16 2017-06-13 北京工业大学 A kind of synthetic method of Chinese Sign Language video transition frame
TWI554113B (en) * 2015-01-27 2016-10-11 宏正自動科技股份有限公司 Video switch and switching method thereof
EP3432590A4 (en) * 2016-03-14 2019-02-27 Sony Corporation Display device and information processing terminal device
CN108737745A (en) * 2017-04-21 2018-11-02 杭州海康威视数字技术股份有限公司 video fusion method and device
US10694223B2 (en) * 2017-06-21 2020-06-23 Google Llc Dynamic custom interstitial transition videos for video streaming services
CN107566756B (en) * 2017-08-03 2020-03-24 广东小天才科技有限公司 Video transition processing method and terminal equipment
CN107360467A (en) * 2017-08-04 2017-11-17 天脉聚源(北京)传媒科技有限公司 The method and device that transition plays between a kind of video
CN107770457B (en) * 2017-10-27 2020-01-21 维沃移动通信有限公司 Video production method, mobile terminal and computer readable storage medium
CN109151474B (en) * 2018-08-23 2020-10-30 复旦大学 Method for generating new video frame
CN109451360B (en) * 2018-11-02 2021-03-05 北京亿幕信息技术有限公司 Video transition special effect method and engine

Also Published As

Publication number Publication date
CN110248115A (en) 2019-09-17

Similar Documents

Publication Publication Date Title
CN110248115B (en) Image processing method, device and storage medium
CN105247567B (en) A kind of image focusing device, method, system and non-transient program storage device again
CN105791705A (en) Video anti-shake method and system suitable for movable time-lapse photography and shooting terminal
CN112954450B (en) Video processing method and device, electronic equipment and storage medium
CN105049728A (en) Method and device for acquiring shot image
CN110163831B (en) Method and device for dynamically displaying object of three-dimensional virtual sand table and terminal equipment
CN110062157B (en) Method and device for rendering image, electronic equipment and computer readable storage medium
CN110781823B (en) Screen recording detection method and device, readable medium and electronic equipment
CN112930677B (en) Method for switching between first lens and second lens and electronic device
CN106651999B (en) Frame animation loading acceleration method and device
CN105701762B (en) Picture processing method and electronic equipment
CN107087121A (en) A kind of Autoconducting method and device based on motion detection
US20230362328A1 (en) Video frame insertion method and apparatus, and electronic device
CN105574813A (en) Image processing method and device
CN109753145B (en) Transition animation display method and related device
CN111311481A (en) Background blurring method and device, terminal equipment and storage medium
CN112163993A (en) Image processing method, device, equipment and storage medium
CN110913118B (en) Video processing method, device and storage medium
CN114554285A (en) Video frame insertion processing method, video frame insertion processing device and readable storage medium
WO2017055684A1 (en) Accessing a video segment
CN113205011A (en) Image mask determining method and device, storage medium and electronic equipment
CN113225451A (en) Image processing method and device and electronic equipment
CN111833459A (en) Image processing method and device, electronic equipment and storage medium
CN109889736B (en) Image acquisition method, device and equipment based on double cameras and multiple cameras
CN105893578A (en) Method and device for selecting photos

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