@@ -500,9 +500,12 @@ def crop_and_level_image_with_rectangle(
500
500
>>> import os
501
501
>>> from colour import read_image
502
502
>>> from colour_checker_detection import TESTS_RESOURCES_DIRECTORY
503
- >>> path = os.path.join(TESTS_RESOURCES_DIRECTORY,
504
- ... 'colour_checker_detection', 'detection',
505
- ... 'IMG_1967.png')
503
+ >>> path = os.path.join(
504
+ ... TESTS_RESOURCES_DIRECTORY,
505
+ ... "colour_checker_detection",
506
+ ... "detection",
507
+ ... "IMG_1967.png",
508
+ ... )
506
509
>>> image = adjust_image(read_image(path), 1440)
507
510
>>> rectangle = (
508
511
... (723.29608154, 465.50939941),
@@ -662,9 +665,12 @@ def colour_checkers_coordinates_segmentation(
662
665
>>> import os
663
666
>>> from colour import read_image
664
667
>>> from colour_checker_detection import TESTS_RESOURCES_DIRECTORY
665
- >>> path = os.path.join(TESTS_RESOURCES_DIRECTORY,
666
- ... 'colour_checker_detection', 'detection',
667
- ... 'IMG_1967.png')
668
+ >>> path = os.path.join(
669
+ ... TESTS_RESOURCES_DIRECTORY,
670
+ ... "colour_checker_detection",
671
+ ... "detection",
672
+ ... "IMG_1967.png",
673
+ ... )
668
674
>>> image = read_image(path)
669
675
>>> colour_checkers_coordinates_segmentation(image) # doctest: +ELLIPSIS
670
676
(array([[ 369, 688],
@@ -857,9 +863,12 @@ def extract_colour_checkers_segmentation(
857
863
>>> import os
858
864
>>> from colour import read_image
859
865
>>> from colour_checker_detection import TESTS_RESOURCES_DIRECTORY
860
- >>> path = os.path.join(TESTS_RESOURCES_DIRECTORY,
861
- ... 'colour_checker_detection', 'detection',
862
- ... 'IMG_1967.png')
866
+ >>> path = os.path.join(
867
+ ... TESTS_RESOURCES_DIRECTORY,
868
+ ... "colour_checker_detection",
869
+ ... "detection",
870
+ ... "IMG_1967.png",
871
+ ... )
863
872
>>> image = read_image(path)
864
873
>>> extract_colour_checkers_segmentation(image)
865
874
... # doctest: +SKIP
@@ -1043,9 +1052,12 @@ def detect_colour_checkers_segmentation(
1043
1052
>>> import os
1044
1053
>>> from colour import read_image
1045
1054
>>> from colour_checker_detection import TESTS_RESOURCES_DIRECTORY
1046
- >>> path = os.path.join(TESTS_RESOURCES_DIRECTORY,
1047
- ... 'colour_checker_detection', 'detection',
1048
- ... 'IMG_1967.png')
1055
+ >>> path = os.path.join(
1056
+ ... TESTS_RESOURCES_DIRECTORY,
1057
+ ... "colour_checker_detection",
1058
+ ... "detection",
1059
+ ... "IMG_1967.png",
1060
+ ... )
1049
1061
>>> image = read_image(path)
1050
1062
>>> detect_colour_checkers_segmentation(image) # doctest: +SKIP
1051
1063
(array([[ 0.361626... , 0.2241066..., 0.1187837...],
0 commit comments