Shooting method, device, electronic device and readable storage medium

By obtaining the motion information of the pan object and the device jitter information, calculating the pan parameters and processing the preview image, the image blurring and focus blurring problems under long exposure time is solved, and the precise focus shooting effect is achieved.

CN114339051BActive Publication Date: 2025-07-25VIVO MOBILE COMM CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111680588.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2025-07-25
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

During long exposure time, the image dynamic blur and blurring of focus objects caused by hand shaking and device movement affect the focus shooting effect.

Method used

By obtaining the motion information of the pan object in the preview image and the jitter information of the electronic device, the pan parameters are calculated, and the non-panning object in the preview image is processed based on these parameters to obtain the target image.

Benefits of technology

It achieves accurate focus shooting effects, reduces dynamic blur of image and blurring of focus objects, and improves shooting quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114339051B_ABST
    Figure CN114339051B_ABST
Patent Text Reader

Abstract

The present application discloses a shooting method, device, electronic device and readable storage medium, belonging to the technical field of image processing applications. The method includes: when displaying a preview image of a shooting preview interface, obtaining motion information of a panning object in the preview image and jitter information of the electronic device; determining panning parameters according to the motion information and the jitter information; when shooting the preview image, processing a non-panning object in the preview image according to the panning parameters to obtain a target image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the technical field of image processing, and particularly relates to a shooting method, device, electronic device, and readable storage medium. Background Art

[0002] With the specialization of the functions of intelligent terminals, more and more users choose to use intelligent terminals to take pictures. With the progress of software and hardware, users can use intelligent terminals to take creative images, for example, images with a tracking focus shooting effect can be taken.

[0003] When taking an image with a tracking focus shooting effect, a relatively long exposure time is required to produce a blurred background effect. However, during the long exposure time, the captured image may be blurred and discontinuous due to hand shake, or the tracking focus object may be blurred because the moving speed of the electronic device is not synchronized with the speed of the tracking focus object, affecting the tracking focus shooting effect of the image.

[0004] Therefore, a shooting method capable of achieving an accurate tracking focus shooting effect needs to be proposed. Summary of the Invention

[0005] The purpose of the embodiments of this application is to provide a shooting method that can obtain an image with an accurate tracking focus shooting effect.

[0006] In a first aspect, the embodiments of this application provide a shooting method, and the method includes:

[0007] When displaying the preview image of the shooting preview interface, obtain the motion information of the panning object and the jitter information of the electronic device in the preview image;

[0008] Determine the panning parameter according to the motion information and the jitter information;

[0009] When shooting the preview image, process the non-panning object in the preview image according to the panning parameter to obtain a target image.

[0010] In a second aspect, the embodiments of this application provide a shooting device, and the device includes:

[0011] An acquisition module, configured to obtain the motion information of the panning object and the jitter information of the electronic device in the preview image when displaying the preview image of the shooting preview interface;

[0012] A determination module, configured to determine the panning parameter according to the motion information and the jitter information;

[0013] The shooting module is used to process non-panning objects in the preview image according to the panning parameter when shooting the preview image, so as to obtain a target image.

[0014] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor. When the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.

[0015] 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 method described in the first aspect are implemented.

[0016] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0017] In the embodiment of the present application, when displaying the preview image of the shooting preview interface, the motion information of the panning object in the preview image and the jitter information of the electronic device are obtained; the panning parameter is determined according to the motion information and the jitter information; when shooting the preview image, the non-panning object in the preview image is processed according to the panning parameter to obtain a target image. It is possible to determine the panning parameter according to the jitter information of the electronic device and the motion information of the panning object, so that when shooting the preview image, the non-panning object can be processed based on the panning parameter, and an image with an accurate focus tracking shooting effect can be obtained. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a schematic flowchart of the shooting method according to an embodiment of the present application;

[0019] Figure 2 is a schematic diagram of the shooting preview interface in the shooting method according to an embodiment of the present application;

[0020] Figure 3 is a schematic diagram of the jitter information of the electronic device in the shooting method according to an embodiment of the present application;

[0021] Figure 4 is a schematic diagram of the first compensation component and the second compensation component in the shooting method according to an embodiment of the present application;

[0022] Figure 5 is a schematic diagram of an image obtained by shooting according to the shooting method of an embodiment of the present application;

[0023] Figure 6Schematic structural diagram of the photographing device according to an embodiment of the present application;

[0024] Figure 7 Schematic structural diagram of the electronic device according to an embodiment of the present application;

[0025] Figure 8 Hardware structural diagram of an electronic device for implementing an embodiment of the present application. Detailed implementation manners

