/CapillaryFlowTracker-Salt-Concentration-Analysis-with-Computer-Vision

Analyze fluid motion and capillary movement with varying salt concentrations using computer vision. This repository contains tools and scripts for tracking and visualizing capillary behavior under different salt conditions, facilitating research in fluid dynamics and salt-dependent phenomena.

Primary LanguagePythonMIT LicenseMIT

CapillaryFlowTracker-Salt-Concentration-Analysis-with-Computer-Vision

Analyze fluid motion and capillary movement with varying salt concentrations using computer vision. This repository contains tools and scripts for tracking and visualizing capillary behavior under different salt conditions, facilitating research in fluid dynamics and salt-dependent phenomena.

Fluid Motion and Capillary Movement Analysis

This repository contains Python code for analyzing fluid motion and capillary movement in images and videos using computer vision techniques. The code is designed to work with OpenCV and provides examples for both image and video processing.

Table of Contents

Introduction

Fluid motion and capillary movement analysis are important in various scientific and engineering fields. This repository offers a set of tools to analyze and visualize these phenomena using computer vision.

Features

  • Image and video processing for fluid motion analysis.
  • Hue-based color segmentation for extracting relevant features.
  • Contour detection to identify capillary boundaries.
  • Example scripts for image and video processing.
  • Salt Concentration Resistance and tracking
  • Finding the rightmost point and plotting the variation of direction of fluid with respect to time.

Installation

git clone https://github.com/Tajamul21/CapillaryFlowTracker-Salt-Concentration-Analysis-with-Computer-Vision.git

Requirements

To run the code in this repository, you'll need the following dependencies:

  • Python (>=3.6)
  • OpenCV (cv2)
  • NumPy
  • Matplotlib (for visualization)

You can install the required Python packages using pip:

pip install opencv-python numpy matplotlib

Data

In this project, we provide sample input and output videos for your reference. You can access these videos from the following Google Drive folder:

  1. Click on the provided link to open the Google Drive folder.

  2. In the folder, you will find the following videos:

    • input_video.mp4: Sample input video used for fluid motion analysis.
    • output_video.mp4: Sample output video with visual annotations.
  3. You can download these videos by selecting them and clicking on the "Download" option.

Feel free to use these sample videos to test the provided scripts and explore the fluid motion and capillary movement analysis process.