Method and system for collateral camera calibration - Patents.com
The method and system for camera calibration using an asymmetric digital image and virtual views address the need for markerless and stationary camera pose determination, achieving precise camera translation and rotation calculations.
Patent Information
- Application Number
- JP2021574763
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-06-14
- Filing Date
- 2020-03-27
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-03-27
AI Technical Summary
Existing camera calibration methods require special markers or moving cameras, which may not be aesthetically desirable or feasible, and there is a need for a system that can determine camera pose without these constraints.
A method and system that uses an asymmetric digital calibration image embedded on a planar surface, generating composite views with virtual camera parameters, identifying features, and calculating extrinsic parameters through a perspective n-point problem using 2D-3D correspondences.
Enables camera pose determination without special markers or moving cameras, providing accurate translational and rotational coordinates for camera calibration.
Smart Images

Figure 0007542558000003 
Figure 0007542558000002 
Figure 0007542558000001
Abstract
Description
[Technical field]
[0001] (Field) The present disclosure relates to methods and systems for determining extrinsic parameters of a camera. In particular, the present disclosure relates to determining a six degree of freedom pose of a camera using image features. [Background technology]
[0002] (background) Methods for determining the location of the camera use fiducial markers with special designs from which known features can be extracted. For example, this can be done using QR code-like markers or checkerboard patterns. Another method for determining the location of the camera does not require any markers, but instead employs a movable camera to map the scene and estimate the pose in parallel. An example of this latter method is Visual Simultaneous Localization and Mapping (VSLAM).
[0003] When special markers are not desirable (e.g., for aesthetic reasons) and when it is not possible to move the camera, it may be useful to have a system that can calibrate the camera from a static viewpoint by capturing some known arbitrary graphic patterns. Summary of the Invention [Means for solving the problem]
[0004] (summary) A method for determining camera extrinsic parameters is disclosed. The method involves acquiring a digital calibration image and generating a plurality of synthetic views of the calibration image, each synthetic view having a set of virtual camera parameters. The method also includes identifying a set of features from each of the plurality of synthetic views, acquiring digital camera images of a representation of the digital calibration image, and identifying a set of features in the digital camera images. The method includes comparing each feature in the set of features of the digital camera images to each feature in each of the sets of features of the synthetic views, and identifying a set of matching features. The method includes calculating a virtual 3D position of the matched synthetic feature using the virtual camera parameters. The method concludes by calculating the extrinsic camera parameters through solving a perspective n-point problem utilizing the virtual 3D positions along with the matched captured features. The present invention provides, for example, the following: (Item 1) 1. A method for determining extrinsic parameters of a camera, comprising: Obtaining a digital calibration image; generating a plurality of synthetic views of the calibration image, each synthetic view having a set of virtual camera parameters; identifying a set of features from each of the plurality of synthetic views; acquiring a digital camera image of a representation of the digital calibration image; identifying a set of features within the digital camera image; comparing each feature in the set of digital camera image features to each feature in each of the sets of synthetic view features; using the comparison to identify a best match for each feature of the set of features of the digital camera image within features of the set of features of the synthetic view; calculating the extrinsic parameters of the camera using virtual camera parameters of the feature associated with the best match; A method comprising: (Item 2) Item 10. The method of item 1, wherein the digital calibration image is asymmetric in at least one dimension. (Item 3) 3. The method of claim 2, wherein the digital calibration image is a logo. (Item 4) 2. The method of claim 1, wherein the extrinsic parameters and the virtual camera parameters comprise translation and rotation coordinates. (Item 5) 2. The method of claim 1, wherein the multiple synthetic views are selected from a space of virtual camera parameters when the calibration image is within the field of view of the synthetic views. (Item 6) 2. The method of claim 1, wherein identifying a set of features from each of the multiple synthetic views and identifying a set of features in the digital camera image is performed using a feature detection module. (Item 7) 2. The method of claim 1, wherein identifying the best match includes calculating an element-by-element difference between each feature and minimizing this difference for both the synthetic view and the captured image and for both the captured image and the synthetic view. (Item 8) 2. The method of claim 1, further comprising identifying a region of interest in the digital camera image, wherein identifying a set of features in the digital camera image is performed only on the region of interest. (Item 9) a camera calibration module for determining a camera translation and rotation using a physical planar calibration pattern, the camera calibration module comprising: a synthetic pattern generator for generating a plurality of synthetic views of a digital calibration image corresponding to the physical planar calibration pattern; a feature detector for extracting a set of features from the captured images from the camera and from each of the plurality of synthetic views; a feature matching module for comparing each feature in the set of digital camera image features with each feature in each of the sets of synthetic view features and using the comparison to identify a best match for each feature in the set of digital camera image features within a feature in the set of synthetic view features; a calibration solver for computing a translation and rotation of the camera using virtual camera parameters of the feature associated with the best match; A system comprising: (Item 10) 10. The system of claim 9, wherein the digital calibration image is asymmetric in at least one dimension. (Item 11) Item 11. The system of item 10, wherein the digital calibration image is a logo. (Item 12) 10. The system of claim 9, wherein the extrinsic parameters and the virtual camera parameters comprise translation and rotation coordinates. (Item 13) 10. The system of claim 9, wherein the multiple synthetic views are selected from a space of virtual camera parameters when the calibration image is within the field of view of the synthetic views. (Item 14) 10. The system of claim 9, wherein the feature matching module is configured to calculate an element-by-element difference between each feature and identify a best match by minimizing this difference for both the synthetic view and the captured image and the captured image and the synthetic view. (Item 15) 10. The system of claim 9, wherein identifying a set of features within the digital camera image is performed only on a region of interest of the digital camera image. (Item 16) 1. A camera calibration system comprising: Item 9. A camera calibration module according to item 9; The camera; said physical planar calibration pattern; Equipped with A system in which the output from the camera is embedded with the translation and rotation of the camera. [Brief description of the drawings]
[0005] The drawings illustrate, by way of example only, preferred embodiments of the present disclosure.
[0006] [Figure 1] FIG. 1 is a high-level architectural representation of an embodiment of a camera calibration system.
[0007] [Diagram 2] FIG. 2 is an exemplary representation of a synthetic view of a calibration image using virtual camera parameters.
[0008] [Diagram 3] FIG. 3 is a series of example representations of feature correspondences between captured images and synthetic views. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] (Detailed Description) The present disclosure is directed to a camera calibration method and system for calculating extrinsic camera parameters. A calibration image of an arbitrary, but asymmetric design may be embedded or printed on a substantially planar surface visible to the camera being calibrated. A synthetic pattern generator may produce a synthetic view of the calibration image and virtual camera parameters. A feature detection and matching module may correlate 2D points in the captured image with virtual 3D points in the synthetic view. A calibration solver may then calculate the extrinsic parameters from the 2D-3D correspondence.
[0010] The camera's extrinsic parameters typically consist of a translation component t=(X, Y, Z) and a rotation component R. In 3-space, the former can be represented as a 3-vector, and the latter as a vector of Euler angles. The rotation components can alternatively be represented as a 3×3 rotation matrix, an angular axis vector, or similar. Extrinsic calibration is the process of obtaining R and t. The camera's intrinsic parameters are generally known from the camera and may include the field of view, focal length, and any lens distortion. Some intrinsic parameters can vary based on settings on the camera, such as the focal length on a zoom lens, but for calibration purposes may be assumed to be known.
[0011] 1, a calibration system may include a camera 10 to be calibrated, a digital calibration image 20, a physical planar calibration pattern 30, an image capture module 40, and a calibration module 50. The calibration module may contain a synthetic pattern generator 51, a feature detector 52, a feature matching module 53, and a calibration solver 54.
[0012] The digital calibration image 20 may be of arbitrary design, but preferably with asymmetry along at least one axis. The asymmetry may help avoid ambiguous solutions. The digital calibration image 20 may be embedded on a plane with known physical size to comprise the planar calibration pattern 30. Exemplary embodiments include a surface such as a flat movable board with a printed design or a wall or floor with an affixed transfer. An embodiment may use one or more of these planar calibration patterns, with the requirement that each pattern contains a distinctly different design. The digital calibration image 20, and therefore the planar calibration pattern 30, may be a logo, background image, or other design that may already appear normally within the field of view of the camera 10.
[0013] The image capture module 40 may convert the video signal from a video source into data suitable for digital image processing. The video source may be a digital camera or some other streaming video, such as a video stream over the Internet. The image capture module may provide an application programming interface, such as from the camera manufacturer of the camera 10 or a third party software library.
[0014] Referring to FIG. 2, a synthetic pattern generator module 51 may receive the digital calibration image 20 as input and produce a synthetic view 60. The synthetic pattern generator may be a software module that leverages existing 3D rendering frameworks such as OpenGL (or DirectX, Unity3D, Unreal, etc.) to render the digital calibration image into different synthetic views. The synthetic views may be images that depict the planar calibration pattern 20 under a certain camera projection transformation. This projection transformation of the virtual camera may be calculated from virtual camera parameters 70. The virtual camera parameters are a set of translation and rotation coordinates with respect to the virtual camera with respect to the planar calibration pattern 20. These virtual camera parameters may be used to map any 2D image coordinate in the synthetic view to a 3D position on the calibration pattern and vice versa.
[0015] Multiple synthetic views may be generated so that more candidate feature points are available to the feature detection module. Having additional synthetic views may allow for additional sets of features. The feature extraction algorithm may not be invariant to changes in viewpoint, and therefore may produce different features from different viewing angles. The synthetic views may be generated by choosing virtual camera parameters such that their intrinsic parameters mirror the known camera intrinsic parameters. The extrinsic parameters may be selected from a space of translations and rotations in which the calibration pattern is contained within the synthetic field of view. The synthetic views may be selected uniformly from the space, or may be selected based on information about a common position of the cameras. In one exemplary embodiment, nine synthetic views uniformly cover the hemisphere in front of the calibration pattern, while keeping the local y-axis of the virtual camera approximately aligned with the world y-axis. These synthetic views may correspond to a common camera position in which both the camera and the calibration pattern are mounted relative to the same horizontal orientation. In another example, the synthetic views may be selected from a priori known camera locations or from commonly used positions where the camera is generally in front of the calibration pattern but not at a highly oblique angle.
[0016] The feature detection module may comprise two sub-modules: a feature extraction module and a feature matching module. A feature in this context may be a patch of an image that can be identified by an accompanying descriptor. A descriptor may be an encoding of salient patch information in a lower dimensional space (e.g., an ND vector) that allows some kind of similarity measure between patches, e.g., the L2 norm of the difference between two descriptors. The feature extractor module may find features in the synthetic view and in the captured image. An embodiment may use any algorithm that identifies features in a manner that is invariant to scaling and rotation, such as Speed-Up Robust Features (SURF) or Maximum Stable Extremal Region (MSER).
[0017] Referring to FIG. 3, the feature matching module may find a set of correspondences 80 between features extracted from the captured image 90 and features extracted from each synthetic view 100. In one embodiment, the matches may be obtained through brute force. For a particular feature from the captured image, the module may iterate through all features from the synthetic view and calculate a cost or similarity pairwise. The feature from the synthetic view with the lowest cost is selected as the potential match. To reduce instances of false matches, the potential matching feature from the synthetic view may be compared with each feature from the captured image and the lowest cost feature from the captured image is selected as the cross-validation feature. The match may be accepted if the feature from the captured image under consideration is the same feature as the cross-validation feature and rejected if not. This process may be repeated for each captured feature and for each synthetic view.
[0018] Referring again to the example of FIG. 3, an example feature is indicated by a circle. An example match is indicated by a line connecting the black circles. The particular feature may be the lower right corner of the "F" as identified by the feature detection module. This feature in the captured image 90 is compared to all features in the first synthetic view 100a, and the match with the lowest cost is selected in this case. The selected feature from the synthetic view 100a is then compared to each feature in the captured image, and the match with the lowest cost is selected as the cross-validation. In this example, the cross-validation feature is also the lower right corner of the "F", and thus the match is accepted, as indicated by the line connecting the black circles of the captured image 90 and the first synthetic view 100. This is repeated for each feature of the captured image to the features of the first synthetic view 100a. In this case, three other matches were found.
[0019] This process is then repeated for the remainder of synthetic views 100a-100d. Using features from synthetic view 100b, five matches were found, using features from synthetic view 100c, two matches were found, and one match was found in synthetic view 100d. In this example, no additional matching is done for the particular feature in the bottom right corner of the "F". In this example, there were some features in each synthetic view that were not matched.
[0020] In addition to matching by feature descriptors, the feature matching module can be made robust to mismatching by enforcing a homography (a 3×3 matrix relating points on a plane that undergoes a perspective transformation). The homography may be obtained using a mismatch rejection method such as Random Sampling Common Terms (RANSAC).
[0021] To further increase the robustness of the matching, an embodiment of the feature matcher may consider only those matches that are contained within a region of interest (ROI) in the captured image. The region of interest may be represented as a bounding box or as a 2D contour. This ROI may be obtained from an initial guess based on "a priori" knowledge, or from tentative estimates of extrinsic parameters obtained without an ROI. In the latter case, the ROI may be obtained by projecting the contour of the extent of the calibration image using the tentative extrinsic parameters.
[0022] The calibration solver 54 may take as input a set of matching features and virtual camera parameters associated with every synthetic view. For each matching feature, first the 2D image coordinates of the feature in the captured image may be obtained. For the same matching feature, virtual 3D coordinates may then be calculated from the 2D image coordinates in the synthetic view where the feature results via the projective transformation of the virtual camera. This virtual 3D coordinates mirrors the points on the planar calibration pattern and therefore may be considered as real-world 3D coordinates.
[0023] From the set of 2D (captured) and 3D (world) point correspondences, the calibration solver 54 may compute estimates of the exogenous parameters R and t. This is known as the "perspective n-point" problem, and in most cases the problem may be overdetermined. Embodiments may use methods that minimize the reprojection error, such as Levenberg-Marquandt optimization. Alternatively, embodiments may use a RANSAC approach that samples a subset of four points and uses a direct solution, such as EPnP, at each iteration.
[0024] In one possible embodiment, the synthetic view features may be pre-computed at the time the calibration image is selected. In this case, the synthetic pattern generation and feature extraction steps may occur "offline", prior to camera calibration. Once the synthetic features are calculated, the calibration image can be discarded. During the camera calibration procedure, the camera's intrinsic parameters, the pre-computed synthetic features, and the captured images may be used for calibration proceeding from the feature matching module 53.
[0025] In one embodiment, feature detector module 52, feature matching module 53, composite pattern generator 51, and calibration solver 54 may each comprise at least one separate processor or processing unit, a separate communication unit, and a separate memory. In another embodiment, at least two of the group of feature detector 52, feature matching 54, composite pattern generator 51, and calibration solver 54 share the same processor, communication, and / or memory. In this case, feature detector module 52, feature matching module 54, composite pattern generator 51, and / or calibration solver 54 may correspond to different modules executed by a processor of a computing machine, such as a server, personal computer, laptop, tablet, smartphone, etc.
[0026] The calibration module may include one or more computer processing units (CPUs) and / or graphic processing units (GPUs) for executing programs and / or instructions stored in the modules or memory, thereby performing processing operations, the memory, and one or more communication buses for interconnecting these components. The communication buses optionally include circuitry (sometimes called chipsets) that interconnects and controls communication between the system components. The memory may include high-speed random access memory, such as DRAM, SRAM, DDR RAM, or other random access solid-state memory devices, and may include non-volatile memory, such as one or more magnetic disk storage devices, optical disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The memory optionally includes one or more storage devices located remotely from the CPU. The memory, or alternatively, the non-volatile memory devices in the memory, comprise a non-transitory computer-readable storage medium. In some embodiments, the memory or the computer-readable storage medium of the memory stores the programs, modules, and data structures, or a subset of those described above.
[0027] Each of the elements may be stored in one or more of the memory devices previously mentioned and correspond to a set of instructions for performing the functions described above. The above identified modules or programs (i.e., sets of instructions) need not be implemented as separate software programs, procedures, or modules, and thus various subsets of these modules may be combined or otherwise rearranged in various embodiments. In some embodiments, the memory may store a subset of the above identified modules and data structures. Additionally, the memory may store additional modules and data structures not described above.
[0028] In an embodiment, the calibration system may be integrated with and / or attached to a movable camera system. As described above, the calibration system may determine the location and orientation, i.e., translation and rotation, of the camera. This determination may be made in real-time or near real-time as the camera is operated. The camera may be handheld or positioned on a dolly or tripod. The camera translation and rotation may be included with the captured image or video, embedded metadata, etc. The translation and rotation information may be provided to other systems that handle or receive output from the camera for image or video recognition systems, virtual reality systems, etc.
[0029] While various embodiments of the present disclosure have been described above in detail by way of example, it will be apparent to those skilled in the art that variations and modifications may be made therein without departing from the present disclosure, and the present disclosure includes all such variations and modifications as fall within the scope of the appended claims.
Claims
1. 1. A method for determining extrinsic parameters of a camera, comprising: Obtaining a digital calibration image; generating a plurality of synthetic views of the digital calibration image, each synthetic view having a set of virtual camera parameters; identifying a set of features from each of the plurality of synthetic views; acquiring a digital camera image of a representation of said digital calibration image as produced by a digital camera; identifying a set of features within the digital camera image; comparing each feature in the set of digital camera image features to each feature in the set of features of the multiple synthetic views; identifying, for each feature in the set of digital camera image features, a best match among the features in the set of synthetic view features by comparing each feature in the set of digital camera image features with each feature in the set of synthetic view features, the best match being a pair of features from the digital camera image and the features from the multiple synthetic views that are most similar to each other; calculating extrinsic parameters of the digital camera using the virtual camera parameters of the feature associated with the best match; A method comprising:
2. The method of claim 1 , wherein the digital calibration image is asymmetric in at least one dimension.
3. The method of claim 2 , wherein the digital calibration image is a logo.
4. The method of claim 1 , wherein the extrinsic parameters and the virtual camera parameters comprise translation and rotation coordinates.
5. The method of claim 1 , wherein the multiple synthetic views are selected from a space of virtual camera parameters when the calibration image is within the field of view of the synthetic views.
6. The method of claim 1 , wherein identifying a set of features from each of the plurality of synthetic views and identifying a set of features in the digital camera image is performed using a feature detection module.
7. The method of claim 1 , further comprising identifying a region of interest in the digital camera image, wherein identifying a set of features in the digital camera image is performed only on the region of interest.
8. A camera calibration module for determining a translation and rotation of a camera using a physical planar calibration pattern, the camera generating a digital camera image of a representation of a digital calibration image, the camera calibration module comprising: a synthetic pattern generator for generating a plurality of synthetic views of the digital calibration image corresponding to the physical planar calibration pattern; a feature detector for extracting a set of features from the captured images from the camera and from each of the plurality of synthetic views; a feature matching module for comparing each feature in the set of digital camera image features to each feature in the set of synthetic view features and for each feature in the set of digital camera image features using the comparison to identify a best match among the features in the set of synthetic view features; a calibration solver for computing a translation and rotation of the camera using virtual camera parameters of the feature associated with the best match; A camera calibration module comprising:
9. The camera calibration module of claim 8 , wherein the digital calibration image is a logo.
10. The camera calibration module of claim 8, wherein the virtual camera parameters include translation and rotation coordinates.
11. The camera calibration module of claim 8 , wherein the multiple synthetic views are selected from a space of virtual camera parameters when the calibration image is within the field of view of the synthetic views.
12. 9. The camera calibration module of claim 8, wherein the feature matching module is configured to identify a best match by comparing each feature in a set of features of the digital camera image with each feature in a set of features of the multiple synthetic views, the best match being a pair of features from the digital camera image and the multiple synthetic views that are most similar to each other.
13. The camera calibration module of claim 8 , wherein identifying a set of features in the digital camera image is performed only on a region of interest of the digital camera image.
14. 1. A camera calibration system comprising: A camera calibration module according to claim 8; The camera; said physical planar calibration pattern; Equipped with A system in which the output from the camera is embedded with the translation and rotation of the camera.
Citation Information
Patent Citations
Calibration apparatus and method for on-vehicle camera
JP2019028665A
Camera calibration using synthetic images
JP2019502181A
System and method for providing virtual pan-tilt-zoom, PTZ, video functionality to a plurality of users over a data network
US20190109975A1
Video camera calibration system and method
US8203590B2
