CN105072328B - Video shooting method and device and terminal - Google Patents

Video shooting method and device and terminal Download PDF

Info

Publication number
CN105072328B
CN105072328B CN201510420881.7A CN201510420881A CN105072328B CN 105072328 B CN105072328 B CN 105072328B CN 201510420881 A CN201510420881 A CN 201510420881A CN 105072328 B CN105072328 B CN 105072328B
Authority
CN
China
Prior art keywords
terminal
shooting
state
video
information
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.)
Active
Application number
CN201510420881.7A
Other languages
Chinese (zh)
Other versions
CN105072328A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510420881.7A priority Critical patent/CN105072328B/en
Publication of CN105072328A publication Critical patent/CN105072328A/en
Application granted granted Critical
Publication of CN105072328B publication Critical patent/CN105072328B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

The embodiment of the invention discloses a video shooting method, a video shooting device and a video shooting terminal. The video shooting method comprises the following steps: when a terminal carries out video shooting, detecting the shooting state of the terminal, wherein the shooting state comprises a steady state or a non-steady state; if the shooting state of the terminal is changed, acquiring current shooting parameters of the terminal, wherein the shooting parameters comprise visual angle information and/or focusing information; adjusting the shooting parameters of the terminal by adopting a preset adjusting algorithm according to the current shooting parameters of the terminal; and shooting the video by adopting the adjusted shooting parameters. According to the method and the device, the shooting state of the terminal is detected, and the shooting parameters of the terminal are adjusted when the shooting state is changed, so that the anti-shake mode can be automatically started and closed, a user does not need to perform complicated operation, the shooting visual angle can be kept unchanged, the continuity of the video shooting visual angle is guaranteed, and the user experience is improved.

Description

