Detection#
Inference#
colour_checker_detection
Detect the colour checkers swatches in specified image using inference. |
|
|
Predict the colour checker rectangles in specified image using Ultralytics YOLOv8. |
|
Extract colour swatches using inference-based methods. |
Settings for the inference of the X-Rite ColorChecker Classic. |
|
Settings for the inference of the X-Rite ColorChecker Classic Mini. |
Segmentation#
colour_checker_detection
Detect the colour checkers swatches in specified image using segmentation. |
|
|
Detect the colour checker rectangles in specified image using segmentation. |
Extract colour swatches using segmentation-based methods. |
|
Settings for the segmentation of the X-Rite ColorChecker Classic and X-Rite ColorChecker Passport. |
|
Settings for the segmentation of the X-Rite ColorChecker Nano*. |
|
Settings for the segmentation of the X-Rite ColorChecker SG*. |
colour_checker_detection.detection
|
Colour checkers detection data used for plotting, debugging and further analysis. |
Templated#
colour_checker_detection
Detect the colour checkers swatches in specified image using templated methods. |
|
|
Detect the colour checker rectangles, clusters and swatches in specified image using segmentation with advanced filtering. |
|
Extract colour swatches using template-based perspective transformation. |
Settings for the templated detection of the X-Rite ColorChecker Classic. |
colour_checker_detection.detection
|
Data class for storing the results of the correspondence finding. |
Templates#
colour_checker_detection.detection
|
Template dataclass for colour checker structure representation. |
|
Generate a template from colour checker structure. |
|
Load a template from a structured NPZ file. |
Path to the X-Rite ColorChecker Classic 24-patch template NPZ file. |
|
Path to the X-Rite ColorChecker Creative Enhancement 140-patch template NPZ file. |
Plotting#
colour_checker_detection
|
Visualize colour checker detection results. |
Common Utilities#
colour_checker_detection.detection
|
Approximate specified contour to have specified number of points. |
Convert specified variable \(a\) to |
|
Convert specified variable \(a\) to |
|
|
Return the centroid of specified contour. |
|
Colour checker swatches data used for plotting, debugging and further analysis. |
|
Detect the contours of specified image using specified settings. |
|
Return if specified contour is a square. |
|
Convert specified contours to quadrilaterals. |
|
Reformat specified image so that it is horizontal and resizes it to specified target width. |
|
Remove and filter out the stacked contours from specified contours keeping either the smallest or the largest ones. |
|
Sample the colour checker using the specified source quadrilateral, i.e., detected colour checker in the image, and the specified target rectangle. |
|
Scale specified contour by specified scale factor. |
|
Cluster swatches by expanding them and fitting rectangles to overlapping areas. |
|
Filter clusters by the number of swatches they contain. |
Settings for contour detection. |
|
Settings for the detection of the X-Rite ColorChecker Classic and X-Rite ColorChecker Passport. |
|
Settings for the detection of the X-Rite ColorChecker SG*. |
|
|
Extract the swatch colours from specified image using specified masks. |
|
Return swatch masks for specified image width and height and swatches count. |
|
Transform specified image using specified translation, rotation and scale values. |