CN107454337A - A kind of method and terminal and related media production for controlling camera rotation - Google Patents
A kind of method and terminal and related media production for controlling camera rotation Download PDFInfo
- Publication number
- CN107454337A CN107454337A CN201710851566.9A CN201710851566A CN107454337A CN 107454337 A CN107454337 A CN 107454337A CN 201710851566 A CN201710851566 A CN 201710851566A CN 107454337 A CN107454337 A CN 107454337A
- Authority
- CN
- China
- Prior art keywords
- image
- rotatable camera
- brightness value
- ambient brightness
- camera
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 238000004519 manufacturing process Methods 0.000 title description 3
- 238000013507 mapping Methods 0.000 claims description 42
- 238000004590 computer program Methods 0.000 claims description 2
- 238000003860 storage Methods 0.000 claims description 2
- 230000001276 controlling effect Effects 0.000 description 12
- 230000002452 interceptive effect Effects 0.000 description 8
- 230000000694 effects Effects 0.000 description 7
- 230000007613 environmental effect Effects 0.000 description 4
- 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
- 238000002360 preparation method 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 for controlling camera rotation.Method therein includes:During the rotatable camera of terminal is rotated, the ambient brightness value for the image that the rotatable camera photographs 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, improves the efficiency of shooting.
Description
Technical field
The present invention relates to intelligent terminal technical field, more particularly to a kind of method and terminal and phase for controlling camera rotation
Close medium product.
Background technology
With mobile terminal widely use and the lifting of terminal taking technology, 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 shooting personnel 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 realize common shooting and self-timer with rear camera, 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, the shell of user's manually rotating camera camera lens is controlled
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 and related media production for controlling camera rotation, can basis
Ambient brightness value accurately controls the rotary speed of camera, improves the efficiency of shooting.
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 photographs is obtained
Ambient brightness value;
The ambient brightness value of the image photographed according to the rotatable camera, adjust 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, obtain the rotatable shooting
The ambient brightness value for the image that head photographs;
Adjustment unit, can described in adjustment for the ambient brightness value of the image photographed according to the rotatable camera
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 photographs, the rotation speed of rotatable camera is then adjusted 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, make 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 describes, it is clear that described embodiment is part of the embodiment of the present 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 of row shooting, such as:During the rotatable camera of terminal is rotated, obtain what rotatable camera 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, improve shooting efficiency, while can effectively lift shooting
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 for 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, should for a kind of schematic flow sheet for the method for controlling camera to rotate provided in an embodiment of the present invention
Method comprises the following steps S101-S103.
S101, during the rotatable camera of terminal is rotated, obtain the rotatable camera and photograph
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 the rotation in the range of 206 degree or 360 degree, the embodiment of the present invention do not limit, rotatable camera can be 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 photographs is obtained
The ambient brightness value for the image that border brightness value, wherein rotatable camera photograph 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 photographs
The ambient brightness value of image be by installing the environmental sensor with brightness detection function in the terminal, passed by the environment
Sensor detects ambient brightness value corresponding to image that current rotatable camera photographs, and by the image and ambient brightness value
After being matched while preserve.Wherein, ambient brightness value can be the mean flow rate for the image that rotatable camera photographs,
It can be the mean flow rate of the predeterminable area for the image that rotatable camera photographs.
S102, the ambient brightness value of the image photographed according to the rotatable camera, adjust 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
Rotary speed, the mapping relations between ambient brightness value and the rotary speed of rotatable camera can be set in terminal, according to upper
The ambient brightness value of the mapping relations for stating setting and the image of the rotatable camera got shooting, obtains rotatable camera
Rotary speed, for example, when the ambient brightness value of image of the rotatable camera shooting got 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 photographs is compared, and judges whether to need to adjust current rotary speed
It is whole.
S103, the rotatable camera is controlled 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, as relatively after result 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;Such as compare after result be
When need to be adjusted to current rotary speed, then adjust current rotary speed, and control control rotatable camera by adjustment after
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 photographs, the rotation speed of rotatable camera is then adjusted 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, the schematic flow sheet of the method rotated for another control camera provided in an embodiment of the present invention,
This method comprises the following steps S201-S207.
S201, the mapping relations between ambient brightness value and the rotary speed of rotatable camera are set.
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 the rotation in the range of 206 degree or 360 degree, the embodiment of the present invention do not limit, rotatable camera can be 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 acquiescence mapping relations are selected to set by interactive interface, 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, it is 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 mapping relations are downloaded by way of network share
List or document.
S202, during the rotatable camera of terminal is rotated, 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 photographs
Image when being coloured image, coloured image is converted into gray level image, wherein, after coloured image is converted into gray level image,
Gray level image is luminance picture, subsequently to calculate mean flow rate.Further, when the image that rotatable camera photographs
For coloured image when, 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, Y component map picture is extracted, 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, calculate 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 using the mean flow rate of the gray level image or the predeterminable area of the gray level image are bright as environment
Angle value.
In the specific implementation, the mean flow rate of gray level image or the mean flow rate of the predeterminable area of gray level image are calculated, will
The mean flow rate of gray level image or the mean flow rate of the predeterminable area of gray level image are as ambient brightness value.Wherein, gray-scale map
The predeterminable area of picture can be a certain subregion Y for the image that rotatable camera photographs.
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,
Using the mean flow rate being calculated as ambient brightness value.
, can be direct when the image that rotatable camera photographs 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 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, be obtained
To average be luminance component image predeterminable area mean flow rate, further, by the mean flow rate being calculated make
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 photographs
Whether the difference between the ambient brightness value for the image that rotating camera photographs is more than or equal to predetermined threshold value.
In the specific implementation, judge that the ambient brightness value for the image that current rotatable camera photographs and its former frame can revolve
Turn whether the difference between the ambient brightness value for the image that camera photographs is more than or equal to predetermined threshold value, in this way, perform step
Rapid S205, if not being, perform step S206.
S205, the ambient brightness value for the image that rotatable camera photographs 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 photographs is more than or equal to predetermined threshold value, rotatable is 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, can described in renewal
The rotary speed of rotating camera.
In the specific implementation, such as the ambient brightness value for the image that current rotatable camera photographs and its former frame are rotatable
Difference between the ambient brightness value for the image that camera photographs is more than or equal to predetermined threshold value, is clapped according to rotatable camera
Mapping relations renewal rotatable camera between the ambient brightness value for the image taken the photograph and the rotary speed of 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, provides the ambient brightness value phase with the image
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 photographs 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 more high-quality panoramic picture.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
As head rotary speed between mapping relations renewal rotatable camera rotary speed, with obtain more clearly shooting in
Hold.
S206, the ambient brightness value for the image that rotatable camera photographs described in its former frame with that can revolve as is now described
Turn the difference between the ambient brightness value for the image that camera photographs and be less than the predetermined threshold value, keep the rotatable shooting
The present speed of head.
In the specific implementation, such as the ambient brightness value for the image that current rotatable camera photographs and its former frame are rotatable
Difference between the ambient brightness value for the image that camera photographs 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 photographs photographs with its former frame rotatable camera
Difference between brightness value is less than predetermined threshold value, illustrate the image that current rotatable camera photographs ambient brightness value and its
The difference of the ambient brightness value for the image that former frame rotatable camera photographs 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, the rotatable camera is controlled 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, as relatively after result 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;Such as compare after result be
When need to be adjusted to current rotary speed, then adjust current rotary speed, and control control rotatable camera by adjustment after
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 photographs is colour
During image, the coloured image is converted into gray level image, calculates the mean flow rate of gray level image or presetting for gray level image
The mean flow rate in region, and as ambient brightness value, by the environment for the image for photographing current rotatable camera
Compared with difference between brightness value and the ambient brightness value for the image that its former frame rotatable camera photographs, with adjustment
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 does not disclose, refer to shown in Fig. 1 and Fig. 2 of the present invention
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, obtain described rotatable take the photograph
As the ambient brightness value for the image that head photographs.
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 the rotation in the range of 206 degree or 360 degree, the embodiment of the present invention do not limit, rotatable camera can be 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 photographs is obtained
The ambient brightness value for the image that border brightness value, wherein rotatable camera photograph 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 photographs
The ambient brightness value of image be by installing the environmental sensor with brightness detection function in the terminal, passed by the environment
Sensor detects ambient brightness value corresponding to image that current rotatable camera photographs, and by the image and ambient brightness value
After being matched while preserve.Wherein, ambient brightness value can be the mean flow rate for the image that rotatable camera photographs,
It can be the mean flow rate of the predeterminable area for the image that rotatable camera photographs.
Specifically, please with reference to Fig. 4, for the embodiments of the invention provide the structural representation of the acquiring unit of terminal.
As shown in figure 4, the acquiring unit 11 can include:Converting unit 111 and computing unit 112.
Converting unit 111, when the image for being photographed when the rotatable camera 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 photographs
Image when being coloured image, coloured image is converted into gray level image, wherein, after coloured image is converted into gray level image,
Gray level image is luminance picture, subsequently to calculate mean flow rate.Further, when the image that rotatable camera photographs
For coloured image when, 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, extract Y component map picture, mean flow rate is calculated by Y component map picture.Further,
In the case that the image that rotatable camera photographs is gray level image, mean flow rate can be calculated directly against gray level image.
Computing unit 112, preset 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 gray level image or the mean flow rate of the predeterminable area of gray level image are calculated, will
The mean flow rate of gray level image or the mean flow rate of the predeterminable area of gray level image are as ambient brightness value.Wherein, gray-scale map
The predeterminable area of picture can be a certain subregion Y for the image that rotatable camera photographs.
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,
Using the mean flow rate being calculated as ambient brightness value.
, can be direct when the image that rotatable camera photographs 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 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, be obtained
To average be luminance component image predeterminable area mean flow rate, further, by the mean flow rate being calculated make
For ambient brightness value.
Adjustment unit 12, for the ambient brightness value of the image photographed according to the rotatable camera, described in adjustment
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
Rotary speed, the mapping relations between ambient brightness value and the rotary speed of rotatable camera can be set in terminal, according to upper
The ambient brightness value of the mapping relations for stating setting and the image of the rotatable camera got shooting, obtains rotatable camera
Rotary speed, for example, when the ambient brightness value of image of the rotatable camera shooting got 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 photographs is compared, and judges whether to need to adjust current rotary speed
It is whole.
Specifically, please with reference to Fig. 5, for the embodiments of the invention provide the structural representation of the adjustment unit of terminal.
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 photographs 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, such as the ambient brightness value for the image that current rotatable camera photographs and its former frame are rotatable
Difference between the ambient brightness value for the image that camera photographs is more than or equal to predetermined threshold value, is clapped according to rotatable camera
Mapping relations renewal rotatable camera between the ambient brightness value for the image taken the photograph and the rotary speed of 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, provides the ambient brightness value phase with the image
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 photographs 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 more high-quality panoramic picture.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
As head rotary speed between mapping relations renewal rotatable camera rotary speed, with obtain more clearly shooting in
Hold.
Rotary speed holding subelement 122, the environment of the image photographed for rotatable camera as is now described are bright
Difference between the ambient brightness value for the image that rotatable camera described in angle value and its former frame photographs is less than described default
Threshold value, keep the present speed of the rotatable camera.
In the specific implementation, such as the ambient brightness value for the image that current rotatable camera photographs and its former frame are rotatable
Difference between the ambient brightness value for the image that camera photographs 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 photographs photographs with its former frame rotatable camera
Difference between brightness value is less than predetermined threshold value, illustrate the image that current rotatable camera photographs ambient brightness value and its
The difference of the ambient brightness value for the image that former frame rotatable camera photographs 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, as relatively after result 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;Such as compare after result be
When need to be adjusted to current rotary speed, then adjust current rotary speed, and control control rotatable camera by adjustment after
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 photographs is colour
During image, the coloured image is converted into gray level image, calculates the mean flow rate of gray level image or presetting for gray level image
The mean flow rate in region, and as ambient brightness value, by the environment for the image for photographing current rotatable camera
Compared with difference between brightness value and the ambient brightness value for the image that its former frame rotatable camera photographs, with adjustment
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 the rotation in the range of 206 degree or 360 degree, the embodiment of the present invention do not limit, rotatable camera can be 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 acquiescence mapping relations are selected to set by interactive interface, 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, it is 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 mapping relations are downloaded by way of network share
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 photographs is colour
During image, the coloured image is converted into gray level image, calculates the mean flow rate of gray level image or presetting for gray level image
The mean flow rate in region, and as ambient brightness value, by the environment for the image for photographing current rotatable camera
Compared with difference between brightness value and the ambient brightness value for the image that its former frame rotatable camera photographs, with adjustment
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 (11)
- A kind of 1. method for controlling camera rotation, it is characterised in that including:During the rotatable camera of terminal is rotated, the ring for the image that the rotatable camera photographs is obtained Border brightness value;The ambient brightness value of the image photographed according to the rotatable camera, adjust the rotation speed of the rotatable camera Degree;The rotatable camera is controlled to be rotated according to the rotary speed after adjustment.
- 2. the method as described in claim 1, it is characterised in that the ambient brightness for the image that the rotatable camera photographs It is worth and is:The image that the mean flow rate for the image that the rotatable camera photographs or the rotatable camera photograph The mean flow rate of predeterminable area.
- 3. method as claimed in claim 1 or 2, it is characterised in that what the rotatable camera in terminal was rotated During, before the ambient brightness value for obtaining the image that the rotatable camera photographs, in addition to:Mapping relations between ambient brightness value and the rotary speed of rotatable camera are set.
- 4. method as claimed in claim 3, it is characterised in that the image photographed according to the rotatable camera Ambient brightness value, the rotary speed of the rotatable camera is adjusted, including:The ambient brightness value for the image that rotatable camera photographs 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 photographs 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.
- 5. the method as described in Claims 1-4 any one, it is characterised in that described to obtain the rotatable camera bat The ambient brightness value for the image taken the photograph, including:When the image that the rotatable camera photographs is coloured image, the coloured image is converted into gray level image;The mean flow rate of the gray level image or the mean flow rate of the predeterminable area of the gray level image are 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 as ambient brightness value.
- A kind of 6. terminal, it is characterised in that including:Acquiring unit, during being rotated in the rotatable camera of terminal, obtain the rotatable camera and clap The ambient brightness value for the image taken the photograph;Adjustment unit, it is described rotatable for the ambient brightness value of the image photographed according to the rotatable camera, adjustment The rotary speed of camera;Rotation control unit, for controlling the rotatable camera to be rotated according to the rotary speed after adjustment.
- 7. terminal as claimed in claim 6, it is characterised in that the ambient brightness for the image that the rotatable camera photographs It is worth and is:The image that the mean flow rate for the image that the rotatable camera photographs or the rotatable camera photograph The mean flow rate of predeterminable area.
- 8. terminal as claimed in claims 6 or 7, it is characterised in that the terminal also includes:Setting unit, for setting the mapping relations between ambient brightness value and the rotary speed of rotatable camera.
- 9. terminal as claimed in claim 8, it is characterised in that 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 photographs 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, update 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 photographs is less than the predetermined threshold value, keeps The present speed of the rotatable camera.
- 10. the terminal as described in claim 6 to 9 any one, it is characterised in that the acquiring unit includes:Converting unit, when the image for being photographed when the rotatable camera is coloured image, the coloured image is 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 using the mean flow rate of the gray level image or the predeterminable area of the gray level image are bright as environment Angle value.
- 11. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium storage has computer journey Sequence, the instruction that the computer program includes are used for the method described in perform claim 1 to 5 any one of requirement.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
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 (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 |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510257679.7A Division CN104917960B (en) | 2015-05-19 | 2015-05-19 | A kind of method and terminal that control camera to rotate |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107454337A true CN107454337A (en) | 2017-12-08 |
CN107454337B CN107454337B (en) | 2019-05-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 Before (1)
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 |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN104917960B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109167957A (en) * | 2018-08-30 | 2019-01-08 | 邯郸学院 | Monitoring device based on computer control |
Families Citing this family (6)
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 |
TWI792252B (en) * | 2021-04-06 | 2023-02-11 | 華碩電腦股份有限公司 | Time-lapse photographic device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050024523A1 (en) * | 2003-07-30 | 2005-02-03 | Extreme Cctv International Inc. | Slip ring laser illuminator for speed domes |
CN101370125A (en) * | 2007-08-17 | 2009-02-18 | 林嘉 | Diving auto-tracking shooting and video feedback method and system thereof |
CN102646316A (en) * | 2012-04-28 | 2012-08-22 | 中国人民解放军国防科学技术大学 | 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 |
Family Cites Families (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 |
JP4286068B2 (en) * | 2003-06-03 | 2009-06-24 | 大塚電子株式会社 | Screen quality evaluation method |
JP4441908B2 (en) * | 2004-08-27 | 2010-03-31 | 日本ビクター株式会社 | Imaging system |
CN101155260A (en) * | 2006-09-30 | 2008-04-02 | 华为技术有限公司 | Control method, authentication method and server for electronic equipments |
KR101354899B1 (en) * | 2007-08-29 | 2014-01-27 | 삼성전자주식회사 | Method for photographing panorama picture |
CN203377962U (en) * | 2013-07-25 | 2014-01-01 | 北京航天计量测试技术研究所 | Image constant brightness automatic adjustment circuit |
CN103517041B (en) * | 2013-09-29 | 2016-04-27 | 北京理工大学 | Based on real time panoramic method for supervising and the device of polyphaser rotation sweep |
EP2860550B1 (en) * | 2013-10-09 | 2016-03-02 | Hexagon Technology Center GmbH | Scanner for spatial measurement |
-
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 (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050024523A1 (en) * | 2003-07-30 | 2005-02-03 | Extreme Cctv International Inc. | Slip ring laser illuminator for speed domes |
CN101370125A (en) * | 2007-08-17 | 2009-02-18 | 林嘉 | Diving auto-tracking shooting and video feedback method and system thereof |
CN102646316A (en) * | 2012-04-28 | 2012-08-22 | 中国人民解放军国防科学技术大学 | 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 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109167957A (en) * | 2018-08-30 | 2019-01-08 | 邯郸学院 | Monitoring device based on computer control |
CN109167957B (en) * | 2018-08-30 | 2020-04-14 | 邯郸学院 | Monitoring device based on computer control |
Also Published As
Publication number | Publication date |
---|---|
CN104917960B (en) | 2017-10-17 |
CN107454337B (en) | 2019-05-17 |
CN104917960A (en) | 2015-09-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104917960B (en) | A kind of method and terminal that control camera to rotate | |
CN106688228B (en) | Video camera controller, camera shooting control method, camera and camera system | |
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 | |
CN106250839B (en) | A kind of iris image perspective correction method, apparatus and mobile terminal | |
CN105120247B (en) | A kind of white balance adjustment method and electronic equipment | |
CN104754218A (en) | Intelligent photographing method and terminal | |
CN106131441B (en) | Photographing method and device and electronic equipment | |
EP2323102A1 (en) | Image capturing aid | |
CN110740260B (en) | Shooting method and device and computer readable storage medium | |
CN105007418A (en) | Photographing method and mobile terminal | |
CN107040723B (en) | Imaging method based on double cameras, mobile terminal and storage medium | |
CN109218606A (en) | Imaging-control apparatus, its control method and computer-readable medium | |
WO2023036198A1 (en) | Method and apparatus for controlling aerial vehicle to capture rotational delay video, and device and medium | |
CN112637515B (en) | Shooting method and device and electronic equipment | |
WO2022022633A1 (en) | Image display method and apparatus, and electronic device | |
CN104853097A (en) | Panoramic mode shooting method and shooting device | |
CN106791390B (en) | Wide-angle self-timer real-time preview method and user terminal | |
CN104994280B (en) | A kind of preview image processing method and user terminal | |
JP2017108374A (en) | Image processing apparatus, image processing method, and program | |
CN105049716B (en) | A kind of preview image processing method and user terminal | |
TWI696147B (en) | Method and system for rendering a panoramic image | |
CN105007410A (en) | Large viewing angle camera control method and user terminal | |
CN103813103A (en) | Method and device for anti-shaking picture taking of mobile terminal | |
WO2021258249A1 (en) | Image acquisition method, and electronic device, and mobile device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190517 |
|
CF01 | Termination of patent right due to non-payment of annual fee |