CN114500838A - Anti-shake shooting method and device - Google Patents

Anti-shake shooting method and device Download PDF

Info

Publication number
CN114500838A
CN114500838A CN202210086035.6A CN202210086035A CN114500838A CN 114500838 A CN114500838 A CN 114500838A CN 202210086035 A CN202210086035 A CN 202210086035A CN 114500838 A CN114500838 A CN 114500838A
Authority
CN
China
Prior art keywords
shake
movement amount
compensation
scroll screen
offset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210086035.6A
Other languages
Chinese (zh)
Inventor
李宪海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202210086035.6A priority Critical patent/CN114500838A/en
Publication of CN114500838A publication Critical patent/CN114500838A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/681Motion detection
    • H04N23/6812Motion detection based on additional sensors, e.g. acceleration sensors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly
    • H04M1/0268Details of the structure or mounting of specific components for a display module assembly including a flexible display panel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/682Vibration or motion blur correction
    • H04N23/685Vibration or motion blur correction performed by mechanical compensation

Abstract

The application discloses an anti-shake shooting method and device, and relates to the field of electronic equipment. The anti-shake shooting method is applied to a mobile terminal, the mobile terminal comprises a scroll screen and a camera arranged on the scroll screen, and the anti-shake shooting method comprises the following steps: acquiring the jitter offset of the camera in the shooting process; determining a compensation movement amount of the scroll screen according to the jitter offset, wherein the compensation movement amount is associated with the jitter offset; and controlling the scroll screen to move according to the compensation movement amount so as to perform shake compensation on the camera.

Description

Anti-shake shooting method and device
Technical Field
The application belongs to the field of electronic equipment, and particularly relates to an anti-shake shooting method and device.
Background
In the use process of a mobile terminal (such as a mobile phone, etc.), a user often holds the mobile terminal for shooting.
And the camera of the mobile terminal can shake when the handheld mobile terminal shoots. In order to improve the shooting quality, the related art employs an optical anti-shake (e.g., a movable lens based on a module design) on hardware to eliminate the shake.
However, the optical anti-shake is limited by the stroke of the motor, and the anti-shake range is small.
Disclosure of Invention
The embodiment of the application provides an anti-shake shooting method and device, which can solve the technical problem that the optical anti-shake range is small in the related art.
In a first aspect, an embodiment of the present application provides an anti-shake shooting method, which is applied to a mobile terminal, where the mobile terminal includes a scroll screen and a camera disposed on the scroll screen, and the anti-shake shooting method includes:
acquiring the jitter offset of the camera in the shooting process;
determining a compensation movement amount of the scroll screen according to the jitter offset, wherein the compensation movement amount is associated with the jitter offset;
and controlling the scroll screen to move according to the compensation movement amount so as to perform shake compensation on the camera.
In a second aspect, an embodiment of the present application provides an anti-shake shooting device, is applied to mobile terminal, and mobile terminal includes the spool screen and sets up camera on the spool screen, anti-shake shooting device includes:
the acquisition module is used for acquiring the jitter offset of the camera in the shooting process;
the determining module is used for determining the compensation movement amount of the scroll screen according to the jitter offset, and the compensation movement amount is associated with the jitter offset;
and the control module is used for controlling the scroll screen to move according to the compensation movement amount so as to perform shake compensation on the camera.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and running on the processor, and when executed by the processor, the computer program implements the steps of the anti-shake photographing method according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the anti-shake photographing method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the anti-shake shooting method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product, stored on a storage medium, for execution by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, the jitter offset of a camera in the shooting process is obtained; determining a compensation movement amount of the scroll screen according to the jitter offset, wherein the compensation movement amount is associated with the jitter offset; and controlling the scroll screen to move according to the compensation movement amount so as to perform shake compensation on the camera. Like this, at the in-process that the mobile terminal who utilizes to have the spool screen shoots, utilize the removal of spool screen itself to drive the camera and remove the shake that offsets the camera, compare with optical type anti-shake mode among the correlation technique, because the removal space and/or the range of motion of spool screen itself are great relatively, therefore, can solve the little technical problem of anti-shake range among the correlation technique to a certain extent.
Drawings
The above and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of an anti-shake photographing method provided in an embodiment of the present application;
fig. 2 is a schematic flow chart of another anti-shake photographing method provided by an embodiment of the present application;
fig. 3 is a schematic flow chart of another anti-shake photographing method provided by an embodiment of the present application;
FIG. 4-1 is a schematic structural diagram of an anti-shake photographed picture provided in an embodiment of the present application;
fig. 4-2 is a schematic structural diagram of another anti-shake photographed picture provided by an embodiment of the present application;
fig. 5 is a schematic flow chart of another anti-shake photographing method provided by an embodiment of the present application;
FIG. 6-1 is a schematic structural diagram of another anti-shake photographed picture provided in the embodiments of the present application;
FIG. 6-2 is a schematic structural diagram of another anti-shake photographed picture provided in the embodiments of the present application;
fig. 7 is a schematic flowchart of another anti-shake photographing method provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of an anti-shake photographing apparatus provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 10 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Description of reference numerals:
10-a mobile terminal; 101-scroll screen; 1011-rotatable part of a scroll screen; 1012-non-rotatable part of the roller screen; 102-a camera; 103-hinge.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The anti-shake photographing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a flowchart of an anti-shake photographing method according to an embodiment of the present application.
As shown in fig. 1, an anti-shake photographing method provided in an embodiment of the present application is applied to a mobile terminal, where the mobile terminal includes a scroll screen and a camera disposed on the scroll screen, and the anti-shake photographing method provided in an embodiment of the present application may include:
step 110: acquiring the jitter offset of the camera in the shooting process;
step 120: determining a compensation movement amount of the scroll screen according to the jitter offset, wherein the compensation movement amount is associated with the jitter offset;
step 130: and controlling the scroll screen to move according to the compensation movement amount so as to perform shake compensation on the camera.
It can be understood that the mobile terminal often shakes in the process of shooting by holding the mobile terminal by a user, and the shake of the mobile terminal drives the shake of a camera on the mobile terminal. In the embodiment of the application, in the case that the camera is stationary relative to the mobile terminal, since the shake offset of the mobile terminal during shooting can be understood as the shake offset of the camera during shooting, acquiring the shake offset of the camera during shooting may specifically be acquiring the shake offset of the mobile terminal during shooting.
In step 110, the embodiment of the present application does not specifically limit the manner of obtaining the jitter offset. For example, in the embodiment of the present application, the shake offset of the camera during shooting can be obtained by a sensor component such as an acceleration sensor and an angular velocity sensor. Of course, the jitter offset may also be obtained by other sensors, and the present application is not limited to this.
In this embodiment of the application, since the camera is disposed on the scroll screen, in step 120, for the mobile terminal disposed with the scroll screen, the movement of the scroll screen can drive the camera to move. On the basis of this, the compensating movement of the reel screen can actually also be understood as the compensating movement of the camera. That is to say, the scroll screen is controlled to move according to the compensation movement amount, and the camera is driven to move according to the compensation movement amount.
In step 120, the compensation movement amount is associated with the shake offset amount, and the compensation movement amount of the scroll screen may be determined according to the shake offset amount. For example, the direction of compensating the movement amount is opposite to the direction of the shake shift amount, or the direction of compensating the movement amount is away from the direction of the shake shift amount. The magnitude of the compensation movement amount is associated with the magnitude of the shake offset amount, for example, the magnitude of the compensation movement amount has a preset functional relationship with the magnitude of the shake offset amount. Thereby, the amount of compensation movement of the reel screen can be determined according to the shake offset amount.
In step 130, the scroll screen is controlled to move according to the compensation movement amount, and the movement of the scroll screen drives the camera to move, which is equivalent to driving the camera to move according to the compensation movement amount. The camera moves according to the compensation movement amount, the shake offset of the camera can be offset, and shake compensation is performed on the camera, so that a shot picture is clearer.
And, compare with optical type anti-shake mode among the correlation technique, because the removal space and/or the range of motion of spool screen itself are great relatively to the removal space and/or the range of motion that the removal of spool screen drove the removal of camera can be bigger, therefore, can solve the little technical problem of anti-shake range among the correlation technique to a certain extent.
In the anti-shake shooting method provided by the embodiment of the application, the shake offset of a camera in the shooting process is obtained; determining the compensation movement amount of the scroll screen according to the jitter offset, wherein the compensation movement amount is associated with the jitter offset; and controlling the scroll screen to move according to the compensation movement amount so as to perform shake compensation on the camera. Like this, at the in-process that the mobile terminal who utilizes to have the spool screen shoots, utilize the removal of spool screen itself to drive the camera and remove the shake that offsets the camera, compare with optical type anti-shake mode among the correlation technique, because the removal space and/or the range of motion of spool screen itself are great relatively, therefore, can solve the little technical problem of anti-shake range among the correlation technique to a certain extent.
In one particular embodiment, to maintain the relative stability of the camera, the amount of compensating movement of the scroll screen may be determined based on the amount of jitter offset. The determination of the compensated movement of the reel screen is illustrated below by way of example in fig. 2. Of course, the embodiment of the method shown in fig. 2 is only for illustration and is not meant to limit the application, and the embodiment of the application may also determine the compensated movement amount of the scroll screen through other specific embodiments.
Fig. 2 is a schematic flowchart of an anti-shake photographing method provided in an embodiment of the present application.
As shown in fig. 2, in an anti-shake photographing method provided in an embodiment of the present application, the step 120 may include:
step 210: multiplying the jitter offset by a preset conversion coefficient to obtain a first movement amount, wherein the preset conversion coefficient is a predetermined constant;
step 220: if the first movement amount is within a preset range, taking the first movement amount as the compensation movement amount;
step 230: if the first movement amount is out of the preset range, taking a preset movement amount as the compensation movement amount; wherein the preset movement amount is an upper limit value or a lower limit value of the preset range.
In step 210, the preset conversion coefficient may be a predetermined negative constant, and thus, the direction of the first shift amount and the direction of the shake offset amount may be opposite. For example, in the process of taking a picture or recording a video by a user holding the mobile terminal, the shake offset y of the camera is detected, and the shake offset y may be a vector and includes a direction of the shake offset. The scroll controller obtains a jitter offset y, and calculates a first movement z1 according to the jitter offset y, where the conversion formula may be z1 ═ - γ × y (- γ preset conversion coefficient, γ is a normal number smaller than 1).
In practical application, the value of γ can be obtained by pre-calculation, and the value of γ is associated with the precision and anti-shake level of a driving motor, and the driving motor is a motor for driving the scroll screen to move. For example, the larger the range of the preset range corresponding to the anti-shake level is, the larger the value of γ is.
In steps 220 and 230, the preset range may be a reasonable value range for compensating the movement amount, and the preset range may be different according to the anti-shake level. For example, shooting modes of the camera at different anti-shake levels (e.g., a reel anti-shake standard mode, a reel anti-shake super mode, etc.) may be set in advance; the preset range of the compensation movement amount in the reel anti-shake standard mode is predetermined as [ -a, a ], and the compensation range of the compensation movement amount in the reel anti-shake super mode is predetermined as [ -b, b ], wherein b > a > 0.
Based on this, for example, in the case where the user selects the reel anti-shake standard mode for shooting, if the first movement amount z1 is within the compensation amount range [ -a, a ] preset in the standard mode, the compensation movement amount z ═ z 1; if the first shift amount z1 is outside the standard mode preset compensation amount range [ -a, a ], the compensation shift amount z takes the upper limit value a or the lower limit value-a of the preset range according to the direction of the first shift amount z1, which is the same as the direction of the first shift amount z 1.
For another example, in a case where the user selects the scroll anti-shake super mode for photographing, if the first movement amount z1 is within a compensation amount range [ -b, b ] preset in the super mode, the compensation movement amount z is equal to z1, and if the first movement amount z1 is outside the compensation amount range [ -b, b ] preset in the super mode, the compensation movement amount z takes the upper limit value b or the lower limit value-b of the preset range according to the direction of the first movement amount z1, which is the same as the direction of the first movement amount z 1.
In the anti-shake photographing method provided by the embodiment of the application, the shake offset is multiplied by a preset conversion coefficient to obtain a first movement amount, wherein the preset conversion coefficient is a predetermined constant; if the first movement amount is within a preset range, taking the first movement amount as the compensation movement amount; if the first movement amount is out of the preset range, taking a preset movement amount as the compensation movement amount; wherein the preset movement amount is an upper limit value or a lower limit value of the preset range. Therefore, in the process of shooting by using the mobile terminal with the scroll screen, the compensation movement amount of the scroll screen is reasonably determined according to the shake offset of the camera and the preset range of the compensation movement amount, and the relative stability of the camera can be more accurately kept.
The camera is driven to move by the movement of the scroll screen, so that the shaking of the camera is counteracted. While the movement of the roller screen itself may include different types of movement, the roller screen itself may not only translate (e.g., extend or retract) but also rotate. Therefore, the moving directions of the scroll screen which is controlled to move according to the compensation moving amount can be different, and then the shaking of the camera in different directions can be flexibly counteracted. The following specifically exemplifies the anti-shake photographing method provided by the embodiment of the present application according to different movement types of the scroll screen.
Fig. 3 is a schematic flowchart of an anti-shake photographing method provided in an embodiment of the present application.
Taking the case that the movement of the scroll screen is the expansion of the scroll screen as an example, the mobile terminal may be provided with a driving motor which drives the scroll screen to expand. As shown in fig. 3, in a specific embodiment, an anti-shake photographing method provided by the embodiment of the present application may include:
step 310: acquiring the jitter offset of the camera in the shooting process, wherein the jitter offset has a first jitter direction parallel to the expansion direction of the scroll screen;
step 320: determining the compensation movement amount of the scroll screen according to the jitter offset; the compensation movement amount has a direction opposite to the first shake direction;
step 330: and controlling the scroll screen to move along the direction opposite to the first shaking direction according to the compensation movement amount so as to carry out shaking compensation on the camera.
Step 310 may be a sub-step of step 110; step 320 may be a substep of step 120; the above step 330 may be a sub-step of the step 130.
In step 310, since the jitter offset has a first jitter direction parallel to the expansion and contraction direction of the scroll screen, the unit of the jitter offset may be a length unit, such as centimeter, millimeter, etc. Specifically, the shake offset of the mobile terminal in the shooting process can be detected through the acceleration sensor, and the shake offset of the mobile terminal in the shooting process is used as the shake offset of the camera in the shooting process; the direction of the shake offset of the camera during shooting may be the same as or opposite to the direction of extension of the scroll screen. Of course, the jitter offset may also be obtained by other manners, and the present application is not limited in particular.
In step 320, the compensation movement amount has a direction opposite to the first shaking direction, and the specific manner of determining the magnitude of the compensation movement amount of the scroll screen may refer to the specific content of the method embodiment shown in fig. 2, but may be other manners, and is not described herein again.
In step 330, the scroll screen is controlled to move in a direction opposite to the first shaking direction according to the compensation movement amount so as to offset the shaking offset of the scroll screen, and the camera is subjected to shaking compensation. For example, under the condition that the first shaking direction of the shaking offset is the same as the extending direction of the scroll screen, the scroll screen is controlled to contract according to the specific length of the compensation movement amount in the shooting process so as to counteract the shaking of the camera; or, under the condition that the first shaking direction of the shaking offset is the same as the contraction direction of the scroll screen, controlling the scroll screen to stretch out according to the specific length of the compensation movement amount in the shooting process so as to counteract the shaking of the camera.
Fig. 4-1 and 4-2 are schematic structural diagrams of an anti-shake photographed picture provided by an embodiment of the present application. The anti-shake photographing method shown in fig. 3 will be described below by taking fig. 4-1 and 4-2 as an example.
As shown in fig. 4-1, fig. 4-1 presents a right side view and a front view, respectively, of the mobile terminal 10, the mobile terminal 10 including a scroll screen 101 and a camera 102 disposed on the scroll screen 101. Fig. 4-2 is a schematic interface diagram of the mobile terminal performing the jitter compensation process based on fig. 4-1, as shown in fig. 4-2, where the X direction is the stretching direction of the scroll screen, and the Y direction is a first jitter direction parallel to the stretching direction (X direction) of the scroll screen, where the jitter offset is measured; when the scroll screen 101 extends upwards, the camera can be driven to move upwards so as to offset the downward shaking offset of the camera; when the scroll screen 101 is retracted downward, the camera can be driven to move downward to offset the upward shake offset of the camera.
In practical applications, the user may select different anti-shake levels for shooting before step 310. The anti-shake level of the reel anti-shake standard mode and the reel anti-shake super mode is different. The shooting modes of the camera at different anti-shake levels (such as a standard mode and a super mode shown in fig. 4-1) can be preset; the preset range of the compensating movement amount in the reel anti-shake standard mode is predetermined as [ -a, a ], and the compensation range of the compensating movement amount in the reel anti-shake super mode is predetermined as [ -b, b ], wherein b > a > 0. Thus, after the reel anti-shake standard mode or super mode is selected, it is advantageous to determine the compensated movement amount of the reel screen according to the pass through shake offset amount and the preset range in step 320.
In the anti-shake shooting method provided by the embodiment of the application, the shake offset of the camera in the shooting process is obtained, wherein the shake offset has a first shake direction parallel to the telescopic direction of the scroll screen; determining a compensation movement amount of the scroll screen according to the shaking offset amount, wherein the compensation movement amount has a direction opposite to the first shaking direction; and controlling the scroll screen to move along the direction opposite to the first shaking direction according to the compensation movement amount so as to carry out shaking compensation on the camera. Therefore, in the process of shooting by using the mobile terminal with the scroll screen, the scroll screen is controlled to stretch and contract according to the compensation movement amount along the direction opposite to the first shaking direction by using the stretching characteristic of the scroll screen, so that the camera is driven to move to offset the shaking of the camera in the first shaking direction.
Fig. 5 is a schematic flowchart of another anti-shake photographing method provided in an embodiment of the present application.
Fig. 6-1 and 6-2 are schematic structural diagrams of an anti-shake photographing picture related to the anti-shake photographing method shown in fig. 5 provided in an embodiment of the present application.
Taking the example that the movement of the scroll screen is the rotation of the scroll screen, the scroll screen comprises a rotatable portion, and the camera is arranged on the rotatable portion of the scroll screen. As shown in fig. 6-1, fig. 6-1 presents a right side view and a front view of the mobile terminal 10, respectively, the mobile terminal 10 may further include a hinge 103, the hinge 103 divides the scroll screen 101 into a rotatable portion 1011 and a non-rotatable portion 1012, the camera 102 is disposed on the rotatable portion 1011 of the scroll screen 101, and the driving motor drives the hinge 103 to rotate, so as to drive the rotatable portion of the scroll screen and the camera to rotate. Specifically, fig. 6-2 is a schematic interface diagram of the mobile terminal performing the shake compensation process based on fig. 6-1, and as shown in fig. 6-1 and fig. 6-2, when the hinge 103 rotates clockwise as viewed in the front view of the mobile terminal 10, the rotatable portion of the scroll screen and the camera are driven to rotate backward; when the hinge 103 rotates counterclockwise, the rotatable part of the scroll screen and the camera can be driven to rotate forward. Of course, the rotation mode of the rotatable scroll screen can also be realized by other modes, and the application is not particularly limited.
As shown in fig. 5, in another specific embodiment, an anti-shake photographing method according to an embodiment of the present application may include:
step 510: acquiring the shake offset of the camera in the shooting process, wherein the shake offset has a second shake direction associated with the rotation direction of the scroll screen;
step 520: determining the compensation movement amount of the scroll screen according to the jitter offset; the compensation movement amount has a direction deviating from the second shake direction;
step 530: and controlling the rotatable part of the scroll screen to rotate along the direction deviating from the second shaking direction according to the size of the compensation movement amount so as to carry out shaking compensation on the camera.
Step 510 may be a sub-step of step 110; step 520 may be a sub-step of step 120; step 530 described above may be a sub-step of step 130.
In step 510, the unit of the dither offset may be an angular unit, such as degrees, etc., since the dither offset has a second dither direction associated with the rotational direction of the spool screen. Specifically, the shake offset of the mobile terminal in the shooting process can be detected through the angular velocity sensor, and the shake offset of the mobile terminal in the shooting process is used as the shake offset of the camera in the shooting process; the second shake direction of the shake offset of the camera in the shooting process can be deviated from the rotation direction of the scroll screen. Of course, the jitter offset may also be obtained by other manners, and the present application is not limited in particular.
In step 520, the compensation movement amount has a direction deviating from the second shaking direction, and the specific manner of determining the magnitude of the compensation movement amount of the scroll screen may refer to the specific content of the method embodiment shown in fig. 2, but may be other manners, which is not described herein again.
In step 530, the scroll screen is controlled to rotate in a direction away from the second shaking direction according to the compensation movement amount to offset the shaking offset of the scroll screen, so as to perform shaking compensation on the camera. Wherein the direction that is away from the second dither direction of the dither offset may include a direction that is opposite to the second dither direction of the dither offset. For example, taking fig. 6-2 as an example, in the case that the second shake direction of the shake offset amount is forward shake, the scroll screen is controlled to rotate backward by a specific angle compensating the movement amount during shooting to counteract shake of the camera; or, in the case that the second shaking direction of the shaking offset is backward shaking, the scroll screen is controlled to rotate forward according to the specific angle of the compensation movement amount during shooting so as to counteract shaking of the camera.
In the anti-shake shooting method provided by the embodiment of the application, a shake offset of the camera in the shooting process is obtained, wherein the shake offset has a second shake direction associated with the rotation direction of the scroll screen; determining a compensation movement amount of the scroll screen according to the jitter offset, wherein the compensation movement amount has a direction deviating from the second jitter direction; and controlling the scroll screen to rotate according to the compensation movement amount along the direction deviating from the second shaking direction so as to carry out shaking compensation on the camera. Therefore, in the process of shooting by using the mobile terminal with the scroll screen, the scroll screen is controlled to rotate according to the compensation movement amount, so that the camera is driven to move back and forth to offset the shake of the camera in the second shake direction.
Fig. 7 is a schematic flowchart of an anti-shake photographing method provided in an embodiment of the present application.
Of course, the movement of the scroll screen may also be a compound movement including linear movement and rotation, as shown in fig. 7, in another specific embodiment, the scroll screen is a rotatable scroll screen, the scroll screen includes a rotatable portion and a non-rotatable portion, and the camera is disposed on the rotatable portion of the scroll screen, and the embodiment of the present application provides an anti-shake photographing method, which may include:
step 710: acquiring the jitter offset of the camera in the shooting process; the shake offset amount includes a first shake offset amount having a first shake direction parallel to a telescopic direction of the spool screen and a second shake offset amount having a second shake direction associated with a rotational direction of the spool screen;
step 720: determining a first compensation movement amount of the scroll screen according to the first jitter offset; determining a second compensation movement amount of the scroll screen according to the second jitter offset; the first compensation movement amount has a direction opposite to the first shake direction, and the second compensation movement amount has a direction away from the second shake direction;
step 730: controlling the rotatable part of the scroll screen to rotate along the direction deviating from the second shaking direction according to the second compensation movement amount; and controlling the non-rotatable part of the scroll screen to linearly move along the direction opposite to the first shaking direction according to the first compensation movement amount so as to perform shaking compensation on the camera.
Step 710 may be a sub-step of step 110; step 720 may be a substep of step 120; step 730 described above may be a sub-step of step 130.
In step 710, the jitter offset includes a first jitter offset and a second jitter offset.
The first shaking offset has a first shaking direction parallel to the expansion direction of the scroll screen, and the unit of the first shaking offset may be a length unit, such as centimeter, millimeter, and the like. Specifically, a first shake offset of the mobile terminal in the shooting process can be detected through the acceleration sensor, and the first shake offset of the mobile terminal in the shooting process is used as the first shake offset of the camera in the shooting process; the direction of the first shake offset of the camera in the shooting process can be parallel to the telescopic direction of the scroll screen.
Wherein the second dither offset has a second dither direction associated with the rotational direction of the spool screen, and the unit of the second dither offset may be an angular unit, such as degrees or the like. Specifically, a second shake offset of the mobile terminal in the shooting process can be detected through the angular velocity sensor, and the second shake offset of the mobile terminal in the shooting process is used as a second shake offset of the camera in the shooting process; the second shake direction of the second shake offset of the camera in the shooting process can deviate from the rotation direction of the scroll screen. Of course, the jitter offset may also be obtained by other manners, and the present application is not limited in particular.
In step 720, the first compensating movement amount may have a direction opposite to the first shaking direction, the second compensating movement amount may have a direction away from the second shaking direction, and the specific manner of determining the magnitude of the first compensating movement amount and the magnitude of the second compensating movement amount of the scroll screen may refer to the specific contents of the method embodiment shown in fig. 2. Further description is provided below by way of example.
In the embodiment of the present application, the specific implementation manner of determining the first compensation movement amount may include:
multiplying the first jitter offset component by a first preset conversion coefficient to obtain a first movement amount, wherein the first preset conversion coefficient is a negative constant predetermined according to the actual jitter elimination condition; if the first movement amount is within a first preset range, taking the first movement amount as a first compensation movement amount; if the first movement amount is out of the first preset range, taking the first preset movement amount as a first compensation movement amount; the first preset movement amount is an upper limit value or a lower limit value of the first preset range.
Similarly, in the embodiment of the present application, a specific implementation manner of determining the second compensation movement amount may include:
multiplying the second jitter offset component by a second preset conversion coefficient to obtain a second movement amount, wherein the second preset conversion coefficient is a negative constant predetermined according to the actual jitter elimination condition; if the second movement amount is within a second preset range, taking the second movement amount as a second compensation movement amount; if the second movement amount is out of the second preset range, taking the second preset movement amount as a second compensation movement amount; and the second preset movement amount is an upper limit value or a lower limit value of the second preset range. Specific examples are described below.
In practical application, during the process of taking a picture or recording a video by holding the mobile terminal by a user, recording a first jitter offset component y of jitter of the mobile terminal, where the first jitter offset component y may be a vector and includes a direction (up or down) of the first jitter offset component, and the reel controller obtains the first jitter offset component y and converts the first jitter offset component y into a first movement amount z1 by calculating, where the conversion formula may be z1 ═ γ × y (- γ first preset conversion coefficient, and γ is a normal number). Meanwhile, in the process of photographing or video recording by holding the mobile terminal by a user, recording a second jitter offset component m of the jitter of the mobile terminal, wherein the second jitter offset component m is a vector and comprises the direction (forward or backward) of the second jitter offset component, the scroll controller acquires the second jitter offset component m and converts the second jitter offset component m into a second movement amount q1 through calculation, and the conversion formula can be q1 ═ β × m (- β second preset conversion coefficient, β is a normal number).
On the basis of this, it is determined whether the first shift amount z1 and the second shift amount q1 are within a reasonable range of the compensation shift amount. The first movement z1 can be [ -a, a ], [ -b, b ], and b > a >0 in the preset reel anti-shake standard mode and the preset reel anti-shake super mode, respectively. The second predetermined compensation ranges of the second moving amount q1 in the preset reel anti-shake standard mode and the preset reel anti-shake super mode are [ -c, c ], [ -d, d ], and d > c >0, respectively.
Based on this, in the case where the user selects the reel anti-shake standard mode for photographing, if the first moving amount z1 is within the compensation amount range [ -a, a ] preset in the standard mode, the first compensation moving amount is z 1; if the first moving amount z1 is outside the compensation amount range [ -a, a ] preset in the standard mode, the first compensation moving amount z takes the upper limit value a or the lower limit value-a of the preset range according to the direction of the first moving amount z1, which is the same as the direction of the first moving amount z 1. Similarly, if the second movement amount q1 is within the standard mode preset compensation amount range [ -c, c ], the second compensation movement amount is q 1; if the second moving amount q1 is outside the compensation amount range [ -c, c ] preset in the standard mode, the second compensation moving amount q takes the upper limit value c or the lower limit value-c of the preset range according to the direction of the second moving amount q1, which is the same as the direction of the second moving amount q 1.
For another example, in the case where the user selects the reel anti-shake super mode for photographing, if the first moving amount z1 is within the compensation amount range [ -b, b ] preset in the super mode, the first compensation moving amount is z 1; if the first shift amount z1 is outside the super mode preset compensation amount range [ -b, b ], the first compensation shift amount z takes the upper limit value b or the lower limit value-b of the preset range according to the direction of the first shift amount z1, which is the same as the direction of the first shift amount z 1. Similarly, if the second movement amount q1 is within the super-mode preset compensation amount range [ -d, d ], the second compensation movement amount is q 1; if the second moving amount q1 is outside the super mode preset compensation amount range [ -d, d ], the second compensation moving amount q takes the upper limit value d or the lower limit value-d of the preset range according to the direction of the second moving amount q1, wherein the direction of the second compensation moving amount q is the same as the direction of the second moving amount q 1.
In step 730, the order of controlling the parallel movement and rotation of the spool screen is not particularly limited.
For example, in the embodiment of the present application, the scroll screen may be controlled to rotate according to the second compensation movement amount in a direction away from the second shaking direction of the second shaking offset amount; and then controlling the scroll screen to move along the direction opposite to the first shaking direction of the first shaking offset according to the first compensation movement amount.
For another example, in the embodiment of the present application, the scroll screen may be simultaneously controlled to rotate in a direction away from the second shaking direction of the second shaking offset amount according to the second compensation movement amount; and controlling the scroll screen to move in a direction opposite to the first shaking direction of the first shaking offset amount according to the first compensation movement amount. The present application is not particularly limited.
In step 730, since the rotatable portion of the scroll screen and the non-rotatable portion of the scroll screen both have the same expansion and contraction characteristics, the non-rotatable portion of the scroll screen is controlled to move linearly in a direction opposite to the first shaking direction, which is understood to mean that the linear movement of the non-rotatable portion drives the rotatable portion of the scroll screen to move linearly in the same direction as the non-rotatable portion; and then drive the camera to make the same linear movement as the non-rotatable part. Here, the linear movement refers to a linear movement in a specific direction (i.e., a direction opposite to the first shake direction of the first shake offset amount). The specific scroll screen control method may refer to step 330 and step 530, and the interface schematic diagram of the anti-shake photographed image may also refer to fig. 4-2 and fig. 6-2, which are not described herein again.
In the anti-shake shooting method provided by the embodiment of the application, the shake offset of the camera in the shooting process is obtained; the shake offset amount includes a first shake offset amount having a first shake direction parallel to a telescopic direction of the spool screen and a second shake offset amount having a second shake direction associated with a rotational direction of the spool screen; determining a first compensation movement amount of the scroll screen according to the first jitter offset; determining a second compensation movement amount of the scroll screen according to the second jitter offset; the first compensation movement amount has a direction opposite to the first shake direction, and the second compensation movement amount has a direction away from the second shake direction; controlling the scroll screen to rotate along a direction deviating from a second shaking direction according to the second compensation movement amount; and controlling the scroll screen to move along the direction opposite to the first shaking direction according to the size of the first compensation movement amount so as to carry out shaking compensation on the camera. In this way, in the process of shooting by using the mobile terminal with the scroll screen, the scroll screen is controlled to extend, retract and rotate according to the compensation movement amount by using the extension and retraction characteristic and the rotation characteristic of the scroll screen, so that the camera is driven to move to extend, retract and rotate, and the shake of the camera in a first shake direction (for example, the up-down extension direction) and a second shake direction (for example, the front-back direction) is counteracted.
It should be noted that, in the anti-shake photographing method provided in the embodiment of the present application, the execution subject may be an anti-shake photographing apparatus, or a control module of the anti-shake photographing apparatus for executing the anti-shake photographing method. In the embodiment of the present application, a method for performing anti-shake shooting by an anti-shake shooting device is taken as an example, and the anti-shake shooting device provided in the embodiment of the present application is described.
Fig. 8 is a schematic structural diagram of an anti-shake photographing apparatus according to an embodiment of the present application.
As shown in fig. 8, an embodiment of the present application provides an anti-shake photographing apparatus 800, which is applied to a mobile terminal, where the mobile terminal includes a scroll screen and a camera disposed on the scroll screen, and the anti-shake photographing apparatus 800 includes:
an obtaining module 801, configured to obtain a shake offset of the camera in a shooting process;
a determining module 802, configured to determine, according to the jitter offset, a compensation movement amount of the scroll screen, where the compensation movement amount is associated with the jitter offset;
and the control module 803 is configured to control the scroll screen to move according to the compensation movement amount, so as to perform shake compensation on the camera.
In the anti-shake photographing apparatus provided in the embodiment of the present application, the obtaining module 801 is configured to obtain a shake offset of the camera in a photographing process; a determining module 802, configured to determine, according to the jitter offset, a compensation movement amount of the scroll screen, where the compensation movement amount is associated with the jitter offset; and the control module 803 is configured to control the scroll screen to move according to the compensation movement amount, so as to perform shake compensation on the camera. Like this, at the in-process that the mobile terminal who utilizes to have the spool screen shoots, utilize the removal of spool screen itself to drive the camera and remove the shake that offsets the camera, compare with optical type anti-shake mode among the correlation technique, because the removal space and/or the range of motion of spool screen itself are great relatively, therefore, can solve the little technical problem of anti-shake range among the correlation technique to a certain extent.
Optionally, in the anti-shake photographing apparatus provided in the embodiment of the present application, the determining module 802 is specifically configured to:
multiplying the jitter offset by a preset conversion coefficient to obtain a first movement amount, wherein the preset conversion coefficient is a predetermined constant;
if the first movement amount is within a preset range, taking the first movement amount as the compensation movement amount;
if the first movement amount is out of the preset range, taking a preset movement amount as the compensation movement amount; wherein the preset movement amount is an upper limit value or a lower limit value of the preset range.
Therefore, in the process of shooting by using the mobile terminal with the scroll screen, the compensation movement amount of the scroll screen is reasonably determined according to the shake offset of the camera and the preset range of the compensation movement amount, and the relative stability of the camera can be more accurately kept.
Optionally, in the anti-shake photographing apparatus provided in the embodiment of the present application, the shake offset amount has a first shake direction parallel to a telescopic direction of the scroll screen; the compensation movement amount has a direction opposite to the first shake direction;
the control module 803 is specifically configured to: and controlling the scroll screen to move along the direction opposite to the first shaking direction according to the compensation movement amount so as to carry out shaking compensation on the camera.
Therefore, in the process of shooting by using the mobile terminal with the scroll screen, the scroll screen is controlled to stretch and contract according to the compensation movement amount along the direction opposite to the first shaking direction by using the stretching characteristic of the scroll screen, so that the camera is driven to move to offset the shaking of the camera in the first shaking direction.
Optionally, in the anti-shake photographing apparatus provided in the embodiment of the present application, the scroll screen includes a rotatable portion, the camera is disposed on the rotatable portion of the scroll screen, and the shake offset amount has a second shake direction associated with a rotation direction of the scroll screen; the compensation movement amount has a direction deviating from the second shake direction;
the control module 803 is specifically configured to: and controlling the rotatable part of the scroll screen to rotate along a direction deviating from a second shaking direction according to the compensation movement amount so as to carry out shaking compensation on the camera.
Therefore, in the process of shooting by using the mobile terminal with the scroll screen, the scroll screen is controlled to rotate along the direction deviating from the second shaking direction according to the compensation movement amount by using the rotation characteristic of the scroll screen, so that the camera is driven to move to offset the shaking of the camera in the second shaking direction.
Optionally, in the anti-shake photographing apparatus provided in the embodiment of the present application, the scroll screen includes a rotatable portion and a non-rotatable portion, and the camera is disposed on the rotatable portion of the scroll screen; the shake offset amount includes a first shake offset amount having a first shake direction parallel to a telescopic direction of the spool screen and a second shake offset amount having a second shake direction associated with a rotational direction of the spool screen;
the determining module 802 is specifically configured to: determining a first compensation movement amount of the scroll screen according to the first jitter offset; determining a second compensation movement amount of the scroll screen according to the second jitter offset; the first compensation movement amount has a direction opposite to the first shake direction, and the second compensation movement amount has a direction away from the second shake direction;
the control module 803 is specifically configured to: controlling the rotatable part of the scroll screen to rotate along the direction deviating from the second shaking direction according to the second compensation movement amount; and controlling the non-rotatable part of the scroll screen to linearly move along the direction opposite to the first shaking direction according to the first compensation movement amount so as to perform shaking compensation on the camera.
In this way, in the process of shooting by using the mobile terminal with the scroll screen, the scroll screen can be controlled to rotate along the direction deviating from the second shaking direction according to the size of the second compensation movement amount by simultaneously using the telescopic characteristic and the rotating characteristic of the scroll screen; and controlling the scroll screen to move along the direction opposite to the first shaking direction according to the first compensation movement amount, so as to drive the camera to move to counteract shaking of the camera in the first shaking direction and the second shaking direction.
The anti-shake photographing apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The anti-shake photographing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The anti-shake photographing device provided by the embodiment of the application can realize each process realized by the method embodiments of fig. 1 to 7, and is not repeated here to avoid repetition.
Optionally, as shown in fig. 9, an electronic device 900 is further provided in this embodiment of the present application, and includes a processor 901, a memory 902, and a program or an instruction stored in the memory 902 and executable on the processor 901, where the program or the instruction is executed by the processor 901 to implement each process of the foregoing anti-shake shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The sensor 1005 is used for acquiring the jitter offset of the camera in the shooting process;
the processor 1010 is configured to determine a compensation movement amount of the scroll screen according to the jitter offset, where the compensation movement amount is associated with the jitter offset;
the processor 1010 is further configured to control the scroll screen to move according to the compensation movement amount, so as to perform shake compensation on the camera.
The electronic device provided by the embodiment of the application comprises a sensor 1005, a processing unit and a processing unit, wherein the sensor 1005 is used for acquiring the jitter offset of the camera in the shooting process; a processor 1010, configured to determine a compensation movement amount of the scroll screen according to the jitter offset amount, where the compensation movement amount is associated with the jitter offset amount; and the processor 1010 is further configured to control the scroll screen to move according to the compensation movement amount, so as to perform shake compensation on the camera. Like this, at the in-process that the mobile terminal who utilizes to have the spool screen shoots, utilize the removal of spool screen itself to drive the camera and remove the shake that offsets the camera, compare with optical type anti-shake mode among the correlation technique, because the removal space and/or the range of motion of spool screen itself are great relatively, therefore, can solve the little technical problem of anti-shake range among the correlation technique to a certain extent.
Optionally, in the electronic device provided in the embodiment of the present application, the processor 1010 is specifically configured to:
multiplying the jitter offset by a preset conversion coefficient to obtain a first movement amount, wherein the preset conversion coefficient is a predetermined constant;
if the first movement amount is within a preset range, taking the first movement amount as the compensation movement amount;
if the first movement amount is out of the preset range, taking a preset movement amount as the compensation movement amount; wherein the preset movement amount is an upper limit value or a lower limit value of the preset range.
Therefore, in the process of shooting by using the mobile terminal with the scroll screen, the compensation movement amount of the scroll screen is reasonably determined according to the shake offset of the camera and the preset range of the compensation movement amount, and the relative stability of the camera can be more accurately kept.
Optionally, in the electronic device provided in this embodiment of the present application, the jitter offset has a first jitter direction parallel to the expansion and contraction direction of the scroll screen; the compensation movement amount has a direction opposite to the first shake direction;
the processor 1010 is specifically configured to: and controlling the scroll screen to move along the direction opposite to the first shaking direction according to the compensation movement amount so as to carry out shaking compensation on the camera.
Therefore, in the process of shooting by using the mobile terminal with the scroll screen, the scroll screen is controlled to stretch and contract along the direction opposite to the first shaking direction according to the compensation movement amount by using the stretching characteristic of the scroll screen, so that the camera is driven to move to offset the shaking of the camera in the first shaking direction.
Optionally, in the electronic device provided in this embodiment of the present application, the scroll screen includes a rotatable portion, the camera is disposed on the rotatable portion of the scroll screen, and the shake offset amount has a second shake direction associated with a rotation direction of the scroll screen; the compensation movement amount has a direction deviating from the second shake direction;
the processor 1010 is specifically configured to: and controlling the rotatable part of the scroll screen to rotate along a direction deviating from a second shaking direction according to the compensation movement amount so as to carry out shaking compensation on the camera.
Therefore, in the process of shooting by using the mobile terminal with the scroll screen, the scroll screen is controlled to rotate according to the size of the compensation movement amount along the direction deviating from the second shaking direction by using the rotation characteristic of the scroll screen, so that the camera is driven to move to offset the shaking of the camera in the second shaking direction.
Optionally, in the electronic device provided in this embodiment of the present application, the scroll screen includes a rotatable portion and a non-rotatable portion, and the camera is disposed on the rotatable portion of the scroll screen; the shake offset amount includes a first shake offset amount having a first shake direction parallel to a telescopic direction of the spool screen and a second shake offset amount having a second shake direction associated with a rotational direction of the spool screen;
the processor 1010 is specifically configured to: determining a first compensation movement amount of the scroll screen according to the first jitter offset; determining a second compensation movement amount of the scroll screen according to the second jitter offset; the first compensation movement amount has a direction opposite to the first shake direction, and the second compensation movement amount has a direction away from the second shake direction;
the processor 1010 is specifically configured to: controlling the rotatable part of the scroll screen to rotate along the direction deviating from the second shaking direction according to the second compensation movement amount; and controlling the non-rotatable part of the scroll screen to linearly move along the direction opposite to the first shaking direction according to the first compensation movement amount so as to carry out shaking compensation on the camera.
In this way, in the process of shooting by using the mobile terminal with the scroll screen, the scroll screen can be controlled to rotate along the direction deviating from the second shaking direction according to the size of the second compensation movement amount by simultaneously using the telescopic characteristic and the rotating characteristic of the scroll screen; and controlling the scroll screen to move along the direction opposite to the first shaking direction according to the first compensation movement amount, so as to drive the camera to move to counteract shaking of the camera in the first shaking direction and the second shaking direction.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned anti-shake shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above anti-shake shooting method embodiment, and can achieve the same technical effect, and for avoiding repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as a system-on-chip, or a system-on-chip.
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 processes of the foregoing anti-shake photographing method embodiments, and achieve the same technical effects, and in order to avoid repetition, the descriptions of the processes are omitted here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may 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 instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. An anti-shake shooting method is applied to a mobile terminal, and is characterized in that the mobile terminal comprises a scroll screen and a camera arranged on the scroll screen, and the anti-shake shooting method comprises the following steps:
acquiring the jitter offset of the camera in the shooting process;
determining a compensation movement amount of the scroll screen according to the jitter offset, wherein the compensation movement amount is associated with the jitter offset;
and controlling the scroll screen to move according to the compensation movement amount so as to perform shake compensation on the camera.
2. The anti-shake photographing method according to claim 1, wherein the determining of the compensated movement amount of the scroll screen according to the shake offset amount includes:
multiplying the jitter offset by a preset conversion coefficient to obtain a first movement amount, wherein the preset conversion coefficient is a predetermined constant;
if the first movement amount is within a preset range, taking the first movement amount as the compensation movement amount;
if the first movement amount is out of the preset range, taking a preset movement amount as the compensation movement amount; wherein the preset movement amount is an upper limit value or a lower limit value of the preset range.
3. The anti-shake photographing method according to claim 1 or 2, wherein the shake offset amount has a first shake direction parallel to a telescopic direction of the reel screen; the compensation movement amount has a direction opposite to the first shake direction;
the controlling the scroll screen to move according to the compensation movement amount so as to perform shake compensation on the camera comprises the following steps:
and controlling the scroll screen to move along the direction opposite to the first shaking direction according to the compensation movement amount so as to carry out shaking compensation on the camera.
4. The anti-shake photographing method according to claim 1 or 2, wherein the scroll screen includes a rotatable portion, the camera is provided on the rotatable portion of the scroll screen, and the shake offset amount has a second shake direction associated with a rotation direction of the scroll screen; the compensation movement amount has a direction deviating from the second shake direction;
the controlling the scroll screen to move according to the compensation movement amount so as to perform shake compensation on the camera comprises the following steps:
and controlling the rotatable part of the scroll screen to rotate along the direction deviating from the second shaking direction according to the compensation movement amount so as to carry out shaking compensation on the camera.
5. The anti-shake photographing method according to claim 1 or 2, wherein the scroll screen includes a rotatable portion and a non-rotatable portion, and the camera is provided on the rotatable portion of the scroll screen; the dither offset includes a first dither offset having a first dither direction parallel to a telescopic direction of the spool screen and a second dither offset having a second dither direction associated with a rotational direction of the spool screen;
the determining the compensation movement amount of the scroll screen according to the jitter offset comprises the following steps:
determining a first compensation movement amount of the scroll screen according to the first jitter offset; determining a second compensation movement amount of the scroll screen according to the second jitter offset; the first compensation movement amount has a direction opposite to the first shake direction, and the second compensation movement amount has a direction away from the second shake direction;
the controlling the scroll screen to move according to the compensation movement amount so as to perform shake compensation on the camera comprises the following steps:
controlling the rotatable part of the scroll screen to rotate along the direction deviating from the second shaking direction according to the size of the second compensation movement amount; and controlling the non-rotatable part of the scroll screen to linearly move along the direction opposite to the first shaking direction according to the first compensation movement amount so as to perform shaking compensation on the camera.
6. The utility model provides an anti-shake shoots device, is applied to mobile terminal, its characterized in that, mobile terminal includes the spool screen and sets up camera on the spool screen, anti-shake shoots the device and includes:
the acquisition module is used for acquiring the jitter offset of the camera in the shooting process;
the determining module is used for determining the compensation movement amount of the scroll screen according to the jitter offset, and the compensation movement amount is associated with the jitter offset;
and the control module is used for controlling the scroll screen to move according to the compensation movement amount so as to perform shake compensation on the camera.
7. The anti-shake photographing apparatus according to claim 6, wherein the determining module is specifically configured to:
multiplying the jitter offset by a preset conversion coefficient to obtain a first movement amount, wherein the preset conversion coefficient is a predetermined constant;
if the first movement amount is within a preset range, taking the first movement amount as the compensation movement amount;
if the first movement amount is out of the preset range, taking a preset movement amount as the compensation movement amount; wherein the preset movement amount is an upper limit value or a lower limit value of the preset range.
8. The anti-shake photographing apparatus according to claim 6 or 7, wherein the shake offset amount has a first shake direction parallel to a telescopic direction of the spool screen; the compensation movement amount has a direction opposite to the first shake direction;
the control module is specifically configured to: and controlling the scroll screen to move along the direction opposite to the first shaking direction according to the compensation movement amount so as to carry out shaking compensation on the camera.
9. The anti-shake photographing apparatus according to claim 6 or 7, wherein the scroll screen includes a rotatable portion, the camera is provided on the rotatable portion of the scroll screen, and the shake offset amount has a second shake direction associated with a rotation direction of the scroll screen; the compensation movement amount has a direction deviating from the second shake direction;
the control module is specifically configured to: and controlling the rotatable part of the scroll screen to rotate along the direction deviating from the second shaking direction according to the compensation movement amount so as to carry out shaking compensation on the camera.
10. The anti-shake photographing apparatus according to claim 6 or 7, wherein the spool screen includes a rotatable portion and a non-rotatable portion, and the camera is provided on the rotatable portion of the spool screen; the shake offset amount includes a first shake offset amount having a first shake direction parallel to a telescopic direction of the spool screen and a second shake offset amount having a second shake direction associated with a rotational direction of the spool screen;
the determining module is specifically configured to: determining a first compensation movement amount of the scroll screen according to the first jitter offset; determining a second compensation movement amount of the scroll screen according to the second jitter offset; the first compensation movement amount has a direction opposite to the first shake direction, and the second compensation movement amount has a direction away from the second shake direction;
the control module is specifically configured to: controlling the rotatable part of the scroll screen to rotate along the direction deviating from the second shaking direction according to the second compensation movement amount; and controlling the non-rotatable part of the scroll screen to linearly move along the direction opposite to the first shaking direction according to the first compensation movement amount so as to perform shaking compensation on the camera.
11. An electronic device comprising a processor, a memory, and a computer program stored on the memory and running on the processor, the computer program, when executed by the processor, implementing the steps of the anti-shake photographing method according to any one of claims 1 to 5.
12. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the anti-shake photographing method according to any one of claims 1 to 5.
CN202210086035.6A 2022-01-25 2022-01-25 Anti-shake shooting method and device Pending CN114500838A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210086035.6A CN114500838A (en) 2022-01-25 2022-01-25 Anti-shake shooting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210086035.6A CN114500838A (en) 2022-01-25 2022-01-25 Anti-shake shooting method and device

