CN107566720B - A kind of method and mobile terminal of the calibration value updating mobile terminal - Google Patents
A kind of method and mobile terminal of the calibration value updating mobile terminal Download PDFInfo
- Publication number
- CN107566720B CN107566720B CN201710743272.4A CN201710743272A CN107566720B CN 107566720 B CN107566720 B CN 107566720B CN 201710743272 A CN201710743272 A CN 201710743272A CN 107566720 B CN107566720 B CN 107566720B
- Authority
- CN
- China
- Prior art keywords
- calibration value
- uncalibrated image
- mould group
- dual camera
- deviation
- 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.)
- Active
Links
Abstract
The present invention provides the methods and mobile terminal of a kind of calibration value for updating mobile terminal, dual camera mould group is provided on the mobile terminal, the dual camera mould group includes the first camera and second camera, the described method includes: being shot respectively by first camera and the second camera to same target object, obtain corresponding first uncalibrated image and the second uncalibrated image, based on preset dual camera mould group tolerance calibration value, deviation compensation processing is carried out to first uncalibrated image or second uncalibrated image, the uncalibrated image of processing is not compensated based on deviation compensation treated uncalibrated image and, the dual camera mould group tolerance calibration value is updated.The present invention can be improved the accuracy of dual camera mould group tolerance calibration value, promote the shooting effect of dual camera mould group.
Description
Technical field
The present invention relates to field of terminal technology, more particularly to the method and movement of a kind of calibration value for updating mobile terminal
Terminal.
Background technique
With the development of terminal technology, the application of a variety of mobile terminals such as mobile phone, laptop, tablet computer is also more next
It is more extensive.Dual camera mould group usually can be set in mobile terminal, which includes two cameras, thus real
A variety of shooting functions such as existing depth of field virtualization, rear focusing, picture quality enhancing and optical zoom, improve shooting effect.Usually
Guarantee shooting effect, the relative position, optical axis between two cameras are parallel, and image planes are consistent, but in production, assemble and make
During, position of two cameras etc. may change in camera module, thus make two cameras it
Between relative position change and optical axis is not parallel etc., therefore, it is necessary to demarcate to mobile terminal.
In the prior art, can before mobile terminal factory, dual camera mould group which is installed
It is demarcated, obtains the mould group tolerance calibration value of dual camera mould group, to determine due to two camera shootings caused by producing and assembling
Position and optical axis variation between head, later, the figure that shooting can be obtained based on the mould group tolerance calibration value demarcated before factory
As carrying out deviation compensation, to obtain the image of high quality.
But conventionally, as mobile terminal is during use, the mould group between the optical axis of two cameras
Tolerance can also change, and the mould group tolerance calibration value demarcated before based on factory carries out deviation compensation to the image that shooting obtains
When, it is difficult to effective deviation compensation is carried out to the image of shooting, influences shooting effect.
Summary of the invention
The present invention provides method, mobile terminal and the computer-readable storage medium of a kind of calibration value for updating mobile terminal
Matter, to solve the problems, such as that the accuracy for carrying out deviation compensation to the image of shooting is lower and shooting effect is poor.
According to the present invention in a first aspect, provide a kind of method of calibration value for updating mobile terminal, it is described it is mobile eventually
Dual camera mould group is provided on end, the dual camera mould group includes the first camera and second camera, and the update moves
The method of the calibration value of dynamic terminal includes:
Same target object is shot by first camera and the second camera respectively, is corresponded to
The first uncalibrated image and the second uncalibrated image;
Based on preset dual camera mould group tolerance calibration value, to first uncalibrated image or second uncalibrated image
Carry out deviation compensation processing;
The uncalibrated image for not compensating based on deviation compensation treated uncalibrated image and processing, to the dual camera
Mould group tolerance calibration value is updated.
Second aspect according to the present invention, provides a kind of mobile terminal, second camera, and the mobile terminal includes:
Shooting module, for being carried out respectively by first camera and the second camera to same target object
Shooting, obtains corresponding first uncalibrated image and the second uncalibrated image;
Compensating module, for being based on preset dual camera mould group tolerance calibration value, to first uncalibrated image or institute
It states the second uncalibrated image and carries out deviation compensation processing;
Update module, for not compensating based on deviation compensation treated uncalibrated image and the uncalibrated image of processing,
The dual camera mould group tolerance calibration value is updated.
The third aspect according to the present invention provides a kind of mobile terminal, the mobile terminal include processor, memory and
It is stored in the computer program that can be run on the memory and on the processor, the computer program is by the processing
Device realizes the step of method of the calibration value of the present invention for updating mobile terminal when executing.
Fourth aspect according to the present invention provides a kind of computer readable storage medium, the computer-readable storage medium
Computer program is stored in matter, and the calibration of the present invention for updating mobile terminal is realized when computer program is executed by processor
The step of method of value.
In embodiments of the present invention, it for being provided with the mobile terminal of dual camera mould group, can be taken the photograph respectively by first
As head and second camera the first uncalibrated image of acquisition and the second uncalibrated image, according to preset dual camera mould group tolerance mark
Definite value carries out deviation compensation processing to the first uncalibrated image or the second uncalibrated image, then according to deviation compensation treated calibration
Image and the uncalibrated image for not compensating processing, determine dual camera mould group tolerance calibration value to shooting obtain image it is inclined
Poor compensation effect, and then dual camera mould group tolerance calibration value is updated, improve dual camera mould group tolerance calibration value
Accuracy, improve shooting effect.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention
Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 shows the flow chart of the method for the calibration value of one of embodiment of the present invention one update mobile terminal;
The process of the method for the calibration value for updating mobile terminal Fig. 2 shows according to embodiments of the present invention one of two
Figure;
Fig. 3 shows the schematic diagram of one of embodiment of the present invention one photographic subjects object;
Fig. 4 shows the schematic diagram of one of two first uncalibrated image according to embodiments of the present invention;
Fig. 5 shows the schematic diagram of one of two second uncalibrated image according to embodiments of the present invention;
Fig. 6 shows the process of the method for the calibration value that according to embodiments of the present invention one of two update mobile terminal
Figure;
Fig. 7 shows the structural block diagram of one of three mobile terminal according to embodiments of the present invention;
Fig. 8 shows the structural block diagram of one of four mobile terminal according to embodiments of the present invention;
Fig. 9 shows the structural block diagram of one of five mobile terminal according to embodiments of the present invention.
Specific embodiment
The exemplary embodiment that the present invention will be described in more detail below with reference to accompanying drawings.Although showing the present invention in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the present invention without should be by embodiments set forth here
It is limited.It is to be able to thoroughly understand the present invention on the contrary, providing these embodiments, and can be by the scope of the present invention
It is fully disclosed to those skilled in the art.
Embodiment one
Referring to Fig.1, the flow chart of the method for the calibration value of the update mobile terminal of the embodiment of the present invention one is shown, it is described
Dual camera mould group is provided on mobile terminal, the dual camera mould group includes the first camera and second camera, described
The method for updating the calibration value of mobile terminal can specifically include following steps:
Step 101, same target object is shot by first camera and the second camera respectively,
Obtain corresponding first uncalibrated image and the second uncalibrated image.
Due to usually there is certain distance between two cameras in dual camera mould group, i.e. the optical center of camera lens does not weigh
It closes, then when being taken pictures by two cameras to same object, which is generally also difficult to simultaneously in two cameras
Center;And if pass through two cameras pair when the optical axis of two cameras in dual camera mould group is not parallel
The angle that same object is taken pictures also can be different.It that is to say, if the mould group tolerance of dual camera mould group changes, these
Variation can the position in the image that two cameras are shot or angle embody respectively according to same object.
Mobile terminal in use, in dual camera mould group set by the mobile terminal, the phase of two cameras
It may also can change to the relative angle between the optical axis of position or two cameras, i.e., the dual camera mould group is real
The mould group tolerance on border and preset dual camera mould group tolerance calibration value are not consistent, so as to cause the figure obtained to shooting is difficult to
As being difficult to carry out effective deviation compensation, shooting effect is poor.
Therefore, in order to be carried out more in order to subsequent according to mould group tolerance calibration value of the obtained image of shooting to dual camera
Newly, it to improve the accuracy of dual camera mould group tolerance calibration value, reduces and is difficult to that the image that shooting obtains is difficult to carry out effectively
Deviation compensation possibility, improve shooting effect, can respectively by the first camera and second camera to target object into
Row shooting, obtains the first uncalibrated image and the second uncalibrated image.
Target object may include plane for the first uncalibrated image of acquisition and the second uncalibrated image, the target object
The object of object or solid, for example, the reference object can be the 2D gridiron pattern picture of standard.
First camera can be any one camera in dual camera mould group, for example, wrapping when in dual camera mould group
When including main camera and secondary camera, the first camera can be main camera.
In order to ensure obtaining the first uncalibrated image and during the second uncalibrated image, target object and camera in pairs
Relative position and angle between mould group do not change, and can control the first camera simultaneously and obtain the first uncalibrated image, control
Second camera processed obtains the second uncalibrated image.
Preset dual camera mould group tolerance calibration value may include in translation tolerance calibration value and rotation tolerance calibration value
At least one.Wherein, translation tolerance calibration value is used to illustrate that the relative position between the first camera and second camera to become
Change, rotation tolerance calibration value is used to illustrate the relative angle variation between the first camera and the optical axis of second camera.It can be with
The mould group tolerance of dual camera mould group is demarcated before current time, obtains the dual camera mould group tolerance calibration value,
And the dual camera mould group tolerance calibration value is stored into the storage of dual camera mould group, such as before mobile terminal factory
Or before the factory of dual camera mould group, the mould group tolerance of dual camera mould group is demarcated, and obtained by calibrating pair is imaged
Head mould group tolerance calibration value is stored.
In embodiments of the present invention, it is preferred that in order to improve the figure for getting the first uncalibrated image or the second uncalibrated image
Image quality amount mobile terminal can be fixed by equipment such as tripods.
In embodiments of the present invention, it is preferred that get the first uncalibrated image and the second uncalibrated image to improve
Picture quality can be adjusted the shooting environmental shot by the dual camera mould group to target object, for example, ring
Border colour temperature 5000K (Kelvin), intensity of illumination are greater than or equal to 500lux (Lux), uniform lighting etc..
Step 102, it is based on preset dual camera mould group tolerance calibration value, to first uncalibrated image or described second
Uncalibrated image carries out deviation compensation processing.
In order to determine whether the current mould group tolerance of dual camera changes, preset double camera module tolerance calibration values
Whether effective deviation compensation processing can be carried out to the image that shooting obtains, preset dual camera mould group tolerance can be passed through
Calibration value carries out deviation compensation processing to the first uncalibrated image or the second uncalibrated image, in order to which according to deviation compensation, treated
Uncalibrated image and the uncalibrated image for not compensating processing update double camera module tolerance calibration values.
The configuration parameter that the dual camera mould group can be obtained from the storage of dual camera mould group, including each camera
Pixel, focal length, focal length ratio, f-number, double parallax ranges (the distance between optical center of i.e. two cameras) and default taken the photograph
Dual camera mould group tolerance calibration value the dual camera mould group tolerance calibration value is based on by preset bias compensation,
According to the pixel of each camera, focal length, focal length ratio, f-number, double parallax ranges etc. of taking the photograph to uncalibrated image progress deviation compensation
Processing.
Bias compensation is used to carry out deviation compensation processing to image.
Step 103, the uncalibrated image of processing is not compensated based on deviation compensation treated uncalibrated image and, to described
Dual camera mould group tolerance calibration value is updated.
Due to having carried out deviation compensation processing to the first uncalibrated image or the second uncalibrated image, it is possible to by target object
Position or angle in deviation compensation treated uncalibrated image, with do not compensate processing uncalibrated image in position or angle
Degree is compared, so that it is determined that whether dual camera mould group tolerance calibration value can obtain image to shooting carries out effective compensation,
And whether dual camera mould group tolerance calibration value is updated.
If target object position or angle in deviation compensation treated uncalibrated image, and processing is not being compensated
Uncalibrated image in position or angle there are deviations, then illustrate preset dual camera mould group tolerance calibration value and actual mould
Group tolerance is inconsistent, i.e., whether dual camera mould group tolerance calibration value can fail to obtain shooting image progress effective compensation,
Can according to target object in deviation compensation treated uncalibrated image position or angle, and in the mark for not compensating processing
Determine the position in image or the deviation between angle, dual camera mould group tolerance calibration value is updated.
Wherein it is possible to be come true according to target object at least one pixel coordinate in above two uncalibrated image respectively
Set the goal object in above two uncalibrated image position or angle between with the presence or absence of deviation.For example, target object is distinguished
The pixel coordinate of same point in above two uncalibrated image, alternatively, target object is respectively in above two uncalibrated image
The distance between multiple pixel coordinates.
Can according to target object in deviation compensation treated uncalibrated image position or angle, and do not compensating
The deviation between position or angle in the uncalibrated image of processing is increased or is subtracted to dual camera mould group tolerance calibration value
It is few, to keep dual camera mould group tolerance calibration value consistent with the actual mould group tolerance of dual camera mould group.
In embodiments of the present invention, it for being provided with the mobile terminal of dual camera mould group, can be taken the photograph respectively by first
As head and second camera the first uncalibrated image of acquisition and the second uncalibrated image, according to preset dual camera mould group tolerance mark
Definite value carries out deviation compensation processing to the first uncalibrated image or the second uncalibrated image, then according to deviation compensation treated calibration
Image and the uncalibrated image for not compensating processing, determine dual camera mould group tolerance calibration value to shooting obtain image it is inclined
Poor compensation effect, and then dual camera mould group tolerance calibration value is updated, improve dual camera mould group tolerance calibration value
Accuracy, improve shooting effect.
Embodiment two
Referring to Fig. 2, the flow chart of the method for the calibration value of the update mobile terminal of the embodiment of the present invention two is shown, it is described
Dual camera mould group is provided on mobile terminal, the dual camera mould group includes the first camera and second camera, described
The method for updating the calibration value of mobile terminal can specifically include following steps:
Step 201, when target object is in the center of the camera lens of first camera, the mobile terminal point
Same target object is not shot by first camera and the second camera, obtains corresponding first calibration
Image and the second uncalibrated image.
For the ease of subsequent calculating target object in deviation compensation treated uncalibrated image position or angle, and not
The position in the uncalibrated image of processing or the deviation between angle are compensated, and then improves and dual camera mould group tolerance is demarcated
The efficiency that value is updated can obtain the first calibration at the center for the camera lens that target object is in the first camera
Image and the second uncalibrated image.
Shooting image can be treated by the first camera and carries out preview, and detects whether the reference object is located in camera lens
In optical center.Wherein, target object is in optical center and refers to that the center of the target object is in the optical axis of the first camera.
For example, as shown in figure 3, target object be standard 2D gridiron pattern picture, first can be full of between two parties in the gridiron pattern picture and taken the photograph
As the camera lens of head, and the four of the gridiron pattern picture while with the first cam lens four while be overlapped when, determine at the target object
In the center of the camera lens of the first camera.
It certainly, in practical applications, can be to be captured by the first camera preview by user or related technical personnel
Image adjusts shooting angle, the target object is made to be in the optical center of the first camera.
Mobile terminal is respectively in such a way that the first camera and second camera shoot target object, Ke Yican
See the associated description in aforementioned, no longer repeats one by one herein.
In embodiments of the present invention, it is preferred that for the ease of determining whether target object is in the camera lens of the first camera
Center, the target object be rectangular image, such as it is aforementioned in standard 2D gridiron pattern graph card.
Step 202, the mobile terminal is based on preset dual camera mould group tolerance calibration value to second calibration maps
As carrying out deviation compensation processing.
Due to aforementioned when obtaining the first uncalibrated image and the second uncalibrated image, target object is in the mirror of the first camera
The center of head, so being carried out pair for the ease of subsequent the second uncalibrated image by after compensation deals and the first uncalibrated image
Than, according to position of the target object in the second uncalibrated image after the first uncalibrated image and compensation deals or angle whether one
It causes, and then whether accurate judgement dual camera mould group tolerance calibration value effectively carries out effective deviation compensation to the second uncalibrated image,
Deviation compensation processing can be carried out to the second uncalibrated image based on preset dual camera mould group tolerance calibration value.
Preset dual camera mould group tolerance calibration value may include the first translation tolerance calibration value and the first rotation tolerance
At least one of calibration value, it is possible to which deviation benefit is carried out to second uncalibrated image by the first translation tolerance calibration value
Processing is repaid, and/or, deviation compensation processing is carried out to second uncalibrated image by the first rotation tolerance calibration value.
Wherein, the first translation tolerance calibration value may include that x-axis translation tolerance calibration value and y-axis translate tolerance calibration value,
First rotation tolerance calibration value may include x-axis rotation tolerance calibration value and y-axis rotation tolerance calibration value.
Certainly, in practical applications, if being when target object is in the centre bit of the camera lens of second camera in aforementioned
It, here can be with when setting, and obtaining the first uncalibrated image and the second uncalibrated image by the first camera and second camera respectively
Deviation compensation processing is carried out to the first uncalibrated image.
Step 203, the mobile terminal is based on first uncalibrated image and deviation compensation treated second mark
Determine image, calculates at least one of shifting deviation and rotational variations.
Since the actual mould group tolerance of dual camera mould group and dual camera mould group tolerance calibration value may be not identical, packet
At least one of shifting deviation and rotation tolerance are included, so in order to carry out more to dual camera mould group tolerance calibration value
Newly, the accuracy of dual camera mould group tolerance calibration value is improved, so as to the image accurately shot to dual camera
Deviation compensation is carried out, the effect for shooting image by dual camera is improved, can calculate in shifting deviation and rotational variations extremely
It is one few.
Shifting deviation is the difference between the actual translation tolerance of dual camera mould group and the first translation tolerance calibration value, is turned
Dynamic deviation is the difference between the actual rotation tolerance of dual camera mould group and the first rotation tolerance calibration value.
In embodiments of the present invention, due to when be not present shifting deviation when, after the first uncalibrated image and deviation compensation
In second uncalibrated image, the center of the corresponding image of target object is overlapped with the center of the first uncalibrated image, and and deviation compensation
The center of the second uncalibrated image afterwards is overlapped, otherwise, the center of the corresponding image of target object and the center of the first uncalibrated image
It is overlapped, and is not overlapped with the center of the second uncalibrated image after deviation compensation, be that is to say, shifting deviation can pass through target object
The position in the second uncalibrated image after the first uncalibrated image and deviation compensation is embodied respectively at the center of corresponding image, institute
With for shifting deviation, in order to which shifting deviation is fast and accurately calculated, it is preferred that can determine the target object
The center of first pixel coordinate and the target object of the center in first uncalibrated image is in deviation compensation processing
The second pixel coordinate in second uncalibrated image afterwards is based on the first pixel coordinate and second pixel
Coordinate determines the shifting deviation of the dual camera mould group.
By taking the first uncalibrated image as an example, position of the target object in the first uncalibrated image can be determined by image recognition
It sets and the center of target object, so that it is determined that pixel coordinate of the center of target object in the first uncalibrated image.
Wherein, shifting deviation may include x-axis shifting deviation and y-axis shifting deviation.The x coordinate of second pixel coordinate with
The difference of the x coordinate of first pixel coordinate, as x-axis shifting deviation, the y-coordinate and the first pixel of the second pixel coordinate
The difference of the y-coordinate of coordinate, as y-axis shifting deviation.
X-axis shifting deviation can be expressed as Δ X1=x0-x'0, wherein Δ X1Indicate x-axis shifting deviation, x0Indicate the second picture
The x coordinate of vegetarian refreshments coordinate, x'0Indicate the x coordinate of the first pixel coordinate.
Y-axis shifting deviation can be expressed as Δ Y1=y0-y'0, wherein Δ Y1Indicate y-axis shifting deviation, y0Indicate the second picture
The y-coordinate of vegetarian refreshments coordinate, y'0Indicate the y-coordinate of the first pixel coordinate.
Certainly, since the first uncalibrated image and the second uncalibrated image are the camera lens that image to be captured is in the first camera
Center claps to obtain, i.e., the center of target object is centainly overlapped with the center of the first uncalibrated image, so, it can will shoot
Pixel coordinate to the central point of image is set as (0,0), and in this case, x-axis shifting deviation can be expressed as Δ X1=
x0, y-axis shifting deviation can be expressed as Δ Y1=y0。
For example, mobile terminal includes main camera (the first camera) and secondary camera (second camera), target object
For the 2D gridiron pattern graph card of standard, shooting obtains the first uncalibrated image as shown in figure 4, deviation compensation treated the second calibration maps
As shown in Figure 5.Wherein, in Fig. 4, the image of gridiron pattern graph card is full of entire first uncalibrated image between two parties, in Fig. 5, by
In the visual angle of secondary camera extensively in main camera, so the image of gridiron pattern graph card only occupies the part in the second uncalibrated image
Region.Obtaining pixel coordinate of the center of gridiron pattern graph card in the first uncalibrated image by image recognition is (40,60),
Deviation compensation treated second calibration in pixel coordinate be (45,66).Alternatively, in the examples described above, gridiron pattern graph card
Pixel coordinate of the center in the first uncalibrated image be (0,0), the pixel in deviation compensation treated the second calibration
Point coordinate is (5,6).X-axis shifting deviation is 45-40=5, and y-axis shifting deviation is 66-60=6.
In addition, in practical applications, shifting deviation can be expressed asThat is the first picture
The distance between vegetarian refreshments coordinate and the second pixel coordinate.
In embodiments of the present invention, due to when be not present rotational variations when, target object each side in the first uncalibrated image
Ratio between side length, it is consistent with ratio of the target object between side side length each in the second uncalibrated image after deviation processing,
So for rotational variations, it is preferred that can determine the rectangular image in second uncalibrated image after compensation deals
The side length on each side determines the rotational variations of the dual camera mould group based on the side length on each side.
It, can be by image recognition, to determine the image of target object in the first calibration maps by taking the first uncalibrated image as an example
The side length on each side and each side as in.
Wherein, rotational variations may include x-axis rotational variations and y-axis rotational variations.The image of target object is in the first mark
Determine in image, be parallel to the ratio of two side side lengths of x-axis, with the image of target object in deviation compensation treated the second mark
Determine in image, the difference being parallel between the ratio of two side side lengths of x-axis, as x-axis rotational variations.The image of target object
In the first uncalibrated image, it is parallel to the ratio of two side side lengths of y-axis, the image with target object is after deviation compensation processing
The second uncalibrated image in, the difference being parallel between the ratio of two side side lengths of y-axis, as y-axis rotational variations.
X-axis rotational variations can be expressed asWherein, Δ X2Indicate x-axis rotational variations, x'1And x'2Table
Show that the image of target object is parallel to two side side lengths of x-axis, x in the first uncalibrated image1And x2Indicate the image of target object
Two side side lengths of x-axis are parallel in deviation compensation treated the second uncalibrated image.
Y-axis rotational variations can be expressed asWherein, Δ Y2Indicate y-axis rotational variations, y'1And y'2Table
Show that the image of target object is parallel to two side side lengths of y-axis, y in the first uncalibrated image1And y2Indicate the image of target object
Two side side lengths of y-axis are parallel in deviation compensation treated the second uncalibrated image.
Certainly, from the foregoing it will be appreciated that when target object is rectangle, such as when gridiron pattern graph card, the first uncalibrated image and second
Uncalibrated image can be full of the camera lens of the first camera, and four sides of the target object and the first camera in target object between two parties
Four sides of camera lens shoot to obtain when being overlapped, so, x'1And x'2It is equal, and y'1And y'2Equal, therefore, x-axis rotational variations can be with
It is expressed asY-axis rotational variations can be expressed as
For example, measurement obtains x in Fig. 51It is 90, x2It is 100, thenΔX2ForMeasurement obtains
y1It is 60, y2It is 62, thenΔY2For
Step 204, the mobile terminal is according at least one of the shifting deviation and the rotational variations, judgement
It is no that dual camera mould group tolerance calibration value is updated.
Due to when there are deviations between dual camera mould group tolerance calibration value and the actual mould group tolerance of dual camera, but should
When deviation is in a certain range, since human eye is to the limited sensitivity of image detail, by bias compensation to shooting
To image compensate after, for human eye, have been able to reach preferable visual effect, i.e. deviation compensation effect is preferable.
So in order to according to the mould group tolerance of storage under the deviation compensation effect of image still preferable situation, being reduced or avoided pair
Whether the mould group tolerance of storage is updated, to save cost, it can be determined that be updated to mould group tolerance.
In embodiments of the present invention, it is preferred that judge to be updated dual camera mould group tolerance calibration value to improve
Accuracy, mobile terminal may determine that whether the shifting deviation is greater than shifting deviation threshold value, if the shifting deviation is big
In the shifting deviation threshold value, then executes and described the first translation tolerance calibration value is updated according to the shifting deviation
The step of;And/or judge whether the rotational variations are greater than rotational variations threshold value, if the rotational variations are greater than described turn
Dynamic deviation threshold value then executes described the step of being updated according to the rotational variations to the first rotation tolerance calibration value.
Shifting deviation threshold value or rotational variations threshold value can be by being determined in advance to obtain, for example, receiving the numerical value etc. submitted.
For example, shifting deviation threshold value can be 10, rotational variations threshold value can be
Since shifting deviation may include x-axis shifting deviation and y-axis shifting deviation, rotational variations may include x-axis rotation
Deviation and y-axis rotational variations, it is possible to respectively compare x-axis shifting deviation and y-axis shifting deviation with shifting deviation threshold value
Compared with, when at least one of x-axis shifting deviation and y-axis shifting deviation be greater than shifting deviation threshold value when, determine that shifting deviation is greater than
Shifting deviation threshold value.It is similar, x-axis rotational variations and y-axis rotational variations are compared with rotational variations threshold value respectively, work as x
When at least one of axis rotational variations and y-axis rotational variations are greater than rotational variations threshold value, it is inclined to determine that rotational variations are greater than rotation
Poor threshold value.
It certainly, in practical applications, can in order to further increase the accuracy for judging whether to be updated to mould group tolerance
X-axis shifting deviation threshold value and y-axis shifting deviation threshold value is respectively set, so that x-axis shifting deviation, y-axis shifting deviation be distinguished
It is compared with corresponding threshold value, and when any of x-axis shifting deviation and y-axis shifting deviation are greater than corresponding threshold value,
Determine that shifting deviation is greater than shifting deviation threshold value.It is similar, x-axis rotational variations threshold value and y-axis rotational variations can be respectively set
Threshold value, to x-axis rotational variations, y-axis rotational variations are compared with corresponding threshold value respectively, and in x-axis rotational variations and y
When any of axis rotational variations are greater than corresponding threshold value, determine that rotational variations are greater than rotational variations threshold value.
Step 205, the mobile terminal is according at least one of the shifting deviation and the rotational variations, to described
Dual camera mould group tolerance calibration value is updated.
In order to ensure dual camera mould group tolerance calibration value is consistent with the actual mould group tolerance of dual camera mould group, improve
The accuracy of dual camera mould group tolerance calibration value improves shooting effect so that it is guaranteed that carrying out the accuracy of deviation compensation to image
Fruit can be updated dual camera mould group tolerance calibration value.
The first translation tolerance calibration value can be updated according to the shifting deviation, and/or, according to described turn
Dynamic deviation is updated the first rotation tolerance calibration value.
It is updated if it is to the first translation tolerance calibration value, shifting deviation and the first translation tolerance can be subjected to phase
Add, to be updated to obtain the second translation tolerance calibration value to the first translation tolerance.Wherein it is possible to by x-axis shifting deviation and x
Axis translation tolerance calibration value is added, and institute's value is updated x-axis translation tolerance calibration value;Correspondingly, y-axis is put down
It moves deviation to be added with y-axis translation tolerance calibration value, institute's value is updated y-axis translation tolerance calibration value.
For example, it is -3 that the first translation tolerance calibration value, which includes x-axis translation tolerance calibration value, y-axis translation tolerance calibration value is
4, x-axis shifting deviation is 5, and y-axis shifting deviation is 6, then updated x-axis translation tolerance calibration value is -3+5=2, updated
Y-axis shifting deviation calibration value is 4+6=10.It that is to say, it includes x-axis translation tolerance that the second translation tolerance calibration value is obtained after update
Calibration value is 2, and it is 10 that y-axis, which translates tolerance calibration value,.
It is updated if it is to the first rotation tolerance calibration value, it can be by rotational variations and the first rotation tolerance calibration value
It is added, to be updated to obtain the second rotation tolerance calibration value to the first rotation tolerance calibration value.Wherein it is possible to by x
Axis rotational variations are added with x-axis rotation tolerance calibration value, and institute's value is updated x-axis rotation tolerance calibration value;
Correspondingly, y-axis rotational variations are added with y-axis rotation tolerance calibration value, institute's value is that updated y-axis rotation is public
Poor calibration value.
For example, the first rotation tolerance calibration value includes that x-axis rotation tolerance calibration value isY-axis rotates tolerance calibration value
ForX-axis rotational variations areY-axis rotational variations areThen updated x-axis rotation tolerance calibration value isUpdated y-axis rotates tolerance calibration value It that is to say, updated obtained
Two rotation tolerance calibration values include that x-axis rotation tolerance calibration value isY-axis rotates tolerance calibration value
Certainly, in practical applications, efficiency is updated to dual camera mould group tolerance calibration value in order to improve, while
The accuracy of dual camera mould group tolerance calibration value is improved, the accuracy compensated to the image of shooting is improved, is calculating
To after shifting deviation and rotational variations, can not also judge whether to be updated dual camera mould group tolerance calibration value, but,
Directly according at least one of the shifting deviation and rotational variations being calculated, dual camera mould group tolerance calibration value is carried out
It updates.
It, can be by updated dual camera mould group tolerance after being updated to dual camera mould group tolerance calibration value
Calibration value is stored.
Step 206, the mobile terminal is not updated the dual camera mould group tolerance calibration value.
For example, a kind of flow chart of the method for the calibration value for updating mobile terminal can be as shown in Figure 6.As shown in fig. 6, step
Rapid 601, obtain the configuration parameter of dual camera mould group, pixel, focal length, focal length ratio, f-number including each camera double are taken the photograph
Parallax range, mould group tolerance etc.;Step 602, build calibration environment, including setting standard 2D gridiron pattern graph card, environment colour temperature with
And intensity of illumination etc.;Step 603, shooting obtains the first uncalibrated image and the second uncalibrated image;Step 604, mould group tolerance is calculated
Variation, including calculating shifting deviation and rotational variations according to the second uncalibrated image after the first uncalibrated image and deviation compensation;Step
Rapid 605, judge whether to be updated dual camera mould group tolerance calibration value, shifting deviation and shifting deviation threshold value are compared
Compared with, and rotational variations are compared with rotational variations threshold value, if shifting deviation is greater than shifting deviation threshold value, and/or, rotation
Deviation is greater than rotational variations threshold value, it is determined that is updated to dual camera mould group tolerance calibration value, executes step 606, otherwise
Determination is not updated dual camera mould group tolerance calibration value, executes step 607;Step 606, to dual camera mould group tolerance
Calibration value is updated;Step 607, dual camera mould group tolerance calibration value is not updated.
It in embodiments of the present invention, can be respectively by the firstly, for the mobile terminal for being provided with dual camera mould group
One camera and second camera obtain the first uncalibrated image and the second uncalibrated image, public according to preset dual camera mould group
Poor calibration value carries out deviation compensation processing to the first uncalibrated image or the second uncalibrated image, and then according to deviation compensation, treated
Uncalibrated image and the uncalibrated image for not compensating processing determine the image that dual camera mould group tolerance calibration value obtains shooting
Deviation compensation effect, and then dual camera mould group tolerance calibration value is updated, improves dual camera mould group tolerance mark
The accuracy of definite value reduces due to for dual camera mould group tolerance calibration value and the actual mould group tolerance of dual camera mould group
The poor possibility of deviation compensation effect, improves shooting effect caused by inconsistent.
Secondly, can target object be in the first camera camera lens center, win the first place uncalibrated image and
Two uncalibrated images, and deviation compensation processing is carried out to the second uncalibrated image based on dual camera mould group tolerance calibration value, so as to
It is enough convenient for determine position of the target object respectively in the first uncalibrated image and deviation compensation treated the second uncalibrated image or
Angle difference, improves the efficiency of determining shifting deviation and/rotational variations, and then improves and demarcate to dual camera mould group tolerance
The efficiency that value is updated.
In addition, dual camera mould group tolerance calibration value may include the first translation tolerance calibration value and the first rotation tolerance mark
At least one of definite value can determine shifting deviation according to the second uncalibrated image after the first uncalibrated image and compensation deals
With/rotational variations, it is updated to rotate at least one of tolerance calibration value to the first translation tolerance calibration value and first,
The accuracy of mould group tolerance is further improved, shooting effect is improved.
Furthermore it is possible to before being updated to the first translation tolerance calibration value or the first rotation tolerance calibration value, according to
Shifting deviation judges whether to be updated the first translation tolerance calibration value, or is judged whether according to rotational variations to first turn
Dynamic tolerance calibration value is updated, can on the basis of ensuring to carry out preferable deviation compensation processing to the image that shooting obtains,
It is reduced or avoided and dual camera mould group tolerance calibration value is updated, save cost.
Embodiment three
Referring to Fig. 7, a kind of structural block diagram of mobile terminal of the embodiment of the present invention three is shown, is set on the mobile terminal
It is equipped with dual camera mould group, the dual camera mould group includes the first camera and second camera, and the mobile terminal is specific
May include:
Shooting module 701, for respectively by first camera and the second camera to same target object
It is shot, obtains corresponding first uncalibrated image and the second uncalibrated image;
Compensating module 702, for being based on preset dual camera mould group tolerance calibration value, to first uncalibrated image or
Second uncalibrated image carries out deviation compensation processing;
Update module 703, for not compensating based on deviation compensation treated uncalibrated image and the calibration maps of processing
Picture is updated the dual camera mould group tolerance calibration value.
Optionally, the shooting module includes:
Shooting submodule, when the center of the camera lens for being in first camera when the target object, point
Same target object is not shot by first camera and the second camera, obtains corresponding first calibration
Image and the second uncalibrated image;
The compensating module includes:
Compensate submodule, for be based on preset dual camera mould group tolerance calibration value, to second uncalibrated image into
The processing of row deviation compensation.
Optionally, the dual camera mould group tolerance calibration value includes the first translation tolerance calibration value, the update module
Include:
First determines submodule, for determining first picture of the center of the target object in first uncalibrated image
Second pixel of the center of vegetarian refreshments coordinate and the target object in deviation compensation treated second uncalibrated image
Point coordinate;
Second determines submodule, for being based on the first pixel coordinate and the second pixel coordinate, determines institute
State the shifting deviation of dual camera mould group;
First updates submodule, for being updated according to the shifting deviation to the first translation tolerance calibration value.
Optionally, the update module further include:
First judging submodule, for judging whether the shifting deviation is greater than shifting deviation threshold value;
First triggering submodule triggers described the if being greater than the shifting deviation threshold value for the shifting deviation
One update submodule executes described the step of being updated according to the shifting deviation to the first translation tolerance calibration value.
Optionally, the dual camera mould group tolerance calibration value includes the first rotation tolerance calibration value, the target object
For rectangular image, the update module includes:
Third determines submodule, for determining that the rectangular image is each in second uncalibrated image after compensation deals
The side length on side;
4th determines that submodule determines the rotational variations of the dual camera mould group for the side length based on each side;
Second updates submodule, for being updated according to the rotational variations to the first rotation tolerance calibration value.
Optionally, the update module further include:
Second judgment submodule, for judging whether the rotational variations are greater than rotational variations threshold value;
Second triggering submodule triggers described the if being greater than the rotational variations threshold value for the rotational variations
Two update submodules execute described the step of being updated according to the rotational variations to the first rotation tolerance calibration value.
In embodiments of the present invention, it for being provided with the mobile terminal of dual camera mould group, can be taken the photograph respectively by first
As head and second camera the first uncalibrated image of acquisition and the second uncalibrated image, according to preset dual camera mould group tolerance mark
Definite value carries out deviation compensation processing to the first uncalibrated image or the second uncalibrated image, then according to deviation compensation treated calibration
Image and the uncalibrated image for not compensating processing, determine dual camera mould group tolerance calibration value to shooting obtain image it is inclined
Poor compensation effect, and then dual camera mould group tolerance calibration value is updated, improve dual camera mould group tolerance calibration value
Accuracy, improve shooting effect.
Example IV
Fig. 8 is the block diagram of the mobile terminal of another embodiment of the present invention.Mobile terminal 800 shown in Fig. 8 includes: at least
One processor 801, memory 802, at least one network interface 804 and user interface 803.It is each in mobile terminal 800
Component is coupled by bus system 805.It is understood that bus system 805 is logical for realizing the connection between these components
Letter.Bus system 805 further includes power bus, control bus and status signal bus in addition in addition to including data/address bus.But it is
For the sake of clear explanation, in fig. 8 various buses are all designated as bus system 805.
Wherein, user interface 803 may include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or flexible screen etc..
It is appreciated that the memory 802 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synch Link DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memory 802 of the system and method for description of the embodiment of the present invention is intended to include but is not limited to these
With the memory of any other suitable type.
In some embodiments, memory 802 stores following element, executable modules or data structures, or
Their subset of person or their superset: operating system 8021 and application program 8022.
Wherein, operating system 8021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 8022 includes various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method may be embodied in application program 8022.
In embodiments of the present invention, by the program or instruction of calling memory 802 to store, specifically, can be application
The program or instruction stored in program 8022, processor 801 are used for:
Same target object is shot by first camera and the second camera respectively, is corresponded to
The first uncalibrated image and the second uncalibrated image;
Based on preset dual camera mould group tolerance calibration value, to first uncalibrated image or second uncalibrated image
Carry out deviation compensation processing;
The uncalibrated image for not compensating based on deviation compensation treated uncalibrated image and processing, to the dual camera
Mould group tolerance calibration value is updated.
The method that the embodiments of the present invention disclose can be applied in processor 801, or be realized by processor 801.
Processor 801 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 801 or the instruction of software form.Above-mentioned processing
Device 801 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention
The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor
And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only
In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at
The step of memory 802, processor 801 reads the information in memory 802, completes the above method in conjunction with its hardware.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware,
Microcode or combinations thereof is realized.For hardware realization, processing unit be may be implemented in one or more specific integrated circuits
(Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal
Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable
Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general place
It manages in device, controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, can by execute the embodiment of the present invention described in function module (such as process, function etc.) come
Realize technology described in the embodiment of the present invention.Software code is storable in memory and is executed by processor.Memory can
With portion realizes in the processor or outside the processor.
Optionally, described that same target object is clapped by first camera and the second camera respectively
It takes the photograph, obtains corresponding first uncalibrated image and the second uncalibrated image includes:
When the target object is in the center of the camera lens of first camera, taken the photograph respectively by described first
As head and the second camera shoot same target object, corresponding first uncalibrated image and the second calibration maps are obtained
Picture;
It is described to be based on preset dual camera mould group tolerance calibration value, to first uncalibrated image or second calibration
Image carries out deviation compensation processing
Based on preset dual camera mould group tolerance calibration value, deviation compensation processing is carried out to second uncalibrated image.
Optionally, the dual camera mould group tolerance calibration value includes the first translation tolerance calibration value, described to be based on deviation
Uncalibrated image after compensation deals and the uncalibrated image for not compensating processing, to the dual camera mould group tolerance calibration value into
Row updates
Determine first pixel coordinate and the mesh of the center of the target object in first uncalibrated image
Mark second pixel coordinate of the center of object in deviation compensation treated second uncalibrated image;
Based on the first pixel coordinate and the second pixel coordinate, the translation of the dual camera mould group is determined
Deviation;
The first translation tolerance calibration value is updated according to the shifting deviation.
Optionally, it is described according to the shifting deviation to it is described first translation tolerance calibration value be updated before, also
Include:
Judge whether the shifting deviation is greater than shifting deviation threshold value;
If the shifting deviation be greater than the shifting deviation threshold value, execute it is described according to the shifting deviation to described
The step of first translation tolerance calibration value is updated.
Optionally, the dual camera mould group tolerance calibration value includes the first rotation tolerance calibration value, the target object
It is described not compensate based on deviation compensation treated uncalibrated image and the uncalibrated image of processing for rectangular image, to described
Dual camera mould group tolerance calibration value, which is updated, includes:
Determine the side length on the rectangular image each side in second uncalibrated image after compensation deals;
Based on the side length on each side, the rotational variations of the dual camera mould group are determined;
The first rotation tolerance calibration value is updated according to the rotational variations.
Optionally, it is described according to the rotational variations to it is described first rotation tolerance calibration value be updated before, also
Include:
Judge whether the rotational variations are greater than rotational variations threshold value;
If the rotational variations be greater than the rotational variations threshold value, execute it is described according to the rotational variations to described
The step of first rotation tolerance calibration value is updated.
Mobile terminal 800 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
It repeats no more.In the embodiment of the present invention, for being provided with the mobile terminal of dual camera mould group, mobile terminal 800 can be distinguished
The first uncalibrated image and the second uncalibrated image are obtained by the first camera and second camera, according to preset dual camera
Mould group tolerance calibration value carries out deviation compensation processing to the first uncalibrated image or the second uncalibrated image, then according to deviation compensation at
Uncalibrated image after reason and the uncalibrated image for not compensating processing, determine that dual camera mould group tolerance calibration value obtains shooting
Image deviation compensation effect, and then dual camera mould group tolerance calibration value is updated, improves dual camera mould group
The accuracy of tolerance calibration value, improves shooting effect.
Embodiment five
Fig. 9 is the structural schematic diagram of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 9
900 can be mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle mounted electric
Brain etc..
Mobile terminal 900 in Fig. 9 includes radio frequency (Radio Frequency, RF) circuit 910, memory 920, input
Unit 930, display unit 940, processor 960, voicefrequency circuit 970, WLAN (Wireless Fidelity) module
680 and power supply 690.
Wherein, input unit 930 can be used for receiving the number or character information of user's input, and generation and mobile terminal
The related signal input of 900 user setting and function control.Specifically, in the embodiment of the present invention, which can
To include touch panel 931.Touch panel 931, collect user on it or nearby touch operation (such as user use hand
The operation of any suitable object or attachment such as finger, stylus on touch panel 931), and driven according to preset formula
Corresponding attachment device.Optionally, touch panel 931 may include both touch detecting apparatus and touch controller.Wherein,
Touch detecting apparatus detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch control
Device;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives the processor
960, and order that processor 960 is sent can be received and executed.Furthermore, it is possible to use resistance-type, condenser type, infrared ray with
And the multiple types such as surface acoustic wave realize touch panel 931.In addition to touch panel 931, input unit 930 can also include other
Input equipment 932, other input equipments 932 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, one of operating stick etc. or a variety of.
Wherein, display unit 940 can be used for showing information input by user or be supplied to the information and movement of user
The various menu interfaces of terminal 900.Display unit 940 may include display panel 941, optionally, can use LCD or organic hair
The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 941.
It should be noted that touch panel 931 can cover display panel 941, touch display screen is formed, when the touch display screen is examined
After measuring touch operation on it or nearby, processor 960 is sent to determine the type of touch event, is followed by subsequent processing device
960 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area
And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area
Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example,
Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 960 is the control centre of mobile terminal 900, utilizes various interfaces and connection whole mobile phone
Various pieces, by running or executing the software program and/or module that are stored in first memory 921, and calling storage
Data in second memory 922 execute the various functions and processing data of mobile terminal 900, thus to mobile terminal 900
Carry out integral monitoring.Optionally, processor 960 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 921 in software program and/or module and/
Or the data in the second memory 922, processor 960 are used for:
Same target object is shot by first camera and the second camera respectively, is corresponded to
The first uncalibrated image and the second uncalibrated image;
Based on preset dual camera mould group tolerance calibration value, to first uncalibrated image or second uncalibrated image
Carry out deviation compensation processing;
The uncalibrated image for not compensating based on deviation compensation treated uncalibrated image and processing, to the dual camera
Mould group tolerance calibration value is updated.
Optionally, described that same target object is clapped by first camera and the second camera respectively
It takes the photograph, obtains corresponding first uncalibrated image and the second uncalibrated image includes:
When the target object is in the center of the camera lens of first camera, taken the photograph respectively by described first
As head and the second camera shoot same target object, corresponding first uncalibrated image and the second calibration maps are obtained
Picture;
It is described to be based on preset dual camera mould group tolerance calibration value, to first uncalibrated image or second calibration
Image carries out deviation compensation processing
Based on preset dual camera mould group tolerance calibration value, deviation compensation processing is carried out to second uncalibrated image.
Optionally, the dual camera mould group tolerance calibration value includes the first translation tolerance calibration value, described to be based on deviation
Uncalibrated image after compensation deals and the uncalibrated image for not compensating processing, to the dual camera mould group tolerance calibration value into
Row updates
Determine first pixel coordinate and the mesh of the center of the target object in first uncalibrated image
Mark second pixel coordinate of the center of object in deviation compensation treated second uncalibrated image;
Based on the first pixel coordinate and the second pixel coordinate, the translation of the dual camera mould group is determined
Deviation;
The first translation tolerance calibration value is updated according to the shifting deviation.
Optionally, it is described according to the shifting deviation to it is described first translation tolerance calibration value be updated before, also
Include:
Judge whether the shifting deviation is greater than shifting deviation threshold value;
If the shifting deviation be greater than the shifting deviation threshold value, execute it is described according to the shifting deviation to described
The step of first translation tolerance calibration value is updated.
Optionally, the dual camera mould group tolerance calibration value includes the first rotation tolerance calibration value, the target object
It is described not compensate based on deviation compensation treated uncalibrated image and the uncalibrated image of processing for rectangular image, to described
Dual camera mould group tolerance calibration value, which is updated, includes:
Determine the side length on the rectangular image each side in second uncalibrated image after compensation deals;
Based on the side length on each side, the rotational variations of the dual camera mould group are determined;
The first rotation tolerance calibration value is updated according to the rotational variations.
Optionally, it is described according to the rotational variations to it is described first rotation tolerance calibration value be updated before, also
Include:
Judge whether the rotational variations are greater than rotational variations threshold value;
If the rotational variations be greater than the rotational variations threshold value, execute it is described according to the rotational variations to described
The step of first rotation tolerance calibration value is updated.
For above-mentioned apparatus embodiment, since it is basically similar to the method embodiment, so be described relatively simple,
The relevent part can refer to the partial explaination of embodiments of method.
Embodiment six
The embodiment of the present invention also provides a kind of mobile terminal, including processor, memory, and storage is on a memory and can be
The computer program run on the processor, the computer program realize above-mentioned update mobile terminal when being executed by processor
Each process of the embodiment of the method for calibration value, and identical technical effect can be reached, to avoid repeating, which is not described herein again.
Embodiment seven
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize the embodiment of the method for the calibration value of above-mentioned update mobile terminal when being executed by processor
Each process, and identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, described computer-readable
Storage medium, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access
Memory, abbreviation RAM), magnetic or disk etc..
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It would have readily occurred to a person skilled in the art that: any combination application of above-mentioned each embodiment is all feasible, therefore
Any combination between above-mentioned each embodiment is all embodiment of the present invention, but this specification exists as space is limited,
This is not just detailed one by one.
Provided herein update mobile terminal calibration value method not with any certain computer, virtual system or its
Its equipment is inherently related.Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs
Structure required by system with the present invention program is obvious.In addition, the present invention is not also directed to any certain programmed
Language.It should be understood that can use various programming languages realizes summary of the invention described herein, and above to specific language
Say that done description is in order to disclose the best mode of carrying out the invention.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the present invention and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, such as right
As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool
Thus claims of body embodiment are expressly incorporated in the specific embodiment, wherein each claim conduct itself
Separate embodiments of the invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any
Can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) realize the calibration value according to an embodiment of the present invention for updating mobile terminal
The some or all functions of some or all components in method.The present invention is also implemented as being retouched here for executing
The some or all device or device programs (for example, computer program and computer program product) for the method stated.
It is such to realize that program of the invention can store on a computer-readable medium, or can have one or more signal
Form.Such signal can be downloaded from an internet website to obtain, be perhaps provided on the carrier signal or with it is any its
He provides form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.
Claims (10)
1. a kind of method for the calibration value for updating mobile terminal, which is characterized in that be provided with dual camera on the mobile terminal
Mould group, the dual camera mould group include the first camera and second camera, the side of the calibration value for updating mobile terminal
Method includes:
Same target object is shot by first camera and the second camera respectively, obtains corresponding
One uncalibrated image and the second uncalibrated image;
Based on preset dual camera mould group tolerance calibration value, first uncalibrated image or second uncalibrated image are carried out
Deviation compensation processing;
The uncalibrated image for not compensating based on deviation compensation treated uncalibrated image and processing, to the dual camera mould group
Tolerance calibration value is updated;
Wherein, described that same target object is shot by first camera and the second camera respectively, it obtains
Include: to corresponding first uncalibrated image and the second uncalibrated image
When the target object is in the center of the camera lens of first camera, pass through first camera respectively
Same target object is shot with the second camera, obtains corresponding first uncalibrated image and the second uncalibrated image;
It is described to be based on preset dual camera mould group tolerance calibration value, to first uncalibrated image or second uncalibrated image
Carrying out deviation compensation processing includes:
Based on preset dual camera mould group tolerance calibration value, deviation compensation processing is carried out to second uncalibrated image;
Wherein, the dual camera mould group tolerance calibration value includes the first translation tolerance calibration value;
It is described not compensate based on deviation compensation treated uncalibrated image and the uncalibrated image of processing, to the dual camera
Mould group tolerance calibration value, which is updated, includes:
Determine first pixel coordinate and the target pair of the center of the target object in first uncalibrated image
Second pixel coordinate of the center of elephant in deviation compensation treated second uncalibrated image;
Based on the first pixel coordinate and the second pixel coordinate, determine that the translation of the dual camera mould group is inclined
Difference;
The first translation tolerance calibration value is updated according to the shifting deviation.
2. the method for the calibration value according to claim 1 for updating mobile terminal, which is characterized in that described according to
Before shifting deviation is updated the first translation tolerance calibration value, further includes:
Judge whether the shifting deviation is greater than shifting deviation threshold value;
If the shifting deviation be greater than the shifting deviation threshold value, execute it is described according to the shifting deviation to described first
The step of translation tolerance calibration value is updated.
3. the method for the calibration value according to claim 1 for updating mobile terminal, which is characterized in that the dual camera mould
Group tolerance calibration value includes the first rotation tolerance calibration value, and the target object is rectangular image;
It is described not compensate based on deviation compensation treated uncalibrated image and the uncalibrated image of processing, to the dual camera
Mould group tolerance calibration value, which is updated, includes:
Determine the side length on the rectangular image each side in second uncalibrated image after compensation deals;
Based on the side length on each side, the rotational variations of the dual camera mould group are determined;
The first rotation tolerance calibration value is updated according to the rotational variations.
4. the method for the calibration value according to claim 3 for updating mobile terminal, which is characterized in that described according to
Before rotational variations are updated the first rotation tolerance calibration value, further includes:
Judge whether the rotational variations are greater than rotational variations threshold value;
If the rotational variations be greater than the rotational variations threshold value, execute it is described according to the rotational variations to described first
The step of rotation tolerance calibration value is updated.
5. a kind of mobile terminal, which is characterized in that be provided with dual camera mould group, the dual camera mould on the mobile terminal
Group includes the first camera and second camera, and the mobile terminal includes:
Shooting module, for being clapped respectively by first camera and the second camera same target object
It takes the photograph, obtains corresponding first uncalibrated image and the second uncalibrated image;
Compensating module, for being based on preset dual camera mould group tolerance calibration value, to first uncalibrated image or described the
Two uncalibrated images carry out deviation compensation processing;
Update module, for not compensating based on deviation compensation treated uncalibrated image and the uncalibrated image of processing, to institute
Dual camera mould group tolerance calibration value is stated to be updated;
Wherein, the shooting module includes:
Shooting submodule when the center of the camera lens for being in first camera when the target object, is led to respectively
It crosses first camera and the second camera shoots same target object, obtain corresponding first uncalibrated image
With the second uncalibrated image;
The compensating module includes:
Submodule is compensated, for being based on preset dual camera mould group tolerance calibration value, second uncalibrated image is carried out inclined
Poor compensation deals;
Wherein, the dual camera mould group tolerance calibration value includes the first translation tolerance calibration value;
The update module includes:
First determines submodule, for determining first pixel of the center of the target object in first uncalibrated image
Second pixel of the center of coordinate and the target object in deviation compensation treated second uncalibrated image is sat
Mark;
Second determines submodule, for being based on the first pixel coordinate and the second pixel coordinate, determines described double
The shifting deviation of camera module;
First updates submodule, for being updated according to the shifting deviation to the first translation tolerance calibration value.
6. mobile terminal according to claim 5, which is characterized in that the update module further include:
First judging submodule, for judging whether the shifting deviation is greater than shifting deviation threshold value;
First triggering submodule triggers described first more if being greater than the shifting deviation threshold value for the shifting deviation
New submodule executes described the step of being updated according to the shifting deviation to the first translation tolerance calibration value.
7. mobile terminal according to claim 5, which is characterized in that the dual camera mould group tolerance calibration value includes the
One rotation tolerance calibration value, the target object are rectangular image;
The update module includes:
Third determines submodule, for determining the rectangular image each side in second uncalibrated image after compensation deals
Side length;
4th determines that submodule determines the rotational variations of the dual camera mould group for the side length based on each side;
Second updates submodule, for being updated according to the rotational variations to the first rotation tolerance calibration value.
8. mobile terminal according to claim 7, which is characterized in that the update module further include:
Second judgment submodule, for judging whether the rotational variations are greater than rotational variations threshold value;
Second triggering submodule triggers described second more if being greater than the rotational variations threshold value for the rotational variations
New submodule executes described the step of being updated according to the rotational variations to the first rotation tolerance calibration value.
9. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be described
The computer program run on processor is realized when the computer program is executed by the processor as in Claims 1-4
The step of method of described in any item calibration values for updating mobile terminal.
10. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium
Sequence is realized when the computer program is executed by processor and updates mobile terminal according to any one of claims 1 to 4
The step of method of calibration value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710743272.4A CN107566720B (en) | 2017-08-25 | 2017-08-25 | A kind of method and mobile terminal of the calibration value updating mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710743272.4A CN107566720B (en) | 2017-08-25 | 2017-08-25 | A kind of method and mobile terminal of the calibration value updating mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107566720A CN107566720A (en) | 2018-01-09 |
CN107566720B true CN107566720B (en) | 2019-09-27 |
Family
ID=60975902
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710743272.4A Active CN107566720B (en) | 2017-08-25 | 2017-08-25 | A kind of method and mobile terminal of the calibration value updating mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107566720B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108491225B (en) * | 2018-03-15 | 2021-10-12 | 维沃移动通信有限公司 | Update package generation method and mobile terminal |
CN109215087B (en) * | 2018-08-28 | 2021-04-27 | 维沃移动通信有限公司 | Calibration method and device of double-camera module and terminal |
CN109559352B (en) * | 2018-11-30 | 2021-04-23 | Oppo广东移动通信有限公司 | Camera calibration method, device, electronic equipment and computer-readable storage medium |
CN109685853B (en) * | 2018-11-30 | 2021-02-02 | Oppo广东移动通信有限公司 | Image processing method, image processing device, electronic equipment and computer readable storage medium |
CN109379521B (en) * | 2018-11-30 | 2021-03-02 | Oppo广东移动通信有限公司 | Camera calibration method and device, computer equipment and storage medium |
CN111833394A (en) * | 2020-07-27 | 2020-10-27 | 深圳惠牛科技有限公司 | Camera calibration method and measuring method based on binocular measuring device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1801896A (en) * | 2006-01-17 | 2006-07-12 | 东南大学 | Video camera rating data collecting method and its rating plate |
CN101661617A (en) * | 2008-08-30 | 2010-03-03 | 深圳华为通信技术有限公司 | Method and device for camera calibration |
CN102509295A (en) * | 2011-11-08 | 2012-06-20 | 北京新岸线网络技术有限公司 | Correction method and device for trinocular camera |
US8223399B1 (en) * | 2009-03-11 | 2012-07-17 | Hewlett-Packard Development Company, L.P. | Printer including output matching |
CN104730802A (en) * | 2015-03-27 | 2015-06-24 | 酷派软件技术(深圳)有限公司 | Optical axis included angle calibrating and focusing method and system and double-camera equipment |
CN105847665A (en) * | 2015-11-30 | 2016-08-10 | 维沃移动通信有限公司 | Dual-camera photographing device and dual-camera optical axis correction device |
CN106537908A (en) * | 2014-09-05 | 2017-03-22 | 英特尔公司 | Camera calibration |
-
2017
- 2017-08-25 CN CN201710743272.4A patent/CN107566720B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1801896A (en) * | 2006-01-17 | 2006-07-12 | 东南大学 | Video camera rating data collecting method and its rating plate |
CN101661617A (en) * | 2008-08-30 | 2010-03-03 | 深圳华为通信技术有限公司 | Method and device for camera calibration |
US8223399B1 (en) * | 2009-03-11 | 2012-07-17 | Hewlett-Packard Development Company, L.P. | Printer including output matching |
CN102509295A (en) * | 2011-11-08 | 2012-06-20 | 北京新岸线网络技术有限公司 | Correction method and device for trinocular camera |
CN106537908A (en) * | 2014-09-05 | 2017-03-22 | 英特尔公司 | Camera calibration |
CN104730802A (en) * | 2015-03-27 | 2015-06-24 | 酷派软件技术(深圳)有限公司 | Optical axis included angle calibrating and focusing method and system and double-camera equipment |
CN105847665A (en) * | 2015-11-30 | 2016-08-10 | 维沃移动通信有限公司 | Dual-camera photographing device and dual-camera optical axis correction device |
Also Published As
Publication number | Publication date |
---|---|
CN107566720A (en) | 2018-01-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107566720B (en) | A kind of method and mobile terminal of the calibration value updating mobile terminal | |
CN106101553B (en) | A kind of photographic method and mobile terminal | |
CN107547734B (en) | Method, mobile terminal and the storage medium that screen intensity is adjusted | |
CN106027907B (en) | A kind of method and mobile terminal of adjust automatically camera | |
CN105827970B (en) | A kind of image processing method and mobile terminal | |
CN107454330B (en) | A kind of image processing method, mobile terminal and computer readable storage medium | |
CN106791450B (en) | A kind of photographic method and mobile terminal | |
CN107613219B (en) | A kind of image pickup method, mobile terminal and storage medium | |
CN107231530B (en) | A kind of photographic method and mobile terminal | |
CN107317993B (en) | A kind of video call method and mobile terminal | |
CN107040722B (en) | A kind of image pickup method and mobile terminal | |
CN106027900A (en) | Photographing method and mobile terminal | |
CN106506962A (en) | A kind of image processing method and mobile terminal | |
CN106060422B (en) | A kind of image exposure method and mobile terminal | |
CN107566723B (en) | A kind of image pickup method, mobile terminal and computer readable storage medium | |
CN106210512B (en) | A kind of camera switching method and mobile terminal | |
CN106973212A (en) | A kind of camera device and mobile terminal | |
CN107302655B (en) | It is a kind of to shoot the adjusting method and mobile terminal found a view | |
CN106713715B (en) | A kind of photographic method and mobile terminal | |
CN106161932B (en) | A kind of photographic method and mobile terminal | |
CN107437072B (en) | A kind of image processing method, mobile terminal and computer readable storage medium | |
CN106791809B (en) | A kind of light measuring method and mobile terminal | |
CN109584375A (en) | A kind of object information display methods and mobile terminal | |
CN106303224B (en) | A kind of focusing method and mobile terminal | |
CN107509024B (en) | One kind is taken pictures processing method and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |