From edb64751e67db9ea7a584e2c4150ec04883fb4ec Mon Sep 17 00:00:00 2001 From: InnopolisU Date: Tue, 17 Dec 2024 15:30:30 +0300 Subject: [PATCH] Fixed gdcm error --- innofw/utils/data_utils/preprocessing/dicom_handler.py | 6 ++++++ 1 file changed, 6 insertions(+) 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,