OPENDROP(1)
๐ OPENDROP ๐
okay bestie, so likeโฆ opendrop โ that's OpenDrop, the manual page you're literally reading right now. That's the whole NAME section. Short, sweet, iconic. ๐
โจ RELEASE BUILDS โจ
so there are stand-alone builds for Windows for certain major releases, and the best part? They don't need you to install any extra software. Go get them here: <https://github.com/jdber1/opendrop/releases/>. ๐ซถ
Releases for Linux and macOS do not exist yet, so instead you should install OpenDrop as a Python package. Like, see the next section, bestie. ๐
โจ BUILDING PACKAGE FROM SOURCE โจ
OpenDrop requires Python 3.6 or higher, the GTK 3 library, OpenCV Python bindings, and these build dependencies, no cap:
- Boost.Math
- SUNDIALS ARKODE
The other required Python packages? pip installs those for you automatically, so don't even stress. โจ
Platform-specific build instructions coming right up. ๐
๐ง Ubuntu
- Install OpenCV.
- If you're on Ubuntu 17.10 (or later):
sudo apt install python3-opencv
- Or, alternatively, there's an unofficial
opencv-pythonpackage <https://pypi.org/project/opencv-python/> that you can install using pip:
pip3 install opencv-python
- Install SUNDIALS. Okay so bad news:
libsundials-devfrom the Ubuntu repositories is too old โ we need at least version 4.0.0 and above. So here are brief instructions for installing SUNDIALS from source. ๐ ๏ธ- Download the latest version from the releases page <https://computing.llnl.gov/projects/sundials/sundials-software>. (Heads up bestie: the latest version requires a CMake version newer than what's available in Ubuntu < 20.04. If that's your situation, try an older version of SUNDIALS like 4.0.0 instead. ๐)
- Extract it and change into the source directory, like:
tar -xvf sundials-5.7.0.tar.gz
cd sundials-5.7.0/
- Create a build directory:
mkdir build
cd build/
- Configure, build, and install (make sure
cmakeandbuild-essentialare installed from the Ubuntu repos):
cmake \
-DEXAMPLES_INSTALL=OFF \
-DBUILD_ARKODE=ON \
-DBUILD_CVODE=OFF \
-DBUILD_CVODES=OFF \
-DBUILD_IDA=OFF \
-DBUILD_IDAS=OFF \
-DBUILD_KINSOL=OFF \
-DBUILD_STATIC_LIBS=OFF \
-DCMAKE_BUILD_TYPE=Release \
..
make
sudo make install
- Install Boost.Math. If you're on Ubuntu 20.04 or newer, run:
sudo apt install libboost-dev
But okay, the libboost-dev package on older versions of Ubuntu is not recent enough, so Boost will need to be installed from source. We need at least Boost 1.71.0. ๐
- Follow the installation instructions here <https://pygobject.readthedocs.io/en/latest/getting_started.html#ubuntu-logo-ubuntu-debian-logo-debian> for installing PyGObject and GTK. ๐ฆ
- Use pip to install OpenDrop from the repo:
pip3 install git+https://github.com/jdber1/opendrop.git
And to uninstall it, run pip3 uninstall opendrop. ๐งน
- Run
python3 -m opendropto launch the app. ๐
๐ฉ Fedora
Tested on Fedora 35. Periodt.
- Install Python, pip, and OpenCV:
sudo dnf install python3-devel python3-opencv python3-pip
- Install glib:
sudo dnf install glib2-devel
- Install SUNDIALS:
sudo dnf install sundials-devel
- Install Boost:
sudo dnf install boost-devel
- Use pip to install OpenDrop from the repo:
pip install git+https://github.com/jdber1/opendrop.git
Run pip uninstall opendrop to uninstall.
- Run
python -m opendropto launch the app. ๐
๐ macOS
- Install the latest version of Python 3 and pip. You can do that with a third-party package manager like MacPorts <https://www.macports.org/> or Homebrew <https://brew.sh/>. ๐
2.
- Install the unofficial
opencv-pythonpackage <https://pypi.org/project/opencv-python/> by running:
pip install opencv-python
(Make sure pip refers to your Python 3's pip installation, bestie. ๐)
- Or, alternatively, OpenCV and its python bindings can also be installed using the
opencvHomebrew formula <https://formulae.brew.sh/formula/opencv> or theopencvMacPorts port <https://www.macports.org/ports.php?by=library&substr=opencv>.
3.
- If Homebrew was used to install Python 3, PyGObject and GTK can also be installed by running:
brew install pygobject3 gtk+3
- or if MacPorts was used, run:
sudo port install py36-gobject3 gtk3
(Instead of the py36- prefix, use py37- or py38- if Python 3.7/3.8 is the version installed. ๐)
- Install Boost.Math and SUNDIALS. (todo: Add MacPorts and Homebrew example). ๐
- Use pip to install OpenDrop from the repo:
pip install git+https://github.com/jdber1/opendrop.git
Run pip uninstall opendrop to uninstall.
- Run
python3 -m opendropto launch the app. ๐
not me noticing there are literally two steps numbered 4 in this sectionโฆ iconic behavior honestly, we keep it exactly as it is. ๐
๐ช Windows
Installing OpenDrop as a Python package is possible on Windows using platforms like MSYS2 or Anaconda. But ngl the process is not very straightforward so your mileage may vary. ๐ (todo: This page is out of date and should be updated.)
When OpenDrop is launched, the Main Menu window will first appear. [image: Main Menu window] [image]
Click on either of the 'Interfacial Tension' or 'Contact Angle' buttons to begin a new analysis of the respective type. ๐
๐ INTERFACIAL TENSION ๐
Okay bestie, this is the part where you actually get to do the science. A wizard-style window will hold your hand through the whole process of performing an interfacial tension analysis. Let's gooo ๐ซถ
โจ Image acquisition โจ
First thing's first: choose an image input method. OpenDrop currently supports opening images from the local filesystem or capturing images with a USB camera. Two doors, pick your vibe ๐ช
๐ฌ [image: IFT Image acquisition, local filesystem]
๐ Local filesystem ๐
Click on 'Choose files' to open the file chooser dialog and select an individual image or a sequence of images. When you're analysing a sequence of images, 'Frame interval' refers to the time interval (in seconds) between each image. Sequences of images are ordered in lexicographic order (so yes, name your files like a responsible person, iykyk).
๐ฌ [image: IFT Image acquisition, USB camera]
๐ท USB camera ๐ท
Click on 'Connect camera' to open the camera chooser dialog.
๐ฌ [image: IFT Image acquisition, USB camera chooser dialog]
OpenDrop uses OpenCV to capture images from a connected camera. 'Camera index' refers to the device index argument passed to the OpenCV function cv2.VideoCapture(). An index of 0 refers to the first connected camera (usually a laptop's in-built webcam if present), an index of 1 refers to the second camera, and so on.
๐ญ Currently, there does not appear to be a way in OpenCV to query a list of valid device indices and associated device names, so in a multi-camera setup, some trial-and-error is required. Not me fighting for my life guessing indices ๐
'Frame interval' refers to the time interval (in seconds) between capturing images.
โจ Physical parameters โจ
๐ฌ [image: IFT Physical parameters]
- 'Inner density' โ the density of the drop.
- 'Outer density' โ the density of the surrounding medium.
- 'Needle diameter' โ the diameter of the needle the drop is suspended from.
- 'Gravity' โ the gravitational acceleration.
โจ Image processing โจ
๐ฌ [image: IFT Image processing]
The image processing window requires you to define the 'drop region' and 'needle region' of the image. Click on the 'Drop region' or 'Needle region' buttons in the 'Tools' panel, then drag over the image preview to define the associated region.
๐ฌ [image: IFT Image processing, regions defined]
Once each region is defined, a blue outline will be drawn over the preview showing the drop or needle profile that has been extracted. So satisfying fr fr ๐
OpenDrop uses OpenCV's Canny edge detector to detect edges in the image. Click on the 'Edge detection' button in the 'Tools' panel to open a dialog bubble which will allow you to adjust the lower and upper threshold parameters of the Canny edge detector. Thin blue lines are drawn over the preview to show detected edges.
The extracted needle profile is used to determine the diameter in pixels of the needle in the image. Along with the needle diameter in millimetres given in the 'Physical parameters' page, a metres-per-pixel scale can be determined, which is then used to derive other physical properties of the drop after the image is analysed. Math girlies stay winning ๐งฎ๐
Click on 'Start analysis' to begin analysing the input images, or begin capturing and analysing images if using a camera.
โจ Results โจ
๐ฌ [image: IFT Results]
The results page shows the current status of the analysis. Data shown in the window is updated as the analysis progresses. Live updates?? Obsessed actually โจ
There are two main views: the 'Individual Fit' view and the 'Graphs' view.
Heads up bestie: the 'Graphs' view is not available when analysing a single image. ๐ซ๐
๐งฉ Individual Fit ๐งฉ
The 'Individual Fit' view shows analysis details for an individual image. Pick an analysis in the lower panel to preview its details in the upper panel.
The 'Drop profile' tab on the right of the upper panel shows the fitted drop profile (drawn in magenta) over the extracted drop profile (drawn in blue).
๐ฌ [image: IFT Results, drop profile]
The 'Fit residuals' tab shows a plot of the fit residuals. The horizontal axis is the 'drop profile parameter', ranging from 0 to 1, with 0 corresponding to one end of the drop edge outline, and 1 corresponding to the other end. The vertical axis is some dimensionless quantity indicating the deviation of the extracted profile from the fitted profile.
๐ฌ [image: IFT Results, fit residuals]
The 'Log' tab shows the history of any messages logged by the fitting routine.
๐ฌ [image: IFT Results, log]
๐ Graphs ๐
๐ฌ [image: IFT Results, graphs]
The 'Graphs' view shows plots of interfacial tension, volume, and surface area over time. Three icons in one view, we love a multitasker ๐ซถ
๐ Cancel or discard analysis ๐
You may cancel an in-progress analysis by clicking on the 'Cancel' button in the footer (not shown in the screenshots above, sorry babe ๐). To discard the results of a finished analysis, click the 'Back' button, which will return you to the 'Image processing' page, or close the window to return to the Main Menu.
๐พ Saving ๐พ
๐ฌ [image: IFT Save dialog]
Once an analysis is finished, click on the 'Save' button in the footer to open the save dialog. All data will be saved in a folder with name determined by the 'Name' entry, and in a parent directory determined by the 'Parent' selection.
As a convenience, you may choose to save some pre-made plots. ๐
๐ฌ [image: IFT Example save output]
An example save output is shown above, and screenshots of the contents of some files are shown below:
- ๐ฌ [image: IFT timeline.csv screenshot] โ
timeline.csv - ๐ฌ [image: IFT profile_fit.csv screenshot] โ
water_in_air1/profile_fit.csv(each row is an (x, y) coordinate pair) - ๐ฌ [image: IFT profile_extracted.csv screenshot] โ
water_in_air1/profile_extracted.csv(each row is an (x, y) coordinate pair) - ๐ฌ [image: IFT profile_fit_residuals.csv screenshot] โ
water_in_air1/profile_fit_residuals.csv(first column is 'drop profile parameter', second column is residual) - ๐ฌ [image: IFT params.ini screenshot] โ
water_in_air1/params.ini
๐ฆ CONTACT ANGLE ๐ฆ
Same energy, different analysis โจ A wizard-style window will guide you through the process of performing a contact angle analysis.
โจ Image acquisition โจ
The contact angle image acquisition page is the same as the one for interfacial tension analyses. Copy-paste queen behaviour, no notes ๐
โจ Image processing โจ
๐ฌ [image: Contact Angle Image processing]
The image processing window requires you to define the 'drop region' and 'surface line' of the image. Click on the 'Drop region' button in the 'Tools' panel then drag over the image preview to define the region. Similarly, click on the 'Surface line' button and drag a line to define the surface that the drop is sitting on. With the 'Surface line' button depressed and the preview widget focused, use the arrow keys for finer adjustments of the surface line. โจ๏ธโจ
๐ฌ [image: Contact Angle Image processing, regions defined]
Once the drop region is defined, a blue outline will be drawn over the preview showing the drop profile that has been extracted.
The intersection angle between the drop profile and the surface line will be the contact angle measured. That's literally the whole thing, iconic ๐
In a contact angle analysis, OpenDrop uses image thresholding to separate the foreground from the background. Click on the 'Foreground detection' button to open a dialog bubble which will allow you to adjust the threshold value. A blue overlay is painted over parts of the image deemed to be in the foreground.
Click on 'Start analysis' to begin analysing the input images, or begin capturing and analysing images if using a camera.
โจ Results โจ
๐ฌ [image: Contact Angle Results]
The results page for a contact angle analysis is quite simple (we respect a low-maintenance page ๐).
A summary table is shown on the bottom half with a results visualizer on the top half. Graphs of the left and right contact angles are also available if more than one image is analysed.
๐พ Saving ๐พ
๐ฌ [image: Contact Angle Save dialog]
Once an analysis is finished, click on the 'Save' button in the footer to open the save dialog. All data will be saved in a folder with name determined by the 'Name' entry, and in a parent directory determined by the 'Parent' selection.
As a convenience, you may choose to save some pre-made plots. ๐
๐ฌ [image: Contact Angle Example save output]
An example save output is shown above, and screenshots of the contents of some files are shown below. (All coordinates are with respect to the origin being on the top-left corner of the image with increasing x and y in the right and down directions respectively. Keep that in mind bestie, coordinate systems will humble you ๐ญ)
- ๐ฌ [image: Contact Angle timeline.csv screenshot] โ
timeline.csv - ๐ฌ [image: Contact Angle profile_extracted.csv screenshot] โ
drop1/profile_extracted.csv(each row is an (x, y) coordinate pair) - ๐ฌ [image: Contact Angle surface.csv screenshot] โ
drop1/surface.csv(The coefficients of the surface line; first column is gradient, second column is y-intercept) - ๐ฌ [image: Contact Angle tangents.csv screenshot] โ
drop1/tangents.csv(The coefficients of the tangent lines at the contact point. First row is left tangent, second row is right tangent. First column is gradient, second column is y-intercept)
๐ GENICAM INTEGRATION ๐
Install a GenTL producer, (e.g. see harvesters README https://github.com/genicam/harvesters#installing-a-gentl-producer).
OpenDrop checks the environment variable GENICAM_GENTL64_PATH (specified by the GenTL standard) for GenTL producers. To verify that a GenTL producer is installed correctly, you can run:
$ echo $GENICAM_GENTL64_PATH
/opt/mvIMPACT_Acquire/lib/x86_64
(todo: Add details.) โ yes bestie, that's literally in the docs, they said "todo" and honestly? Relatable. Leaving a todo in prod is a whole mood ๐๐
๐ NOTES ๐
User input validation is not yet implemented โ invalid user input may cause OpenDrop to crash or print errors to the console. So pls be nice to it, it's doing its best ๐ฅบ
Stub.
๐ฌ [image]
๐ผ๏ธ [image] https://doi.org/10.21105/joss.02604
OpenDrop is a fully-featured image analysis software for performing pendant drop tensiometry and contact angle measurements. Images can be loaded from the file system or acquired directly from USB webcams or GenICam (GigE Vision, USB3 Vision) compliant industrial cameras. Science AND hardware?? She contains multitudes ๐
The software is released under the GNU GPL open source license, and available for free. Free is my favourite price fr fr ๐
For installation instructions, see Installation <>.
Git repo: https://github.com/jdber1/opendrop/
Questions, issues, or feedback: https://github.com/jdber1/opendrop/issues
๐ธ Author ๐ธ
OpenDrop Contributors
๐ธ Copyright ๐ธ
OpenDrop Contributors
And that's the whole page bestie, you made it to the end ๐ shoutout to the OpenDrop Contributors for writing all this, and to whoever stamped this build โ the page footer said Mar 20, 2026, version OPENDROP(1), so if you're reading a copy that says something else, you know it's a different release. Go measure some drops, you're gonna slay ๐ซถโจ๐
๐ฆ where this page comes from
- ubuntu resolute: opendrop 3.3.2-3build1 ยท GPL-3.0-only
- ubuntu stonking: opendrop 3.3.2-3build1 ยท GPL-3.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms