Skip to content

Commit d33ec89

Browse files
committed
Ensure that swatches are returned as integer.
1 parent a275bfb commit d33ec89

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

colour_checker_detection/detection/segmentation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,9 @@ def colour_checkers_coordinates_segmentation(
741741
if minimum_area < cv2.contourArea(curve) < maximum_area and is_square(
742742
curve
743743
):
744-
swatches.append(cv2.boxPoints(cv2.minAreaRect(curve)))
744+
swatches.append(
745+
as_int_array(cv2.boxPoints(cv2.minAreaRect(curve)))
746+
)
745747

746748
# Clustering squares/swatches.
747749
contours = np.zeros(image.shape, dtype=np.uint8)

0 commit comments

Comments
 (0)