CN112672050A - Shooting method and device based on holder and electronic equipment - Google Patents

Shooting method and device based on holder and electronic equipment Download PDF

Info

Publication number
CN112672050A
CN112672050A CN202011551777.9A CN202011551777A CN112672050A CN 112672050 A CN112672050 A CN 112672050A CN 202011551777 A CN202011551777 A CN 202011551777A CN 112672050 A CN112672050 A CN 112672050A
Authority
CN
China
Prior art keywords
input
image
control
holder
shooting
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
CN202011551777.9A
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 CN202011551777.9A priority Critical patent/CN112672050A/en
Publication of CN112672050A publication Critical patent/CN112672050A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

The application discloses a shooting method and device based on a holder and electronic equipment, relates to the technical field of electronics, and can solve the problem of poor shooting effect caused by the fact that the electronic equipment needs to be manually rotated when an image with a rotating smear effect is shot. The method comprises the following steps: receiving a first input under the condition that a shooting preview interface is displayed; responding to the first input, and setting the rotation parameter of the holder as a target rotation parameter corresponding to the first input; receiving a second input; and responding to the second input, controlling the cradle head to rotate according to the target rotation parameter, and controlling the camera on the cradle head to acquire a first image when the cradle head rotates. The embodiment of the application is applied to shooting scenes.

Description

