CN104917960A - Method for controlling camera to rotate and terminal - Google Patents
Method for controlling camera to rotate and terminal Download PDFInfo
- Publication number
- CN104917960A CN104917960A CN201510257679.7A CN201510257679A CN104917960A CN 104917960 A CN104917960 A CN 104917960A CN 201510257679 A CN201510257679 A CN 201510257679A CN 104917960 A CN104917960 A CN 104917960A
- Authority
- CN
- China
- Prior art keywords
- rotatable camera
- image
- brightness value
- ambient brightness
- terminal
- 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 54
- 238000013507 mapping Methods 0.000 claims description 45
- 230000001276 controlling effect Effects 0.000 description 10
- 230000002452 interceptive effect Effects 0.000 description 8
- 230000000694 effects Effects 0.000 description 7
- 230000007613 environmental effect Effects 0.000 description 6
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000005516 engineering process 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
- 230000006870 function Effects 0.000 description 1
- 230000001105 regulatory effect Effects 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 method for controlling a camera to rotate and a terminal. The method comprises the steps of acquiring an ambient brightness value of an image shot by a rotatable camera in the rotating process of the rotatable camera of a terminal; adjusting the rotating speed of the rotatable camera according to the ambient brightness value; and controlling the rotatable camera to rotate according to the adjusted rotating speed. The embodiment of the invention further discloses a terminal correspondingly. By adopting the method disclosed by the invention, the rotating speed of the camera can be accurately controlled according to the ambient brightness value, and the shooting efficiency is improved.
Description
Technical field
The present invention relates to intelligent terminal technical field, particularly relate to a kind of method and the terminal that control camera rotation.
Background technology
Along with widely using and the lifting of terminal taking technology of mobile terminal, people use terminal to come photographic images or video as filming apparatus more and more continually.The camera lens of traditional camera is fixed in terminal usually, shooting personnel can only be caught reference object by the position of mobile terminal, shooting efficiency is not high, be difficult to adapt to different shooting environmental requirements, and usually need to install in the terminal the function that preposition and post-positioned pick-up head could realize common shooting and auto heterodyne, therefore, rotating camera becomes more and more popular because it can rotate neatly in the terminal.At present, utilize rotating camera to carry out taking the scheme controlled to be mainly: according to different shooting environmental needs, the user manually shell of rotating camera camera lens controls camera and takes, the shooting efficiency of this manual control mode is lower, speed in camera rotary course is difficult to realize regulating comparatively accurately, affects shooting effect.
Summary of the invention
The embodiment of the present invention provides a kind of method and the terminal that control camera rotation, environmentally can accurately control the rotary speed of camera by brightness value, improve the efficiency of shooting.
Embodiments provide a kind of method controlling camera and rotate, comprising:
Carry out, in the process rotated, obtaining the ambient brightness value of the image that described rotatable camera photographs at the rotatable camera of terminal;
According to the ambient brightness value of the image that described rotatable camera photographs, adjust the rotary speed of described rotatable camera;
Control described rotatable camera to rotate according to the rotary speed after adjustment.
Correspondingly, the embodiment of the present invention additionally provides a kind of terminal, comprising:
Acquiring unit, for carrying out, in the process rotated, obtaining the ambient brightness value of the image that described rotatable camera photographs at the rotatable camera of terminal;
Adjustment unit, for the ambient brightness value of image photographed according to described rotatable camera, adjusts the rotary speed of described rotatable camera;
Rotation control unit, rotates according to the rotary speed after adjustment for controlling described rotatable camera.
Adopt the embodiment of the present invention, rotatable camera by terminal carries out in the process rotated, obtain the ambient brightness value of the image that rotatable camera photographs, then according to the rotary speed of this ambient brightness value adjustment rotatable camera, and control rotatable camera according to adjustment after rotary speed rotate, because environmentally brightness value carries out the coupling of rotary speed, what therefore can control camera carries out rotary taking with speed comparatively accurately, improve shooting efficiency, effectively can promote shooting effect simultaneously.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet controlling the method that camera rotates that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the method for the another kind control camera rotation that the embodiment of the present invention provides;
Fig. 3 is the structural representation of a kind of terminal that the embodiment of the present invention provides;
Fig. 4 is the structural representation of the acquiring unit of the terminal that the embodiment of the present invention provides;
Fig. 5 is the structural representation of the adjustment unit of the terminal that the embodiment of the present invention provides;
Fig. 6 is the structural representation of another terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The method that control camera that the embodiment of the present invention provides rotates and terminal can be applied to carries out the scene of taking according to rotary speed, such as: the rotatable camera of terminal carries out in the process rotated, obtain the ambient brightness value of the image that rotatable camera photographs, then according to the rotary speed of this ambient brightness value adjustment rotatable camera, and control rotatable camera according to adjustment after rotary speed rotate, because environmentally brightness value carries out the coupling of rotary speed, what therefore can control camera carries out rotary taking with speed comparatively accurately, improve shooting efficiency, effectively can promote shooting effect simultaneously.
In embodiments of the present invention, terminal can include but not limited to: notebook computer, mobile phone, panel computer, intelligent wearable device etc.The system of terminal refers to the operating system of terminal, can include but not limited to: android system, Saipan system, Windows system, IOS (Mobile operating system of Apple's exploitation) system etc.It should be noted that, Android terminal refers to the terminal of android system, and Saipan terminal refers to the terminal of Saipan system, etc.Above-mentioned terminal is only citing, and non exhaustive, including but not limited to above-mentioned terminal.
Below in conjunction with accompanying drawing 1-accompanying drawing 2, the method for the control camera rotation that the embodiment of the present invention provides is described in detail.
Please refer to Fig. 1, be a kind of schematic flow sheet controlling the method that camera rotates that the embodiment of the present invention provides, the method comprises the following steps S101-S103.
S101, carries out, in the process rotated, obtaining the ambient brightness value of the image that described rotatable camera photographs at the rotatable camera of terminal.
In specific implementation, rotatable camera involved by the embodiment of the present invention is the camera being external in described terminal or being attached to described terminal, described rotatable camera not only can possess higher pixel, big angle rotary can also be realized, such as, rotation within the scope of 206 degree or 360 degree, the embodiment of the present invention does not limit, rotatable camera can be front-facing camera, post-positioned pick-up head, by the rotatable camera of USB interface or wifi technical controlling and binocular camera in the present embodiment, terminal is for the smart mobile phone with rotating camera, but the present invention is not limited to above-mentioned, there is the terminal of rotating camera all within protection scope of the present invention.
Carry out in the process rotated at the rotatable camera of terminal, obtain the ambient brightness value of the image that rotatable camera photographs, the ambient brightness value of image that wherein rotatable camera photographs is after a two field picture that rotating camera can be photographed, the brightness value of this image is got by terminal handler, in another embodiment, the ambient brightness value of the image that rotatable camera photographs is by installing the environmental sensor with brightness measuring ability in the terminal, the ambient brightness value that image that current rotatable camera photographs is corresponding is detected by this environmental sensor, and preserve after this image is mated with ambient brightness value simultaneously.Wherein, the mean flow rate of the image that ambient brightness value can photograph for rotatable camera, the mean flow rate of the predeterminable area of the image that also can photograph for rotatable camera.
S102, according to the ambient brightness value of the image that described rotatable camera photographs, adjusts the rotary speed of described rotatable camera.
In specific implementation, the rotary speed of the ambient brightness value adjustment rotatable camera of the image photographed according to rotatable camera, mapping relations between ambient brightness value and the rotary speed of rotatable camera can be set in terminal, according to the mapping relations of above-mentioned setting and the ambient brightness value of the image of the rotatable camera shooting got, obtain the rotary speed of rotatable camera, such as, when the ambient brightness value of the image of the rotatable camera shooting got is A1, judged by the mapping relations between the ambient brightness value that arranges in terminal and the rotary speed of rotatable camera, the rotary speed getting rotatable camera is B1, in the present embodiment, the ambient brightness value photographed by the ambient brightness value that photographed by current rotatable camera and rotatable camera before compares, judge whether to need to adjust current rotary speed.
S103, controls described rotatable camera and rotates according to the rotary speed after adjustment.
In specific implementation, control rotatable camera to rotate according to the rotary speed after adjustment, in the present embodiment, the ambient brightness value photographed by the ambient brightness value that photographed by current rotatable camera and rotatable camera is before compared, if the result after is relatively for during without the need to adjusting current rotary speed, rotary speed then after adjustment and current rotary speed are consistent, and control rotatable camera and at the uniform velocity rotate by current rotary speed; As the result after relatively for adjusting current rotary speed time, then adjust current rotary speed, and control rotatable camera and carry out rotation process by the rotary speed after adjustment.
Adopt the embodiment of the present invention, rotatable camera by terminal carries out in the process rotated, obtain the ambient brightness value of the image that rotatable camera photographs, then according to the rotary speed of this ambient brightness value adjustment rotatable camera, and control rotatable camera according to adjustment after rotary speed rotate, because environmentally brightness value carries out the coupling of rotary speed, what therefore can control camera carries out rotary taking with speed comparatively accurately, improve shooting efficiency, effectively can promote shooting effect simultaneously.
Please refer to Fig. 2, the another kind provided for the embodiment of the present invention controls the schematic flow sheet of the method that camera rotates, and the method comprises the following steps S201-S207.
S201, arranges the mapping relations between ambient brightness value and the rotary speed of rotatable camera.
In specific implementation, rotatable camera involved by the embodiment of the present invention is the camera being external in described terminal or being attached to described terminal, described rotatable camera not only can possess higher pixel, big angle rotary can also be realized, such as, rotation within the scope of 206 degree or 360 degree, the embodiment of the present invention does not limit, rotatable camera can be front-facing camera, post-positioned pick-up head, by the rotatable camera of USB interface or wifi technical controlling and binocular camera in the present embodiment, terminal is for the smart mobile phone with rotating camera, but the present invention is not limited to above-mentioned, there is the terminal of rotating camera all within protection scope of the present invention.
In the present embodiment, mapping relations between ambient brightness value and the rotary speed of rotatable camera are set, wherein, these mapping relations can carry out Initialize installation when terminal is dispatched from the factory, and be stored in the memory function module of terminal, when user needs to use these mapping relations, directly acquiescence mapping relations are selected to arrange by interactive interface, such as, when terminal is dispatched from the factory, the mapping relations between ambient brightness value and the rotary speed of rotatable camera are stored in by mapping table in the internal memory in terminal system.In another embodiment, the acquisition of these mapping relations comprises the interactive interface by terminal, and the mapping relations between the manual input environment brightness value of user and the rotary speed of rotatable camera, are stored in the internal memory in terminal system.In another embodiment, the mode that the acquisition of these mapping relations can be shared by network obtains, terminal is carried out network connection, search for the mapping relations between this ambient brightness value and rotary speed of rotatable camera, self-defining mapping relations list or document are uploaded to network and share to other people by the mode shared by network, or download mapping relations list or document by the mode that network is shared.
S202, carries out in the process rotated at the rotatable camera of terminal, when the image that described rotatable camera photographs is coloured image, described coloured image is converted to gray level image.
In specific implementation, carry out in the process rotated at the rotatable camera of terminal, when the image that rotatable camera photographs is coloured image, coloured image is converted to gray level image, wherein, after coloured image is converted into gray level image, gray level image is luminance picture, so that subsequent calculations mean flow rate.Further, when the image that rotatable camera photographs is coloured image, can the luminance component image of extracting directly coloured image, such as, when the form of coloured image is RGB RGB (Red, Green, Blue), during image, RGB image can be converted into lightness/colourity YUV (Luminance, Chrominance) image, extract Y component map picture, calculate mean flow rate by Y component map picture.Further, when the image that rotatable camera photographs is gray level image, directly can calculate mean flow rate for gray level image.
S203, calculates the mean flow rate of the mean flow rate of described gray level image or the described predeterminable area of described gray level image, using the mean flow rate of the described predeterminable area of the mean flow rate of described gray level image or described gray level image as ambient brightness value.
In specific implementation, calculate the mean flow rate of the mean flow rate of gray level image or the predeterminable area of gray level image, using the mean flow rate of the mean flow rate of gray level image or the predeterminable area of gray level image as ambient brightness value.Wherein, the predeterminable area of gray level image can be a certain subregion Y of the image that rotatable camera photographs.
Calculate the mean flow rate of gray level image, all pixels of gray level image can be averaged, the average obtained is the mean flow rate of gray level image; Calculate the mean flow rate of the predeterminable area of gray level image, all pixels of the predeterminable area of gray level image can be averaged, the average obtained is the mean flow rate of the predeterminable area of gray level image, further, using the mean flow rate that calculates as ambient brightness value.
As a kind of possible execution mode, when the image that rotatable camera photographs is coloured image, can the luminance component image of extracting directly coloured image, such as, when the form of coloured image is RGB image, RGB image can be converted into YUV image, extract Y component map picture, mean flow rate is calculated by Y component map picture, calculate the mean flow rate of the mean flow rate of luminance component image or the predeterminable area of luminance component image, using the mean flow rate of the predeterminable area of the mean flow rate of luminance component image or luminance component image as ambient brightness value.Wherein, calculate the mean flow rate of luminance component image, all pixels of luminance component image can be averaged, the average obtained is the mean flow rate of luminance component image; Calculate the mean flow rate of the predeterminable area of luminance component image, all pixels of the predeterminable area of luminance component image can be averaged, the average obtained is the mean flow rate of the predeterminable area of luminance component image, further, using the mean flow rate that calculates as ambient brightness value.
S204, whether the difference between the ambient brightness value judging the image that rotatable camera photographs described in the ambient brightness value of the image that current described rotatable camera photographs and its former frame is more than or equal to predetermined threshold value.
In specific implementation, whether the difference between the ambient brightness value judging the image that the ambient brightness value of the image that current rotatable camera photographs and its former frame rotatable camera photograph is more than or equal to predetermined threshold value, in this way, performs step S205, if not, perform step S206.
S205, difference as is now described between the ambient brightness value of image that photographs of rotatable camera described in the ambient brightness value of image that photographs of rotatable camera and its former frame is more than or equal to predetermined threshold value, mapping relations between the ambient brightness value of the image photographed according to described rotatable camera and the rotary speed of rotatable camera, upgrade the rotary speed of described rotatable camera.
In specific implementation, difference between the ambient brightness value of the image that the ambient brightness value of the image photographed as current rotatable camera and its former frame rotatable camera photograph is more than or equal to predetermined threshold value, mapping relations between the ambient brightness value of the image photographed according to rotatable camera and the rotary speed of rotatable camera upgrade the rotary speed of rotatable camera, wherein, predetermined threshold value is undertaken arranging or selecting default value by the interactive interface of terminal.In the present embodiment, carry out in the process rotated at the rotatable camera of terminal, the rotatable camera of terminal also can according to certain hour interval shooting image, when getting a two field picture first, according in the system log (SYSLOG) of terminal, provide the rotary speed matched with the ambient brightness value of this image, the ambient brightness value of the image photographed with its former frame rotatable camera is contrasted by the ambient brightness value of the image photographed by rotatable camera afterwards.In another embodiment, carry out in the process rotated at the rotatable camera of terminal, terminal can be passed through to select panning mode to carry out pan-shot, by upgrading selection speed, to obtain the panoramic picture of high-quality more.In another embodiment, carry out in the process rotated at the rotatable camera of terminal, terminal can by selecting RECORD mode, mapping relations between the ambient brightness value and the rotary speed of rotatable camera of the image photographed according to rotatable camera upgrade the rotary speed of rotatable camera, to obtain content of making a video recording comparatively clearly.
S206, difference as is now described between the ambient brightness value of image that photographs of rotatable camera described in the ambient brightness value of image that photographs of rotatable camera and its former frame is less than described predetermined threshold value, keeps the present speed of described rotatable camera.
In specific implementation, the difference between the ambient brightness value of the image that the ambient brightness value of the image photographed as current rotatable camera and its former frame rotatable camera photograph is less than predetermined threshold value, keeps the present speed of rotatable camera.Wherein, predetermined threshold value is undertaken arranging or selecting default value by the interactive interface of terminal.In the present embodiment, if the difference between the ambient brightness value of the image that the ambient brightness value of the image that current rotatable camera photographs and its former frame rotatable camera photograph is less than predetermined threshold value, illustrate that the difference of the ambient brightness value of the image that the ambient brightness value of the image that current rotatable camera photographs and its former frame rotatable camera photograph is less, as in panorama photographing mode or image pickup mode, in order to keep the fluency of image, the present speed of rotatable camera can be kept.
S207, controls described rotatable camera and rotates according to the rotary speed after adjustment.
In specific implementation, control rotatable camera to rotate according to the rotary speed after adjustment, in the present embodiment, the ambient brightness value photographed by the ambient brightness value that photographed by current rotatable camera and rotatable camera is before compared, if the result after is relatively for during without the need to adjusting current rotary speed, rotary speed then after adjustment and current rotary speed are consistent, and control rotatable camera and at the uniform velocity rotate by current rotary speed; As the result after relatively for adjusting current rotary speed time, then adjust current rotary speed, and control rotatable camera and carry out rotation process by the rotary speed after adjustment.
Adopt the embodiment of the present invention, by arranging the mapping relations between ambient brightness value and the rotary speed of rotatable camera, carry out in the process rotated at the rotatable camera of terminal, when the image that rotatable camera photographs is coloured image, described coloured image is converted to gray level image, calculate the mean flow rate of the mean flow rate of gray level image or the predeterminable area of gray level image, and it can be used as ambient brightness value, difference between the ambient brightness value of the image photographed by the ambient brightness value of image that photographed by current rotatable camera and its former frame rotatable camera is compared, to adjust the rotary speed of rotatable camera, the speed comparatively accurately that achieves carries out rotary taking, finally control rotatable camera to rotate according to the rotary speed after adjustment, improve image quality, improve the effect of shooting.
Below in conjunction with Fig. 3-Fig. 5, the terminal that the embodiment of the present invention provides is described in detail.It should be noted that, a kind of terminal shown in Fig. 3-Fig. 5, for performing Fig. 1 of the present invention and method embodiment illustrated in fig. 2, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to the embodiment shown in Fig. 1 and Fig. 2 of the present invention.
Please refer to Fig. 3, be the structural representation of a kind of terminal that the embodiment of the present invention provides, this terminal comprises as lower unit: acquiring unit 11, adjustment unit 12 and rotation control unit 13.
Acquiring unit 11, for carrying out, in the process rotated, obtaining the ambient brightness value of the image that described rotatable camera photographs at the rotatable camera of terminal.
In specific implementation, rotatable camera involved by the embodiment of the present invention is the camera being external in described terminal or being attached to described terminal, described rotatable camera not only can possess higher pixel, big angle rotary can also be realized, such as, rotation within the scope of 206 degree or 360 degree, the embodiment of the present invention does not limit, rotatable camera can be front-facing camera, post-positioned pick-up head, by the rotatable camera of USB interface or wifi technical controlling and binocular camera in the present embodiment, terminal is for the smart mobile phone with rotating camera, but the present invention is not limited to above-mentioned, there is the terminal of rotating camera all within protection scope of the present invention.
Carry out in the process rotated at the rotatable camera of terminal, obtain the ambient brightness value of the image that rotatable camera photographs, the ambient brightness value of image that wherein rotatable camera photographs is after a two field picture that rotating camera can be photographed, the brightness value of this image is got by terminal handler, in another embodiment, the ambient brightness value of the image that rotatable camera photographs is by installing the environmental sensor with brightness measuring ability in the terminal, the ambient brightness value that image that current rotatable camera photographs is corresponding is detected by this environmental sensor, and preserve after this image is mated with ambient brightness value simultaneously.Wherein, the mean flow rate of the image that ambient brightness value can photograph for rotatable camera, the mean flow rate of the predeterminable area of the image that also can photograph for rotatable camera.
Concrete, please with reference to Fig. 4, for embodiments providing the structural representation of the acquiring unit of terminal.As shown in Figure 4, described acquiring unit 11 can comprise: converting unit 111 and computing unit 112.
Converting unit 111, for when the image that described rotatable camera photographs is coloured image, is converted to gray level image by described coloured image.
In specific implementation, carry out in the process rotated at the rotatable camera of terminal, when the image that rotatable camera photographs is coloured image, coloured image is converted to gray level image, wherein, after coloured image is converted into gray level image, gray level image is luminance picture, so that subsequent calculations mean flow rate.Further, when the image that rotatable camera photographs is coloured image, can the luminance component image of extracting directly coloured image, such as, when the form of coloured image is RGB image, RGB image can be converted into YUV image, extract Y component map picture, calculate mean flow rate by Y component map picture.Further, when the image that rotatable camera photographs is gray level image, directly can calculate mean flow rate for gray level image.
Computing unit 112, for the mean flow rate of the described predeterminable area of the mean flow rate or described gray level image that calculate described gray level image, using the mean flow rate of the described predeterminable area of the mean flow rate of described gray level image or described gray level image as ambient brightness value.
In specific implementation, calculate the mean flow rate of the mean flow rate of gray level image or the predeterminable area of gray level image, using the mean flow rate of the mean flow rate of gray level image or the predeterminable area of gray level image as ambient brightness value.Wherein, the predeterminable area of gray level image can be a certain subregion Y of the image that rotatable camera photographs.
Calculate the mean flow rate of gray level image, all pixels of gray level image can be averaged, the average obtained is the mean flow rate of gray level image; Calculate the mean flow rate of the predeterminable area of gray level image, all pixels of the predeterminable area of gray level image can be averaged, the average obtained is the mean flow rate of the predeterminable area of gray level image, further, using the mean flow rate that calculates as ambient brightness value.
As a kind of possible execution mode, when the image that rotatable camera photographs is coloured image, can the luminance component image of extracting directly coloured image, such as, when the form of coloured image is RGB image, RGB image can be converted into YUV image, extract Y component map picture, mean flow rate is calculated by Y component map picture, calculate the mean flow rate of the mean flow rate of luminance component image or the predeterminable area of luminance component image, using the mean flow rate of the predeterminable area of the mean flow rate of luminance component image or luminance component image as ambient brightness value.Wherein, calculate the mean flow rate of luminance component image, all pixels of luminance component image can be averaged, the average obtained is the mean flow rate of luminance component image; Calculate the mean flow rate of the predeterminable area of luminance component image, all pixels of the predeterminable area of luminance component image can be averaged, the average obtained is the mean flow rate of the predeterminable area of luminance component image, further, using the mean flow rate that calculates as ambient brightness value.
Adjustment unit 12, for the ambient brightness value of image photographed according to described rotatable camera, adjusts the rotary speed of described rotatable camera.
In specific implementation, the rotary speed of the ambient brightness value adjustment rotatable camera of the image photographed according to rotatable camera, mapping relations between ambient brightness value and the rotary speed of rotatable camera can be set in terminal, according to the mapping relations of above-mentioned setting and the ambient brightness value of the image of the rotatable camera shooting got, obtain the rotary speed of rotatable camera, such as, when the ambient brightness value of the image of the rotatable camera shooting got is A1, judged by the mapping relations between the ambient brightness value that arranges in terminal and the rotary speed of rotatable camera, the rotary speed getting rotatable camera is B1, in the present embodiment, the ambient brightness value photographed by the ambient brightness value that photographed by current rotatable camera and rotatable camera before compares, judge whether to need to adjust current rotary speed.
Concrete, please with reference to Fig. 5, for embodiments providing the structural representation of the adjustment unit of terminal.As shown in Figure 5, described adjustment unit 12 can comprise: rotary speed upgrades subelement 121 and rotary speed keeps subelement 122.
Rotary speed upgrades subelement 121, difference between the ambient brightness value of the image that rotatable camera photographs described in the ambient brightness value of the image photographed for rotatable camera as is now described and its former frame is more than or equal to predetermined threshold value, mapping relations between the ambient brightness value of the image photographed according to described rotatable camera and the rotary speed of rotatable camera, upgrade the rotary speed of described rotatable camera.
In specific implementation, difference between the ambient brightness value of the image that the ambient brightness value of the image photographed as current rotatable camera and its former frame rotatable camera photograph is more than or equal to predetermined threshold value, mapping relations between the ambient brightness value of the image photographed according to rotatable camera and the rotary speed of rotatable camera upgrade the rotary speed of rotatable camera, wherein, predetermined threshold value is undertaken arranging or selecting default value by the interactive interface of terminal.In the present embodiment, carry out in the process rotated at the rotatable camera of terminal, the rotatable camera of terminal also can according to certain hour interval shooting image, when getting a two field picture first, according in the system log (SYSLOG) of terminal, provide the rotary speed matched with the ambient brightness value of this image, the ambient brightness value of the image photographed with its former frame rotatable camera is contrasted by the ambient brightness value of the image photographed by rotatable camera afterwards.In another embodiment, carry out in the process rotated at the rotatable camera of terminal, terminal can be passed through to select panning mode to carry out pan-shot, by upgrading selection speed, to obtain the panoramic picture of high-quality more.In another embodiment, carry out in the process rotated at the rotatable camera of terminal, terminal can by selecting RECORD mode, mapping relations between the ambient brightness value and the rotary speed of rotatable camera of the image photographed according to rotatable camera upgrade the rotary speed of rotatable camera, to obtain content of making a video recording comparatively clearly.
Rotary speed keeps subelement 122, difference between the ambient brightness value of the image that rotatable camera photographs described in the ambient brightness value of the image photographed for rotatable camera as is now described and its former frame is less than described predetermined threshold value, keeps the present speed of described rotatable camera.
In specific implementation, the difference between the ambient brightness value of the image that the ambient brightness value of the image photographed as current rotatable camera and its former frame rotatable camera photograph is less than predetermined threshold value, keeps the present speed of rotatable camera.Wherein, predetermined threshold value is undertaken arranging or selecting default value by the interactive interface of terminal.In the present embodiment, if the difference between the ambient brightness value of the image that the ambient brightness value of the image that current rotatable camera photographs and its former frame rotatable camera photograph is less than predetermined threshold value, illustrate that the difference of the ambient brightness value of the image that the ambient brightness value of the image that current rotatable camera photographs and its former frame rotatable camera photograph is less, as in panorama photographing mode or image pickup mode, in order to keep the fluency of image, the present speed of rotatable camera can be kept.
Rotation control unit 13, rotates according to the rotary speed after adjustment for controlling described rotatable camera
In specific implementation, control rotatable camera to rotate according to the rotary speed after adjustment, in the present embodiment, the ambient brightness value photographed by the ambient brightness value that photographed by current rotatable camera and rotatable camera is before compared, if the result after is relatively for during without the need to adjusting current rotary speed, rotary speed then after adjustment and current rotary speed are consistent, and control rotatable camera and at the uniform velocity rotate by current rotary speed; As the result after relatively for adjusting current rotary speed time, then adjust current rotary speed, and control rotatable camera and carry out rotation process by the rotary speed after adjustment.
Adopt the embodiment of the present invention, by arranging the mapping relations between ambient brightness value and the rotary speed of rotatable camera, carry out in the process rotated at the rotatable camera of terminal, when the image that rotatable camera photographs is coloured image, described coloured image is converted to gray level image, calculate the mean flow rate of the mean flow rate of gray level image or the predeterminable area of gray level image, and it can be used as ambient brightness value, difference between the ambient brightness value of the image photographed by the ambient brightness value of image that photographed by current rotatable camera and its former frame rotatable camera is compared, to adjust the rotary speed of rotatable camera, the speed comparatively accurately that achieves carries out rotary taking, finally control rotatable camera to rotate according to the rotary speed after adjustment, improve image quality, improve the effect of shooting.
Please refer to Fig. 6, is the structural representation of another terminal that the embodiment of the present invention provides.As shown in Figure 6, described terminal comprises acquiring unit 11, adjustment unit 12, rotation control unit 13 and setting unit 14.Wherein, acquiring unit 11, adjustment unit 12 and rotation control unit 13 describe in detail in the explanation of Fig. 3, are not repeating at this.
Setting unit 14, for arranging the mapping relations between ambient brightness value and the rotary speed of rotatable camera.
In specific implementation, rotatable camera involved by the embodiment of the present invention is the camera being external in described terminal or being attached to described terminal, described rotatable camera not only can possess higher pixel, big angle rotary can also be realized, such as, rotation within the scope of 206 degree or 360 degree, the embodiment of the present invention does not limit, rotatable camera can be front-facing camera, post-positioned pick-up head, by the rotatable camera of USB interface or wifi technical controlling and binocular camera in the present embodiment, terminal is for the smart mobile phone with rotating camera, but the present invention is not limited to above-mentioned, there is the terminal of rotating camera all within protection scope of the present invention.
In the present embodiment, mapping relations between ambient brightness value and the rotary speed of rotatable camera are set, wherein, these mapping relations can carry out Initialize installation when terminal is dispatched from the factory, and be stored in the memory function module of terminal, when user needs to use these mapping relations, directly acquiescence mapping relations are selected to arrange by interactive interface, such as, when terminal is dispatched from the factory, the mapping relations between ambient brightness value and the rotary speed of rotatable camera are stored in by mapping table in the internal memory in terminal system.In another embodiment, the acquisition of these mapping relations comprises the interactive interface by terminal, and the mapping relations between the manual input environment brightness value of user and the rotary speed of rotatable camera, are stored in the internal memory in terminal system.In another embodiment, the mode that the acquisition of these mapping relations can be shared by network obtains, terminal is carried out network connection, search for the mapping relations between this ambient brightness value and rotary speed of rotatable camera, self-defining mapping relations list or document are uploaded to network and share to other people by the mode shared by network, or download mapping relations list or document by the mode that network is shared.
Adopt the embodiment of the present invention, by arranging the mapping relations between ambient brightness value and the rotary speed of rotatable camera, carry out in the process rotated at the rotatable camera of terminal, when the image that rotatable camera photographs is coloured image, described coloured image is converted to gray level image, calculate the mean flow rate of the mean flow rate of gray level image or the predeterminable area of gray level image, and it can be used as ambient brightness value, difference between the ambient brightness value of the image photographed by the ambient brightness value of image that photographed by current rotatable camera and its former frame rotatable camera is compared, to adjust the rotary speed of rotatable camera, the speed comparatively accurately that achieves carries out rotary taking, finally control rotatable camera to rotate 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 all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.
Claims (10)
1. control the method that camera rotates, it is characterized in that, comprising:
Carry out, in the process rotated, obtaining the ambient brightness value of the image that described rotatable camera photographs at the rotatable camera of terminal;
According to the ambient brightness value of the image that described rotatable camera photographs, adjust the rotary speed of described rotatable camera;
Control described rotatable camera to rotate according to the rotary speed after adjustment.
2. the method for claim 1, it is characterized in that, the ambient brightness value of the image that described rotatable camera photographs is: the mean flow rate of the predeterminable area of the image that the mean flow rate of the image that described rotatable camera photographs or described rotatable camera photograph.
3. method as claimed in claim 1 or 2, it is characterized in that, the described rotatable camera in terminal carries out, in the process rotated, before obtaining the ambient brightness value of the image that described rotatable camera photographs, also comprising:
Mapping relations between ambient brightness value and the rotary speed of rotatable camera are set.
4. method as claimed in claim 3, is characterized in that, the ambient brightness value of the described image photographed according to described rotatable camera, adjusts the rotary speed of described rotatable camera, comprising:
Difference as is now described between the ambient brightness value of image that photographs of rotatable camera described in the ambient brightness value of image that photographs of rotatable camera and its former frame is more than or equal to predetermined threshold value, mapping relations between the ambient brightness value of the image photographed according to described rotatable camera and the rotary speed of rotatable camera, upgrade the rotary speed of described rotatable camera;
Difference as is now described between the ambient brightness value of image that photographs of rotatable camera described in the ambient brightness value of image that photographs of rotatable camera and its former frame is less than described predetermined threshold value, keeps the present speed of described rotatable camera.
5. method as claimed in claim 1 or 2, it is characterized in that, the ambient brightness value of the image that the described rotatable camera of described acquisition photographs, comprising:
When the image that described rotatable camera photographs is coloured image, described coloured image is converted to gray level image;
Calculate the mean flow rate of the mean flow rate of described gray level image or the described predeterminable area of described gray level image, using the mean flow rate of the described predeterminable area of the mean flow rate of described gray level image or described gray level image as ambient brightness value.
6. a terminal, is characterized in that, comprising:
Acquiring unit, for carrying out, in the process rotated, obtaining the ambient brightness value of the image that described rotatable camera photographs at the rotatable camera of terminal;
Adjustment unit, for the ambient brightness value of image photographed according to described rotatable camera, adjusts the rotary speed of described rotatable camera;
Rotation control unit, rotates according to the rotary speed after adjustment for controlling described rotatable camera.
7. terminal as claimed in claim 6, it is characterized in that, the ambient brightness value of the image that described rotatable camera photographs is: the mean flow rate of the predeterminable area of the image that the mean flow rate of the image that described rotatable camera photographs or described rotatable camera photograph.
8. terminal as claimed in claims 6 or 7, it is characterized in that, described terminal also comprises:
Setting unit, for arranging the mapping relations between ambient brightness value and the rotary speed of rotatable camera.
9. terminal as claimed in claim 8, it is characterized in that, described adjustment unit comprises:
Rotary speed upgrades subelement, difference between the ambient brightness value of the image that rotatable camera photographs described in the ambient brightness value of the image photographed for rotatable camera as is now described and its former frame is more than or equal to predetermined threshold value, mapping relations between the ambient brightness value of the image photographed according to described rotatable camera and the rotary speed of rotatable camera, upgrade the rotary speed of described rotatable camera;
Rotary speed keeps subelement, difference between the ambient brightness value of the image that rotatable camera photographs described in the ambient brightness value of the image photographed for rotatable camera as is now described and its former frame is less than described predetermined threshold value, keeps the present speed of described rotatable camera.
10. terminal as claimed in claims 6 or 7, it is characterized in that, described acquiring unit comprises:
Converting unit, for when the image that described rotatable camera photographs is coloured image, is converted to gray level image by described coloured image;
Computing unit, for the mean flow rate of the described predeterminable area of the mean flow rate or described gray level image that calculate described gray level image, using the mean flow rate of the described predeterminable area of the mean flow rate of described gray level image or described gray level image as ambient brightness 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 true CN104917960A (en) | 2015-09-16 |
CN104917960B CN104917960B (en) | 2017-10-17 |
Family
ID=54086623
Family Applications (2)
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 |
CN201510257679.7A Expired - Fee Related CN104917960B (en) | 2015-05-19 | 2015-05-19 | A kind of method and terminal that control camera to rotate |
Family Applications Before (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) | CN107454337B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106210546A (en) * | 2016-08-24 | 2016-12-07 | Tcl集团股份有限公司 | A kind of distant view photograph camera system, distant view photograph image pickup method and mobile terminal |
CN107948511A (en) * | 2017-11-28 | 2018-04-20 | 广东欧珀移动通信有限公司 | Brightness of image processing method, device, storage medium and electronic equipment |
CN108012078A (en) * | 2017-11-28 | 2018-05-08 | 广东欧珀移动通信有限公司 | Brightness of image processing method, device, storage medium and electronic equipment |
CN108270959A (en) * | 2016-12-30 | 2018-07-10 | 华为技术有限公司 | Method, terminal device and the panoramic imaging device of panoramic imagery |
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 |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109167957B (en) * | 2018-08-30 | 2020-04-14 | 邯郸学院 | Monitoring device based on computer control |
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 CN201710851566.9A patent/CN107454337B/en not_active Expired - Fee Related
- 2015-05-19 CN CN201510257679.7A patent/CN104917960B/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 |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106210546A (en) * | 2016-08-24 | 2016-12-07 | Tcl集团股份有限公司 | A kind of distant view photograph camera system, distant view photograph image pickup method and mobile terminal |
CN106210546B (en) * | 2016-08-24 | 2019-12-10 | Tcl集团股份有限公司 | panoramic photo shooting system, panoramic photo shooting method and mobile terminal |
CN108270959A (en) * | 2016-12-30 | 2018-07-10 | 华为技术有限公司 | Method, terminal device and the panoramic imaging device of panoramic imagery |
CN108270959B (en) * | 2016-12-30 | 2020-05-08 | 华为技术有限公司 | Panoramic imaging method, terminal equipment and panoramic imaging device |
CN107948511A (en) * | 2017-11-28 | 2018-04-20 | 广东欧珀移动通信有限公司 | Brightness of image processing method, device, storage medium and electronic equipment |
CN108012078A (en) * | 2017-11-28 | 2018-05-08 | 广东欧珀移动通信有限公司 | Brightness of image processing method, device, storage medium and electronic equipment |
CN107948511B (en) * | 2017-11-28 | 2019-10-25 | Oppo广东移动通信有限公司 | Brightness of image processing method, device, storage medium and brightness of image processing 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 |
US11991479B2 (en) | 2021-04-06 | 2024-05-21 | Asustek Computer Inc. | Time-lapse photographic device |
Also Published As
Publication number | Publication date |
---|---|
CN107454337A (en) | 2017-12-08 |
CN107454337B (en) | 2019-05-17 |
CN104917960B (en) | 2017-10-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104917960A (en) | Method for controlling camera to rotate and terminal | |
US9648245B2 (en) | Low-light image capture method and image capture apparatus | |
CN106605403B (en) | Shooting method and electronic equipment | |
US8965121B2 (en) | Image color matching and equalization devices and related methods | |
US9736348B2 (en) | RAW camera peripheral with handheld mobile unit processing RAW image data | |
CN106688228B (en) | Video camera controller, camera shooting control method, camera and camera system | |
CN107911621B (en) | Panoramic image shooting method, terminal equipment and storage medium | |
WO2017016030A1 (en) | Image processing method and terminal | |
CN106688227B (en) | More photographic devices, more image capture methods | |
US10110806B2 (en) | Electronic device and method for operating the same | |
JP7135299B2 (en) | Image processing device, display device, image processing method, program | |
CN103986875A (en) | Image acquiring device, method and terminal and video acquiring method | |
WO2014190051A1 (en) | Simulating high dynamic range imaging with virtual long-exposure images | |
US9723194B2 (en) | Photographing apparatus providing image transmission based on communication status, method of controlling the same, and non-transitory computer-readable storage medium for executing the method | |
WO2017076000A1 (en) | Method and device for night photography and mobile terminal | |
US20140313366A1 (en) | Method of processing image and electronic device and system supporting the same | |
CN104853097A (en) | Panoramic mode shooting method and shooting device | |
CN110225243A (en) | Folding screen based shooting control method and device, storage medium and mobile terminal | |
CN105100456A (en) | Self-photographing method utilizing external accessory of mobile terminal and mobile terminal | |
US11200653B2 (en) | Local histogram matching with global regularization and motion exclusion for multi-exposure image fusion | |
CN104994280A (en) | Method for processing preview image and user terminal | |
TWI696147B (en) | Method and system for rendering a panoramic image | |
CN105007410A (en) | Large viewing angle camera control method and user terminal | |
CN103929585B (en) | A kind of control method of polaroid, electronic equipment and system | |
CN104994288A (en) | Shooting method and user terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
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. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171017 |
|
CF01 | Termination of patent right due to non-payment of annual fee |