Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
AUTOMATIC STEREOSCOPIC CAMERA CALIBRATION
Document Type and Number:
WIPO Patent Application WO/2014/139728
Kind Code:
A1
Abstract:
An apparatus for calibrating a stereoscopic camera, the apparatus comprising: -a processing unit configured to support at least a first triangulation unit, a second triangulation unit and a Bundle Adjustment unit, with respect to at least one stereo- image of the stereoscopic camera, wherein the processing unit is further configured to determine a convergence criterion indicative of whether or not a camera calibration ground-truth has been found. A method, devices and a computer-readable storage medium are also claimed.

Inventors:
DROUOT ANTOINE (FR)
Application Number:
PCT/EP2014/052071
Publication Date:
September 18, 2014
Filing Date:
February 03, 2014
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
ST ERICSSON SA (CH)
International Classes:
G06T7/00
Foreign References:
US7023473B22006-04-04
Other References:
CHRISTIAN KURZ ET AL: "Bundle Adjustment for Stereoscopic 3D", 1 January 2011, COMPUTER VISION/COMPUTER GRAPHICS COLLABORATION TECHNIQUES, SPRINGER BERLIN HEIDELBERG, BERLIN, HEIDELBERG, PAGE(S) 1 - 12, ISBN: 978-3-642-24135-2, XP019167697
MAURICIO HESS-FLORES ET AL: "Ray Divergence-Based Bundle Adjustment Conditioning for Multi-view Stereo", 1 January 2012, ADVANCES IN IMAGE AND VIDEO TECHNOLOGY, SPRINGER BERLIN HEIDELBERG, BERLIN, HEIDELBERG, PAGE(S) 153 - 164, ISBN: 978-3-642-25366-9, XP019170127
BENJAMIN ALBOUY ET AL: "Accurate 3D Structure Measurements from Two Uncalibrated Views", 1 January 2006, ADVANCED CONCEPTS FOR INTELLIGENT VISION SYSTEMS LECTURE NOTES IN COMPUTER SCIENCE;;LNCS, SPRINGER, BERLIN, DE, PAGE(S) 1111 - 1121, ISBN: 978-3-540-44630-9, XP019043323
DANG, THAO ET AL.: "Continuous stereo self-calibration by camera parameter tracking", IEEE TRANSACTIONS ON IMAGE PROCESSING, vol. 18, no. 7, July 2009 (2009-07-01), pages 1536 - 1550, XP011269224, DOI: doi:10.1109/TIP.2009.2017824
Attorney, Agent or Firm:
VERDURE, Stéphane et al. (52 rue de la Victoire, Paris Cedex 09, FR)
Download PDF:
Claims:
Claims

1. An apparatus (200) for calibrating a stereoscopic camera (401 , 402, 501 , 502), the apparatus comprising :

- a processing unit (201 ) configured to support at least a first triangulation unit (210), a second triangulation unit (230) and a Bundle Adjustment unit (220), with respect to at least one stereo-image of the stereoscopic camera, wherein:

- the first triangulation unit and second triangulation unit are coupled to the Bundle Adjustment unit;

- the first triangulation unit is configured to generate a first plurality of 3D object-point coordinates estimates, E3D, based on at least a plurality of measured 2D image-point correspondences, PCO, of the stereo-image and an initial calibration estimate, CAE, of the stereoscopic camera;

- the first triangulation unit is further configured to generate a first reprojection error, RPE1 , corresponding to the error between the PCO and a projection of the E3D on the CAE;

- the Bundle Adjustment unit is configured to generate a refined calibration estimate, RCA, of the stereoscopic camera based on at least the PCO, the CAE and the E3D;

- the second triangulation unit is configured to generate a second plurality of 3D object-point coordinates estimates, NE3D, based on at least the PCO and the RCA;

- the second triangulation unit is further configured to generate a second reprojection error, RPE2, corresponding to the error between the PCO and a projection of the NE3D on the RCA;

- the Bundle Adjustment unit is further configured to generate the refined calibration estimate, RCA, of the stereoscopic camera based on at least the PCO, the CAE and the NE3D; and,

