CN105072328A - Video shooting method and device, and terminal - Google Patents

Video shooting method and device, and terminal Download PDF

Info

Publication number
CN105072328A
CN105072328A CN201510420881.7A CN201510420881A CN105072328A CN 105072328 A CN105072328 A CN 105072328A CN 201510420881 A CN201510420881 A CN 201510420881A CN 105072328 A CN105072328 A CN 105072328A
Authority
CN
China
Prior art keywords
terminal
described terminal
video capture
adjustment
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.)
Granted
Application number
CN201510420881.7A
Other languages
Chinese (zh)
Other versions
CN105072328B (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

Abstract

The embodiment of the invention discloses a video shooting method and device, and a terminal. The video shooting method comprises: when a terminal is shooting a video, detecting the shooting state of the terminal, wherein the shooting state comprises a stationary state or a non-stationary state; obtaining the current shooting parameter of the terminal if the shooting state of the terminal changes, wherein the shooting parameter comprises visual angle information and/ or focusing information; according to the current shooting parameter of the terminal, employing a preset adjusting algorithm to adjust the shooting parameter of the terminal; and employing the adjusted shooting parameter to shoot a video. Through adjusting the shooting state of the terminal, the method can adjust the shooting parameter of the terminal if the shooting state changes, so as to automatically start and close an anti-shake mode, and emancipate a user from tedious operations; meanwhile the terminal can maintain a shooting visual angle unchanged, guarantee video shooting visual angle continuity, and improve user experiences.

Description

A kind of video capture method, device and terminal
Technical field
The present invention relates to field of video processing, particularly relate to a kind of video capture method, device and terminal.
Background technology
When adopting the equipment such as mobile terminal, camera to carry out video capture, due to reasons such as hand shakes, the video of shooting also there will be shake.Adopt video stabilization technology in prior art, by the shake of detection equipment, certain compensation is carried out to picture.
Realizing in process of the present invention, inventor finds prior art, and at least there are the following problems: because video stabilization technology is the shake by detection equipment, then the picture of shooting is carried out to the cutting of picture, and then rotation adjustment is carried out to the picture after cutting, therefore, when adopting video stabilization technology, shooting video council is out inconsistent with the visual angle under general mode, takes video visual angle poor continuity out; Meanwhile, because video stabilization needs processor to carry out a large amount of computings, can increase according to forming apparatus power consumption, generate heat, impact uses, and therefore often need the manually opened video stabilization of user, operate more loaded down with trivial details, practicality is not high, and Consumer's Experience is poor.
Summary of the invention
The embodiment of the present invention provides a kind of video capture method, device and terminal, can automatically open stabilization process, can also keep original shooting visual angle simultaneously, not only ensure that the continuity at video capture visual angle, and need not carry out loaded down with trivial details operation.
Embodiment of the present invention first aspect provides a kind of video capture method, comprising:
When terminal is when carrying out video capture, detect the shooting state of described terminal, described shooting state comprises plateau or unstable condition;
If the shooting state of described terminal there occurs change, obtain the acquisition parameters that described terminal is current, described acquisition parameters comprises Viewing-angle information and/or focusing information;
The acquisition parameters current according to described terminal, adopts and presets the acquisition parameters that adjustment algorithm regulates described terminal;
The acquisition parameters after adjustment is adopted to carry out video capture.
Preferably, the shooting state of described terminal changes, and comprising: described terminal changes into unstable condition from plateau; Or described terminal changes into plateau from unstable condition.
Preferably, the shooting state of the described terminal of described detecting, comprising: the Oscillation Amplitude detecting described terminal, and described Oscillation Amplitude comprises: the mean value of described terminal acceleration of each unit interval in preset time period; The shooting state of described terminal is determined according to the Oscillation Amplitude of described terminal.
Preferably, the described Oscillation Amplitude according to described terminal determines the shooting state of described terminal, comprising: judge whether the mean value of the acceleration that described Oscillation Amplitude comprises is greater than acceleration rate threshold; If so, then determine that described terminal is in unstable condition; If not, then determine that described terminal is in plateau.
Preferably, if the shooting state of described terminal does not change, carry out video capture according to the current shooting parameter of described terminal.
Preferably, the described current shooting parameter according to described terminal, adopt and preset the acquisition parameters that adjustment algorithm regulates described terminal, comprising: the Viewing-angle information adjusting described terminal according to the attribute information of described terminal, wherein said attribute information comprises the hardware attributes of described terminal; Focal length is calculated according to the Viewing-angle information before and after described adjustment and current focusing information; The focusing information of described terminal is adjusted according to the result of calculation of described focal length.
Preferably, described according to the Viewing-angle information before and after described adjustment and current focusing information calculating focal length, comprising: the visual angle ratio value calculating adjustment front and back according to the Viewing-angle information before and after described adjustment; According to the visual angle ratio value before and after current focusing information, adjustment and default coefficient of relationship, the algorithm preset is adopted to calculate focal length.
Embodiment of the present invention second aspect provides a kind of video capture device, comprising:
Detecting module, for when terminal is when carrying out video capture, detect the shooting state of described terminal, described shooting state comprises plateau or unstable condition;
Acquisition module, for when the shooting state of described terminal there occurs change, obtains the acquisition parameters that described terminal is current, and described acquisition parameters comprises Viewing-angle information and/or focusing information;
Adjusting module, for the acquisition parameters current according to described terminal, adopts and presets the acquisition parameters that adjustment algorithm regulates described terminal;
Taking module, carries out video capture for adopting the acquisition parameters after adjustment.
Preferably, the shooting state of described terminal changes, and comprising: described terminal changes into unstable condition from plateau; Or described terminal changes into plateau from unstable condition.
Preferably, described detecting module comprises further: detecting subelement, and for detecting the Oscillation Amplitude of described terminal, described Oscillation Amplitude comprises: the mean value of described terminal acceleration of each unit interval in preset time period; Judgment sub-unit, for determining the shooting state of described terminal according to the Oscillation Amplitude of described terminal.
Preferably, described judgment sub-unit comprises further: threshold decision subelement, for judging whether the mean value of the acceleration that described Oscillation Amplitude comprises is greater than acceleration rate threshold;
State determination subelement, when the mean value for the acceleration comprised at described Oscillation Amplitude is greater than acceleration rate threshold, determines that described terminal is in unstable condition; When the mean value of the acceleration that described Oscillation Amplitude comprises is less than acceleration rate threshold, determine that described terminal is in plateau.
Preferably, described taking module also for when the shooting state of described terminal does not change, carries out video capture according to the current shooting parameter of described terminal.
Preferably, described adjusting module comprises further: visual angle adjustment subelement, and for adjusting the Viewing-angle information of described terminal according to the attribute information of described terminal, wherein said attribute information comprises the hardware attributes of described terminal; Computation subunit, for calculating focal length according to the Viewing-angle information before and after described adjustment and current focusing information; Focusing adjustment subelement, for adjusting the focusing information of described terminal according to the result of calculation of described focal length.
Preferably, described computation subunit comprises further: the first computing unit, for calculating the visual angle ratio value before and after adjustment according to the Viewing-angle information before and after described adjustment; Second computing unit, for according to the visual angle ratio value before and after current focusing information, adjustment and default coefficient of relationship, adopts the algorithm preset to calculate focal length.
Third aspect present invention provides a kind of terminal, comprises video capture device described above.
Implement the embodiment of the present invention, there is following beneficial effect:
In the embodiment of the present invention, by detecting the shooting state of terminal, when shooting state there occurs change, the acquisition parameters of adjustment terminal, thus stabilization pattern can be opened and closed automatically, user need not carry out loaded down with trivial details operation, can also keep taking unchanged view angle simultaneously, ensure that the continuity at video capture visual angle, improve the experience of user.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The flow chart of a kind of video capture method first embodiment that Fig. 1 provides for the embodiment of the present invention.
The flow chart of a kind of video capture method second embodiment that Fig. 2 provides for the embodiment of the present invention.
The flow chart of a kind of video capture method the 3rd embodiment that Fig. 3 provides for the embodiment of the present invention.
The flow chart of a kind of video capture method the 4th embodiment that Fig. 4 provides for the embodiment of the present invention.
The structural representation of a kind of video capture device first embodiment that Fig. 5 provides for the embodiment of the present invention.
The structural representation of the embodiment that Fig. 6 is the detecting module shown in Fig. 5.
The structural representation of the embodiment that Fig. 7 is the adjusting module shown in Fig. 5.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The flow chart of a kind of video capture method first embodiment that Fig. 1 provides for the embodiment of the present invention.In the present embodiment, video capture method is applied in terminal, and terminal can be the electronic equipment that mobile phone, panel computer, camera, video camera etc. possess video capture function.This video capture method comprises the following steps S101-S104.
In step S101, when terminal is when carrying out video capture, detect the shooting state of described terminal.
Concrete, terminal receives the video capture request of user, starts video capture.Such as, user can send video capture request by forms such as button, touch or voice commands.When terminal is when carrying out video capture, the shooting state that detecting terminal is current.Described shooting state comprises plateau or unstable condition, and plateau refers to that present terminal is not shaken or jitter amplitude does not affect shooting; Unstable condition refers to that present terminal jitter amplitude considerable influence is taken.
In step s 102, if the shooting state of described terminal there occurs change, the acquisition parameters that described terminal is current is obtained.
Concrete, by the shooting state that detecting terminal is current, if the shooting state detecting terminal there occurs change, then further obtain the current acquisition parameters of terminal.Wherein, shooting state there occurs change and comprises: terminal changes into unstable condition from plateau; Or terminal changes into plateau from unstable condition.In the present embodiment, the shooting state of terminal there occurs change, can be that terminal there occurs shake, now needs to change previously common screening-mode into stabilization pattern; Can also be that terminal recovers normal from dither state, now need stabilization pattern to automatically switch to general mode.Therefore, need first to obtain current acquisition parameters, then acquisition parameters is adjusted, to carry out the switching of screening-mode.Concrete, when shooting state there occurs change, then obtain the current acquisition parameters of terminal, acquisition parameters comprises Viewing-angle information and/or focusing information.Terminal can obtain current acquisition parameters by the data message in reading processor.Wherein, Viewing-angle information comprises current visual angle size, and focusing information comprises current focal length.
In step s 103, the acquisition parameters current according to described terminal, adopts and presets the acquisition parameters that adjustment algorithm regulates described terminal.
Concrete, after obtaining current acquisition parameters, adopt adjustment algorithm to calculate the acquisition parameters needing adjustment.During owing to taking stabilization to take when terminal, for the ease of the follow-up cutting carrying out picture, now contrast common shooting, the visual angle of shooting can change to some extent.In order to keep the visual angle of terminal under different shooting state consistent, now needing to adjust the visual angle of terminal, also needing focusing to adjust accordingly simultaneously.
In step S104, the acquisition parameters after adjustment is adopted to carry out video capture.
Concrete, calculated how after acquisition parameters by algorithm in step s 103, acquisition parameters is adjusted, and adopts the acquisition parameters after adjustment to carry out video capture, thus the shooting state adjustment acquisition parameters according to terminal can be realized.In the present embodiment, when the state of terminal there occurs change, such as not steady from steadily entering, the tupe that can automatically switch to stabilization is taken, and maintains the stable of angle of view.
Above-mentioned known, video capture method in the embodiment of the present invention, by detecting the shooting state of terminal, when shooting state there occurs change, the acquisition parameters of adjustment terminal, thus stabilization pattern can be opened and closed automatically, user need not carry out loaded down with trivial details operation, can also keep taking unchanged view angle simultaneously, ensure that the continuity at video capture visual angle, improve the experience of user.
The flow chart of a kind of video capture method second embodiment that Fig. 2 provides for the embodiment of the present invention.In present embodiment, this video capture method comprises step S201-S205, and wherein, in the present embodiment, S203-S205 is identical with the step of S102-S104 in a upper embodiment, is not repeated herein.
In step s 201, when terminal is when carrying out video capture, the Oscillation Amplitude of described terminal is detected.
Concrete, terminal receives the video capture request of user, starts video capture.Such as, user can send video capture request by forms such as button, touch or voice commands.When terminal is when carrying out video capture, the Oscillation Amplitude that detecting terminal is current.In the present embodiment, Oscillation Amplitude comprises: the mean value of terminal acceleration of each unit interval in preset time period, such as can detect the mean value of terminal acceleration per second in 5 seconds.It will be appreciated by persons skilled in the art that the value in time period and the time interval can also be other values, the embodiment of the present invention is not as limit.
In step S202, determine the shooting state of described terminal according to the Oscillation Amplitude of described terminal.
Concrete, the shooting state of terminal is determined according to the amplitude amplitude of terminal.General, when the Oscillation Amplitude of terminal is larger, determine that the shooting state of described terminal is unstable condition; When the amplitude amplitude of terminal is less or be zero time, determine that the shooting state of described terminal is plateau.In the present embodiment, because Oscillation Amplitude comprises acceleration mean value in step s 201, therefore, shooting state can be determined by acceleration mean value.Especially, by judging whether the mean value of the acceleration that Oscillation Amplitude comprises is greater than acceleration rate threshold and determines shooting state; When acceleration mean value is greater than acceleration rate threshold, determine that described shooting state is unstable condition; When acceleration mean value is less than acceleration rate threshold, determine that described shooting state is plateau.Especially, when acceleration mean value equals acceleration rate threshold just, also can determine that shooting state is now unstable condition, the present embodiment is not as limit.
In step S203, if the shooting state of described terminal there occurs change, obtain the acquisition parameters that described terminal is current.
In step S204, the acquisition parameters current according to described terminal, adopts and presets the acquisition parameters that adjustment algorithm regulates described terminal.
In step S205, the acquisition parameters after adjustment is adopted to carry out video capture.
Above-mentioned known, video capture method in the embodiment of the present invention, the shooting state of terminal is determined by the accekeration detecting terminal, when shooting state there occurs change, the acquisition parameters of adjustment terminal, thus stabilization pattern can be opened and closed automatically, user need not carry out loaded down with trivial details operation, can also keep taking unchanged view angle simultaneously, ensure that the continuity at video capture visual angle, improve the experience of user.
Figure 3 shows that the flow chart of a kind of video capture method the 3rd embodiment that the embodiment of the present invention provides.In the present embodiment, this video capture method comprises step S301-S306, and wherein, in the present embodiment, the step of S301, S303-S304 is identical with the step of S101-S104 in the first embodiment.It will be appreciated by persons skilled in the art that the step of S306 in the present embodiment also can be applied in the first embodiment and the second embodiment.
In step S301, when terminal is when carrying out video capture, detect the shooting state of described terminal.
In step s 302, judge whether the shooting state of described terminal there occurs change.
Concrete, as there occurs change, then enter in step S303; As do not changed, then enter in step S306.
In step S303, if the shooting state of described terminal there occurs change, obtain the acquisition parameters that described terminal is current.
In step s 304, the acquisition parameters current according to described terminal, adopts and presets the acquisition parameters that adjustment algorithm regulates described terminal.
In step S305, the acquisition parameters after adjustment is adopted to carry out video capture.
In step S306, if the shooting state of described terminal does not change, carry out video capture according to the current shooting parameter of described terminal.
Concrete, if the shooting state of terminal does not change, namely terminal maintains plateau, or maintains unstable condition, then do not need to adjust the acquisition parameters of terminal, only needs to carry out video capture according to the acquisition parameters that terminal is current.In the present embodiment, the shooting state of terminal does not change, and can be that terminal is in shake always, therefore maintain unstable condition, now needs to keep stabilization pattern to open, therefore without the need to adjusting acquisition parameters; Also can be that terminal is in very stable state, without the need to opening stabilization pattern, equally without the need to adjusting acquisition parameters always.
Above-mentioned known, the video capture method in the embodiment of the present invention, by detecting the shooting state of terminal, when shooting state is constant, maintains existing acquisition parameters; When shooting state there occurs change, the acquisition parameters of adjustment terminal, thus stabilization pattern can be opened and closed automatically, user need not carry out loaded down with trivial details operation, can also keep taking unchanged view angle simultaneously, ensure that the continuity at video capture visual angle, improve the experience of user.
Figure 4 shows that the flow chart of a kind of video capture method the 4th embodiment that the embodiment of the present invention provides.In the present embodiment, this video capture method comprises step S401-S406, and wherein, in the present embodiment, the step of S401, S402 and S406 is identical with the step of S101, S102 and S104 in the first embodiment.It will be appreciated by persons skilled in the art that the step of S403-405 in the present embodiment also can be applied in the first embodiment, the second embodiment and the 3rd embodiment.
In step S401, when terminal is when carrying out video capture, detect the shooting state of described terminal.
In step S402, if the shooting state of described terminal there occurs change, obtain the acquisition parameters that described terminal is current.
In step S403, adjust the Viewing-angle information of described terminal according to the attribute information of described terminal.
Concrete, after getting the current acquisition parameters of terminal, first the Viewing-angle information of terminal is adjusted.Viewing-angle information comprises current visual angle size, the Viewing-angle information of this terminal when normal photographing and when carrying out the shooting of stabilization pattern can be obtained according to the attribute information of terminal, wherein, attribute information comprises the hardware attributes of this terminal, can be such as some attributes of this terminal camera lens.According to the attribute information adjustment Viewing-angle information of terminal, concrete, when terminal is when changing into unstable condition from plateau, then Viewing-angle information is adjusted to the visual angle under stabilization pattern, visual angle now can become large relative to the visual angle under general mode, is convenient to the follow-up cutting to picture; When terminal is when changing into plateau from unstable condition, then Viewing-angle information is adjusted to the visual angle under general mode.
In step s 404, focal length is calculated according to the Viewing-angle information before and after described adjustment and current focusing information.
Concrete, calculate focal length to be adjusted according to the Viewing-angle information before and after adjustment and focusing information.Because when carrying out stabilization shooting, carrying out cutting exactly, then select picture, so the picture after cutting can diminish relative to original picture, therefore during stabilization shooting, visual angle can become large relative to general mode.Like this in continuous print shooting process, user can see the change at visual angle, experiences poor, therefore, needs to compensate the part of visual angle change.In the present embodiment, adjusted by focusing, thus the shooting visual angle under stabilization pattern is adjusted to the same with under general mode, ensure that the continuity of shooting picture, strengthen the experience of user.Concrete, by the visual angle ratio value under general mode and under stabilization pattern, focusing adjustment can be carried out.If larger relative to general mode one times than stabilization pattern downwards angle of visibility, then can be the half of general mode by Focussing, thus ensure the constant of picture.It will be appreciated by persons skilled in the art that the mode of adjusting focal length can also be other modes, the present embodiment is not as limit.
In other embodiments, following computational methods are adopted to calculate focal length.First, the visual angle ratio value before and after adjustment is calculated according to the Viewing-angle information before and after described adjustment.Because the state variation of terminal can be plateau change into unstable condition, also can be that unstable condition changes into plateau, for convenience of explanation, when terminal is in plateau, the screening-mode adopted is general mode, when terminal is unstable condition, the screening-mode of employing is stabilization pattern.Now, terminal can be obtained at general mode and the Viewing-angle information under stabilization pattern according to the attribute information of terminal, such as, visual angle is in the normal mode C1, the visual angle ratio value that to be C2, C1/C2 be under two kinds of patterns of the visual angle under stabilization pattern, it is equally also the visual angle ratio value before and after adjustment, wherein, visual angle is the attribute information depending on terminal, namely depends on the hardware attributes of terminal.Further, according to the visual angle ratio value before and after current focusing information, adjustment and default coefficient of relationship, the algorithm preset is adopted to calculate focal length.The visual angle ratio value of two kinds of patterns and the relational expression of focal length as follows: L2=L1*k* (C1/C2), wherein, k is preset value, represents the coefficient of relationship of visual angle ratio value and focal length; L2 is the focal length under stabilization pattern, and L1 is the focal length under general mode.When adjusting acquisition parameters, if terminal changes into unstable condition from plateau, now terminal needs to open stabilization pattern, then need acquisition parameters to switch to the parameter under stabilization pattern, namely obtain L2 according to L2=L1*k* (C1/C2); If terminal changes into unstable condition from unstable condition, now terminal needs to close stabilization pattern, then need acquisition parameters to switch to the parameter under general mode, namely obtain L1 according to L1=L2/ [k* (C1/C2)].
In step S405, adjust the focusing information of described terminal according to the result of calculation of described focal length.
Concrete, after step S404 calculates focal length, according to the result of calculation adjustment focusing information of focal length.
In step S406, the acquisition parameters after adjustment is adopted to carry out video capture.
Above-mentioned known, video capture method in the embodiment of the present invention, by detecting the shooting state of terminal, when shooting state there occurs change, according to the attribute of terminal and the acquisition parameters of current acquisition parameters adjustment terminal, the acquisition parameters of adjustment terminal, thus stabilization pattern can be opened and closed automatically, user need not carry out loaded down with trivial details operation, can also keep taking unchanged view angle simultaneously, ensure that the continuity at video capture visual angle, improve the experience of user.
Figure 5 shows that the structural representation of a kind of video capture device first embodiment that the embodiment of the present invention provides.In the present embodiment, video capture device is positioned in terminal, and terminal can be the electronic equipment that mobile phone, panel computer, camera, video camera etc. possess video capture function.This video capture device comprises: detecting module 501, acquisition module 502, adjusting module 503 and taking module 504.
Detecting module 501, for when terminal is when carrying out video capture, detects the shooting state of described terminal.
Concrete, terminal receives the video capture request of user, starts video capture.Such as, user can send video capture request by forms such as button, touch or voice commands.When terminal is when carrying out video capture, detecting module 501 detects the current shooting state of terminal.Described shooting state comprises plateau or unstable condition, and plateau refers to that present terminal is not shaken or jitter amplitude does not affect shooting; Unstable condition refers to that present terminal jitter amplitude considerable influence is taken.
Acquisition module 502, for when the shooting state of described terminal there occurs change, obtains the acquisition parameters that described terminal is current.
Concrete, detecting module 501 is by detecting the current shooting state of terminal, if the shooting state detecting terminal there occurs change, then acquisition module 502 obtains the current acquisition parameters of terminal.Wherein, shooting state there occurs change and comprises: terminal changes into unstable condition from plateau; Or terminal changes into plateau from unstable condition.In the present embodiment, the shooting state of terminal there occurs change, can be that terminal there occurs shake, now needs to change previously common screening-mode into stabilization pattern; Can also be that terminal recovers normal from dither state, now need stabilization pattern to automatically switch to general mode.Therefore, need acquisition module 502 first to obtain current acquisition parameters, then acquisition parameters is adjusted, to carry out the switching of screening-mode.Concrete, when shooting state there occurs change, then acquisition module 502 obtains the current acquisition parameters of terminal, and acquisition parameters comprises Viewing-angle information and/or focusing information.Terminal can obtain current acquisition parameters by the data message in reading processor.Wherein, Viewing-angle information comprises current visual angle size, and focusing information comprises current focal length.
Adjusting module 503, for the acquisition parameters current according to described terminal, adopts and presets the acquisition parameters that adjustment algorithm regulates described terminal.
Concrete, after acquisition module 502 obtains current acquisition parameters, adjusting module 503 adopts adjustment algorithm to calculate the acquisition parameters needing adjustment.During owing to taking stabilization to take when terminal, for the ease of the follow-up cutting carrying out picture, now contrast common shooting, the visual angle of shooting can become and change to some extent.In order to keep the visual angle of terminal under different shooting state consistent, now needing to adjust the visual angle of terminal, also needing focusing to adjust accordingly simultaneously.
Taking module 504 carries out video capture for adopting the acquisition parameters after adjustment.
Concrete, being calculated by algorithm how after acquisition parameters, adjust acquisition parameters, the acquisition parameters after taking module 504 adopts adjustment carries out video capture, thus can realize the shooting state adjustment acquisition parameters according to terminal.In the present embodiment, when the state of terminal there occurs change, such as not steady from steadily entering, the tupe that can automatically switch to stabilization is taken, and maintains the stable of angle of view.
Taking module 504 also for when the shooting state of described terminal does not change, carries out video capture according to the current shooting parameter of described terminal.
Concrete, if the shooting state of terminal does not change, namely terminal maintains plateau, or maintains unstable condition, then do not need to adjust the acquisition parameters of terminal, taking module 504 needs to carry out video capture according to the acquisition parameters that terminal is current.In the present embodiment, the shooting state of terminal does not change, and can be that terminal is in shake always, therefore maintain unstable condition, now needs to keep stabilization pattern to open, therefore without the need to adjusting acquisition parameters; Also can be that terminal is in very stable state, without the need to opening stabilization pattern, equally without the need to adjusting acquisition parameters always.
Above-mentioned known, the video capture device in the embodiment of the present invention, by detecting the shooting state of terminal, when shooting state is constant, maintains existing acquisition parameters; When shooting state there occurs change, the acquisition parameters of adjustment terminal, thus stabilization pattern can be opened and closed automatically, user need not carry out loaded down with trivial details operation, can also keep taking unchanged view angle simultaneously, ensure that the continuity at video capture visual angle, improve the experience of user.
The structural representation of the embodiment that Fig. 6 is the detecting module shown in Fig. 5.Detecting module 501 comprises further: detecting subelement 5011 and judgment sub-unit 5012.
Detecting subelement 5011 is for detecting the Oscillation Amplitude of described terminal.
Concrete, when terminal is when carrying out video capture, the current Oscillation Amplitude of terminal detected by detecting subelement 5011.In the present embodiment, Oscillation Amplitude comprises: the mean value of terminal acceleration of each unit interval in preset time period, such as can detect the mean value of terminal acceleration per second in 5 seconds.It will be appreciated by persons skilled in the art that the value in time period and the time interval can also be other values, the embodiment of the present invention is not as limit.
Judgment sub-unit 5012 is for determining the shooting state of described terminal according to the Oscillation Amplitude of described terminal.
Concrete, judgment sub-unit 5012 determines the shooting state of terminal according to the amplitude amplitude of terminal.General, when the Oscillation Amplitude of terminal is larger, judgment sub-unit 5012 determines that the shooting state of described terminal is unstable condition; When the amplitude amplitude of terminal is less or be zero time, judgment sub-unit 5012 determines that the shooting state of described terminal is plateau.In the present embodiment, because Oscillation Amplitude comprises acceleration mean value, therefore, judgment sub-unit 5012 can determine shooting state by acceleration mean value.
In other embodiments, judgment sub-unit 5012 comprises further: threshold decision subelement and state determination subelement.Wherein, threshold decision subelement is for judging whether the mean value of the acceleration that described Oscillation Amplitude comprises is greater than acceleration rate threshold; State determination subelement is used for when the mean value of the acceleration that described Oscillation Amplitude comprises is greater than acceleration rate threshold, determines that described terminal is in unstable condition; When the mean value of the acceleration that described Oscillation Amplitude comprises is less than acceleration rate threshold, determine that described terminal is in plateau.
Above-mentioned known, in the present embodiment, video capture device can determine the shooting state of terminal by the accekeration detecting terminal.
The structural representation of the embodiment that Fig. 7 is the adjusting module shown in Fig. 5.Adjusting module 503 comprises further: visual angle adjustment subelement 5031, computation subunit 5032 and focusing adjustment subelement 5033.
Visual angle adjustment subelement 5031 is for adjusting the Viewing-angle information of described terminal according to the attribute information of described terminal.
Concrete, after getting the current acquisition parameters of terminal, first visual angle adjustment subelement 5031 adjusts the Viewing-angle information of terminal.Viewing-angle information comprises current visual angle size, adjustment subelement 5031 in visual angle can obtain the Viewing-angle information of this terminal when normal photographing and when carrying out the shooting of stabilization pattern according to the attribute information of terminal, wherein, attribute information comprises the hardware attributes of this terminal, can be such as some attributes of this terminal camera lens.According to the attribute information adjustment Viewing-angle information of terminal, concrete, when terminal is when changing into unstable condition from plateau, then Viewing-angle information is adjusted to the visual angle under stabilization pattern, visual angle now can become large relative to the visual angle under general mode, is convenient to the follow-up cutting to picture; When terminal is when changing into plateau from unstable condition, then Viewing-angle information is adjusted to the visual angle under general mode.
Computation subunit 5032 is for calculating focal length according to the Viewing-angle information before and after described adjustment and current focusing information.
Concrete, computation subunit 5032 calculates focal length to be adjusted according to the Viewing-angle information before and after adjustment and focusing information.Because when carrying out stabilization shooting, carrying out cutting exactly, then select picture, so the picture after cutting can diminish relative to original picture, therefore during stabilization shooting, visual angle can become large relative to general mode.Like this in continuous print shooting process, user can see the change at visual angle, experiences poor, therefore, needs to compensate the part of visual angle change.In the present embodiment, adjusted by focusing, thus the shooting visual angle under stabilization pattern is adjusted to the same with under general mode, ensure that the continuity of shooting picture, strengthen the experience of user.Concrete, by the visual angle ratio value under general mode and under stabilization pattern, focusing adjustment can be carried out.If larger relative to general mode one times than stabilization pattern downwards angle of visibility, then can be the half of general mode by Focussing, thus ensure the constant of picture.It will be appreciated by persons skilled in the art that the mode of adjusting focal length can also be other modes, the present embodiment is not as limit.
In other embodiments, computation subunit 5032 adopts following computational methods to calculate focal length.Computation subunit 5032 comprises the first computing unit and the second computing unit further.First, the first computing unit calculates the visual angle ratio value of adjustment front and back according to the Viewing-angle information before and after described adjustment.Because the state variation of terminal can be plateau change into unstable condition, also can be that unstable condition changes into plateau, for convenience of explanation, when terminal is in plateau, the screening-mode adopted is general mode, when terminal is unstable condition, the screening-mode of employing is stabilization pattern.Now, terminal can be obtained at general mode and the Viewing-angle information under stabilization pattern according to the attribute information of terminal, such as, visual angle is in the normal mode C1, the visual angle ratio value that to be C2, C1/C2 be under two kinds of patterns of the visual angle under stabilization pattern, it is equally also the visual angle ratio value before and after adjustment, wherein, visual angle is the attribute information depending on terminal, namely depends on the hardware attributes of terminal.Second computing unit, for according to the visual angle ratio value before and after current focusing information, adjustment and default coefficient of relationship, adopts the algorithm preset to calculate focal length.The visual angle ratio value of two kinds of patterns and the relational expression of focal length as follows: L2=L1*k* (C1/C2), wherein, k is preset value, represents the coefficient of relationship of visual angle ratio value and focal length; L2 is the focal length under stabilization pattern, and L1 is the focal length under general mode.When adjusting acquisition parameters, if terminal changes into unstable condition from plateau, now terminal needs to open stabilization pattern, then need acquisition parameters to switch to the parameter under stabilization pattern, namely the second computing unit obtains L2 according to L2=L1*k* (C1/C2); If terminal changes into unstable condition from unstable condition, now terminal needs to close stabilization pattern, then need acquisition parameters to switch to the parameter under general mode, namely the second computing unit obtains L1 according to L1=L2/ [k* (C1/C2)].
Focusing adjustment subelement 5033 is for adjusting the focusing information of described terminal according to the result of calculation of described focal length.
Concrete, after computation subunit 5032 calculates focal length, focusing adjustment subelement 5033 is according to the result of calculation adjustment focusing information of focal length.
Above-mentioned known, in the present embodiment, video capture device when shooting state there occurs change, according to the acquisition parameters of the attribute of terminal and current acquisition parameters adjustment terminal.
The embodiment of the invention also discloses a kind of terminal, this terminal comprises video capture device, and the 26S Proteasome Structure and Function of this video capture device see the related description in embodiment in Fig. 5-Fig. 7, can be not repeated herein.Be understandable that, the terminal of the embodiment of the present invention, also can be applied in the video capture method shown in Fig. 1-Fig. 4 any embodiment.
Above-mentioned known, terminal in the embodiment of the present invention, by detecting the shooting state of terminal, when shooting state there occurs change, the acquisition parameters of adjustment terminal, thus stabilization pattern can be opened and closed automatically, user need not carry out loaded down with trivial details operation, can also keep taking unchanged view angle simultaneously, ensure that the continuity at video capture visual angle, improve the experience of user.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (15)

1. a video capture method, is characterized in that, comprising:
When terminal is when carrying out video capture, detect the shooting state of described terminal, described shooting state comprises plateau or unstable condition;
If the shooting state of described terminal there occurs change, obtain the acquisition parameters that described terminal is current, described acquisition parameters comprises Viewing-angle information and/or focusing information;
The acquisition parameters current according to described terminal, adopts and presets the acquisition parameters that adjustment algorithm regulates described terminal;
The acquisition parameters after adjustment is adopted to carry out video capture.
2. video capture method as claimed in claim 1, it is characterized in that, the shooting state of described terminal changes, and comprising:
Described terminal changes into unstable condition from plateau;
Or described terminal changes into plateau from unstable condition.
3. video capture method as claimed in claim 1, it is characterized in that, the shooting state of the described terminal of described detecting, comprising:
Detect the Oscillation Amplitude of described terminal, described Oscillation Amplitude comprises: the mean value of described terminal acceleration of each unit interval in preset time period;
The shooting state of described terminal is determined according to the Oscillation Amplitude of described terminal.
4. video capture method as claimed in claim 3, it is characterized in that, the described Oscillation Amplitude according to described terminal determines the shooting state of described terminal, comprising:
Judge whether the mean value of the acceleration that described Oscillation Amplitude comprises is greater than acceleration rate threshold;
If so, then determine that described terminal is in unstable condition;
If not, then determine that described terminal is in plateau.
5. the video capture method as described in claim 1-4, is characterized in that, also comprise:
If the shooting state of described terminal does not change, carry out video capture according to the current shooting parameter of described terminal.
6. the video capture method as described in any one of claim 1-4, is characterized in that, the described current shooting parameter according to described terminal, adopts and presets the acquisition parameters that adjustment algorithm regulates described terminal, comprising:
Adjust the Viewing-angle information of described terminal according to the attribute information of described terminal, wherein said attribute information comprises the hardware attributes of described terminal;
Focal length is calculated according to the Viewing-angle information before and after described adjustment and current focusing information;
The focusing information of described terminal is adjusted according to the result of calculation of described focal length.
7. video capture method as claimed in claim 6, is characterized in that, described according to the Viewing-angle information before and after described adjustment and current focusing information calculating focal length, comprising:
The visual angle ratio value before and after adjustment is calculated according to the Viewing-angle information before and after described adjustment;
According to the visual angle ratio value before and after current focusing information, adjustment and default coefficient of relationship, the algorithm preset is adopted to calculate focal length.
8. a video capture device, is characterized in that, comprising:
Detecting module, for when terminal is when carrying out video capture, detect the shooting state of described terminal, described shooting state comprises plateau or unstable condition;
Acquisition module, for when the shooting state of described terminal there occurs change, obtains the acquisition parameters that described terminal is current, and described acquisition parameters comprises Viewing-angle information and/or focusing information;
Adjusting module, for the acquisition parameters current according to described terminal, adopts and presets the acquisition parameters that adjustment algorithm regulates described terminal;
Taking module, carries out video capture for adopting the acquisition parameters after adjustment.
9. video capture device as claimed in claim 8, it is characterized in that, the shooting state of described terminal changes, and comprising:
Described terminal changes into unstable condition from plateau;
Or described terminal changes into plateau from unstable condition.
10. video capture device as claimed in claim 8, it is characterized in that, described detecting module comprises further:
Detecting subelement, for detecting the Oscillation Amplitude of described terminal, described Oscillation Amplitude comprises: the mean value of described terminal acceleration of each unit interval in preset time period;
Judgment sub-unit, for determining the shooting state of described terminal according to the Oscillation Amplitude of described terminal.
11. video capture devices as claimed in claim 10, it is characterized in that, described judgment sub-unit comprises further:
Threshold decision subelement, for judging whether the mean value of the acceleration that described Oscillation Amplitude comprises is greater than acceleration rate threshold;
State determination subelement, when the mean value for the acceleration comprised at described Oscillation Amplitude is greater than acceleration rate threshold, determines that described terminal is in unstable condition; When the mean value of the acceleration that described Oscillation Amplitude comprises is less than acceleration rate threshold, determine that described terminal is in plateau.
12. video capture devices as described in claim 8-11, is characterized in that, also comprise:
Described taking module also for when the shooting state of described terminal does not change, carries out video capture according to the current shooting parameter of described terminal.
13. video capture devices as described in any one of claim 8-11, it is characterized in that, described adjusting module comprises further:
Visual angle adjustment subelement, for adjusting the Viewing-angle information of described terminal according to the attribute information of described terminal, wherein said attribute information comprises the hardware attributes of described terminal;
Computation subunit, for calculating focal length according to the Viewing-angle information before and after described adjustment and current focusing information;
Focusing adjustment subelement, for adjusting the focusing information of described terminal according to the result of calculation of described focal length.
14. video capture devices as claimed in claim 13, it is characterized in that, described computation subunit comprises further:
First computing unit, for calculating the visual angle ratio value before and after adjustment according to the Viewing-angle information before and after described adjustment;
Second computing unit, for according to the visual angle ratio value before and after current focusing information, adjustment and default coefficient of relationship, adopts the algorithm preset to calculate focal length.
15. 1 kinds of terminals, is characterized in that, comprise the video capture device described in any one of the claims 8-14.
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 true CN105072328A (en) 2015-11-18
CN105072328B 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)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105578061A (en) * 2016-02-25 2016-05-11 广东欧珀移动通信有限公司 Anti-shaking method and device for photographing, and mobile terminal
CN105979143A (en) * 2015-12-29 2016-09-28 广东中星电子有限公司 Method and device for regulating spherical camera shooting parameters
CN106060411A (en) * 2016-07-29 2016-10-26 努比亚技术有限公司 Focusing device, method and terminal
CN106303218A (en) * 2016-07-29 2017-01-04 努比亚技术有限公司 The device and method of image procossing
CN107197152A (en) * 2017-06-16 2017-09-22 广东欧珀移动通信有限公司 Focusing method, device, computer-readable recording medium and mobile terminal
CN107357616A (en) * 2017-06-30 2017-11-17 维沃移动通信有限公司 A kind of method and mobile terminal for opening stabilization pattern
CN107483825A (en) * 2017-09-08 2017-12-15 上海创功通讯技术有限公司 A kind of method and apparatus of automatic focus adjustable
CN107566719A (en) * 2017-08-24 2018-01-09 广东小天才科技有限公司 Move switching method, device, equipment and the storage medium of stabilization exposal model
CN111314601A (en) * 2020-02-17 2020-06-19 成都市喜爱科技有限公司 Shooting control method and device, electronic equipment and computer-readable storage medium
CN111343381A (en) * 2020-02-28 2020-06-26 Oppo广东移动通信有限公司 Method and device for controlling anti-shake function to be started, electronic equipment and storage medium
CN112422804A (en) * 2019-08-20 2021-02-26 华为技术有限公司 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

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

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105979143A (en) * 2015-12-29 2016-09-28 广东中星电子有限公司 Method and device for regulating spherical camera shooting parameters
CN105578061A (en) * 2016-02-25 2016-05-11 广东欧珀移动通信有限公司 Anti-shaking method and device for photographing, and mobile terminal
CN106060411B (en) * 2016-07-29 2019-08-16 努比亚技术有限公司 A kind of focusing mechanism, method and terminal
CN106060411A (en) * 2016-07-29 2016-10-26 努比亚技术有限公司 Focusing device, method and terminal
CN106303218A (en) * 2016-07-29 2017-01-04 努比亚技术有限公司 The device and method of image procossing
CN107197152A (en) * 2017-06-16 2017-09-22 广东欧珀移动通信有限公司 Focusing method, device, computer-readable recording medium and mobile terminal
US11184518B2 (en) 2017-06-16 2021-11-23 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Focusing method using compensated FV value, storage medium and mobile phone for performing the same
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
CN107357616A (en) * 2017-06-30 2017-11-17 维沃移动通信有限公司 A kind of method and mobile terminal for opening stabilization pattern
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
CN107483825A (en) * 2017-09-08 2017-12-15 上海创功通讯技术有限公司 A kind of method and apparatus of automatic focus adjustable
CN112422804A (en) * 2019-08-20 2021-02-26 华为技术有限公司 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
CN111314601A (en) * 2020-02-17 2020-06-19 成都市喜爱科技有限公司 Shooting control method and device, electronic equipment and computer-readable storage medium
CN111314601B (en) * 2020-02-17 2021-09-28 成都市喜爱科技有限公司 Shooting control method and device, electronic equipment and computer-readable storage medium
CN111343381A (en) * 2020-02-28 2020-06-26 Oppo广东移动通信有限公司 Method and device for controlling anti-shake function to be started, electronic equipment and 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

