rolling-sphere

#code for tracking a calibrated rolling sphere in a diamond anvil cell to calculate viscosity

This code takes a video of a sphere rolling in a liquid inside a tilted diamond anvil cell and mesures the speed to calculate the viscosity.

There are certain values hard-coded into the program: the diameter of the sphere (used to confirm pixel size, which is used to measure the distance traveled), and the frame rate of the video.

Some frames are discarded because it is not possible to detect the sphere.

Source code