Skip to content

Commit

Permalink
Add new test images.
Browse files Browse the repository at this point in the history
  • Loading branch information
KelSolaar committed Nov 18, 2023
1 parent d266494 commit 8c4f4d9
Show file tree
Hide file tree
Showing 5 changed files with 226 additions and 252 deletions.
10 changes: 5 additions & 5 deletions colour_checker_detection/detection/segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def crop_and_level_image_with_rectangle(
... -88.18692780,
... )
>>> print(image.shape)
(958, 1440, 3)
(959, 1440, 3)
>>> image = crop_and_level_image_with_rectangle(image, rectangle)
>>> print(image.shape)
(461, 696, 3)
Expand Down Expand Up @@ -671,10 +671,10 @@ def colour_checkers_coordinates_segmentation(
... )
>>> image = read_image(path)
>>> colour_checkers_coordinates_segmentation(image) # doctest: +ELLIPSIS
(array([[ 369, 688],
[ 382, 226],
[1078, 246],
[1065, 707]]...)
(array([[ 365, 685],
[ 382, 222],
[1078, 247],
[1061, 710]])...)
"""

image = as_float_array(image, FLOAT_DTYPE_DEFAULT)[..., :3]
Expand Down
Loading

0 comments on commit 8c4f4d9

Please sign in to comment.