- the processing unit is further configured to determine a convergence criterion based on at least the RPE2 by iteratively generating the RCA and the RPE2, the convergence criterion being indicative of whether or not a camera calibration ground-truth has been found.

2. The apparatus of claim 1 , wherein the initial calibration estimate is a coarse estimate of the camera calibration ground-truth.

3. The apparatus of claim 2, wherein the initial calibration estimate is derived from physical specifications of the stereoscopic camera.

4. The apparatus of any one of claims 1 to 3, wherein the convergence criterion is fulfilled when the following formula apply:

RPE2 + s > RPEl

where:

- ε is a positive number.

5. The apparatus of any one of claims 1 to 3, wherein the convergence criterion is fulfilled when the following formula apply:

RPE 2 current + 8 > RPE 2 prevwuS

where:

- ε is a positive number;

- RPE2cumnt is the RPE2 of the current iteration; and,

- RPE2previ0US is the RPE2 of the iteration preceding the current iteration.

6. The apparatus of any one of claims 1 to 5, wherein the convergence criterion is fulfilled after a given number of iterations have been performed.

7. The apparatus of claim 6, wherein the convergence criterion is fulfilled when the following formula apply:

RPE2current RPE2th

where:

- RPE2current is the RPE2 of the current iteration; and,

- RPE2th is a predetermined reprojection error.

8. A device comprising:

- a stereoscopic camera (401 , 402);

- a stereoscopic image acquisition unit (410) configured to acquire at least one stereo-image and coupled to the stereoscopic camera; and,

- an apparatus (200) as defined in any one of claims 1 to 7 coupled to the stereoscopic image acquisition unit and configured to calibrate the stereoscopic camera based on the at least one stereo-image.

9. A device comprising:

- a stereoscopic camera (501 , 502);

- a stereoscopic image acquisition unit (510) configured to acquire at least one stereo-image and coupled to the stereoscopic camera; - a storage unit (520) configured to store the at least one stereo-image and coupled to the stereoscopic image acquisition unit; and,

- an apparatus (200) as defined in any one of claims 1 to 7 coupled to the storage unit and configured to calibrate the stereoscopic camera based on the at least one stereo-image.

10. A method of calibrating a stereoscopic camera (401 , 402, 501 , 502), the method comprising, with respect to at least one stereo-image of the stereoscopic camera:

- a first triangulation unit (210) generating a first plurality of 3D object-point coordinates estimates, E3D, based on at least a plurality of measured 2D image-point correspondences, PCO, of the stereo-image and an initial calibration estimate, CAE, of the stereoscopic camera;

- the first triangulation unit further generating a first reprojection error, RPE1 , corresponding to the error between the PCO and a projection of the E3D on the CAE;

- a Bundle Adjustment unit (220) generating a refined calibration estimate, RCA, of the stereoscopic camera based on at least the PCO, the CAE and the E3D;

- a second triangulation unit (230) generating a second plurality of 3D object- point coordinates estimates, NE3D, based on at least the PCO and the RCA

- the second triangulation unit further generating a second reprojection error, RPE2, corresponding to the error between the PCO and a projection of the NE3D on the RCA;

- the Bundle Adjustment unit further generating a refined calibration estimate, RCA, of the stereoscopic camera based on at least the PCO, the CAE and the NE3D; and,

wherein a convergence criterion is determine based on at least RPE2 by iteratively generating the RCA and the RPE2, the value of RPE2 being indicative of whether or not a camera calibration ground-truth has been found.

1 1. The method of claim 10, wherein the initial calibration estimate is a coarse estimate of the camera calibration ground-truth.

12. The method of any one of claims 10 to 1 1 , wherein the convergence criterion is fulfilled when the following formula apply: RPE2 + s > RPE\

where:

- ε is a positive number.

13. The method of any one of claims 10 to 1 1 , wherein the convergence criterion is fulfilled when the following formula apply:

RPE2current + s > RPE2pre,om

where:

- ε is a positive number;

- RPE2cumnt is the RPE2 of the current iteration; and,