[0026] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.

[0027] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data may be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object may be one or multiple. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally means an "or" relationship between the associated objects before and after.

[0028] Next, in conjunction with the accompanying drawings, the photographing method provided in the embodiments of the present application will be described in detail through specific embodiments and their application scenarios.

[0029] Figure 1 It is a flowchart of the photographing method according to an embodiment of the present application. The photographing method according to an embodiment of the present application can be executed, for example, by a photographing device, and the photographing device can be set in an electronic device such as a smart phone, a tablet computer, or a smart watch.

[0030] As Figure 1 shown, the photographing method of this embodiment may include the following steps 1100 to 1300:

[0031] Step 1100, when displaying the preview image of the photographing preview interface, obtain the motion information of the panning object in the preview image and the jitter information of the electronic device.

[0032] Among them, the panning object can be, for example, an object in a moving state or an object in a stationary state. Exemplarily, the object in a moving state can be a person, an animal, a vehicle, etc., and the object in a stationary state can be a mountain, a tree, a building, etc., which are not specifically limited herein.

[0033] Before this step, before obtaining the motion state of the panning object in the preview image when the preview image of the shooting preview interface is displayed, the method further includes: receiving a first input to the shooting preview interface; in response to the first input, controlling the electronic device to enter the panning mode.

[0034] Among them, the first input can be a click input to the shooting preview interface, or a voice command input by the user, or a specific gesture input by the user, which can be specifically determined according to actual usage requirements, and the embodiments of the present application do not limit this. The specific gesture in the embodiments of the present application can be any one of a click gesture, a swipe gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double press gesture, a double click gesture; the click input in the embodiments of the present application can be a single click input, a double click input or a click input of any number of times, etc., and can also be a long press input or a short press input.

[0035] In a feasible implementation manner, as Figure 2 shown, after controlling the electronic device to enter the panning mode, a prompt message can also be displayed on the shooting preview interface to prompt the user to select the telephoto object.

[0036] Exemplarily, the shooting device can receive the input of the user to the shooting preview interface and determine the panning object according to the input of the user. Optionally, the input can be a click input, or a voice command input by the user, or a specific gesture input by the user, which can be specifically determined according to actual usage requirements, and the embodiments of the present application do not limit this. The specific gesture in the embodiments of the present application can be any one of a click gesture, a swipe gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double press gesture, a double click gesture; the click input in the embodiments of the present application can be a single click input, a double click input or a click input of any number of times, etc., and can also be a long press input or a short press input.

[0037] After determining the panning object, obtain the motion information of the panning object and the jitter information of the electronic device. Optionally, the motion information and the jitter information can be obtained according to devices such as the gyroscope built in the electronic device, which will not be elaborated herein.

[0038] Step 1200, determine the panning parameters according to the motion information and the jitter information.

[0039] Wherein, the motion information may include a first motion direction of the panning object and a first motion speed of the panning object; the jitter information may include a second motion direction of the electronic device and a second motion speed of the panning object.

[0040] For convenience of description, in this embodiment, the motion information of the panning object is represented by a vector O(p1, v1), where p1 represents the first motion direction of the panning object and v1 represents the first motion speed of the panning object. The jitter information of the electronic device is represented by a vector H(p2, v2), where p2 represents the second motion direction of the electronic device and v2 represents the second motion speed of the electronic device.

[0041] Exemplarily, as Figure 3 shown, after selecting the panning object, the obtained motion information can be expressed as O(350°, 50 pixel / s), and the obtained jitter information of the electronic device can be expressed as H(60°, 20 pixel / s).

[0042] In this step, after obtaining the motion information and the jitter information, it is possible to first determine whether the first motion direction and the second motion direction are the same. When the first motion direction is the same as the second motion direction, shooting can be completed without anti-shake compensation.

[0043] When the first motion direction and the second motion direction are not the same, a first compensation component and a second compensation component are obtained, and the first compensation component and the second compensation component are determined as the panning parameters.

[0044] When calculating the first compensation component and the second compensation component, as Figure 4 shown, the jitter information H can be decomposed in the vertical direction of the motion information O to obtain a first compensation component S1, and the jitter information H can be decomposed in the horizontal direction of the motion information O to obtain a second compensation component S2.

[0045] Specifically, when obtaining the first compensation component, a first compensation motion direction can be calculated according to the first motion direction and the second motion direction; a first compensation motion speed can be calculated according to the first motion direction, the second motion direction, and the second motion speed; and the first compensation motion direction and the first compensation motion speed are determined as the first compensation component.

[0046] Exemplarily, the first compensation motion direction p can be calculated according to the formula and the first compensation motion speed v can be calculated according to the formula v = v2 * |sin(p2 - p1)| to obtain the first compensation component S1(p, v).

[0047] Specifically, when obtaining the second compensation component, the second compensation motion direction can be calculated according to the first motion direction and the second motion direction; the second compensation motion speed can be calculated according to the first motion direction, the second motion direction, the first motion speed and the second motion speed; and the second compensation motion direction and the second compensation motion speed are determined as the second compensation component.

[0048] Exemplarily, the second compensation motion direction q can be calculated according to the formula q = p1 + 180° * {[(p2 - p1) - 90°] - |(p2 - p1) - 90°}, and the second compensation motion speed u can be calculated according to the formula u = v1 + v2 * cos(p2 - p1), to obtain the second compensation component S2(q, u).

[0049] Step 1300, when photographing the preview image, process the non-panning object in the preview image according to the panning parameter to obtain a target image.

[0050] Optionally, the non-panning object is an object other than the panning object in the preview image.

[0051] After calculating the first compensation component and the second compensation component, an image with an accurate focus tracking shooting effect can be achieved by compensating the first compensation component S1 in the motion direction of the non-panning object and compensating the second compensation component S2 in the motion direction of the panning object, as Figure 5 shown.

[0052] Specifically, in this step, the lens module of the electronic device can be controlled to move to the target position according to the first compensation component and the second compensation component to process the non-panning object in the preview image to obtain the target image; wherein, when the lens module is in the target position, the center of the lens module coincides with the optical center of the image sensor of the electronic device.

[0053] In one embodiment, the focus tracking shooting effect of the background can also be achieved. Specifically, after obtaining the motion information of the panning object in the preview image and the jitter information of the electronic device, the electronic device can also determine the anti-shake parameter according to the jitter information, and perform jitter processing on the non-panning object according to the anti-shake parameter to enhance the blurring intensity of the non-panning object.

[0054] Exemplarily, after the user selects the panning object, the image background can be selected from the preview image of the shooting preview interface based on methods such as feature point algorithm and image subtraction algorithm, and the optical image stabilization component can be controlled to move along a preset trajectory to achieve the background tracking shooting effect. The specific compensation and control methods can refer to the above description and will not be elaborated here.

[0055] After obtaining the background with the tracking shooting effect, the background with the tracking shooting effect is synthesized with the panning object selected by the user, so as to achieve the purpose that the background has the tracking shooting effect. Among them, the methods of synthesizing the background with the tracking shooting effect and the panning object selected by the user can include: image addition method, average value method, maximum value method, etc., which are not specifically limited here.

[0056] The shooting method of the embodiment of the present application, when displaying the preview image of the shooting preview interface, obtains the motion information of the panning object and the jitter information of the electronic device in the preview image; determines the panning parameters according to the motion information and the jitter information; when shooting the preview image, processes the non-panning object in the preview image according to the panning parameters to obtain a target image. It can determine the panning parameters according to the jitter information of the electronic device and the motion information of the panning object, so that when shooting the preview image, the non-panning object can be processed based on the panning parameters to obtain an image with an accurate tracking shooting effect.

[0057] It should be noted that for the shooting method provided by the embodiment of the present application, the execution subject can be a shooting device, or a control module in the shooting device for executing the shooting method. In the embodiment of the present application, the shooting method is executed by the shooting device as an example to illustrate the shooting device provided by the embodiment of the present application.

[0058] Figure 6 It is a schematic structural diagram of the shooting device of the embodiment of the present application. As Figure 6 shown, the shooting device 3000 of the embodiment of the present application may include: an acquisition module 3100, a determination module 3200, and a shooting module 3300.

[0059] Among them, the acquisition module 3100 is used to obtain the motion information of the panning object and the jitter information of the electronic device in the preview image when the preview image of the shooting preview interface is displayed.

[0060] The determination module is used to determine the panning parameters according to the motion information and the jitter information.

[0061] The shooting module 3300 is used to process the non-panning object in the preview image according to the panning parameters when shooting the preview image to obtain a target image.

[0062] In one embodiment, the motion information includes a first motion direction and a first motion speed; the jitter information includes a second motion direction and a second motion speed; the shooting module 3300 is specifically configured to: when the first motion direction and the second motion direction are inconsistent, obtain a first compensation component and a second compensation component; the determination module 3200 is specifically configured to: determine the first compensation component and the second compensation component as the panning parameters.

