# Python contact angle image processing analysis
Python contact angle image processing analysis
A python script that follows a simple logical progression to reliably measure contact angles from image or video files. While the traditional methods for contact angle analysis typically rely on the user drawing tangent lines to droplets, which is both time consuming and can lead to bias in the analysis results, we attempt to automate this analysis to make the process both more robust and more amenable to high throughput data generation. The logic we use for this process is highlighted below:
The analysis script can be installed by cloning the repository into your desired working directory or via the following:
$ pip install contactangles
pip installation, the main script can be run from the command line by calling
analysis; otherwise it must be run from within a Python instance (see Use section below).
The following packages must already be installed in your Python environment to contribute to the development of this project:
Depending on the installation choice, the script can either be run from the command line:
$ analysis path/to/files/of/interest
If you have installed as a developer, you can use the script by calling the
main() function from the file
The relevant threshold parameters that define where the tangent lines, baseline, and circle will be identified are most easily explained through the image below:
These parameters can be accessed through the flags
--linThreshold respectively. Additional flags can be set and can be shown from the help accessed by
$ analysis --help
Contact angle measurement automation has also been performed by mvgorcum, which uses a different approach to fitting the tangents, but inspired our work here.
Please don't hesitate to submit any issues that you may identify with the approach or the coding. We will try to respond quickly to any questions that may arise. If you would like to contribute to the project, feel free to make any pull requests that will make the solution more robust/efficient/better for your application, and we will do our best to incorporate it in the next release.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size contactangles-0.3.1a0-py3-none-any.whl (27.8 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size contactangles-0.3.1.alpha0.tar.gz (31.1 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for contactangles-0.3.1a0-py3-none-any.whl
Hashes for contactangles-0.3.1.alpha0.tar.gz