diff --git a/innofw/utils/data_utils/preprocessing/dicom_handler.py b/innofw/utils/data_utils/preprocessing/dicom_handler.py index 8f782ad2..6b7ba70a 100644 --- a/innofw/utils/data_utils/preprocessing/dicom_handler.py +++ b/innofw/utils/data_utils/preprocessing/dicom_handler.py @@ -1,3 +1,8 @@ +from pckg_util import install_and_import + +install_and_import("pylibjpeg", "2.0.0", packageimportname="pylibjpeg") +install_and_import("python-gdcm", "3.0.24.1", packageimportname="gdcm") + import datetime import os.path @@ -14,6 +19,7 @@ from innofw.utils import get_project_root + def img_to_dicom( img: np.ndarray, origin_dicom: FilePath = None,