Keep track of your microbead speeds :)
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.
- 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