CN104994286A - Distortion collection method and terminal - Google Patents

Distortion collection method and terminal Download PDF

Info

Publication number
CN104994286A
CN104994286A CN201510382629.1A CN201510382629A CN104994286A CN 104994286 A CN104994286 A CN 104994286A CN 201510382629 A CN201510382629 A CN 201510382629A CN 104994286 A CN104994286 A CN 104994286A
Authority
CN
China
Prior art keywords
rotation
angle scope
photo angle
rotatable camera
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
Application number
CN201510382629.1A
Other languages
Chinese (zh)
Other versions
CN104994286B (en
Inventor
曾元清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510382629.1A priority Critical patent/CN104994286B/en
Publication of CN104994286A publication Critical patent/CN104994286A/en
Application granted granted Critical
Publication of CN104994286B publication Critical patent/CN104994286B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)

Abstract

The embodiment of the invention discloses a distortion collection method. The method comprises the following steps: determining the pre-shooting angle range of a rotatable camera of a terminal; detecting whether or not distortion exists in a shooting picture of the pre-shooting angle range; if so, determining the rotation direction and the rotation angle of the rotatable camera; and controlling the controllable camera to rotate according to the rotation direction and the rotation angle of the rotatable camera, and performing shooting in a rotating process. Through adoption of the embodiment of the invention, a distortion region in the shooting picture of the rotatable camera can be detected, and the distortion region is corrected in order to reduce the distortion degree of the distortion region.

Description

A kind of method of distortion correction and terminal
Technical field
The embodiment of the present invention relates to technical field of electronic equipment, refers more particularly to a kind of method and terminal of distortion correction.
Background technology
Along with developing rapidly of information technology, the integrated attainable function of terminal gets more and more, as taken pictures, surfing the Net, play, do shopping etc., but terminal is not omnipotent, in prior art, terminal can realize taking pictures, but in process of taking pictures, the scope of taking pictures also exists certain constraint.
Under normal circumstances, can expect adopting wide-angle camera to take pictures, but the image that wide-angle camera is taken out is exceeding the generation distortion of the region outside certain angle scope, the generation of this distortion is because the characteristic of wide-angle camera self causes, and how never effectively to be solved the problem that this distortion corrects.
Summary of the invention
Embodiments provide a kind of method and terminal of distortion correction, to correcting the region producing distortion in rotatable camera image, to reduce distortion degree.
Embodiment of the present invention first aspect discloses a kind of method of distortion correction, comprises step:
Determine the pre-photo angle scope of the rotatable camera of terminal;
Whether the shooting picture detecting described pre-photo angle scope exists distortion;
If so, direction of rotation and the anglec of rotation of described rotatable camera is determined;
Control described rotatable camera according to the direction of rotation of described rotatable camera and the anglec of rotation to rotate, and take pictures in the process of described rotation.
Correspondingly, embodiment of the present invention second aspect discloses a kind of terminal, comprising:
First determining unit, for determining the pre-photo angle scope of the rotatable camera of terminal;
Whether detecting unit, exist distortion for the shooting picture detecting the pre-photo angle scope that described first determining unit is determined;
Second determining unit, if detect in the shooting picture of pre-photo angle scope to there is situation for described detecting unit, determines direction of rotation and the anglec of rotation of described rotatable camera;
Photographing unit, controls described rotatable camera for the direction of rotation of rotatable camera determined according to described second determining unit and the anglec of rotation and rotates, and take pictures in the process of described rotation.
The pre-photo angle scope of the rotatable camera of embodiment of the present invention determination terminal; Whether the shooting picture detecting described pre-photo angle scope exists distortion; If so, direction of rotation and the anglec of rotation of described rotatable camera is determined; Control described rotatable camera according to the direction of rotation of described rotatable camera and the anglec of rotation to rotate, and take pictures in the process of described rotation.Adopt the embodiment of the present invention, the distorted region in the shooting picture of rotatable camera can be detected, and this distorted region is corrected, to reduce the distortion degree of distorted region.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment, description below, apparently, accompanying drawing in the following describes is only some embodiments of the embodiment of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The schematic flow sheet of the first embodiment of the method for a kind of distortion correction that Fig. 1 provides for the embodiment of the present invention;
The one distortion situation schematic diagram that Fig. 1 a provides for the embodiment of the present invention;
The schematic flow sheet of the second embodiment of the method for a kind of distortion correction that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of the 3rd embodiment of the method for a kind of distortion correction that Fig. 3 provides for the embodiment of the present invention;
The structural representation of the first embodiment of a kind of terminal that Fig. 4 provides for the embodiment of the present invention;
The structural representation of the second embodiment of a kind of terminal that Fig. 5 provides for the embodiment of the present invention;
The structural representation of the 3rd embodiment of a kind of terminal that Fig. 6 provides for the embodiment of the present invention;
The structural representation of the 4th embodiment of a kind of terminal that Fig. 7 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only embodiment of the present invention part embodiment, instead of whole embodiments.Based on the embodiment in the embodiment of the present invention, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all belong to the scope of embodiment of the present invention protection.
In realization, in the embodiment 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 equipment, can include but not limited to: android system, Saipan system, Windows system, IOS (Mobile operating system of Apple's exploitation), XP system, windows 8 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.
In enforcement, the rotatable camera described by the embodiment of the present invention is wide-angle camera, and its scope is greater than the photo angle of existing common camera.
Embodiment of the present invention composition graphs 1 to Fig. 7 is described the method for a kind of distortion correction that the embodiment of the present invention provides and terminal.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of the first embodiment of the method for a kind of distortion correction that the embodiment of the present invention provides.The method of the distortion correction described in the present embodiment, comprises step:
S101, determine the pre-photo angle scope of the rotatable camera of terminal.
Wherein, terminal can determine the pre-photo angle scope of the rotatable camera of this terminal, user is when the rotatable camera starting terminal, can according to the angular range of the scenery adjustment shooting wanting to take pictures, pre-photo angle scope is exactly that user determines according to the size in region shared by scenery in scene.Terminal first can obtain the touch instruction of the photo angle scope that user selects, according to the pre-photo angle scope of the rotatable camera of this instruction determination terminal.Such as, if the scenery scope in scene is smaller, then pre-photo angle scope can be adjusted to the camera lens scope of common camera, and in this case, the photo obtained of taking pictures distorts very little, can think undistorted; If the scenery scope in scene is comparatively large, exceeded the camera lens scope of common camera, the image of pre-photo angle scope carries out distortion correction possibly.
As a kind of possible execution mode, the rotatable camera of terminal can be front-facing camera or the post-positioned pick-up head of terminal; Or the rotatable camera of terminal can be terminal wirelessly or the camera that controls of wired mode.
Whether S102, the shooting picture detecting described pre-photo angle scope exist distortion.
Wherein, whether the shooting picture that terminal can detect pre-photo angle scope exists distortion, and namely when pre-photo angle scope is determined, terminal can detect the shooting picture of pre-photo angle scope
As a kind of possible execution mode, terminal can detect pre-photo angle scope and whether be greater than predetermined undistorted photo angle scope; When terminal to detection pre-photo angle scope be greater than predetermined undistorted photo angle scope, then think this pre-photo angle scope shooting picture in exist distortion.Under normal circumstances, due to the characteristic of wide-angle camera self, thus, the distortion of wide-angle camera exists always, and wide-angle camera has symmetry characteristic under normal circumstances, with the center of wide-angle camera to both sides, distortion factor presents symmetrical, distortion factor occurred in the prior art, did not do too much description at this.Distortion factor represents the distortion degree of the image that wide-angle camera is taken, the distortion factor of wide-angle camera is larger, illustrate that distortion is larger, and the distortion factor of wide-angle camera within the specific limits, namely distortion factor is less than the situation of a certain predetermined threshold value, then can think that distortion factor is less than region corresponding to a certain predetermined threshold value is orthoscopic zone, and the photo angle scope of its correspondence may be defined as undistorted photo angle scope.
S103, the direction of rotation if so, determining described rotatable camera and the anglec of rotation.
Wherein, if terminal is detecting that the shooting picture of pre-photo angle scope exists distortion, then direction of rotation and the anglec of rotation of the rotatable camera of terminal is determined.As shown in 1a, be the shooting picture of pre-photo angle scope shown in figure, the region formed between two dotted lines is orthoscopic zone, and the unexpected region of dotted line is distorted region.Then can according to the direction of rotation of the angle difference determination rotatable camera between dotted line and the border of pre-photo angle scope and the anglec of rotation, such as, angle between the left border of the dotted line on the left of in Fig. 1 a and pre-photo angle scope is 5 degree, and the angle between the right side boundary of the dotted line on right side and pre-photo angle scope is 5 degree, then can by rotatable camera first to anticlockwise 5 degree, so just can orthoscopic zone be rotated to pre-photo angle scope, when not carrying out to this process of anticlockwise, rotatable camera only need to right rotation 5 degree, just can orthoscopic zone be rotated to pre-photo angle scope, when to anticlockwise 5 degree, then can only need to right rotation 10 degree.
S104, control described rotatable camera according to the direction of rotation of described rotatable camera and the anglec of rotation and rotate, and take pictures in the process of described rotation.
Wherein, terminal can control described rotatable camera according to the direction of rotation of rotatable camera and the anglec of rotation and rotate, and takes pictures in the process of described rotation.Such as, suppose that the direction of rotation of the rotatable camera of terminal is left rotation and right rotation, and direction of rotation and the anglec of rotation are respectively: to anticlockwise 5 degree, to right rotation 15 degree, then terminal can control this camera first to anticlockwise 5 degree, then to right rotation 15 degree.
The pre-photo angle scope of the rotatable camera of embodiment of the present invention determination terminal; Whether the shooting picture detecting described pre-photo angle scope exists distortion; If so, direction of rotation and the anglec of rotation of described rotatable camera is determined; Control described rotatable camera according to the direction of rotation of described rotatable camera and the anglec of rotation to rotate, and take pictures in the process of described rotation.Adopt the embodiment of the present invention, the distorted region in the shooting picture of rotatable camera can be detected, and this distorted region is corrected, to reduce the distortion degree of distorted region.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of the second embodiment of the method for a kind of distortion correction that the embodiment of the present invention provides.The method of the distortion correction described in the present embodiment, comprises step:
S201, determine the pre-photo angle scope of the rotatable camera of terminal.
Whether S202, the shooting picture detecting described pre-photo angle scope exist distortion.
S203, the direction of rotation if so, determining described rotatable camera and the anglec of rotation.
S204, control described rotatable camera according to the direction of rotation of described rotatable camera and the anglec of rotation and rotate, and take pictures in the process of described rotation.
S205, the described image obtained of taking pictures is carried out shear treatment, to obtain the image of photo angle scope residing for described pre-photo angle scope.
In specific implementation, terminal can determine the pre-photo angle scope of the rotatable camera of this terminal, if there is distortion in the shooting picture of this pre-photo angle scope, then can determine direction of rotation and the anglec of rotation of rotatable camera further, and rotate according to the direction of rotation of this rotatable camera and the anglec of rotation, in rotary course, take pictures, owing to have passed through rotary course, thus to take pictures the pre-photo angle scope that the angular range of the image obtained can be original, thus, the image obtained taking pictures is needed to carry out shear treatment, to obtain the image with photo angle scope residing for original pre-photo angle scope.
The pre-photo angle scope of the rotatable camera of embodiment of the present invention determination terminal; Whether the shooting picture detecting described pre-photo angle scope exists distortion; If so, direction of rotation and the anglec of rotation of described rotatable camera is determined; Control described rotatable camera according to the direction of rotation of described rotatable camera and the anglec of rotation to rotate, and take pictures in the process of described rotation, the described image obtained of taking pictures is carried out shear treatment, to obtain the image of photo angle scope residing for described pre-photo angle scope, so, the orthoscopic image consistent with pre-photo angle scope can be obtained.
Refer to Fig. 3, Fig. 3 is the schematic flow sheet of the 3rd embodiment of the method for a kind of distortion correction that the embodiment of the present invention provides.The method of the distortion correction described in the present embodiment, comprises step:
S301, determine the pre-photo angle scope of the rotatable camera of terminal.
Whether S302, the shooting picture detecting described pre-photo angle scope exist distortion.
S303, the direction of rotation if so, determining described rotatable camera and the anglec of rotation.
S304, control described rotatable camera according to the direction of rotation of described rotatable camera and the anglec of rotation and rotate, carry out taking pictures once every predetermined angle, to obtain plurality of pictures in described rotary course.
S305, described plurality of pictures is carried out image mosaic.
In specific implementation, terminal can determine the pre-photo angle scope of the rotatable camera of this terminal, if there is distortion in the shooting picture of this pre-photo angle scope, then can determine direction of rotation and the anglec of rotation of rotatable camera further, and rotate according to the direction of rotation of this rotatable camera and the anglec of rotation, in rotary course, take pictures, take pictures as repeatedly taking pictures herein, because the angle of taking pictures in rotary course is expanded, once photo taking is difficult to comprise whole scenery, thus, can carry out taking pictures once every predetermined angle, to obtain plurality of pictures, and this plurality of pictures is carried out image mosaic, splicing herein can be analogous to the splicing of panoramic picture.
Further, owing to have passed through rotary course, the pre-photo angle scope that the angular range of the image obtained of thus taking pictures can be original, thus, the image obtained taking pictures is needed to carry out shear treatment, to obtain the image with photo angle scope residing for original pre-photo angle scope.
The pre-photo angle scope of the rotatable camera of embodiment of the present invention determination terminal; Whether the shooting picture detecting described pre-photo angle scope exists distortion; If so, direction of rotation and the anglec of rotation of described rotatable camera is determined; Control described rotatable camera according to the direction of rotation of described rotatable camera and the anglec of rotation to rotate, carry out taking pictures once every predetermined angle, to obtain plurality of pictures in described rotary course; Described plurality of pictures is carried out image mosaic.So, the image of different rotary angle in rotary course can be spliced, undistorted to guarantee original pre-photo angle scope.
Refer to Fig. 4, Fig. 4 is the structural representation of the first embodiment of a kind of terminal that the embodiment of the present invention provides.Terminal described in the present embodiment, comprising:
First determining unit 401, for determining the pre-photo angle scope of the rotatable camera of terminal.
Wherein, first determining unit 401 can determine the pre-photo angle scope of the rotatable camera of this terminal, user is when the rotatable camera starting terminal, can according to the angular range of the scenery adjustment shooting wanting to take pictures, pre-photo angle scope is exactly that user determines according to the size in region shared by scenery in scene.Terminal first can obtain the touch instruction of the photo angle scope that user selects, according to the pre-photo angle scope of the rotatable camera of this instruction determination terminal.Such as, if the scenery scope in scene is smaller, then pre-photo angle scope can be adjusted to the camera lens scope of common camera, and in this case, the photo obtained of taking pictures distorts very little, can think undistorted; If the scenery scope in scene is comparatively large, exceeded the camera lens scope of common camera, the image of pre-photo angle scope carries out distortion correction possibly.
As a kind of possible execution mode, the rotatable camera of terminal can be front-facing camera or the post-positioned pick-up head of terminal; Or the rotatable camera of terminal can be terminal wirelessly or the camera that controls of wired mode.
Whether detecting unit 402, exist distortion for the shooting picture detecting the pre-photo angle scope that described first determining unit 401 is determined.
Wherein, whether the shooting picture that detecting unit 402 can detect pre-photo angle scope exists distortion, and namely when pre-photo angle scope is determined, terminal can detect the shooting picture of pre-photo angle scope
As a kind of possible execution mode, detecting unit 402 can detect pre-photo angle scope and whether be greater than predetermined undistorted photo angle scope; When detecting unit 402 to detection pre-photo angle scope be greater than predetermined undistorted photo angle scope, then think this pre-photo angle scope shooting picture in exist distortion.Under normal circumstances, due to the characteristic of wide-angle camera self, thus, the distortion of wide-angle camera exists always, and wide-angle camera has symmetry characteristic under normal circumstances, with the center of wide-angle camera to both sides, distortion factor presents symmetrical, distortion factor occurred in the prior art, did not do too much description at this.Distortion factor represents the distortion degree of the image that wide-angle camera is taken, the distortion factor of wide-angle camera is larger, illustrate that distortion is larger, and the distortion factor of wide-angle camera within the specific limits, namely distortion factor is less than the situation of a certain predetermined threshold value, then can think that distortion factor is less than region corresponding to a certain predetermined threshold value is orthoscopic zone, and the photo angle scope of its correspondence may be defined as undistorted photo angle scope.
Second determining unit 403, if detect in the shooting picture of pre-photo angle scope to there is situation for described detecting unit 402, determines direction of rotation and the anglec of rotation of described rotatable camera.
Wherein, if detecting unit 402 is detecting that the shooting picture of pre-photo angle scope exists distortion, then the second determining unit 403 is determining direction of rotation and the anglec of rotation of the rotatable camera of terminal.As shown in 1a, be the shooting picture of pre-photo angle scope shown in figure, the region formed between two dotted lines is orthoscopic zone, and the unexpected region of dotted line is distorted region.Then can according to the direction of rotation of the angle difference determination rotatable camera between dotted line and the border of pre-photo angle scope and the anglec of rotation, such as, angle between the left border of the dotted line on the left of in Fig. 1 a and pre-photo angle scope is 5 degree, and the angle between the right side boundary of the dotted line on right side and pre-photo angle scope is 5 degree, then can by rotatable camera first to anticlockwise 5 degree, so just can orthoscopic zone be rotated to pre-photo angle scope, when not carrying out to this process of anticlockwise, rotatable camera only need to right rotation 5 degree, just can orthoscopic zone be rotated to pre-photo angle scope, when to anticlockwise 5 degree, then can only need to right rotation 10 degree.
Photographing unit 404, controls described rotatable camera for the direction of rotation of rotatable camera determined according to described second determining unit 403 and the anglec of rotation and rotates, and take pictures in the process of described rotation.
Wherein, photographing unit 404 can control described rotatable camera according to the direction of rotation of rotatable camera and the anglec of rotation and rotate, and takes pictures in the process of described rotation.Such as, suppose that the direction of rotation of the rotatable camera of terminal is left rotation and right rotation, and direction of rotation and the anglec of rotation are respectively: to anticlockwise 5 degree, to right rotation 15 degree, then terminal can control this camera first to anticlockwise 5 degree, then to right rotation 15 degree.
Terminal described by the embodiment of the present invention is by determining the pre-photo angle scope of the rotatable camera of terminal; Whether the shooting picture detecting described pre-photo angle scope exists distortion; If so, direction of rotation and the anglec of rotation of described rotatable camera is determined; Control described rotatable camera according to the direction of rotation of described rotatable camera and the anglec of rotation to rotate, and take pictures in the process of described rotation.Adopt the embodiment of the present invention, the distorted region in the shooting picture of rotatable camera can be detected, and this distorted region is corrected, to reduce the distortion degree of distorted region.
Refer to Fig. 5, Fig. 5 is the schematic flow sheet of the second embodiment of a kind of terminal that the embodiment of the present invention provides.The method of the terminal described in the present embodiment, comprises step:
First determining unit 501, for determining the pre-photo angle scope of the rotatable camera of terminal.
Wherein, first determining unit 501 can determine the pre-photo angle scope of the rotatable camera of this terminal, user is when the rotatable camera starting terminal, can according to the angular range of the scenery adjustment shooting wanting to take pictures, pre-photo angle scope is exactly that user determines according to the size in region shared by scenery in scene.Terminal first can obtain the touch instruction of the photo angle scope that user selects, according to the pre-photo angle scope of the rotatable camera of this instruction determination terminal.Such as, if the scenery scope in scene is smaller, then pre-photo angle scope can be adjusted to the camera lens scope of common camera, and in this case, the photo obtained of taking pictures distorts very little, can think undistorted; If the scenery scope in scene is comparatively large, exceeded the camera lens scope of common camera, the image of pre-photo angle scope carries out distortion correction possibly.
As a kind of possible execution mode, the rotatable camera of terminal can be front-facing camera or the post-positioned pick-up head of terminal; Or the rotatable camera of terminal can be terminal wirelessly or the camera that controls of wired mode.
Whether detecting unit 502, exist distortion for the shooting picture detecting the pre-photo angle scope that described first determining unit 501 is determined.
Wherein, whether the shooting picture that detecting unit 502 can detect pre-photo angle scope exists distortion, and namely when pre-photo angle scope is determined, terminal can detect the shooting picture of pre-photo angle scope
As a kind of possible execution mode, detecting unit 502 can detect pre-photo angle scope and whether be greater than predetermined undistorted photo angle scope; When detecting unit 502 to detection pre-photo angle scope be greater than predetermined undistorted photo angle scope, then think this pre-photo angle scope shooting picture in exist distortion.Under normal circumstances, due to the characteristic of wide-angle camera self, thus, the distortion of wide-angle camera exists always, and wide-angle camera has symmetry characteristic under normal circumstances, with the center of wide-angle camera to both sides, distortion factor presents symmetrical, distortion factor occurred in the prior art, did not do too much description at this.Distortion factor represents the distortion degree of the image that wide-angle camera is taken, the distortion factor of wide-angle camera is larger, illustrate that distortion is larger, and the distortion factor of wide-angle camera within the specific limits, namely distortion factor is less than the situation of a certain predetermined threshold value, then can think that distortion factor is less than region corresponding to a certain predetermined threshold value is orthoscopic zone, and the photo angle scope of its correspondence may be defined as undistorted photo angle scope.
Second determining unit 503, if detect in the shooting picture of pre-photo angle scope to there is situation for described detecting unit 502, determines direction of rotation and the anglec of rotation of described rotatable camera.
Wherein, if detecting unit 502 is detecting that the shooting picture of pre-photo angle scope exists distortion, then the second determining unit 503 is determining direction of rotation and the anglec of rotation of the rotatable camera of terminal.As shown in 1a, be the shooting picture of pre-photo angle scope shown in figure, the region formed between two dotted lines is orthoscopic zone, and the unexpected region of dotted line is distorted region.Then can according to the direction of rotation of the angle difference determination rotatable camera between dotted line and the border of pre-photo angle scope and the anglec of rotation, such as, angle between the left border of the dotted line on the left of in Fig. 1 a and pre-photo angle scope is 5 degree, and the angle between the right side boundary of the dotted line on right side and pre-photo angle scope is 5 degree, then can by rotatable camera first to anticlockwise 5 degree, so just can orthoscopic zone be rotated to pre-photo angle scope, when not carrying out to this process of anticlockwise, rotatable camera only need to right rotation 5 degree, just can orthoscopic zone be rotated to pre-photo angle scope, when to anticlockwise 5 degree, then can only need to right rotation 10 degree.
Photographing unit 504, controls described rotatable camera for the direction of rotation of rotatable camera determined according to described second determining unit 503 and the anglec of rotation and rotates, and take pictures in the process of described rotation.
Wherein, photographing unit 504 can control described rotatable camera according to the direction of rotation of rotatable camera and the anglec of rotation and rotate, and takes pictures in the process of described rotation.Such as, suppose that the direction of rotation of the rotatable camera of terminal is left rotation and right rotation, and direction of rotation and the anglec of rotation are respectively: to anticlockwise 5 degree, to right rotation 15 degree, then terminal can control this camera first to anticlockwise 5 degree, then to right rotation 15 degree.
Processing unit 505, carries out shear treatment for the image obtained of being taken pictures by described photographing unit 504, to obtain the image of photo angle scope residing for described pre-photo angle scope.
Wherein, processing unit 505 image obtained of photographing unit 504 can being taken pictures carries out shear treatment, to obtain the image of photo angle scope residing for pre-photo angle scope.Further, owing to have passed through rotary course, the pre-photo angle scope that the angular range of the image obtained of thus taking pictures can be original, thus, the image obtained taking pictures is needed to carry out shear treatment, to obtain the image with photo angle scope residing for original pre-photo angle scope.
Terminal described by the embodiment of the present invention is by determining the pre-photo angle scope of the rotatable camera of terminal; Whether the shooting picture detecting described pre-photo angle scope exists distortion; If so, direction of rotation and the anglec of rotation of described rotatable camera is determined; Control described rotatable camera according to the direction of rotation of described rotatable camera and the anglec of rotation to rotate, and take pictures in the process of described rotation, and the described image obtained of taking pictures is carried out shear treatment, to obtain the image of photo angle scope residing for described pre-photo angle scope, so, the orthoscopic image consistent with pre-photo angle scope can be obtained.
Refer to Fig. 6, Fig. 6 is the schematic flow sheet of the 3rd embodiment of a kind of terminal that the embodiment of the present invention provides.The method of the terminal described in the present embodiment, comprises step:
First determining unit 601, for determining the pre-photo angle scope of the rotatable camera of terminal.
Wherein, first determining unit 601 can determine the pre-photo angle scope of the rotatable camera of this terminal, user is when the rotatable camera starting terminal, can according to the angular range of the scenery adjustment shooting wanting to take pictures, pre-photo angle scope is exactly that user determines according to the size in region shared by scenery in scene.Terminal first can obtain the touch instruction of the photo angle scope that user selects, according to the pre-photo angle scope of the rotatable camera of this instruction determination terminal.Such as, if the scenery scope in scene is smaller, then pre-photo angle scope can be adjusted to the camera lens scope of common camera, and in this case, the photo obtained of taking pictures distorts very little, can think undistorted; If the scenery scope in scene is comparatively large, exceeded the camera lens scope of common camera, the image of pre-photo angle scope carries out distortion correction possibly.
As a kind of possible execution mode, the rotatable camera of terminal can be front-facing camera or the post-positioned pick-up head of terminal; Or the rotatable camera of terminal can be terminal wirelessly or the camera that controls of wired mode.
Whether detecting unit 602, exist distortion for the shooting picture detecting the pre-photo angle scope that described first determining unit 601 is determined.
Wherein, whether the shooting picture that detecting unit 602 can detect pre-photo angle scope exists distortion, and namely when pre-photo angle scope is determined, terminal can detect the shooting picture of pre-photo angle scope
As a kind of possible execution mode, detecting unit 602 can detect pre-photo angle scope and whether be greater than predetermined undistorted photo angle scope; When detecting unit 602 to detection pre-photo angle scope be greater than predetermined undistorted photo angle scope, then think this pre-photo angle scope shooting picture in exist distortion.Under normal circumstances, due to the characteristic of wide-angle camera self, thus, the distortion of wide-angle camera exists always, and wide-angle camera has symmetry characteristic under normal circumstances, with the center of wide-angle camera to both sides, distortion factor presents symmetrical, distortion factor occurred in the prior art, did not do too much description at this.Distortion factor represents the distortion degree of the image that wide-angle camera is taken, the distortion factor of wide-angle camera is larger, illustrate that distortion is larger, and the distortion factor of wide-angle camera within the specific limits, namely distortion factor is less than the situation of a certain predetermined threshold value, then can think that distortion factor is less than region corresponding to a certain predetermined threshold value is orthoscopic zone, and the photo angle scope of its correspondence may be defined as undistorted photo angle scope.
Second determining unit 603, if detect in the shooting picture of pre-photo angle scope to there is situation for described detecting unit 602, determines direction of rotation and the anglec of rotation of described rotatable camera.
Wherein, if detecting unit 602 is detecting that the shooting picture of pre-photo angle scope exists distortion, then the second determining unit 603 is determining direction of rotation and the anglec of rotation of the rotatable camera of terminal.As shown in 1a, be the shooting picture of pre-photo angle scope shown in figure, the region formed between two dotted lines is orthoscopic zone, and the unexpected region of dotted line is distorted region.Then can according to the direction of rotation of the angle difference determination rotatable camera between dotted line and the border of pre-photo angle scope and the anglec of rotation, such as, angle between the left border of the dotted line on the left of in Fig. 1 a and pre-photo angle scope is 5 degree, and the angle between the right side boundary of the dotted line on right side and pre-photo angle scope is 5 degree, then can by rotatable camera first to anticlockwise 5 degree, so just can orthoscopic zone be rotated to pre-photo angle scope, when not carrying out to this process of anticlockwise, rotatable camera only need to right rotation 5 degree, just can orthoscopic zone be rotated to pre-photo angle scope, when to anticlockwise 5 degree, then can only need to right rotation 10 degree.
To take pictures subelement 605, control described rotatable camera for the direction of rotation of rotatable camera determined according to described second determining unit 603 and the anglec of rotation and carry out carrying out taking pictures once every predetermined angle in rotary course, to obtain plurality of pictures.
Concatenation unit 606, for carrying out image mosaic by described plurality of pictures.
Wherein, in rotary course, subelement 605 of taking pictures can carry out taking pictures once every predetermined angle, because the angle of taking pictures in rotary course is expanded, once photo taking is difficult to comprise whole scenery, thus, can carry out taking pictures once every predetermined angle, to obtain plurality of pictures, this plurality of pictures is carried out image mosaic by concatenation unit 606, and splicing herein can be analogous to the splicing of panoramic picture.
Terminal described by the embodiment of the present invention is by determining the pre-photo angle scope of the rotatable camera of terminal; Whether the shooting picture detecting described pre-photo angle scope exists distortion; If so, direction of rotation and the anglec of rotation of described rotatable camera is determined; Control described rotatable camera according to the direction of rotation of described rotatable camera and the anglec of rotation to rotate, carry out taking pictures once every predetermined angle, to obtain plurality of pictures in described rotary course; Described plurality of pictures is carried out image mosaic.So, the image of different rotary angle in rotary course can be spliced, undistorted to guarantee original pre-photo angle scope.
Refer to Fig. 7, the structural representation of the 4th embodiment of a kind of terminal that Fig. 7 provides for the embodiment of the present invention.Terminal described in the present embodiment comprises: at least one input equipment 1000; At least one output equipment 2000; At least one processor 3000, such as CPU; With memory 4000, above-mentioned input equipment 1000, output equipment 2000, processor 3000 are connected by bus 5000 with memory 4000.
Wherein, above-mentioned input equipment 1000 can be contact panel, common PC, liquid crystal display screen, touch screen, push button etc.
Above-mentioned memory 4000 can be high-speed RAM memory, also can be non-labile memory (non-volatile memory), such as magnetic disc store.Above-mentioned memory 4000 is for storing batch processing code, and above-mentioned input equipment 1000, output equipment 2000 and processor 3000, for calling the program code stored in memory 4000, perform and operate as follows:
Above-mentioned processor 3000, also specifically for:
Determine the pre-photo angle scope of the rotatable camera of terminal;
Whether the shooting picture detecting described pre-photo angle scope exists distortion;
If so, direction of rotation and the anglec of rotation of described rotatable camera is determined;
Control described rotatable camera according to the direction of rotation of described rotatable camera and the anglec of rotation to rotate, and take pictures in the process of described rotation.
As a kind of possible execution mode, above-mentioned processor 3000 controls described rotatable camera according to the direction of rotation of described rotatable camera and the anglec of rotation and rotates, and after taking pictures in the process of described rotation, also specifically for:
The described image obtained of taking pictures is carried out shear treatment, to obtain the image of photo angle scope residing for described pre-photo angle scope.
In the execution mode that some are feasible, above-mentioned processor 3000, also specifically for:
Direction of rotation and the anglec of rotation of described rotatable camera is determined according to the angle difference between described pre-photo angle scope and predetermined undistorted photo angle scope.
In the execution mode that some are feasible, above-mentioned processor 3000, also specifically for:
Detect described pre-photo angle scope and whether be greater than predetermined undistorted photo angle scope; If so, then detect in the shooting picture of described pre-photo angle scope to there is distortion.
In the execution mode that some are feasible, above-mentioned processor 3000, also specifically for:
Carry out taking pictures once every predetermined angle, to obtain plurality of pictures in described rotary course;
Described plurality of pictures is carried out image mosaic.
The pre-photo angle scope of the rotatable camera of the terminal determination terminal described by the embodiment of the present invention; Whether the shooting picture detecting described pre-photo angle scope exists distortion; If so, direction of rotation and the anglec of rotation of described rotatable camera is determined; Control described rotatable camera according to the direction of rotation of described rotatable camera and the anglec of rotation to rotate, and take pictures in the process of described rotation.Adopt the embodiment of the present invention, the distorted region in the shooting picture of rotatable camera can be detected, and this distorted region is corrected, to reduce the distortion degree of distorted region.
The embodiment of the present invention also provides a kind of computer-readable storage medium, and wherein, this computer-readable storage medium can have program stored therein, and comprises the part or all of step of any one signal processing method recorded in said method embodiment when this program performs.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
It should be noted that, for aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step may can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
In several embodiments that the application provides, should be understood that, disclosed device, the mode by other realizes.Such as, device embodiment described above is only schematic, the division of such as said units, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical or other form.
The above-mentioned unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in various embodiments of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If above-mentioned integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise all or part of step of some instructions in order to make a computer equipment (can be personal computer, server or the network equipment etc., can be specifically the processor in computer equipment) perform each embodiment said method of the present invention.Wherein, and aforesaid storage medium can comprise: USB flash disk, portable hard drive, magnetic disc, CD, read-only memory are (English: Read-Only Memory, abbreviation: ROM) or random access memory (English: Random Access Memory, abbreviation: RAM) etc. various can be program code stored medium.
The above, above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a method for distortion correction, is characterized in that, comprising:
Determine the pre-photo angle scope of the rotatable camera of terminal;
Whether the shooting picture detecting described pre-photo angle scope exists distortion;
If so, direction of rotation and the anglec of rotation of described rotatable camera is determined;
Control described rotatable camera according to the direction of rotation of described rotatable camera and the anglec of rotation to rotate, and take pictures in the process of described rotation.
2. the method for claim 1, is characterized in that, the described direction of rotation according to described rotatable camera and the anglec of rotation control described rotatable camera and rotate, and after taking pictures in the process of described rotation, described method also comprises:
The described image obtained of taking pictures is carried out shear treatment, to obtain the image of photo angle scope residing for described pre-photo angle scope.
3. the method as described in any one of claim 1 or 2, is characterized in that, described direction of rotation and the anglec of rotation determining described rotatable camera, comprising:
Direction of rotation and the anglec of rotation of described rotatable camera is determined according to the angle difference between described pre-photo angle scope and predetermined undistorted photo angle scope.
4. the method as described in any one of claim 1 or 2, is characterized in that, whether the shooting picture of the described pre-photo angle scope of described detection occurs distortion, comprising:
Detect described pre-photo angle scope and whether be greater than predetermined undistorted photo angle scope; If so, then detect in the shooting picture of described pre-photo angle scope to there is distortion.
5. the method as described in any one of claim 1 or 2, is characterized in that, describedly takes pictures in the process of described rotation, comprising:
Carry out taking pictures once every predetermined angle, to obtain plurality of pictures in described rotary course;
Described plurality of pictures is carried out image mosaic.
6. a terminal, is characterized in that, comprising:
First determining unit, for determining the pre-photo angle scope of the rotatable camera of terminal;
Whether detecting unit, exist distortion for the shooting picture detecting the pre-photo angle scope that described first determining unit is determined;
Second determining unit, if detect in the shooting picture of pre-photo angle scope to there is situation for described detecting unit, determines direction of rotation and the anglec of rotation of described rotatable camera;
Photographing unit, controls described rotatable camera for the direction of rotation of rotatable camera determined according to described second determining unit and the anglec of rotation and rotates, and take pictures in the process of described rotation.
7. terminal as claimed in claim 6, it is characterized in that, described terminal also comprises:
Processing unit, carries out shear treatment for the image obtained of being taken pictures by described photographing unit, to obtain the image of photo angle scope residing for described pre-photo angle scope.
8. the terminal as described in any one of claim 6 or 7, is characterized in that, described second determining unit specifically for:
Direction of rotation and the anglec of rotation of described rotatable camera is determined according to the angle difference between described pre-photo angle scope and predetermined undistorted photo angle scope.
9. the terminal as described in any one of claim 6 or 7, is characterized in that, described detecting unit specifically for:
Detect the pre-photo angle scope that described first determining unit determines and whether be greater than predetermined undistorted photo angle scope;
Wherein, if described detecting unit detects that the pre-photo angle scope that described first determining unit is determined is greater than predetermined undistorted photo angle scope, then think described pre-photo angle scope shooting picture in exist distortion.
10. the terminal as described in any one of claim 6 or 7, it is characterized in that, described photographing unit comprises:
To take pictures subelement, for carrying out taking pictures once every predetermined angle in described rotary course, to obtain plurality of pictures;
Concatenation unit, carries out image mosaic for the plurality of pictures obtained of being taken pictures by described subelement of taking pictures.
CN201510382629.1A 2015-06-30 2015-06-30 The method and terminal of a kind of distortion correction Expired - Fee Related CN104994286B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510382629.1A CN104994286B (en) 2015-06-30 2015-06-30 The method and terminal of a kind of distortion correction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510382629.1A CN104994286B (en) 2015-06-30 2015-06-30 The method and terminal of a kind of distortion correction

Publications (2)

Publication Number Publication Date
CN104994286A true CN104994286A (en) 2015-10-21
CN104994286B CN104994286B (en) 2018-01-19

Family

ID=54306036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510382629.1A Expired - Fee Related CN104994286B (en) 2015-06-30 2015-06-30 The method and terminal of a kind of distortion correction

Country Status (1)

Country Link
CN (1) CN104994286B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105611161A (en) * 2015-12-24 2016-05-25 广东欧珀移动通信有限公司 Photographing control method, photographing control device and photographing system
CN107682621A (en) * 2017-09-06 2018-02-09 深圳天珑无线科技有限公司 Rotate photographic method, device, mobile terminal and computer-readable recording medium
CN109120854A (en) * 2018-10-09 2019-01-01 北京旷视科技有限公司 Image processing method, device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101556692A (en) * 2008-04-09 2009-10-14 西安盛泽电子有限公司 Image mosaic method based on neighborhood Zernike pseudo-matrix of characteristic points
EP2200418A2 (en) * 2008-12-22 2010-06-23 Hitachi High-Tech Instruments Company, Ltd. Method and apparatus for mounting electronic components
CN102169573A (en) * 2011-03-23 2011-08-31 北京大学 Real-time distortion correction method and system of lens with high precision and wide field of view
US20130050401A1 (en) * 2009-09-04 2013-02-28 Breitblick Gmbh Portable wide-angle video recording system
CN104216509A (en) * 2013-06-03 2014-12-17 联想(北京)有限公司 Electronic equipment and information processing method
CN104639832A (en) * 2015-01-23 2015-05-20 广东欧珀移动通信有限公司 Panoramic photography method and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101556692A (en) * 2008-04-09 2009-10-14 西安盛泽电子有限公司 Image mosaic method based on neighborhood Zernike pseudo-matrix of characteristic points
EP2200418A2 (en) * 2008-12-22 2010-06-23 Hitachi High-Tech Instruments Company, Ltd. Method and apparatus for mounting electronic components
US20130050401A1 (en) * 2009-09-04 2013-02-28 Breitblick Gmbh Portable wide-angle video recording system
CN102169573A (en) * 2011-03-23 2011-08-31 北京大学 Real-time distortion correction method and system of lens with high precision and wide field of view
CN104216509A (en) * 2013-06-03 2014-12-17 联想(北京)有限公司 Electronic equipment and information processing method
CN104639832A (en) * 2015-01-23 2015-05-20 广东欧珀移动通信有限公司 Panoramic photography method and terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105611161A (en) * 2015-12-24 2016-05-25 广东欧珀移动通信有限公司 Photographing control method, photographing control device and photographing system
CN105611161B (en) * 2015-12-24 2019-03-12 Oppo广东移动通信有限公司 Camera control method, photographing control device and camera system
CN107682621A (en) * 2017-09-06 2018-02-09 深圳天珑无线科技有限公司 Rotate photographic method, device, mobile terminal and computer-readable recording medium
CN109120854A (en) * 2018-10-09 2019-01-01 北京旷视科技有限公司 Image processing method, device, electronic equipment and storage medium
CN109120854B (en) * 2018-10-09 2020-10-23 北京旷视科技有限公司 Image processing method, image processing device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN104994286B (en) 2018-01-19

Similar Documents

Publication Publication Date Title
CN104994281A (en) Method for correcting face distortion and terminal
CN105141826A (en) Distortion correction method and terminal
CN106605403B (en) Shooting method and electronic equipment
KR102010712B1 (en) Distortion Correction Method and Terminal
US8396316B2 (en) Method and apparatus for processing image
CN104869304B (en) Method for displaying focusing and electronic equipment applying same
CN104349044A (en) Method and electronic equipment for shooting panoramic picture
KR102155895B1 (en) Device and method to receive image by tracking object
CN104468995A (en) Method for controlling cameras and mobile terminal
US20220103743A1 (en) Picture focusing method, apparatus, terminal, and corresponding storage medium
EP3480646A1 (en) Method for adjusting angle of shooting module element and head-mounted display device
CN106815809B (en) Picture processing method and device
CN104735356A (en) Panorama picture shooting method and device
CN104765576A (en) Data storage method and data storage device
CN104994286A (en) Distortion collection method and terminal
WO2015029114A1 (en) Electronic device and notification control method
CN109429008B (en) Image processing apparatus, information processing system, information processing method, and storage medium
CN104869317A (en) Intelligent device shooting method and device
CN104049846A (en) Information processing method and electronic device
CN107705275B (en) Photographing method and mobile terminal
CN104486553A (en) Method and terminal for taking panoramic photos
US10629138B2 (en) Mobile terminal and adjusting method thereof, and computer readable storage medium
EP3328066B1 (en) Electronic device and method for autofocusing
CN105072326A (en) Method for controlling rotation of camera and terminal
CN103826061A (en) Information processing method and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

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: 20180119