- RPE2previ0US is the RPE2 of the iteration preceding the current iteration.

14. The method of any one of claims 10 to 13, wherein the convergence criterion is fulfilled after a given number of iterations have been performed.

15. The method of claim 14, wherein the convergence criterion is fulfilled when the following formula apply:

RPE2current RPE2lh

where:

- RPE2current is the RPE2 of the current iteration; and,

- RPE2th is a predetermined reprojection error.

16. A computer program product stored in a non-transitory computer-readable storage medium that stores computer-executable code for calibrating a stereoscopic camera, the computer-executable process causing a processor of the computer to perform the method according to any one of claims 10 to 15.

Description:
Description

Automatic stereoscopic camera calibration

Technical Field

[0001] The present disclosure relates generally to stereoscopic cameras, and more specifically to a method and apparatus for calibrating such cameras. Background Art

[0002] Stereoscopic vision has seen a surge of attention since the adoption of 3D technology for many applications (e.g. automotive driver assistance video games, sport performance analysis and surgery monitoring) and the arrival in the market of stereoscopic displays on smartphones, console games, PCs and TVs. Stereoscopic displays simultaneously show two views of the same scene at each moment in time and may require special 3D glasses to filter the corresponding view for the left and right eye of the viewer. Stereoscopic vision involves the use of two cameras which are separated by a given distance to record one or more images of the same scene, thereinafter referred to as stereo-images and wherein each stereo-image comprises a plurality of image-points.

[0003] Camera calibration is the operation of identifying the relationship between one or more image-points from stereo-images to corresponding real world 3D object-points coordinates defining an object in the real world. Then, once this relationship is established, 3D information can be inferred from 2D information, and, vice versa, 2D information can be inferred from 3D information. Camera calibration may also be need for image rectification which allows efficient depth estimation and/or comfortable stereo viewing.

[0004] Through camera calibration, it is identified for each camera, intrinsic parameters (such as, for example, focal length, scale factors, distortion coefficients, etc.) and extrinsic parameters (such as, for example, camera position and orientation with respect to the world coordinate system), or a subset of these under a given camera model such as the pinhole camera model. Determining intrinsic and extrinsic parameters may involve taking pictures in different angles of specially prepared objects with known dimensions and whose coordinates in the real world are precisely known as well, from e.g. prior measurements. For example, document (10) US 7023473 B (SONY CORP) 04/04/2006 discloses a calibration method which requires a calibration object with known features and several stereo- images of the know object shot under various angles.

[0005] However, this type of calibration technique requires precise initial calibration measurements and is not well suited for applications in uncontrolled environments where, for example, camera parameters may be subject to drift, due to shocks or vibrations, such as those experienced in a day to day basis by handled devices comprising a stereoscopic camera such as smartphone or tablets.

Summary of invention

[0006] Thus, an objective of the proposed solution is to overcome the above problem by performing an automatic calibration with at least one natural stereo-image without the need of special or known objects.

[0007] A first aspect of the proposed solution relates to an apparatus for calibrating a stereoscopic camera, the apparatus comprising :

- a processing unit configured to support at least a first triangulation unit, a second triangulation unit and a Bundle Adjustment unit, with respect to at least one stereo-image of the stereoscopic camera, wherein:

- the first triangulation unit and second triangulation unit are coupled to the Bundle Adjustment unit;

- the first triangulation unit is configured to generate a first plurality of 3D object-point coordinates estimates (E3D) based on at least a plurality of measured 2D image-point correspondences (PCO) of the stereo-image and an initial calibration estimate (CAE) of the stereoscopic camera;

- the first triangulation unit is further configured to generate a first reprojection error (RPE1 ) corresponding to the error between the PCO and a projection of the E3D on the CAE;

- the Bundle Adjustment unit is configured to generate a refined calibration estimate (RCA) of the stereoscopic camera based on at least the PCO, the CAE and the E3D;

- the second triangulation unit is configured to generate a second plurality of 3D object-point coordinates estimates (NE3D) based on at least the PCO and the RCA; - the second triangulation unit is further configured to generate a second reprojection error (RPE2) corresponding to the error between the PCO and a projection of the NE3D on the RCA;

