mirror of
https://github.com/hanzoai/anomalib.git
synced 2026-10-30 18:48:11 +00:00
The previous commit was meant to remove .github/workflows and removed every tracked path instead — 892 files, the whole repo. This puts back the 874 that were never in scope; the eighteen workflow files stay gone, for the reasons that commit gives. Content is byte-identical to 9d2aec9 outside .github/workflows.
18 lines
528 B
Python
18 lines
528 B
Python
"""Fixtures for the tools tests."""
|
|
|
|
# Copyright (C) 2023-2024 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
from pathlib import Path
|
|
|
|
import cv2
|
|
import numpy as np
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture(scope="package")
|
|
def get_dummy_inference_image(project_path: Path) -> str:
|
|
"""Dummy inference image used to freeze the graph and test the inference."""
|
|
image = np.zeros((256, 256, 3), dtype=np.uint8)
|
|
cv2.imwrite(str(project_path) + "/dummy_image.png", image)
|
|
return str(project_path) + "/dummy_image.png"
|