colour_checker_detection.detection.DataSegmentationColourCheckers#

class colour_checker_detection.detection.DataSegmentationColourCheckers(rectangles: NDArrayInt, clusters: NDArrayInt, swatches: NDArrayInt, segmented_image: NDArrayFloat)[source]#

Colour checkers detection data used for plotting, debugging and further analysis.

Parameters:
  • rectangles (NDArrayInt) – Colour checker bounding boxes, i.e., the clusters that have the relevant count of swatches.

  • clusters (NDArrayInt) – Detected swatches clusters.

  • swatches (NDArrayInt) – Detected swatches.

  • segmented_image (NDArrayFloat) – Segmented image.

__init__(rectangles: NDArrayInt, clusters: NDArrayInt, swatches: NDArrayInt, segmented_image: NDArrayFloat) None#
Parameters:
  • rectangles (NDArrayInt)

  • clusters (NDArrayInt)

  • swatches (NDArrayInt)

  • segmented_image (NDArrayFloat)

Return type:

None

Methods

__init__(rectangles, clusters, swatches, ...)

Attributes

fields

Getter for the fields of the dataclass-like class.

items

Getter for the dataclass-like class items, i.e., the field names and values.

keys

Getter for the dataclass-like class keys, i.e., the field names.

values

Getter for the dataclass-like class field values.

rectangles

clusters

swatches

segmented_image