The GECKO FTIR project aims to develop an optical measurement system for analyzing contact between gecko-inspired adhesive materials and a glass surface using Frustrated Total Internal Reflection (FTIR).
The system combines camera acquisition, controlled LED illumination, computer vision, and image processing to detect and quantify contact regions on two Gecko material patches.
The main objective is to transform optical contact observations into measurable parameters for material characterization.
The system integrates three main components:
- Image Acquisition: A USB camera captures the optical interaction between the Gecko material and the glass surface.
- LED Lighting Control: An ESP32 microcontroller controls an addressable RGB LED strip to provide adjustable illumination.
- Image Processing and Analysis: Python, OpenCV, and PySide6 are used for image acquisition, segmentation, visualization, and quantitative analysis.
The image processing pipeline consists of the following stages:
- Orange Frame Detection: HSV color segmentation identifies the orange frame surrounding the two Gecko patches.
- ROI Extraction: The interior region of each patch is extracted, excluding the orange frame and surrounding background.
- Contact Segmentation: Bright, low-saturation regions are detected using a brightness threshold of 92.
- Engagement Segmentation: A stricter brightness threshold of 208 identifies the brightest regions within the contact areas.
- Morphological Filtering: Image opening and closing operations reduce noise and improve segmentation.
- Quantitative Analysis: Contact and engagement areas are calculated independently for each patch.
Engagement is defined as a stricter subset of Contact.
The application provides a graphical interface for camera visualization, image processing, and experimental control.
Main features include:
- Real-time camera acquisition.
- LED lighting control.
- Gecko patch detection.
- Contact and engagement visualization.
- Quantitative measurements for both patches.
- Experimental screenshot export.
- Python
- OpenCV
- NumPy
- PySide6
- ESP32
- Arduino / C++
- Computer Vision and Image Processing
For a more detailed explanation of the experimental setup, methodology, and project development, see the project presentation:
GECKO FTIR – Project Presentation (Canva)
Gecko_FTIR/
├── gui/
│ ├── main_window.py
│ └── led_control_window.py
├── processing/
│ ├── gecko_contact.py
│ └── gecko_metrics.py
├── Led123/
│ └── Led123.ino
├── docs/
│ └── images/
│ └── gecko_interface.png
├── Glass_ROI.png
├── main.py
├── requirements.txt
├── .gitignore
└── README.md