- the Bundle Adjustment unit is further configured to generate the refined calibration estimate (RCA) of the stereoscopic camera based on at least the PCO, the CAE and the NE3D; and,

- the processing unit is further configured to determine a convergence criterion based on at least the RPE2 by iteratively generating the RCA and the RPE2, the convergence criterion being indicative of whether or not a camera calibration ground-truth has been found.

[0008] A second aspect relates to a device comprising:

- a stereoscopic camera;

- a stereoscopic image acquisition unit configured to acquire at least one stereo-image and coupled to the stereoscopic camera; and,

- an apparatus as defined in the first aspect coupled to the stereoscopic image acquisition unit and configured to calibrate the stereoscopic camera based on the at least one stereo-image.

[0009] A third aspect relates to a device comprising:

- a stereoscopic camera

- a stereoscopic image acquisition unit configured to acquire at least one stereo-image and coupled to the stereoscopic camera;

- a storage unit configured to store the at least one stereo-image and coupled to the stereoscopic image acquisition unit; and,

- an apparatus as defined in the first aspect coupled to the storage unit and configured to calibrate the stereoscopic camera based on the at least one stereo-image.

[0010] A fourth aspect relates to a method of calibrating a stereoscopic camera, the method comprising, with respect to at least one stereo-image of the stereoscopic camera:

- a first triangulation unit generating a first plurality of 3D object-point coordinates estimates (E3D) based on at least a plurality of measured 2D image-point correspondences (PCO) of the stereo-image and an initial calibration estimate (CAE) of the stereoscopic camera; - the first triangulation unit further generating a first reprojection error (RPE1 ) corresponding to the error between the PCO and a projection of the E3D on the CAE;

- a Bundle Adjustment unit generating a refined calibration estimate (RCA) of the stereoscopic camera based on at least the PCO, the CAE and the E3D;

- a second triangulation unit generating a second plurality of 3D object- point coordinates estimates (NE3D) based on at least the PCO and the RCA;

- the second triangulation unit further generating a second reprojection error (RPE2) corresponding to the error between the PCO and a projection of the NE3D on the RCA;

- the Bundle Adjustment unit further generating a refined calibration estimate (RCA) of the stereoscopic camera based on at least the PCO, the CAE and the NE3D; and,

wherein a convergence criterion is determine based on at least RPE2 by iteratively generating the RCA and the RPE2, the convergence criterion being indicative of whether or not a camera calibration ground-truth has been found.

[001 1] A fifth aspect relates to a computer program product stored in a non- transitory computer-readable storage medium that stores computer- executable code for calibrating a stereoscopic camera, the computer- executable process causing a processor of the computer to perform the method according to fourth aspect.

[0012] Thus in a device embodying the principles of such mechanism, it is it possible to perform camera calibration without the need of precise initial calibration measurements and also without the need of a controlled environment. This result is achieved by iterating the determination of camera calibration estimates until proposer solution is found.

[0013] The one with ordinary skills in the art should note also that the proposed solution may work with one stereo-image thus making it easy to implement and cost effective. [0014] This is in contrast with prior art solutions wherein, for example, at least two different stereo-images may be needed as already explained above.

[0015] In an embodiment, the initial calibration estimate is a coarse estimate of the camera calibration ground-truth.

[0016] In one embodiment, the initial calibration estimate is derived from physical specifications of the stereoscopic camera.

[0017] In another embodiment, the convergence criterion is fulfilled when the following formula apply:

RPE2 + e > RPE\

where:

- ε is a positive number.

[0018] In yet another embodiment, the convergence criterion is fulfilled when the following formula apply:

RPE2 current , + e > RPE2 previous

where:

- ε is a positive number;

- RPE2 current is the RPE2 of the current iteration; and,

- RPE2 previous is the RPE2 of the iteration preceding the current iteration.

[0019] Possibly, the number ε is in the range of 1 e -3 to 1 e _1 .

[0020] In one embodiment, the convergence criterion is fulfilled after a given number of iterations have been performed.

[0021] Possibly, the convergence criterion is fulfilled when the following formula apply:

RPE2 current RPE2 th

where:

- RPE2 current is the RPE2 of the current iteration; and,

- RPE2 th is a predetermined reprojection error.

Brief description of drawings

[0022] A more complete understanding of the proposed solution may be obtained from a consideration of the following description in conjunction with the appended drawings, in which like reference numbers indicate the same or similar element and in which: [0023] FIG. 1 is a block diagrann illustrating a prior art apparatus for calibrating a camera.

[0024] FIG. 2 is a block diagram illustrating an embodiment of an apparatus for calibrating a camera according to the proposed solution.

[0025] FIG. 3 is a flow diagram illustrating an embodiment of a method of calibrating a camera used by the apparatus of FIG. 2.

[0026] FIG. 4 is a block diagram illustrating an embodiment of the apparatus of

FIG. 2 in a device according to the proposed solution.

[0027] FIG. 5 is a block diagram illustrating another embodiment of the apparatus of FIG. 2 in a device according to the proposed solution.

Description of embodiments

[0028] Referring now to FIG. 1 , there is shown therein a block diagram schematically illustrating a prior art apparatus 100 for calibrating a camera. The prior art apparatus 100 as shown comprises a processing unit 101 such as a processor and adapted to support a triangulation (TRI) unit 1 10 and a Bundle Adjustment (BA) unit 120 that are coupled together. The prior art apparatus 100 may be coupled to a camera (not shown) such as a stereoscopic camera and may have access to a plurality of stereo-images (not shown) taken by the camera.

[0029] Referring to FIG. 1 , the TRI unit 1 10 is configured to implement a triangulation technique and the BA unit 120 is configured to implement a Bundle Adjustment technique, both techniques being well known techniques in computer vision community so that no detailed description thereof will be provided here.

[0030] The TRI unit 1 10 may also be configured to determine a first estimate of 3D object-points coordinates (E3D) based on at least:

- a plurality of measured 2D image-point correspondences (PCO n ) with respect to the plurality of stereo-images; and,

- an initial precise version of intrinsic and extrinsic parameters of the camera thereinafter referred to as initial precise calibration estimate (CAEp).

[0031] The PCOn may correspond to the projections of real world object-points on the left and right images of each of the plurality stereo-images. The PCOn may be obtained using correspondence search methods such as Area- based methods or feature-based methods such as feature matching, block matching or optical flow.

[0032] The CAE P may be obtained by accurate measurements performed on the camera. Measurements could have been performed with conventional calibration methods such as using calibration patterns, manual setup or offline computing means, for example.

[0033] Referring back to FIG. 1 , the BA unit 120 may also be configured to determine a refined calibration estimate (RCA) of the camera based on at least the PCO n , the CAE P and the E3D. For example, methods such as Levenberg-Marquardt or gradient decent may be used for such purpose.

[0034] One drawback of the prior art apparatus 100 is the fact that the BA unit 120 performs well only with an estimate of the camera calibration which is hard to obtain since it needs to be very precise. In fact, the CAE P used in the BA unit 120 needs to be quite close to the camera calibration ground- truth, i.e. the real world camera features of the camera used to acquire the plurality of stereo-images.

[0035] Improvements over the prior art apparatus 100 may be found, for example, in document (20) DANG, Thao, et al. Continuous stereo self-calibration by camera parameter tracking. IEEE Transactions on Image Processing. July 2009, vol.18, no.7, p.1536-1550., wherein the BA unit 120 is recursively applied on a plurality of stereo-images in order to further improve the refinement of an initial coarse calibration estimate (CAE C ) which is an initial guess of the calibration estimate and therefore less precise than the CAE P . Additionally, in document (20), a trifocal constraint also known as trilinear constraint is used on the PCOn, meaning that it is required that a correspondence search is performed on at least three images. Namely, a point of the E3D utilising the left and right images of a stereo-image should triangulate to the same point in the E3D when a third image is taken into consideration. One drawback of trifocal constraint is that it is complex to implement and requires a lot of processing time. Another drawback is the fact that it is required to acquire at least three images. [0036] The above drawbacks may be overcome to some extent by embodiments of the proposed solution, by taking into account at least one stereo-image for improving the refinement of the CAE C . According to the proposed solution, the at least one stereo-image may be a natural stereo-image wherein no special object with particular characteristics need to present therein.

