CN104917960B - A kind of method and terminal that control camera to rotate - Google Patents
A kind of method and terminal that control camera to rotate Download PDFInfo
- Publication number
- CN104917960B CN104917960B CN201510257679.7A CN201510257679A CN104917960B CN 104917960 B CN104917960 B CN 104917960B CN 201510257679 A CN201510257679 A CN 201510257679A CN 104917960 B CN104917960 B CN 104917960B
- Authority
- CN
- China
- Prior art keywords
- image
- rotatable camera
- brightness value
- photographed
- ambient brightness
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000013507 mapping Methods 0.000 claims description 42
- 230000001276 controlling effect Effects 0.000 description 13
- 230000002452 interceptive effect Effects 0.000 description 8
- 230000000694 effects Effects 0.000 description 7
- 230000007613 environmental effect Effects 0.000 description 4
- 239000000284 extract Substances 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000000151 deposition Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 230000006386 memory function Effects 0.000 description 2
- 238000004091 panning Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/64—Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/617—Upgrading or updating of programs or applications for camera control
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Studio Devices (AREA)
Abstract
The embodiment of the invention discloses a kind of method and terminal that control camera to rotate.Method therein includes:During the rotatable camera of terminal is rotated, the ambient brightness value for the image that the rotatable camera is photographed is obtained;The rotary speed of the rotatable camera is adjusted according to the ambient brightness value;The rotatable camera is controlled to be rotated according to the rotary speed after adjustment.The embodiment of the present invention also accordingly discloses a kind of terminal.Using the present invention, the rotary speed of camera can be accurately controlled according to ambient brightness value, the efficiency of shooting is improved.
Description
Technical field
The present invention relates to intelligent terminal technical field, more particularly to a kind of method and terminal that control camera to rotate.
Background technology
With mobile terminal widely use and terminal taking technology lifting, people's more and more continually using terminal
Come shooting image or video as filming apparatus.The camera lens of traditional camera is normally held in terminal, and the personnel of shooting can only
Reference object is captured by the position of mobile terminal, shooting efficiency is not high, it is difficult to which adapting to different shooting environmentals will
Ask, and usually require that the preposition function that could be realized common shooting with rear camera and autodyne, therefore, rotation are installed in the terminal
Turn camera to become more and more popular because it can neatly be rotated in the terminal.At present, shot using rotating camera
The scheme of control is mainly:According to different shooting environmental needs, user is controlled by the shell of manual rotation cam lens
Camera processed is shot, and the shooting efficiency of this manual control mode is relatively low, and the speed in camera rotary course is difficult to reality
Now more accurately adjust, influence shooting effect.
The content of the invention
The embodiment of the present invention provides a kind of method and terminal for controlling camera to rotate, can be accurate according to ambient brightness value
The rotary speed of camera is controlled, the efficiency shot is improved.
The embodiments of the invention provide a kind of method for controlling camera rotation, including:
During the rotatable camera of terminal is rotated, the image that the rotatable camera is photographed is obtained
Ambient brightness value;
The ambient brightness value of the image photographed according to the rotatable camera, adjusts the rotation of the rotatable camera
Rotary speed;
The rotatable camera is controlled to be rotated according to the rotary speed after adjustment.
Correspondingly, the embodiment of the present invention additionally provides a kind of terminal, including:
Acquiring unit, during being rotated in the rotatable camera of terminal, obtains the rotatable shooting
The ambient brightness value for the image that head is photographed;
Adjustment unit, for the ambient brightness value of the image photographed according to the rotatable camera, adjustment is described can
The rotary speed of rotating camera;
Rotation control unit, for controlling the rotatable camera to be rotated according to the rotary speed after adjustment.
Using the embodiment of the present invention, during being rotated by the rotatable camera of terminal, obtain rotatable
The ambient brightness value for the image that camera is photographed, then adjusts the rotation speed of rotatable camera according to the ambient brightness value
Degree, and control rotatable camera to be rotated according to the rotary speed after adjustment, due to being rotated according to ambient brightness value
The matching of speed, thus controllable camera so that more accurately speed carries out rotary taking, improve shooting efficiency, simultaneously
Shooting effect can effectively be lifted.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, for ability
For the those of ordinary skill of domain, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached
Figure.
Fig. 1 is a kind of schematic flow sheet of method for controlling camera to rotate provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the method for another control camera rotation provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of terminal provided in an embodiment of the present invention;
Fig. 4 is the structural representation of the acquiring unit of terminal provided in an embodiment of the present invention;
Fig. 5 is the structural representation of the adjustment unit of terminal provided in an embodiment of the present invention;
Fig. 6 is the structural representation of another terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
The method and terminal of control camera rotation provided in an embodiment of the present invention can apply to be entered according to rotary speed
The scene that row is shot, for example:During the rotatable camera of terminal is rotated, obtain what rotatable camera was photographed
The ambient brightness value of image, then adjusts the rotary speed of rotatable camera according to the ambient brightness value, and controls rotatable
Camera is rotated according to the rotary speed after adjustment, due to carrying out the matching of rotary speed according to ambient brightness value, therefore
Controllable camera so that more accurately speed carries out rotary taking, shooting efficiency is improved, while shooting can be lifted effectively
Effect.
In embodiments of the present invention, terminal can include but is not limited to:Notebook computer, mobile phone, tablet personal computer, intelligence can
Wearable device etc..The system of terminal refers to the operating system of terminal, can include but is not limited to:Android system, Saipan system
System, Windows systems, IOS (Mobile operating system of Apple Inc.'s exploitation) system etc..It should be noted that Android is whole
End refers to the terminal of android system, and Saipan terminal refers to terminal of Saipan system, etc..Above-mentioned terminal is only citing, rather than thoroughly
Lift, including but not limited to above-mentioned terminal.
Below in conjunction with accompanying drawing 1- accompanying drawings 2, the method to control camera rotation provided in an embodiment of the present invention is carried out in detail
It is thin to introduce.
Fig. 1 is refer to, is a kind of schematic flow sheet of method for controlling camera to rotate provided in an embodiment of the present invention, should
Method comprises the following steps S101-S103.
S101, during the rotatable camera of terminal is rotated, obtains the rotatable camera and photographs
Image ambient brightness value.
In the specific implementation, the rotatable camera involved by the embodiment of the present invention is to be external in the terminal or be attached to
The camera of the terminal, the rotatable camera can not only possess higher pixel, can also realize big angle rotary,
Such as rotation in the range of 206 degree or 360 degree, the embodiment of the present invention is not limited, rotatable camera can for front camera,
Rear camera, by the rotatable camera and binocular camera of USB interface or wifi technical controllings in the present embodiment,
Terminal is by taking the smart mobile phone with rotating camera as an example, but the present invention is not limited to above-mentioned, the terminal with rotating camera
Within protection scope of the present invention.
During the rotatable camera of terminal is rotated, the ring for the image that rotatable camera is photographed is obtained
The ambient brightness value for the image that border brightness value, wherein rotatable camera are photographed is can photograph rotating camera one
After two field picture, the brightness value of the image is got by terminal handler, in another embodiment, rotatable camera is photographed
The ambient brightness value of image be, by installing the environmental sensor with brightness detection function in the terminal, to be passed by the environment
Sensor detects the corresponding ambient brightness value of image that current rotatable camera is photographed, and by the image and ambient brightness value
Preserved simultaneously after being matched.Wherein, the mean flow rate for the image that ambient brightness value can photograph for rotatable camera,
The mean flow rate of the predeterminable area for the image that can be photographed for rotatable camera.
S102, the ambient brightness value of the image photographed according to the rotatable camera adjusts the rotatable shooting
The rotary speed of head.
In the specific implementation, the ambient brightness value adjustment rotatable camera of the image photographed according to rotatable camera
The mapping relations between ambient brightness value and the rotary speed of rotatable camera can be set in rotary speed, terminal, according to upper
The ambient brightness value for the image that the mapping relations for stating setting and the rotatable camera got are shot, obtains rotatable camera
Rotary speed, for example, when the ambient brightness value for the image that the rotatable camera that gets is shot is A1, by terminal
Mapping relations between the ambient brightness value of setting and the rotary speed of rotatable camera are judged, get rotatable take the photograph
As the rotary speed of head is B1, in the present embodiment, can by the ambient brightness value that photographs current rotatable camera with
The ambient brightness value that rotatable camera before is photographed is compared, and judges whether to need to adjust current rotary speed
It is whole.
S103, controls the rotatable camera to be rotated according to the rotary speed after adjustment.
In the specific implementation, control rotatable camera is rotated according to the rotary speed after adjustment, in the present embodiment,
The ambient brightness photographed by the ambient brightness value for photographing current rotatable camera with rotatable camera before
Value is compared, the result after such as comparing be without current rotary speed is adjusted when, then adjust after rotary speed with
Current rotary speed is consistent, and control rotatable camera is at the uniform velocity rotated by current rotary speed;Result after such as comparing is
When need to be adjusted to current rotary speed, then current rotary speed is adjusted, and after controlling rotatable camera by adjustment
Rotary speed carry out rotation process.
Using the embodiment of the present invention, during being rotated by the rotatable camera of terminal, obtain rotatable
The ambient brightness value for the image that camera is photographed, then adjusts the rotation speed of rotatable camera according to the ambient brightness value
Degree, and control rotatable camera to be rotated according to the rotary speed after adjustment, due to being rotated according to ambient brightness value
The matching of speed, thus controllable camera so that more accurately speed carries out rotary taking, improve shooting efficiency, simultaneously
Shooting effect can effectively be lifted.
Fig. 2 is refer to, is the schematic flow sheet of the method for another control camera rotation provided in an embodiment of the present invention,
This method comprises the following steps S201-S207.
S201, sets the mapping relations between ambient brightness value and the rotary speed of rotatable camera.
In the specific implementation, the rotatable camera involved by the embodiment of the present invention is to be external in the terminal or be attached to
The camera of the terminal, the rotatable camera can not only possess higher pixel, can also realize big angle rotary,
Such as rotation in the range of 206 degree or 360 degree, the embodiment of the present invention is not limited, rotatable camera can for front camera,
Rear camera, by the rotatable camera and binocular camera of USB interface or wifi technical controllings in the present embodiment,
Terminal is by taking the smart mobile phone with rotating camera as an example, but the present invention is not limited to above-mentioned, the terminal with rotating camera
Within protection scope of the present invention.
In the present embodiment, the mapping relations between ambient brightness value and the rotary speed of rotatable camera are set, its
In, the mapping relations can carry out Initialize installation when terminal is dispatched from the factory, and be stored in the memory function module of terminal, work as user
When needing to use the mapping relations, directly set by interactive interface selection acquiescence mapping relations, for example, by ring when terminal is dispatched from the factory
In mapping relations between border brightness value and the rotary speed of rotatable camera are stored in terminal system by mapping table
In depositing.In another embodiment, the acquisition of the mapping relations includes the interactive interface by terminal, and it is bright that user is manually entered environment
Mapping relations between angle value and the rotary speed of rotatable camera, are stored in the internal memory in terminal system.Again
In one embodiment, the acquisition of the mapping relations can be obtained by way of network share, and terminal is carried out into network connection,
The mapping relations searched between the ambient brightness value and the rotary speed of rotatable camera, will be certainly by way of network share
The mapping relations list of definition or document are uploaded to network share to other people, or download by way of network share mapping relations
List or document.
S202, during the rotatable camera of terminal is rotated, is photographed when the rotatable camera
When image is coloured image, the coloured image is converted into gray level image.
In the specific implementation, during the rotatable camera of terminal is rotated, when rotatable camera is photographed
Image be coloured image when, coloured image is converted into gray level image, wherein, after coloured image is converted into gray level image,
Gray level image is luminance picture, and mean flow rate is calculated so as to follow-up.Further, when the image that rotatable camera is photographed
During for coloured image, the luminance component image of coloured image can be directly extracted, for example, when the form of coloured image is RGB
During RGB (Red, Green, Blue) image, RGB image can be converted into lightness/colourity YUV (Luminance,
Chrominance) image, extracts Y component map picture, and mean flow rate is calculated by Y component map picture.Further, taken the photograph when rotatable
In the case that the image photographed as head is gray level image, mean flow rate can be calculated directly against gray level image.
S203, calculates the average bright of the mean flow rate of the gray level image or the predeterminable area of the gray level image
Degree, the mean flow rate of the mean flow rate of the gray level image or the predeterminable area of the gray level image is bright as environment
Angle value.
In the specific implementation, the mean flow rate of the mean flow rate of gray level image or the predeterminable area of gray level image is calculated, will
The mean flow rate of gray level image or the mean flow rate of the predeterminable area of gray level image are used as ambient brightness value.Wherein, gray-scale map
The a certain subregion Y for the image that the predeterminable area of picture can photograph for rotatable camera.
The mean flow rate of gray level image is calculated, all pixels point of gray level image can be averaged, obtained average
The as mean flow rate of gray level image;The mean flow rate of the predeterminable area of gray level image is calculated, can be by the preset areas of gray level image
The all pixels point in domain is averaged, and obtained average is the mean flow rate of the predeterminable area of gray level image, further,
The mean flow rate that calculating is obtained is used as ambient brightness value.
, can be direct when the image that rotatable camera is photographed is coloured image as a kind of possible embodiment
The luminance component image of coloured image is extracted, for example, when the form of coloured image is RGB image, RGB image can be converted into
YUV image, extract Y component map picture, by Y component map picture calculate mean flow rate, calculate luminance component image mean flow rate or
The mean flow rate of the predeterminable area of person's luminance component image, by the mean flow rate of luminance component image or luminance component image
The mean flow rate of predeterminable area is used as ambient brightness value.Wherein, the mean flow rate of luminance component image is calculated, can be by luminance component
The all pixels point of image is averaged, and obtained average is the mean flow rate of luminance component image;Calculate luminance component
The mean flow rate of the predeterminable area of image, all pixels point of the predeterminable area of luminance component image can be averaged, obtained
To average be luminance component image predeterminable area mean flow rate, further, obtained mean flow rate will be calculated and made
For ambient brightness value.
S204, judging can described in the ambient brightness value and its former frame for the image that presently described rotatable camera is photographed
Whether the difference between the ambient brightness value for the image that rotating camera is photographed is more than or equal to predetermined threshold value.
In the specific implementation, judging that the ambient brightness value for the image that current rotatable camera is photographed and its former frame can revolve
Turn whether the difference between the ambient brightness value for the image that camera is photographed is more than or equal to predetermined threshold value, in this way, perform step
Rapid S205, if not being, performs step S206.
S205, the ambient brightness value for the image that rotatable camera is photographed described in its former frame with that can revolve as is now described
Turn difference between the ambient brightness value for the image that camera is photographed and be more than or equal to predetermined threshold value, rotatable taken the photograph according to described
Mapping relations between the ambient brightness value of image and the rotary speed of rotatable camera that are photographed as head, renewal is described can
The rotary speed of rotating camera.
In the specific implementation, the ambient brightness value and its former frame of such as image that current rotatable camera is photographed are rotatable
Difference between the ambient brightness value for the image that camera is photographed is more than or equal to predetermined threshold value, is clapped according to rotatable camera
Mapping relations between the ambient brightness value for the image taken the photograph and the rotary speed of rotatable camera update rotatable camera
Rotary speed, wherein, predetermined threshold value is configured or selected default value by the interactive interface of terminal.In the present embodiment,
During the rotatable camera of terminal is rotated, the rotatable camera of terminal can also be clapped according to intervals
Image is taken the photograph, when getting a two field picture first, in being recorded according to the system of terminal, the ambient brightness value phase with the image is provided
The rotary speed of matching, the ambient brightness value of the image photographed afterwards by rotatable camera will be rotatable with its former frame
The ambient brightness value for the image that camera is photographed is contrasted.In another embodiment, enter in the rotatable camera of terminal
Row rotation during, terminal can by selecting panning mode to carry out pan-shot, by selection speed be updated,
To obtain the panoramic picture of more high-quality.In another embodiment, during the rotatable camera of terminal is rotated,
Terminal can be by selecting RECORD mode, when the ambient brightness value of the image photographed according to rotatable camera is taken the photograph with rotatable
Mapping relations between the rotary speed of picture head update the rotary speed of rotatable camera, and to obtain more, clearly shooting is interior
Hold.
S206, the ambient brightness value for the image that rotatable camera is photographed described in its former frame with that can revolve as is now described
The difference turned between the ambient brightness value for the image that camera is photographed is less than the predetermined threshold value, keeps the rotatable shooting
The present speed of head.
In the specific implementation, the ambient brightness value and its former frame of such as image that current rotatable camera is photographed are rotatable
Difference between the ambient brightness value for the image that camera is photographed is less than predetermined threshold value, keeps the current speed of rotatable camera
Degree.Wherein, predetermined threshold value is configured or selected default value by the interactive interface of terminal.In the present embodiment, if currently
The environment for the image that the ambient brightness value for the image that rotatable camera is photographed is photographed with its former frame rotatable camera
Difference between brightness value is less than predetermined threshold value, illustrate the image that current rotatable camera is photographed ambient brightness value and its
The difference of the ambient brightness value for the image that former frame rotatable camera is photographed is smaller, such as in panorama photographing mode or shooting mould
In formula, in order to keep the fluency of image, the present speed of rotatable camera can be kept.
S207, controls the rotatable camera to be rotated according to the rotary speed after adjustment.
In the specific implementation, control rotatable camera is rotated according to the rotary speed after adjustment, in the present embodiment,
The ambient brightness photographed by the ambient brightness value for photographing current rotatable camera with rotatable camera before
Value is compared, the result after such as comparing be without current rotary speed is adjusted when, then adjust after rotary speed with
Current rotary speed is consistent, and control rotatable camera is at the uniform velocity rotated by current rotary speed;Result after such as comparing is
When need to be adjusted to current rotary speed, then current rotary speed is adjusted, and after controlling rotatable camera by adjustment
Rotary speed carry out rotation process.
, can be by setting reflecting between ambient brightness value and the rotary speed of rotatable camera using the embodiment of the present invention
Relation is penetrated, during the rotatable camera of terminal is rotated, when the image that rotatable camera is photographed is colour
During image, the coloured image is converted into gray level image, the mean flow rate of gray level image or presetting for gray level image is calculated
The mean flow rate in region, and as ambient brightness value, by the environment for the image for photographing current rotatable camera
Difference between the ambient brightness value for the image that brightness value and its former frame rotatable camera are photographed is compared, to adjust
The rotary speed of rotatable camera, realize more accurately speed carry out rotary taking, finally control rotatable camera
Rotated according to the rotary speed after adjustment, improve image quality, improve the effect of shooting.
Below in conjunction with Fig. 3-Fig. 5, terminal provided in an embodiment of the present invention is described in detail.It should be noted that
A kind of terminal shown in Fig. 3-Fig. 5, the method for performing Fig. 1 of the present invention and embodiment illustrated in fig. 2, for convenience of description, only
The part related to the embodiment of the present invention is shown, particular technique details is not disclosed, refer to shown in Fig. 1 of the present invention and Fig. 2
Embodiment.
Fig. 3 is refer to, is a kind of structural representation of terminal provided in an embodiment of the present invention, the terminal includes such as placing an order
Member:Acquiring unit 11, adjustment unit 12 and rotation control unit 13.
Acquiring unit 11, during being rotated in the rotatable camera of terminal, obtains described rotatable take the photograph
As the ambient brightness value for the image that head is photographed.
In the specific implementation, the rotatable camera involved by the embodiment of the present invention is to be external in the terminal or be attached to
The camera of the terminal, the rotatable camera can not only possess higher pixel, can also realize big angle rotary,
Such as rotation in the range of 206 degree or 360 degree, the embodiment of the present invention is not limited, rotatable camera can for front camera,
Rear camera, by the rotatable camera and binocular camera of USB interface or wifi technical controllings in the present embodiment,
Terminal is by taking the smart mobile phone with rotating camera as an example, but the present invention is not limited to above-mentioned, the terminal with rotating camera
Within protection scope of the present invention.
During the rotatable camera of terminal is rotated, the ring for the image that rotatable camera is photographed is obtained
The ambient brightness value for the image that border brightness value, wherein rotatable camera are photographed is can photograph rotating camera one
After two field picture, the brightness value of the image is got by terminal handler, in another embodiment, rotatable camera is photographed
The ambient brightness value of image be, by installing the environmental sensor with brightness detection function in the terminal, to be passed by the environment
Sensor detects the corresponding ambient brightness value of image that current rotatable camera is photographed, and by the image and ambient brightness value
Preserved simultaneously after being matched.Wherein, the mean flow rate for the image that ambient brightness value can photograph for rotatable camera,
The mean flow rate of the predeterminable area for the image that can be photographed for rotatable camera.
Specifically, being the structural representation of the acquiring unit the embodiments of the invention provide terminal please with reference to Fig. 4.
As shown in figure 4, the acquiring unit 11 can include:Converting unit 111 and computing unit 112.
Converting unit 111, for when the image that the rotatable camera is photographed is coloured image, by the colour
Image is converted to gray level image.
In the specific implementation, during the rotatable camera of terminal is rotated, when rotatable camera is photographed
Image be coloured image when, coloured image is converted into gray level image, wherein, after coloured image is converted into gray level image,
Gray level image is luminance picture, and mean flow rate is calculated so as to follow-up.Further, when the image that rotatable camera is photographed
During for coloured image, the luminance component image of coloured image can be directly extracted, for example, when the form of coloured image is RGB image
When, RGB image can be converted into YUV image, Y component map picture is extracted, mean flow rate is calculated by Y component map picture.Further,
In the case that the image that rotatable camera is photographed is gray level image, mean flow rate can be calculated directly against gray level image.
Computing unit 112, presets for calculating the mean flow rate of the gray level image or the described of the gray level image
The mean flow rate in region, by the average bright of the predeterminable area of the mean flow rate of the gray level image or the gray level image
Degree is used as ambient brightness value.
In the specific implementation, the mean flow rate of the mean flow rate of gray level image or the predeterminable area of gray level image is calculated, will
The mean flow rate of gray level image or the mean flow rate of the predeterminable area of gray level image are used as ambient brightness value.Wherein, gray-scale map
The a certain subregion Y for the image that the predeterminable area of picture can photograph for rotatable camera.
The mean flow rate of gray level image is calculated, all pixels point of gray level image can be averaged, obtained average
The as mean flow rate of gray level image;The mean flow rate of the predeterminable area of gray level image is calculated, can be by the preset areas of gray level image
The all pixels point in domain is averaged, and obtained average is the mean flow rate of the predeterminable area of gray level image, further,
The mean flow rate that calculating is obtained is used as ambient brightness value.
, can be direct when the image that rotatable camera is photographed is coloured image as a kind of possible embodiment
The luminance component image of coloured image is extracted, for example, when the form of coloured image is RGB image, RGB image can be converted into
YUV image, extract Y component map picture, by Y component map picture calculate mean flow rate, calculate luminance component image mean flow rate or
The mean flow rate of the predeterminable area of person's luminance component image, by the mean flow rate of luminance component image or luminance component image
The mean flow rate of predeterminable area is used as ambient brightness value.Wherein, the mean flow rate of luminance component image is calculated, can be by luminance component
The all pixels point of image is averaged, and obtained average is the mean flow rate of luminance component image;Calculate luminance component
The mean flow rate of the predeterminable area of image, all pixels point of the predeterminable area of luminance component image can be averaged, obtained
To average be luminance component image predeterminable area mean flow rate, further, obtained mean flow rate will be calculated and made
For ambient brightness value.
Adjustment unit 12, for the ambient brightness value of the image photographed according to the rotatable camera, adjustment is described
The rotary speed of rotatable camera.
In the specific implementation, the ambient brightness value adjustment rotatable camera of the image photographed according to rotatable camera
The mapping relations between ambient brightness value and the rotary speed of rotatable camera can be set in rotary speed, terminal, according to upper
The ambient brightness value for the image that the mapping relations for stating setting and the rotatable camera got are shot, obtains rotatable camera
Rotary speed, for example, when the ambient brightness value for the image that the rotatable camera that gets is shot is A1, by terminal
Mapping relations between the ambient brightness value of setting and the rotary speed of rotatable camera are judged, get rotatable take the photograph
As the rotary speed of head is B1, in the present embodiment, can by the ambient brightness value that photographs current rotatable camera with
The ambient brightness value that rotatable camera before is photographed is compared, and judges whether to need to adjust current rotary speed
It is whole.
Specifically, being the structural representation of the adjustment unit the embodiments of the invention provide terminal please with reference to Fig. 5.
As shown in figure 5, the adjustment unit 12 can include:Rotary speed updates subelement 121 and rotary speed keeps subelement
122。
Rotary speed updates subelement 121, and the environment of the image photographed for rotatable camera as is now described is bright
Difference between the ambient brightness value for the image that rotatable camera described in angle value and its former frame is photographed is more than or equal to pre-
If threshold value, the ambient brightness value of the image photographed according to the rotatable camera and the rotary speed of rotatable camera it
Between mapping relations, update the rotary speed of the rotatable camera.
In the specific implementation, the ambient brightness value and its former frame of such as image that current rotatable camera is photographed are rotatable
Difference between the ambient brightness value for the image that camera is photographed is more than or equal to predetermined threshold value, is clapped according to rotatable camera
Mapping relations between the ambient brightness value for the image taken the photograph and the rotary speed of rotatable camera update rotatable camera
Rotary speed, wherein, predetermined threshold value is configured or selected default value by the interactive interface of terminal.In the present embodiment,
During the rotatable camera of terminal is rotated, the rotatable camera of terminal can also be clapped according to intervals
Image is taken the photograph, when getting a two field picture first, in being recorded according to the system of terminal, the ambient brightness value phase with the image is provided
The rotary speed of matching, the ambient brightness value of the image photographed afterwards by rotatable camera will be rotatable with its former frame
The ambient brightness value for the image that camera is photographed is contrasted.In another embodiment, enter in the rotatable camera of terminal
Row rotation during, terminal can by selecting panning mode to carry out pan-shot, by selection speed be updated,
To obtain the panoramic picture of more high-quality.In another embodiment, during the rotatable camera of terminal is rotated,
Terminal can be by selecting RECORD mode, when the ambient brightness value of the image photographed according to rotatable camera is taken the photograph with rotatable
Mapping relations between the rotary speed of picture head update the rotary speed of rotatable camera, and to obtain more, clearly shooting is interior
Hold.
Rotary speed keeps subelement 122, and the environment of the image photographed for rotatable camera as is now described is bright
Difference between the ambient brightness value for the image that rotatable camera described in angle value and its former frame is photographed is less than described default
Threshold value, keeps the present speed of the rotatable camera.
In the specific implementation, the ambient brightness value and its former frame of such as image that current rotatable camera is photographed are rotatable
Difference between the ambient brightness value for the image that camera is photographed is less than predetermined threshold value, keeps the current speed of rotatable camera
Degree.Wherein, predetermined threshold value is configured or selected default value by the interactive interface of terminal.In the present embodiment, if currently
The environment for the image that the ambient brightness value for the image that rotatable camera is photographed is photographed with its former frame rotatable camera
Difference between brightness value is less than predetermined threshold value, illustrate the image that current rotatable camera is photographed ambient brightness value and its
The difference of the ambient brightness value for the image that former frame rotatable camera is photographed is smaller, such as in panorama photographing mode or shooting mould
In formula, in order to keep the fluency of image, the present speed of rotatable camera can be kept.
Rotation control unit 13, for controlling the rotatable camera to be rotated according to the rotary speed after adjustment
In the specific implementation, control rotatable camera is rotated according to the rotary speed after adjustment, in the present embodiment,
The ambient brightness photographed by the ambient brightness value for photographing current rotatable camera with rotatable camera before
Value is compared, the result after such as comparing be without current rotary speed is adjusted when, then adjust after rotary speed with
Current rotary speed is consistent, and control rotatable camera is at the uniform velocity rotated by current rotary speed;Result after such as comparing is
When need to be adjusted to current rotary speed, then current rotary speed is adjusted, and after controlling rotatable camera by adjustment
Rotary speed carry out rotation process.
, can be by setting reflecting between ambient brightness value and the rotary speed of rotatable camera using the embodiment of the present invention
Relation is penetrated, during the rotatable camera of terminal is rotated, when the image that rotatable camera is photographed is colour
During image, the coloured image is converted into gray level image, the mean flow rate of gray level image or presetting for gray level image is calculated
The mean flow rate in region, and as ambient brightness value, by the environment for the image for photographing current rotatable camera
Difference between the ambient brightness value for the image that brightness value and its former frame rotatable camera are photographed is compared, to adjust
The rotary speed of rotatable camera, realize more accurately speed carry out rotary taking, finally control rotatable camera
Rotated according to the rotary speed after adjustment, improve image quality, improve the effect of shooting.
Fig. 6 is refer to, is the structural representation of another terminal provided in an embodiment of the present invention.As shown in fig. 6, the end
End includes acquiring unit 11, adjustment unit 12, rotation control unit 13 and setting unit 14.Wherein, acquiring unit 11, adjustment are single
Member 12 and rotation control unit 13 have been described in detail in Fig. 3 explanation, are not being repeated herein.
Setting unit 14, for setting the mapping relations between ambient brightness value and the rotary speed of rotatable camera.
In the specific implementation, the rotatable camera involved by the embodiment of the present invention is to be external in the terminal or be attached to
The camera of the terminal, the rotatable camera can not only possess higher pixel, can also realize big angle rotary,
Such as rotation in the range of 206 degree or 360 degree, the embodiment of the present invention is not limited, rotatable camera can for front camera,
Rear camera, by the rotatable camera and binocular camera of USB interface or wifi technical controllings in the present embodiment,
Terminal is by taking the smart mobile phone with rotating camera as an example, but the present invention is not limited to above-mentioned, the terminal with rotating camera
Within protection scope of the present invention.
In the present embodiment, the mapping relations between ambient brightness value and the rotary speed of rotatable camera are set, its
In, the mapping relations can carry out Initialize installation when terminal is dispatched from the factory, and be stored in the memory function module of terminal, work as user
When needing to use the mapping relations, directly set by interactive interface selection acquiescence mapping relations, for example, by ring when terminal is dispatched from the factory
In mapping relations between border brightness value and the rotary speed of rotatable camera are stored in terminal system by mapping table
In depositing.In another embodiment, the acquisition of the mapping relations includes the interactive interface by terminal, and it is bright that user is manually entered environment
Mapping relations between angle value and the rotary speed of rotatable camera, are stored in the internal memory in terminal system.Again
In one embodiment, the acquisition of the mapping relations can be obtained by way of network share, and terminal is carried out into network connection,
The mapping relations searched between the ambient brightness value and the rotary speed of rotatable camera, will be certainly by way of network share
The mapping relations list of definition or document are uploaded to network share to other people, or download by way of network share mapping relations
List or document.
, can be by setting reflecting between ambient brightness value and the rotary speed of rotatable camera using the embodiment of the present invention
Relation is penetrated, during the rotatable camera of terminal is rotated, when the image that rotatable camera is photographed is colour
During image, the coloured image is converted into gray level image, the mean flow rate of gray level image or presetting for gray level image is calculated
The mean flow rate in region, and as ambient brightness value, by the environment for the image for photographing current rotatable camera
Difference between the ambient brightness value for the image that brightness value and its former frame rotatable camera are photographed is compared, to adjust
The rotary speed of rotatable camera, realize more accurately speed carry out rotary taking, finally control rotatable camera
Rotated according to the rotary speed after adjustment, improve image quality, improve the effect of shooting.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly
Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.
Claims (6)
1. a kind of method for controlling camera rotation, it is characterised in that including:
Mapping relations between ambient brightness value and the rotary speed of rotatable camera are set;
During the rotatable camera of terminal is rotated, the ring for the image that the rotatable camera is photographed is obtained
Border brightness value;
The ambient brightness value of the image photographed according to the rotatable camera, adjusts the rotation speed of the rotatable camera
Degree;
The rotatable camera is controlled to be rotated according to the rotary speed after adjustment;
Wherein, the ambient brightness value of the image photographed according to the rotatable camera, adjusts the rotatable shooting
The rotary speed of head, including:
The ambient brightness value for the image that rotatable camera is photographed and rotatable camera described in its former frame as is now described
Difference between the ambient brightness value of the image photographed is more than or equal to predetermined threshold value, is shot according to the rotatable camera
Mapping relations between the ambient brightness value of the image arrived and the rotary speed of rotatable camera, update the rotatable shooting
The rotary speed of head;
The ambient brightness value for the image that rotatable camera is photographed and rotatable camera described in its former frame as is now described
Difference between the ambient brightness value of the image photographed is less than the predetermined threshold value, keeps the current of the rotatable camera
Speed.
2. the method as described in claim 1, it is characterised in that the ambient brightness for the image that the rotatable camera is photographed
It is worth and is:The image that the mean flow rate for the image that the rotatable camera is photographed or the rotatable camera are photographed
The mean flow rate of predeterminable area.
3. method as claimed in claim 1 or 2, it is characterised in that the figure that the acquisition rotatable camera is photographed
The ambient brightness value of picture, including:
When the image that the rotatable camera is photographed is coloured image, the coloured image is converted into gray level image;
The mean flow rate of the mean flow rate of the gray level image or the predeterminable area of the gray level image is calculated, by the gray scale
The mean flow rate of the predeterminable area of the mean flow rate of image or the gray level image is used as ambient brightness value.
4. a kind of terminal, it is characterised in that including:
Setting unit, for setting the mapping relations between ambient brightness value and the rotary speed of rotatable camera
Acquiring unit, during being rotated in the rotatable camera of terminal, obtains the rotatable camera and claps
The ambient brightness value for the image taken the photograph;
Adjustment unit, for the ambient brightness value of the image photographed according to the rotatable camera, is adjusted described rotatable
The rotary speed of camera;
Rotation control unit, for controlling the rotatable camera to be rotated according to the rotary speed after adjustment;
Wherein, the adjustment unit includes:
Rotary speed update subelement, the ambient brightness value of the image photographed for rotatable camera as is now described and its
Difference between the ambient brightness value for the image that rotatable camera described in former frame is photographed is more than or equal to predetermined threshold value, root
Mapping between the ambient brightness value of the image photographed according to the rotatable camera and the rotary speed of rotatable camera
Relation, updates the rotary speed of the rotatable camera;
Rotary speed keep subelement, the ambient brightness value of the image photographed for rotatable camera as is now described and its
Difference between the ambient brightness value for the image that rotatable camera described in former frame is photographed is less than the predetermined threshold value, keeps
The present speed of the rotatable camera.
5. terminal as claimed in claim 4, it is characterised in that the ambient brightness for the image that the rotatable camera is photographed
It is worth and is:The image that the mean flow rate for the image that the rotatable camera is photographed or the rotatable camera are photographed
The mean flow rate of predeterminable area.
6. the terminal as described in claim 4 or 5, it is characterised in that the acquiring unit includes:
Converting unit, for when the image that the rotatable camera is photographed is coloured image, the coloured image to be turned
It is changed to gray level image;
Computing unit, for calculating the average bright of the mean flow rate of the gray level image or the predeterminable area of the gray level image
Degree, the mean flow rate of the mean flow rate of the gray level image or the predeterminable area of the gray level image is bright as environment
Angle value.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510257679.7A CN104917960B (en) | 2015-05-19 | 2015-05-19 | A kind of method and terminal that control camera to rotate |
CN201710851566.9A CN107454337B (en) | 2015-05-19 | 2015-05-19 | It is a kind of to control the method and terminal and related media production that camera rotates |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510257679.7A CN104917960B (en) | 2015-05-19 | 2015-05-19 | A kind of method and terminal that control camera to rotate |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710851566.9A Division CN107454337B (en) | 2015-05-19 | 2015-05-19 | It is a kind of to control the method and terminal and related media production that camera rotates |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104917960A CN104917960A (en) | 2015-09-16 |
CN104917960B true CN104917960B (en) | 2017-10-17 |
Family
ID=54086623
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510257679.7A Expired - Fee Related CN104917960B (en) | 2015-05-19 | 2015-05-19 | A kind of method and terminal that control camera to rotate |
CN201710851566.9A Expired - Fee Related CN107454337B (en) | 2015-05-19 | 2015-05-19 | It is a kind of to control the method and terminal and related media production that camera rotates |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710851566.9A Expired - Fee Related CN107454337B (en) | 2015-05-19 | 2015-05-19 | It is a kind of to control the method and terminal and related media production that camera rotates |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN104917960B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106210546B (en) * | 2016-08-24 | 2019-12-10 | Tcl集团股份有限公司 | panoramic photo shooting system, panoramic photo shooting method and mobile terminal |
CN108270959B (en) * | 2016-12-30 | 2020-05-08 | 华为技术有限公司 | Panoramic imaging method, terminal equipment and panoramic imaging device |
CN107948511B (en) * | 2017-11-28 | 2019-10-25 | Oppo广东移动通信有限公司 | Brightness of image processing method, device, storage medium and brightness of image processing equipment |
CN108012078B (en) * | 2017-11-28 | 2020-03-27 | Oppo广东移动通信有限公司 | Image brightness processing method and device, storage medium and electronic equipment |
CN108881691A (en) * | 2018-07-13 | 2018-11-23 | Oppo广东移动通信有限公司 | Control method, microprocessor, computer readable storage medium and computer equipment |
CN109167957B (en) * | 2018-08-30 | 2020-04-14 | 邯郸学院 | Monitoring device based on computer control |
TWI792252B (en) * | 2021-04-06 | 2023-02-11 | 華碩電腦股份有限公司 | Time-lapse photographic device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000321659A (en) * | 1999-05-06 | 2000-11-24 | Asahi Optical Co Ltd | Single lens reflex camera and single lens reflex monitoring camera |
WO2004109634A1 (en) * | 2003-06-03 | 2004-12-16 | Otsuka Electronics Co., Ltd. | Method and system for evaluating moving image quality of displays |
JP2006094450A (en) * | 2004-08-27 | 2006-04-06 | Victor Co Of Japan Ltd | Image pickup device |
CN101155260A (en) * | 2006-09-30 | 2008-04-02 | 华为技术有限公司 | Control method, authentication method and server for electronic equipments |
CN101377615A (en) * | 2007-08-29 | 2009-03-04 | 三星电子株式会社 | Method for photographing panoramic picture |
CN203377962U (en) * | 2013-07-25 | 2014-01-01 | 北京航天计量测试技术研究所 | Image constant brightness automatic adjustment circuit |
CN103517041A (en) * | 2013-09-29 | 2014-01-15 | 北京理工大学 | Real-time full-view monitoring method and device based on multi-camera rotating scanning |
CN104567668A (en) * | 2013-10-09 | 2015-04-29 | 赫克斯冈技术中心 | Scanner for space measurement |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7236200B2 (en) * | 2003-07-30 | 2007-06-26 | Extreme Cctv International Inc. | Slip ring laser illuminator for speed domes |
CN101370125B (en) * | 2007-08-17 | 2010-11-03 | 林嘉 | Diving auto-tracking shooting and video feedback method and system thereof |
CN102646316B (en) * | 2012-04-28 | 2013-09-18 | 中国人民解放军国防科学技术大学 | Comprehensive security monitoring method and comprehensive security monitoring system based on sentry |
CN202735830U (en) * | 2012-09-12 | 2013-02-13 | 浙江商业技师学院 | Smart home control device based on Internet of Things |
-
2015
- 2015-05-19 CN CN201510257679.7A patent/CN104917960B/en not_active Expired - Fee Related
- 2015-05-19 CN CN201710851566.9A patent/CN107454337B/en not_active Expired - Fee Related
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000321659A (en) * | 1999-05-06 | 2000-11-24 | Asahi Optical Co Ltd | Single lens reflex camera and single lens reflex monitoring camera |
WO2004109634A1 (en) * | 2003-06-03 | 2004-12-16 | Otsuka Electronics Co., Ltd. | Method and system for evaluating moving image quality of displays |
JP2006094450A (en) * | 2004-08-27 | 2006-04-06 | Victor Co Of Japan Ltd | Image pickup device |
CN101155260A (en) * | 2006-09-30 | 2008-04-02 | 华为技术有限公司 | Control method, authentication method and server for electronic equipments |
CN101377615A (en) * | 2007-08-29 | 2009-03-04 | 三星电子株式会社 | Method for photographing panoramic picture |
CN203377962U (en) * | 2013-07-25 | 2014-01-01 | 北京航天计量测试技术研究所 | Image constant brightness automatic adjustment circuit |
CN103517041A (en) * | 2013-09-29 | 2014-01-15 | 北京理工大学 | Real-time full-view monitoring method and device based on multi-camera rotating scanning |
CN104567668A (en) * | 2013-10-09 | 2015-04-29 | 赫克斯冈技术中心 | Scanner for space measurement |
Also Published As
Publication number | Publication date |
---|---|
CN107454337B (en) | 2019-05-17 |
CN107454337A (en) | 2017-12-08 |
CN104917960A (en) | 2015-09-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104917960B (en) | A kind of method and terminal that control camera to rotate | |
CN111418201B (en) | Shooting method and equipment | |
WO2017016030A1 (en) | Image processing method and terminal | |
CN106331508B (en) | Method and device for shooting composition | |
CN109345485B (en) | Image enhancement method and device, electronic equipment and storage medium | |
CN107911621B (en) | Panoramic image shooting method, terminal equipment and storage medium | |
WO2015161561A1 (en) | Method and device for terminal to achieve image synthesis based on multiple cameras | |
WO2017214523A1 (en) | Mismatched foreign light detection and mitigation in the image fusion of a two-camera system | |
CN104754218A (en) | Intelligent photographing method and terminal | |
EP2323102A1 (en) | Image capturing aid | |
CN105007418A (en) | Photographing method and mobile terminal | |
CN104639832A (en) | Panoramic photography method and terminal | |
CN111885304A (en) | Photographing method, mobile terminal and computer storage medium | |
US11297230B2 (en) | Shooting method, device and computer-readable storage medium | |
CN107040723B (en) | Imaging method based on double cameras, mobile terminal and storage medium | |
CN112637515B (en) | Shooting method and device and electronic equipment | |
WO2023036198A1 (en) | Method and apparatus for controlling aerial vehicle to capture rotational delay video, and device and medium | |
WO2022022633A1 (en) | Image display method and apparatus, and electronic device | |
CN104853097A (en) | Panoramic mode shooting method and shooting device | |
CN104994280B (en) | A kind of preview image processing method and user terminal | |
TWI696147B (en) | Method and system for rendering a panoramic image | |
TWI604413B (en) | Image processing method and image processing device | |
CN111107281B (en) | Image processing method, image processing apparatus, electronic device, and medium | |
CN103929585B (en) | A kind of control method of polaroid, electronic equipment and system | |
US20230342977A1 (en) | Method for Determining Chromaticity Information and Related Electronic 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171017 |