SCIKIT手术模拟器提供了一个应用程序,用于模拟超声探头在人体躯干上移动,用于公共参与活动。”
scikit-surgerytorsosimulator的Python项目详细描述
作者:斯蒂芬汤普森
scikit躯干模拟器是SNAPPY软件项目的一部分,在Wellcome EPSRC Centre for Interventional and Surgical Sciences开发,是University College London (UCL)的一部分。
scikit躯干模拟器支持python 3.6。
snappy躯干模拟器使用来自跟踪系统(ndi或aruco标签)的输出来选择要显示的视频帧。它可以用来构建一个简单易用的超声模拟器。
python sksurgerytorsosimulator.py --config config.json
配置文件定义跟踪参数和图像缓冲区,例如
{ "ultrasound buffer": "data/usbuffer.mp4", "default image": "data/logo.png", "buffer descriptions": [ { "name": "glove", "start frame": 0, "end frame": 284, "x0": 20, "x1": 200, "y0": 200, "y1": 260, "scan direction": "x" }, ] .... "tracker config": { "tracker type": "aruco", "video source": 2, "debug": true, "capture properties": { "CAP_PROP_FRAME_WIDTH": 640, "CAP_PROP_FRAME_HEIGHT": 480 } }
可以从here下载示例配置文件,并从source code repository data directory下载图像缓冲区
开发
克隆
您可以使用以下命令克隆存储库:
git clone https://weisslab.cs.ucl.ac.uk/WEISS/SoftwareRepositories/SNAPPY/scikit-surgerytorsosimulator
运行测试
pytest用于运行单元测试:
pip install pytest python -m pytest
起毛
本规范符合PEP8标准。Pylint可用于分析代码:
pip install pylint pylint --rcfile=tests/pylintrc snappytorsosimulator
安装
您可以直接从存储库进行pip安装,如下所示:
pip install git+https://weisslab.cs.ucl.ac.uk/WEISS/SoftwareRepositories/SNAPPY/scikit-surgerytorsosimulator
许可和版权
版权所有2019伦敦大学学院。 Snappy躯干模拟器根据BSD-3许可证发布。有关详细信息,请参见license file。