Shooting method, device, electronic device and readable storage medium
By shooting and synthesizing multiple images at preset shooting time intervals when receiving user input, a single frame image cannot display the momentum attributes of fast moving objects are solved, and high-quality motion trajectory display is achieved.
Patent Information
- Application Number
- CN202211263056.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-14
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2042-10-14
AI Technical Summary
In the prior art, a single frame image can only obtain short-term shadows of fast moving objects, and cannot fully display its momentum attributes. The video editing process is cumbersome and affects the image quality.
When a user input is received, multiple images are captured at a preset shooting time interval, and images are filtered and synthesized according to the motion parameters of the moving object to obtain the motion trajectory.
Conveniently capture an image with both clear moving objects and motion trajectories, fully displaying the momentum properties of fast moving objects, and improving imaging quality.
Smart Images

Figure CN115914859B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology, and specifically relates to a shooting method, device, electronic device and readable storage medium. Background Art
[0002] With the development of science and technology, the functions of electronic devices have become more and more diversified, not only enabling more convenient communication, but also bringing more entertainment to people's lives. In particular, users can use electronic devices to capture images and record every detail of their lives.
[0003] In the related art, users can obtain images of fast-moving objects by continuously shooting single-frame images. However, single-frame images can only obtain images with brief afterimages and cannot fully display the momentum properties of fast-moving objects. Summary of the Invention
[0004] The purpose of the embodiments of the present application is to provide a shooting method, device, electronic device and readable storage medium, which can solve the problem that the current single-frame image can only obtain a picture with a short afterimage and cannot fully display the momentum properties of fast-moving objects.
[0005] In a first aspect, an embodiment of the present application provides a photographing method, which is applied to an electronic device. The photographing method may include:
[0006] Upon receiving a first input from a user, capturing N first images at a preset capturing time interval, wherein the N first images include images of the moving object during movement, the preset capturing time interval corresponds to a movement category of the moving object, and N is a positive integer;
[0007] Selecting a second image from N first images according to a motion parameter of the moving object, the second image includes M frames of images, the display position of the moving object in each frame of the M frames of images is different, the M frames of images include a first sub-image and a second sub-image, the first sub-image is an image of the moving object at a motion starting point, and the second sub-image is an image of the moving object away from the motion starting point, the motion starting point being a starting position of the moving object during motion, and M is a positive integer greater than or equal to 2;
[0008] The target area in the second sub-image is synthesized with the first sub-image to obtain a target image, wherein the target area includes the moving object, and the target image includes an image of a motion trajectory of the moving object during the motion process.
[0009] In a second aspect, an embodiment of the present application provides a photographing device, which is applied to an electronic device. The photographing device may include:
[0010] a shooting module, configured to, upon receiving a first input from a user, shoot N first images at a preset shooting time interval, wherein the N first images include images of the moving object in motion, the preset shooting time interval corresponds to a motion category of the moving object, and N is a positive integer;
[0011] a screening module, configured to screen a second image from N first images based on a motion parameter of the moving object, the second image comprising M frames of images, wherein the display position of the moving object in each of the M frames of images is different, the M frames of images comprising a first sub-image and a second sub-image, the first sub-image being an image of the moving object at a starting point of motion, and the second sub-image being an image of the moving object away from the starting point of motion, the starting point of motion being a starting position of the moving object during motion, and M being a positive integer greater than or equal to 2;
[0012] The synthesis module is used to synthesize the target area in the second sub-image with the first sub-image to obtain a target image, wherein the target area includes a moving object, and the target image includes an image of a motion trajectory of the moving object during motion.
[0013] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein when the program or instruction is executed by the processor, the steps of the shooting method shown in the first aspect are implemented.
[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the shooting method shown in the first aspect are implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the shooting method shown in the first aspect.
[0016] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the steps of the shooting method shown in the first aspect.
[0017] In an embodiment of the present application, when a first input from a user is received, N first images including the moving object in the motion process are captured according to a preset shooting time interval corresponding to the motion category of the moving object in the preview image. In this way, in a sports scene, for a sports object such as archery, darts, baseball, running, speed skating, etc., N images of the moving object in various motion stages such as flying posture in the air and human body shape when running are obtained. Then, according to the motion parameters of the moving object, M frames of second images are selected from the N first images, and the display position of the moving object in each frame of the second image is different, wherein the M frames of second images include a first sub-image and a second sub-image, the first sub-image is an image of the moving object at the starting point of the motion, and the second sub-image is an image of the moving object away from the starting point of the motion, and the starting point of the motion is the moving object. The starting position of the object in the motion process, then, the first sub-image is synthesized with the target area including the moving object in the second sub-image to obtain an image target image including the motion trajectory of the moving object in the motion process, thereby obtaining a specified number of multiple frames of second images in which the moving object meets the specified conditions from the N first images, and the first sub-image in the second sub-image is synthesized with the moving object in the multiple frames of the second sub-image to obtain a target image with the momentum attribute of the moving object, which includes highlighting the motion trajectory of the moving object starting from the motion starting point in the first sub-image and in the entire motion process, so that an image with both a clear moving object and the actual motion trajectory of the moving object can be easily captured, so that the momentum attribute of the fast-moving object can be fully displayed through one image. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A flowchart of a shooting method provided in an embodiment of the present application;
[0019] Figure 2 This is one of the interactive schematic diagrams of a shooting method provided in an embodiment of the present application;
[0020] Figure 3 This is a second interactive diagram of a shooting method provided in an embodiment of the present application;
[0021] Figure 4 This is a third interactive diagram of a shooting method provided in an embodiment of the present application;
[0022] Figure 5 This is a fourth interactive diagram of a shooting method provided in an embodiment of the present application;
[0023] Figure 6 This is a fifth interactive diagram of a shooting method provided in an embodiment of the present application;
[0024] Figure 7This is one of the interface diagrams of a shooting method provided in an embodiment of the present application;
[0025] Figure 8 This is a second schematic diagram of an interface of a shooting method provided in an embodiment of the present application;
[0026] Figure 9 This is a third interface diagram of a shooting method provided in an embodiment of the present application;
[0027] Figure 10 This is a fourth interface diagram of a shooting method provided in an embodiment of the present application;
[0028] Figure 11 A schematic structural diagram of a photographing device provided in an embodiment of the present application;
[0029] Figure 12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0030] Figure 13 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0032] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0033] In the related art, users can obtain images of fast-moving objects by continuously shooting single-frame images or recording videos. However, a brief shadow of the moving object will appear in the single-frame image, resulting in blurred imaging details and low image quality. For recorded videos, if users expect to obtain images of moving objects in motion in the video, they will use professional video editing software to edit the video in the later stage. However, the operation process is cumbersome, and editing the video will also cause image quality loss, affecting the imaging quality of the image.
[0034] Based on this, in order to solve the above problems, an embodiment of the present application provides a shooting method, which, upon receiving a first input from a user, shoots N first images including the moving object in the motion process according to a preset shooting time interval corresponding to the motion category of the moving object in the preview image. In this way, in a sports scene, for moving objects such as arrows, darts, baseballs, runners, speed skaters, etc., multiple images of the moving object in various motion stages such as flying posture in the air and human body shape when running are obtained. Then, according to the motion parameters of the moving object, M frames of second images are selected from the N first images, and the display position of the moving object in each frame of the second image is different, wherein the M frames of second images include a first sub-image and a second sub-image, the first sub-image is an image of the moving object at the starting point of the motion, and the second sub-image is an image of the moving object away from the starting point of the motion. An image of a point is obtained, the motion starting point is the starting position of the moving object during the motion process, and then the first sub-image is synthesized with the target area including the moving object in the second sub-image to obtain an image target image including the motion trajectory of the moving object during the motion process. Thus, a specified number of multiple frames of second images in which the moving object meets the specified conditions are obtained from the N first images, and the first sub-image in the second sub-image is synthesized with the moving object in the multiple frames of the second sub-image to obtain a target image with the momentum attribute of the moving object, which includes highlighting the motion trajectory of the moving object starting from the motion starting point in the first sub-image and during the entire motion process, so that an image with both a clear moving object and the actual motion trajectory of the moving object can be easily captured. In this way, the momentum attribute of a fast-moving object can be fully displayed through one image.
[0035] The following is combined with Figures 1-10 , the shooting method provided in the embodiment of the present application is described in detail through specific embodiments and their application scenarios.
[0036] First, combine Figure 1 The shooting method provided in the embodiment of the present application is described in detail.
[0037] Figure 1 A flowchart of a shooting method provided in an embodiment of the present application.
[0038] like Figure 1 As shown, the shooting method provided in the embodiment of the present application can be applied to an electronic device, and the method may include the following steps:
[0039] Step 110: Upon receiving a first input from a user, capture N first images at a preset shooting time interval, wherein the N first images include images of the moving object during a motion process, the preset shooting time interval corresponds to the motion category of the moving object, and N is a positive integer. Step 120: Filter a second image from the N first images based on the motion parameters of the moving object, wherein the second image includes M frames of images, wherein the display position of the moving object in each of the M frames of images is different, and the M frames of images include a first sub-image and a second sub-image, wherein the first sub-image is an image of the moving object at a starting point of the motion, and the second sub-image is an image of the moving object away from the starting point of the motion, wherein the starting point of the motion is a starting position of the moving object during the motion process, and M is a positive integer greater than or equal to 2. Step 130: Synthesize a target area in the second sub-image with the first sub-image to obtain a target image, wherein the target area includes the moving object, and the target image includes an image of the motion trajectory of the moving object during the motion process.
[0040] In this way, in a sports scene, for sports objects such as archery, darts, baseball, running, speed skating, etc., N first images of the sports objects in various stages of the motion process, such as flying posture in the air, human body shape when running, etc. are captured. Then, a specified number of second images with the sports objects meeting specified conditions are obtained from the N first images, and the first sub-image in the second sub-image is synthesized with the sports objects in the multiple frames of the second sub-image to obtain a target image with the momentum properties of the sports object. The target image includes a motion trajectory of the sports object starting from the starting point of the motion in the first sub-image and throughout the motion process, so that an image with both a clear sports object and the actual motion trajectory of the sports object can be easily captured. In this way, the momentum properties of a fast-moving object can be fully displayed through one image.
[0041] The above steps are described in detail below.
[0042] First, regarding step 110, the embodiment of the present application provides at least three methods for capturing N first images based on different scenarios, and is described in detail in combination with the application scenarios.
[0043] In one or more possible embodiments, when the preview image only includes the motion start point or the motion end point, step 110 may specifically include:
[0044] When it is detected that the preview image does not include the starting point or the ending point of the moving object, the shooting module is controlled to shoot N first images starting from the starting point of the moving object along the first preset direction according to the preset shooting time interval, and the ending point of the movement is the ending point of the moving object during the movement process; wherein,
[0045] The N first images include images of a motion starting point and a motion ending point of the moving object during the motion process.
[0046] Exemplarily, when the preview screen only includes the starting point of the moving object and the ending point of the moving object is not detected, the shooting module in the electronic device is controlled to shoot N first images starting from the starting point of the moving object along the direction of movement of the moving object (i.e., the first preset direction) according to a preset shooting time interval, until the N first images taken include the ending point of the moving object, or the shooting is stopped according to the user's input.
[0047] Thus, by tracking the moving object, N first images of the moving object during the moving process from the starting point to the ending point of the moving object are captured.
[0048] In another or more possible embodiments, the preview image also only includes the motion start point or the motion end point. Based on this, before step 110, the shooting method may further include:
[0049] receiving a third input from the user on the preview screen;
[0050] In response to a third input, determining the moving object and the moving start point and the mark position of the moving object from the preview picture;
[0051] Based on this, step 110 may specifically include:
[0052] When receiving the first input from the user, capturing a third sub-image according to a preset capturing time interval;
[0053] When the moving object in the third sub-image moves to the marked position, the shooting module is controlled to shoot a fourth sub-image along a second preset direction, wherein the N first images include the third sub-image and the fourth sub-image.
[0054] For example, the electronic device in the embodiment of the present application may be a device having a scroll screen (or folding screen, flexible screen) and a mobile shooting module, wherein the mobile shooting module may be a rotatable camera, a camera set on a micro-pan head, or a camera driven by the scroll screen (or folding screen, flexible screen). Figure 2As shown, with the characteristics of the camera driven by the unfolding of the scroll screen (or folding screen, flexible screen), a moving object (such as an arrow for archery) within a larger motion range parallel to the unfolding direction of the scroll screen (or folding screen, flexible screen) is photographed. In this way, the moving object and the starting point of the movement of the moving object (that is, the arrow is in the hand of the archer and is the position where the arrow is launched) are first marked in the preview screen, and its marked position in the scroll screen is set. Since this embodiment is suitable for moving objects parallel to the unfolding direction of the scroll screen (or folding screen, flexible screen), the marked position is set to a position Sr from the right side of the scroll screen. In this way, it is ensured that the distance between the moving object and the right side of the scroll screen in the shooting interface is always maintained at less than or equal to Sr. At this time, the user clicks the photo button to start shooting, as shown in FIG. Figure 3 As shown, when the electronic device receives the user's first input, the electronic device detects the distance of the moving object from the right side of the screen in real time. When the moving object moves to a distance Sr from the right edge of the scroll screen, the scroll screen begins to unfold to maintain a fixed distance Sr until the scroll screen is fully unfolded and stops, thereby capturing the motion trajectory of a large-scale moving object. Therefore, the embodiment of the present application breaks through the limitations of a fixed shooting module by unfolding the scroll screen and moving the shooting module, and can capture a larger range of moving objects to obtain a target image with momentum properties in a larger range. In this way, it is possible to fully display the momentum properties of a fast-moving object through a single image.
[0055] In one or more possible embodiments, the preview image may include both the motion start point and the motion end point. Based on this, before step 110, the shooting method may further include:
[0056] receiving a fourth input from the user;
[0057] In response to the fourth input, a motion range of the motion object selected by the user in the preview picture is acquired, where the motion range includes a motion start point and a motion end point of the motion object.
[0058] For example, Figure 4 As shown, multiple shape options 401 are displayed. The user can select a target shape option 4011 from the multiple shape options 401 and select a motion range of the motion object based on the target shape option 4011. Here, the user can drag the target shape option 400 to change the size of the motion range. Figure 5 As shown in FIG, the motion range of the motion object can also be drawn by the user; Figure 6As shown, the electronic device can first identify at least two moving objects in the preview screen, and mark the moving object such as a target through display frame 601, mark the moving object such as an arrow through display frame 602, and mark the moving object such as a person shooting an arrow through display frame 603. Then, the user can determine the movement range 604 of the moving object based on the target display frame 602 by selecting the input of the target display frame such as 602 among multiple display frames.
[0059] Thus, step 110 may specifically include:
[0060] When the user's first input is received, N first images are captured based on the starting point and ending point of the moving object according to a preset shooting time interval, and the N first images include images of the moving object during the movement process, wherein the images of the moving object during the movement process include images of any stage of the moving object moving from the starting point to the ending point of the movement.
[0061] It should be noted that when shooting N first images, they are shot according to the preset shooting time interval. At this time, the preset shooting time interval in the embodiment of the present application is determined based on the current moving object and the actual shooting environment. The following is based on three scenarios to explain the steps of how to obtain the preset shooting time interval.
[0062] In one or more possible embodiments, before step 110, the shooting method in the embodiment of the present application may further include:
[0063] identifying a first motion category of a moving object in a preview image;
[0064] A preset shooting time interval corresponding to the first movement category is acquired according to the second association information between the movement category and the time interval.
[0065] Exemplarily, a preview screen is displayed, which may include moving objects. Through an AI recognition algorithm, the moving objects in the preview screen are identified, such as arrows, darts, baseballs, runners, and speed skaters, and the first motion category of the moving object is determined, such as treadmills, skipping ropes, and other sports categories with a motion range less than or equal to a preset range, or sports categories such as outdoor cycling, dart moves, and baseball moves with a motion range greater than a preset range. In this way, the preset shooting time interval of the sports category with a motion range greater than the preset range is greater than that of the sports category with a motion range less than or equal to the preset range, so that the moving objects in the images acquired within unit time have as little overlap as possible.
[0066] In one or more other possible embodiments, before step 110, the shooting method may further include:
[0067] Option to display multiple sports categories;
[0068] receiving a fifth input from the user for a first sport category among options of the plurality of sport categories;
[0069] In response to the fifth input, a preset shooting time interval corresponding to the first motion category is acquired according to the second association information between the motion category and the time interval.
[0070] For example, the user may be provided with options of multiple motion categories A (i.e., motion categories with a motion range less than or equal to a preset range) and multiple motion categories B (i.e., motion categories with a motion range greater than a preset range) so as to determine the first motion category of the photographed motion object based on the user's input, and thereby obtain the preset shooting time interval corresponding to the first motion category based on the second association information.
[0071] In one or more possible embodiments, based on the above two embodiments, not only the motion category of the moving object is taken into consideration, but also when the preview screen includes the motion starting point and motion ending point of the moving object, the preset shooting time interval can be calculated based on the motion distance before the motion starting point and motion ending point of the moving object, and the first motion category of the moving object.
[0072] For example, if the sport category of the moving object is archery, the position of the person is determined as the starting point of the arrow's movement, and the position of the target is determined as the end point of the movement. In this way, the actual movement distance of the arrow can be obtained, and then the preset shooting time interval is calculated based on the actual movement distance of the arrow and the preset average moving speed of the arrow.
[0073] In one or more possible embodiments, the preset shooting time interval may also be calculated according to the moving speed of the moving object.
[0074] For example, low-speed sports like ball games are preset to take a picture every 100ms; high-speed sports like archery and darts are preset to take a picture every 20ms. Users can also set the shooting interval based on specific usage scenarios; the default shooting interval is 50ms. It should be noted that the movement speed here can be calculated by obtaining the actual movement distance of the moving object and the preset shooting interval to obtain the actual movement time of the moving object. Then, the actual movement time and actual movement distance are used to calculate the actual movement speed of the moving object.
[0075] Therefore, the shooting method provided in the embodiment of the present application can obtain a clear moving object shot with multiple exposures by performing multiple exposures on the selected moving object within the moving range, thereby facilitating the later synthesis of the target image of the motion trajectory of the shot object, achieving the purpose of displaying the momentum properties of the moving object and improving the imaging quality of the target picture.
[0076] Next, in step 120 , in order to facilitate the subsequent calculation of the parameters of the moving object, the embodiment of the present application may further obtain the motion parameters of the moving object and the preset number of synthetic frames before step 110 , which may be specifically explained through the following steps.
[0077] In one or more possible embodiments, before step 110, the shooting method may further include:
[0078] receiving a second input from the user;
[0079] In response to the second input, obtaining a motion range of the motion object selected by the user in the preview image, where the motion range includes a motion start point and a motion end point of the motion object;
[0080] Based on the motion range, obtaining the motion distance of the motion object, the motion range including the motion starting point and the motion ending point of the motion object;
[0081] According to the first association information between the preset movement distance and the number of synthesized frames, the preset number of synthesized frames corresponding to the movement distance is acquired; wherein the movement distance and the preset number of synthesized frames are positively correlated.
[0082] For example, for some moving objects with a short moving distance, the number of synthesized frames is small, whereas for some moving objects with a long moving distance, the number of synthesized frames is large, so as to obtain a clear moving object and a moving trajectory of the moving object.
[0083] It should be noted that, in actual shooting, it is divided into shooting the horizontal movement of the moving object (such as Figure 7 As shown), shooting moving objects perpendicular to the lens movement (as shown Figure 8 As shown in the following two types. Figure 7 As shown in FIG, when the moving object being photographed is moving horizontally, after selecting the moving object's range of motion, a stereo depth sensing lens (time of flight, ToF) can be used to support laser ranging to perform laser ranging and obtain the actual moving distance of the moving object. Figure 8 As shown, when the moving object being photographed moves perpendicular to the lens, since the starting point and the ending point of the moving object are substantially at the same point in the preview image, the moving distance of the moving object can be calculated based on the depth of field information.
[0084] Based on this, when the motion parameters include motion distance and motion speed, and the number of second images corresponds to the preset number of synthesized frames, step 120 may specifically include:
[0085] Calculate the first movement distance of the moving object at the i-th frame according to the movement distance and the preset number of synthetic frames, i∈[1,M]; wherein the first movement distance is the actual movement distance of the moving object from the starting point of the movement to the time when the i-th frame is captured;
[0086] Calculating a first shooting moment of the moving object at the first moving position according to the first moving distance and the moving speed;
[0087] According to the shooting time of each first image in the N first images, the image of the i-th frame is screened from the N first images; wherein the difference between the shooting time of the i-th frame image and the first shooting time satisfies a preset threshold.
[0088] Exemplarily, according to the actual movement distance s of the moving object obtained in the above steps and the preset shooting time interval d, the actual movement time of the moving object can be obtained, and then the actual movement speed v of the moving object can be obtained according to the actual movement time and the actual movement distance d.
[0089] In this way, based on the preset number of synthetic frames n, the movement distance s and the movement speed v, the first movement distance Si of the moving object at the i-th frame under the expected circumstances is calculated by the following formula (1). The first movement distance is the actual movement distance of the moving object from the starting point of the movement to the time when the i-th frame is shot.
[0090] The first moving distance Si at the i-th frame = (s / n)*I (1)
[0091] Next, the shooting time ti of the i-th frame image is calculated by the following formula (2) under the expected condition of the moving object:
[0092] The shooting time of the i-th frame image ti = Si / v (2)
[0093] In this way, based on the shooting time ti, the image closest to the shooting time ti from the N first images can be found as the image of the i-th frame.
[0094] In addition, when the preset screen of the electronic device cannot include all the motion scenes of the moving object, such as the end point of the motion of the moving object, in order to ensure the clarity of the captured image, the user does not need to manually move the device, that is, the electronic device controls the shooting module to automatically move and rotate, such as rotating the camera or micro-pan head or folding screen flexible screen to drive the camera to rotate. Based on this, after determining the starting point of the user object's motion, the camera module can be moved and when the picture of the end point of the motion of the moving object is displayed, the end point of the motion of the moving object can be determined by the user or the AI recognition algorithm. At this time, the electronic device can calculate the actual motion distance s of the moving object based on the distance of the mobile camera, the starting point and the end point of the motion of the moving object. Then, according to the motion distance s and the preset shooting time interval d, the actual motion time of the moving object can be obtained. Then, according to the actual motion time and the actual motion distance d, the actual motion speed v of the moving object can be obtained, thereby filtering the second image according to the above formulas (1) and (2).
[0095] Then, step 130 is involved. In one or more possible embodiments, step 130 may specifically include:
[0096] Calculating a target adjustment parameter for the second sub-image according to the shooting time of the second sub-image and the target shooting duration, wherein the target shooting duration is the total duration of shooting the N first images;
[0097] Adjusting the transparency of the target area of the second sub-image according to the target adjustment parameter to obtain a processed area;
[0098] Deducting a processing area from the second sub-image, and synthesizing the processing area with the first sub-image according to the position of the processing area in the second sub-image to obtain a target image, wherein the position of the processing area in the second sub-image is the same as that in the target image;
[0099] The target image includes the moving object in the processing area and the moving object in the first sub-image, and the transparency of the moving object in the processing area is greater than the transparency of the moving object in the first sub-image.
[0100] Among them, the first sub-image is used as the reference image, and the target area where the moving object is located in each second sub-image is extracted. The second sub-images are sorted from far to near according to the shooting time of each second sub-image, and the transparency of the target area in each second sub-image is set according to the sorting position. The closer the image is to the end of the shooting time, the greater the transparency.
[0101] For example, Figure 9 As shown, first, the first image is selected from the M second images as the first sub-image, that is, the reference image, and the subsequent synthesis operation is performed based on this image.
[0102] Next, the AI recognition algorithm is executed on the target area of each frame of the second sub-image in the M second images except the first sub-image, and the moving object in the target area is identified, the moving object in the second sub-image is extracted, and the position of the moving object in the second sub-image slice in the picture is obtained. The transparency of the moving object is adjusted according to the shooting time sequence of the second sub-image. Here, the transparency of the target area in the second sub-image can be calculated according to the shooting time of the second sub-image and the target shooting duration by the following formula (3):
[0103] Transparency = shooting time of the second sub-image / target shooting duration (3)
[0104] For example, the number of second sub-images is 5 frames, the target shooting time for shooting a total of N first images is 500ms, the shooting time of the second sub-image 1 is 100ms, and the shooting time of the second sub-image 5 is 500ms, then the transparency of the second sub-image 1 and the second sub-image 5 are 0.2 (100 / 500) and 1 (500 / 500), respectively.
[0105] Finally, the target area in the extracted second sub-image is synthesized into the reference image according to the corresponding position and transparency through a fusion algorithm to obtain the target image.
[0106] Therefore, the embodiment of the present application can obtain images of a specified number of moving objects during the movement process by specifying the movement range and movement speed, and after partial transparency, combine them into a target image with momentum attributes, so that an image with both a clear moving object and the actual movement trajectory of the moving object can be easily captured, thereby improving the image imaging quality when shooting the moving picture of the moving object.
[0107] In addition, if Figure 10 As shown, for the scene of the mobile camera module, due to the movement of the camera module, the background of the moving object in each frame will be inconsistent. Therefore, the background of the second sub-image of each selected frame can be spliced and transitioned through the fusion algorithm to finally obtain the target image.
[0108] It should be noted that the shooting method provided in the embodiment of the present application can be applied to scenarios where moving objects in multiple images are synthesized into one image, as well as scenarios where multiple images of the same moving object are synthesized to obtain an image that has both a clear moving object and the actual motion trajectory of the moving object, and any scenario where moving objects in multiple images need to be shot and processed on an electronic device.
[0109] The shooting method provided in the embodiment of the present application can be executed by a shooting device. In the embodiment of the present application, the shooting method is executed by a shooting device as an example to illustrate the shooting device provided in the embodiment of the present application.
[0110] Based on the same inventive concept, the present application also provides a photographing device. Figure 11 Provide detailed explanation.
[0111] Figure 11 A schematic structural diagram of a photographing device provided in an embodiment of the present application.
[0112] like Figure 11 As shown, the photographing device 110 is applied to an electronic device and may specifically include:
[0113] The capturing module 1101 is configured to capture N first images at a preset capturing time interval upon receiving a first input from a user, wherein the N first images include images of a moving object in motion, the preset capturing time interval corresponds to a motion category of the moving object, and N is a positive integer;
[0114] A screening module 1102 is configured to screen a second image from the N first images based on a motion parameter of the moving object, where the second image includes M frames of images, wherein the display position of the moving object in each of the M frames of images is different, and the M frames of images include a first sub-image and a second sub-image, wherein the first sub-image is an image of the moving object at a motion starting point, and the second sub-image is an image of the moving object away from the motion starting point, where the motion starting point is a starting point of the moving object during motion, and M is a positive integer greater than or equal to 2;
[0115] The synthesis module 1103 is configured to synthesize the target area in the second sub-image with the first sub-image to obtain a target image, wherein the target area includes the moving object, and the target image includes an image of a motion trajectory of the moving object during its motion.
[0116] The following is a detailed description of the photographing device 140, which is as follows:
[0117] In one or more possible embodiments, the shooting module 1101 in the embodiment of the present application can be specifically configured to, when detecting that the preview image does not include the motion starting point or the motion ending point of the moving object, control the shooting module to shoot N first images starting from the starting point of the moving object along a first preset direction according to a preset shooting time interval, where the motion ending point is the ending position of the moving object during the motion process; wherein,
[0118] The N first images include images of a motion starting point and a motion ending point of the moving object during the motion process.
[0119] In another or more possible embodiments, the shooting device 110 provided in the embodiment of the present application may further include a first receiving module, a determining module and a control module; wherein,
[0120] A first receiving module, configured to receive a third input from a user on the preview screen;
[0121] a determining module, configured to determine the moving object, the moving starting point of the moving object, and the marked position from the preview image in response to a third input;
[0122] The shooting module 1101 in the embodiment of the present application may also be configured to, upon receiving a first input from a user, shoot a third sub-image at a preset shooting time interval;
[0123] The control module is used to control the shooting module to shoot a fourth sub-image along a second preset direction when the moving object in the third sub-image moves to the marked position, wherein the N first images include the third sub-image and the fourth sub-image.
[0124] In one or more further possible embodiments, the screening module 1102 in the embodiment of the present application may be specifically configured to, when the motion parameters include a motion distance and a motion speed, and the number of second images corresponds to a preset number of synthesized frames, calculate a first motion distance of the moving object at the i-th frame according to the motion distance and the preset number of synthesized frames, i∈[1,M];
[0125] Calculating a first shooting moment of the moving object at the first moving position according to the first moving distance and the moving speed;
[0126] According to the shooting time of each first image in the N first images, the image of the i-th frame is screened from the N first images; wherein the difference between the shooting time of the i-th frame image and the first shooting time satisfies a preset threshold.
[0127] In one or more possible embodiments, the shooting device 110 provided in the embodiment of the present application may further include a second receiving module and a first acquiring module; wherein,
[0128] A second receiving module, configured to receive a second input from a user;
[0129] A first acquisition module is configured to acquire, in response to a second input, a motion range of a motion object selected by a user in a preview image, where the motion range includes a motion start point and a motion end point of the motion object;
[0130] The first acquisition module may also be used to acquire a movement distance of the moving object based on a movement range, where the movement range includes a movement start point and a movement end point of the moving object;
[0131] The first acquisition module may also be configured to acquire a preset number of synthesized frames corresponding to the motion distance according to first association information between the preset motion distance and the number of synthesized frames; wherein the motion distance and the preset number of synthesized frames are positively correlated.
[0132] In one or more further possible embodiments, the synthesis module 1103 in the embodiment of the present application may be specifically configured to calculate a target adjustment parameter of the second sub-image based on the shooting time of the second sub-image and the target shooting duration, where the target shooting duration is the total shooting duration of the N first images.
[0133] Adjusting the transparency of the target area of the second sub-image according to the target adjustment parameter to obtain a processed area;
[0134] Deducting a processing area from the second sub-image, and synthesizing the processing area with the first sub-image according to the position of the processing area in the second sub-image to obtain a target image, wherein the position of the processing area in the second sub-image is the same as that in the target image;
[0135] The target image includes the moving object in the processing area and the moving object in the first sub-image, and the transparency of the moving object in the processing area is greater than the transparency of the moving object in the first sub-image.
[0136] In one or more possible embodiments, the shooting device 110 provided in the embodiment of the present application may further include a recognition module and a second acquisition module; wherein,
[0137] an identification module, configured to identify a first motion category of a moving object in a preview image;
[0138] The second acquisition module is configured to acquire a preset shooting time interval corresponding to the first motion category according to second association information between the motion category and the time interval.
[0139] The shooting device in the embodiments of the present application can be an electronic device or a component of an electronic device, such as an integrated circuit or chip. The electronic device can be a terminal or other device other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiments of the present application do not specifically limit this.
[0140] The shooting device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0141] The shooting device provided in the embodiment of the present application can achieve Figures 1 to 10The various processes implemented in the method embodiment achieve the same technical effect and will not be described again here to avoid repetition.
[0142] Based on this, the shooting device provided in the embodiment of the present application, upon receiving the first input from the user, shoots N first images including the moving object in the motion process according to the preset shooting time interval corresponding to the motion category of the moving object in the preview image. In this way, in a sports scene, for sports objects such as archery, darts, baseball, running, speed skating, etc., N images of the moving object in various motion stages such as flying posture in the air and human body shape when running are obtained. Then, according to the motion parameters of the moving object, M frames of second images are selected from the N first images, and the display position of the moving object in each frame of the second image is different, wherein the M frames of second images include a first sub-image and a second sub-image, the first sub-image is the image of the moving object at the starting point of the motion, and the second sub-image is the image of the moving object away from the starting point of the motion. The starting point is the starting position of the moving object during the movement process. Then, the first sub-image is synthesized with the target area including the moving object in the second sub-image to obtain an image target image including the motion trajectory of the moving object during the movement process. Thus, a specified number of multiple frames of second images in which the moving object meets the specified conditions are obtained from the N first images, and the first sub-image in the second sub-image is synthesized with the moving object in the multiple frames of the second sub-image to obtain a target image with the momentum attribute of the moving object. The target image includes the motion trajectory of the moving object starting from the motion starting point in the first sub-image and during the entire motion process, so that an image with both a clear moving object and the actual motion trajectory of the moving object can be easily captured. In this way, the momentum attribute of the fast-moving object can be fully displayed through one image.
[0143] Optional, such as Figure 12 As shown, an embodiment of the present application further provides an electronic device 120, including a processor 1201 and a memory 1202, wherein the memory 1202 stores programs or instructions that can be run on the processor 1201, and when the program or instructions are executed by the processor 1201, the various steps of the above-mentioned shooting method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0144] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0145] Figure 13 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
[0146] The electronic device 1300 includes but is not limited to: a radio frequency unit 1301, a network module 1302, an audio output unit 1303, an input unit 1304, a sensor 1305, a display unit 1306, a user input unit 1307, an interface unit 1308, a memory 1309, a processor 1310 and a camera module 1311 and other components.
[0147] Those skilled in the art will understand that the electronic device 1300 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 1310 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 13 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be repeated here.
[0148] In an embodiment of the present application, the camera module 1311 is configured to capture N first images at a preset shooting time interval upon receiving a first input from a user, wherein the N first images include images of a moving object in motion, the preset shooting time interval corresponds to the motion category of the moving object, and N is a positive integer. The processor 1310 is configured to select a second image from the N first images based on the motion parameters of the moving object, wherein the second image includes M frames, wherein the display position of the moving object in each of the M frames is different, and wherein the M frames include a first sub-image and a second sub-image, wherein the first sub-image is an image of the moving object at a starting point of motion, and the second sub-image is an image of the moving object away from the starting point of motion, wherein the starting point of motion is a starting position of the moving object during motion, and M is a positive integer greater than or equal to 2. Furthermore, the processor 1310 is configured to synthesize a target area in the second sub-image with the first sub-image to obtain a target image, wherein the target area includes the moving object, and the target image includes an image of the motion trajectory of the moving object during motion.
[0149] In one or more possible embodiments, 13101310 the camera module 1311 in the embodiment of the present application can be specifically used to, when it is detected that the preview image does not include the motion starting point or the motion ending point of the moving object, control the shooting module to start from the starting point of the moving object along the first preset according to the preset shooting time interval, and shoot N first images, where the motion ending point is the ending position of the moving object during the motion process; wherein,
[0150] The N first images include images of a motion starting point and a motion ending point of the moving object during the motion process.
[0151] In one or more possible embodiments, the user input unit 1307 in the embodiment of the present application is configured to receive a third input from the user on the preview screen;
[0152] The processor 1310 is further configured to, in response to a third input, determine the moving object, the moving start point of the moving object, and the marked position from the preview image;
[0153] The camera module 1311 in the embodiment of the present application may also be configured to capture a third sub-image according to a preset capturing time interval upon receiving a first input from the user;
[0154] The processor 1310 is also used to control the shooting module to shoot a fourth sub-image in a second preset direction when the moving object in the third sub-image moves to the marked position, wherein the N first images include the third sub-image and the fourth sub-image.
[0155] In one or more possible embodiments, the processor 1310 in the embodiment of the present application is also used to, when the motion parameters include motion distance and motion speed, and the number of second images corresponds to a preset number of synthetic frames, calculate the first motion distance of the moving object at the i-th frame according to the motion distance and the preset number of synthetic frames, i∈[1,M]; calculate the first shooting moment of the moving object at the first motion position according to the first motion distance and the motion speed; and filter the image of the i-th frame from the N first images according to the shooting moment of each first image in the N first images; wherein the difference between the shooting moment of the image of the i-th frame and the first shooting moment satisfies a preset threshold.
[0156] In one or more further possible embodiments, the user input unit 1307 in the embodiment of the present application receives a second input from the user;
[0157] The processor 1310 is further configured to, in response to a second input, obtain a motion range of a motion object selected by a user in the preview image, where the motion range includes a motion start point and a motion end point of the motion object;
[0158] The processor 1310 is further configured to obtain a movement distance of the moving object based on a movement range, where the movement range includes a movement start point and a movement end point of the moving object;
[0159] The processor 1310 is further configured to obtain a preset number of synthesized frames corresponding to the motion distance according to first association information between the preset motion distance and the number of synthesized frames; wherein the motion distance and the preset number of synthesized frames are positively correlated.
[0160] In one or more further possible embodiments, the processor 1310 in the embodiment of the present application is further used to calculate a target adjustment parameter of the second sub-image based on the shooting moment of the second sub-image and the target shooting duration, wherein the target shooting duration is the total duration of shooting N first images; adjust the transparency of the target area of the second sub-image according to the target adjustment parameter to obtain a processing area; deduct the processing area from the second sub-image, and synthesize the processing area with the first sub-image based on the position of the processing area in the second sub-image to obtain a target image, and the position of the processing area in the second sub-image is the same as that in the target image; wherein the target image includes a moving object in the processing area and a moving object in the first sub-image, and the transparency of the moving object in the processing area is greater than the transparency of the moving object in the first sub-image.
[0161] In one or more further possible embodiments, the processor 1310 provided in the embodiment of the present application is further used to identify a first motion category of a moving object in a preview screen; and, based on second association information between the motion category and the time interval, obtain a preset shooting time interval corresponding to the first motion category.
[0162] It should be understood that the input unit 1304 may include a graphics processing unit (GPU) 13041 and a microphone 13042, and the graphics processor 13041 processes the image data of the static image or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1306 may include a shooting panel, which may be configured in the form of a liquid crystal camera, an organic light emitting diode, etc. The user input unit 1307 includes a touch panel 13071 and at least one of the other input devices 13072. The touch panel 13071 is also called a touch screen. The touch panel 13071 may include two parts: a touch detection device and a touch camera. Other input devices 13072 may include but are not limited to a physical keyboard, function keys (such as a volume display button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0163] The memory 1309 can be used to store software programs and various data. The memory 1309 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1309 may include volatile memory or non-volatile memory, or the memory 1309 may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a 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 RAM bus random access memory (DRRAM). The memory 1309 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0164] Processor 1310 may include one or more processing units. Optionally, processor 1310 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless shooting signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 1310.
[0165] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned shooting method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0166] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0167] In addition, an embodiment of the present application further provides a chip, which includes a processor and a display interface. The display interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-mentioned shooting method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0168] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0169] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned shooting method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0170] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0171] Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in reverse order depending on the functions involved. For example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Furthermore, features described with reference to certain examples may be combined in other examples.
[0172] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course 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 the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0173] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A shooting method, characterized in that: include: Upon receiving a first input from a user, capturing N first images at a preset capturing time interval, wherein the N first images include images of a moving object in motion, the preset capturing time interval corresponds to a motion category of the moving object, and N is a positive integer; screening a second image from the N first images according to motion parameters of the moving object, the second image comprising M frames of images, the display position of the moving object in each frame of the M frames of images being different, the M frames of images comprising a first sub-image and a second sub-image, the first sub-image being an image of the moving object at a motion starting point, the second sub-image being an image of the moving object away from the motion starting point, the motion starting point being a starting position of the moving object during the motion process, the motion parameters comprising a motion distance and a motion speed, and M being a positive integer greater than or equal to 2; synthesizing a target area in the second sub-image with the first sub-image to obtain a target image, wherein the target area includes the moving object, and the target image includes an image of a motion trajectory of the moving object during the motion process; The method of screening the second image from the N first images based on the motion parameters of the moving object includes: calculating the first motion distance of the moving object at the i-th frame according to the motion distance and a preset number of synthetic frames, i∈[1,M]; calculating the first shooting moment of the moving object at the first motion position according to the first motion distance and the motion speed; and screening the image of the i-th frame from the N first images according to the shooting moment of each first image in the N first images; wherein, if the difference between the shooting moment of the image of the i-th frame and the first shooting moment satisfies a preset threshold, the number of the second images corresponds to the preset number of synthetic frames.
2. The method according to claim 1, characterized in that The capturing of N first images according to a preset capturing time interval includes: When it is detected that the preview image does not include the starting point or the ending point of the movement of the moving object, the shooting module is controlled to shoot N first images starting from the starting point of the moving object along a first preset direction according to a preset shooting time interval, and the ending point of the movement is the ending position of the moving object during the movement; wherein, The N first images include images of the movement starting point and the movement ending point of the moving object during the movement process.
3. The method according to claim 1, characterized in that Before receiving the first input from the user, the method further includes: receiving a third input from the user on the preview screen; In response to the third input, determining the moving object and the moving starting point and the marked position of the moving object from the preview picture; The method of capturing N first images according to a preset capturing time interval upon receiving a first input from a user includes: When receiving the first input from the user, capturing a third sub-image according to a preset capturing time interval; When the moving object in the third sub-image moves to the marked position, the shooting module is controlled to shoot a fourth sub-image along a second preset direction, wherein the N first images include the third sub-image and the fourth sub-image.
4. The method according to claim 1, wherein Before receiving the first input from the user, the method further includes: receiving a second input from the user; In response to the second input, obtaining a motion range of the moving object selected by the user in the preview image, the motion range including a motion start point and a motion end point of the moving object; Based on the movement range, acquiring a movement distance of the moving object, wherein the movement range includes a movement starting point and a movement ending point of the moving object; According to first association information of a preset movement distance and a number of synthesized frames, a preset number of synthesized frames corresponding to the movement distance is acquired; wherein the movement distance and the preset number of synthesized frames are positively correlated.
5. The method according to claim 1, wherein The synthesizing the target area in the second sub-image with the first sub-image to obtain the target image includes: Calculating a target adjustment parameter of the second sub-image according to the shooting time of the second sub-image and a target shooting duration, wherein the target shooting duration is the total shooting duration of the N first images; adjusting the transparency of the target area of the second sub-image according to the target adjustment parameter to obtain a processed area; subtracting the processing region from the second sub-image, and synthesizing the processing region with the first sub-image based on the position of the processing region in the second sub-image to obtain a target image, wherein the position of the processing region in the second sub-image is the same as that in the target image; The target image includes the moving object in the processing area and the moving object in the first sub-image, and the transparency of the moving object in the processing area is greater than the transparency of the moving object in the first sub-image.
6. The method according to claim 1, characterized in that Before capturing N first images at a preset capturing time interval, the method further includes: identifying a first motion category of the motion object in the preview image; According to the second association information between the motion category and the time interval, a preset shooting time interval corresponding to the first motion category is acquired.
7. A photographing device, characterized in that: include: a shooting module, configured to, upon receiving a first input from a user, shoot N first images at a preset shooting time interval, wherein the N first images include images of a moving object in motion, the preset shooting time interval corresponds to a motion category of the moving object, and N is a positive integer; a screening module, configured to screen a second image from the N first images based on a motion parameter of the moving object, the second image comprising M frames of images, the display position of the moving object in each of the M frames of images being different, the M frames of images comprising a first sub-image and a second sub-image, the first sub-image being an image of the moving object at a motion starting point, the second sub-image being an image of the moving object away from the motion starting point, the motion starting point being a starting position of the moving object during the motion process, and M being a positive integer greater than or equal to 2; a synthesis module, configured to synthesize a target area in the second sub-image with the first sub-image to obtain a target image, wherein the target area includes the moving object, and the target image includes an image of a motion trajectory of the moving object during movement; The screening module is specifically used to, when the motion parameters include motion distance and motion speed, and the number of the second images corresponds to a preset number of synthetic frames, calculate the first motion distance of the moving object at the i-th frame according to the motion distance and the preset number of synthetic frames, i∈[1,M]; calculate the first shooting moment of the moving object at the first motion position according to the first motion distance and the motion speed; and screen the image of the i-th frame from the N first images according to the shooting moment of each first image in the N first images; wherein the difference between the shooting moment of the image of the i-th frame and the first shooting moment meets a preset threshold.
8. An electronic device, characterized in that: include: A processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the shooting method according to any one of claims 1 to 6.
9. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the shooting method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Motion trail synthesis method and electronic equipment
CN111105434A
Shooting method and device and electronic equipment
CN112399077A