File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1212from numpy import array , uint8
1313from PIL import Image
1414
15- img = imread (r"digital_image_processing/image_data/lena .jpg" )
15+ img = imread (r"digital_image_processing/image_data/lena_small .jpg" )
1616gray = cvtColor (img , COLOR_BGR2GRAY )
1717
1818# Test: change_contrast()
1919def test_change_contrast ():
20- with Image .open ("digital_image_processing/image_data/lena .jpg" ) as img :
20+ with Image .open ("digital_image_processing/image_data/lena_small .jpg" ) as img :
2121 # Work around assertion for response
2222 assert str (cc .change_contrast (img , 110 )).startswith (
23- "<PIL.Image.Image image mode=RGB size=512x512 at"
23+ "<PIL.Image.Image image mode=RGB size=100x100 at"
2424 )
2525
2626
@@ -33,7 +33,7 @@ def test_gen_gaussian_kernel():
3333
3434# canny.py
3535def test_canny ():
36- canny_img = imread ("digital_image_processing/image_data/lena .jpg" , 0 )
36+ canny_img = imread ("digital_image_processing/image_data/lena_small .jpg" , 0 )
3737 # assert ambiguos array for all == True
3838 assert canny_img .all ()
3939 canny_array = canny .canny (canny_img )
You can’t perform that action at this time.
0 commit comments