ChArUco
CharucoCorrespondenceFinder(n_rows, n_columns, square_size, marker_length, family, legacy=False)
Bases: CorrespondenceFinderBase
ChArUco pattern correspondence finder.
Initialize a ChArUco correspondence finder.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
n_rows
|
int
|
Number of rows (squares) in the ChArUco pattern. |
required |
n_columns
|
int
|
Number of columns (squares) in the ChArUco pattern. |
required |
square_size
|
float
|
Size of a square in the ChArUco pattern. Returned object points will be in units of this size. |
required |
marker_length
|
float
|
Size of a marker in the ChArUco pattern. Returned object points will be in units of this size. |
required |
family
|
int
|
ArUco family to use for the ChArUco pattern. |
required |
legacy
|
bool
|
Whether to use the legacy ChArUco pattern (OpenCV <= 4.6). |
False
|
Source code in src/compas_camcal/correspondence/charuco.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | |
find(image)
Find correspondences in an image.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
image
|
ndarray
|
Image to find correspondences in. |
required |
Returns:
| Type | Description |
|---|---|
Optional[Correspondence]
|
Correspondence object if found, None otherwise. |
Source code in src/compas_camcal/correspondence/charuco.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | |