Skip to content

Commit

Permalink
Update digital_image_processing/test_digital_image_processing.py
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Clauss <[email protected]>
  • Loading branch information
quant12345 and cclauss authored Oct 9, 2023
1 parent 93dfe61 commit f50bcae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion digital_image_processing/test_digital_image_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ def test_nearest_neighbour(


def test_local_binary_pattern():
file_path = "digital_image_processing/image_data/lena_small.jpg"
from os import getenv # Speed up our Continuous Integration tests
file_name = "lena_small.jpg" if getenv("CI") else "lena.jpg"
file_path = f"digital_image_processing/image_data/{file_name}.jpg"

# Reading the image and converting it to grayscale.
image = imread(file_path, 0)
Expand Down

0 comments on commit f50bcae

Please sign in to comment.