Publications (1)

Publication Number Publication Date
CN114500838A true CN114500838A (en) 2022-05-13

Family

ID=81474380

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210086035.6A Pending CN114500838A (en) 2022-01-25 2022-01-25 Anti-shake shooting method and device

Country Status (1)

Country Link
CN (1) CN114500838A (en)

Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006186652A (en) * 2004-12-27 2006-07-13 Kyocera Corp Imaging apparatus
JP2007104462A (en) * 2005-10-06 2007-04-19 Konica Minolta Opto Inc Imaging apparatus
JP2009094756A (en) * 2007-10-09 2009-04-30 Funai Electric Co Ltd Imaging device
CN102854701A (en) * 2011-07-01 2013-01-02 佳能株式会社 Shake compensation control apparatus, optical device, image capturing apparatus, and control method of shake compensation
CN106791450A (en) * 2017-02-28 2017-05-31 维沃移动通信有限公司 A kind of photographic method and mobile terminal
US20180288299A1 (en) * 2017-03-31 2018-10-04 Panasonic Intellectual Property Management Co., Lt d. Camera device and shake correction method
WO2019037781A1 (en) * 2017-08-24 2019-02-28 捷开通讯(深圳)有限公司 Terminal and anti-shaking photographing method therefor, and storage apparatus
CN109547635A (en) * 2018-11-29 2019-03-29 努比亚技术有限公司 Screen anti-fluttering method, device, mobile terminal and readable storage medium storing program for executing
WO2019131930A1 (en) * 2017-12-27 2019-07-04 富士フイルム株式会社 Image blur correction device, imaging device, image blur correction method, and image blur correction program
WO2019237977A1 (en) * 2018-06-15 2019-12-19 Oppo广东移动通信有限公司 Image compensation method, computer readable storage medium and electronic device
WO2020093822A1 (en) * 2018-11-06 2020-05-14 Oppo广东移动通信有限公司 Electronic device and control method therefor
CN111246089A (en) * 2020-01-14 2020-06-05 Oppo广东移动通信有限公司 Jitter compensation method and apparatus, electronic device, computer-readable storage medium
WO2020134416A1 (en) * 2018-12-24 2020-07-02 华为技术有限公司 Camera module, anti-shake assembly and terminal
CN112073600A (en) * 2019-06-11 2020-12-11 南昌欧菲光电技术有限公司 Camera module, electronic equipment and optical anti-shake method of camera module
CN212413291U (en) * 2020-08-26 2021-01-26 东莞市亚登电子有限公司 Camera module and electronic equipment thereof
CN112637494A (en) * 2020-12-21 2021-04-09 维沃移动通信有限公司 Electronic equipment, control method and control device thereof and terminal equipment
CN113114805A (en) * 2021-04-06 2021-07-13 维沃移动通信有限公司 Imaging device and electronic apparatus
CN113114949A (en) * 2021-04-22 2021-07-13 Oppo广东移动通信有限公司 Anti-shake photographing method, electronic device, and readable storage medium
CN213880006U (en) * 2021-01-21 2021-08-03 维沃移动通信有限公司 Imaging device and electronic apparatus
WO2021159391A1 (en) * 2020-02-13 2021-08-19 南昌欧菲光电技术有限公司 Camera module, photographing apparatus, and electronic device
CN113411470A (en) * 2020-03-17 2021-09-17 华为技术有限公司 Camera module, electronic equipment and anti-shake control method of electronic equipment