Shooting method and device based on holder and electronic equipment
Technical Field
The application belongs to the technical field of electronics, and particularly relates to a shooting method and device based on a holder and electronic equipment.
Background
With the prevalence of photography in recent years, users increasingly attach importance to the diversification of the shooting effect of electronic devices (e.g., smartphones). In the related art, the electronic device can shoot a picture with clear central main body and blurred smear at the periphery by rotating the electronic device while prolonging the exposure time, so that the shooting interest is increased.
However, since the above photographing process requires the user to manually rotate the electronic apparatus. Therefore, when the hand shake of the user causes the mobile phone to rotate irregularly, the whole shot picture shakes and blurs, and the shooting effect is poor.
Disclosure of Invention
The embodiment of the application aims to provide a shooting method and device based on a holder and electronic equipment, and the problem that when an image with a rotating smear effect is shot, the shooting effect is poor due to the fact that the electronic equipment needs to be manually rotated is solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a shooting method based on a pan/tilt, which is applied to an electronic device including a pan/tilt and a camera, and the method includes: receiving a first input under the condition that a shooting preview interface is displayed; responding to the first input, and setting the rotation parameter of the holder as a target rotation parameter corresponding to the first input; receiving a second input; and responding to the second input, controlling the cradle head to rotate according to the target rotation parameter, and controlling the camera on the cradle head to acquire a first image when the cradle head rotates.
In a second aspect, an embodiment of the present application provides a shooting device based on a pan/tilt head, which is applied to an electronic device including a pan/tilt head and a camera, where the shooting device includes: the receiving module is used for receiving a first input under the condition that a shooting preview interface is displayed; a setting module, configured to set, in response to the first input received by the receiving module, a rotation parameter of the pan/tilt head to a target rotation parameter corresponding to the first input; the receiving module is further configured to receive a second input; and the control module is used for responding to the second input received by the receiving module, controlling the rotation of the holder according to the target rotation parameter, and controlling the camera on the holder to acquire a first image when the holder rotates.
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 a sixth aspect, the present application provides a computer program product stored on a non-volatile storage medium, the program product being executed by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, under the condition that a shooting preview interface is displayed, after the electronic device receives a first input of a user, the rotation parameter of the holder in the electronic device can be directly set as a target rotation parameter corresponding to the first input, so that after the electronic device receives a second input of the user, the holder can be directly controlled to rotate according to the target rotation parameter, and a camera on the holder is driven to acquire a first image with a rotating smear effect when the holder rotates. Therefore, the camera is controlled to rotate and shoot by means of the cloud platform technology, the problems of smear and blur caused by irregular shaking of the electronic equipment in the exposure time can be reduced, the rotating parameters (such as the rotating direction, the rotating angle and the rotating speed) of the micro cloud platform can be accurately controlled by means of the shooting preview interface, and the strength of the rotating smear effect of the image shot by the camera is accurately controlled.
Drawings
Fig. 1 is a schematic diagram of a method of a pan-tilt-based shooting method according to an embodiment of the present application;
fig. 2 is one of schematic interfaces applied to a pan-tilt-based shooting method according to an embodiment of the present disclosure;
fig. 3 is a schematic view of a motion state of a pan/tilt head according to an embodiment of the present disclosure;
fig. 4 is a second schematic view illustrating a motion state of a pan/tilt head according to an embodiment of the present disclosure;
fig. 5 is a third schematic view illustrating a motion state of a pan/tilt head according to an embodiment of the present disclosure;
fig. 6 is a second schematic interface diagram of an application of a pan-tilt-based shooting method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a pan-tilt-based shooting device according to an embodiment of the present application;
fig. 8 is a second schematic structural diagram of a pan/tilt head-based shooting device according to an embodiment of the present disclosure;
fig. 9 is a third schematic structural diagram of a pan/tilt head-based shooting device according to an embodiment of the present disclosure;
fig. 10 is a fourth schematic structural diagram of a pan/tilt head-based shooting device according to an embodiment of the present application;
fig. 11 is a hardware schematic diagram of an electronic device according to an embodiment of the present disclosure;
fig. 12 is a second hardware schematic diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described 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, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
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 pan-tilt-based 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.
The shooting method based on the holder is applied to electronic equipment comprising the holder and a camera. The tripod head is a shooting auxiliary device which is arranged on the electronic equipment and used for mounting and bearing a camera, is complex and precise in structure and mainly comprises a limiting mechanism, a double-ball suspension, a lens, a voice coil motor, a magnetomotive frame and a protective cover. Because the cloud platform is set up inside electronic equipment under normal conditions for bear and install the camera, consequently, the cloud platform among the electronic equipment also can be called little cloud platform, and little cloud platform can be used for the anti-shake, and the supplementary user stably shoots, improves the shooting quality of image.
The embodiment of the application provides a shooting method based on a holder, and as shown in fig. 1, the method may include the following steps 201 to 204. The method is exemplified below by taking the execution subject as a pan-tilt-based shooting device as an example.
Step 201: in a case where a photographing preview interface is displayed, a first input is received.
In the embodiment of the present application, the normal viewing content of the camera of the electronic device is displayed in the shooting preview interface.
Step 202: and responding to the first input, and setting the rotation parameters of the holder as target rotation parameters corresponding to the first input.
In an embodiment of the present application, the rotation parameter of the pan/tilt head includes at least one of: rotation angle, rotation speed, rotation direction.
Step 203: a second input is received.
Step 204: and responding to the second input, controlling the rotation of the holder according to the target rotation parameters, and controlling a camera on the holder to acquire a first image when the holder rotates.
In this embodiment of the present application, the first input is a setting input for setting a rotation parameter of the pan/tilt head; the second input described above may be a photographing input by the user.
In this application embodiment, the shooting device based on cloud platform is after receiving the second input, just according to the rotatory parameter control cloud platform rotation of above-mentioned cloud platform to control the camera on the cloud platform simultaneously and shoot when the cloud platform begins to rotate, because the rotation of cloud platform can drive the camera simultaneous rotation of cloud platform top, consequently, can make the camera of cloud platform top gather the image that possesses rotatory smear style.
Optionally, in an embodiment of the present application, the first input includes: and (4) sliding input of the user on the shooting preview interface. Based on this, the above step 202 may include the following step 202 a:
step 202 a: and responding to the sliding input, and determining the target rotation parameters of the holder according to the sliding track of the sliding input.
For example, the pan-tilt-based camera may calculate specific rotation parameters according to a sliding track of the sliding input, for example, determine a rotation angle value according to a sliding length of the sliding track. Alternatively, the pan/tilt/zoom apparatus may determine an adjustment ratio according to a sliding track of the sliding input, and then adjust the rotation parameter of the pan/tilt/zoom apparatus according to the adjustment ratio, for example, the adjusted rotation parameter may be a product between the adjustment ratio and a preset rotation parameter, or the adjusted rotation parameter may also be a product between (1+ adjustment ratio) and the preset rotation parameter.
In one example, the rotation parameter may be a rotation angle, an absolute value of the rotation angle is a value greater than 0 and less than 1, the rotation angle may be a positive value or a negative value, and the positive and negative values of the rotation angle are used to indicate the rotation direction. For example, if the rotation angle is larger than 0, the rotation angle is set in the clockwise direction, and if the rotation angle is a value smaller than 0, the rotation angle is set in the counterclockwise direction. Specifically, the pan/tilt/zoom camera may determine the positive or negative of the rotation angle according to the sliding direction of the sliding operation, for example, if the sliding input direction is upward or leftward, the sliding track of the sliding input is a positive value, and the rotation angle is a positive value; if the direction of the sliding input is downward or rightward, the sliding track of the sliding input is a negative value, and the rotating angle is a negative value.
For example, the pan/tilt/zoom camera may determine the rotation parameter according to a sliding rate of the sliding input (i.e., a sliding displacement corresponding to the sliding input per unit time). For example, the greater the slip rate, the greater the corresponding rotational parameter, and the smaller the slip rate, the smaller the corresponding rotational parameter.
It should be noted that the sliding trajectory in the embodiment of the present invention is a vector trajectory including a sliding direction, that is, the sliding trajectory in the embodiment of the present invention includes a sliding direction and a sliding displacement.
Optionally, in this embodiment of the present application, before the step 201, the pan-tilt-based shooting method provided in this embodiment of the present application further includes the following step 201 a:
step 201 a: and receiving a third input of the third control by the user under the condition that the third control is displayed in the shooting preview interface.
Further, based on the step 201a, the step 201 may include the following step 201 b:
step 201 b: and responding to the third input, and displaying a first adjusting control and a second adjusting control on the shooting preview interface.
Wherein the first input comprises: a first sub-input by a user to the first adjustment control, and a second sub-input by a user to the second adjustment control.
For example, the first adjusting control may be an adjusting button or an adjusting scroll bar for adjusting the "rotation angle"; the second adjusting control can be an adjusting button or an adjusting scroll bar for adjusting the "rotation speed".
For example, the pan/tilt head-based photographing apparatus may display adjustment keys "+" and "-" of "rotation angle" and "+" and "-" of "rotation speed", respectively, on the photographing preview interface after receiving the third input. For example, the user may strengthen the rotation angle by a preset threshold or a predetermined ratio by clicking the "+" key of "rotation angle", or weaken the rotation angle by a preset threshold or a predetermined ratio by clicking the "-" key of "rotation angle". Similarly, the user may increase the rotation speed by a predetermined threshold or a predetermined ratio by clicking the "+" key of "rotation speed", or decrease the rotation speed by a predetermined threshold or a predetermined ratio by clicking the "-" key of "rotation speed".
In addition, the adjusting control displayed on the shooting preview interface can be displayed only when the setting flow of the rotation parameters of the holder is triggered, and is hidden under the condition of normal display.
For example, as shown in fig. 2, taking the electronic device as a mobile phone as an example, when the mobile phone is in a landscape state, the middle control on the left side of the shooting preview interface of the mobile phone is a "shooting control". A preview window is arranged below the shooting control, and a preview picture of a picture shot by the mobile phone last time is displayed in the preview window, which is called the preview control for short. A setting control button for controlling parameters such as the rotation angle and the rotation speed of the pan/tilt head is arranged above the shooting control, which is called a rotation setting control for short (namely the third control).
After the user clicks the above-mentioned "rotation setting" control, 2 sliding bars can be shown to the left and right sides of shooting preview interface, so can make things convenient for user's both hands to adjust the rotational speed and the rotation angle of cloud platform simultaneously. The left sliding strip is used for setting the rotating speed of the holder, the unit is angle/second, the rotating speed of the holder can be adjusted through up-down sliding, the right sliding strip is used for setting the rotating angle of the holder, and the rotating angle of the holder can be adjusted through up-down sliding.
Of course, the above description is merely an example, and in practical applications, the shooting preview interface may display the two sliders when displayed, without triggering the display by the "rotation setting" control.
In order to further explain the angle problem of the rotation of the pan/tilt head, several motion states of the pan/tilt head will be shown in the following with reference to the accompanying drawings.
Example 1:
with reference to a schematic plan view of the head shown in (1) in fig. 3 and a side view shown in (2) in fig. 3, an x-y-z axis coordinate system is defined. The horizontal direction is defined as an x axis, the direction which is vertical to the x axis and is on the plane of the holder is defined as a y axis, and the direction which is vertical to the x-y plane is defined as a z axis. As shown in fig. 3, the head is in the x-y plane and perpendicular to the z-axis when the head is not rotating.
Example 2:
referring to fig. 4, a schematic diagram of a spatial state of the camera when the pan/tilt head rotates, in which the pan/tilt head rotates by a certain angle with the y-axis as the motion axis. Fig. 4 (1) is a schematic view of the pan/tilt head rotating about the y-axis as the axis of motion, and fig. 4 (2) is a schematic view of the pan/tilt head in the z-axis direction.
Example 3:
referring to fig. 5, a schematic diagram of a spatial state of the camera when the pan/tilt head rotates, in which the pan/tilt head rotates by a certain angle with the x-axis as the motion axis. Fig. 5 (1) is a schematic view of the pan/tilt head rotating around the x-axis as the motion axis, and fig. 5 (2) is a schematic view of the pan/tilt head in the y-axis direction.
The cradle head takes an x axis and a y axis as motion axes, and the two typical states of the cradle head during motion are represented.
It should be noted that, for anti-shake, the pan-tilt moves with the x-axis and the y-axis as the motion axes, and at this time, the angle of the pan-tilt plane deviating from the y-axis and the x-axis is determined according to the data of the gyroscope, and the adjustable angle has a certain range. In the rotating smear function, in order to meet the rotating smear function and have a certain anti-shake function, the tripod head can fix an angle deviating from the y axis and the x axis, the angle is larger than 0 degree and smaller than the maximum angle at which the tripod head can deviate from the y axis and the x axis, and the redundant deviation angle is used for anti-shake.
The rotation of the pan/tilt head means that the pan/tilt head is combined with the two motion states shown in fig. 4 and 5, in which the two motion states take the x axis and the y axis as the motion axes, so that the motion track of a certain pixel point of the pan/tilt head is an arc line when the pan/tilt head moves, the angle corresponding to the arc line is the motion angle of the pan/tilt head (i.e. the rotation angle of the pan/tilt head), and when the motion track of the pixel point is a circle, the corresponding rotation angle is 360 degrees.
In the shooting method based on the pan/tilt/zoom provided by the embodiment of the application, under the condition that a shooting preview interface is displayed, after a shooting device based on the pan/tilt/zoom receives a first input of a user, a rotation parameter of the pan/tilt in the electronic device can be directly set as a target rotation parameter corresponding to the first input, so that after the shooting device based on the pan/tilt/zoom receives a second input of the user, the pan/tilt can be directly controlled to rotate according to the target rotation parameter, and a camera on the pan/tilt is driven to acquire a first image with a rotating smear effect when the pan/tilt rotates. Therefore, the camera is controlled to rotate and shoot by means of the cloud platform technology, the problems of smear and blur caused by irregular shaking of the electronic equipment in the exposure time can be reduced, the rotating parameters (such as the rotating direction, the rotating angle and the rotating speed) of the micro cloud platform can be accurately controlled by means of the shooting preview interface, and the strength of the rotating smear effect of the image shot by the camera is accurately controlled.
Optionally, in this embodiment of the application, in a case that a first control is displayed in the shooting preview interface and the second input is an input of the first control by a user, the step 204 may include the following step 204 a:
step 204 a: and responding to a second input, updating the first control into a second control, controlling the rotation of the holder according to the rotation parameters of the holder in the process of displaying the second control, and controlling a camera on the holder to acquire a first image when the holder rotates.
Further, after the step 204a, the shooting method of the pan/tilt head provided by the embodiment of the application may further include the following step 204 b:
step 204 b: and updating the second control into the first control when the camera finishes collecting the first image.
For example, when the camera finishes capturing the first image, the pan-tilt-based shooting device restores the second control to the first control, and also restores the preview picture in the shooting preview interface to the current real-time preview picture.
For example, as shown in fig. 6, after the rotational parameter is set for the pan/tilt head, the user may click a "shooting control" on the shooting preview interface, fix the whole preview picture of the shooting preview interface as the current scene, then update the "shooting control" into a waiting circle to indicate that the camera is currently shooting, at this time, the shooting button is shown in fig. 6, until the shooting is completed, return the waiting circle to the "shooting control", at this time, the shooting button is shown in fig. 2, and the preview picture in the shooting preview interface is also returned to the current real-time preview picture.
Therefore, the shooting control is changed in the shooting process of the camera, so that the user can be prompted that the camera performs rotary shooting operation currently, and the problem that the effect of shot images is poor due to movement of the user is avoided.
Optionally, in this embodiment of the present application, the pan-tilt-based shooting method provided in this embodiment of the present application may further include the following steps 205 and 206:
step 205: and fixing the holder, and controlling the camera to acquire a second image, wherein the second image and the first image are images acquired aiming at the same shooting object.
Step 206: and replacing the foreground image where the shooting object in the first image is located with the foreground image where the shooting object in the second image is located to obtain the target image.
For example, when the pan/tilt/zoom camera captures the first image, the pan/tilt/zoom camera may use low ISO and long exposure time shooting parameters to shoot, and simultaneously rotate the pan/tilt/zoom camera to obtain a picture with a rotating smear effect on the shooting background. In addition, when the shooting device based on the cloud platform collects the second image, shooting can be carried out by using the shooting parameters of normal ISO and short exposure time, and the cloud platform is fixed to obtain a clear picture of a shooting main body. And finally, combining the acquired background rotation smear picture and the main body clear picture to generate a picture with a clear main body and a background rotation smear style.
It should be noted that, in the embodiment of the present application, the execution sequence between the step 205 and the step 206 is not limited, for example, the pan-tilt-based shooting device may execute the step 205 first and then execute the step 206, or execute the step 206 first and then execute the step 205.
It should be noted that, in the pan-tilt-based shooting method provided in the embodiment of the present application, the executing main body may be a pan-tilt-based shooting device, or a control module in the pan-tilt-based shooting device for executing the pan-tilt-based shooting method. In the embodiment of the present application, a shooting device based on a pan/tilt head performs a shooting method based on a pan/tilt head is taken as an example, and the shooting device based on a pan/tilt head provided in the embodiment of the present application is described. However, in practical applications, the executing main body of the pan/tilt/zoom based shooting method may also be other devices or apparatuses that can execute the pan/tilt based shooting method, and the embodiment of the present application does not limit this.
The embodiment of the application provides a shooting device based on cloud platform is applied to the electronic equipment who contains cloud platform and camera, as shown in figure 7, this shooting device based on cloud platform includes: a receiving module 401, a setting module 402, a control module 403, wherein:
a receiving module 401, configured to receive a first input when a shooting preview interface is displayed; a setting module 402, configured to set, in response to the first input received by the receiving module 401, a rotation parameter of the pan/tilt head to a target rotation parameter corresponding to the first input; the receiving module 401 is further configured to receive a second input; a control module 403, configured to, in response to the second input received by the receiving module 401, control rotation of the pan/tilt head according to the target rotation parameter set by the setting module 402, and control the camera on the pan/tilt head to acquire a first image when the pan/tilt head rotates.
Optionally, the rotation parameter of the pan/tilt head includes at least one of: rotation angle, rotation speed, rotation direction.
Optionally, as shown in fig. 8, the apparatus further includes: a determination module 404, wherein: the first input includes: sliding input of a user on the shooting preview interface; a determining module 404, configured to determine, in response to the sliding input received by the receiving module 401, a target rotation parameter of the pan/tilt head according to a sliding track of the sliding input.
Optionally, as shown in fig. 9, the apparatus further includes: a display module 405, wherein: a first control is displayed in the shooting preview interface; the second input is input to the first control by a user; a display module 405, configured to update the first control to a second control in response to the second input received by the receiving module 401; the control module 403 is specifically configured to control the rotation of the pan/tilt head according to the target rotation parameter in the process of displaying the second control by the display module 405; the display module 405 is further configured to update the second control to the first control when the first image is acquired.
Optionally, as shown in fig. 10, the apparatus further includes: a replacement module 406, wherein: the control module 403 is further configured to fix the pan/tilt head, and control the camera to acquire a second image, where the second image and the first image are acquired for a same shooting object; the replacing module 406 is configured to replace the foreground image in the first image with the foreground image in the second image, where the photographic subject is located, to obtain the target image.
In the shooting device based on the pan/tilt/zoom (PTZ) provided by the embodiment of the application, under the condition that a shooting preview interface is displayed, the shooting device based on the pan/tilt/zoom (PTZ) can directly set the rotation parameters of the pan/tilt/zoom (PTZ) in the electronic equipment as the target rotation parameters corresponding to the first input after receiving the first input of a user, so that after the shooting device based on the pan/tilt/zoom (PTZ) receives the second input of the user, the pan/tilt/zoom (PTZ) can be directly controlled to rotate according to the target rotation parameters, and a camera on the pan/tilt/zoom (PTZ) is driven to acquire the first image with the. Therefore, the camera is controlled to rotate and shoot by means of the cloud platform technology, the problems of smear and blur caused by irregular shaking of the electronic equipment in the exposure time can be reduced, the rotating parameters (such as the rotating direction, the rotating angle and the rotating speed) of the micro cloud platform can be accurately controlled by means of the shooting preview interface, and the strength of the rotating smear effect of the image shot by the camera is accurately controlled.
The shooting device based on the holder in the embodiment of the application can be a device, and can also 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 shooting device based on the holder in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The shooting device based on the holder provided by the embodiment of the application can realize each process realized by the method embodiment, and is not repeated here for avoiding repetition.
The beneficial effects of the various implementation manners in this embodiment may specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments, and are not described herein again to avoid repetition.
Optionally, as shown in fig. 11, an electronic device 500 is further provided in this embodiment of the present application, and includes a processor 501, a memory 502, and a program or an instruction stored in the memory 502 and executable on the processor 501, where the program or the instruction is executed by the processor 501 to implement each process of the foregoing method embodiment of the pan-tilt-based shooting method, and can achieve the same technical effect, and in order to avoid repetition, the 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. 12 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, pan/tilt/zoom (PTZ) 111, and camera 112.
Those skilled in the art will appreciate that the electronic device 100 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 110 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. 12 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.
A user input unit 107 for receiving a first input in a case where a shooting preview interface is displayed; a processor 110, configured to set a rotation parameter of the pan/tilt head 111 as a target rotation parameter corresponding to the first input in response to the first input received by the user input unit 107; the user input unit 107 is further configured to receive a second input; the processor 110 is further configured to, in response to the second input received by the user input unit 107, control the pan/tilt head 111 to rotate according to a target rotation parameter set by the processor 110, and control the camera 112 on the pan/tilt head 111 to capture a first image when the pan/tilt head 111 rotates.
Optionally, the rotation parameter of the pan/tilt head 111 includes at least one of the following: rotation angle, rotation speed, rotation direction.
Optionally, the first input includes: sliding input of a user on the shooting preview interface; the processor 110 is further configured to determine a target rotation parameter of the pan/tilt head 111 according to the sliding track of the sliding input in response to the sliding input received by the user input unit 107.
Optionally, the processor 110 is specifically configured to: when a first control is displayed in the shooting preview interface and the second input is an input of the first control by a user, updating the first control to be a second control in response to the second input received by the user input unit 107, and controlling the pan/tilt head 111 to rotate according to the target rotation parameter while displaying the second control; the display unit 106 is configured to update the second control to the first control when the first image is acquired.
Optionally, the processor 110 is further configured to fix the holder 111 and control the camera 112 to capture a second image, where the second image and the first image are captured for a same shooting object; the processor 110 is further configured to replace the foreground image of the photographic subject in the first image with the foreground image of the photographic subject in the second image to obtain the target image.
In the electronic device provided by the embodiment of the application, under the condition that a shooting preview interface is displayed, after the electronic device receives a first input of a user, the rotation parameter of a cradle head in the electronic device can be directly set as a target rotation parameter corresponding to the first input, so that after the electronic device receives a second input of the user, the cradle head can be directly controlled to rotate according to the target rotation parameter, and a camera on the cradle head is driven to acquire a first image with a rotating smear effect when the cradle head rotates. Therefore, the camera is controlled to rotate and shoot by means of the cloud platform technology, the problems of smear and blur caused by irregular shaking of the electronic equipment in the exposure time can be reduced, the rotating parameters (such as the rotating direction, the rotating angle and the rotating speed) of the micro cloud platform can be accurately controlled by means of the shooting preview interface, and the strength of the rotating smear effect of the image shot by the camera is accurately controlled.
The beneficial effects of the various implementation manners in this embodiment may specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments, and are not described herein again to avoid repetition.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. It should be noted that the holder 111 is used for carrying and fixing the camera. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 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 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
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 method embodiment of the pan/tilt/zoom based shooting method, 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-mentioned method embodiment of the pan/tilt/zoom-based shooting method, and can achieve the same technical effect, and in order to avoid 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 system-on-chip, system-on-chip or system-on-chip, etc.
The embodiment of the present application provides a computer program product, where the program product is stored in a non-volatile storage medium, and the program product is executed by at least one processor to implement each process of the above method embodiment of the pan/tilt/zoom based shooting method, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated 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 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, an air conditioner, 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 shooting method based on a holder is applied to electronic equipment comprising the holder and a camera, and is characterized in that the method comprises the following steps:
receiving a first input under the condition that a shooting preview interface is displayed;
in response to the first input, setting a rotation parameter of the holder as a target rotation parameter corresponding to the first input;
receiving a second input;
and responding to the second input, controlling the holder to rotate according to the target rotation parameter, and controlling the camera on the holder to acquire a first image when the holder rotates.
2. The method according to claim 1, wherein the rotational parameters of the pan-tilt comprise at least one of: rotation angle, rotation speed, rotation direction.
3. The method of claim 1, wherein the first input comprises: sliding input of a user on the shooting preview interface;
after the receiving the first input, the method further comprises:
and responding to the sliding input, and determining a target rotation parameter of the holder according to the sliding track of the sliding input.
4. The method of claim 1, wherein a first control is displayed in the capture preview interface; the second input is input to the first control;
the responding to the second input, controlling the rotation of the holder according to the target rotation parameter, including:
responding to the second input, updating the first control into a second control, and controlling the holder to rotate according to the target rotation parameter in the process of displaying the second control;
after the controlling the camera on the pan/tilt head to acquire a first image while the pan/tilt head is rotating, the method further comprises:
and updating the second control to be the first control when the first image acquisition is completed.
5. The method of claim 1, further comprising:
fixing the holder, and controlling the camera to acquire a second image, wherein the second image and the first image are acquired aiming at the same shooting object;
after the controlling the camera on the pan/tilt head to acquire a first image while the pan/tilt head is rotating, the method further comprises:
and replacing the foreground image of the shooting object in the first image with the foreground image of the shooting object in the second image to obtain a target image.
6. The utility model provides a shoot device based on cloud platform, is applied to the electronic equipment who contains cloud platform and camera, the device includes:
the receiving module is used for receiving a first input under the condition that a shooting preview interface is displayed;
the setting module is used for responding to the first input received by the receiving module and setting the rotation parameter of the holder as a target rotation parameter corresponding to the first input;
the receiving module is further used for receiving a second input;
and the control module is used for responding to the second input received by the receiving module, controlling the rotation of the holder according to the target rotation parameter, and controlling the camera on the holder to acquire a first image when the holder rotates.
7. The apparatus according to claim 6, wherein the rotation parameters of the head comprise at least one of: rotation angle, rotation speed, rotation direction.
8. The apparatus of claim 6, wherein the first input comprises: sliding input of a user on the shooting preview interface;
the device further comprises:
and the determining module is used for responding to the sliding input received by the receiving module and determining the target rotation parameter of the holder according to the sliding track of the sliding input.
9. The apparatus of claim 6, wherein a first control is displayed in the capture preview interface; the second input is input to the first control; the device, still include:
a display module, configured to update the first control to a second control in response to the second input received by the receiving module;
the control module is specifically configured to control the rotation of the pan/tilt head according to the target rotation parameter in the process of displaying the second control by the display module;
the display module is further configured to update the second control to the first control when the first image acquisition is completed.
10. The apparatus of claim 6,
the control module is further used for fixing the holder and controlling the camera to acquire a second image, wherein the second image and the first image are acquired by aiming at the same shooting object;
the device, still include:
and the replacing module is used for replacing the foreground image of the shooting object in the first image with the foreground image of the shooting object in the second image to obtain the target image.
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 pan and tilt head based shooting method according to any one of claims 1 to 5.
12. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the pan and tilt head based shooting method according to any one of claims 1 to 5.
CN202011551777.9A 2020-12-24 2020-12-24 Shooting method and device based on holder and electronic equipment Pending CN112672050A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011551777.9A CN112672050A (en) 2020-12-24 2020-12-24 Shooting method and device based on holder and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011551777.9A CN112672050A (en) 2020-12-24 2020-12-24 Shooting method and device based on holder and electronic equipment

