Skip to content

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

License

Notifications You must be signed in to change notification settings

davycro/sonocrop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published