CN113873157A - Shooting method, shooting device, electronic equipment and readable storage medium - Google Patents

Shooting method, shooting device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113873157A
CN113873157A CN202111155416.7A CN202111155416A CN113873157A CN 113873157 A CN113873157 A CN 113873157A CN 202111155416 A CN202111155416 A CN 202111155416A CN 113873157 A CN113873157 A CN 113873157A
Authority
CN
China
Prior art keywords
camera
target
cameras
shake
control
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.)
Granted
Application number
CN202111155416.7A
Other languages
Chinese (zh)
Other versions
CN113873157B (en
Inventor
申健成
梁杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202111155416.7A priority Critical patent/CN113873157B/en
Publication of CN113873157A publication Critical patent/CN113873157A/en
Application granted granted Critical
Publication of CN113873157B publication Critical patent/CN113873157B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses a shooting method, a shooting device, electronic equipment and a readable storage medium, and belongs to the technical field of electronic equipment. The method comprises the following steps: under the condition that electronic equipment shoots, acquiring anti-shake parameters of a first camera of the electronic equipment, wherein the first camera is a camera of which at least two cameras of the electronic equipment comprise an anti-shake system; and controlling target cameras except the first camera in the at least two cameras according to the anti-shake parameters.

Description

Shooting method, shooting device, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of electronic equipment, and particularly relates to a shooting method, a shooting device, electronic equipment and a readable storage medium.
Background
Preview and capture applications of electronic device camera apps are important applications that users often use. When the electronic equipment is used, the shake of the user holding the electronic equipment can cause adverse effects on the shooting quality of the electronic equipment.
At present, an electronic device may include a plurality of cameras and controllers corresponding to the respective cameras, so that the respective cameras may be controlled based on the controllers.
However, the electronic device is expensive due to the need to provide a plurality of controllers.
Disclosure of Invention
The embodiment of the application aims to provide a shooting method, which can solve the problem that electronic equipment is high in cost.
In a first aspect, an embodiment of the present application provides a shooting method, where the method includes: under the condition that electronic equipment shoots, acquiring anti-shake parameters of a first camera of the electronic equipment, wherein the first camera is a camera of which at least two cameras of the electronic equipment comprise an anti-shake system; and controlling target cameras except the first camera in the at least two cameras according to the anti-shake parameters.
In a second aspect, an embodiment of the present application provides a shooting device, including: the electronic equipment comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring anti-shake parameters of a first camera of the electronic equipment under the condition that the electronic equipment shoots, and the first camera is a camera of which at least two cameras of the electronic equipment comprise an anti-shake system; and the control module is used for controlling target cameras except the first camera in the at least two cameras according to the anti-shake parameters.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method 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 method according to the first aspect.
In the embodiment of the application, under the condition that the electronic equipment shoots, anti-shake parameters of a first camera of the electronic equipment are obtained, wherein the first camera is a camera of which at least two cameras of the electronic equipment comprise an anti-shake system; and controlling target cameras except the first camera in the at least two cameras according to the anti-shake parameters. Due to the fact that the anti-shake parameters of one camera can be used for controlling other cameras, corresponding controllers do not need to be arranged on all the cameras, and the cost of the electronic equipment is reduced.
Drawings
Fig. 1 is a flowchart of a photographing method provided in the present embodiment;
fig. 2 is a block schematic diagram of a photographing apparatus provided in the present embodiment;
fig. 3 is a schematic diagram of a hardware structure of an electronic device provided in this embodiment;
fig. 4 is a schematic diagram of a hardware structure of another electronic device provided in this embodiment.
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 shooting 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.
Referring to fig. 1, a shooting method provided in this embodiment may include the following steps 110 to 120:
step 110, acquiring anti-shake parameters of a first camera of the electronic device under the condition that the electronic device performs shooting, wherein the first camera is a camera of which at least two cameras of the electronic device comprise an anti-shake system.
In this embodiment, when the electronic device performs shooting, it can be generally understood that the electronic device is in a shooting state when the electronic device performs shooting through at least two cameras included in the electronic device.
In this embodiment, the camera of the electronic device may include at least two cameras. For example, a camera of a smartphone may include a wide-angle camera, a main camera, and a tele camera.
In this embodiment, the first camera of the electronic device includes an anti-shake system, and before controlling the camera, the anti-shake parameters of the first camera are obtained first, so that other cameras can be controlled based on the anti-shake system.
And step 120, controlling target cameras except the first camera in the at least two cameras according to the anti-shake parameters.
In this embodiment, according to the anti-shake parameter of the camera including the anti-shake system in the electronic equipment, control other cameras for can control each camera respectively through a controller, and can all set up corresponding controller to each camera.
In this embodiment, the anti-shake parameters obtained from the first camera are used regardless of whether the first camera is controlled or whether any target camera is controlled.
In the embodiment of the application, under the condition that the electronic equipment shoots, anti-shake parameters of a first camera of the electronic equipment are obtained, wherein the first camera is a camera of which at least two cameras of the electronic equipment comprise an anti-shake system; and controlling target cameras except the first camera in the at least two cameras according to the anti-shake parameters. Due to the fact that the anti-shake parameters of one camera can be used for controlling other cameras, corresponding controllers do not need to be arranged on all the cameras, and the cost of the electronic equipment is reduced.
In an embodiment of the present disclosure, before the controlling of the target camera other than the first camera in the at least two cameras, the method may further include the following step a:
and step A, determining at least one camera of which the running state is the opening state in the at least two cameras.
In this embodiment, any camera in the electronic device has two operation states of opening and closing, so that the camera can be in an opening state or a closing state at any time.
Considering that the shooting effect of the opened camera can affect the imaging effect of the electronic device, and the camera does not work without being opened, so that the imaging effect of the electronic device cannot be affected.
Therefore, under the condition that the electronic equipment shoots, the step A is executed, so that each camera with the running state being the starting state is determined from at least two cameras included in the electronic equipment, and the electronic equipment can be controlled subsequently.
The above step 120 may be performed after acquiring each camera in the on state.
Correspondingly, the step 120 of controlling the target camera, except for the first camera, of the at least two cameras according to the anti-shake parameter may include the following step B:
and step B, for each target camera except the first camera in the at least two cameras, controlling the target camera according to the anti-shake parameters under the condition that the target camera is in an open state.
And for any target camera, if the target camera is in an open state, controlling the target camera according to the anti-shake parameters. For example, the target position of the target camera movement may be determined according to preset control logic. The target position may be a position that the target camera should reach. Further, the target camera can be controlled to move to the target position.
Correspondingly, under the condition that the first camera is in an open state, the first camera can be controlled according to the anti-shake parameters.
In this embodiment, considering that there may be a scene where a plurality of cameras are opened, such as double shooting blurring, the number of the cameras determined in step a may be one, or may be multiple (at least two), that is, only one camera may be opened, or a plurality of cameras may be opened simultaneously.
In a feasible implementation manner, whether the scene is a preset scene for opening the plurality of cameras or not can be judged under the condition that the camera is opened for shooting so as to judge whether the plurality of cameras are opened or not, if so, one camera is determined to be opened, and if not, the plurality of cameras are determined to be opened.
In detail, in the case of opening a camera for shooting, the camera configuration parameters may be read to identify the currently opened camera id (i.e., the unique camera identifier), which may determine not only the number of opened cameras but also which cameras are opened.
Next, the specific implementation of step 120 will be described with respect to the difference in the number of opened cameras.
In detail, for the case of turning on one camera:
in this embodiment, one camera is turned on. In this embodiment, when the first camera is opened, the first camera is controlled, and when any target camera is opened, the target camera is controlled.
Taking any target camera that is turned on as an example, controlling the target cameras other than the first camera among the at least two cameras according to the anti-shake parameter includes: determining a target position of the target camera according to the parameter value of the anti-shake parameter and the position of the target camera; and controlling the target camera to move to the target position.
For a currently opened camera, the shooting device may calculate a corresponding target position according to shake data of the electronic device, a parameter value of a corresponding anti-shake parameter of the camera, and a current position where the camera is located.
In detail, a GYRO (gyroscope) may be provided in the electronic device, and when the user holds the electronic device and there is a shaking motion, the gyroscope data may be used as the shaking data of the electronic device.
In detail, the test program can be calibrated through a module factory, so that different cameras obtain parameter values corresponding to the anti-shake parameters with the best effect. In detail, the anti-shake parameters may include calibration parameters such as hall range, hall center, post-main calibration parameter, periscopic calibration parameter, and the like.
In this embodiment, the shooting device may calculate the position where the camera should reach according to the shake data of the electronic device, the parameter value of the corresponding anti-shake parameter of the camera, and the actual position of the camera, and by combining a preset corresponding algorithm.
In detail, when the camera is turned on, the camera may be defaulted to a center position. The camera is usually controlled to move off center. In order to accurately calculate the position to which the camera should reach, the corresponding target position is calculated based on the actual position of the camera.
In detail, when the user switches the opened camera, the shooting device correspondingly switches the parameter value of the anti-shake parameter to support the calculation of the corresponding target position. For example, when the user opens the main camera, the shooting device can adjust all parameters such as the gyroscope to be the parameter values of the anti-shake parameters of the main camera calibrated by the module factory.
In detail, for the case of turning on a plurality of cameras:
under the condition that a plurality of cameras are simultaneously opened, the control can be performed through a controller polling mechanism, and the control can be specifically realized according to any one of the following strategies:
strategy 1: respectively calculating the anti-shake positions (namely target positions) of the opened cameras;
strategy 1 can be divided into:
strategy 1.1: executing a clock polling strategy;
strategy 1.2: a camera picture priority display strategy;
strategy 2: and simultaneously calculating the anti-shake position of each opened camera.
In detail, corresponding to the above strategy 1:
in this embodiment, at least two cameras are opened, for example, two target cameras may be opened, and the first camera and one target camera may also be opened. When the plurality of cameras are turned on, the plurality of cameras are controlled.
Correspondingly, the step 120 of controlling a target camera, except for the first camera, of the at least two cameras according to the anti-shake parameter includes: and respectively presetting and controlling the at least two cameras according to the anti-shake parameters.
Wherein the preset control includes: and determining a target position of the target camera according to the first parameter value of the anti-shake parameter and the position of the target camera, and controlling the target camera to move to the target position.
In this embodiment, unlike the above strategy 2, the present embodiment calculates the anti-shake position of each opened camera, respectively, to control the opened cameras. Since the target positions of different cameras are calculated respectively, the shooting device needs to switch the parameter values of the anti-shake parameters correspondingly to support the calculation of the corresponding target positions.
For the control implementation logic in this embodiment, please refer to the records of relevant parts in other embodiments of the present disclosure, which are not described herein again.
In detail, corresponding to the above strategy 1.1:
in an embodiment of the present disclosure, the preset controlling the at least two cameras according to the anti-shake parameters includes: and in each control period, sequentially carrying out preset control on the at least two cameras according to a preset sequence.
In one embodiment of the present disclosure, the anti-shake control frequency of each camera may be the same, such as 500 hz.
Thus, the time interval of the control period can be determined according to the anti-shake control frequency, for example, if the anti-shake control frequency is 500hz, then 2ms is one control period.
In this embodiment, in each control cycle, the target position of each opened camera is calculated in turn. For example, if two cameras are simultaneously turned on, and the anti-shake control frequency of each camera is 500hz, the calculation frequency of the shooting device needs 1000hz, so that each turned-on camera can be controlled to reach the corresponding specified anti-shake position once every 2 ms.
Therefore, the embodiment can support that each opened camera is correspondingly changed in position along with the real-time change of the shaking data of the electronic equipment, so that the electronic equipment has a good control effect.
In detail, corresponding to the above strategy 1.2:
in an embodiment of the present disclosure, the preset controlling the at least two cameras according to the anti-shake parameters includes: and in each control period, performing preset control on a camera shooting a preview picture in the at least two cameras.
In this embodiment, in the at least two cameras, the camera preview picture currently shows which camera picture is displayed, that is, the control of the corresponding camera is performed.
In this embodiment, in one control cycle, only one of the opened cameras is controlled; in each control period of the whole camera use process, along with the switching of the camera corresponding to the preview picture, the switching of the control of each opened camera is realized based on different control periods.
In a feasible implementation manner, when the current preview picture shows the content shot by which opened camera, the opened camera corresponding to the display picture is controlled, and the lock of other opened cameras is controlled to be fixed in the center.
As can be seen from the above, the present embodiment provides a simple polling control method, which can reduce the data processing amount and simplify the control logic while ensuring the required control effect.
In detail, corresponding to the above strategy 2:
in this embodiment, at least two cameras are opened, for example, two target cameras may be opened, and the first camera and one target camera may also be opened. When the plurality of cameras are turned on, the plurality of cameras are controlled.
Correspondingly, the step 120 of controlling the target camera of the at least two cameras, except for the first camera, according to the anti-shake parameter may include the following steps C1 to C2:
and step C1, for a second camera of the at least two cameras, determining a target position of the second camera according to a second parameter value of the anti-shake parameter corresponding to the second camera and the position of the second camera.
The target camera may be the second camera or may not be the second camera, for example, any other opened camera may be used.
In detail, the second camera may be any one of all the cameras that are turned on.
For the second camera, the target position that the second camera should reach can be obtained according to the shaking data of the electronic device, the parameter value of the corresponding anti-shaking parameter of the second camera, and the actual position of the second camera.
For the control implementation logic in this embodiment, please refer to the records of relevant parts in other embodiments of the present disclosure, which are not described herein again.
And step C2, for a third camera except the second camera among the at least two cameras, determining a target position of the third camera according to the target position of the second camera movement, a second parameter value of the anti-shake parameter corresponding to the second camera, and a third parameter value of the anti-shake parameter corresponding to the third camera.
The target camera may be the third camera or may not be the third camera, for example, the second camera.
In this embodiment, the target camera is the second camera or the third camera.
In detail, all the cameras that are turned on are the third cameras except the second camera.
In this embodiment, the position to which the third camera should reach may be calculated according to the target position of the second camera and by combining the parameter values of the anti-shake parameters of the second camera and the third camera.
Taking turning on two cameras as an example, in the present embodiment, in a primary control algorithm, an anti-shake position of one of the opened cameras is calculated first, and meanwhile, an anti-shake position of the other opened camera is calculated according to the calculated anti-shake position and hardware positions of the two cameras (determined by a dual camera calibration parameter). Therefore, the effect of simultaneous control of two opened cameras through one set of algorithm can be achieved.
As can be seen from the above, in this embodiment, the shooting device can calculate the target position of each opened camera in one control algorithm, which not only can avoid repeatedly switching the parameter values of the anti-shake parameters of the cameras to simplify the processing procedure, but also can support the corresponding position change of each opened camera along with the real-time change of the shake data of the electronic device, so that the electronic device has a good control effect.
As mentioned above, after the target position of the target camera movement is obtained, the target camera can be controlled to move to the corresponding target position. Wherein, controlling the camera to move to a certain position can be generally understood as controlling the lens of the camera to move to the certain position.
In an embodiment of the present disclosure, the controlling the target camera to move to the target position may include the following steps D1 to D4:
and D1, outputting a first current to a first motor corresponding to the target camera according to the target position, so that the first motor drives the target camera to move to the target position.
In this embodiment, be provided with the motor that is used for driving the camera removal in the module that the camera was located, through motor output settlement electric current, can make the motor drive camera remove and reach anticipated removal effect.
And D2, acquiring the first position of the target camera after outputting the first current.
In this embodiment, when the motor drives the camera to move, overshoot or untimely arrival may occur, so that the actual position after the movement can be obtained after the motor drives the camera to move.
Therefore, position fine adjustment can be carried out under the condition that overshoot exists or the position is not reached timely, and accurate control of the anti-shaking position is guaranteed.
In an embodiment of the present disclosure, in step D2, the acquiring the first position of the target camera includes: acquiring a first magnetic flux obtained according to movement of a magnet connected to the first camera; the first position is obtained from the first magnetic flux.
In detail, the lens of the camera can be connected with a magnet, the relative position of the two is kept unchanged, and when the motor drives the lens to move, the magnet connected with the lens moves synchronously.
In this embodiment, the movement of the magnet may bring about a change in magnetic flux, so that the change in magnetic flux may be obtained by a corresponding sensor and converted into a corresponding position of the lens of the camera.
The embodiment reflects the change of the lens position of the camera based on the change of the magnetic flux so as to accurately know the control effect of the camera.
And D3, detecting whether the target camera moves to the target position according to the first position.
In detail, the difference between the first position and the target position is within a preset error range, and if the difference meets the requirement, the overshoot does not exist or the situation that the target position is not reached in time, so that the position fine adjustment is not needed, otherwise, the anti-shake position needs to be fine adjusted to ensure the accuracy of the control.
And D4, when the target camera does not move to the target position, outputting a second current to the first motor according to the first position, so that the first motor drives the target camera to move to the target position, and executing the step of acquiring the first position of the target camera.
Under the condition that the anti-shake position needs to be finely adjusted, the current needing to be output to the motor is determined according to the actual position of the target camera, and the motor can drive the camera to move and achieve the corresponding expected movement effect by outputting the current.
Certainly, in order to avoid the situation that overshoot occurs again or the situation that the anti-shake position is not timely reached when the anti-shake position is finely adjusted, the control verification can be continued again after the second current is output until the expected control effect is achieved, or until the camera is turned off, the corresponding camera is quitted, and the like.
Therefore, the anti-shake control method and the anti-shake control device have the advantages that when the control target camera moves in an anti-shake mode, the control effect is verified, position fine adjustment is conducted under the condition that overshoot or untimely arrival exists, and accurate control of anti-shake positions can be guaranteed.
As can be seen from the above, the present embodiment provides a specific implementation manner for controlling the target camera to move to the corresponding target position, and based on the same implementation principle, the control of the first camera can also be implemented, which is not described herein again.
In detail, taking a smart phone as an example, the mobile phone camera app preview and shooting application is an important application of a user, and based on the shooting method provided by the embodiment, the problem that the shooting quality of the mobile phone is affected due to the shake of a handheld mobile phone when the user uses the mobile phone to shoot images can be solved, so that the preview and shooting quality can be improved, and the user experience can be improved.
In this embodiment, the electronic device includes a plurality of cameras, and the execution main body, i.e., the shooting device, uniformly controls the anti-shake positions of the cameras, and specifically, the execution main body may uniformly determine the operating states of the cameras, generate the target positions of the opened cameras, and control the movement of the opened cameras.
As such, the execution body may be disposed outside of the camera head rather than inside. For example, in a possible implementation manner, the execution main body may include a sensor hub and a driver ic, the sensor hub serves as a master role, and the driver ic performs position control on each camera.
In detail, the sensor hub is a sensor control center, or an intelligent sensing hub.
Specifically, the driver IC may be an ois (Optical image stabilization) driver IC. In this embodiment, one driver ic corresponds to a plurality of cameras, and can perform position control on any camera.
For the implementation mode of embedding the corresponding control assembly in the camera, in the implementation mode, the number of the control assemblies is multiple, the control assemblies correspond to the cameras one by one, and any control assembly only controls the position movement of the corresponding camera. For example, the drivernic may be built in a camera (which may be generally understood as being built in a module where the camera is located to control movement of a lens of the camera), and the drivernic calculates a target position and drives movement of the corresponding camera.
In addition, since a plurality of driver ics need to control corresponding cameras based on an internal anti-shake algorithm, the problem that the anti-shake algorithm control logic is complex and non-uniform exists.
The present embodiment is different from the implementation manner, and based on the above, it is enough that one control component is provided in the present embodiment, and the control component corresponds to each camera and can control the position movement of each camera. Therefore, in the present embodiment, the control component is not usually built in the camera, and may be disposed on a main board outside the camera, for example. For example, the driver ic may be disposed on the motherboard, the sensor hub calculates the target position, and the driver ic drives the corresponding camera to move.
Because the embodiment can set a unified driver IC outside the cameras, and the driver IC is not required to be built in each camera, the cost can be saved, the utilization efficiency of the driver IC can be improved, the height of the camera module can be reduced, and the requirements of thin whole machine and low module of electronic equipment (such as a smart phone) can be met while the control effect is ensured to improve the preview and shooting quality.
Based on the above, in an embodiment of the present disclosure, the sensor hub can distinguish the cameras, the sensor hub ois control end reads the gyroscope data updated in real time, and the anti-shake position (the target position may be a motor hall position) of the target position can be calculated by performing algorithm processing according to the gyroscope data and preset anti-shake parameters of the cameras. The sensor hub can output a corresponding data signal to the driver ic according to the calculated target position, the driver ic can convert the data signal into a corresponding current signal through digital-to-electric conversion (for example, a hall value is converted into a driving current to perform motor control), and the driver ic can further output the current signal to a motor corresponding to the opened camera so that the motor drives the lens of the camera to perform corresponding movement.
In detail, the lens may be connected with a magnet, the relative position of the two is kept unchanged, and the magnet connected with the lens moves synchronously when the motor drives the lens to move. The movement of the magnet may bring about a change in magnetic flux, so that the corresponding sensor (e.g., hall sensor) may output the change in magnetic flux to a driver ic, which in turn may convert the magnetic flux into a corresponding camera lens position based on an ADC (Analog-to-Digital Converter) and feed back the position to the sensor hub.
In detail, hall sensors, or hall sensors, are magnetic field sensors made according to the hall effect.
In addition, the driver ic can also store the obtained lens position of the camera in a cache, so that other control systems of the electronic device can execute corresponding processing based on the position.
It can be seen that, this embodiment can drive the driver ic through the sensor hub to control a plurality of opened cameras to control, make every camera control for probably on the basis of limiting the cost, and can realize control through a unified set of anti-shake algorithm, simplify anti-shake algorithm control logic, the uniformity of all camera effects of very big promotion is favorable to user experience.
As can be seen from the above, the present embodiment provides a shooting method, which controls the position of the opened camera according to the shake data held by the user, and can realize the trend that the opened camera changes synchronously along with the holding of the user, thereby realizing OIS anti-shake. The embodiment improves the adverse effect caused by the shaking of the electronic equipment based on the position change of the camera, can ensure the shooting quality of the electronic equipment, and improves the use experience of users.
In the shooting method provided by the embodiment of the present application, the execution subject may be a shooting device, or a control module in the shooting device for executing the shooting method. The embodiment of the present application takes an example in which a shooting device executes a shooting method, and the shooting device provided in the embodiment of the present application is described.
Corresponding to the above embodiment, referring to fig. 2, the present embodiment further provides a photographing apparatus 200. The photographing apparatus 200 may include an acquisition module 210 and a control module 220.
The obtaining module 210 is configured to obtain an anti-shake parameter of a first camera of an electronic device when the electronic device performs shooting, where the first camera is a camera of an anti-shake system included in at least two cameras of the electronic device. The control module 220 is configured to control a target camera of the at least two cameras, except the first camera, according to the anti-shake parameter.
In the embodiment of the application, under the condition that the electronic equipment shoots, anti-shake parameters of a first camera of the electronic equipment are obtained, wherein the first camera is a camera of which at least two cameras of the electronic equipment comprise an anti-shake system; and controlling target cameras except the first camera in the at least two cameras according to the anti-shake parameters. Due to the fact that the anti-shake parameters of one camera can be used for controlling other cameras, corresponding controllers do not need to be arranged on all the cameras, and the cost of the electronic equipment is reduced.
In an embodiment of the present disclosure, the control module 220 is configured to perform preset control on the at least two cameras according to the anti-shake parameters; wherein the preset control includes: and determining a target position of the target camera according to the first parameter value of the anti-shake parameter and the position of the target camera, and controlling the target camera to move to the target position.
In an embodiment of the present disclosure, the control module 220 is configured to perform the preset control on the at least two cameras in turn according to a preset sequence in each control cycle; or, in each control period, the preset control is performed on the camera shooting the preview picture in the at least two cameras.
In an embodiment of the present disclosure, the control module 220 is configured to, for a second camera of the at least two cameras, determine a target position where the second camera moves according to a second parameter value of the anti-shake parameter corresponding to the second camera and a position where the second camera is located; for a third camera except the second camera in the at least two cameras, determining a target position of the third camera according to a target position of the second camera, a second parameter value of the anti-shake parameter corresponding to the second camera, and a third parameter value of the anti-shake parameter corresponding to the third camera; wherein the target camera is the second camera or the third camera.
In an embodiment of the present disclosure, the control module 220 is configured to output a first current to a first motor corresponding to the target camera according to the target position, so that the first motor drives the target camera to move to the target position; after the first current is output, acquiring a first position where the target camera is located; detecting whether the target camera moves to the target position according to the first position; and under the condition that the target camera does not move to the target position, outputting a second current to the first motor according to the first position so as to enable the first motor to drive the target camera to move to the target position, and executing the step of acquiring the first position of the target camera.
The shooting device in the embodiment of the present application may be a device, 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 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 shooting device provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Corresponding to the above embodiments, optionally, as shown in fig. 3, an electronic device 300 is further provided in the embodiment of the present application, and includes a processor 310, a memory 320, and a program or an instruction stored in the memory 320 and capable of being executed on the processor 310, where the program or the instruction is executed by the processor 310 to implement each process of the above shooting method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
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. 4 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. 4 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 omitted here.
The processor 1010 is configured to acquire an anti-shake parameter of a first camera of an electronic device when the electronic device performs shooting, where the first camera is a camera of which at least two cameras of the electronic device include an anti-shake system; and controlling target cameras except the first camera in the at least two cameras according to the anti-shake parameters.
In the embodiment of the application, under the condition that the electronic equipment shoots, anti-shake parameters of a first camera of the electronic equipment are obtained, wherein the first camera is a camera of which at least two cameras of the electronic equipment comprise an anti-shake system; and controlling target cameras except the first camera in the at least two cameras according to the anti-shake parameters. Due to the fact that the anti-shake parameters of one camera can be used for controlling other cameras, corresponding controllers do not need to be arranged on all the cameras, and the cost of the electronic equipment is reduced.
Optionally, the processor 1010 is configured to perform preset control on the at least two cameras according to the anti-shake parameters; wherein the preset control includes: and determining a target position of the target camera according to the first parameter value of the anti-shake parameter and the position of the target camera, and controlling the target camera to move to the target position.
Optionally, the processor 1010 is configured to perform the preset control on the at least two cameras in turn according to a preset sequence in each control cycle; or, in each control period, the preset control is performed on the camera shooting the preview picture in the at least two cameras.
Optionally, the processor 1010 is configured to, for a second camera of the at least two cameras, determine a target position where the second camera moves according to a second parameter value of the anti-shake parameter corresponding to the second camera and a position where the second camera is located; for a third camera except the second camera in the at least two cameras, determining a target position of the third camera according to a target position of the second camera, a second parameter value of the anti-shake parameter corresponding to the second camera, and a third parameter value of the anti-shake parameter corresponding to the third camera; wherein the target camera is the second camera or the third camera.
Optionally, the processor 1010 is configured to output a first current to a first motor corresponding to the target camera according to the target position, so that the first motor drives the target camera to move to the target position; after the first current is output, acquiring a first position where the target camera is located; detecting whether the target camera moves to the target position according to the first position; and under the condition that the target camera does not move to the target position, outputting a second current to the first motor according to the first position so as to enable the first motor to drive the target camera to move to the target position, and executing the step of acquiring the first position of the target camera.
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 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 shooting method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
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. A photographing method, characterized by comprising:
under the condition that electronic equipment shoots, acquiring anti-shake parameters of a first camera of the electronic equipment, wherein the first camera is a camera of which at least two cameras of the electronic equipment comprise an anti-shake system;
and controlling target cameras except the first camera in the at least two cameras according to the anti-shake parameters.
2. The method according to claim 1, wherein the controlling the target camera of the at least two cameras other than the first camera according to the anti-shake parameter comprises:
presetting control is respectively carried out on the at least two cameras according to the anti-shake parameters;
wherein the preset control includes: and determining a target position of the target camera according to the first parameter value of the anti-shake parameter and the position of the target camera, and controlling the target camera to move to the target position.
3. The method according to claim 2, wherein the performing preset control on the at least two cameras according to the anti-shake parameters respectively comprises:
in each control period, sequentially carrying out preset control on the at least two cameras according to a preset sequence;
alternatively, the first and second electrodes may be,
and in each control period, performing preset control on a camera shooting a preview picture in the at least two cameras.
4. The method according to claim 1, wherein the controlling the target camera of the at least two cameras other than the first camera according to the anti-shake parameter comprises:
for a second camera in the at least two cameras, determining a target position of the second camera according to a second parameter value of the anti-shake parameter corresponding to the second camera and the position of the second camera;
for a third camera except the second camera in the at least two cameras, determining a target position of the third camera according to a target position of the second camera, a second parameter value of the anti-shake parameter corresponding to the second camera, and a third parameter value of the anti-shake parameter corresponding to the third camera;
wherein the target camera is the second camera or the third camera.
5. The method of claim 2, wherein the controlling the target camera to move to the target position comprises:
outputting a first current to a first motor corresponding to the target camera according to the target position, so that the first motor drives the target camera to move to the target position;
after the first current is output, acquiring a first position where the target camera is located;
detecting whether the target camera moves to the target position according to the first position;
and under the condition that the target camera does not move to the target position, outputting a second current to the first motor according to the first position so as to enable the first motor to drive the target camera to move to the target position, and executing the step of acquiring the first position of the target camera.
6. A camera, comprising:
the electronic equipment comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring anti-shake parameters of a first camera of the electronic equipment under the condition that the electronic equipment shoots, and the first camera is a camera of which at least two cameras of the electronic equipment comprise an anti-shake system; and the number of the first and second groups,
and the control module is used for controlling target cameras except the first camera in the at least two cameras according to the anti-shake parameters.
7. The device according to claim 6, wherein the control module is configured to perform preset control on the at least two cameras respectively according to the anti-shake parameters; wherein the preset control includes: and determining a target position of the target camera according to the first parameter value of the anti-shake parameter and the position of the target camera, and controlling the target camera to move to the target position.
8. The apparatus according to claim 7, wherein the control module is configured to perform the preset control on the at least two cameras in turn according to a preset sequence in each control cycle; or, in each control period, the preset control is performed on the camera shooting the preview picture in the at least two cameras.
9. The apparatus according to claim 6, wherein the control module is configured to determine, for a second camera of the at least two cameras, a target position where the second camera moves according to a second parameter value of the anti-shake parameter corresponding to the second camera and a position where the second camera is located; for a third camera except the second camera in the at least two cameras, determining a target position of the third camera according to a target position of the second camera, a second parameter value of the anti-shake parameter corresponding to the second camera, and a third parameter value of the anti-shake parameter corresponding to the third camera; wherein the target camera is the second camera or the third camera.
10. The apparatus of claim 7, wherein the control module is configured to output a first current to a first motor corresponding to the target camera according to the target position, so that the first motor drives the target camera to move to the target position; after the first current is output, acquiring a first position where the target camera is located; detecting whether the target camera moves to the target position according to the first position; and under the condition that the target camera does not move to the target position, outputting a second current to the first motor according to the first position so as to enable the first motor to drive the target camera to move to the target position, and executing the step of acquiring the first position of the target camera.
11. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the photographing method according to any one of claims 1-5.
12. A readable storage medium, characterized in that the readable storage medium stores thereon a program or instructions which, when executed by a processor, implement the steps of the photographing method according to any one of claims 1 to 5.
CN202111155416.7A 2021-09-28 2021-09-28 Shooting method, shooting device, electronic equipment and readable storage medium Active CN113873157B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111155416.7A CN113873157B (en) 2021-09-28 2021-09-28 Shooting method, shooting device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111155416.7A CN113873157B (en) 2021-09-28 2021-09-28 Shooting method, shooting device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113873157A true CN113873157A (en) 2021-12-31
CN113873157B CN113873157B (en) 2024-04-16

Family

ID=79000867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111155416.7A Active CN113873157B (en) 2021-09-28 2021-09-28 Shooting method, shooting device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113873157B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115278077A (en) * 2022-07-27 2022-11-01 维沃移动通信有限公司 Optical anti-shake method, device, electronic equipment and readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001166351A (en) * 1999-12-08 2001-06-22 Olympus Optical Co Ltd Electronic camera apparatus
CN107071263A (en) * 2016-12-30 2017-08-18 努比亚技术有限公司 A kind of image processing method and terminal
CN107682630A (en) * 2017-09-30 2018-02-09 努比亚技术有限公司 Dual camera anti-fluttering method, mobile terminal and computer-readable recording medium
WO2018076529A1 (en) * 2016-10-25 2018-05-03 华为技术有限公司 Scene depth calculation method, device and terminal
CN109951639A (en) * 2019-03-26 2019-06-28 Oppo广东移动通信有限公司 Camera stabilization system, method, electronic equipment and computer readable storage medium
US20190297262A1 (en) * 2018-03-20 2019-09-26 Beijing Xiaomi Mobile Software Co., Ltd. Focusing method, device and storage medium
CN111371997A (en) * 2020-03-16 2020-07-03 Oppo广东移动通信有限公司 Control method of mobile equipment and mobile equipment
CN211580065U (en) * 2020-04-24 2020-09-25 北京小米移动软件有限公司 Anti-shake control device and terminal equipment
CN112135039A (en) * 2020-09-01 2020-12-25 Oppo(重庆)智能科技有限公司 Method and device for controlling focusing drive current, equipment and storage medium
CN113067984A (en) * 2021-03-30 2021-07-02 Oppo广东移动通信有限公司 Binocular shooting correction method, binocular shooting correction device and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001166351A (en) * 1999-12-08 2001-06-22 Olympus Optical Co Ltd Electronic camera apparatus
WO2018076529A1 (en) * 2016-10-25 2018-05-03 华为技术有限公司 Scene depth calculation method, device and terminal
CN107071263A (en) * 2016-12-30 2017-08-18 努比亚技术有限公司 A kind of image processing method and terminal
CN107682630A (en) * 2017-09-30 2018-02-09 努比亚技术有限公司 Dual camera anti-fluttering method, mobile terminal and computer-readable recording medium
US20190297262A1 (en) * 2018-03-20 2019-09-26 Beijing Xiaomi Mobile Software Co., Ltd. Focusing method, device and storage medium
CN109951639A (en) * 2019-03-26 2019-06-28 Oppo广东移动通信有限公司 Camera stabilization system, method, electronic equipment and computer readable storage medium
CN111371997A (en) * 2020-03-16 2020-07-03 Oppo广东移动通信有限公司 Control method of mobile equipment and mobile equipment
CN211580065U (en) * 2020-04-24 2020-09-25 北京小米移动软件有限公司 Anti-shake control device and terminal equipment
CN112135039A (en) * 2020-09-01 2020-12-25 Oppo(重庆)智能科技有限公司 Method and device for controlling focusing drive current, equipment and storage medium
CN113067984A (en) * 2021-03-30 2021-07-02 Oppo广东移动通信有限公司 Binocular shooting correction method, binocular shooting correction device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115278077A (en) * 2022-07-27 2022-11-01 维沃移动通信有限公司 Optical anti-shake method, device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN113873157B (en) 2024-04-16

Similar Documents

Publication Publication Date Title
JP7340624B2 (en) Control method of shape memory alloy motor in photography device and photography device
US8957945B2 (en) Image capturing apparatus capable of capturing panoramic image
CN108881703B (en) Anti-shake control method and device
US20110090345A1 (en) Digital camera, image processing apparatus, and image processing method
KR20120058454A (en) Portable electronic apparatus including a display and method for controlling such an apparatus
WO2006112490A1 (en) Electronic device
CN109040524B (en) Artifact eliminating method and device, storage medium and terminal
JP2017092592A (en) Tracking controller, tracking controlling method, optical equipment, and imaging apparatus
CN112135051A (en) Anti-shake control method and device
CN113286091B (en) Control method, control device, electronic equipment and readable storage medium
CN112887706B (en) Power consumption determination method and device, storage medium and electronic equipment
CN113938602B (en) Image processing method, electronic device, chip and readable storage medium
WO2023072088A1 (en) Focusing method and apparatus
CN112738397A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN112689094A (en) Camera anti-shake prompting method and device and electronic equipment
CN112653843A (en) Shooting method and device based on holder and electronic equipment
CN113873161A (en) Shooting method and device and electronic equipment
CN113873157A (en) Shooting method, shooting device, electronic equipment and readable storage medium
JP7404563B2 (en) Image acquisition methods, equipment and electronics
KR20140014850A (en) Photographing apparatus, method for controlling the same, and computer-readable recoding medium
WO2023179440A1 (en) Shooting apparatus control method and apparatus, shooting apparatus and electronic device
CN111833459A (en) Image processing method and device, electronic equipment and storage medium
EP2945364B1 (en) Display control device, program, and display control method
CN114339051A (en) Shooting method, shooting device, electronic equipment and readable storage medium
US20120200721A1 (en) Portable device, operating method, and computer-readable storage medium

Legal Events

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