CN107566720A - A kind of method and mobile terminal of the calibration value for updating mobile terminal - Google Patents

A kind of method and mobile terminal of the calibration value for updating mobile terminal Download PDF

Info

Publication number
CN107566720A
CN107566720A CN201710743272.4A CN201710743272A CN107566720A CN 107566720 A CN107566720 A CN 107566720A CN 201710743272 A CN201710743272 A CN 201710743272A CN 107566720 A CN107566720 A CN 107566720A
Authority
CN
China
Prior art keywords
calibration value
uncalibrated image
mobile terminal
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.)
Granted
Application number
CN201710743272.4A
Other languages
Chinese (zh)
Other versions
CN107566720B (en
Inventor
崔瀚涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710743272.4A priority Critical patent/CN107566720B/en
Publication of CN107566720A publication Critical patent/CN107566720A/en
Application granted granted Critical
Publication of CN107566720B publication Critical patent/CN107566720B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)

Abstract

The invention provides a kind of method and mobile terminal of the calibration value for updating mobile terminal, dual camera module is provided with the mobile terminal, the dual camera module includes the first camera and second camera, and methods described includes:Same destination object is shot by first camera and the second camera respectively, first uncalibrated image and the second uncalibrated image corresponding to obtaining, based on default dual camera module 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 the uncalibrated image after deviation compensation processing and, the dual camera module tolerance calibration value is updated.The present invention can improve the accuracy of dual camera module tolerance calibration value, lift the shooting effect of dual camera module.

Description

A kind of method and mobile terminal of the calibration value for updating mobile terminal
Technical field
The present invention relates to field of terminal technology, method and movement more particularly to a kind of calibration value for updating mobile terminal Terminal.
Background technology
With the development of terminal technology, the application of a variety of mobile terminals such as mobile phone, notebook computer, tablet personal computer is also more next It is more extensive.Dual camera module can be generally set in mobile terminal, and the dual camera module includes two cameras, so as to real A variety of shoot 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 producing, assemble and making During, position of two cameras etc. may change in camera module so that two cameras it Between relative position change and optical axis is not parallel etc., therefore, it is necessary to mobile terminal is demarcated.
In the prior art, can before mobile terminal dispatches from the factory, the dual camera module installed to the mobile terminal Demarcated, obtain the module tolerance calibration value of dual camera module, to determine two shootings caused by producing and assembling Position and optical axis change between head, afterwards, the figure that can be obtained based on the module tolerance calibration value demarcated before dispatching from the factory to shooting As carrying out deviation compensation, to obtain the image of high quality.
But conventionally, as mobile terminal is during use, the module between the optical axis of two cameras Tolerance can also change, when the image progress deviation compensation obtained based on the module tolerance calibration value demarcated before dispatching from the factory to shooting When, it is difficult to effective deviation compensation is carried out to the image of shooting, influences shooting effect.
The content of the invention
The present invention provides a kind of method, mobile terminal and the computer-readable storage medium of the calibration value for updating mobile terminal Matter, to solve the problems, such as that the accuracy that deviation compensation is carried out to the image of shooting is relatively low and shooting effect is poor.
According to the first aspect of the present invention, there is provided a kind of method for the calibration value for updating mobile terminal, it is described mobile whole Dual camera module is provided with end, the dual camera module includes the first camera and second camera, and the renewal moves The method of the calibration value of dynamic terminal includes:
Same destination object is shot by first camera and the second camera respectively, obtained correspondingly The first uncalibrated image and the second uncalibrated image;
Based on default dual camera module tolerance calibration value, to first uncalibrated image or second uncalibrated image Carry out deviation compensation processing;
The uncalibrated image of processing is not compensated based on the uncalibrated image after deviation compensation processing and, to the dual camera Module tolerance calibration value is updated.
According to the second aspect of the present invention, there is provided a kind of mobile terminal, second camera, the mobile terminal include:
Taking module, for being carried out respectively by first camera and the second camera to same destination object Shooting, obtain corresponding first uncalibrated image and the second uncalibrated image;
Compensating module, for based on default dual camera module tolerance calibration value, to first uncalibrated image or institute State the second uncalibrated image and carry out deviation compensation processing;
Update module, the uncalibrated image of processing is not compensated for the uncalibrated image after being handled based on deviation compensation and, The dual camera module tolerance calibration value is updated.
According to the third aspect of the present invention, there is provided a kind of mobile terminal, the mobile terminal include processor, memory and The computer program that can be run on the memory and on the processor is stored in, the computer program is by the processing Device realizes the step of method of the calibration value of renewal mobile terminal of the present invention when performing.
According to the fourth aspect of the present invention, there is provided a kind of computer-readable recording medium, the computer-readable storage medium Computer program is stored in matter, the demarcation of renewal mobile terminal of the present invention is realized when computer program is executed by processor The step of method of value.
In embodiments of the present invention, for being provided with the mobile terminal of dual camera module, 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 default dual camera module tolerance mark Definite value carries out deviation compensation processing, the demarcation after then being handled according to deviation compensation to the first uncalibrated image or the second uncalibrated image Image and the uncalibrated image for not compensating processing, determine the inclined of the image that dual camera module tolerance calibration value obtains to shooting Poor compensation effect, and then dual camera module tolerance calibration value is updated, improve dual camera module tolerance calibration value Accuracy, improve shooting effect.
Brief description of the drawings
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 The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 shows a kind of flow chart of the method for the calibration value of renewal mobile terminal in the embodiment of the present invention one;
Fig. 2 shows a kind of flow of the method for the calibration value of renewal mobile terminal according to embodiments of the present invention two Figure;
Fig. 3 shows a kind of schematic diagram of photographic subjects object in the embodiment of the present invention one;
Fig. 4 shows a kind of schematic diagram of first uncalibrated image according to embodiments of the present invention two;
Fig. 5 shows a kind of schematic diagram of second uncalibrated image according to embodiments of the present invention two;
Fig. 6 shows a kind of flow of the method for the calibration value of renewal mobile terminal according to embodiments of the present invention two Figure;
Fig. 7 shows a kind of structured flowchart of mobile terminal according to embodiments of the present invention three;
Fig. 8 shows a kind of structured flowchart of mobile terminal according to embodiments of the present invention four;
Fig. 9 shows a kind of structured flowchart of mobile terminal according to embodiments of the present invention five.
Embodiment
The exemplary embodiment of the present invention is more fully described below with reference to accompanying drawings.Although the present invention is shown in accompanying 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 Limited.Conversely, there is provided these embodiments are to be able to be best understood from the present invention, and can be by the scope of the present invention Completely it is communicated to those skilled in the art.
Embodiment one
Reference picture 1, the flow chart of the method for the calibration value of the renewal mobile terminal of the embodiment of the present invention one is shown, it is described Dual camera module is provided with mobile terminal, the dual camera module includes the first camera and second camera, described The method for updating the calibration value of mobile terminal specifically may include steps of:
Step 101, same destination object is shot by first camera and the second camera respectively, First uncalibrated image and the second uncalibrated image corresponding to obtaining.
Due to certain distance generally be present between two cameras in dual camera module, i.e. the photocentre of camera lens does not weigh Close, then when being taken pictures by two cameras to same object, the object is generally also difficult to be in two cameras simultaneously Center;And if when the optical axis of two cameras in dual camera module is not parallel, pass through two cameras pair The angle that same object is taken pictures also can be different.It that is to say, if the module tolerance of dual camera module changes, these Change can the position in the image that two cameras shoot to obtain or angle embody respectively according to same object.
Mobile terminal in use, in the dual camera module set by the mobile terminal, the phase of two cameras Relative angle between position, or the optical axis of two cameras be able to may also be changed, i.e., the dual camera module is real The module tolerance on border and default dual camera module tolerance calibration value are not consistent, so as to cause to be difficult to the figure obtained to shooting As being difficult to effective deviation compensation, shooting effect is poor.
Therefore, in order in order to subsequently being carried out more to the module tolerance calibration value of dual camera according to the obtained image of shooting Newly, to improve the accuracy of dual camera module tolerance calibration value, reduce and be difficult to be difficult to effectively the image that shooting obtains Deviation compensation possibility, improve shooting effect, destination object can be entered by the first camera and second camera respectively Row shooting, obtains the first uncalibrated image and the second uncalibrated image.
Destination object is used to obtain the first uncalibrated image and the second uncalibrated image, and the destination object can include plane The object of object or solid, such as, the reference object can be the 2D gridiron pattern pictures of standard.
First camera can be any one camera in dual camera module, such as, wrapped when in dual camera module When including main camera and secondary camera, the first camera can be main camera.
In order to ensure during the first uncalibrated image and the second uncalibrated image is obtained, destination object and camera in pairs Relative position and angle between module are not changed, and the first camera can be controlled to obtain the first uncalibrated image, control simultaneously Second camera processed obtains the second uncalibrated image.
Default dual camera module tolerance calibration value can include translation tolerance calibration value and rotate in tolerance calibration value It is at least one.Wherein, translate tolerance calibration value and be used to illustrate that the relative position between the first camera and second camera to become Change, rotate the relative angle change that tolerance calibration value is used to illustrate between the first camera and the optical axis of second camera.Can be with The module tolerance of dual camera module is demarcated before current time, obtains the dual camera module tolerance calibration value, And store the dual camera module tolerance calibration value into the storage of dual camera module, such as before mobile terminal dispatches from the factory Or before dual camera module dispatches from the factory, the module tolerance of dual camera module 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 As quality, 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, the shooting environmental shot by the dual camera module to destination object can be adjusted, such as, ring Border colour temperature 5000K (Kelvin), intensity of illumination are more than or equal to 500lux (Lux), uniform lighting etc..
Step 102, based on default dual camera module tolerance calibration value, to first uncalibrated image or described second Uncalibrated image carries out deviation compensation processing.
In order to determine whether the current module tolerance of dual camera changes, default double camera module tolerance calibration values Whether effective deviation compensation processing can be carried out to the image that shooting obtains, default dual camera module tolerance can be passed through Calibration value carries out deviation compensation processing to the first uncalibrated image or the second uncalibrated image, after being handled according to deviation compensation Uncalibrated image and the uncalibrated image for not compensating processing, update double camera module tolerance calibration values.
It can obtain the configuration parameter of the dual camera module from the storage of dual camera module, including each camera Pixel, focal length, focal length ratio, f-number, double parallax ranges (the distance between photocentre of i.e. two cameras) and default taken the photograph Dual camera module tolerance calibration value, by default bias compensation, based on the dual camera module tolerance calibration value, Deviation compensation is carried out to uncalibrated image according to the pixel of each camera, focal length, focal length ratio, f-number, double parallax ranges etc. of taking the photograph 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 the uncalibrated image after deviation compensation processing and, to described Dual camera module 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 destination object Position or angle in uncalibrated image after deviation compensation processing, the position or angle in uncalibrated image with not compensating processing Degree is compared, so that it is determined that whether dual camera module tolerance calibration value can obtain image to shooting carries out effective compensation, And whether dual camera module tolerance calibration value is updated.
If position or angle in uncalibrated image of the destination object after deviation compensation processing, with not compensating processing Uncalibrated image in position or angle deviation be present, then illustrate default dual camera module tolerance calibration value and actual mould Group tolerance is inconsistent, i.e., whether dual camera module tolerance calibration value can fail to obtain shooting image progress effective compensation, Can be according to position or angle in uncalibrated image of the destination object after deviation compensation processing, with not compensating the mark of processing Determine the deviation between position or the angle in image, dual camera module tolerance calibration value is updated.
Wherein it is possible to according to destination object at least one pixel point coordinates in above two uncalibrated image respectively, come true Set the goal and whether there is deviation between position or angle of the object in above two uncalibrated image.Such as destination object difference The pixel point coordinates of same point in above two uncalibrated image, or, destination object is respectively in above two uncalibrated image The distance between multiple pixel point coordinates.
Can be according to position or angle in uncalibrated image of the destination object after deviation compensation processing, with not compensating The deviation between position or angle in the uncalibrated image of processing, dual camera module tolerance calibration value is increased or subtracted It is few, so that dual camera module tolerance calibration value is consistent with the module tolerance that dual camera module is actual.
In embodiments of the present invention, for being provided with the mobile terminal of dual camera module, 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 default dual camera module tolerance mark Definite value carries out deviation compensation processing, the demarcation after then being handled according to deviation compensation to the first uncalibrated image or the second uncalibrated image Image and the uncalibrated image for not compensating processing, determine the inclined of the image that dual camera module tolerance calibration value obtains to shooting Poor compensation effect, and then dual camera module tolerance calibration value is updated, improve dual camera module tolerance calibration value Accuracy, improve shooting effect.
Embodiment two
Reference picture 2, the flow chart of the method for the calibration value of the renewal mobile terminal of the embodiment of the present invention two is shown, it is described Dual camera module is provided with mobile terminal, the dual camera module includes the first camera and second camera, described The method for updating the calibration value of mobile terminal specifically may include steps of:
Step 201, when destination object is in the center of the camera lens of first camera, the mobile terminal point Same destination object is not shot by first camera and the second camera, obtains corresponding first demarcation Image and the second uncalibrated image.
For the ease of position or angle in the follow-up uncalibrated image for calculating destination object after deviation compensation processing, and not The deviation between position or the angle in the uncalibrated image of processing is compensated, and then improves and dual camera module tolerance is demarcated The efficiency that value is updated, during the center for the camera lens that can be in the first camera in destination object, obtain the first demarcation 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, destination object, which is in optical center and refers to the center of the destination object, is in the optical axis of the first camera. For example, as shown in figure 3, destination object is the 2D gridiron pattern pictures of standard, can be taken the photograph full of first the gridiron pattern picture is placed in the middle As the camera lens of head, and the four of the gridiron pattern picture while with the first cam lens four while overlap when, determine at the destination object In the center of the camera lens of the first camera.
Certainly, in actual applications, can be to be captured by the first camera preview by user or person skilled Image, shooting angle is adjusted, the destination object is in the optical center of the first camera.
Mobile terminal is respectively by way of the first camera and second camera are shot to destination object, Ke Yican See it is foregoing in associated description, no longer repeat one by one herein.
In embodiments of the present invention, it is preferred that for the ease of determining whether destination object is in the camera lens of the first camera Center, the destination object is rectangular image, for example, it is foregoing in standard 2D gridiron pattern graph cards.
Step 202, the mobile terminal is based on default dual camera module tolerance calibration value to second calibration maps As carrying out deviation compensation processing.
Due to foregoing when obtaining the first uncalibrated image and the second uncalibrated image, destination object is in the mirror of the first camera The center of head, so for the ease of subsequently carrying out the second uncalibrated image after compensation deals and the first uncalibrated image pair Than, position or angle in second uncalibrated image of the destination object after the first uncalibrated image and compensation deals whether one Cause, and then whether accurate judgement dual camera module tolerance calibration value effectively carries out effective deviation compensation to the second uncalibrated image, Default dual camera module tolerance calibration value can be based on deviation compensation processing is carried out to the second uncalibrated image.
Default dual camera module tolerance calibration value can include the first translation tolerance calibration value and first and rotate tolerance It is at least one in calibration value, it is possible to which that deviation benefit is carried out to second uncalibrated image by the first translation tolerance calibration value Processing is repaid, and/or, rotate tolerance calibration value by first and deviation compensation processing is carried out to second uncalibrated image.
Wherein, the first translation tolerance calibration value can include x-axis translation tolerance calibration value and y-axis translation tolerance calibration value, First, which rotates tolerance calibration value, can include x-axis rotation tolerance calibration value and y-axis rotation tolerance calibration value.
Certainly, in actual applications, if being when destination object is in the centre bit of the camera lens of second camera in foregoing , here can be with when putting, 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 second mark after first uncalibrated image and deviation compensation processing Determine image, calculate at least one in shifting deviation and rotational variations.
Because the actual module tolerance of dual camera module may and differ with dual camera module tolerance calibration value, wrap Include shifting deviation and rotate tolerance in it is at least one, so in order to dual camera module tolerance calibration value carry out more Newly, the accuracy of dual camera module tolerance calibration value is improved, so as to shoot obtained image to dual camera exactly Deviation compensation is carried out, the effect by dual camera shooting image is improved, can calculate in shifting deviation and rotational variations extremely It is few one.
Shifting deviation is the difference between the actual translation tolerance of dual camera module and the first translation tolerance calibration value, is turned Dynamic deviation is the difference between the actual rotation tolerance of dual camera module and the first rotation tolerance calibration value.
In embodiments of the present invention, due to when in the absence of shifting deviation, after the first uncalibrated image and deviation compensation In second uncalibrated image, the center of image corresponding to destination object and the center superposition of the first uncalibrated image, and and deviation compensation The center superposition of the second uncalibrated image afterwards, otherwise, the center of image corresponding to destination object and the center of the first uncalibrated image Overlap, and it is misaligned with the center of the second uncalibrated image after deviation compensation, it that is to say, shifting deviation can pass through destination 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 the destination object can be determined First pixel point coordinates of the center in first uncalibrated image, and the center of the destination object are handled in deviation compensation The second pixel point coordinates in second uncalibrated image afterwards, based on the first pixel point coordinates and second pixel Coordinate, determine the shifting deviation of the dual camera module.
By taking the first uncalibrated image as an example, position of the destination object in the first uncalibrated image can be determined by image recognition Put, and the center of destination object, so that it is determined that pixel point coordinates of the center of destination object in the first uncalibrated image.
Wherein, shifting deviation can include x-axis shifting deviation and y-axis shifting deviation.The x coordinate of second pixel point coordinates with The difference of the x coordinate of first pixel point coordinates, as x-axis shifting deviation, the y-coordinate and the first pixel of the second pixel point coordinates 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, Δ X1Represent x-axis shifting deviation, x0Represent the second picture The x coordinate of vegetarian refreshments coordinate, x'0Represent the x coordinate of the first pixel point coordinates.
Y-axis shifting deviation can be expressed as Δ Y1=y0-y'0, wherein, Δ Y1Represent y-axis shifting deviation, y0Represent the second picture The y-coordinate of vegetarian refreshments coordinate, y'0Represent the y-coordinate of the first pixel point coordinates.
Certainly, because 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 destination object necessarily overlaps with the center of the first uncalibrated image, so, it will can 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), destination object For the 2D gridiron pattern graph cards of standard, shooting obtains the first uncalibrated image as shown in figure 4, the second calibration maps after deviation compensation processing As shown in Figure 5.Wherein, in Fig. 4, the image of gridiron pattern graph card is full of whole first uncalibrated image between two parties, in Figure 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.It is (40,60) to obtain pixel point coordinates of the center of gridiron pattern graph card in the first uncalibrated image by image recognition, The pixel point coordinates in the second demarcation after deviation compensation processing is (45,66).Or in the examples described above, gridiron pattern graph card Pixel point coordinates of the center in the first uncalibrated image be (0,0), the pixel in the second demarcation after deviation compensation processing Point coordinates is (5,6).X-axis shifting deviation is 45-40=5, and y-axis shifting deviation is 66-60=6.
In addition, in actual applications, shifting deviation can be expressed asThat is the first picture The distance between vegetarian refreshments coordinate and the second pixel point coordinates.
In embodiments of the present invention, due to when in the absence of rotational variations, destination object each side in the first uncalibrated image Ratio between the length of side, the ratio between each side length of side in the second uncalibrated image of the destination object after deviation processing is consistent, So for rotational variations, it is preferred that can determine in second uncalibrated image of the rectangular image after compensation deals The length of side on each side, based on the length of side on each side, determine the rotational variations of the dual camera module.
, can be by image recognition, to determine the image of destination object in the first calibration maps by taking the first uncalibrated image as an example Each side as in, and the length of side on each side.
Wherein, rotational variations can include x-axis rotational variations and y-axis rotational variations.The image of destination object is in the first mark Determine in image, parallel to the ratio of two side length of sides of x-axis, with the second mark of the image of destination object after deviation compensation processing Determine in image, parallel to the difference between the ratio of two side length of sides of x-axis, as x-axis rotational variations.The image of destination object In the first uncalibrated image, parallel to the ratio of two side length of sides of y-axis, the image with destination object is after deviation compensation processing The second uncalibrated image in, parallel to the difference between the ratio of two side length of sides of y-axis, as y-axis rotational variations.
X-axis rotational variations can be expressed asWherein, Δ X2Represent x-axis rotational variations, x'1And x'2Table Show the image of destination object in the first uncalibrated image parallel to two side length of sides of x-axis, x1And x2Represent the image of destination object Parallel to two side length of sides of x-axis in the second uncalibrated image after deviation compensation processing.
Y-axis rotational variations can be expressed asWherein, Δ Y2Represent y-axis rotational variations, y'1And y'2Table Show the image of destination object in the first uncalibrated image parallel to two side length of sides of y-axis, y1And y2Represent the image of destination object Parallel to two side length of sides of y-axis in the second uncalibrated image after deviation compensation processing.
Certainly, from the foregoing it will be appreciated that when destination object is rectangle, such as during 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 destination object and the first camera between two parties in destination object Four sides of camera lens shoot to obtain when overlapping, 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, in Figure 5, measurement obtains x1For 90, x2For 100, thenΔX2ForMeasurement obtains y1 For 60, y2For 62, thenΔY2For
Step 204, the mobile terminal is at least one in the shifting deviation and the rotational variations, and judgement is It is no that dual camera module tolerance calibration value is updated.
Due to when deviation between the actual module tolerance of dual camera module tolerance calibration value and dual camera being present, but should When deviation is in certain limit, because 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 the module tolerance according to storage to the deviation compensation effect of image still preferably in the case of, be reduced or avoided pair Whether the module tolerance of storage is updated, to save cost, it can be determined that module tolerance is updated.
In embodiments of the present invention, it is preferred that judge to be updated dual camera module tolerance calibration value to improve Accuracy, mobile terminal may determine that whether the shifting deviation is more than shifting deviation threshold value, if the shifting deviation is big In the shifting deviation threshold value, then perform and described the described first translation tolerance calibration value is updated according to the shifting deviation The step of;And/or judge whether the rotational variations are more than rotational variations threshold value, if the rotational variations are more than described turn Dynamic deviation threshold value, then perform described the step of being updated according to the rotational variations to the described first rotation tolerance calibration value.
Shifting deviation threshold value or rotational variations threshold value can by being determined in advance to obtain, such as, receive numerical value of submission etc..
For example, shifting deviation threshold value can be 10, rotational variations threshold value can be
Because shifting deviation can include x-axis shifting deviation and y-axis shifting deviation, rotational variations can include x-axis and rotate Deviation and y-axis rotational variations, it is possible to respectively compared x-axis shifting deviation and y-axis shifting deviation with shifting deviation threshold value Compared with when at least one in x-axis shifting deviation and y-axis shifting deviation is more than shifting deviation threshold value, determining that shifting deviation is more than Shifting deviation threshold value.Similar, x-axis rotational variations and y-axis rotational variations are worked as into x compared with rotational variations threshold value respectively When at least one in axle rotational variations and y-axis rotational variations is more than rotational variations threshold value, determine rotational variations be more than rotate it is inclined Poor threshold value.
Certainly, in actual applications, can in order to further improve the accuracy for judging whether to be updated to module tolerance To set x-axis shifting deviation threshold value and y-axis shifting deviation threshold value respectively, so as to which x-axis shifting deviation, y-axis shifting deviation be distinguished Compared with corresponding threshold value, and when any one in x-axis shifting deviation and y-axis shifting deviation is more than corresponding threshold value, Determine that shifting deviation is more than shifting deviation threshold value.Similar, x-axis rotational variations threshold value and y-axis rotational variations can be set respectively Threshold value, so that by x-axis rotational variations, y-axis rotational variations respectively compared with corresponding threshold value, and in x-axis rotational variations and y Any one in axle rotational variations during threshold value, determines that rotational variations are more than rotational variations threshold value more than corresponding to.
Step 205, the mobile terminal is at least one in the shifting deviation and the rotational variations, to described Dual camera module tolerance calibration value is updated.
In order to ensure dual camera module tolerance calibration value is consistent with the actual module tolerance of dual camera module, improve The accuracy of dual camera module tolerance calibration value, so that it is guaranteed that carrying out the accuracy of deviation compensation to image, improve shooting effect Fruit, dual camera module tolerance calibration value can be updated.
The described first translation tolerance calibration value can be updated according to the shifting deviation, and/or, according to described turn Dynamic deviation is updated to the described first rotation tolerance calibration value.
If being updated to the first translation tolerance calibration value, shifting deviation and the first translation tolerance can be subjected to phase Add, so as 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 Axle translation tolerance calibration value is added, and institute's value is the x-axis translation tolerance calibration value after updating;Accordingly, y-axis is put down Move deviation to be added with y-axis translation tolerance calibration value, institute's value is the y-axis translation tolerance calibration value after updating.
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 the x-axis translation tolerance calibration value after updating is -3+5=2, after renewal Y-axis shifting deviation calibration value is 4+6=10.It that is to say, the second translation tolerance calibration value is obtained after renewal includes x-axis translation tolerance Calibration value is 2, and y-axis translation tolerance calibration value is 10.
If being updated to the first rotation tolerance calibration value, rotational variations and first can be rotated tolerance calibration value It is added, so as 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 Axle rotational variations rotate tolerance calibration value with x-axis and are added, and institute's value is that the x-axis after updating rotates tolerance calibration value; Accordingly, y-axis rotational variations are rotated into tolerance calibration value with y-axis to be added, institute's value is that the y-axis after updating rotates public affairs Poor calibration value.
For example, the first rotation tolerance calibration value is including x-axis rotation tolerance calibration valueY-axis rotates tolerance calibration valueX-axis rotational variations areY-axis rotational variations areX-axis after then updating rotates tolerance calibration valueY-axis after renewal rotates tolerance calibration value It that is to say, obtain after renewal Two rotation tolerance calibration values include x-axis rotation tolerance calibration valueY-axis rotates tolerance calibration value
Certainly, in actual applications, efficiency is updated to dual camera module tolerance calibration value in order to improve, while The accuracy of dual camera module 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 module tolerance calibration value, but, It is directly at least one in the shifting deviation and rotational variations being calculated, dual camera module tolerance calibration value is carried out Renewal.
, can be by the dual camera module tolerance after renewal after being updated to dual camera module tolerance calibration value Calibration value is stored.
Step 206, the mobile terminal is not updated to the dual camera module 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 module, including the pixel of each camera, focal length, focal length ratio, f-number, double take the photograph Parallax range, module tolerance etc.;Step 602, build demarcation environment, including standard 2D gridiron pattern graph cards be set, environment colour temperature with And intensity of illumination etc.;Step 603, shooting obtains the first uncalibrated image and the second uncalibrated image;Step 604, module tolerance is calculated Change, including according to the second uncalibrated image after the first uncalibrated image and deviation compensation, calculate shifting deviation and rotational variations;Step Rapid 605, judge whether to be updated dual camera module tolerance calibration value, shifting deviation and shifting deviation threshold value are compared Compared with, and by rotational variations compared with rotational variations threshold value, if shifting deviation is more than shifting deviation threshold value, and/or, rotate Deviation is more than rotational variations threshold value, it is determined that dual camera module tolerance calibration value is updated, performs step 606, otherwise It is determined that not being updated to dual camera module tolerance calibration value, step 607 is performed;Step 606, to dual camera module tolerance Calibration value is updated;Step 607, dual camera module tolerance calibration value is not updated.
In embodiments of the present invention, firstly, for the mobile terminal for being provided with dual camera module, can be passed through respectively One camera and second camera obtain the first uncalibrated image and the second uncalibrated image, public according to default dual camera module Poor calibration value carries out deviation compensation processing to the first uncalibrated image or the second uncalibrated image, after then being handled according to deviation compensation Uncalibrated image and the uncalibrated image for not compensating processing, determine the image that dual camera module tolerance calibration value obtains to shooting Deviation compensation effect, and then dual camera module tolerance calibration value is updated, improves dual camera module tolerance mark The accuracy of definite value, reduce due to the module tolerance actual for dual camera module tolerance calibration value and dual camera module The poor possibility of deviation compensation effect, improves shooting effect caused by inconsistent.
Secondly, can destination object be in the first camera camera lens center, win the first place uncalibrated image and the Two uncalibrated images, and deviation compensation processing is carried out to the second uncalibrated image based on dual camera module tolerance calibration value, so as to Enough positions for being easy to determine in the second uncalibrated image of the destination object respectively after the first uncalibrated image and deviation compensation processing or Angle difference, the efficiency for determining shifting deviation and/rotational variations is improved, and then improve and dual camera module tolerance is demarcated The efficiency that value is updated.
In addition, dual camera module tolerance calibration value, which can include the first translation tolerance calibration value and first, rotates tolerance mark It is at least one in definite value, shifting deviation can be determined according to the second uncalibrated image after the first uncalibrated image and compensation deals With/rotational variations, so as to first translation tolerance calibration value and first rotation tolerance calibration value in it is at least one be updated, The accuracy of module tolerance is further increased, improves shooting effect.
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 module tolerance calibration value is updated, saves cost.
Embodiment three
Reference picture 7, a kind of structured flowchart of mobile terminal of the embodiment of the present invention three is shown, is set on the mobile terminal Dual camera module is equipped with, the dual camera module includes the first camera and second camera, and the mobile terminal is specific It can include:
Taking module 701, for respectively by first camera and the second camera to same destination object Shot, obtain corresponding first uncalibrated image and the second uncalibrated image;
Compensating module 702, for based on default dual camera module tolerance calibration value, to first uncalibrated image or Second uncalibrated image carries out deviation compensation processing;
Update module 703, the calibration maps of processing are not compensated for the uncalibrated image after being handled based on deviation compensation and Picture, the dual camera module tolerance calibration value is updated.
Optionally, the taking module includes:
Shooting submodule, during center for the camera lens that first camera is in when the destination object, point Same destination object is not shot by first camera and the second camera, obtains corresponding first demarcation Image and the second uncalibrated image;
The compensating module includes:
Submodule is compensated, for based on default dual camera module tolerance calibration value, entering to second uncalibrated image The processing of row deviation compensation.
Optionally, the dual camera module tolerance calibration value includes the first translation tolerance calibration value, the update module Including:
First determination sub-module, for determining first picture of the center of the destination object in first uncalibrated image Vegetarian refreshments coordinate, and the destination object center deviation compensation processing after second uncalibrated image in the second pixel Point coordinates;
Second determination sub-module, for based on the first pixel point coordinates and the second pixel point coordinates, determining institute State the shifting deviation of dual camera module;
First renewal submodule, for being updated according to the shifting deviation to the described first translation tolerance calibration value.
Optionally, the update module also includes:
First judging submodule, for judging whether the shifting deviation is more than shifting deviation threshold value;
First triggering submodule, if being more than the shifting deviation threshold value for the shifting deviation, triggers described the One renewal submodule performs described the step of being updated according to the shifting deviation to the described first translation tolerance calibration value.
Optionally, the dual camera module tolerance calibration value includes the first rotation tolerance calibration value, the destination object For rectangular image, the update module includes:
3rd determination sub-module, it is each in second uncalibrated image of the rectangular image after compensation deals for determining The length of side on side;
4th determination sub-module, for the length of side based on each side, determine the rotational variations of the dual camera module;
Second renewal submodule, for being updated according to the rotational variations to the described first rotation tolerance calibration value.
Optionally, the update module also includes:
Second judging submodule, for judging whether the rotational variations are more than rotational variations threshold value;
Second triggering submodule, if being more than the rotational variations threshold value for the rotational variations, triggers described the Two renewal submodules perform described the step of being updated according to the rotational variations to the described first rotation tolerance calibration value.
In embodiments of the present invention, for being provided with the mobile terminal of dual camera module, 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 default dual camera module tolerance mark Definite value carries out deviation compensation processing, the demarcation after then being handled according to deviation compensation to the first uncalibrated image or the second uncalibrated image Image and the uncalibrated image for not compensating processing, determine the inclined of the image that dual camera module tolerance calibration value obtains to shooting Poor compensation effect, and then dual camera module tolerance calibration value is updated, improve dual camera module 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 used to realize that the connection between these components is led to Letter.Bus system 805 is in addition to including data/address bus, in addition to power bus, controlling bus and status signal bus in addition.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 can 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, Or it may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (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 embodiment of the present invention description system and method memory 802 be intended to including but not limited to these With the memory of any other suitable type.
In some embodiments, memory 802 stores following element, can perform module or data structure, or Their subset of person, or their superset:Operating system 8021 and application program 8022.
Wherein, operating system 8021, comprising various system programs, such as ccf layer, core library layer, driving layer etc., it is used for Realize various basic businesses and the hardware based task of processing.Application program 8022, include 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 calling program or the instruction of the storage of memory 802, specifically, can be application The program stored in program 8022 or instruction, processor 801 are used for:
Same destination object is shot by first camera and the second camera respectively, obtained correspondingly The first uncalibrated image and the second uncalibrated image;
Based on default dual camera module tolerance calibration value, to first uncalibrated image or second uncalibrated image Carry out deviation compensation processing;
The uncalibrated image of processing is not compensated based on the uncalibrated image after deviation compensation processing and, to the dual camera Module tolerance calibration value is updated.
The method that the embodiments of the present invention disclose can apply in processor 801, or be realized by processor 801. Processor 801 is probably a kind of IC chip, has the disposal ability of signal.In implementation process, 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), special integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic, Discrete hardware components.It can realize or perform 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 can also be any conventional processor etc..With reference to institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor And software module combination performs completion.Software module can be located at random access memory, flash memory, read-only storage, may be programmed read-only In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at Memory 802, processor 801 read the information in memory 802, with reference to the step of its hardware completion above method.
It is understood that the embodiment of the present invention description these embodiments can use hardware, software, firmware, middleware, Microcode or its combination are realized.Realized for hardware, processing unit can be realized in one or more application 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 Manage in device, controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
For software realize, can by perform the module (such as process, function etc.) of function described in the embodiment of the present invention come Realize the technology described in the embodiment of the present invention.Software code is storable in memory and passes through computing device.Memory can To realize within a processor or outside processor.
Alternatively, it is described that same destination object is clapped by first camera and the second camera respectively Take the photograph, obtaining corresponding first uncalibrated image and the second uncalibrated image includes:
When the destination 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 are shot to same destination object, obtain corresponding to the first uncalibrated image and the second calibration maps Picture;
It is described to be based on default dual camera module tolerance calibration value, to first uncalibrated image or second demarcation Image, which carries out deviation compensation processing, to be included:
Based on default dual camera module tolerance calibration value, deviation compensation processing is carried out to second uncalibrated image.
Alternatively, the dual camera module 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, enter to the dual camera module tolerance calibration value Row renewal includes:
Determine first pixel point coordinates of the center of the destination object in first uncalibrated image, and the mesh Mark the second pixel point coordinates in second uncalibrated image of the center of object after deviation compensation processing;
Based on the first pixel point coordinates and the second pixel point coordinates, the translation of the dual camera module is determined Deviation;
The described first translation tolerance calibration value is updated according to the shifting deviation.
Alternatively, it is described according to the shifting deviation to described first translation tolerance calibration value be updated before, also Including:
Judge whether the shifting deviation is more than shifting deviation threshold value;
If the shifting deviation is more than the shifting deviation threshold value, perform it is described according to the shifting deviation to described The step of first translation tolerance calibration value is updated.
Alternatively, the dual camera module tolerance calibration value includes the first rotation tolerance calibration value, the destination object For rectangular image, uncalibrated image after the processing based on deviation compensation and the uncalibrated image for not compensating processing, to described Dual camera module tolerance calibration value be updated including:
Determine the length of side on each side in second uncalibrated image of the rectangular image after compensation deals;
Based on the length of side on each side, the rotational variations of the dual camera module are determined;
The described first rotation tolerance calibration value is updated according to the rotational variations.
Alternatively, it is described according to the rotational variations to described first rotation tolerance calibration value be updated before, also Including:
Judge whether the rotational variations are more than rotational variations threshold value;
If the rotational variations are more than the rotational variations threshold value, perform it is described according to the rotational variations to described The step of first rotation tolerance calibration value is updated.
Mobile terminal 800 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, here Repeat no more.In the embodiment of the present invention, the mobile terminal for being provided with dual camera module, mobile terminal 800 can be distinguished First uncalibrated image and the second uncalibrated image are obtained by the first camera and second camera, according to default dual camera Module 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 module tolerance calibration value obtains to shooting Image deviation compensation effect, and then dual camera module tolerance calibration value is updated, improves dual camera module The accuracy of tolerance calibration value, improves shooting effect.
Embodiment five
Fig. 9 is the structural representation of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 9 900 can be mobile phone, tablet personal 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 block 930 can be used for the numeral or character information for receiving user's input, and generation and mobile terminal The signal input that 900 user is set and function control is relevant.Specifically, in the embodiment of the present invention, the input block 930 can With including contact panel 931.Contact panel 931, collecting touch operation of the user on or near it, (for example user uses hand The operation of any suitable object such as finger, stylus or annex on contact panel 931), and driven according to formula set in advance Corresponding attachment means.Optionally, contact panel 931 may include both touch detecting apparatus and touch controller.Wherein, Touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation is brought, and 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 the order sent of reception processing device 960 and can be performed.Furthermore, it is possible to use resistance-type, condenser type, infrared ray with And the polytype such as surface acoustic wave realizes contact panel 931.Except contact panel 931, input block 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, the one or more in action bars etc..
Wherein, display unit 940 can be used for display by the information of user's input or be supplied to information and the movement of user The various menu interfaces of terminal 900.Display unit 940 may include display panel 941, optionally, can use LCD or organic hairs The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 941.
It should be noted that contact panel 931 can cover display panel 941, touch display screen is formed, when the touch display screen is examined After measuring the touch operation on or near it, 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 conventional control viewing area.The Application Program Interface viewing area And arrangement mode of the conventional 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 element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area It can also be the empty interface not comprising any content.The conventional control viewing area is used to show the higher control of utilization rate, for example, Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 960 is the control centre of mobile terminal 900, utilizes various interfaces and connection whole mobile phone Various pieces, by running or performing the software program and/or module that are stored in first memory 921, and call storage Data in second memory 922, the various functions and processing data of mobile terminal 900 are performed, so as 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 destination object is shot by first camera and the second camera respectively, obtained correspondingly The first uncalibrated image and the second uncalibrated image;
Based on default dual camera module tolerance calibration value, to first uncalibrated image or second uncalibrated image Carry out deviation compensation processing;
The uncalibrated image of processing is not compensated based on the uncalibrated image after deviation compensation processing and, to the dual camera Module tolerance calibration value is updated.
Alternatively, it is described that same destination object is clapped by first camera and the second camera respectively Take the photograph, obtaining corresponding first uncalibrated image and the second uncalibrated image includes:
When the destination 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 are shot to same destination object, obtain corresponding to the first uncalibrated image and the second calibration maps Picture;
It is described to be based on default dual camera module tolerance calibration value, to first uncalibrated image or second demarcation Image, which carries out deviation compensation processing, to be included:
Based on default dual camera module tolerance calibration value, deviation compensation processing is carried out to second uncalibrated image.
Alternatively, the dual camera module 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, enter to the dual camera module tolerance calibration value Row renewal includes:
Determine first pixel point coordinates of the center of the destination object in first uncalibrated image, and the mesh Mark the second pixel point coordinates in second uncalibrated image of the center of object after deviation compensation processing;
Based on the first pixel point coordinates and the second pixel point coordinates, the translation of the dual camera module is determined Deviation;
The described first translation tolerance calibration value is updated according to the shifting deviation.
Alternatively, it is described according to the shifting deviation to described first translation tolerance calibration value be updated before, also Including:
Judge whether the shifting deviation is more than shifting deviation threshold value;
If the shifting deviation is more than the shifting deviation threshold value, perform it is described according to the shifting deviation to described The step of first translation tolerance calibration value is updated.
Alternatively, the dual camera module tolerance calibration value includes the first rotation tolerance calibration value, the destination object For rectangular image, uncalibrated image after the processing based on deviation compensation and the uncalibrated image for not compensating processing, to described Dual camera module tolerance calibration value be updated including:
Determine the length of side on each side in second uncalibrated image of the rectangular image after compensation deals;
Based on the length of side on each side, the rotational variations of the dual camera module are determined;
The described first rotation tolerance calibration value is updated according to the rotational variations.
Alternatively, it is described according to the rotational variations to described first rotation tolerance calibration value be updated before, also Including:
Judge whether the rotational variations are more than rotational variations threshold value;
If the rotational variations are more than the rotational variations threshold value, perform it is described according to the rotational variations to described The step of first rotation tolerance calibration value is updated.
For said apparatus embodiment, because it is substantially similar to embodiment of the method, so description is fairly 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 renewal mobile terminal when being executed by processor Each process of the embodiment of the method for calibration value, and identical technique effect can be reached, to avoid repeating, repeat no more here.
Embodiment seven
The embodiment of the present invention also provides a kind of computer-readable recording medium, and meter is stored with computer-readable recording medium Calculation machine program, the computer program realize the embodiment of the method for the calibration value of above-mentioned renewal mobile terminal when being executed by processor Each process, and identical technique effect can be reached, to avoid repeating, repeat no more here.Wherein, it is described computer-readable Storage medium, such as read-only storage (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
Each embodiment in this specification is described by the way of progressive, what each embodiment stressed be with The difference of other embodiment, between each embodiment identical similar part mutually referring to.
It would have readily occurred to a person skilled in the art that be: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 teaching based on this.As described above, construct It is obvious with the structure required by the system of the present invention program.In addition, the present invention is not also directed to any certain programmed Language.It should be understood that the content of invention described herein can be realized using various programming languages, and above to specific language The done description of speech is to disclose the preferred forms of the present invention.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the present invention and help to understand one or more of each inventive aspect, Above in the description to the 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 method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield features more more than the feature being 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 embodiment, wherein the conduct of each claim in itself The separate embodiments of the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in 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 Mode it can use in any combination.
The all parts embodiment of the present invention can be realized with hardware, or to be run on one or more processor Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice Microprocessor or digital signal processor (DSP) realize the calibration value of renewal mobile terminal according to embodiments of the present invention The some or all functions of some or all parts in method.The present invention is also implemented as being used to perform being retouched here The some or all equipment or program of device (for example, computer program and computer program product) for the method stated. Such program for realizing the present invention can store on a computer-readable medium, or can have one or more signal Form.Such signal can be downloaded from internet website and obtained, either provide on carrier signal or with it is any its He provides form.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket 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" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.

Claims (14)

  1. A kind of 1. method for the calibration value for updating mobile terminal, it is characterised in that be provided with dual camera on the mobile terminal Module, the dual camera module include the first camera and second camera, the side of the calibration value of the renewal mobile terminal Method includes:
    Same destination object is shot by first camera and the second camera respectively, obtain corresponding to the One uncalibrated image and the second uncalibrated image;
    Based on default dual camera module tolerance calibration value, first uncalibrated image or second uncalibrated image are carried out Deviation compensation processing;
    The uncalibrated image of processing is not compensated based on the uncalibrated image after deviation compensation processing and, to the dual camera module Tolerance calibration value is updated.
  2. 2. the method for the calibration value of renewal mobile terminal according to claim 1, it is characterised in that described to pass through institute respectively State the first camera and the second camera shot to same destination object, obtain corresponding to the first uncalibrated image and the Two uncalibrated images include:
    When the destination object is in the center of the camera lens of first camera, pass through first camera respectively Same destination object is shot with the second camera, obtains corresponding first uncalibrated image and the second uncalibrated image;
    It is described to be based on default dual camera module tolerance calibration value, to first uncalibrated image or second uncalibrated image Carrying out deviation compensation processing includes:
    Based on default dual camera module tolerance calibration value, deviation compensation processing is carried out to second uncalibrated image.
  3. 3. the method for the calibration value of renewal mobile terminal according to claim 2, it is characterised in that the dual camera mould Group tolerance calibration value includes the first translation tolerance calibration value;
    Uncalibrated image after the processing based on deviation compensation and the uncalibrated image of processing is not compensated, to the dual camera Module tolerance calibration value be updated including:
    Determine first pixel point coordinates of the center of the destination object in first uncalibrated image, and the target pair The second pixel point coordinates in second uncalibrated image of the center of elephant after deviation compensation processing;
    Based on the first pixel point coordinates and the second pixel point coordinates, determine that the translation of the dual camera module is inclined Difference;
    The described first translation tolerance calibration value is updated according to the shifting deviation.
  4. 4. the method for the calibration value of renewal mobile terminal according to claim 3, it is characterised in that described in the basis Before shifting deviation is updated to the described first translation tolerance calibration value, in addition to:
    Judge whether the shifting deviation is more than shifting deviation threshold value;
    If the shifting deviation is more than the shifting deviation threshold value, perform it is described according to the shifting deviation to described first The step of translation tolerance calibration value is updated.
  5. 5. the method for the calibration value of renewal mobile terminal according to claim 2, it is characterised in that the dual camera mould Group tolerance calibration value includes first and rotates tolerance calibration value, and the destination object is rectangular image;
    Uncalibrated image after the processing based on deviation compensation and the uncalibrated image of processing is not compensated, to the dual camera Module tolerance calibration value be updated including:
    Determine the length of side on each side in second uncalibrated image of the rectangular image after compensation deals;
    Based on the length of side on each side, the rotational variations of the dual camera module are determined;
    The described first rotation tolerance calibration value is updated according to the rotational variations.
  6. 6. the method for the calibration value of renewal mobile terminal according to claim 5, it is characterised in that described in the basis Before rotational variations are updated to the described first rotation tolerance calibration value, in addition to:
    Judge whether the rotational variations are more than rotational variations threshold value;
    If the rotational variations are more than the rotational variations threshold value, perform it is described according to the rotational variations to described first Rotate the step of tolerance calibration value is updated.
  7. 7. a kind of mobile terminal, it is characterised in that dual camera module, the dual camera mould are provided with the mobile terminal Group includes the first camera and second camera, and the mobile terminal includes:
    Taking module, for being clapped respectively by first camera and the second camera same destination object Take the photograph, obtain corresponding first uncalibrated image and the second uncalibrated image;
    Compensating module, for based on default dual camera module tolerance calibration value, to first uncalibrated image or described Two uncalibrated images carry out deviation compensation processing;
    Update module, the uncalibrated image of processing is not compensated for the uncalibrated image after being handled based on deviation compensation and, to institute Dual camera module tolerance calibration value is stated to be updated.
  8. 8. mobile terminal according to claim 7, it is characterised in that the taking module includes:
    Shooting submodule, during center for the camera lens that first camera is in when the destination object, lead to respectively Cross first camera and the second camera is shot to same destination object, obtain corresponding first uncalibrated image With the second uncalibrated image;
    The compensating module includes:
    Submodule is compensated, for based on default dual camera module tolerance calibration value, being carried out to second uncalibrated image inclined Poor compensation deals.
  9. 9. mobile terminal according to claim 8, it is characterised in that the dual camera module tolerance calibration value includes the One translation tolerance calibration value;
    The update module includes:
    First determination sub-module, for determining first pixel of the center of the destination object in first uncalibrated image Coordinate, and the destination object center deviation compensation processing after second uncalibrated image in the second pixel sit Mark;
    Second determination sub-module, for based on the first pixel point coordinates and the second pixel point coordinates, determining described double The shifting deviation of camera module;
    First renewal submodule, for being updated according to the shifting deviation to the described first translation tolerance calibration value.
  10. 10. mobile terminal according to claim 9, it is characterised in that the update module also includes:
    First judging submodule, for judging whether the shifting deviation is more than shifting deviation threshold value;
    First triggering submodule, if being more than the shifting deviation threshold value for the shifting deviation, triggers described first more New submodule performs described the step of being updated according to the shifting deviation to the described first translation tolerance calibration value.
  11. 11. mobile terminal according to claim 7, it is characterised in that the dual camera module tolerance calibration value includes First rotates tolerance calibration value, and the destination object is rectangular image;
    The update module includes:
    3rd determination sub-module, for determining each side in second uncalibrated image of the rectangular image after compensation deals The length of side;
    4th determination sub-module, for the length of side based on each side, determine the rotational variations of the dual camera module;
    Second renewal submodule, for being updated according to the rotational variations to the described first rotation tolerance calibration value.
  12. 12. mobile terminal according to claim 11, it is characterised in that the update module also includes:
    Second judging submodule, for judging whether the rotational variations are more than rotational variations threshold value;
    Second triggering submodule, if being more than the rotational variations threshold value for the rotational variations, triggers described second more New submodule performs described the step of being updated according to the rotational variations to the described first rotation tolerance calibration value.
  13. 13. a kind of mobile terminal, it is characterised in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, the computer program is realized such as claim 1 to 6 during the computing device Any one of renewal mobile terminal calibration value method the step of.
  14. 14. a kind of computer-readable recording medium, it is characterised in that computer journey is stored on the computer-readable recording medium Sequence, the renewal mobile terminal as any one of claim 1 to 6 is realized when the computer program is executed by processor The step of method of calibration value.
CN201710743272.4A 2017-08-25 2017-08-25 A kind of method and mobile terminal of the calibration value updating mobile terminal Active CN107566720B (en)

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 true CN107566720A (en) 2018-01-09
CN107566720B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108491225A (en) * 2018-03-15 2018-09-04 维沃移动通信有限公司 A kind of update packet generation method and mobile terminal
CN109215087A (en) * 2018-08-28 2019-01-15 维沃移动通信有限公司 A kind of scaling method, device and the terminal of dual camera mould group
CN109379521A (en) * 2018-11-30 2019-02-22 Oppo广东移动通信有限公司 Camera calibration method, device, computer equipment and storage medium
CN109559352A (en) * 2018-11-30 2019-04-02 Oppo广东移动通信有限公司 Camera calibration method, device, electronic equipment and computer readable storage medium
CN109685853A (en) * 2018-11-30 2019-04-26 Oppo广东移动通信有限公司 Image processing method, device, electronic equipment and computer readable storage medium
CN111833394A (en) * 2020-07-27 2020-10-27 深圳惠牛科技有限公司 Camera calibration method and measuring method based on binocular measuring device

Citations (7)

* Cited by examiner, † Cited by third party
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
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

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108491225A (en) * 2018-03-15 2018-09-04 维沃移动通信有限公司 A kind of update packet generation method and mobile terminal
CN109215087A (en) * 2018-08-28 2019-01-15 维沃移动通信有限公司 A kind of scaling method, device and the terminal of dual camera mould group
CN109215087B (en) * 2018-08-28 2021-04-27 维沃移动通信有限公司 Calibration method and device of double-camera module and terminal
CN109379521A (en) * 2018-11-30 2019-02-22 Oppo广东移动通信有限公司 Camera calibration method, device, computer equipment and storage medium
CN109559352A (en) * 2018-11-30 2019-04-02 Oppo广东移动通信有限公司 Camera calibration method, device, electronic equipment and computer readable storage medium
CN109685853A (en) * 2018-11-30 2019-04-26 Oppo广东移动通信有限公司 Image processing 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
CN109559352B (en) * 2018-11-30 2021-04-23 Oppo广东移动通信有限公司 Camera calibration method, device, electronic equipment and computer-readable storage medium
CN111833394A (en) * 2020-07-27 2020-10-27 深圳惠牛科技有限公司 Camera calibration method and measuring method based on binocular measuring device

Also Published As

Publication number Publication date
CN107566720B (en) 2019-09-27

Similar Documents

Publication Publication Date Title
CN107566720A (en) A kind of method and mobile terminal of the calibration value for updating mobile terminal
CN107547734B (en) Method, mobile terminal and the storage medium that screen intensity is adjusted
CN107613219B (en) A kind of image pickup method, mobile terminal and storage medium
CN106254682B (en) A kind of photographic method and mobile terminal
CN106101553B (en) A kind of photographic method and mobile terminal
CN107317993B (en) A kind of video call method and mobile terminal
CN107172361B (en) A kind of method and mobile terminal of pan-shot
CN107657591A (en) A kind of image processing method and mobile terminal
CN107040722B (en) A kind of image pickup method and mobile terminal
CN107123144A (en) A kind of method and mobile terminal for positioning calibration
CN107566723B (en) A kind of image pickup method, mobile terminal and computer readable storage medium
CN109584375A (en) A kind of object information display methods and mobile terminal
CN107147837A (en) The method to set up and mobile terminal of a kind of acquisition parameters
CN106502512A (en) A kind of display methods of picture and mobile terminal
CN106331519A (en) Method for adjusting light-compensating lamp and mobile terminal
CN107172346A (en) A kind of weakening method and mobile terminal
CN106131398B (en) A kind of image browsing method and mobile terminal
CN106791809B (en) A kind of light measuring method and mobile terminal
CN106993091A (en) A kind of image weakening method and mobile terminal
CN106909334A (en) A kind of method and mobile terminal for adjusting screen color temp
CN107483821A (en) A kind of image processing method and mobile terminal
CN107509024B (en) One kind is taken pictures processing method and mobile terminal
CN107463051A (en) A kind of exposure method and device
CN106060410B (en) A kind of method and mobile terminal imaging head controlling device, pan-shot
CN106101552B (en) A kind of panorama photographic 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