This notebook showcases segmentation retated colour checker detection examples.
dcraw -T -g 2.4 12.92 *.CR2
and then resized and converted to *.png.
import cv2
import glob
import matplotlib.pyplot as plt
import numpy as np
import os
import colour
from colour_checker_detection import (
EXAMPLES_RESOURCES_DIRECTORY,
SETTINGS_SEGMENTATION_COLORCHECKER_CLASSIC,
colour_checkers_coordinates_segmentation,
detect_colour_checkers_segmentation)
from colour_checker_detection.detection.segmentation import (
adjust_image)
colour.plotting.colour_style()
colour.utilities.describe_environment();
COLOUR_CHECKER_IMAGE_PATHS = glob.glob(
os.path.join(EXAMPLES_RESOURCES_DIRECTORY, 'detection', '*.png'))
COLOUR_CHECKER_IMAGES = [
colour.cctf_decoding(colour.io.read_image(path))
for path in COLOUR_CHECKER_IMAGE_PATHS
]
for image in COLOUR_CHECKER_IMAGES:
colour.plotting.plot_image(colour.cctf_encoding(image));