snappysonic


Namesnappysonic JSON
Version 0.0.8 PyPI version JSON
download
home_pagehttps://github.com/SciKit-Surgery/snappysonic
Summarysnappysonic provides an application to simulate an ultrasound probe moving over a body torso, it is intended for public engagement events"
upload_time2023-03-28 12:36:58
maintainer
docs_urlNone
authorStephen Thompson
requires_python
licenseBSD-3 license
keywords medical imaging education
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            SnappySonic
===============================

.. image:: https://github.com/SciKit-Surgery/snappysonic/raw/master/snappysonic.gif
   :height: 134px
   :target: https://github.com/SciKit-Surgery/snappysonic
   :alt: Logo

|

.. image:: https://github.com/SciKit-Surgery/snappysonic/workflows/.github/workflows/ci.yml/badge.svg
   :target: https://github.com/SciKit-Surgery/snappysonic/actions
   :alt: GitHub Actions CI status

.. image:: https://coveralls.io/repos/github/SciKit-Surgery/snappysonic/badge.svg?branch=master&service=github
    :target: https://coveralls.io/github/SciKit-Surgery/snappysonic?branch=master
    :alt: Test coverage

.. image:: https://readthedocs.org/projects/snappysonic/badge/?version=latest
    :target: http://snappysonic.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status

.. image:: https://img.shields.io/badge/DOI-10.5334%2Fjors.289-blue
    :target: http://doi.org/10.5334/jors.289
    :alt: The SnappySonic Paper

.. image:: https://api.codeclimate.com/v1/badges/78440062319f61c55177/maintainability
   :target: https://codeclimate.com/github/SciKit-Surgery/snappysonic/maintainability
   :alt: Maintainability

.. image:: https://img.shields.io/badge/-Video%20Tutorial-blueviolet?style=flat&logo=youtube
   :target: https://www.youtube.com/watch?v=BI4qyg9NEOk
   :alt: Tutorial on YouTube

.. image:: https://img.shields.io/twitter/follow/scikit_surgery?style=social
   :target: https://twitter.com/scikit_surgery?ref_src=twsrc%5Etfw
   :alt: Follow scikit_surgery on twitter


Author: Stephen Thompson

SnappySonic can be used as an ultrasound acquisition simulator. The output from a tracking system (NDI or AruCo tags) is to select a frame of pre-recorded video to show. A suitable video of ultrasound data is included in the data directory, however the user can select a video of their choosing. The software and its use is described in the `SnappySonic paper`_.

SnappySonic is part of the `SciKit-Surgery`_ software project, developed at the `Wellcome EPSRC Centre for Interventional and Surgical Sciences`_, part of `University College London (UCL)`_.

SnappySonic supports Python 3.6.

::

    pip install snappysonic
    python snappysonic.py --config config.json

The config file defines the tracking parameters and image buffer, e.g.

::

  {
   "ultrasound buffer": "data/usbuffer.mp4",
	 "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
		
   }
  }

An example configuration file can be downloaded from `here`_ and an image buffer from `source code repository data directory`_

Developing
----------

Cloning
^^^^^^^

You can clone the repository using the following command:

::

    git clone https://github.com/SciKit-Surgery/snappysonic


Running tests
^^^^^^^^^^^^^
Unit tests are performed in stand alone environments using tox, which also checks coding style.
::

    tox


Installing
----------

You can pip install from pypi with
::

  pip install snappysonic

or You can pip install directly from the repository as follows:
::

    pip install git+https://github.com/SciKit-Surgery/snappysonic

How to Cite
-----------
If you use this software in your research or teaching, please cite:

Thompson, S., Dowrick, T., Xiao, G., Ramalhinho, J., Robu, M., Ahmad, M., Taylor, D. and Clarkson, M.J., 2020. SnappySonic: An Ultrasound Acquisition Replay Simulator. Journal of Open Research Software, 8(1), p.8. DOI: http://doi.org/10.5334/jors.289

Contributing
^^^^^^^^^^^^

Please see the `contributing guidelines`_.


Useful links
^^^^^^^^^^^^

* `Source code repository`_
* `Documentation`_


Licensing and copyright
-----------------------

Copyright 2019 University College London.
snappysonic is released under the BSD-3 license. Please see the `license file`_ for details.


Acknowledgements
----------------

Supported by `Wellcome`_ and `EPSRC`_.


