@@ -155,15 +155,15 @@ def swatch_masks(width, height, swatches_h, swatches_v, samples):
155
155
Examples
156
156
--------
157
157
>>> from pprint import pprint
158
- >>> pprint(swatch_masks(16, 8, 4, 2, 1))
159
- [array([2, 2, 2, 2]),
160
- array([2, 2, 6, 6]),
161
- array([ 2, 2, 10, 10]),
162
- array([ 2, 2, 14, 14]),
163
- array([6, 6, 2, 2]),
164
- array([6, 6, 6, 6]),
165
- array([ 6, 6, 10, 10]),
166
- array([ 6, 6, 14, 14])]
158
+ >>> pprint(swatch_masks(16, 8, 4, 2, 1)) # doctest: +ELLIPSIS
159
+ [array([2, 2, 2, 2]... ),
160
+ array([2, 2, 6, 6]... ),
161
+ array([ 2, 2, 10, 10]... ),
162
+ array([ 2, 2, 14, 14]... ),
163
+ array([6, 6, 2, 2]... ),
164
+ array([6, 6, 6, 6]... ),
165
+ array([ 6, 6, 10, 10]... ),
166
+ array([ 6, 6, 14, 14]... )]
167
167
"""
168
168
169
169
samples = as_int (samples / 2 )
@@ -520,11 +520,11 @@ def colour_checkers_coordinates_segmentation(image, additional_data=False):
520
520
... 'colour_checker_detection', 'detection',
521
521
... 'IMG_1967.png')
522
522
>>> image = read_image(path)
523
- >>> colour_checkers_coordinates_segmentation(image)
523
+ >>> colour_checkers_coordinates_segmentation(image) # doctest: +ELLIPSIS
524
524
[array([[1065, 707],
525
525
[ 369, 688],
526
526
[ 382, 226],
527
- [1078, 246]])]
527
+ [1078, 246]]... )]
528
528
"""
529
529
530
530
image = as_8_bit_BGR_image (adjust_image (image , WORKING_WIDTH ))
0 commit comments