Publications (1)

Publication Number Publication Date
CN112672050A true CN112672050A (en) 2021-04-16

Family

ID=75408374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011551777.9A Pending CN112672050A (en) 2020-12-24 2020-12-24 Shooting method and device based on holder and electronic equipment

Country Status (1)

Country Link
CN (1) CN112672050A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113179370A (en) * 2021-04-21 2021-07-27 深圳传音控股股份有限公司 Photographing method, mobile terminal and readable storage medium
CN113923368A (en) * 2021-11-25 2022-01-11 维沃移动通信有限公司 Shooting method and device
CN114245014A (en) * 2021-12-21 2022-03-25 维沃移动通信有限公司 Holder control method, holder control device and electronic equipment
CN114339047A (en) * 2021-12-31 2022-04-12 维沃移动通信有限公司 Shooting control method and device, electronic equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635580A (en) * 2016-01-04 2016-06-01 上海斐讯数据通信技术有限公司 Image acquisition method and device
CN105847662A (en) * 2015-06-19 2016-08-10 维沃移动通信有限公司 Moving object shooting method based on mobile terminal, and mobile terminal
CN106454143A (en) * 2016-08-31 2017-02-22 周民 Motion image shooting method and terminal
CN108419036A (en) * 2018-05-07 2018-08-17 北京微播视界科技有限公司 A kind of video capture method, apparatus and terminal device
CN110785990A (en) * 2018-10-31 2020-02-11 深圳市大疆创新科技有限公司 Video shooting method and device and control equipment
CN111787234A (en) * 2020-08-12 2020-10-16 努比亚技术有限公司 Shooting control method and device and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847662A (en) * 2015-06-19 2016-08-10 维沃移动通信有限公司 Moving object shooting method based on mobile terminal, and mobile terminal
CN105635580A (en) * 2016-01-04 2016-06-01 上海斐讯数据通信技术有限公司 Image acquisition method and device
CN106454143A (en) * 2016-08-31 2017-02-22 周民 Motion image shooting method and terminal
CN108419036A (en) * 2018-05-07 2018-08-17 北京微播视界科技有限公司 A kind of video capture method, apparatus and terminal device
CN110785990A (en) * 2018-10-31 2020-02-11 深圳市大疆创新科技有限公司 Video shooting method and device and control equipment
CN111787234A (en) * 2020-08-12 2020-10-16 努比亚技术有限公司 Shooting control method and device and computer readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113179370A (en) * 2021-04-21 2021-07-27 深圳传音控股股份有限公司 Photographing method, mobile terminal and readable storage medium
CN113923368A (en) * 2021-11-25 2022-01-11 维沃移动通信有限公司 Shooting method and device
CN114245014A (en) * 2021-12-21 2022-03-25 维沃移动通信有限公司 Holder control method, holder control device and electronic equipment
CN114339047A (en) * 2021-12-31 2022-04-12 维沃移动通信有限公司 Shooting control method and device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN112672050A (en) Shooting method and device based on holder and electronic equipment
CN112653843A (en) Shooting method and device based on holder and electronic equipment
CN112492214B (en) Image shooting method and device, electronic equipment and readable storage medium
CN112689094B (en) Camera anti-shake prompting method and device and electronic equipment
CN112637500B (en) Image processing method and device
CN112492215B (en) Shooting control method and device and electronic equipment
US11949986B2 (en) Anti-shake method, anti-shake apparatus, and electronic device
CN113596294A (en) Shooting method and device and electronic equipment
WO2023072088A1 (en) Focusing method and apparatus
CN113556464A (en) Shooting method and device and electronic equipment
CN115103126B (en) Shooting preview method and device, electronic equipment and storage medium
CN113114933A (en) Image shooting method and device, electronic equipment and readable storage medium
CN114040113A (en) Image processing 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
CN113891005B (en) Shooting method and device and electronic equipment
CN112291476B (en) Shooting anti-shake processing method and device and electronic equipment
CN112738398B (en) Image anti-shake method and device and electronic equipment
CN113873147A (en) Video recording method and device and electronic equipment
CN114339051A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN113888435A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN112399092A (en) Shooting method and device and electronic equipment
CN112738404A (en) Control method of electronic equipment and electronic equipment
CN112672058A (en) Shooting method and device
CN115103113B (en) Image processing method and electronic device

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210416