.. _`Wellcome EPSRC Centre for Interventional and Surgical Sciences`: http://www.ucl.ac.uk/weiss
.. _`source code repository`: https://github.com/SciKit-Surgery/snappysonic
.. _`here`: https://github.com/SciKit-Surgery/snappysonic/blob/master/config.json
.. _`source code repository data directory`: https://github.com/SciKit-Surgery/snappysonic/blob/master/data
.. _`Documentation`: https://snappysonic.readthedocs.io
.. _`SciKit-Surgery`: https://github.com/SciKit-Surgery
.. _`University College London (UCL)`: http://www.ucl.ac.uk/
.. _`Wellcome`: https://wellcome.ac.uk/
.. _`EPSRC`: https://www.epsrc.ac.uk/
.. _`contributing guidelines`: https://github.com/SciKit-Surgery/snappysonic/blob/master/CONTRIBUTING.rst
.. _`license file`: https://github.com/SciKit-Surgery/snappysonic/blob/master/LICENSE
.. _`SnappySonic paper`: http://doi.org/10.5334/jors.289



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/SciKit-Surgery/snappysonic",
    "name": "snappysonic",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "medical imaging education",
    "author": "Stephen Thompson",
    "author_email": "s.thompson@ucl.ac.uk",
    "download_url": "https://files.pythonhosted.org/packages/a1/44/d8c7df8d31ab241f284426429a09432513e92488861b73d6f20fbf5b97b9/snappysonic-0.0.8.tar.gz",
    "platform": null,
    "description": "SnappySonic\n===============================\n\n.. image:: https://github.com/SciKit-Surgery/snappysonic/raw/master/snappysonic.gif\n   :height: 134px\n   :target: https://github.com/SciKit-Surgery/snappysonic\n   :alt: Logo\n\n|\n\n.. image:: https://github.com/SciKit-Surgery/snappysonic/workflows/.github/workflows/ci.yml/badge.svg\n   :target: https://github.com/SciKit-Surgery/snappysonic/actions\n   :alt: GitHub Actions CI status\n\n.. image:: https://coveralls.io/repos/github/SciKit-Surgery/snappysonic/badge.svg?branch=master&service=github\n    :target: https://coveralls.io/github/SciKit-Surgery/snappysonic?branch=master\n    :alt: Test coverage\n\n.. image:: https://readthedocs.org/projects/snappysonic/badge/?version=latest\n    :target: http://snappysonic.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation Status\n\n.. image:: https://img.shields.io/badge/DOI-10.5334%2Fjors.289-blue\n    :target: http://doi.org/10.5334/jors.289\n    :alt: The SnappySonic Paper\n\n.. image:: https://api.codeclimate.com/v1/badges/78440062319f61c55177/maintainability\n   :target: https://codeclimate.com/github/SciKit-Surgery/snappysonic/maintainability\n   :alt: Maintainability\n\n.. image:: https://img.shields.io/badge/-Video%20Tutorial-blueviolet?style=flat&logo=youtube\n   :target: https://www.youtube.com/watch?v=BI4qyg9NEOk\n   :alt: Tutorial on YouTube\n\n.. image:: https://img.shields.io/twitter/follow/scikit_surgery?style=social\n   :target: https://twitter.com/scikit_surgery?ref_src=twsrc%5Etfw\n   :alt: Follow scikit_surgery on twitter\n\n\nAuthor: Stephen Thompson\n\nSnappySonic can be used as an ultrasound acquisition simulator. The output from a tracking system (NDI or AruCo tags) is to select a frame of pre-recorded video to show. A suitable video of ultrasound data is included in the data directory, however the user can select a video of their choosing. The software and its use is described in the `SnappySonic paper`_.\n\nSnappySonic is part of the `SciKit-Surgery`_ software project, developed at the `Wellcome EPSRC Centre for Interventional and Surgical Sciences`_, part of `University College London (UCL)`_.\n\nSnappySonic supports Python 3.6.\n\n::\n\n    pip install snappysonic\n    python snappysonic.py --config config.json\n\nThe config file defines the tracking parameters and image buffer, e.g.\n\n::\n\n  {\n   \"ultrasound buffer\": \"data/usbuffer.mp4\",\n\t \"buffer descriptions\": [\n\t\t{\n\t\t \"name\": \"glove\",\n\t\t \"start frame\": 0,\n\t\t \"end frame\": 284,\n\t\t \"x0\": 20, \"x1\": 200,\n\t\t \"y0\": 200, \"y1\": 260,\n\t\t \"scan direction\": \"x\"\n\t\t},\n    ]\n    ....\n    \"tracker config\": {\n\t\t\"tracker type\": \"aruco\",\n\t\t\"video source\": 2,\n\t\t\"debug\": true,\n\t\t\"capture properties\": {\n\t\t\t\"CAP_PROP_FRAME_WIDTH\": 640,\n\t\t\t\"CAP_PROP_FRAME_HEIGHT\": 480\n\t\t\n   }\n  }\n\nAn example configuration file can be downloaded from `here`_ and an image buffer from `source code repository data directory`_\n\nDeveloping\n----------\n\nCloning\n^^^^^^^\n\nYou can clone the repository using the following command:\n\n::\n\n    git clone https://github.com/SciKit-Surgery/snappysonic\n\n\nRunning tests\n^^^^^^^^^^^^^\nUnit tests are performed in stand alone environments using tox, which also checks coding style.\n::\n\n    tox\n\n\nInstalling\n----------\n\nYou can pip install from pypi with\n::\n\n  pip install snappysonic\n\nor You can pip install directly from the repository as follows:\n::\n\n    pip install git+https://github.com/SciKit-Surgery/snappysonic\n\nHow to Cite\n-----------\nIf you use this software in your research or teaching, please cite:\n\nThompson, S., Dowrick, T., Xiao, G., Ramalhinho, J., Robu, M., Ahmad, M., Taylor, D. and Clarkson, M.J., 2020. SnappySonic: An Ultrasound Acquisition Replay Simulator. Journal of Open Research Software, 8(1), p.8. DOI: http://doi.org/10.5334/jors.289\n\nContributing\n^^^^^^^^^^^^\n\nPlease see the `contributing guidelines`_.\n\n\nUseful links\n^^^^^^^^^^^^\n\n* `Source code repository`_\n* `Documentation`_\n\n\nLicensing and copyright\n-----------------------\n\nCopyright 2019 University College London.\nsnappysonic is released under the BSD-3 license. Please see the `license file`_ for details.\n\n\nAcknowledgements\n----------------\n\nSupported by `Wellcome`_ and `EPSRC`_.\n\n\n.. _`Wellcome EPSRC Centre for Interventional and Surgical Sciences`: http://www.ucl.ac.uk/weiss\n.. _`source code repository`: https://github.com/SciKit-Surgery/snappysonic\n.. _`here`: https://github.com/SciKit-Surgery/snappysonic/blob/master/config.json\n.. _`source code repository data directory`: https://github.com/SciKit-Surgery/snappysonic/blob/master/data\n.. _`Documentation`: https://snappysonic.readthedocs.io\n.. _`SciKit-Surgery`: https://github.com/SciKit-Surgery\n.. _`University College London (UCL)`: http://www.ucl.ac.uk/\n.. _`Wellcome`: https://wellcome.ac.uk/\n.. _`EPSRC`: https://www.epsrc.ac.uk/\n.. _`contributing guidelines`: https://github.com/SciKit-Surgery/snappysonic/blob/master/CONTRIBUTING.rst\n.. _`license file`: https://github.com/SciKit-Surgery/snappysonic/blob/master/LICENSE\n.. _`SnappySonic paper`: http://doi.org/10.5334/jors.289\n\n\n",
    "bugtrack_url": null,
    "license": "BSD-3 license",
    "summary": "snappysonic provides an application to simulate an ultrasound probe moving over a body torso, it is intended for public engagement events\"",
    "version": "0.0.8",
    "split_keywords": [
        "medical",
        "imaging",
        "education"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d8a1d3a7553738f18c51b34d6d4c765ec6a6c293f9281c11cafb6b77e51d0787",
                "md5": "4d10f8648ac69b67fbec0231d93c81c1",
                "sha256": "4d17def5bd29082507d764d1e0bb7360602e4e066a802df7b161fc1dbfd7dba2"
            },
            "downloads": -1,
            "filename": "snappysonic-0.0.8-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4d10f8648ac69b67fbec0231d93c81c1",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 16000,
            "upload_time": "2023-03-28T12:36:57",
            "upload_time_iso_8601": "2023-03-28T12:36:57.247321Z",
            "url": "https://files.pythonhosted.org/packages/d8/a1/d3a7553738f18c51b34d6d4c765ec6a6c293f9281c11cafb6b77e51d0787/snappysonic-0.0.8-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a144d8c7df8d31ab241f284426429a09432513e92488861b73d6f20fbf5b97b9",
                "md5": "488a544de431af3e582cab4c974a3455",
                "sha256": "1219753ef568dd8d609985566d18bd77de375a92782daf96267072b593291eb0"
            },
            "downloads": -1,
            "filename": "snappysonic-0.0.8.tar.gz",
            "has_sig": false,
            "md5_digest": "488a544de431af3e582cab4c974a3455",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 27024,
            "upload_time": "2023-03-28T12:36:58",
            "upload_time_iso_8601": "2023-03-28T12:36:58.783067Z",
            "url": "https://files.pythonhosted.org/packages/a1/44/d8c7df8d31ab241f284426429a09432513e92488861b73d6f20fbf5b97b9/snappysonic-0.0.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-28 12:36:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "SciKit-Surgery",
    "github_project": "snappysonic",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "requirements": [],
    "tox": true,
    "lcname": "snappysonic"
}
        
Elapsed time: 0.05251s