CN110335223B - Image blurring effect implementation method and device, electronic equipment and storage medium - Google Patents

Image blurring effect implementation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110335223B
CN110335223B CN201910545197.XA CN201910545197A CN110335223B CN 110335223 B CN110335223 B CN 110335223B CN 201910545197 A CN201910545197 A CN 201910545197A CN 110335223 B CN110335223 B CN 110335223B
Authority
CN
China
Prior art keywords
image
transparency
blur
fuzzy
adjusted
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
CN201910545197.XA
Other languages
Chinese (zh)
Other versions
CN110335223A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910545197.XA priority Critical patent/CN110335223B/en
Publication of CN110335223A publication Critical patent/CN110335223A/en
Application granted granted Critical
Publication of CN110335223B publication Critical patent/CN110335223B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration using two or more images, e.g. averaging or subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20081Training; Learning

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a method and a device for realizing image blurring dynamic effect, electronic equipment and storageA medium, the method comprising: obtaining an original drawing A 0 (ii) a Based on A 0 Generating N blurred images with increasing blur radius { A 1 ,…,A N }; according to the arrangement order that the image with large blur radius is positioned above the image with small blur radius, the pair A 0 ,A 1 ,…,A N Performing overlapping arrangement, sequentially arranging A N ,…,A 1 The transparency of (2) is adjusted from 0 to 100% to form a blurring effect. Therefore, in the embodiment of the invention, the blurred images and the original image are overlapped, the transparency of each blurred image is sequentially adjusted, and the blurred motion effect is formed in a mode of changing the transparency and compensating frames. Compared with the prior art, the method and the device have the advantages that the fuzzy dynamic effect can be realized only by a small number of fuzzy images, the image processing quantity is reduced, and the time consumption of the whole process is short.

Description

