Method and apparatus for producing a raster animation
By automatically overlaying raster board controls onto the animation base map and controlling their movement, the problem of complex and inefficient raster animation production is solved, thus simplifying the production process and improving efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- VIVO MOBILE COMM CO LTD
- Filing Date
- 2023-11-13
- Publication Date
- 2026-06-23
AI Technical Summary
The existing raster animation production process is complex, inefficient, and has a high production threshold.
By automatically overlaying a matching raster panel control onto the animation background, the movement of raster stripes or the background image can be controlled, thus achieving automatic demonstration of raster animation effects.
It reduces user involvement steps, lowers production difficulty, and improves the production efficiency of raster animation.
Smart Images

Figure CN117576281B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of image processing technology, specifically relating to a method and apparatus for creating raster animation. Background Technology
[0002] Raster animation, also known as moiré stripe animation, uses a raster plate to move across a base image, allowing the user's brain to automatically fill in the complete pattern based on the lines seen, thus creating an animation effect.
[0003] In related technologies, the "raster animation" effect is usually created by users using image editing software to edit multiple images to create an animation background. Then, a raster plate is placed on top of the animation background. At this point, users can manually move the raster plate on the animation background to demonstrate the raster animation effect.
[0004] However, the production process of the above-mentioned raster animation is not only complex but also has a high threshold, resulting in low efficiency in the entire raster animation production process. Summary of the Invention
[0005] The purpose of this application is to provide a method and apparatus for creating raster animation, which can improve the efficiency of raster animation production.
[0006] In a first aspect, embodiments of this application provide a method for creating raster animation, the method comprising: displaying a first animation base image, the first animation base image being generated based on first raster stripe parameters; superimposing a raster plate control having the first raster stripe parameters on the first animation base image; and controlling the movement of the raster stripes or the first animation base image in the raster plate control.
[0007] Secondly, embodiments of this application provide a raster animation production apparatus, which includes a display module and a control module. The display module is used to display a first animation base image, which is generated based on first raster stripe parameters; and to overlay and display a raster plate control having the first raster stripe parameters on the first animation base image; the control module is used to control the movement of the raster stripes in the raster plate control displayed by the display module or the first animation base image displayed by the display module.
[0008] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0009] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0010] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0011] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0012] In this embodiment, the electronic device displays a first animation background image, which is generated based on first raster stripe parameters. A raster panel control with the first raster stripe parameters is overlaid on the first animation background image. The electronic device can then control the movement of the raster stripes or the first animation background image within the raster panel control to demonstrate a raster animation effect. In this solution, by automatically overlaying a matching raster panel control onto the first animation background image, the electronic device can automatically demonstrate a raster animation effect by controlling the movement of the raster stripes or the first animation background image within the raster panel control. This not only reduces user intervention steps but also lowers the difficulty of raster animation production and improves production efficiency. Attached Figure Description
[0013] Figure 1 This is one of the flowcharts of a raster animation production method provided in the embodiments of this application;
[0014] Figure 2A This is one of the example diagrams of an animation base map provided in the embodiments of this application;
[0015] Figure 2B This is a second example of an animation background image provided in the embodiments of this application;
[0016] Figure 2C This is a third example of an animation background image provided in the embodiments of this application;
[0017] Figure 3 This is a schematic diagram illustrating an example of displaying an animated background image in a photo album interface for click input, as provided in this application embodiment.
[0018] Figure 4 This is a schematic diagram illustrating an example of displaying a raster panel control on an animation background provided in an embodiment of this application;
[0019] Figure 5This is a second flowchart of a method for creating raster animation provided in an embodiment of this application;
[0020] Figure 6 This is the third flowchart of a method for creating raster animation provided in this application embodiment;
[0021] Figure 7A This is one of the example schematic diagrams of the ball image provided in the embodiments of this application;
[0022] Figure 7B This is a second example of a schematic diagram of a small ball image provided in an embodiment of this application;
[0023] Figure 7C This is the third example of a schematic diagram of a small ball image provided in the embodiments of this application;
[0024] Figure 8A This is one of the example schematic diagrams of puppy images provided in the embodiments of this application;
[0025] Figure 8B This is a second example of a schematic diagram of a puppy image provided in an embodiment of this application;
[0026] Figure 8C This is the third example of a schematic diagram of a puppy image provided in the embodiments of this application;
[0027] Figure 9 This is the fourth flowchart of a method for creating raster animation provided in this application embodiment;
[0028] Figure 10 This is a schematic diagram of an example of the shooting interface provided in an embodiment of this application;
[0029] Figure 11 This is the fifth flowchart of a method for creating raster animation provided in the embodiments of this application;
[0030] Figure 12A This is provided by the embodiments of this application. Figure 7A A schematic diagram illustrating an example of the processed image of the small ball shown.
[0031] Figure 12B This is provided by the embodiments of this application. Figure 7B A schematic diagram illustrating an example of the processed image of the small ball shown.
[0032] Figure 12C This is provided by the embodiments of this application. Figure 7C A schematic diagram illustrating an example of the processed image of the small ball shown.
[0033] Figure 13 This is a schematic diagram illustrating an example of the animation base map creation method provided in this application embodiment;
[0034] Figure 14 This is the sixth flowchart of a method for creating raster animation provided in this application embodiment;
[0035] Figure 15 This is one of the structural schematic diagrams of a raster animation production device provided in the embodiments of this application;
[0036] Figure 16 This is a second schematic diagram of the structure of a raster animation production device provided in this application embodiment;
[0037] Figure 17 This is one of the hardware structure diagrams of an electronic device provided in the embodiments of this application;
[0038] Figure 18 This is a second schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0039] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0040] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0041] The terms "at least one," "at least one of," etc., used in the specification and claims of this application refer to any one, any two, or a combination of two or more of the included items. For example, at least one of a, b, and c can mean: "a," "b," "c," "a and b," "a and c," "b and c," and "a, b, and c," where a, b, and c can be single or multiple. Similarly, "at least two" refers to two or more items, and its meaning is similar to that of "at least one."
[0042] The following description, in conjunction with the accompanying drawings, details the raster animation production method and apparatus provided in this application through specific embodiments and application scenarios.
[0043] The raster animation production method and apparatus provided in this application embodiment involve an electronic device displaying a first animation base image, which is generated based on first raster stripe parameters. Furthermore, a raster plate control with the first raster stripe parameters is overlaid on the first animation base image. The electronic device can then control the movement of the raster stripes or the first animation base image within the raster plate control. In this solution, by automatically overlaying a matching raster plate control onto the first animation base image, the electronic device can automatically demonstrate the raster animation effect by controlling the movement of the raster stripes or the first animation base image within the raster plate control. This not only reduces user intervention steps but also lowers the difficulty of raster animation production and improves production efficiency.
[0044] The raster animation production method provided in this application is executed by a raster animation production device. This device can be an independent device, an electronic device, or a functional module or entity within an electronic device. This application does not limit the specific device in this regard. The following will use an electronic device as an example to illustrate the raster animation production method provided in this application.
[0045] This application provides a method for creating raster animation. Figure 1 A flowchart illustrating a method for creating raster animation according to an embodiment of this application is shown. Figure 1 As shown, the raster animation production method provided in this application embodiment may include the following steps 201 to 203.
[0046] Step 201: The electronic device displays the first animation background image.
[0047] In this embodiment of the application, the first animation base map is generated based on the first raster stripe parameters.
[0048] In some embodiments of this application, the first grating stripe parameters include: grating stripe spacing and grating stripe width.
[0049] It should be noted that the above-mentioned raster stripe width is the width of the raster stripes shown in the raster animation, and the above-mentioned raster stripe interval is the interval between adjacent raster stripes shown in the raster animation.
[0050] It should be noted that the width of the grating stripes mentioned above is an integer multiple of the grating stripe spacing. For example, the grating stripe spacing in the first grating stripe parameter mentioned above can be 2, and the grating stripe width can be 4, which means the grating stripe width is twice the grating stripe spacing.
[0051] It should be noted that the width of the lenticular stripe spacing determines the clarity and detail of the lenticular animation; the smaller the lenticular stripe spacing, the clearer and more detailed the lenticular animation.
[0052] In some embodiments of this application, the first animation background image can be generated by the electronic device itself or can be received from other electronic devices. This application does not limit this.
[0053] In some embodiments of this application, when the first animation base map is an animation base map sent by another electronic device, the electronic device will also receive base map parameters used to generate the first animation base map at the same time as receiving the first animation base map.
[0054] For example, the base map parameters corresponding to the first animation base map include the first raster stripe parameters. Further, the base map parameters corresponding to the first animation base map may also include at least one of the following: the image size of the first animation base map, and the number of images used to generate the first animation base map.
[0055] In some embodiments of this application, the first animation base map is obtained based on at least two animation base maps.
[0056] It should be noted that each of the at least two animation base images mentioned above was generated based on the first raster stripe parameters. In other words, when stitching the animation base images, each animation base image used was generated based on the same raster stripe parameters.
[0057] Since raster animation relies primarily on an animation base image, a raster animation effect is created when the raster panel moves across the base image. Therefore, combining two or more animation base images allows us to obtain more detailed and richer animation base images.
[0058] In some embodiments of this application, the electronic device can combine the above-mentioned at least two animation base images in a first combination method to obtain the above-mentioned first animation base image, wherein the above-mentioned first combination method includes at least one of the following: superposition method and splicing method.
[0059] It should be noted that since an animated background image is essentially a transparent layer with content, and layers can be directly overlaid, multiple animated background images can be directly overlaid as long as the content within the overlay area does not overlap. Alternatively, electronic devices can directly merge at least two layers into one.
[0060] In some embodiments of this application, the splicing methods described above include, but are not limited to, top-bottom splicing and left-right splicing. The specific splicing method can be determined according to actual needs, and this application does not impose any limitations on it.
[0061] For example, in the process of an electronic device stitching together at least two animated background images in a top-bottom stitching manner, the alignment format of the at least two animated background images may include at least one of the following: center alignment format, left alignment format, or right alignment format.
[0062] For example, in the process of an electronic device stitching together at least two animated background images by means of left and right stitching, the alignment format of the at least two animated background images may include at least one of the following: center alignment format, top alignment format, or bottom alignment format.
[0063] In some embodiments of this application, the image size of the first animation base image is related to the image sizes of the at least two animation base images and the first combination method.
[0064] In some embodiments of this application, the image sizes of the at least two animated background images may be the same or different. For example, in a scenario where an electronic device stitches two animated background images together to form a first animated background image, the image height of the first animated background image is the maximum of the image heights of the two animated background images, and the image width of the first animated background image is the sum of the image widths of the two animated background images.
[0065] The following two examples illustrate the process of combining at least two animated background images.
[0066] Example 1: Animation background A1 is a background of a running mouse, and animation background A2 is a background of a running cat. Since the mouse in animation background A1 is located on the left side of the background, and the cat in animation background A2 is located on the right side, when animation backgrounds A1 and A2 are superimposed, the animated content "mouse" in A1 and the animated content "cat" in A2 do not overlap. Therefore, the electronic device can directly superimpose the two animation backgrounds to obtain animation background A3. Thus, when a raster control corresponding to animation background A3 is superimposed on animation background A3, the electronic device can control the raster stripes in the raster control or move animation background A3 to display a raster animation effect of a running mouse and a chasing cat.
[0067] Example 2, with Figure 2A The B1 animation base map shown, and Figure 2B Taking the B2 animation base image as an example, as shown Figure 2A As shown, the background image for animation B1 is a picture of a ball falling, as... Figure 2B As shown, the B2 animation background is a background image of a moving puppy. Electronic devices can directly stitch the two animation backgrounds side-by-side to obtain the result shown below. Figure 2CThe B3 animation background is shown. Thus, when a raster board control matching the B3 animation background is overlaid on it, the electronic device can control the raster stripes in the raster board control or move the B3 animation background, thereby displaying a raster animation effect of a ball falling from the sky and a dog chasing after it.
[0068] Step 202: The electronic device overlays a grating plate control with the first grating stripe parameter onto the first animation base image.
[0069] In some embodiments of this application, the grating plate control includes a plurality of grating stripes, and there is a gap between two adjacent grating stripes.
[0070] In some embodiments of this application, the grating stripes in the grating plate control described above can be multiple vertical stripes arranged horizontally or multiple horizontal stripes arranged vertically.
[0071] In some embodiments of this application, the control size of the above-mentioned raster plate control is smaller than or equal to the area size of the image display area of the electronic device.
[0072] In some embodiments of this application, the raster plate control described above is a raster plate control adapted to the first animation base map described above.
[0073] It is understood that the grating stripes in the aforementioned grating plate control satisfy the aforementioned first grating stripe parameter. That is, the width of the grating stripes in the aforementioned grating plate control is equal to the grating stripe width contained in the first grating stripe parameter, and the spacing of the grating stripes in the aforementioned grating plate control is equal to the grating stripe spacing contained in the first grating stripe parameter.
[0074] In some embodiments of this application, the electronic device can determine a raster control that is compatible with the first animation background image based on the first raster stripe parameters corresponding to the first animation background image, and then overlay and display the compatible raster control on top of the first animation background image.
[0075] In one possible example, the electronic device has multiple raster control panels pre-stored, each with different raster stripe parameters. After displaying the first animation background, the electronic device can directly overlay the raster control panel with the first raster stripe parameter onto the first animation background.
[0076] In one possible example, the electronic device is equipped with a raster control that has multiple raster stripe patterns, each of which corresponds to different raster stripe parameters. After displaying a first animation background, the electronic device can overlay the raster control on the first animation background and set the raster stripe pattern in the raster control to the raster stripe pattern corresponding to the first raster stripe parameters.
[0077] In one possible example, after displaying the first animation background, the electronic device can generate a raster control with the first raster stripe parameters based on the first raster stripe parameters, and then overlay the raster control onto the first animation background. In other words, when displaying the raster control, the electronic device can draw corresponding raster stripes based on the first raster stripe parameters.
[0078] In some embodiments of this application, the electronic device receives a first input from a user and, in response to the first input, overlays and displays a raster plate control having a first raster stripe parameter on the first animation background.
[0079] For example, the first input described above is used to trigger an electronic device to perform a raster animation demonstration.
[0080] For example, the first input can be input from the user to any area on the first animation background image. Alternatively, if a playback control is displayed simultaneously with the first animation background image on the electronic device, the first input can be input from the user to that playback control.
[0081] For example, the first input mentioned above can be a user's click input, double-click input, long-press input, or other possible inputs. The specific input form can be determined according to actual needs, and this application does not limit it here.
[0082] For example, in conjunction with Example 2, such as Figure 3 As shown, when the phone displays a B3 animated background image through the album interface 10, if the user wants to display the raster animation effect corresponding to the B3 animated background image, they can click on the B3 animated background image, i.e., the first input mentioned above. At this time, as shown... Figure 4 As shown, it can trigger the electronic device to overlay and display the raster panel control 11 on the B3 animation base map.
[0083] Step 203: The electronic device controls the movement of the raster stripes or the first animation background in the raster plate control.
[0084] In some embodiments of this application, the electronic device controls the grating stripes or the first animation background in the grating plate control to move at a first moving speed.
[0085] It should be noted that once the raster stripes or the first animation background in the raster panel control begin to move, the raster animation effect corresponding to the first animation background will also be displayed, making it visible to the human eye.
[0086] It should be noted that the movement speed of the raster stripes or the first animation background in the raster panel control determines the final playback rate of the raster animation. The faster the movement speed, the faster the playback rate of the raster animation.
[0087] It should be noted that the playback rate of the above-mentioned raster animation can be considered as the demonstration speed of the raster animation effect. For example, for an animated background image of a running mouse, the faster the raster stripes in the raster control superimposed on it move, the faster the mouse will run in the final raster animation effect.
[0088] In some embodiments of this application, the first moving speed can be a preset speed or a speed set by the user.
[0089] In some embodiments of this application, the direction of movement of the grating stripes or the first animation background in the grating plate control of the electronic device is perpendicular to the direction of movement of the grating stripes in the grating plate control.
[0090] For example, when the raster stripes in the raster panel control are multiple vertical stripes arranged horizontally, the movement direction is horizontal. For example, combined with Figure 4 When the grating stripes in the grating plate control are multiple vertical stripes arranged horizontally, the grating stripes can be moved to the left or right.
[0091] For example, when the grating stripes in the grating panel control are multiple horizontal stripes arranged vertically, the direction of movement is vertical. For instance, when the grating stripes in the grating panel control are multiple horizontal stripes arranged vertically, the grating stripes can move upwards or downwards.
[0092] In some embodiments of this application, combined with Figure 1 ,like Figure 5 As shown, step 203 can be implemented through step 203a or step 203b.
[0093] Step 203a: When the image size of the first animation base image is larger than the control size of the raster board control, the electronic device controls the first animation base image to move.
[0094] Step 203b: When the image size of the first animation base image is less than or equal to the control size of the raster control, the electronic device controls the movement of the raster stripes in the raster control.
[0095] In some embodiments of this application, when the image size of the first animation background is larger than the control size of the raster panel control, i.e., for scenarios where the image size of the first animation background is large, the electronic device can display the raster animation effect by moving the first animation background and keeping the raster panel control stationary.
[0096] It is understandable that when the first animation base image forms a long scroll with enough content and logical coherence, the electronic device cannot display all the content of the first animation base image in the album interface. At this time, the electronic device can cover the entire display area with the raster panel control, keep it still, and control the movement of the first animation base image. Since the animation base image contains enough content and logical coherence, the raster animation displayed by the electronic device will be similar to an animated film with a storyline.
[0097] In some embodiments of this application, when the image size of the first animation background is smaller than the control size of the raster plate control, that is, in scenarios where the image size of the first animation background is small and the background content is limited, the electronic device can directly display the entire content of the first animation background, and then display the raster animation effect by controlling the movement of the raster stripes in the raster plate control.
[0098] In this way, the electronic device can determine the moving object based on the image size of the first animation background and the size of the raster control, thereby improving the flexibility of the electronic device in demonstrating raster animation. At the same time, when the first animation background is large, the electronic device can better display the content contained in the background animation by controlling the movement of the animation background, thus improving the demonstration effect of the raster animation.
[0099] In some embodiments of this application, after the electronic device controls the movement of the raster stripes or the first animation background in the raster plate control, the electronic device may also receive a second input from the user and, in response to the second input, control the raster stripes or the first animation background in the raster plate control to pause the movement, thereby stopping the raster animation demonstration.
[0100] In the raster animation production method provided in this application embodiment, an electronic device displays a first animation base image, which is generated based on first raster stripe parameters. Furthermore, a raster panel control with the first raster stripe parameters is overlaid on the first animation base image. The electronic device can then control the movement of the raster stripes or the first animation base image within the raster panel control to demonstrate the raster animation effect. In this solution, by automatically overlaying a matching raster panel control onto the first animation base image, the electronic device can automatically demonstrate the raster animation effect by controlling the movement of the raster stripes or the first animation base image within the raster panel control. This not only reduces user intervention steps but also lowers the difficulty of raster animation production and improves production efficiency.
[0101] In some embodiments of this application, combined with Figure 1 ,like Figure 6 As shown, prior to step 201 above, the raster animation production method provided in this application embodiment further includes steps 301 and 302.
[0102] Step 301: The electronic device acquires N frames of the first image.
[0103] In this embodiment of the application, N is an integer greater than 1.
[0104] In this embodiment of the application, at least two of the above N frames of the first image include the first subject being photographed.
[0105] In some embodiments of this application, at least one of the pose and position of the first photographed object is different in each of the above-mentioned at least two frames of images.
[0106] In some embodiments of this application, the aforementioned N-frame first images can be: N-frame first images obtained by continuous shooting, or N-frame image frames in a recorded video, or N-frame first images with similar content.
[0107] It should be noted that the smoothness of the raster animation effect is related to the number of frames in the first image. For example, the more frames in the first image, the smoother the movement of the subject in the final raster animation effect.
[0108] The following two examples will be used to illustrate the first image of the above N frames.
[0109] Example 3, such as Figures 7A to 7C As shown, Figures 7A to 7C The ball is positioned differently in the three images shown. Figure 7A The small ball in the image shown is located in the top area of the image. Figure 7B The ball shown in the image is located in the middle region of the image. Figure 7C The ball shown in the image is located in the bottom area of the image.
[0110] Example 4, such as 8A to Figure 8C As shown, Figures 8A to 8C The three images of puppies shown all depict puppies in different poses. Figure 8A The puppy in the image shown is standing. Figure 8B The puppy in the image shows raising one front leg. Figure 8C The image shown depicts a puppy raising one of its hind legs.
[0111] It should be noted that the above Figures 7A to 7C and Figures 8A to 8C The box in the image is only used to indicate the image size and is not displayed in actual applications.
[0112] In some embodiments of this application, combined with Figure 6 ,like Figure 9 As shown, step 301 can be implemented through steps 301a and 301b.
[0113] Step 301a: The electronic device acquires N frames of the fourth image.
[0114] Step 301b: The electronic device removes all image content except for the subject from each frame of the fourth image to obtain the N frames of the first image.
[0115] In this embodiment of the application, the fourth image is the original image obtained by the electronic device through shooting or recording video.
[0116] In some embodiments of this application, the subject being photographed may be a subject automatically detected by the electronic device from the fourth image, or it may be a subject selected by the user.
[0117] In some embodiments of this application, the phrase "the electronic device removes image content other than the subject in each frame of the fourth image" can be understood as: the electronic device removes image content other than the image content corresponding to the subject from the fourth image, or the electronic device sets the image content other than the image content corresponding to the subject in the fourth image to a solid color different from the color of the subject. For example, as... Figures 8A to 8C As shown, electronic devices can remove Figures 8A to 8C Extract all content except for the puppy. Figures 8A to 8C The corresponding multiple frames are images of puppies with different motion postures.
[0118] In some embodiments of this application, the electronic device can remove the image background in the fourth image to extract the moving subject from multiple frames of the fourth image, thereby reducing the impact of the image background in the image on the animation base map production process and improving the demonstration effect of raster animation.
[0119] In some embodiments of this application, step 301a above can be specifically implemented by step 301a1 below.
[0120] Step 301a1: The electronic device captures N frames of fourth images, or records a first video, wherein the aforementioned N frames of fourth images are video frame images within a first time period in the first video.
[0121] In some embodiments of this application, the above-mentioned "capturing N frames of fourth images" can be: N frames of fourth images obtained by the electronic device through continuous shooting, or multiple similar images captured by the electronic device within a certain time period.
[0122] For example, such as Figure 10 As shown, when the phone displays the image capture interface 12, the user can point the phone at a puppy and press and hold the capture button 13 to capture multiple frames of the puppy through continuous shooting, and then select the image from them. Figures 8A to 8CImages of puppies in different poses and movements are shown.
[0123] In some embodiments of this application, the aforementioned "video frame image within the first time period" refers to the video frame corresponding to the video within the time period selected by the user in the first video.
[0124] For example, when the phone displays a video recording interface, a user can point the phone at a small dog and tap the record button to start recording video. After the user taps the record button again, the phone stops recording, resulting in a video clip containing the dog. The user can then select a time segment of video frames in the video editing interface, such as 5 to 6 seconds, so that the phone can capture... Figures 8A to 8C Images of puppies in different poses and movements are shown.
[0125] It should be noted that after acquiring multiple consecutive images by shooting or recording video, the electronic device can use all the captured images or select some images to create raster animation.
[0126] In this embodiment of the application, the electronic device can acquire multiple consecutive images by shooting or recording video. The electronic device can then create an animation base map for raster animation based on these multiple consecutive images, so that the raster animation effect of the demonstration is more continuous and the demonstration effect of the raster animation is improved.
[0127] Step 302: The electronic device generates a first animation base map based on the first grating stripe parameters and N frames of the first image.
[0128] In some embodiments of this application, the first grating stripe parameter can be a parameter preset by the electronic device or a parameter set by the user.
[0129] In some embodiments of this application, after the electronic device acquires N frames of the first image, the electronic device may display a settings window, which is used to prompt the user to manually set or modify the first grating stripe parameters corresponding to the N frames of the first image.
[0130] In this embodiment, the electronic device can automatically generate a first animation base map based on the acquired first grating stripe parameters and N frames of first images, thereby eliminating the need for excessive user involvement in the animation base map production process, reducing the complexity of the grating animation production process, and lowering the production threshold, thus improving the efficiency of grating animation production.
[0131] In some embodiments of this application, combined with Figure 9 ,like Figure 11 As shown, step 302 can be implemented through steps 401 to 403 as described below.
[0132] Step 401: The electronic device divides the i-th frame of the first image in N frames of the first image into regions according to the first grating stripe parameters, and obtains M first stripe regions.
[0133] In this embodiment of the application, i ∈ [1, ..., N].
[0134] In some embodiments of this application, each of the M first strip regions contains N sub-strip regions.
[0135] It should be noted that the area size of each of the M first strip regions mentioned above is the same.
[0136] It should be noted that all sub-strip regions within each of the M first strip regions have the same region size.
[0137] In some embodiments of this application, after acquiring N frames of the first image, the electronic device can determine that the final playback period of the raster animation is N, that is, the raster animation can be played in a loop once every N frames. Then, the electronic device can divide each frame of the first image into equal intervals based on the first raster stripe parameters, and take each N sub-strip regions as a period, and group the sub-strip regions within each period into a group to form a first strip region.
[0138] For example, for the first image of the i-th frame, the electronic device can divide the first image of the i-th frame into M×N sub-strip regions based on the image size of the first image of the i-th frame and the grating stripe width in the first grating stripe parameter. The width of each sub-strip region is the same as the grating stripe width. Then, the electronic device can group every N sub-strip regions together to obtain M first strip regions.
[0139] Example 5, combined with Example 4 above, with Figures 7A to 7C For example, suppose Figures 7A to 7C Each image of a small ball in the image has a width of 12. If the user sets the raster stripe width to 1, then for... Figures 7A to 7C In each of the three images of the ball, the phone divides the ball image into 12 sub-strip regions, and divides every 3 sub-strip regions into a cycle. The sub-strip regions in each cycle are grouped together, and the 3 sub-strip regions in each group form a first strip region, forming a total of 4 first strip regions.
[0140] Step 402: The electronic device sets the transparency of the images in each first strip region of the first image of the i-th frame to the first transparency, except for the i-th sub-strip region, to the first transparency, thereby obtaining the processed first image of the i-th frame.
[0141] In some embodiments of this application, the first transparency is a preset transparency or a user-defined transparency. For example, the first transparency can be 100%.
[0142] It should be noted that the electronic device adjusts the transparency of the sub-strip area in order to reduce the impact of other sub-strip areas on the creation of the raster animation base map while preserving the i-th sub-strip area.
[0143] For example, the electronic device sets the transparency of the images in each first strip region of the first image in the i-th frame to 100%, i.e., a fully transparent state, except for the i-th sub-strip region.
[0144] For example, with Figures 7A to 7C Taking the image of the small ball shown as an example, and referring to Example 5 above, it can be seen that... Figure 7A The image of the small ball shown can be divided into four first strip regions, each containing three sub-strip regions. The phone can retain these regions. Figure 7A The image of the ball shown is the image of the sub-strip region labeled 1 in each of the first stripe regions. The transparency of the images in the other sub-strip regions within each of the first stripe regions is set to 100%, specifically the transparency of the images of the sub-strip regions labeled 2 and 3 within each of the first stripe regions. Thus, the image is obtained as shown. Figure 12A The image shown is of the processed ball. Similarly, for... Figure 7B The image of the small ball shown can be saved by the phone. Figure 7B The image shows the sub-strip region numbered 2 within each of the first striped regions of the ball image, with the transparency of the sub-strip regions numbered 1 and 3 within each of the first striped regions set to 100%, to obtain the image shown. Figure 12B The image shown is of the processed sphere. For Figure 7C The image of the small ball shown can be saved by the phone. Figure 7C The image shows the sub-strip region numbered 3 within each of the first striped regions of the ball image, with the transparency of the sub-strip regions numbered 1 and 2 within each of the first striped regions set to 100%, to obtain the image shown. Figure 12C The image shown is of the processed ball.
[0145] It is understood that for each of the above N first images, each first image can be processed by executing the above steps 401 and 402.
[0146] Step 403: The electronic device overlays the processed N frames of the first image to generate the first animation base image.
[0147] In some embodiments of this application, since the sub-strip regions included in each frame of the processed N-frame first image are different, that is, the superposition of the processed N-frame first images will not cause occlusion, the electronic device can directly superimpose the processed N-frame first images to obtain the first animation base image.
[0148] In other words, because the content retained in each sub-strip region of the processed first image is different—that is, the image content retained in each frame of the processed first image is spatially different—overlaying multiple frames of processed first images will not cause content occlusion. Furthermore, since the areas in each frame of the processed first image that do not retain image content are transparent, they can be directly overlaid layer by layer to form an animation base image.
[0149] For example, in conjunction with the above Figures 12A to 12C ,like Figure 13 As shown, due to Figures 12A to 12C The three images shown are essentially transparent layers with content, and these layers can be directly overlaid. Therefore, the phone can directly display them. Figures 12A to 12C By superimposing the results, we can obtain the following: Figure 2A The background image shown is an animation of a small ball falling.
[0150] Similarly, combining the above Figures 8A to 8C By performing steps 401 to 403 above, the following can be obtained: Figure 2B The background image shown is an animation of a puppy running.
[0151] In this embodiment, the electronic device processes N frames of the first image based on the first grating stripe parameters to automatically generate the first animation base map. This eliminates the need for excessive user involvement in the animation base map creation process, reduces the complexity of the grating animation production process, and lowers the production threshold, thereby improving the efficiency of grating animation production.
[0152] In some embodiments of this application, the above-mentioned N frames of first images include at least X frames of second images and X frames of third images, wherein the X frames of second images include a first subject, the X frames of third images include a second subject, X is an integer greater than 1, and the above-mentioned N is greater than or equal to 2X.
[0153] In some embodiments of this application, combined with Figure 9 ,like Figure 14 As shown, step 302 can be implemented through steps 501 to 503 as described below.
[0154] Step 501: The electronic device processes the second image of frame X according to the first grating stripe parameters to generate the second animation base map.
[0155] Step 502: The electronic device processes the third image of frame X according to the first grating stripe parameters to generate the third animation base map.
[0156] Step 503: The electronic device obtains the first animation base map based on the second and third animation base maps.
[0157] In some embodiments of this application, the second and third images described above are merely examples. In practical applications, the N frames of the first image may also include images of other subjects, enabling the electronic device to create a more comprehensive animated background.
[0158] In some embodiments of this application, the electronic device can combine the second animation base image and the third animation base image according to a first combination method to obtain the first animation base image. The first combination method includes overlaying or splicing.
[0159] It should be noted that the process of how the electronic device combines the second and third animation base images according to the first combination method to obtain the first animation base image can be referred to the detailed description above of the process of combining multiple animation base images into one animation base image. The specific combination method is the same in both cases, and will not be repeated here to avoid repetition.
[0160] It should be noted that the second animation base map generation process shown in step 501 above can be processed with reference to the animation base map generation process described in steps 401 to 403 above. To avoid repetition, it will not be described again here.
[0161] Similarly, the process of generating the third animation base map shown in step 502 above can be processed with reference to the animation base map generation process described in steps 401 to 403 above. To avoid repetition, it will not be described again here.
[0162] It should be noted that the present application embodiment does not limit the execution order of the above steps 501 and 502. Step 501 can be executed first and then step 502, or step 502 can be executed first and then step 501, or steps 501 and 502 can be executed simultaneously.
[0163] The above-described method embodiments, or various possible implementations of the method embodiments, can be executed individually, or, provided there are no contradictions, they can be combined with each other. The specific implementation can be determined according to actual usage requirements, and this application embodiment does not impose any restrictions on this.
[0164] It should be noted that the raster animation production method provided in this application embodiment can be executed by a raster animation production apparatus, an electronic device, or a functional module or entity within an electronic device. This application embodiment uses an electronic device executing the raster animation production method as an example to illustrate the raster animation production apparatus provided in this application embodiment.
[0165] Figure 15 A schematic diagram of a possible structure of the raster animation production apparatus involved in an embodiment of this application is shown. For example... Figure 15 As shown, the raster animation production device 70 may include a display module 71 and a control module 72.
[0166] The display module 71 is used to display a first animation base image, which is generated based on the first raster stripe parameters;
[0167] The display module 71 is also used to overlay and display a raster plate control with the first raster stripe parameter on the first animation base map;
[0168] The control module 72 is used to control the movement of the raster stripes or the first animation background in the raster panel control displayed by the display module 71.
[0169] In the raster animation production apparatus provided in this application embodiment, by automatically overlaying a raster plate control that matches the first animation base image, the raster animation production apparatus can automatically perform raster animation effect demonstration by controlling the movement of the raster stripes or the first animation base image in the raster plate control. The entire animation production process not only reduces the user's participation steps, but also reduces the difficulty of raster animation production and improves the production efficiency of raster animation.
[0170] In one possible implementation, the control module 72 is specifically used to control the movement of the first animation background image displayed by the display module 71 when the image size of the first animation background image is larger than the control size of the raster plate control.
[0171] In one possible implementation, the aforementioned first animation base map is obtained based on at least two animation base maps, each of which is generated based on the first raster stripe parameters.
[0172] In one possible implementation, combining Figure 15 ,like Figure 16As shown in the embodiment of this application, the raster animation production apparatus 70 further includes an acquisition module 73 and a generation module 74. The acquisition module 73 is used to acquire N frames of first images before the display module 71 displays the first animation base image, wherein at least two frames of the N frames include a first photographed object, and N is an integer greater than 1. The generation module 74 is used to generate the first animation base image based on the first raster stripe parameters and the N frames of first images acquired by the acquisition module 73.
[0173] In one possible implementation, the generation module 74 is specifically used to divide the i-th frame of the first image in N frames of the first image into regions according to the first grating stripe parameters, to obtain M first strip regions, each of which contains N sub-strip regions; to set the transparency of the images in each of the first strip regions of the first image in the i-th frame to the first transparency of the images in the other sub-strip regions except the i-th sub-strip region, to obtain the processed i-th frame of the first image, i∈[1,……,N]; and to superimpose the processed N frames of the first image to generate the first animation base image.
[0174] In one possible implementation, the aforementioned N first images include at least X second images and X third images, where the X second images contain a first photographed object, and the X third images contain a second photographed object, and X is an integer greater than 1. The aforementioned generation module 74 is specifically used to process the X second images according to the first raster stripe parameters to generate a second animation base image; and to process the X third images according to the first raster stripe parameters to generate a third animation base image; and to obtain a first animation base image based on the second and third animation base images.
[0175] In one possible implementation, the acquisition module 73 is specifically used to acquire N frames of fourth images, and remove the image content other than the subject from each frame of the fourth image to obtain N frames of first images.
[0176] In one possible implementation, the acquisition module 73 is specifically used to capture N frames of the fourth image; or to record a first video, wherein the N frames of the fourth image are video frame images within a first time period in the first video.
[0177] The raster animation production device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0178] The raster animation production apparatus in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.
[0179] The raster animation production apparatus provided in this application embodiment can realize all the processes implemented in the above method embodiments, and will not be described again here to avoid repetition.
[0180] Optionally, such as Figure 17 As shown, this application embodiment also provides an electronic device 90, including a processor 91 and a memory 92. The memory 92 stores a program or instructions that can run on the processor 91. When the program or instructions are executed by the processor 91, they implement the various steps of the above-described raster animation production method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0181] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0182] Figure 18 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0183] The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
[0184] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 18 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0185] The display unit 106 is used to display a first animation background image, which is generated based on a first raster stripe parameter; the display unit 106 is also used to overlay a raster plate control with the first raster stripe parameter on the first animation background image; the processor 110 is used to control the movement of the raster stripes or the first animation background image in the raster plate control displayed by the display unit 106.
[0186] In the electronic device provided in this application embodiment, the electronic device automatically overlays a matching lenticular panel control onto the first animation base image, so that the electronic device can automatically perform lenticular animation effect demonstration by controlling the movement of the lenticular stripes or the first animation base image in the lenticular panel control. The entire animation production process can not only reduce the user's participation steps, but also reduce the difficulty of lenticular animation production and improve the production efficiency of lenticular animation.
[0187] Optionally, the processor 110 is specifically configured to control the movement of the first animation background image displayed by the display unit 106 when the image size of the first animation background image is larger than the control size of the raster control.
[0188] Optionally, the first animation base map is obtained based on at least two animation base maps, each of which is generated based on the first raster stripe parameters.
[0189] Optionally, the input unit 104 is configured to acquire N frames of first images before the display unit 106 displays the first animation base map, wherein at least two of the N frames of first images include the first photographed object, and N is an integer greater than 1. The processor 110 is further configured to generate the first animation base map based on the first raster stripe parameters and the N frames of first images.
[0190] Optionally, the processor 110 is specifically configured to divide the i-th frame of the first image in N frames of the first image into regions according to the first grating stripe parameters, to obtain M first strip regions, each of which contains N sub-strip regions; to set the transparency of the images in the sub-strip regions other than the i-th sub-strip region in each first strip region of the first image of the i-th frame to the first transparency, to obtain the processed i-th frame of the first image, i∈[1,……,N]; and to superimpose the processed N frames of the first image to generate a first animation base image.
[0191] Optionally, the aforementioned N first images include at least X second images and X third images, where the X second images contain a first photographed object and the X third images contain a second photographed object, and X is an integer greater than 1. The processor 110 is specifically configured to process the X second images according to the first raster stripe parameters to generate a second animation base image, process the X third images according to the first raster stripe parameters to generate a third animation base image, and obtain a first animation base image based on the second and third animation base images.
[0192] Optionally, the input unit 104 is specifically used to acquire N frames of fourth images, and remove the image content other than the subject from each frame of the fourth image to obtain N frames of first images.
[0193] Optionally, the input unit 104 is specifically used to capture N frames of the fourth image; or, to record a first video, wherein the N frames of the fourth image are video frame images within a first time period in the first video.
[0194] The electronic device provided in this application embodiment can implement the various processes implemented in the above method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0195] For details on the beneficial effects of the various implementation methods in this embodiment, please refer to the beneficial effects of the corresponding implementation methods in the above method embodiments. To avoid repetition, these will not be repeated here.
[0196] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.
[0197] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0198] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.
[0199] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0200] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0201] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0202] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0203] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above method embodiments and achieve the same technical effects. To avoid repetition, it will not be described again here.
[0204] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0205] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0206] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A method for producing raster animation, characterized in that, The method includes: Display a first animation base image, which is generated based on a first raster stripe parameter; On the first animation base image, a grating plate control with the first grating stripe parameters is overlaid and displayed. Control the movement of the raster stripes or the first animation background in the raster plate control.
2. The method according to claim 1, characterized in that, The control of the movement of the first animation base image includes: If the image size of the first animation base image is larger than the control size of the raster panel control, the first animation base image is controlled to move.
3. The method according to claim 1 or 2, characterized in that, The first animation base map is obtained based on at least two animation base maps, each of which is generated based on the first raster stripe parameters.
4. The method according to claim 1, characterized in that, Before displaying the first animation base image, the method further includes: Acquire N frames of first images, wherein at least two of the N frames of first images include the first subject being captured, and N is an integer greater than 1; The first animation base map is generated based on the first grating stripe parameters and the N frames of the first image.
5. The method according to claim 4, characterized in that, The step of generating the first animation base map based on the first grating stripe parameters and the N frames of the first image includes: Based on the first grating stripe parameters, the i-th frame of the first image in the N frames of the first image is divided into regions to obtain M first strip regions, each of which contains N sub-strip regions; In each of the first strip regions of the i-th frame of the first image, the transparency of the images in the other sub-strip regions, except for the i-th sub-strip region, is set to the first transparency, so as to obtain the processed i-th frame of the first image, i∈[1,……,N]; The processed N frames of the first image are superimposed to generate the first animation base image.
6. The method according to claim 4, characterized in that, The N first images contain at least X second images and X third images, the X second images contain the first subject, the X third images contain the second subject, and X is an integer greater than 1; The step of generating the first animation base map based on the first grating stripe parameters and the N frames of the first image includes: The second image of the X frames is processed according to the first grating stripe parameters to generate a second animation base map; According to the first grating stripe parameters, the third image of the X frame is processed to generate a third animation base map; The first animation base image is obtained based on the second animation base image and the third animation base image.
7. The method according to any one of claims 4-6, characterized in that, The acquisition of N frames of the first image includes: Obtain the fourth image from frame N; Remove all image content except for the subject from the fourth image of each frame to obtain the first image of the N frames.
8. A raster animation production apparatus, characterized in that, The device includes: a display module and a control module; The display module is used to display a first animation background image, which is generated based on a first raster stripe parameter; The display module is also used to overlay and display a grating plate control having the first grating stripe parameters on the first animation base image; The control module is used to control the movement of the raster stripes or the first animation background image in the raster panel control displayed by the display module.
9. The apparatus according to claim 8, characterized in that, The control module is specifically used to control the movement of the first animation background image displayed by the display module when the image size of the first animation background image is larger than the control size of the raster plate control.
10. The apparatus according to claim 8 or 9, characterized in that, The first animation base map is obtained based on at least two animation base maps, each of which is generated based on the first raster stripe parameters.
11. The apparatus according to claim 8, characterized in that, The device further includes: an acquisition module and a generation module; The acquisition module is used to acquire N frames of first images before the display module displays the first animation background image, wherein at least two of the N frames of first images include the first shooting object; The generation module is used to generate the first animation base map based on the first raster stripe parameters and the N frames of the first image obtained by the acquisition module, where N is an integer greater than 1.
12. The apparatus according to claim 11, characterized in that, The generation module is specifically used for: Based on the first grating stripe parameters, the i-th frame of the first image in the N frames of the first image is divided into regions to obtain M first strip regions, each of which contains N sub-strip regions; In each of the first strip regions of the i-th frame of the first image, the transparency of the images in the other sub-strip regions, except for the i-th sub-strip region, is set to the first transparency, so as to obtain the processed i-th frame of the first image, i∈[1,……,N]; The processed N frames of the first image are superimposed to generate the first animation base image.
13. The apparatus according to claim 11, characterized in that, The N first images contain at least X second images and X third images, the X second images contain the first subject, the X third images contain the second subject, and X is an integer greater than 1; The generation module is specifically used to process the second image of the X-frame according to the first raster stripe parameters to generate a second animation base image, process the third image of the X-frame according to the first raster stripe parameters to generate a third animation base image, and obtain the first animation base image based on the second animation base image and the third animation base image.
14. The apparatus according to any one of claims 11-13, characterized in that, The acquisition module is specifically used to acquire N frames of fourth images, and remove image content other than the subject from each frame of the fourth image to obtain the N frames of first images.