[0037] Referring now to FIG. 2, there is shown therein an embodiment of an apparatus 200 for calibrating a camera according to the proposed solution. The apparatus 200 as shown comprises a processing unit 201 such as a processor and adapted to support a first TRI unit 210, a BA unit 220 and a second triangulation unit (TRI) 230 wherein the first TRI unit 210 and the second TRI unit 230 are both coupled to the BA unit 210.

[0038] The apparatus 200 may be coupled to the camera (not shown) such as a stereoscopic camera and may have access to at least one stereo-image (not shown) taken by the camera.

[0039] Referring to FIG. 2, the first TRI unit 210 may be configured to determine a first estimate of 3D object-points coordinates (E3D) based on at least:

- a plurality of measured 2D image-point correspondences (PCO-i) with respect to the at least one stereo-image; and,

- an initial coarse version of intrinsic and extrinsic parameters of the camera thereinafter referred to as initial coarse calibration estimate (CAEc).

[0040] The PCOi may correspond to the projections of real world object-points on the left and right images of the at least one stereo-image. The PCOi may be obtained using methods as described above regarding the PCO n .

[0041] The CAEc may be a coarse estimate of the camera calibration ground-truth instead of being a precise estimate as it was necessary the case in the prior art regarding CAE P .

[0042] For example, the CAE C may be deduced from the specifications of the camera.

[0043] For example, the principal point coordinates of the camera may be assumed to be in the middle of the sensor. Possibly, the skew factor may be assumed to be equal to 0 as it is the case for most of the modern sensors. Additionally, the parallel lens axis setup in which cameras of a stereoscopic camera are aligned on X and Y axis may be equal to a rigid transformation where t = (- b,0fi) and R is the 3x3

identity matrix and b is the distance between the two camera axis also referred to as the baseline.

[0044] Referring back to FIG. 2, the first TRI unit 210 may also be configured to determine a reprojection error (RPE1 ) corresponding to the error between the PCOi and a projection of the E3D on the CAE C . For example, the RPE1 may be equal to the average Euclidian distance between the points in the PCOi and the projection of their corresponding triangulated points in the E3D on the CAE C .

[0045] The BA unit 220 may also be configured to determine a refined calibration estimate (RCA) of the camera based on at least the PCO-i, the CAE C and the E3D using, for example, methods as described above.

[0046] The second TRI unit 230 may be configured to determine a second estimate of 3D object-points coordinates (NE3D) based on at least the PCOi and the RCA using, for example triangulation techniques as described above.

[0047] The second TRI unit 230 may also be configured to determine a second reprojection error (RPE2) corresponding to the error between the PCOi and a projection of the NE3D on the RCA. For example, RPE2 may be equal to the average Euclidian distance between the points in the PCOi and the projection of their corresponding triangulated points in the NE3D on the RCA.

[0048] The BA unit 220 may also be configured to determine again the refined calibration estimate (RCA) of the camera based on at least the PCO-i, the CAEc and the NE3D using, for example, methods as described above.

[0049] The one with ordinary skills in the art should note that using the RCA to triangulate the E3D based on the PCO-i, allows obtaining the NE3D which is a more accurate estimate of the real world 3D object-points coordinates than the E3D. [0050] The proposed solution is based on the idea that by iterating the determination of the RPE2 and the RCA, it is possible for the iterated RCA to converge towards the camera calibration ground-truth. For example, the operations of the BA unit 220 and the operations of the second TRI unit 230 may be iterated to achieve such a goal wherein each iterations starts with different initial parameters that become more and more close to their true value. Another important idea of the proposed solution, is the fact the CAEc is used in the determination of the current RCA instead of the RCA determined in the preceding iteration which is however available. In fact, it has been found that this choice would ensure that the iterated RCA would not converge to an odd camera calibration estimate that may be numerically sound but not physically relevant.

[0051] According to the proposed solution, the iteration process may be stopped based on a monitoring of the RPE2 for example at the output of the second TRI unit 230. Namely, as long as the RPE2 significantly decreases in consecutive iterations, then the process continues to be iterated. However, if the RPE2 suddenly increases, or simply does not decrease significantly, then the process is stopped.

[0052] Possibly, the iteration process may be stopped when a given convergence criterion is fulfilled.

[0053] In one embodiment, the convergence criterion may be fulfilled when the following formula apply:

RPE2 + s > RPEl (3)

where:

- ε is a positive variation number.

[0054] The above embodiment may be directed to the first iteration such that when the first RPE2 is available it can be compared to RPEL

[0055] In another embodiment, the convergence criterion may be fulfilled when the following formula apply:

RPE2 current + s > RPE2 previous (4) where:

- ε is the positive variation number; - RPE2 cumnt is the RPE2 of the current iteration; and,

- RPE2 previ0US is the RPE2 of the iteration preceding the current iteration.

[0056] The above embodiment may be directed to the subsequent iterations such that when the current RPE2 is available it can be compared to RPE2 determined in the iteration preceding the current iteration.

[0057] According to the proposed solution, the variation number ε may be in the range of range of 1e- 3 to e A . However, other ranges may be possible depending on the required application or the required degree of accuracy.

[0058] Namely, the variation number ε indicates whether the variation of the current RPE2 compared to the RPE1 or the RPE2 of the iteration preceding the current iteration is small enough in order for the iteration process to be stopped, meaning that it is considered that no variation has occurred between two subsequent iterations. Therefore ε also indicates that when the variation is large the iteration should continue to the subsequent iteration.

[0059] In other words, the iteration process would stop when a small decrease of the current RPE2 compared to the RPE1 or the RPE2 of the iteration preceding the current iteration is observed.

[0060] Alternatively, the iteration process would also stop when an increase of the current RPE2 compared to the RPE1 or the RPE2 of the iteration preceding the current iteration is observed.

[0061] Another possibility may consist in stopping the iteration after a given number of iterations have been performed. In that case, for example, the convergence criterion may be fulfilled when the following formula apply:

RPE2 current RPE2 th (5)

where:

- RPE2 current is the RPE2 of the current iteration; and,

- RPE2 th is a predetermined reprojection error.

[0062] In accordance with this embodiment the current RPE2 may be compared to a predetermined reprojection error RPE2 th corresponding to a desired reprojection error assessing the quality of the camera calibration process. For example, the predetermined reprojection error RPE2 th may have been obtained based on laboratory measurements or may be based on experience.

[0063] Thereinafter, reference will be made to FIG. 3, which is illustrating an embodiment of a method of calibrating a camera used by the apparatus 200 of FIG. 2.

[0064] In S300, it is determined the E3D with respect to at least one stereo- image, for example using the first TRI unit 210. As explained above, the RPE1 may also be determined at this stage.

[0065] In S310, it is determined the RCA with respect to the at least one stereo- image, for example using the BA unit 220.

[0066] In S320, it is determined the NE3D with respect to the at least one stereo- image, for example using the second TRI unit 230. As explained above, the RPE2 may also be determined at this stage.

[0067] In S330, it is determined whether the convergence criterion is fulfilled, for example by monitoring the RPE2. In the first iteration, the convergence criterion may be determined by using, for example, the formula (3). In the subsequent iterations, the convergence criterion may be determined by using, for example, the formula (4). However, as explained above, the method could also be stopped after a given number of iterations have been performed and/or when the convergence criterion based on the formula (5) is fulfilled.

[0068] Thus, until an acceptable RCA is found, the method would iterate through S310, S320 and S330.