Image blurring effect implementation method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method and an apparatus for implementing an image blur effect, an electronic device, and a storage medium.
Background
The fuzzy dynamic effect, namely the dynamic effect of changing the fuzzy degree, is to carry out fuzzy processing on the original image to obtain a series of fuzzy images, and to play the series of fuzzy images and the original image to present the dynamic change process of the image from fuzzy to clear or from clear to fuzzy. In the prior art, if the blurring effect is 1 second, at least 24 times of blurring processing needs to be performed on the original image to generate 24 blurred images, and the blurring effect is formed by playing the 24 blurred images frame by frame, so that the whole process is long in time consumption.
Disclosure of Invention
The embodiment of the invention provides a method and a device for realizing image blurring effect, electronic equipment and a storage medium, and aims to solve the technical problem that blurring effect consumes a long time in the prior art.
According to a first aspect of the present invention, an image blur effect implementation method is disclosed, for implementing a blur effect from blur to sharpness, the method comprising:
obtaining an original drawing A 0
Based on the A 0 Generating N blurred images with increasing blur radius { A 1 ,…,A N N is more than or equal to 1 and is an integer;
according to the arrangement order that the image with large blur radius is positioned above the image with small blur radius, the image A is processed 0 ,A 1 ,…,A N Performing overlapping arrangement, and sequentially arranging A according to the arrangement sequence N ,…,A 1 The transparency of (2) is adjusted from 0 to 100% to form a blurring effect.
Optionally, as an embodiment, the a is performed in an order of arrangement that the image with a large blur radius is located above the image with a small blur radius 0 ,A 1 ,…,A N Performing overlapping arrangement, and sequentially arranging A according to the arrangement sequence N ,…,A 1 The transparency of (2) is adjusted from 0 to 100% to form a blurring effect, comprising:
a is to be N-1 Is arranged in an overlapping manner at A N Below, and A N The transparency of (a) is adjusted from 0 to 100%;
when A is to be N When the transparency of (2) is adjusted to 100%, A is determined N-1 Whether or not it is A 0 If so, stopping adjusting the transparency of the image, otherwise, continuously overlapping the set image and the adjusted transparency of the image until A is equal to A 0 Is arranged in an overlapping manner at A 1 And A is 1 The transparency of (2) is adjusted from 0 to 100%, and the adjustment of the transparency of the image is stopped.
Optionally, as an embodiment, the a is performed in an order of arrangement that the image with a large blur radius is located above the image with a small blur radius 0 ,A 1 ,…,A N Performing overlapping arrangement, and sequentially arranging A according to the arrangement sequence N ,…,A 1 The transparency of (2) is adjusted from 0 to 100% to form a blurring effect, comprising:
according to the arrangement order that the image with large blur radius is positioned above the image with small blur radius, the A is arranged 0 ,A 1 ,…,A N Overlapping to form N +1 layers, wherein a top layer of the N +1 layers is A N The bottom layer is A 0 The initial transparencies of the N +1 image layers are all 0;
starting from a top layer, adjusting the transparency of the top layer from 0 to 100%, when the transparency of the top layer is adjusted to 100%, determining whether a next layer is a bottom layer, if so, stopping adjusting the transparency of the next layer, otherwise, continuing to adjust the transparency of the next layer until the transparency of a previous layer of the bottom layer is adjusted from 0 to 100%, and stopping adjusting the transparency of the layer.
Optionally, as an embodiment, the fuzzy dynamic effect is a gaussian fuzzy dynamic effect;
based on the A 0 Generating N blurred images with increasing blur radius { A 1 ,…,A N And (4) the method comprises the following steps:
the A is processed by 3 mean fuzzy algorithms 0 Performing blurring processing for N times to obtain N blurred images { A with gradually increased blur radii 1 ,…,A N }。
Optionally, as an embodiment, the fuzzy dynamic effect is a gaussian fuzzy dynamic effect;
based on the A 0 Generating N blurred images with increasing blur radius { A 1 ,…,A N And (4) the method comprises the following steps:
for the A 0 Carrying out small-radius fuzzy processing to obtain a fuzzy image A 1
For the A 1 Carrying out iterative fuzzy processing to obtain N-1 fuzzy images A with gradually increased fuzzy radiuses 2 ,…,A N
According to a second aspect of the present invention, an image blur effect implementation method is disclosed, for implementing a clear-to-blur effect, the method comprising:
obtaining an original image B 0
Based on the B 0 Generating M blurred images with increasing blur radius { B 1 ,…,B M M is more than or equal to 1 and is an integer;
according to the arrangement order that the image with small blur radius is positioned above the image with large blur radius, for the B 0 ,B 1 ,…,B M Performing overlapping setting, and sequentially arranging B according to the setting sequence 0 ,B 1 ,…,B M-1 The transparency of (2) is adjusted from 0 to 100% to form a blurring effect.
According to a third aspect of the present invention, an image blur effect implementation apparatus is disclosed, for implementing a blur effect from blur to sharpness, the apparatus comprising:
a first obtaining module forObtaining an original drawing A 0
A first generation module for generating a first generation module based on the A 0 Generating N blurred images with increasing blur radius { A 1 ,…,A N N is more than or equal to 1 and is an integer;
a first playing module, for the A, according to the setting sequence that the image with large blur radius is above the image with small blur radius 0 ,A 1 ,…,A N Performing overlapping arrangement, and sequentially arranging A according to the arrangement sequence N ,…,A 1 The transparency of (2) is adjusted from 0 to 100% to form a blurring effect.
Optionally, as an embodiment, the first playing module includes:
a first play sub-module for playing A N-1 Is arranged in an overlapping manner at A N Below, and A N The transparency of (a) is adjusted from 0 to 100%;
when A is to be N When the transparency of (2) is adjusted to 100%, A is determined N-1 Whether or not it is A 0 If so, stopping adjusting the transparency of the image, otherwise, continuously overlapping the set image and the adjusted transparency of the image until A is equal to A 0 Is arranged in an overlapping manner at A 1 And A is 1 The transparency of (2) is adjusted from 0 to 100%, and the adjustment of the transparency of the image is stopped.
Optionally, as an embodiment, the first playing module includes:
a second playing submodule for arranging the image A above the image with small blur radius according to the arrangement sequence that the image with large blur radius is arranged above the image with small blur radius 0 ,A 1 ,…,A N Overlapping to form N +1 layers, wherein a top layer of the N +1 layers is A N The bottom layer is A 0 The initial transparencies of the N +1 image layers are all 0;
starting from a top layer, adjusting the transparency of the top layer from 0 to 100%, when the transparency of the top layer is adjusted to 100%, determining whether a next layer is a bottom layer, if so, stopping adjusting the transparency of the next layer, otherwise, continuing to adjust the transparency of the next layer until the transparency of a previous layer of the bottom layer is adjusted from 0 to 100%, and stopping adjusting the transparency of the layer.
Optionally, as an embodiment, the fuzzy dynamic effect is a gaussian fuzzy dynamic effect;
the first generation module comprises:
a first fuzzy processing submodule for applying a fuzzy algorithm to the A by 3 mean values 0 Performing blurring processing for N times to obtain N blurred images { A with gradually increased blur radii 1 ,…,A N }。
Optionally, as an embodiment, the fuzzy dynamic effect is a gaussian fuzzy dynamic effect;
the first generation module comprises:
a second fuzzy processing submodule for processing A 0 Carrying out small-radius fuzzy processing to obtain a fuzzy image A 1
A third fuzzy processing submodule for processing A 1 Carrying out iterative fuzzy processing to obtain N-1 fuzzy images A with gradually increased fuzzy radiuses 2 ,…,A N
According to a fourth aspect of the present invention, an image blur effect implementation apparatus is disclosed, for implementing a clear-to-blur effect, the apparatus comprising:
a second obtaining module for obtaining the original image B 0
A second generating module for generating a second generation signal based on B 0 Generating M blurred images with increasing blur radius { B 1 ,…,B M M is more than or equal to 1 and is an integer;
a second playing module for playing the images B according to the setting sequence that the image with small blur radius is positioned above the image with large blur radius 0 ,B 1 ,…,B M Performing overlapping setting, and sequentially arranging B according to the setting sequence 0 ,B 1 ,…,B M-1 The transparency of (2) is adjusted from 0 to 100% to form a blurring effect.
According to a fifth aspect of the present invention, there is disclosed an electronic apparatus comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps in the image blur effect implementation method for implementing blur from blur to sharp blur effect as described above.
According to a sixth aspect of the present invention, a computer-readable storage medium is disclosed, having stored thereon a computer program, which when executed by a processor, implements the steps in the image blur effect implementation method for implementing a blur effect from blur to sharpness as described above.
According to a seventh aspect of the present invention, there is disclosed an electronic apparatus comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps in the image blur effect implementation method for implementing a blur effect from sharpness to blur as described above.
According to an eighth aspect of the present invention, a computer-readable storage medium is disclosed, having stored thereon a computer program which, when being executed by a processor, implements the steps of the image blur effect implementation method for implementing a blur effect from sharpness to blur as described above.
In the embodiment of the invention, the blurred images and the original image are overlapped, the transparency of each blurred image is sequentially adjusted, and the blurred motion effect is formed in a mode of changing the transparency and compensating frames. Compared with the prior art, the method and the device have the advantages that the fuzzy dynamic effect can be realized only by a small amount of fuzzy images, the image processing quantity is reduced, and the time consumption of the whole process is short.
In the embodiment of the invention, the fuzzy image and the original image are overlapped, the transparency of the original image and the transparency of part of the fuzzy image are sequentially adjusted, and the fuzzy dynamic effect is formed in a mode of changing the transparency and compensating frames. Compared with the prior art, the method and the device have the advantages that the fuzzy dynamic effect can be realized only by a small amount of fuzzy images, the image processing quantity is reduced, and the time consumption of the whole process is short.
Drawings
FIG. 1 is a flow chart of a method for implementing image blur effect according to an embodiment of the present invention;
FIG. 2 is a flow chart of one implementation of step 103 of one embodiment of the present invention;
FIG. 3 is a flow chart of another implementation of step 103 of an embodiment of the present invention;
FIG. 4 is a flow chart of a method for implementing image blur effect according to another embodiment of the present invention;
FIG. 5 is a block diagram of an apparatus for implementing an image blur effect according to an embodiment of the present invention;
fig. 6 is a block diagram of an image blur effect implementation apparatus according to another embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
The embodiment of the invention provides a method and a device for realizing image blurring dynamic effect, electronic equipment and a storage medium.
First, a method for implementing an image blur effect according to an embodiment of the present invention is described below.
Fig. 1 is a flowchart of an image blur effect implementation method according to an embodiment of the present invention, where the method is used to implement a blur effect from blur to clear, and the method may be executed by an electronic device, and in practical applications, the electronic device may be a mobile terminal such as a smart phone, a tablet computer, a personal digital assistant, and the like, or a computer device such as a computer, a desktop computer, and as shown in fig. 1, the method may include the following steps: step 101, step 102 and step 103, wherein,
in step 101, original image a is acquired 0
In the embodiment of the invention, the original image is an original image for realizing the fuzzy dynamic effect, and in practical application, the original image can be acquired locally from the electronic equipment or can be acquired from other electronic equipment.
In step 102, based on A 0 Generating N blurred images with increasing blur radius { A 1 ,…,A N N is more than or equal to 1 and is an integer.
In the embodiment of the invention, the fuzzy radius is a parameter involved in the image fuzzy processing process, and the larger the fuzzy radius is, the higher the fuzzy degree of the processed fuzzy image is.
In the examples of the present invention, A N Blur radius > A N-1 Blur radius > A N-2 Fuzzy radius of > … > A 1 The blur radius of (i.e. A) N Degree of blurring > A N-1 Degree of blur > A N-2 Degree of blur > … > A 1 Degree of blur.
In the embodiment of the invention, in the process of generating the N blurred images, the N different blur radiuses can be determined firstly, and the blurred image corresponding to each blur radius is generated according to the N blur radiuses. The N fuzzy radii can be set manually, and can be obtained by training a large number of fuzzy dynamic effect samples, and in practical application, the adopted training algorithm can be a neural network algorithm, a logistic regression algorithm, or other algorithms for machine learning.
In the embodiment of the present invention, the blur effect may be a gaussian blur effect, and the blur effect of each image frame in the gaussian blur effect is a gaussian blur effect.
In the embodiment of the invention, a gaussian fuzzy algorithm can be adopted to perform fuzzy processing on the original image for N times, and different fuzzy radiuses are adopted each time the original image is subjected to fuzzy processing, so that N fuzzy images with different fuzzy radiuses, namely N fuzzy images with different fuzzy degrees, are obtained.
Considering that the processing efficiency of the gaussian blurring algorithm is reduced due to the increase of the image size when the image is processed by the gaussian blurring algorithm, the algorithm has too many addition and multiplication operations, resulting in an image with a slightly larger size, and the processing time is several seconds or even tens of seconds, and at this time, if 24 blurred images with different blurring degrees are prepared for 1 second of blurring effect, the time consumption reaches the processing time of the order of minutes.
In view of the above situation, in an embodiment provided by the present invention, considering that the principle of the mean value blurring algorithm is similar to that of the gaussian blurring algorithm, and due to the reusability of the result of the mean value blurring processing, the time consumption for processing the picture can be reduced from the second level to the millisecond level by using the mean value blurring algorithm, and since the image processing effect (i.e., the image blurring effect) of the 3-time mean value blurring algorithm is very close to that of the gaussian blurring algorithm, the step 102 may specifically include the following steps:
pair A by 3 mean fuzzy algorithm 0 Performing blurring processing for N times to obtain N blurred images { A with gradually increased blur radii 1 ,…,A N }。
Therefore, in the embodiment of the invention, the original image can be subjected to fuzzy processing through the 3-time mean value fuzzy algorithm to obtain the fuzzy image for realizing the fuzzy dynamic effect, and the time consumption of the whole fuzzy dynamic effect can be reduced because the 3-time mean value fuzzy algorithm has higher processing speed on the image.
In another embodiment of the present invention, the following algorithm is used to analyze the following data: the image processing speed is inversely proportional to the size of the blur radius in the gaussian blur algorithm, and the image blur effect of the multiple times of the blurred image with the small radius is the same as that of the blurred image with the large radius of the original image, and according to the characteristic, the blur processing can be performed on the basis of the blurred image, at this time, the step 102 may specifically include the following steps:
to A 0 Carrying out small-radius fuzzy processing to obtain a fuzzy image A 1
To A 1 Performing an overlapReplacing fuzzy processing to obtain N-1 fuzzy images A with gradually increased fuzzy radius 2 ,…,A N
In the embodiment of the present invention, when generating a plurality of blurred images based on the original image, a small-radius blurred image (that is, a blurred image with a small blur radius) may be generated first, and the small-radius blurred image may be blurred step by step to obtain a large-radius blurred image.
In one example, a is a pair of Gaussian blur algorithms 0 When the blur processing is performed, the blur radius is set to 30, and a is set to 0 Carrying out fuzzy processing to obtain a fuzzy image A with a small radius 1 (ii) a Thereafter, the blur radius was set to 40, and the blurred image a was subjected to 1 Carrying out fuzzy processing to obtain a fuzzy image A 2 By analogy, A is obtained N
Therefore, in the embodiment of the invention, the smaller the fuzzy radius of the Gaussian blur algorithm is, the faster the image processing speed is, so that the image processing speed can be increased by performing iterative blur processing based on the original image, and the time consumption of the whole blur effect is further reduced.
In step 103, in the order of the image with a large blur radius above the image with a small blur radius, pair a 0 ,A 1 ,…,A N Performing overlapping arrangement, sequentially arranging A according to the arrangement order N ,…,A 1 The transparency of (2) is adjusted from 0 to 100% to form a blurring effect.
In the embodiment of the invention, the blurred images with slightly different blur radiuses are considered, the visual effect is slightly different, the blur change effect can replace the supplementary frame by using a mode of changing the transparency of the image, and the animation effect is intuitively superior to the simple change of the blur radiuses of the images, so that the images A can be arranged above the images with small blur radiuses according to the arrangement sequence that the images with large blur radiuses are arranged above the images with small blur radiuses 0 ,A 1 ,…,A N Performing overlapping arrangement, sequentially arranging A N ,…,A 1 The transparency of (2) is adjusted from 0 to 100% to form a blurring effect. Because the number of the blurred images adopted by the blurring motion effect is reduced, the number of the processed pictures can be reduced, and the time consumption of the whole blurring motion effect is further reduced.
In an embodiment provided by the present invention, as shown in fig. 2, the step 103 may specifically include the following steps: step 201 and step 202, wherein,
in step 201, A is added N-1 Is arranged in an overlapping manner at A N Below, and A N The transparency of (2) is adjusted from 0 to 100%.
In step 202, when A is to be N When the transparency of (2) is adjusted to 100%, A is determined N-1 Whether or not it is A 0 If so, stopping adjusting the transparency of the image, otherwise, continuously overlapping the set image and the adjusted transparency of the image until A is equal to A 0 Is arranged in an overlapping manner at A 1 And A is 1 The transparency of (2) is adjusted from 0 to 100%, and the adjustment of the transparency of the image is stopped.
For ease of understanding, a will be described first with reference to a specific example N-1 Is arranged in an overlapping manner at A N Below, raise A N To full transparency when A N-1 Fully exhibiting, then A N-2 Is arranged in an overlapping manner at A N-1 Below, and raise A N-1 By analogy, the transparency of (1) is continued until A 0 The display is complete.
In a more specific example, N is 3 and the original image is A 0 The 3 blurred images with gradually increased blur radius are respectively: a. the 1 、A 2 And A 3 . Firstly, A is firstly 2 Is arranged in an overlapping manner at A 3 Below, A is 3 The transparency of (A) is gradually adjusted from 0 to 100%, in which case A 2 Fully displaying; continue to A 1 Is arranged in an overlapping manner at A 2 And A is 2 The transparency of (A) is gradually adjusted from 0 to 100% when A 1 Fully displaying; continue to combine A 0 Is arranged in an overlapping manner at A 1 And A is 1 The transparency of (A) is gradually adjusted from 0 to 100%, in which case A 0 Complete demonstration, implementation A 0 The dynamic display process from fuzzy to clear.
Therefore, in the embodiment of the invention, two images in the images for realizing the blur dynamic effect can be sequentially overlapped, and the blur dynamic effect is formed by gradually adjusting the transparency of the upper image.
In another embodiment provided by the present invention, as shown in fig. 3, the step 103 may specifically include the following steps: step 301 and step 302, wherein,
in step 301, in the order of the image with a large blur radius being located above the image with a small blur radius, a 0 ,A 1 ,…,A N Overlapping to form N +1 layers, wherein the top layer of the N +1 layers is A N The bottom layer is A 0 And the initial transparency of the N +1 image layers is 0.
In step 302, starting from the top layer, the transparency of the top layer is adjusted from 0 to 100%, when the transparency of the top layer is adjusted to 100%, it is determined whether the next layer is the bottom layer, if so, the transparency of the next layer is stopped to be adjusted, otherwise, the transparency of the next layer is continuously adjusted until the transparency of the previous layer of the bottom layer is adjusted from 0 to 100%, and the transparency of the layer is stopped to be adjusted.
For ease of understanding, a will be described first with reference to a specific example 0 、A 1 ,…,A N Performing overlapping arrangement, specifically, arranging A N Arranged on the uppermost layer (i.e. top layer) and A N-1 Is arranged at the next layer, A N-2 Is arranged on the next layer, and so on, A 0 And the image layers are arranged on the last layer (namely the bottom layer) to form N +1 image layers. Then, starting from the uppermost layer, A is added N The transparency of (A) is gradually adjusted from 0 to 100%, in which case A N-1 Fully displaying; continue to combine A N-1 The transparency of (A) is gradually adjusted from 0 to 100%, in which case A N-2 Show completely, analogize until A 0 The display is complete.
In a more specific example, N is 3 and the original image is A 0 The 3 blurred images with gradually increased blur radius are respectively: a. the 1 、A 2 And A 3 . Firstly, A is firstly 0 、A 1 、A 2 And A 3 Performing overlapping arrangement, specifically, arranging A 3 Arranged at the uppermost layer (i.e. the top layer), A 2 Is arranged at the nextLayer of A 1 Is arranged at the next layer, A 0 And is arranged on the last layer (namely, the bottom layer) to form 4 layers. Then, starting from the uppermost layer, A is added 3 The transparency of (A) is gradually adjusted from 0 to 100%, in which case A 2 Fully displaying; continue to combine A 2 The transparency of (A) is gradually adjusted from 0 to 100%, in which case A 1 Fully displaying; continue to combine A 1 The transparency of (A) is gradually adjusted from 0 to 100%, in which case A 0 Complete demonstration, implementation A 0 The dynamic display process from fuzzy to clear.
Therefore, in the embodiment of the invention, all the images for realizing the fuzzy dynamic effect can be integrally overlapped, and the transparency of each fuzzy image is sequentially adjusted according to the sequence from top to bottom to form the fuzzy dynamic effect.
In the embodiment of the invention, the blurring effect is formed by a frame supplementing mode of transparency change, if the blurring effect is 1 second, only 1-4 blurring images are needed, and correspondingly, the value of N in the step 102 is 1-4.
In the embodiment of the invention, when the transparency of the blurred image is adjusted, the adjustment can be performed according to a certain rate, wherein the rate can be set manually or obtained by training a large number of blurred dynamic effect samples, and in practical application, the adopted training algorithm can be a neural network algorithm, a logistic regression algorithm and the like, and can also be other algorithms for machine learning.
As can be seen from the above embodiments, in this embodiment, the blurred image and the original image are overlapped, the transparency of each blurred image is sequentially adjusted, and the blur effect is formed by changing the transparency to complement the frame. Compared with the prior art, the method and the device have the advantages that the fuzzy dynamic effect can be realized only by a small amount of fuzzy images, the image processing quantity is reduced, and the time consumption of the whole process is short.
The fuzzy dynamic effect scheme from fuzzy to clear is provided in the above embodiments, and the fuzzy dynamic effect scheme from clear to fuzzy is also provided based on the same idea as the fuzzy dynamic effect.
Fig. 4 is a flowchart of an image blur effect implementation method according to another embodiment of the present invention, where the method is used to implement a blur effect from clear to blurred, and the method may be executed by an electronic device, and in practical applications, the electronic device may be a mobile terminal such as a smart phone, a tablet computer, a personal digital assistant, and the like, or a computer device such as a computer, a desktop computer, and as shown in fig. 4, the method may include the following steps: step 401, step 402 and step 403, wherein,
in step 401, original image B is acquired 0
In step 402, based on B 0 Generating M blurred images with increasing blur radius { B 1 ,…,B M M is an integer greater than or equal to 1.
Step 401 and step 402 in the embodiment of the present invention are similar to step 101 and step 102 in the embodiment shown in fig. 1, and are not described herein again, for details, see the contents in the embodiment shown in fig. 1.
In the examples of the present invention, B M Blur radius > B M-1 Blur radius > B M-2 Fuzzy radius > … > B 1 Radius of blur, i.e. B M Degree of blur > B M-1 Degree of blurring > B M-2 Degree of blur > … > B 1 Degree of blur.
In step 403, in the order of setting the image with small blur radius above the image with large blur radius, pair B 0 ,B 1 ,…,B M Performing overlapping arrangement, sequentially arranging B according to the arrangement order 0 ,B 1 ,…,B M-1 The transparency of (2) is adjusted from 0 to 100% to form a blurring effect.
In an embodiment provided by the present invention, the step 403 may specifically include the following steps:
b is to be 1 Is arranged in a superposed manner at B 0 Below, and B 0 The transparency of (a) is adjusted from 0 to 100%;
when B is to be 0 When the transparency of (B) is adjusted to 100%, B is added 2 Is arranged in a superposed manner at B 1 Below, and B 1 Until B is adjusted from 0 to 100% M Is arranged in a superposed manner at B M-1 And B is M-1 The transparency of (2) is adjusted from 0 to 100%, and the adjustment of the transparency of the image is stopped.
For ease of understanding, B will first be described in connection with a specific example 1 Is arranged in a superposed manner at B 0 Lower, raise B 0 To full transparency when B 1 Fully exhibiting, then B 2 Is arranged in a superposed manner at B 1 Down and raise B 1 The transparency of (1) is analogized until B M The display is complete.
In a more specific example, N is 3 and the original image is B 0 The 3 blurred images with gradually increased blur radius are respectively: b is 1 、B 2 And B 3 . Firstly B is 1 Is arranged in a superposed manner at B 0 Below, B is 0 The transparency of (A) is gradually adjusted from 0 to 100%, in which case B 1 Fully displaying; continue to mix B 2 Is arranged in a superposed manner at B 1 And B is 1 The transparency of (A) is gradually adjusted from 0 to 100%, in which case B 2 Fully displaying; continue to mix B 3 Is arranged in a superposed manner at B 2 And B is 2 The transparency of (A) is gradually adjusted from 0 to 100%, in which case B 3 Complete demonstration, implementation B 0 The dynamic display process from clear to fuzzy.
Therefore, in the embodiment of the invention, two images in the images for realizing the blur dynamic effect can be sequentially overlapped, and the blur dynamic effect is formed by gradually adjusting the transparency of the upper image.
In another embodiment provided by the present invention, the step 403 may specifically include the following steps:
b, according to the arrangement order that the image with small blur radius is positioned above the image with large blur radius 0 ,B 1 ,…,B M Overlapping to form M +1 layers, wherein the top layer of the M +1 layers is B 0 The bottom layer is B M The initial transparencies of the M +1 image layers are all 0;
starting from a top layer, adjusting the transparency of the top layer from 0 to 100%, when the transparency of the top layer is adjusted to 100%, determining whether a next layer is a bottom layer, if so, stopping adjusting the transparency of the next layer, otherwise, continuing to adjust the transparency of the next layer until the transparency of a previous layer of the bottom layer is adjusted from 0 to 100%, and stopping adjusting the transparency of the layer.
For ease of understanding, B will first be described in connection with a specific example 0 、B 1 ,…,B M Performing overlapping arrangement, specifically, arranging B 0 Arranged at the uppermost layer (i.e. top layer), and B 1 Is arranged at the next layer, and B is 2 Setting the layer B on the next layer, and so on M And setting the layer on the last layer (namely the bottom layer) to form M +1 layers. Then, starting from the uppermost layer, B is added 0 The transparency of (A) is gradually adjusted from 0 to 100%, in which case B 1 Fully displaying; continue to mix B 1 The transparency of (A) is gradually adjusted from 0 to 100%, in which case B 2 Fully show, analogize until B M The display is complete.
In a more specific example, N is 3 and the original image is B 0 The 3 blurred images with gradually increased blur radius are respectively: b is 1 、B 2 And B 3 . Firstly B is 0 、B 1 、B 2 And B 3 Performing overlapping arrangement, specifically, arranging B 0 Arranged at the uppermost layer (i.e. top layer), and B 1 Is arranged at the next layer, and B is 2 Is arranged at the next layer, and B is 3 And is arranged on the last layer (namely, the bottom layer) to form 4 layers. Then, starting from the uppermost layer, B is added 0 The transparency of (A) is gradually adjusted from 0 to 100%, in which case B 1 Fully displaying; continue to mix B 1 The transparency of (A) is gradually adjusted from 0 to 100%, in which case B 2 Fully displaying; continue to mix B 2 The transparency of (A) is gradually adjusted from 0 to 100%, in which case B 3 Complete demonstration, implementation B 0 The dynamic display process from clear to fuzzy.
Therefore, in the embodiment of the invention, all the images for realizing the fuzzy dynamic effect can be integrally overlapped, and the transparency of each fuzzy image is sequentially adjusted according to the sequence from top to bottom to form the fuzzy dynamic effect.
As can be seen from the above embodiments, in this embodiment, the blurred image and the original image are overlapped, the transparency of the original image and the transparency of a part of the blurred image are sequentially adjusted, and the blurred motion effect is formed by changing the transparency to complement the frame. Compared with the prior art, the method and the device have the advantages that the fuzzy dynamic effect can be realized only by a small amount of fuzzy images, the image processing quantity is reduced, and the time consumption of the whole process is short.
Fig. 5 is a block diagram of an image blur effect implementation apparatus according to an embodiment of the present invention, the apparatus is configured to implement blur effect from blur to sharpness, and as shown in fig. 5, the image blur effect implementation apparatus 500 may include: a first acquisition module 501, a first generation module 502 and a first playing module 503, wherein,
a first obtaining module 501, configured to obtain the original image a 0
A first generating module 502 for generating a first signal based on the A 0 Generating N blurred images with increasing blur radius { A 1 ,…,A N N is more than or equal to 1 and is an integer;
a first playing module 503, configured to perform a playback on the image a according to a setting order that the image with the larger blur radius is located above the image with the smaller blur radius 0 ,A 1 ,…,A N Performing overlapping arrangement, and sequentially arranging A according to the arrangement sequence N ,…,A 1 The transparency of (2) is adjusted from 0 to 100% to form a blurring effect.
As can be seen from the above embodiments, in this embodiment, the blurred image and the original image are overlapped, the transparency of each blurred image is sequentially adjusted, and the blur effect is formed by changing the transparency to complement the frame. Compared with the prior art, the method and the device have the advantages that the fuzzy dynamic effect can be realized only by a small amount of fuzzy images, the image processing quantity is reduced, and the time consumption of the whole process is short.
Optionally, as an embodiment, the first playing module 503 may include:
a first play sub-module for playing A N-1 Is arranged in an overlapping manner at A N Below, and A N The transparency of (a) is adjusted from 0 to 100%;
when A is to be N When the transparency of (2) is adjusted to 100%, A is determined N-1 Whether or not it is A 0 If so, stopping adjusting the transparency of the image, otherwise, continuously overlapping the set image and the adjusted transparency of the image until A is equal to A 0 Is arranged in an overlapping manner at A 1 And A is 1 The transparency of (2) is adjusted from 0 to 100%, and the adjustment of the transparency of the image is stopped.
Optionally, as an embodiment, the first playing module 503 may include:
a second playing submodule for arranging the image A above the image with small blur radius according to the arrangement sequence that the image with large blur radius is arranged above the image with small blur radius 0 ,A 1 ,…,A N Overlapping to form N +1 layers, wherein a top layer of the N +1 layers is A N The bottom layer is A 0 The initial transparencies of the N +1 image layers are all 0;
starting from a top layer, adjusting the transparency of the top layer from 0 to 100%, when the transparency of the top layer is adjusted to 100%, determining whether a next layer is a bottom layer, if so, stopping adjusting the transparency of the next layer, otherwise, continuing to adjust the transparency of the next layer until the transparency of a previous layer of the bottom layer is adjusted from 0 to 100%, and stopping adjusting the transparency of the layer.
Optionally, as an embodiment, the fuzzy dynamic effect is a gaussian fuzzy dynamic effect;
the first generating module 502 may include:
a first fuzzy processing submodule for applying a fuzzy algorithm to the A by 3 mean values 0 Performing blurring processing for N times to obtain N blurred images { A with gradually increased blur radii 1 ,…,A N }。
Optionally, as an embodiment, the fuzzy dynamic effect is a gaussian fuzzy dynamic effect;
the first generating module 502 may include:
a second fuzzy processing submodule for processing A 0 Carrying out small-radius fuzzy processing to obtain a fuzzy image A 1
A third fuzzy processing submodule for processing A 1 Carrying out iterative fuzzy processing to obtain N-1 fuzzy images A with gradually increased fuzzy radiuses 2 ,…,A N
Fig. 6 is a block diagram of an image blur effect implementation apparatus according to another embodiment of the present invention, which is configured to implement a blur effect from sharpness to blur, as shown in fig. 6, the image blur effect implementation apparatus 600 may include: a second obtaining module 601, a second generating module 602, and a second playing module 603, wherein,
a second obtaining module 601, configured to obtain the original image B 0
A second generating module 602 for generating B 0 Generating M blurred images with increasing blur radius { B 1 ,…,B M M is more than or equal to 1 and is an integer;
a second playing module 603, configured to play the image with the smaller blur radius above the image with the larger blur radius according to the setting order 0 ,B 1 ,…,B M Performing overlapping setting, and sequentially arranging B according to the setting sequence 0 ,B 1 ,…,B M-1 The transparency of (2) is adjusted from 0 to 100% to form a blurring effect.
As can be seen from the above embodiments, in this embodiment, the blurred image and the original image are overlapped, the transparency of the original image and the transparency of a part of the blurred image are sequentially adjusted, and the blurred motion effect is formed by changing the transparency to complement the frame. Compared with the prior art, the method and the device have the advantages that the fuzzy dynamic effect can be realized only by a small amount of fuzzy images, the image processing quantity is reduced, and the time consumption of the whole process is short.
Optionally, as an embodiment, the second playing module 603 may include:
a third play sub-module for playing B 1 Is arranged in a superposed manner at B 0 Below, and B 0 The transparency of (a) is adjusted from 0 to 100%;
when B is to be 0 When the transparency of (B) is adjusted to 100%, B is added 2 Is arranged in a superposed manner at B 1 Below, and B 1 The transparency of (2) is adjusted from 0 to 100% untilB is to be M Is arranged in a superposed manner at B M-1 And B is M-1 The transparency of (2) is adjusted from 0 to 100%, and the adjustment of the transparency of the image is stopped.
Optionally, as an embodiment, the second playing module 603 may include:
a fourth play submodule for arranging the image B above the image with large blur radius according to the arrangement sequence that the image with small blur radius is arranged above the image with large blur radius 0 ,B 1 ,…,B M Overlapping to form M +1 layers, wherein the top layer of the M +1 layers is B 0 The bottom layer is B M The initial transparencies of the M +1 image layers are all 0;
starting from a top layer, adjusting the transparency of the top layer from 0 to 100%, when the transparency of the top layer is adjusted to 100%, determining whether a next layer is a bottom layer, if so, stopping adjusting the transparency of the next layer, otherwise, continuing to adjust the transparency of the next layer until the transparency of a previous layer of the bottom layer is adjusted from 0 to 100%, and stopping adjusting the transparency of the layer.
Optionally, as an embodiment, the fuzzy dynamic effect is a gaussian fuzzy dynamic effect;
the second generating module 602 may include:
a fourth fuzzy processing submodule for applying 3 mean fuzzy algorithms to B 0 Performing M times of blurring processing to obtain M blurred images { B with gradually increased blur radius 1 ,…,B M }。
Optionally, as an embodiment, the fuzzy dynamic effect is a gaussian fuzzy dynamic effect;
the second generating module 602 may include:
a fifth blur processing submodule for processing B 0 Carrying out small-radius fuzzy processing to obtain a fuzzy image B 1
A sixth fuzzy processing submodule for processing B 1 Carrying out iterative fuzzy processing to obtain M-1 fuzzy images B with gradually increased fuzzy radiuses 2 ,…,B M
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
According to still another embodiment of the present invention, there is also provided an electronic apparatus including: the image blur effect implementation method comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the computer program when executed by the processor implements the steps of the image blur effect implementation method for implementing the blur effect from blur to clear blur effect according to any one of the above embodiments.
According to still another embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, the computer program, when being executed by a processor, implementing the steps of the image blur effect implementation method for implementing blur effect from blur to sharpness as described in any one of the above embodiments.
According to still another embodiment of the present invention, there is also provided an electronic apparatus including: the image blur effect implementation method comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the computer program when executed by the processor implements the steps of the image blur effect implementation method for implementing the blur effect from clear to blurred according to any one of the embodiments.
According to still another embodiment of the present invention, there is also provided a computer-readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps in the image blur effect implementation method for implementing a blur effect from sharpness to blur as described in any one of the above embodiments.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of 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, embodiments of 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.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (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 terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, 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 terminal 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 terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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 terminal. 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 terminal that comprises the element.
The method, the apparatus, the electronic device and the storage medium for implementing the image blur effect provided by the present invention are introduced in detail, and a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (12)

1. An image blur effect implementation method for implementing blur effect from blur to sharpness, the method comprising:
obtaining an original drawing A 0
Based on the A 0 Generating N blurred images with increasing blur radius { A 1 ,…,A N N is more than or equal to 1 and is an integer;
according to the arrangement order that the image with large blur radius is positioned above the image with small blur radius, the A is arranged 0 ,A 1 ,…,A N Overlapping to form N +1 layers, wherein a top layer of the N +1 layers is A N The bottom layer is A 0 The initial transparencies of the N +1 image layers are all 0;
starting from a top layer, adjusting the transparency of the top layer from 0 to 100%, determining whether a next layer is a bottom layer when the transparency of the top layer is adjusted to 100%, if so, stopping adjusting the transparency of the next layer, otherwise, continuing to adjust the transparency of the next layer until the transparency of a previous layer of the bottom layer is adjusted from 0 to 100%, and stopping adjusting the transparency of the layer;
when the transparency of the blurred image is adjusted, adjusting according to a preset rate, wherein the rate is obtained through algorithm training;
the algorithm comprises at least one of a neural network algorithm and a logistic regression algorithm.
2. The method according to claim 1, wherein said A is performed according to the arrangement order that the image with larger blur radius is positioned above the image with smaller blur radius 0 ,A 1 ,…,A N Performing overlapping arrangement, and sequentially arranging A according to the arrangement sequence N ,…,A 1 The transparency of (2) is adjusted from 0 to 100% to form a blurring effect, comprising:
a is to be N-1 Is arranged in an overlapping manner at A N Below, and A N The transparency of (a) is adjusted from 0 to 100%;
when A is to be N When the transparency of (2) is adjusted to 100%, A is determined N-1 Whether or not it is A 0 If so, stopping adjusting the transparency of the image, otherwise, continuing to overlap the set image and the adjusted transparency of the imageUntil A is got 0 Is arranged in an overlapping manner at A 1 And A is 1 The transparency of (2) is adjusted from 0 to 100%, and the adjustment of the transparency of the image is stopped.
3. The method of claim 1, wherein the fuzzy animation is a gaussian fuzzy animation;
based on the A 0 Generating N blurred images with increasing blur radius { A 1 ,…,A N And (4) the method comprises the following steps:
the A is processed by 3 mean fuzzy algorithms 0 Performing blurring processing for N times to obtain N blurred images { A with gradually increased blur radii 1 ,…,A N }。
4. The method of claim 1, wherein the fuzzy animation is a gaussian fuzzy animation;
based on the A 0 Generating N blurred images with increasing blur radius { A 1 ,…,A N And (4) the method comprises the following steps:
for the A 0 Carrying out small-radius fuzzy processing to obtain a fuzzy image A 1
For the A 1 Carrying out iterative fuzzy processing to obtain N-1 fuzzy images A with gradually increased fuzzy radiuses 2 ,…,A N
5. An image blur effect implementation method for implementing a blur effect from sharpness to blur, the method comprising:
obtaining an original image B 0
Based on the B 0 Generating M blurred images with increasing blur radius { B 1 ,…,B M M is more than or equal to 1 and is an integer;
b, according to the arrangement order that the image with small blur radius is positioned above the image with large blur radius 0 ,B 1 ,…,B M Overlapping to form M +1 layers, wherein the top layer of the M +1 layers is B 0 The bottom layer is B M Initialization of M +1 layersThe transparency is 0;
starting from a top layer, adjusting the transparency of the top layer from 0 to 100%, determining whether a next layer is a bottom layer when the transparency of the top layer is adjusted to 100%, if so, stopping adjusting the transparency of the next layer, otherwise, continuously adjusting the transparency of the next layer until the transparency of a previous layer of the bottom layer is adjusted from 0 to 100%, and stopping adjusting the transparency of the layer;
when the transparency of the blurred image is adjusted, adjusting according to a preset rate, wherein the rate is obtained through algorithm training;
the algorithm comprises at least one of a neural network algorithm and a logistic regression algorithm.
6. An image blur effect realization device for realizing blur effect from blur to sharpness, the device comprising:
a first obtaining module for obtaining the original image A 0
A first generation module for generating a first generation module based on the A 0 Generating N blurred images with increasing blur radius { A 1 ,…,A N N is more than or equal to 1 and is an integer;
a first playback module, the first playback module comprising:
a second playing submodule for arranging the image A above the image with small blur radius according to the arrangement sequence that the image with large blur radius is arranged above the image with small blur radius 0 ,A 1 ,…,A N Overlapping to form N +1 layers, wherein a top layer of the N +1 layers is A N The bottom layer is A 0 The initial transparencies of the N +1 image layers are all 0;
starting from a top layer, adjusting the transparency of the top layer from 0 to 100%, determining whether a next layer is a bottom layer when the transparency of the top layer is adjusted to 100%, if so, stopping adjusting the transparency of the next layer, otherwise, continuing to adjust the transparency of the next layer until the transparency of a previous layer of the bottom layer is adjusted from 0 to 100%, and stopping adjusting the transparency of the layer;
when the transparency of the blurred image is adjusted, adjusting according to a preset rate, wherein the rate is obtained through algorithm training;
the algorithm comprises at least one of a neural network algorithm and a logistic regression algorithm.
7. The apparatus of claim 6, wherein the first playing module comprises:
a first play sub-module for playing A N-1 Is arranged in an overlapping manner at A N Below, and A N The transparency of (a) is adjusted from 0 to 100%;
when A is to be N When the transparency of (2) is adjusted to 100%, A is determined N-1 Whether or not it is A 0 If so, stopping adjusting the transparency of the image, otherwise, continuously overlapping the set image and the adjusted transparency of the image until A is equal to A 0 Is arranged in an overlapping manner at A 1 And A is 1 The transparency of (2) is adjusted from 0 to 100%, and the adjustment of the transparency of the image is stopped.
8. The apparatus of claim 6, wherein the fuzzy animation is a Gaussian fuzzy animation;
the first generation module comprises:
a first fuzzy processing submodule for applying a fuzzy algorithm to the A by 3 mean values 0 Performing blurring processing for N times to obtain N blurred images { A with gradually increased blur radii 1 ,…,A N }。
9. The apparatus of claim 6, wherein the fuzzy animation is a Gaussian fuzzy animation;
the first generation module comprises:
a second fuzzy processing submodule for processing A 0 Carrying out small-radius fuzzy processing to obtain a fuzzy image A 1
A third fuzzy processing submodule for processing A 1 Performing iterative fuzzy processing to obtain N-1 fuzzy radius stepsIncreased blurred image A 2 ,…,A N
10. An image blur effect realization device for realizing a blur effect from sharpness to blur, the device comprising:
a second obtaining module for obtaining the original image B 0
A second generating module for generating a second generation signal based on B 0 Generating M blurred images with increasing blur radius { B 1 ,…,B M M is more than or equal to 1 and is an integer;
a second playback module, the second playback module comprising:
a fourth play submodule for arranging the image B above the image with large blur radius according to the arrangement sequence that the image with small blur radius is arranged above the image with large blur radius 0 ,B 1 ,…,B M Overlapping to form M +1 layers, wherein the top layer of the M +1 layers is B 0 The bottom layer is B M The initial transparencies of the M +1 image layers are all 0;
starting from a top layer, adjusting the transparency of the top layer from 0 to 100%, determining whether a next layer is a bottom layer when the transparency of the top layer is adjusted to 100%, if so, stopping adjusting the transparency of the next layer, otherwise, continuously adjusting the transparency of the next layer until the transparency of a previous layer of the bottom layer is adjusted from 0 to 100%, and stopping adjusting the transparency of the layer;
when the transparency of the blurred image is adjusted, adjusting according to a preset rate, wherein the rate is obtained through algorithm training;
the algorithm comprises at least one of a neural network algorithm and a logistic regression algorithm.
11. An electronic device, characterized in that the electronic device comprises: memory, processor and computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps in the image blur effect implementation method according to any of claims 1 to 4.
12. 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 steps in the image blur effect implementation method according to any one of claims 1 to 4.
CN201910545197.XA 2019-06-21 2019-06-21 Image blurring effect implementation method and device, electronic equipment and storage medium Active CN110335223B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910545197.XA CN110335223B (en) 2019-06-21 2019-06-21 Image blurring effect implementation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910545197.XA CN110335223B (en) 2019-06-21 2019-06-21 Image blurring effect implementation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110335223A CN110335223A (en) 2019-10-15
CN110335223B true CN110335223B (en) 2022-08-05

Family

ID=68142280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910545197.XA Active CN110335223B (en) 2019-06-21 2019-06-21 Image blurring effect implementation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110335223B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301628A (en) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 Method and device for carrying out dynamic blurring on image and electronic equipment
CN104537697A (en) * 2014-12-17 2015-04-22 久邦计算机技术(广州)有限公司 Implementation method for progressively blurred animation
CN105513027A (en) * 2016-01-06 2016-04-20 天脉聚源(北京)科技有限公司 Fuzzy processing method and device
CN107092684A (en) * 2017-04-21 2017-08-25 腾讯科技(深圳)有限公司 Image processing method and device, storage medium
CN108122194A (en) * 2017-11-28 2018-06-05 沈阳美行科技有限公司 A kind of method and device of image luminescence

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002025589A1 (en) * 2000-09-20 2002-03-28 Nik Multimedia, Inc. Digital image sharpening system
JP4476040B2 (en) * 2004-06-21 2010-06-09 株式会社バンダイナムコゲームス Program, information storage medium, and image generation system
CN105023252A (en) * 2015-07-14 2015-11-04 厦门美图网科技有限公司 Method and system for enhancement processing of beautified image and shooting terminal
CN105528555A (en) * 2015-12-01 2016-04-27 杭州安司源科技有限公司 Information display protection method using covering graph and information transmission method
CN107797783A (en) * 2017-10-25 2018-03-13 广东欧珀移动通信有限公司 Control method, control device and computer-readable recording medium
CN108564539B (en) * 2018-01-04 2021-04-16 网宿科技股份有限公司 Method and device for displaying image

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301628A (en) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 Method and device for carrying out dynamic blurring on image and electronic equipment
CN104537697A (en) * 2014-12-17 2015-04-22 久邦计算机技术(广州)有限公司 Implementation method for progressively blurred animation
CN105513027A (en) * 2016-01-06 2016-04-20 天脉聚源(北京)科技有限公司 Fuzzy processing method and device
CN107092684A (en) * 2017-04-21 2017-08-25 腾讯科技(深圳)有限公司 Image processing method and device, storage medium
CN108122194A (en) * 2017-11-28 2018-06-05 沈阳美行科技有限公司 A kind of method and device of image luminescence

Also Published As

Publication number Publication date
CN110335223A (en) 2019-10-15

Similar Documents

Publication Publication Date Title
CN109670558B (en) Digital image completion using deep learning
Zhou et al. Lednet: Joint low-light enhancement and deblurring in the dark
US10452920B2 (en) Systems and methods for generating a summary storyboard from a plurality of image frames
US8570319B2 (en) Perceptually-based compensation of unintended light pollution of images for projection display systems
CN111587447A (en) Frame-cycled video super-resolution
CN106534675A (en) Method and terminal for microphotography background blurring
US20100088624A1 (en) Animation tool
CN101640759B (en) Image processing apparatus and image processing method
CN102629460B (en) Method and apparatus for controlling frame frequency of liquid crystal display
CN112868224B (en) Method, apparatus and storage medium for capturing and editing dynamic depth image
CN112823379A (en) Method and device for training machine learning model and device for video style transfer
WO2017101390A1 (en) Picture display method and apparatus
CN107578375B (en) Image processing method and device
Mejjati et al. Look here! a parametric learning based approach to redirect visual attention
CN104714963A (en) Video poster image and video brief introduction information display method and browser
CN110335223B (en) Image blurring effect implementation method and device, electronic equipment and storage medium
CN114630057A (en) Method and device for determining special effect video, electronic equipment and storage medium
US11735144B2 (en) Image display apparatus and image displaying method
CN112464301A (en) Image display method and device
CN111724306A (en) Image reduction method and system based on convolutional neural network
US20230015117A1 (en) Deep Saliency Prior
CN115131247A (en) Image processing method and device, storage medium and electronic equipment
CN112668619B (en) Image processing method, device, terminal and storage medium
KR20210088399A (en) Image processing apparatus and method thereof
Wen et al. Fast splitting algorithm for multiframe total variation blind video deconvolution

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