Also Published As

Publication number Publication date
CN105072328B (en) 2020-03-24

Similar Documents

Publication Publication Date Title
CN105072328A (en) Video shooting method and device, and terminal
US20140361955A1 (en) Means for dynamically regulating the time-out characteristics of a display of an electronic device
WO2012120799A1 (en) Display device and method of switching display direction
CN105007418B (en) A kind of photographic method and mobile terminal
CN103051841A (en) Method and device for controlling exposure time
WO2019129020A1 (en) Automatic focusing method of camera, storage device and mobile terminal
CN105260093A (en) Method and device for intelligently setting screen rotation and mobile terminal
CN108762104A (en) Speaker control method, device, readable storage medium storing program for executing and mobile terminal
CN108427578B (en) Screen control method, computer readable storage medium and intelligent terminal
CN105657500B (en) A kind of video playing control method and device
CN104469121A (en) Information processing method and electronic equipment
CN112135051A (en) Anti-shake control method and device
CN113676655B (en) Shooting method and device, mobile terminal and chip system
CN104853094A (en) Photographing method and device
CN104754219A (en) Terminal
CN104780311A (en) Terminal control method
KR20060057639A (en) Method and system for controlling a user interface, a corresponding device, and software devices for implementing the method
CN105278947A (en) Interface element configuration method and apparatus
CN104679414A (en) Display control method and display control device
CN104754220A (en) Shooting method
CN105528050A (en) Terminal and terminal display control method
CN106383577B (en) Scene control implementation method and system for VR video playing device
CN112532883A (en) Shooting anti-shake method and device, electronic equipment and readable storage medium
CN105847663B (en) A kind of capture apparatus shows the method for adjustment and adjustment device of image
CN104134440A (en) Voice detection method and device used for portable terminal

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