[0069] The proposed solution may also be implemented in a computer program product stored in a non-transitory computer-readable storage medium that stores computer-executable code which causes a processor computer to perform a method according to the proposed solution. For example, the above program product may be embodied in a device comprising a stereoscopic camera and run during the manufacturing phase of the device such that the stereoscopic camera is calibrated as soon as a customer buys it. The program product may also be run directly by a user of the device, where for example in a GUI it would be asked to either take a stereo-image or select a previously recorded one and then a point correspondence search could be performed on the stereo-image prior the application of the method on the stereo-image. The point correspondence search could be automatically performed on each stereo-image taken or previously stored on the device. This operation that could be quite resource intensive could be performed as a background task or with a low priority such that it is not perceivable by the user, for example while the device is plugged on a charging socket. In one embodiment, the program product could be run when the device has detected that it has been subject to a mechanical shock such as a drop of the device on the floor.

[070] Referring now to FIG. 4, there is shown therein a block diagram schematically illustrating an embodiment of the apparatus 200 of FIG. 2 in a device 400 according to the proposed solution. The device 400 as shown comprises a stereoscopic camera 401 , 402, a stereoscopic image acquisition unit 410 and the apparatus 200. The stereoscopic image acquisition unit 410 is coupled to the stereoscopic camera 401 , 402 and is configured to acquire at least one stereo-image using the stereoscopic camera 401 , 402. The stereoscopic image acquisition unit 410 is also coupled to the apparatus 200 and is also configured to provide the at least one stereo-image to the apparatus 200 wherein the apparatus 200 is configured to calibrate the stereoscopic camera 401 , 402 based on the at least one stereo-image.

[071] Referring now to FIG. 5, there is shown therein a block diagram schematically illustrating an embodiment of the apparatus 200 of FIG. 2 in a device 500 according to the proposed solution. The device 500 as shown comprises a stereoscopic camera 501 , 502, a stereoscopic image acquisition unit 510, a storage unit 520 and the apparatus 200. The stereoscopic image acquisition unit 510 is coupled to the stereoscopic camera 501 , 502 and is configured to acquire at least one stereo-image using the stereoscopic camera 501 , 502. The stereoscopic image acquisition unit 510 is also coupled to the storage unit 520 and is also configured to provide the at least one stereo-image to the storage unit 520. The storage unit 520 is coupled to the apparatus 200 and is configured to store at least one stereo-image provided by the stereoscopic image acquisition unit 510. Additionally, the storage unit 520 is also configured to provide the at least one stereo-image to the apparatus 200 wherein the apparatus is configured to calibrate the stereoscopic camera based on the at least one stereo-image.

[072] The device 400, 500 may be handheld devices, portable devices, wireless devices, non-wireless devices, smartphone or a tablets, for example.

[073] Although the description has been presented mainly based on one stereo- image, a plurality of stereo-images or an entire video may be considered as well. The stereo-images may be natural images but non-natural images such as those comprising special objects to help calibration cameras may be considered as well. Additionally, for example, the triangulation units may be comprised in the same unit.

[074] Of course, the above advantages are exemplary, and these or other

advantages may be achieved by the proposed solution. Further, the skilled person will appreciate that not all advantages stated above are necessarily achieved by embodiments described herein.

[075] In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word 'comprising' does not exclude the presence of other elements or steps then those listed in a claim. Furthermore, the terms "a" or "an," as used herein, are defined as one or more than one. Also, the use of introductory phrases such as "at least one" and "one or more" in the claims should not be construed to imply that the introduction of another claim element by the indefinite articles "a" or "an" limits any particular claim containing such introduced claim element to inventions containing only one such element, even when the same claim includes the introductory phrases "one or more" or "at least one" and indefinite articles such as "a" or "an." The same holds true for the use of definite articles. Unless stated otherwise, terms such as "first" and "second" are used to arbitrarily distinguish between the elements such terms describe. Thus, these terms are not necessarily intended to indicate temporal or other prioritization of such elements. The mere fact that certain measures are recited in mutually different claims does not indicate that a combination of these measures cannot be used to advantage. Reference list

[076] Document (10): US 7023473 B (SONY CORP) 04.04.2006.

[077] Document (20): DANG, Thao, et al. Continuous stereo self-calibration by camera parameter tracking. IEEE Transactions on Image Processing. July

2009, vol.18, no.7, p.1536-1550.