[0063] In one embodiment, the obtaining module 3100 is specifically configured to: calculate a first compensation motion direction according to the first motion direction and the second motion direction; calculate a first compensation motion speed according to the first motion direction, the second motion direction, and the second motion speed; determine the first compensation motion direction and the first compensation motion speed as the first compensation component.

[0064] In one embodiment, the obtaining module 3100 is specifically configured to: calculate a second compensation motion direction according to the first motion direction and the second motion direction; calculate a second compensation motion speed according to the first motion direction, the second motion direction, the first motion speed, and the second motion speed; determine the second compensation motion direction and the second compensation motion speed as the second compensation component.

[0065] In one embodiment, the shooting module 3300 is specifically configured to: control the lens module of the electronic device to move to a target position according to the first compensation component and the second compensation component, so as to process a non-panned object in the preview image to obtain the target image; wherein, when the lens module is in the target position, the center of the lens module coincides with the optical center of the image sensor of the electronic device.

[0066] In one embodiment, the determination module 3200 is further configured to: determine an anti-shake parameter according to the jitter information; the device further includes: a receiving module, and a processing module, configured to perform jitter processing on the non-panned object according to the anti-shake parameter to enhance the blurring intensity of the non-panned object.

[0067] The shooting device in this embodiment includes an acquisition module configured to acquire the motion information of the panning object in the preview image and the jitter information of the electronic device when the preview image of the shooting preview interface is displayed, a determination module configured to determine the panning parameters according to the motion information and the jitter information, and a shooting module configured to process the non-panning object in the preview image according to the panning parameters to obtain a target image when shooting the preview image. It can determine the panning parameters according to the jitter information of the electronic device and the motion information of the panning object, so that when shooting the preview image, the non-panning object can be processed based on the panning parameters, and an image with an accurate focus tracking shooting effect can be obtained.

[0068] The shooting device in the embodiment of the present application can be a device, or a component, an integrated circuit, or a chip in a terminal. The device can be a mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., and the embodiment of the present application does not make specific limitations.

[0069] The shooting device in the embodiment of the present application can be a device with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiment of the present application does not make specific limitations.

[0070] The shooting device provided in the embodiment of the present application can implement Figure 1 each process implemented by the method embodiment, and for the sake of brevity, it will not be repeated here.

[0071] Optionally, as Figure 7 shown, the embodiment of the present application further provides an electronic device 5000, including a processor 5100, a memory 5200, a program or instruction stored on the memory 5200 and executable on the processor 5100. When the program or instruction is executed by the processor 5100, it implements each process of the shooting method embodiment shown above Figure 1 and can achieve the same technical effect. For the sake of brevity, it will not be repeated here.

[0072] It should be noted that the electronic device in the embodiment of the present application includes the above-mentioned mobile electronic device.

[0073] Figure 8 Schematic diagram of the hardware structure of an electronic device for implementing the embodiment of the present application.

[0074] The electronic device 600 includes, but is not limited to, components such as a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, and a processor 610, etc.

[0075] Those skilled in the art can understand that the electronic device 600 may further include a power source (such as a battery) for powering each component. The power source can be logically connected to the processor 610 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. Figure 8 The structure of the electronic device shown does not limit 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.

[0076] Among them, the processor 610 is used to obtain the motion information of the panning object and the jitter information of the electronic device when displaying the preview image of the shooting preview interface; determine the panning parameters according to the motion information and the jitter information; and process the non-panning object in the preview image according to the panning parameters when shooting the preview image to obtain a target image.

[0077] In one embodiment, the motion information includes a first motion direction and a first motion speed; the jitter information includes a second motion direction and a second motion speed; specifically, the processor 610 is configured to: when the first motion direction and the second motion direction are inconsistent, obtain a first compensation component and a second compensation component; and determine the first compensation component and the second compensation component as the panning parameters.

[0078] In one embodiment, the processor 610 is specifically configured to: calculate a first compensation motion direction according to the first motion direction and the second motion direction; calculate a first compensation motion speed according to the first motion direction, the second motion direction, and the second motion speed; and determine the first compensation motion direction and the first compensation motion speed as the first compensation component.

[0079] In one embodiment, the processor 610 is specifically configured to: calculate a second compensation motion direction according to the first motion direction and the second motion direction; calculate a second compensation motion speed according to the first motion direction, the second motion direction, the first motion speed, and the second motion speed; and determine the second compensation motion direction and the second compensation motion speed as the second compensation component.

[0080] In one embodiment, the processor 610 is specifically configured to control the lens module of the electronic device to move to a target position according to the first compensation component and the second compensation component, so as to process a non-panning object in the preview image to obtain the target image; wherein, when the lens module is in the target position, the center of the lens module coincides with the optical center of the image sensor of the electronic device.

[0081] In one embodiment, the processor 610 may further be configured to: determine an anti-shake parameter according to the shake information; perform shake processing on the non-panning object according to the anti-shake parameter to enhance the blurring intensity of the non-panning object.

[0082] The electronic device according to the embodiment of the present application can be used to execute the technical solutions of the above method embodiments, and its implementation principle and technical effects are similar, and will not be described in detail here.

[0083] It should be understood that, in the embodiment of the present application, the input unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042. The graphics processor 6041 processes the image data of static pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 607 includes a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch controller. The other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here. The memory 609 may be used to store software programs and various data, including but not limited to application programs and operating systems. The processor 610 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above modem processor may not be integrated into the processor 610.

[0084] The embodiment of the present application further provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, it implements the above Figure 1 each process of the shooting method embodiment shown, and can achieve the same technical effect. To avoid repetition, it will not be described in detail here.

[0085] Among them, 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 disc, etc.

[0086] Another embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above Figure 1 each process of the embodiment of the shooting method shown, and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0087] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.

[0088] It should be noted that in this article, the term "including", "comprising", or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article, or device. Without further limitations, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article, or device including that element. In addition, it should be pointed out that the methods and devices in the embodiments of the present application are not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the reverse order according to 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. Additionally, the features described with reference to certain examples may be combined in other examples.

[0089] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method. Based on such an understanding, the technical solution of the present 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 disc) and includes several instructions for causing a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present application.

[0090] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative rather than restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them fall within the protection scope of the present application.

Claims

1. A shooting method, characterized in that, The method includes: When displaying a preview image of a shooting preview interface, obtaining motion information of a panning object and jitter information of an electronic device in the preview image, where the panning object is in a moving state; the motion information includes a first motion direction and a first motion speed; the jitter information includes a second motion direction and a second motion speed; When the first motion direction and the second motion direction are inconsistent, calculating a first compensation motion direction and a second compensation motion direction according to the first motion direction and the second motion direction; Calculating a first compensation motion speed according to the first motion direction, the second motion direction, and the second motion speed; Calculating a second compensation motion speed according to the first motion direction, the second motion direction, the first motion speed, and the second motion speed; Determining the first compensation motion direction and the first compensation motion speed as a first compensation component, and determining the second compensation motion direction and the second compensation motion speed as a second compensation component; Determining the first compensation component and the second compensation component as the panning parameters; When shooting the preview image, processing a non-panning object in the preview image according to the panning parameters to obtain a target image.

2. The method according to claim 1, wherein The processing the non-panning object in the preview image according to the panning parameters to obtain a target image includes: Controlling a lens module of the electronic device to move to a target position according to the first compensation component and the second compensation component to process a non-panning object in the preview image to obtain the target image; Wherein, when the lens module is in the target position, the center of the lens module coincides with the optical center of an image sensor of the electronic device.

3. A photographing device, characterized in that, The device includes: An obtaining module, configured to obtain motion information of a panning object and jitter information of an electronic device in the preview image when displaying a preview image of a shooting preview interface, where the panning object is in a moving state; the motion information includes a first motion direction and a first motion speed; the jitter information includes a second motion direction and a second motion speed; A determining module, configured to calculate a first compensation motion direction and a second compensation motion direction according to the first motion direction and the second motion direction when the first motion direction and the second motion direction are inconsistent; Calculating a first compensation motion speed according to the first motion direction, the second motion direction, and the second motion speed; Calculating a second compensation motion speed according to the first motion direction, the second motion direction, the first motion speed, and the second motion speed; Determining the first compensation motion direction and the first compensation motion speed as a first compensation component, and determining the second compensation motion direction and the second compensation motion speed as a second compensation component; Determining the first compensation component and the second compensation component as the panning parameters; The shooting module is used to process the non-panning object in the preview image according to the panning parameter to obtain a target image when shooting the preview image.

4. An electronic device, characterized in that, It includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor. When the program or instruction is executed by the processor, it implements the steps of the shooting method according to any one of claims 1 to 2.

5. A readable storage medium, characterized in that, The program or instruction is stored on the readable storage medium. When the program or instruction is executed by the processor, it implements the steps of the shooting method according to any one of claims 1 to 2.

Citation Information

Patent Citations

  • Apparatus and method correcting shake of moving image

    KR100975049B1