https://github.com/icemap/dcm-convert
DCM
https://github.com/icemap/dcm-convert
Last synced: 15 days ago
JSON representation
DCM
- Host: GitHub
- URL: https://github.com/icemap/dcm-convert
- Owner: Icemap
- Created: 2019-09-27T08:27:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-21T22:56:00.000Z (about 4 years ago)
- Last Synced: 2025-01-12T11:49:43.345Z (over 1 year ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## DCM 文件转换服务
#### 安装/启动
- 安装Python 3.7 环境
- 进入dcm-convert文件夹
- (可选)创建虚拟环境
- pip install -r requirements.txt
- python server.py
#### 配置
- 端口:更改 server.py 中的端口
#### 接口
- http://{ip}:{port}/convert?path={path}&file_name={file_name}&gray={gray}
- 例如:http://localhost:18080/convert?path=/Users/cheese/Src/PythonSrc/dmcm-convert/data&file_name=2.dcm
- path为DCM文件路径。file_name为DCM文件名。gray为布尔值,是否输出灰度图。
- 返回值为输出的PNG文件路径。