Video shooting method and device and terminal
Technical Field
The present invention relates to the field of video processing, and in particular, to a video shooting method, an apparatus, and a terminal.
Background
When video shooting is performed using a mobile terminal, a camera, or the like, the shot video is also shaken due to hand shake or the like. In the prior art, a video anti-shake technology is adopted, and a certain compensation is performed on a picture through the shake of detection equipment.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems: the video anti-shake technology detects the shake of equipment, cuts the shot picture and further rotationally adjusts the cut picture, so that when the video anti-shake technology is adopted, the shot video is inconsistent with the visual angle in a common mode, and the continuity of the visual angle of the shot video is poor; meanwhile, the video anti-shake needs a processor to perform a large amount of operations, the power consumption of the equipment is increased, heat is generated, and the use is influenced, so that the video anti-shake is often manually opened by a user, the operation is complex, the practicability is low, and the user experience is poor.
Disclosure of Invention
The embodiment of the invention provides a video shooting method, a video shooting device and a video shooting terminal, which can automatically start anti-shake processing, can keep the original shooting visual angle, not only ensures the continuity of the video shooting visual angle, but also does not need to perform complicated operation.
A first aspect of an embodiment of the present invention provides a video shooting method, including:
when a terminal carries out video shooting, detecting the shooting state of the terminal, wherein the shooting state comprises a steady state or a non-steady state;
if the shooting state of the terminal is changed, acquiring current shooting parameters of the terminal, wherein the shooting parameters comprise visual angle information and/or focusing information;
adjusting the shooting parameters of the terminal by adopting a preset adjusting algorithm according to the current shooting parameters of the terminal;
and shooting the video by adopting the adjusted shooting parameters.
Preferably, the changing of the shooting state of the terminal includes: the terminal changing from a stationary state to a non-stationary state; or the terminal changes from a non-stationary state to a stationary state.
Preferably, the detecting the shooting state of the terminal includes: detecting the vibration amplitude of the terminal, wherein the vibration amplitude comprises: the terminal is used for averaging the acceleration of each unit time interval in a preset time period; and determining the shooting state of the terminal according to the vibration amplitude of the terminal.
Preferably, the determining the shooting state of the terminal according to the vibration amplitude of the terminal includes: judging whether the average value of the acceleration included in the vibration amplitude is larger than an acceleration threshold value or not; if so, determining that the terminal is in a non-steady state; if not, determining that the terminal is in a stable state.
Preferably, if the shooting state of the terminal is not changed, video shooting is performed according to the current shooting parameters of the terminal.
Preferably, the adjusting the shooting parameters of the terminal by using a preset adjustment algorithm according to the current shooting parameters of the terminal includes: adjusting the view angle information of the terminal according to the attribute information of the terminal, wherein the attribute information comprises the hardware attribute of the terminal; calculating a focal length according to the visual angle information before and after adjustment and the current focusing information; and adjusting the focusing information of the terminal according to the calculation result of the focal length.
Preferably, the calculating a focal length according to the viewing angle information before and after the adjustment and the current focusing information includes: calculating the visual angle proportion value before and after adjustment according to the visual angle information before and after adjustment; and calculating the focal length by adopting a preset algorithm according to the current focusing information, the visual angle ratio values before and after adjustment and a preset relation coefficient.
A second aspect of an embodiment of the present invention provides a video camera, including:
the terminal comprises a detection module, a processing module and a display module, wherein the detection module is used for detecting the shooting state of the terminal when the terminal carries out video shooting, and the shooting state comprises a stable state or a non-stable state;
the terminal comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring current shooting parameters of the terminal when the shooting state of the terminal is changed, and the shooting parameters comprise visual angle information and/or focusing information;
the adjusting module is used for adjusting the shooting parameters of the terminal by adopting a preset adjusting algorithm according to the current shooting parameters of the terminal;
and the shooting module is used for shooting the video by adopting the adjusted shooting parameters.
Preferably, the changing of the shooting state of the terminal includes: the terminal changing from a stationary state to a non-stationary state; or the terminal changes from a non-stationary state to a stationary state.
Preferably, the detection module further comprises: the detecting subunit is configured to detect a vibration amplitude of the terminal, where the vibration amplitude includes: the terminal is used for averaging the acceleration of each unit time interval in a preset time period; and the judging subunit is used for determining the shooting state of the terminal according to the vibration amplitude of the terminal.
Preferably, the judging subunit further includes: the threshold judging subunit is used for judging whether the average value of the acceleration included in the vibration amplitude is greater than an acceleration threshold;
the state determining subunit is used for determining that the terminal is in a non-stationary state when the average value of the acceleration included in the vibration amplitude is greater than an acceleration threshold; and when the average value of the acceleration included in the vibration amplitude is smaller than the acceleration threshold value, determining that the terminal is in a steady state.
Preferably, the shooting module is further configured to shoot a video according to the current shooting parameters of the terminal when the shooting state of the terminal is not changed.
Preferably, the adjusting module further comprises: the visual angle adjusting subunit is configured to adjust visual angle information of the terminal according to attribute information of the terminal, where the attribute information includes a hardware attribute of the terminal; the calculating subunit is used for calculating the focal length according to the visual angle information before and after adjustment and the current focusing information; and the focusing adjustment subunit is used for adjusting the focusing information of the terminal according to the calculation result of the focal length.
Preferably, the calculation subunit further comprises: the first calculation unit is used for calculating the visual angle proportion value before and after adjustment according to the visual angle information before and after adjustment; and the second calculating unit is used for calculating the focal length by adopting a preset algorithm according to the current focusing information, the visual angle proportion values before and after adjustment and a preset relation coefficient.
The third aspect of the present invention provides a terminal, comprising the above video shooting device.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, by detecting the shooting state of the terminal, when the shooting state is changed, the shooting parameters of the terminal are adjusted, so that the anti-shake mode can be automatically started and closed, a user does not need to perform complicated operation, the shooting visual angle can be kept unchanged, the continuity of the video shooting visual angle is ensured, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a video shooting method according to a first embodiment of the present invention.
Fig. 2 is a flowchart of a video shooting method according to a second embodiment of the present invention.
Fig. 3 is a flowchart of a video shooting method according to a third embodiment of the present invention.
Fig. 4 is a flowchart of a video shooting method according to a fourth embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a video camera according to a first embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an embodiment of the detection module shown in fig. 5.
Fig. 7 is a schematic structural diagram of an embodiment of the adjusting module shown in fig. 5.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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 invention.
Fig. 1 is a flowchart of a video shooting method according to a first embodiment of the present invention. In the present embodiment, the video shooting method is applied to a terminal, and the terminal may be an electronic device having a video shooting function, such as a mobile phone, a tablet computer, a camera, and a video camera. The video photographing method includes the following steps S101-S104.
In step S101, when the terminal is performing video shooting, a shooting status of the terminal is detected.
Specifically, the terminal receives a video shooting request of a user and starts video shooting. For example, the user may issue a video capture request in the form of a key, touch, or voice command. When the terminal is shooting video, the current shooting state of the terminal is detected. The shooting state comprises a steady state or a non-steady state, and the steady state means that the current terminal does not shake or the shake amplitude does not influence the shooting; the non-stationary state means that the current terminal shaking amplitude greatly influences shooting.
In step S102, if the shooting status of the terminal is changed, the current shooting parameters of the terminal are obtained.
Specifically, by detecting the current shooting state of the terminal, if it is detected that the shooting state of the terminal is changed, the current shooting parameters of the terminal are further obtained. Wherein the photographing state is changed including: the terminal changes from a stationary state to a non-stationary state; or the terminal changes from a non-stationary state to a stationary state. In the embodiment, the shooting state of the terminal is changed, which may be that the terminal shakes, and at this time, the previous common shooting mode needs to be changed into the anti-shake mode; the terminal can also be recovered from the jitter state to be normal, and at this time, the anti-jitter mode needs to be automatically switched to the normal mode. Therefore, it is necessary to acquire the current shooting parameters and then adjust the shooting parameters to switch the shooting modes. Specifically, when the shooting state is changed, the current shooting parameters of the terminal are acquired, and the shooting parameters include view angle information and/or focusing information. The terminal can acquire the current photographing parameters by reading the data information in the processor. The visual angle information comprises the current visual angle size, and the focusing information comprises the current focal length.
In step S103, a preset adjustment algorithm is used to adjust the shooting parameters of the terminal according to the current shooting parameters of the terminal.
Specifically, after the current shooting parameters are acquired, the shooting parameters to be adjusted are calculated by using an adjustment algorithm. When the terminal takes anti-shake shooting, the shooting angle is changed compared with the common shooting in order to facilitate the subsequent cutting of the picture. In order to keep the viewing angles of the terminal consistent in different shooting states, the viewing angle of the terminal needs to be adjusted, and meanwhile, the focal length needs to be adjusted correspondingly.
In step S104, video shooting is performed using the adjusted shooting parameters.
Specifically, after how to shoot the parameters is calculated by the algorithm in step S103, the shooting parameters are adjusted, and video shooting is performed by using the adjusted shooting parameters, so that the shooting parameters can be adjusted according to the shooting state of the terminal. In the embodiment, when the state of the terminal is changed, for example, the terminal enters from stationary state to unstable state, the processing mode can be automatically switched to the anti-shake processing mode for shooting, and the visual angle of the picture is kept stable.
As can be seen from the above, in the video shooting method in the embodiment of the present invention, by detecting the shooting state of the terminal, and adjusting the shooting parameters of the terminal when the shooting state is changed, the anti-shake mode can be automatically turned on and off, a user does not need to perform complicated operations, and meanwhile, the shooting angle can be kept unchanged, so that the continuity of the video shooting angle is ensured, and the user experience is improved.
Fig. 2 is a flowchart of a video shooting method according to a second embodiment of the present invention. In this embodiment, the video shooting method includes steps S201 to S205, where steps S203 to S205 in this embodiment are the same as steps S102 to S104 in the previous embodiment, and are not repeated herein.
In step S201, when the terminal is performing video shooting, the vibration amplitude of the terminal is detected.
Specifically, the terminal receives a video shooting request of a user and starts video shooting. For example, the user may issue a video capture request in the form of a key, touch, or voice command. When the terminal carries out video shooting, the current vibration amplitude of the terminal is detected. In the present embodiment, the vibration amplitude includes: the average value of the acceleration of the terminal per unit time interval in the preset time period may be, for example, an average value of the acceleration of the terminal per second in 5 seconds. It can be understood by those skilled in the art that the values of the time period and the time interval may also be other values, and the embodiments of the present invention are not limited thereto.
In step S202, a photographing state of the terminal is determined according to a vibration amplitude of the terminal.
Specifically, the shooting state of the terminal is determined according to the amplitude of the terminal. Generally, when the vibration amplitude of a terminal is large, determining that the shooting state of the terminal is a non-steady state; and when the amplitude of the terminal is smaller or zero, determining that the shooting state of the terminal is a steady state. In the present embodiment, since the vibration amplitude includes the acceleration average value in step S201, the shooting state can be determined by the acceleration average value. Specifically, the shooting state is determined by judging whether the average value of the accelerations included in the vibration amplitude is greater than an acceleration threshold value; when the average value of the acceleration is larger than the acceleration threshold value, determining that the shooting state is a non-steady state; and when the average value of the acceleration is smaller than the acceleration threshold value, determining that the shooting state is a steady state. In particular, when the acceleration average value is exactly equal to the acceleration threshold value, the shooting status at this time may also be determined to be a non-stationary status, which is not limited in this embodiment.
In step S203, if the shooting status of the terminal is changed, the current shooting parameters of the terminal are obtained.
In step S204, a preset adjustment algorithm is used to adjust the shooting parameters of the terminal according to the current shooting parameters of the terminal.
In step S205, video shooting is performed using the adjusted shooting parameters.
Therefore, in the video shooting method in the embodiment of the invention, the shooting state of the terminal is determined by detecting the acceleration value of the terminal, and the shooting parameters of the terminal are adjusted when the shooting state is changed, so that the anti-shake mode can be automatically turned on and off, a user does not need to perform complicated operations, the shooting visual angle can be kept unchanged, the continuity of the video shooting visual angle is ensured, and the user experience is improved.
Fig. 3 is a flowchart illustrating a video shooting method according to a third embodiment of the present invention. In the present embodiment, the video shooting method includes steps S301 to S306, wherein the steps S301, S303 to S304 in the present embodiment are the same as the steps S101 to S104 in the first embodiment. It will be understood by those skilled in the art that the step of S306 in the present embodiment may also be applied to the first embodiment and the second embodiment.
In step S301, when a terminal is performing video shooting, a shooting status of the terminal is detected.
In step S302, it is determined whether the photographing state of the terminal has changed.
Specifically, if the change has occurred, the process proceeds to step S303; if no change has occurred, the process proceeds to step S306.
In step S303, if the shooting status of the terminal is changed, the current shooting parameters of the terminal are obtained.
In step S304, a preset adjustment algorithm is used to adjust the shooting parameters of the terminal according to the current shooting parameters of the terminal.
In step S305, video shooting is performed using the adjusted shooting parameters.
In step S306, if the shooting status of the terminal has not changed, video shooting is performed according to the current shooting parameters of the terminal.
Specifically, if the shooting state of the terminal is not changed, that is, the terminal is maintained in a steady state or in a non-steady state, the shooting parameters of the terminal do not need to be adjusted, and only video shooting needs to be performed according to the current shooting parameters of the terminal. In the embodiment, the shooting state of the terminal is not changed, the terminal can be in a shake state all the time, so that the terminal is maintained in a non-steady state, and at the moment, the anti-shake mode needs to be kept on, so that shooting parameters do not need to be adjusted; the terminal can also be in a stable state all the time, the anti-shake mode does not need to be started, and the shooting parameters do not need to be adjusted.
As described above, in the video shooting method according to the embodiment of the present invention, the shooting state of the terminal is detected, and the current shooting parameters are maintained when the shooting state is not changed; when the shooting state is changed, the shooting parameters of the terminal are adjusted, so that the anti-shake mode can be automatically opened and closed, the user does not need to perform complicated operation, the shooting visual angle can be kept unchanged, the continuity of the video shooting visual angle is guaranteed, and the user experience is improved.
Fig. 4 is a flowchart illustrating a video shooting method according to a fourth embodiment of the present invention. In the present embodiment, the video capturing method includes steps S401 to S406, wherein the steps S401, S402, and S406 in the present embodiment are the same as the steps S101, S102, and S104 in the first embodiment. Those skilled in the art will understand that the steps of S403-405 in this embodiment may also be applied to the first embodiment, the second embodiment and the third embodiment.
In step S401, when the terminal is performing video shooting, a shooting status of the terminal is detected.
In step S402, if the shooting status of the terminal has changed, the current shooting parameters of the terminal are obtained.
In step S403, the view angle information of the terminal is adjusted according to the attribute information of the terminal.
Specifically, after the current shooting parameter of the terminal is acquired, the view angle information of the terminal is adjusted first. The view angle information comprises the current view angle size, and the view angle information of the terminal in normal shooting and in anti-shake mode shooting can be obtained according to the attribute information of the terminal, wherein the attribute information comprises the hardware attribute of the terminal, such as some attributes of the lens of the terminal. Adjusting the view angle information according to the attribute information of the terminal, specifically, when the terminal is changed from a stable state to a non-stable state, adjusting the view angle information to a view angle in an anti-shake mode, wherein the view angle at the moment is larger than that in a common mode, so that subsequent cutting of a picture is facilitated; when the terminal is changed from the non-stationary state to the stationary state, the viewing angle information is adjusted to the viewing angle in the normal mode.
In step S404, a focal length is calculated according to the viewing angle information before and after the adjustment and the current focusing information.
Specifically, the focal length to be adjusted is calculated according to the visual angle information before and after adjustment and the focusing information. When the anti-shake photographing is performed, the screen is cut and selected, so that the cut screen becomes smaller than the original screen, and the viewing angle becomes larger than that in the normal mode. In this way, during continuous shooting, the user sees the change of the viewing angle, and the experience is poor, so that the part with the changed viewing angle needs to be compensated. In the embodiment, the focal length is adjusted, so that the shooting visual angle in the anti-shake mode is adjusted to be the same as that in the common mode, the continuity of the shot pictures is guaranteed, and the user experience is enhanced. Specifically, the focal length can be adjusted by the ratio of the viewing angles in the normal mode and the anti-shake mode. If the view angle is twice larger than that of the common mode in the anti-shake mode, the focal length can be adjusted to be half of that of the common mode, so that the picture is guaranteed to be unchanged. It can be understood by those skilled in the art that the manner of adjusting the focal length can be other manners, and the embodiment is not limited thereto.
In other embodiments, the focal length is calculated using the following calculation method. Firstly, calculating the ratio value of the visual angles before and after adjustment according to the visual angle information before and after adjustment. Since the state change of the terminal may be a change from a stationary state to a non-stationary state or a change from a non-stationary state to a stationary state, for convenience of description, the photographing mode used is the normal mode when the terminal is in the stationary state, and the photographing mode used is the anti-shake mode when the terminal is in the non-stationary state. At this time, the view angle information of the terminal in the normal mode and the anti-shake mode can be obtained according to the attribute information of the terminal, for example, the view angle in the normal mode is C1, the view angle in the anti-shake mode is C2, and C1/C2 are view angle ratio values in two modes, and are also view angle ratio values before and after adjustment, wherein the view angle is determined by the attribute information of the terminal, that is, by the hardware attribute of the terminal. Further, according to the current focusing information, the visual angle proportion values before and after adjustment and a preset relation coefficient, a preset algorithm is adopted to calculate the focal length. The relationship between the view angle ratio and the focal length of the two modes is as follows: l2 ═ L1 × k (C1/C2), where k is a preset value representing the coefficient of relationship between the view angle ratio and the focal length; l2 is the focal length in the anti-shake mode, and L1 is the focal length in the normal mode. When shooting parameters are adjusted, if the terminal is changed from a steady state to a non-steady state, and the terminal needs to start an anti-shake mode at the moment, the shooting parameters need to be switched to the parameters in the anti-shake mode, namely, the shooting parameters L2 can be obtained according to L2 ═ L1 × (C1/C2); if the terminal changes from the non-stationary state to the non-stationary state, and the terminal needs to turn off the anti-shake mode, the shooting parameters need to be switched to the parameters in the normal mode, i.e., L1 can be obtained according to L1 ═ L2/[ k × (C1/C2) ].
In step S405, the focusing information of the terminal is adjusted according to the calculation result of the focal length.
Specifically, after the focal length is calculated in step S404, the focusing information is adjusted according to the calculation result of the focal length.
In step S406, video shooting is performed using the adjusted shooting parameters.
As can be seen from the above, in the video shooting method in the embodiment of the present invention, by detecting the shooting state of the terminal, when the shooting state changes, the shooting parameters of the terminal are adjusted according to the attributes of the terminal and the current shooting parameters, so as to adjust the shooting parameters of the terminal, thereby automatically turning on and off the anti-shake mode without requiring a user to perform complicated operations, and meanwhile, keeping the shooting angle unchanged, ensuring the continuity of the video shooting angle, and improving the user experience.
Fig. 5 is a schematic structural diagram of a video camera according to a first embodiment of the present invention. In the present embodiment, the video shooting device is located on a terminal, and the terminal may be an electronic device having a video shooting function, such as a mobile phone, a tablet computer, a camera, and a video camera. The video shooting device includes: the system comprises a detection module 501, an acquisition module 502, an adjustment module 503 and a shooting module 504.
The detecting module 501 is configured to detect a shooting status of a terminal when the terminal is shooting a video.
Specifically, the terminal receives a video shooting request of a user and starts video shooting. For example, the user may issue a video capture request in the form of a key, touch, or voice command. When the terminal is shooting a video, the detecting module 501 detects the current shooting status of the terminal. The shooting state comprises a steady state or a non-steady state, and the steady state means that the current terminal does not shake or the shake amplitude does not influence the shooting; the non-stationary state means that the current terminal shaking amplitude greatly influences shooting.
The obtaining module 502 is configured to obtain a current shooting parameter of the terminal when a shooting state of the terminal is changed.
Specifically, the detecting module 501 detects the current shooting state of the terminal, and if it is detected that the shooting state of the terminal is changed, the obtaining module 502 obtains the current shooting parameter of the terminal. Wherein the photographing state is changed including: the terminal changes from a stationary state to a non-stationary state; or the terminal changes from a non-stationary state to a stationary state. In the embodiment, the shooting state of the terminal is changed, which may be that the terminal shakes, and at this time, the previous common shooting mode needs to be changed into the anti-shake mode; the terminal can also be recovered from the jitter state to be normal, and at this time, the anti-jitter mode needs to be automatically switched to the normal mode. Therefore, the obtaining module 502 needs to obtain the current shooting parameters and then adjust the shooting parameters to switch the shooting modes. Specifically, when the shooting status is changed, the obtaining module 502 obtains the current shooting parameters of the terminal, where the shooting parameters include angle of view information and/or focusing information. The terminal can acquire the current photographing parameters by reading the data information in the processor. The visual angle information comprises the current visual angle size, and the focusing information comprises the current focal length.
The adjusting module 503 is configured to adjust the shooting parameters of the terminal by using a preset adjusting algorithm according to the current shooting parameters of the terminal.
Specifically, after the obtaining module 502 obtains the current shooting parameters, the adjusting module 503 calculates the shooting parameters to be adjusted by using an adjusting algorithm. When the terminal takes anti-shake shooting, in order to facilitate subsequent picture cutting, the shooting angle of view is changed compared with the common shooting. In order to keep the viewing angles of the terminal consistent in different shooting states, the viewing angle of the terminal needs to be adjusted, and meanwhile, the focal length needs to be adjusted correspondingly.
The shooting module 504 is configured to perform video shooting using the adjusted shooting parameters.
Specifically, after how to shoot the parameters is calculated through the algorithm, the shooting parameters are adjusted, and the shooting module 504 performs video shooting by using the adjusted shooting parameters, so that the shooting parameters can be adjusted according to the shooting state of the terminal. In the embodiment, when the state of the terminal is changed, for example, the terminal enters from stationary state to unstable state, the processing mode can be automatically switched to the anti-shake processing mode for shooting, and the visual angle of the picture is kept stable.
The shooting module 504 is further configured to perform video shooting according to the current shooting parameters of the terminal when the shooting state of the terminal is not changed.
Specifically, if the shooting state of the terminal is not changed, that is, the terminal is maintained in a steady state or in a non-steady state, the shooting parameters of the terminal do not need to be adjusted, and the shooting module 504 only needs to shoot the video according to the current shooting parameters of the terminal. In the embodiment, the shooting state of the terminal is not changed, the terminal can be in a shake state all the time, so that the terminal is maintained in a non-steady state, and at the moment, the anti-shake mode needs to be kept on, so that shooting parameters do not need to be adjusted; the terminal can also be in a stable state all the time, the anti-shake mode does not need to be started, and the shooting parameters do not need to be adjusted.
As described above, in the video shooting device according to the embodiment of the present invention, the shooting state of the terminal is detected, and the current shooting parameters are maintained when the shooting state is not changed; when the shooting state is changed, the shooting parameters of the terminal are adjusted, so that the anti-shake mode can be automatically opened and closed, the user does not need to perform complicated operation, the shooting visual angle can be kept unchanged, the continuity of the video shooting visual angle is guaranteed, and the user experience is improved.
Fig. 6 is a schematic structural diagram of an embodiment of the detection module shown in fig. 5. The detecting module 501 further includes: a detection subunit 5011 and a determination subunit 5012.
The detecting subunit 5011 is configured to detect a vibration amplitude of the terminal.
Specifically, when the terminal is performing video shooting, the detecting subunit 5011 detects the current vibration amplitude of the terminal. In the present embodiment, the vibration amplitude includes: the average value of the acceleration of the terminal per unit time interval in the preset time period may be, for example, an average value of the acceleration of the terminal per second in 5 seconds. It can be understood by those skilled in the art that the values of the time period and the time interval may also be other values, and the embodiments of the present invention are not limited thereto.
The judgment subunit 5012 is configured to determine a shooting state of the terminal according to the vibration amplitude of the terminal.
Specifically, the judgment subunit 5012 determines the shooting state of the terminal from the amplitude width of the terminal. Generally, when the vibration amplitude of the terminal is large, the judgment subunit 5012 determines that the shooting state of the terminal is a non-stationary state; when the amplitude of the terminal is small or zero, the judgment subunit 5012 determines that the shooting state of the terminal is a steady state. In the present embodiment, since the vibration amplitude includes the acceleration average value, the determination subunit 5012 can determine the shooting state by the acceleration average value.
In other embodiments, the determining subunit 5012 further includes: a threshold judging subunit and a state determining subunit. The threshold judging subunit is configured to judge whether an average value of accelerations included in the vibration amplitude is greater than an acceleration threshold; the state determining subunit is configured to determine that the terminal is in a non-stationary state when an average value of accelerations included in the vibration amplitude is greater than an acceleration threshold; and when the average value of the acceleration included in the vibration amplitude is smaller than the acceleration threshold value, determining that the terminal is in a steady state.
As can be seen from the above, in the present embodiment, the video camera can determine the shooting status of the terminal by detecting the acceleration value of the terminal.
Fig. 7 is a schematic structural diagram of an embodiment of the adjusting module shown in fig. 5. The adjusting module 503 further includes: a view angle adjusting sub-unit 5031, a calculating sub-unit 5032, and a focus adjusting sub-unit 5033.
The view angle adjusting sub-unit 5031 is configured to adjust the view angle information of the terminal according to the attribute information of the terminal.
Specifically, after acquiring the current shooting parameter of the terminal, the viewing angle adjusting subunit 5031 first adjusts the viewing angle information of the terminal. The angle-of-view information includes a current angle-of-view size, and the angle-of-view adjusting subunit 5031 can obtain the angle-of-view information of the terminal at the time of normal shooting and at the time of anti-shake mode shooting according to attribute information of the terminal, where the attribute information includes hardware attributes of the terminal, such as some attributes of a lens of the terminal. Adjusting the view angle information according to the attribute information of the terminal, specifically, when the terminal is changed from a stable state to a non-stable state, adjusting the view angle information to a view angle in an anti-shake mode, wherein the view angle at the moment is larger than that in a common mode, so that subsequent cutting of a picture is facilitated; when the terminal is changed from the non-stationary state to the stationary state, the viewing angle information is adjusted to the viewing angle in the normal mode.
The calculating subunit 5032 is configured to calculate a focal length according to the viewing angle information before and after the adjustment and the current focusing information.
Specifically, the calculating subunit 5032 calculates the focal length to be adjusted according to the viewing angle information before and after adjustment and the focusing information. When the anti-shake photographing is performed, the screen is cut and selected, so that the cut screen becomes smaller than the original screen, and the viewing angle becomes larger than that in the normal mode. In this way, during continuous shooting, the user sees the change of the viewing angle, and the experience is poor, so that the part with the changed viewing angle needs to be compensated. In the embodiment, the focal length is adjusted, so that the shooting visual angle in the anti-shake mode is adjusted to be the same as that in the common mode, the continuity of the shot pictures is guaranteed, and the user experience is enhanced. Specifically, the focal length can be adjusted by the ratio of the viewing angles in the normal mode and the anti-shake mode. If the view angle is twice larger than that of the common mode in the anti-shake mode, the focal length can be adjusted to be half of that of the common mode, so that the picture is guaranteed to be unchanged. It can be understood by those skilled in the art that the manner of adjusting the focal length can be other manners, and the embodiment is not limited thereto.
In other embodiments, the calculating subunit 5032 calculates the focal length using the following calculation method. The calculation sub-unit 5032 further comprises a first calculation unit and a second calculation unit. First, the first calculating unit calculates the view ratio before and after adjustment according to the view information before and after adjustment. Since the state change of the terminal may be a change from a stationary state to a non-stationary state or a change from a non-stationary state to a stationary state, for convenience of description, the photographing mode used is the normal mode when the terminal is in the stationary state, and the photographing mode used is the anti-shake mode when the terminal is in the non-stationary state. At this time, the view angle information of the terminal in the normal mode and the anti-shake mode can be obtained according to the attribute information of the terminal, for example, the view angle in the normal mode is C1, the view angle in the anti-shake mode is C2, and C1/C2 are view angle ratio values in two modes, and are also view angle ratio values before and after adjustment, wherein the view angle is determined by the attribute information of the terminal, that is, by the hardware attribute of the terminal. And the second calculating unit is used for calculating the focal length by adopting a preset algorithm according to the current focusing information, the visual angle proportion values before and after adjustment and a preset relation coefficient. The relationship between the view angle ratio and the focal length of the two modes is as follows: l2 ═ L1 × k (C1/C2), where k is a preset value representing the coefficient of relationship between the view angle ratio and the focal length; l2 is the focal length in the anti-shake mode, and L1 is the focal length in the normal mode. When shooting parameters are adjusted, if the terminal is changed from a steady state to a non-steady state, and the anti-shake mode needs to be started at the time, the shooting parameters need to be switched to the parameters in the anti-shake mode, and the second calculating unit can calculate the L2 according to the L2-L1 k (C1/C2); if the terminal changes from the non-stationary state to the non-stationary state, and the terminal needs to turn off the anti-shake mode at this time, the shooting parameters need to be switched to the parameters in the normal mode, and the second calculating unit may calculate L1 according to L1 ═ L2/[ k ═ C1/C2 ].
The focusing adjustment subunit 5033 is configured to adjust the focusing information of the terminal according to the calculation result of the focal length.
Specifically, after the calculation subunit 5032 calculates the focal length, the focusing adjustment subunit 5033 adjusts the focusing information according to the calculation result of the focal length.
As described above, in the present embodiment, when the shooting status is changed, the video camera adjusts the shooting parameters of the terminal according to the attributes of the terminal and the current shooting parameters.
The embodiment of the present invention further discloses a terminal, which includes a video shooting device, and the structure and function of the video shooting device may refer to the relevant descriptions in the embodiments in fig. 5 to fig. 7, which are not described herein again. It can be understood that the terminal according to the embodiment of the present invention may also be applied to the video shooting method shown in any one of the embodiments of fig. 1 to 4.
Therefore, in the terminal in the embodiment of the invention, by detecting the shooting state of the terminal, when the shooting state is changed, the shooting parameters of the terminal are adjusted, so that the anti-shake mode can be automatically turned on and off, a user does not need to perform complicated operations, the shooting visual angle can be kept unchanged, the continuity of the video shooting visual angle is ensured, and the user experience is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (13)

1. A video shooting method applied to a terminal is characterized by comprising the following steps:
when a terminal carries out video shooting, detecting the shooting state of the terminal, wherein the shooting state comprises a steady state or a non-steady state;
if the shooting state of the terminal is changed, acquiring current shooting parameters of the terminal, wherein the shooting parameters comprise visual angle information and/or focusing information, and the focusing information comprises a current focal length;
adjusting the shooting parameters of the terminal by adopting a preset adjusting algorithm according to the current shooting parameters of the terminal so as to keep the visual angles of the terminal in the stable state or the non-stable state consistent;
the adjusted shooting parameters are adopted to carry out video shooting,
the adjusting the shooting parameters of the terminal by adopting a preset adjusting algorithm according to the current shooting parameters of the terminal comprises the following steps:
adjusting the view angle information of the terminal according to the attribute information of the terminal, wherein the attribute information comprises the hardware attribute of the terminal;
calculating a focal length according to the visual angle information before and after adjustment and the current focusing information;
adjusting the focusing information of the terminal according to the calculation result of the focal length,
the view information includes a view size.
2. The video photographing method of claim 1, wherein the photographing state of the terminal is changed, comprising:
the terminal changing from a stationary state to a non-stationary state;
or the terminal changes from a non-stationary state to a stationary state.
3. The video capturing method of claim 1, wherein the detecting the capturing status of the terminal comprises:
detecting the vibration amplitude of the terminal, wherein the vibration amplitude comprises: the terminal is used for averaging the acceleration of each unit time interval in a preset time period;
and determining the shooting state of the terminal according to the vibration amplitude of the terminal.
4. The video photographing method of claim 3, wherein the determining of the photographing state of the terminal according to the vibration amplitude of the terminal comprises:
judging whether the average value of the acceleration included in the vibration amplitude is greater than or equal to an acceleration threshold value or not;
if so, determining that the terminal is in a non-steady state;
if not, determining that the terminal is in a stable state.
5. The video capture method of any of claims 1-4, further comprising:
and if the shooting state of the terminal is not changed, video shooting is carried out according to the current shooting parameters of the terminal.
6. The video capture method of claim 1, wherein calculating a focal length based on the perspective information before and after the adjustment and current focus information comprises:
calculating the visual angle proportion value before and after adjustment according to the visual angle information before and after adjustment;
and calculating the focal length by adopting a preset algorithm according to the current focusing information, the visual angle ratio values before and after adjustment and a preset relation coefficient.
7. A video shooting device applied to a terminal, comprising:
the terminal comprises a detection module, a processing module and a display module, wherein the detection module is used for detecting the shooting state of the terminal when the terminal carries out video shooting, and the shooting state comprises a stable state or a non-stable state;
the terminal comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring current shooting parameters of the terminal when the shooting state of the terminal is changed, the shooting parameters comprise visual angle information and/or focusing information, and the focusing information comprises a current focal length;
the adjusting module is used for adjusting the shooting parameters of the terminal by adopting a preset adjusting algorithm according to the current shooting parameters of the terminal so as to keep the consistent visual angle of the terminal in the stable state or the non-stable state;
a shooting module for shooting video by adopting the adjusted shooting parameters,
wherein the adjusting module further comprises:
the visual angle adjusting subunit is configured to adjust visual angle information of the terminal according to attribute information of the terminal, where the attribute information includes a hardware attribute of the terminal;
the calculating subunit is used for calculating the focal length according to the visual angle information before and after adjustment and the current focusing information;
a focusing adjustment subunit, configured to adjust focusing information of the terminal according to the calculation result of the focal length,
the view information includes a view size.
8. The video camera of claim 7, wherein the change in the shooting status of the terminal comprises:
the terminal changing from a stationary state to a non-stationary state;
or the terminal changes from a non-stationary state to a stationary state.
9. The video camera of claim 7, wherein the detection module further comprises:
the detecting subunit is configured to detect a vibration amplitude of the terminal, where the vibration amplitude includes: the terminal is used for averaging the acceleration of each unit time interval in a preset time period;
and the judging subunit is used for determining the shooting state of the terminal according to the vibration amplitude of the terminal.
10. The video camera of claim 9, wherein the determining subunit further comprises:
the threshold judging subunit is used for judging whether the average value of the acceleration included in the vibration amplitude is greater than an acceleration threshold;
the state determining subunit is used for determining that the terminal is in a non-stationary state when the average value of the acceleration included in the vibration amplitude is greater than an acceleration threshold; and when the average value of the acceleration included in the vibration amplitude is smaller than the acceleration threshold value, determining that the terminal is in a steady state.
11. The video camera of any of claims 7-10, further comprising:
the shooting module is further used for shooting videos according to the current shooting parameters of the terminal when the shooting state of the terminal is not changed.
12. The video camera of claim 7, wherein said computing subunit further comprises:
the first calculation unit is used for calculating the visual angle proportion value before and after adjustment according to the visual angle information before and after adjustment;
and the second calculating unit is used for calculating the focal length by adopting a preset algorithm according to the current focusing information, the visual angle proportion values before and after adjustment and a preset relation coefficient.
13. A terminal for video capture, comprising a video capture device as claimed in any one of claims 7 to 12.
CN201510420881.7A 2015-07-16 2015-07-16 Video shooting method and device and terminal Active CN105072328B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510420881.7A CN105072328B (en) 2015-07-16 2015-07-16 Video shooting method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510420881.7A CN105072328B (en) 2015-07-16 2015-07-16 Video shooting method and device and terminal

Publications (2)

Publication Number Publication Date
CN105072328A CN105072328A (en) 2015-11-18
CN105072328B true CN105072328B (en) 2020-03-24

Family

ID=54501597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510420881.7A Active CN105072328B (en) 2015-07-16 2015-07-16 Video shooting method and device and terminal

Country Status (1)

Country Link
CN (1) CN105072328B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105979143B (en) * 2015-12-29 2020-02-07 广东中星电子有限公司 Method and device for adjusting shooting parameters of dome camera
CN105578061A (en) * 2016-02-25 2016-05-11 广东欧珀移动通信有限公司 Anti-shaking method and device for photographing, and mobile terminal
CN106303218A (en) * 2016-07-29 2017-01-04 努比亚技术有限公司 The device and method of image procossing
CN106060411B (en) * 2016-07-29 2019-08-16 努比亚技术有限公司 A kind of focusing mechanism, method and terminal
CN107197152B (en) * 2017-06-16 2020-01-14 Oppo广东移动通信有限公司 Focusing method, focusing device, computer readable storage medium and mobile terminal
CN107357616B (en) * 2017-06-30 2020-06-19 维沃移动通信有限公司 Method for starting anti-shake mode and mobile terminal
CN107566719A (en) * 2017-08-24 2018-01-09 广东小天才科技有限公司 Move switching method, device, equipment and the storage medium of stabilization exposal model
CN107483825B (en) * 2017-09-08 2019-12-24 上海创功通讯技术有限公司 Method and device for automatically adjusting focal length
CN115086554A (en) * 2019-08-20 2022-09-20 华为技术有限公司 Video special effect generation method and terminal
WO2021035744A1 (en) * 2019-08-30 2021-03-04 深圳市大疆创新科技有限公司 Image collection method for mobile platform, device and storage medium
CN111314601B (en) * 2020-02-17 2021-09-28 成都市喜爱科技有限公司 Shooting control method and device, electronic equipment and computer-readable storage medium
CN111343381B (en) * 2020-02-28 2021-10-22 Oppo广东移动通信有限公司 Method and device for controlling anti-shake function to be started, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101572775A (en) * 2008-05-03 2009-11-04 奥林巴斯映像株式会社 Image recording and playback device, and image recording and playback method
CN101790046A (en) * 2009-01-22 2010-07-28 三星数码影像株式会社 Digital photographing device, method of controlling the same, and computer-readable storage medium
CN102075674A (en) * 2009-11-25 2011-05-25 奥林巴斯映像株式会社 Imaging apparatus
CN102640050A (en) * 2009-11-30 2012-08-15 摩托罗拉解决方案公司 Method and apparatus for choosing a desired field of view from a wide-angle image or video

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101572775A (en) * 2008-05-03 2009-11-04 奥林巴斯映像株式会社 Image recording and playback device, and image recording and playback method
CN101790046A (en) * 2009-01-22 2010-07-28 三星数码影像株式会社 Digital photographing device, method of controlling the same, and computer-readable storage medium
CN102075674A (en) * 2009-11-25 2011-05-25 奥林巴斯映像株式会社 Imaging apparatus
CN102640050A (en) * 2009-11-30 2012-08-15 摩托罗拉解决方案公司 Method and apparatus for choosing a desired field of view from a wide-angle image or video

Also Published As

Publication number Publication date
CN105072328A (en) 2015-11-18

Similar Documents

Publication Publication Date Title
CN105072328B (en) Video shooting method and device and terminal
US11290639B2 (en) Enhanced image capture
AU2020202562B2 (en) Enhanced image capture
US9729784B2 (en) Enhanced image capture
WO2015135477A1 (en) Handheld terminal and screen anti-shake method and device for handheld terminal
CN109167877B (en) Terminal screen control method and device, terminal equipment and storage medium
WO2014166127A1 (en) Image capturing method, apparatus, and electronic device
EP2273450A2 (en) Target tracking apparatus, image tracking apparatus, methods of controlling operation of same, and digital camera
US20150341546A1 (en) Enhanced image capture
CN105657500B (en) A kind of video playing control method and device
CN109936697B (en) Video shooting target tracking method and device
CN109831704B (en) Video editing method, video editing device, computer equipment and storage medium
CN112532883B (en) Shooting anti-shake method and device, electronic equipment and readable storage medium
KR20060057639A (en) Method and system for controlling a user interface, a corresponding device, and software devices for implementing the method
CN110225243A (en) Filming control method, device, storage medium and mobile terminal based on Folding screen
CN106383577B (en) Scene control implementation method and system for VR video playing device
CN110177202B (en) Wearable device based image shooting correction method and wearable device
CN105812642A (en) Information processing method and electronic device
WO2022001733A1 (en) Method and device for displaying photographing object, storage medium, and terminal
US20230368343A1 (en) Global motion detection-based image parameter control
CN107479727B (en) Mobile terminal shooting method, mobile terminal and device with storage function
CN114727147A (en) Video recording method and device
CN115037879A (en) Shooting method and device thereof
CN113031774A (en) Prompting method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

GR01 Patent grant
GR01 Patent grant