SFOF4S


NameSFOF4S JSON
Version 1.0.13 PyPI version JSON
download
home_pagehttps://github.com/yriyazi/SFOF4S
SummaryThis toolkit aids in analyzing drop sliding on tilted plates, allowing researchers to study various variables and their correlations in detail.
upload_time2025-02-06 00:02:26
maintainerYassin Riyazi
docs_urlNone
authorSajjad Shumaly
requires_python>=3.12
licenseNone
keywords machine learning computer vision pytorch scipy opencv droplet contact angle
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Deep Learning to Analyze Sliding Drops ([Cite Us](#citation))

The **SFOF4S toolkit** is designed to solve existing challenges in analyzing the sliding motion of drops on tilted plates. It enables researchers to conduct detailed studies by considering a wide range of variables and their correlations.

Key features include:
- **Super-Resolution Enhancement**: The toolkit enlarges images by an up-scale ratio of 3 using a super-resolution model trained on a dataset of 14,000 sliding drop images.
- **Comprehensive Analysis**: Extracts various criteria from the super-resolution images to provide precise insights into drop behavior.
- **Optimized Contact Angle Measurement**: Contact angles are measured using an optimized polynomial method, as described in the accompanying manuscript.

This toolkit streamlines complex image processing tasks, empowering researchers with high-quality data for in-depth analysis.

![graphical abstract](https://user-images.githubusercontent.com/57271994/194614949-8736973c-4df3-4449-9a21-bc2423405648.png)

---
# General inforamtion

The original implementation had dependency issues, so a new version was introduced to resolve them by migrating to the PyTorch framework.
Please note that installing this package requires CUDA libraries and may occupy up to 3 GB of storage.
Check a simple implementation ["https://github.com/yriyazi/SFOF4S-Documentation]("https://github.com/yriyazi/SFOF4S-Documentation)

## Drop Profile Video

- **File:** `drop_profile.mp4`

    This video illustrates a sliding drop on a sample with a defect in the middle:

    - The **first drop** in the upper part of the video is the real drop image after preprocessing. Key preprocessing steps include:
      - Calculating the tilt angle and aligning frames horizontally.
      - Removing noise and background.
      - Detecting the drop position (marked by red lines).
    - The **second drop** (larger image) represents the drop after applying a super-resolution model.
    - Below that, the **drop contour** is extracted, and parameters such as contact angles (CAs), drop height, and drop length are displayed.
    - On the left, four plots analyze how the drop slides over a defected sample.

[Preview the video on GitHub](https://github.com/AK-Berger/4S-SROF/assets/57271994/4130c91c-193a-4bf9-b08d-e2df878f88bf)

---

## Instructions

- **File:** `instructions.md`  

    This file is a comprehensive guide designed to assist researchers in setting up and using the analysis toolkit. It has two general sections: one focused on setting up the environment and another on effectively using the code.

    - **How to Set Up:**  
      This section guides you through the installation of Python, Anaconda, and Jupyter Notebook. It explains how to download the code repository, prepare your working directory, and ensure all necessary libraries are installed for a seamless setup.  

    - **How to Use:**  
      This section provides detailed steps for preparing video frames, creating and marking the slope folder, and running the analysis code. It also explains how to configure experiment-specific variables and interpret the generated outputs, such as `result.xlsx` and analyzed frame outputs.

---
## Control Panel

- **File:** `Control Panel.ipynb`  

    This file contains the main executable code for the toolkit. It acts as a central hub, calling other `.py` files and libraries to perform the analysis. The code processes the video frames, extracts features, and generates the final `result.xlsx` file containing the analyzed time-series data. It integrates all steps of the workflow, making it easy to convert raw video frames into meaningful results.

---

## Tutorial

- **tutorial:** `tutorial.ipynb`  and dataset
    [HERE](https://github.com/yriyazi/SFOF4S-Documentation)
    

---


## Dataset

- **Description:** The dataset contains 14,000 sliding drop images used to train the modified super-resolution model.
- **Access:** [Download the dataset](https://www.kaggle.com/datasets/sajjdeus/4s-srof)

---

## ESPCN Super-Resolution Model Weights

- **File:** `SuperRes_weights.h5`

    This file contains the weights for the modified ESPCN super-resolution model, trained on 14,000 sliding drop images.

---

## Python Files

The following `.py` files are included in the toolkit and provide functions for related image processing tasks:

- `angle_detection.py`
- `baseline_detection.py`
- `criteria_definition.py`
- `edge_superres.py`
- `tools.py`
- `visualization.py`

These scripts are essential for researchers working with this toolkit.


---
# Citation

If you find **"Deep Learning to Analyze Sliding Drops"** useful for your research, please consider citing the paper using the following information:

<div style="position: relative;">
  <pre>
    <code>
@article{shumaly2023deep,
  title={Deep learning to analyze sliding drops},
  author={Shumaly, Sajjad and Darvish, Fahimeh and Li, Xiaomei and Saal, Alexander and Hinduja, Chirag and Steffen, Werner and Kukharenko, Oleksandra and Butt, Hans-J{\"u}rgen and Berger, R{\"u}diger},
  journal={Langmuir},
  volume={39},
  number={3},
  pages={1111--1122},
  year={2023},
  publisher={ACS Publications}
}
    </code>
  </pre>
  <button onclick="copyText(this)" style="position: absolute; top: 0; right: 0;"></button>
</div>





---

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/yriyazi/SFOF4S",
    "name": "SFOF4S",
    "maintainer": "Yassin Riyazi",
    "docs_url": null,
    "requires_python": ">=3.12",
    "maintainer_email": "iyasiniyasin98@gmail.com",
    "keywords": "machine learning, computer vision, PyTorch, SciPy, OpenCV, droplet, contact angle",
    "author": "Sajjad Shumaly",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/6d/d7/8ec8a58409762b199dd3dea96b18c8cb92075097e170ca6b096ab640f08f/sfof4s-1.0.13.tar.gz",
    "platform": null,
    "description": "# Deep Learning to Analyze Sliding Drops ([Cite Us](#citation))\n\nThe **SFOF4S toolkit** is designed to solve existing challenges in analyzing the sliding motion of drops on tilted plates. It enables researchers to conduct detailed studies by considering a wide range of variables and their correlations.\n\nKey features include:\n- **Super-Resolution Enhancement**: The toolkit enlarges images by an up-scale ratio of 3 using a super-resolution model trained on a dataset of 14,000 sliding drop images.\n- **Comprehensive Analysis**: Extracts various criteria from the super-resolution images to provide precise insights into drop behavior.\n- **Optimized Contact Angle Measurement**: Contact angles are measured using an optimized polynomial method, as described in the accompanying manuscript.\n\nThis toolkit streamlines complex image processing tasks, empowering researchers with high-quality data for in-depth analysis.\n\n![graphical abstract](https://user-images.githubusercontent.com/57271994/194614949-8736973c-4df3-4449-9a21-bc2423405648.png)\n\n---\n# General inforamtion\n\nThe original implementation had dependency issues, so a new version was introduced to resolve them by migrating to the PyTorch framework.\nPlease note that installing this package requires CUDA libraries and may occupy up to 3 GB of storage.\nCheck a simple implementation [\"https://github.com/yriyazi/SFOF4S-Documentation](\"https://github.com/yriyazi/SFOF4S-Documentation)\n\n## Drop Profile Video\n\n- **File:** `drop_profile.mp4`\n\n    This video illustrates a sliding drop on a sample with a defect in the middle:\n\n    - The **first drop** in the upper part of the video is the real drop image after preprocessing. Key preprocessing steps include:\n      - Calculating the tilt angle and aligning frames horizontally.\n      - Removing noise and background.\n      - Detecting the drop position (marked by red lines).\n    - The **second drop** (larger image) represents the drop after applying a super-resolution model.\n    - Below that, the **drop contour** is extracted, and parameters such as contact angles (CAs), drop height, and drop length are displayed.\n    - On the left, four plots analyze how the drop slides over a defected sample.\n\n[Preview the video on GitHub](https://github.com/AK-Berger/4S-SROF/assets/57271994/4130c91c-193a-4bf9-b08d-e2df878f88bf)\n\n---\n\n## Instructions\n\n- **File:** `instructions.md`  \n\n    This file is a comprehensive guide designed to assist researchers in setting up and using the analysis toolkit. It has two general sections: one focused on setting up the environment and another on effectively using the code.\n\n    - **How to Set Up:**  \n      This section guides you through the installation of Python, Anaconda, and Jupyter Notebook. It explains how to download the code repository, prepare your working directory, and ensure all necessary libraries are installed for a seamless setup.  \n\n    - **How to Use:**  \n      This section provides detailed steps for preparing video frames, creating and marking the slope folder, and running the analysis code. It also explains how to configure experiment-specific variables and interpret the generated outputs, such as `result.xlsx` and analyzed frame outputs.\n\n---\n## Control Panel\n\n- **File:** `Control Panel.ipynb`  \n\n    This file contains the main executable code for the toolkit. It acts as a central hub, calling other `.py` files and libraries to perform the analysis. The code processes the video frames, extracts features, and generates the final `result.xlsx` file containing the analyzed time-series data. It integrates all steps of the workflow, making it easy to convert raw video frames into meaningful results.\n\n---\n\n## Tutorial\n\n- **tutorial:** `tutorial.ipynb`  and dataset\n    [HERE](https://github.com/yriyazi/SFOF4S-Documentation)\n    \n\n---\n\n\n## Dataset\n\n- **Description:** The dataset contains 14,000 sliding drop images used to train the modified super-resolution model.\n- **Access:** [Download the dataset](https://www.kaggle.com/datasets/sajjdeus/4s-srof)\n\n---\n\n## ESPCN Super-Resolution Model Weights\n\n- **File:** `SuperRes_weights.h5`\n\n    This file contains the weights for the modified ESPCN super-resolution model, trained on 14,000 sliding drop images.\n\n---\n\n## Python Files\n\nThe following `.py` files are included in the toolkit and provide functions for related image processing tasks:\n\n- `angle_detection.py`\n- `baseline_detection.py`\n- `criteria_definition.py`\n- `edge_superres.py`\n- `tools.py`\n- `visualization.py`\n\nThese scripts are essential for researchers working with this toolkit.\n\n\n---\n# Citation\n\nIf you find **\"Deep Learning to Analyze Sliding Drops\"** useful for your research, please consider citing the paper using the following information:\n\n<div style=\"position: relative;\">\n  <pre>\n    <code>\n@article{shumaly2023deep,\n  title={Deep learning to analyze sliding drops},\n  author={Shumaly, Sajjad and Darvish, Fahimeh and Li, Xiaomei and Saal, Alexander and Hinduja, Chirag and Steffen, Werner and Kukharenko, Oleksandra and Butt, Hans-J{\\\"u}rgen and Berger, R{\\\"u}diger},\n  journal={Langmuir},\n  volume={39},\n  number={3},\n  pages={1111--1122},\n  year={2023},\n  publisher={ACS Publications}\n}\n    </code>\n  </pre>\n  <button onclick=\"copyText(this)\" style=\"position: absolute; top: 0; right: 0;\"></button>\n</div>\n\n\n\n\n\n---\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "This toolkit aids in analyzing drop sliding on tilted plates, allowing researchers to study various variables and their correlations in detail.",
    "version": "1.0.13",
    "project_urls": {
        "Homepage": "https://github.com/yriyazi/SFOF4S",
        "Source Code": "https://github.com/AK-Berger/4S-SROF",
        "documentation": "https://github.com/yriyazi/SFOF4S-Documentation"
    },
    "split_keywords": [
        "machine learning",
        " computer vision",
        " pytorch",
        " scipy",
        " opencv",
        " droplet",
        " contact angle"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "91639d80943d82d5b971ffc81cfd3e2da436c1240a945a30475b35471b4ca6c6",
                "md5": "b41f48d846f16cb59aa31264059d0186",
                "sha256": "9042a68e7a2bd67a98becc7c9560a07d70d9f87a2d0da7e120d89b4aaa47dfbf"
            },
            "downloads": -1,
            "filename": "SFOF4S-1.0.13-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b41f48d846f16cb59aa31264059d0186",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.12",
            "size": 32858,
            "upload_time": "2025-02-06T00:02:23",
            "upload_time_iso_8601": "2025-02-06T00:02:23.926024Z",
            "url": "https://files.pythonhosted.org/packages/91/63/9d80943d82d5b971ffc81cfd3e2da436c1240a945a30475b35471b4ca6c6/SFOF4S-1.0.13-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "6dd78ec8a58409762b199dd3dea96b18c8cb92075097e170ca6b096ab640f08f",
                "md5": "4aba8c96f8f97964163e1340dff0728f",
                "sha256": "0aa71e08f4edfbc53c56ed327dbff0d4fff191c3904f6c2bee372b4c9b5c3a23"
            },
            "downloads": -1,
            "filename": "sfof4s-1.0.13.tar.gz",
            "has_sig": false,
            "md5_digest": "4aba8c96f8f97964163e1340dff0728f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.12",
            "size": 32902,
            "upload_time": "2025-02-06T00:02:26",
            "upload_time_iso_8601": "2025-02-06T00:02:26.593625Z",
            "url": "https://files.pythonhosted.org/packages/6d/d7/8ec8a58409762b199dd3dea96b18c8cb92075097e170ca6b096ab640f08f/sfof4s-1.0.13.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-06 00:02:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "yriyazi",
    "github_project": "SFOF4S",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "sfof4s"
}
        
Elapsed time: 2.19015s