Skip to main content

Prepare ultrasound videos for machine learning-- crop and remove static clutter from ultrasound video.

Project description

SONOCROP PyPI

Prepare bedside ultrasounds for machine learning and image interpretation. Sonocrop isolates the dynamic component of an ultrasound movie and strips away the rest.

Example video

Installation

Requires python 3.7 or higher

Install with pip: pip3 install sonocrop --upgrade

Basic usage

Sonocrop runs from the command line:

crop

Automatically crop away static borders

$ sonocrop crop inputscan.mp4 out.mp4 --thresh=0.1

mask

Blackout static pixels

$ sonocrop mask inputscan.mp4 out.mp4

edges

Extracts the edges around an ultrasound

Returns the distance in pixels in the form: left,right,top,bottom

$ sonocrop edges inputscan.mp4
$ > 100,500,10,700

summary

Command Input Output
crop Input Out
mask Input Out
edges Input 237,717,72,518

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sonocrop-0.56.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sonocrop-0.56-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file sonocrop-0.56.tar.gz.

File metadata

  • Download URL: sonocrop-0.56.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.7

File hashes

Hashes for sonocrop-0.56.tar.gz
Algorithm Hash digest
SHA256 d781464a9f18309a7067fe34d472bd745ac32e173dddf3b41277c725b9a92ce6
MD5 f4c14f0fa0c6a9f7e38386dcf26214c0
BLAKE2b-256 ae50c34700a66825edb3512a4aaa473a119fb57cf467b50218666d3ad6216b2b

See more details on using hashes here.

File details

Details for the file sonocrop-0.56-py3-none-any.whl.

File metadata

  • Download URL: sonocrop-0.56-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.7

File hashes

Hashes for sonocrop-0.56-py3-none-any.whl
Algorithm Hash digest
SHA256 8b2c0274b1342b95770e5553c4a9b7c42a4581801dd3b7327512db6fddc80e71
MD5 19fb11c66f3e53acdd9b9729220ef783
BLAKE2b-256 bb8f8f7619374575693a2a789df443cb228fd89389b35f360220d4d10252c6a3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page