Patent Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006186652A (en) * 2004-12-27 2006-07-13 Kyocera Corp Imaging apparatus
JP2007104462A (en) * 2005-10-06 2007-04-19 Konica Minolta Opto Inc Imaging apparatus
JP2009094756A (en) * 2007-10-09 2009-04-30 Funai Electric Co Ltd Imaging device
CN102854701A (en) * 2011-07-01 2013-01-02 佳能株式会社 Shake compensation control apparatus, optical device, image capturing apparatus, and control method of shake compensation
CN106791450A (en) * 2017-02-28 2017-05-31 维沃移动通信有限公司 A kind of photographic method and mobile terminal
US20180288299A1 (en) * 2017-03-31 2018-10-04 Panasonic Intellectual Property Management Co., Lt d. Camera device and shake correction method
WO2019037781A1 (en) * 2017-08-24 2019-02-28 捷开通讯(深圳)有限公司 Terminal and anti-shaking photographing method therefor, and storage apparatus
WO2019131930A1 (en) * 2017-12-27 2019-07-04 富士フイルム株式会社 Image blur correction device, imaging device, image blur correction method, and image blur correction program
WO2019237977A1 (en) * 2018-06-15 2019-12-19 Oppo广东移动通信有限公司 Image compensation method, computer readable storage medium and electronic device
WO2020093822A1 (en) * 2018-11-06 2020-05-14 Oppo广东移动通信有限公司 Electronic device and control method therefor
CN109547635A (en) * 2018-11-29 2019-03-29 努比亚技术有限公司 Screen anti-fluttering method, device, mobile terminal and readable storage medium storing program for executing
WO2020134416A1 (en) * 2018-12-24 2020-07-02 华为技术有限公司 Camera module, anti-shake assembly and terminal
CN112073600A (en) * 2019-06-11 2020-12-11 南昌欧菲光电技术有限公司 Camera module, electronic equipment and optical anti-shake method of camera module
CN111246089A (en) * 2020-01-14 2020-06-05 Oppo广东移动通信有限公司 Jitter compensation method and apparatus, electronic device, computer-readable storage medium
WO2021159391A1 (en) * 2020-02-13 2021-08-19 南昌欧菲光电技术有限公司 Camera module, photographing apparatus, and electronic device
CN113411470A (en) * 2020-03-17 2021-09-17 华为技术有限公司 Camera module, electronic equipment and anti-shake control method of electronic equipment
CN212413291U (en) * 2020-08-26 2021-01-26 东莞市亚登电子有限公司 Camera module and electronic equipment thereof
CN112637494A (en) * 2020-12-21 2021-04-09 维沃移动通信有限公司 Electronic equipment, control method and control device thereof and terminal equipment
CN213880006U (en) * 2021-01-21 2021-08-03 维沃移动通信有限公司 Imaging device and electronic apparatus
CN113114805A (en) * 2021-04-06 2021-07-13 维沃移动通信有限公司 Imaging device and electronic apparatus
CN113114949A (en) * 2021-04-22 2021-07-13 Oppo广东移动通信有限公司 Anti-shake photographing method, electronic device, and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴伟国;邵益凯;梁风;曾芳成;: "移动机器人视觉系统防抖装置设计与仿真分析", 机械设计与制造, no. 07, 8 July 2011 (2011-07-08) *

Similar Documents

Publication Publication Date Title
US11539887B2 (en) Video image anti-shake method and terminal
CN112492214B (en) Image shooting method and device, electronic equipment and readable storage medium
CN111669507A (en) Photographing method and device and electronic equipment
CN108513652B (en) Control method and device of holder
CN113556464A (en) Shooting method and device and electronic equipment
CN112672050A (en) Shooting method and device based on holder and electronic equipment
WO2022121875A1 (en) Preview image display control method and apparatus, and electronic device and medium
CN112653842A (en) Video anti-shake method and device
CN114125268A (en) Focusing method and device
CN113596294A (en) Shooting method and device and electronic equipment
CN114040113A (en) Image processing method and device
CN113747072B (en) Shooting processing method and electronic equipment
CN112558376B (en) Camera module and electronic equipment
WO2023179440A1 (en) Shooting apparatus control method and apparatus, shooting apparatus and electronic device
CN114500838A (en) Anti-shake shooting method and device
CN112738405B (en) Video shooting method and device and electronic equipment
CN112261262B (en) Image calibration method and device, electronic equipment and readable storage medium
CN115379118B (en) Camera switching method and device, electronic equipment and readable storage medium
CN112492213B (en) Image shooting method and device and electronic equipment
CN114339051A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN113873147A (en) Video recording method and device and electronic equipment
CN113891018A (en) Shooting method and device and electronic equipment
CN112399092A (en) Shooting method and device and electronic equipment
CN113660420A (en) Video frame processing method and video frame processing device
CN113891005A (en) Shooting method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination