Skip to content

Quickly calculate the speed that a microbead has moved between frames in a microfluidics test setup

Notifications You must be signed in to change notification settings

zackpi/bead_speed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bead_speed

Keep track of your microbead speeds :)

Sample Image

how to run

Make sure that you have python3 and pip3 installed. You'll also need opencv, which is the library used to display and draw on the images. The following should work in most scenarios:

pip3 install opencv-python

Make sure that your directory full of microbead image files is in the same directory as bead_speed.py. Now you're ready to actually run the program. At the command line, in that same directory, run the following:

python3 bead_speed.py

Input the directory whose beads you'd like to track, and the first image (img 0) should pop up. It should look something like the image above. Now you can navigate through the images and place markers for the currently selected bead at the mouse position.

summary of controls

  • w / up - increment bead index
  • s / down - decrement bead index
  • a / left - decrement image index
  • d / right - increment image index
  • backspace / delete - delete the currently selected bead marker
  • leftmouseclick - place a bead marker at the current mouse position
  • esc / (increment past last image) - exit the program and output the results

send bug reports to

[email protected]

About

Quickly calculate the speed that a microbead has moved between frames in a microfluidics test setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages