[Paper Review] Tracing the boundaries of materials in transparent vessels using computer vision
This paper presents a computer vision method to detect material boundaries in transparent containers using image analysis. It models boundaries as curves with endpoints on the vessel contour, evaluates curve likelihood via a cost function based on image properties, and uses Dijkstra’s algorithm to find the optimal boundary, successfully applied to diverse materials and lab glassware types including liquids, solids, and viscous fluids.
Visual recognition of material boundaries in transparent vessels is valuable for numerous applications. Such recognition is essential for estimation of fill-level, volume and phase-boundaries as well as for tracking of such chemical processes as precipitation, crystallization, condensation, evaporation and phase-separation. The problem of material boundary recognition in images is particularly complex for materials with non-flat surfaces, i.e., solids, powders and viscous fluids, in which the material interfaces have unpredictable shapes. This work demonstrates a general method for finding the boundaries of materials inside transparent containers in images. The method uses an image of the transparent vessel containing the material and the boundary of the vessel in this image. The recognition is based on the assumption that the material boundary appears in the image in the form of a curve (with various constraints) whose endpoints are both positioned on the vessel contour. The probability that a curve matches the material boundary in the image is evaluated using a cost function based on some image properties along this curve. Several image properties were examined as indicators for the material boundary. The optimal boundary curve was found using Dijkstra's algorithm. The method was successfully examined for recognition of various types of phase-boundaries, including liquid-air, solid-air and solid-liquid interfaces, as well as for various types of glassware containers from everyday life and the chemistry laboratory (i.e., bottles, beakers, flasks, jars, columns, vials and separation-funnels). In addition, the method can be easily extended to materials carried on top of carrier vessels (i.e., plates, spoons, spatulas).
Motivation & Objective
- To develop a robust method for detecting material boundaries in transparent containers where traditional segmentation fails due to transparency and complex interfaces.
- To address the challenge of recognizing non-flat, irregularly shaped material boundaries such as those of powders, viscous fluids, and solids in transparent vessels.
- To enable accurate estimation of fill-level, volume, and phase boundaries in chemical and laboratory processes.
- To extend applicability to various glassware types (e.g., beakers, flasks, vials) and materials, including those on carrier vessels like spoons or plates.
- To provide a generalizable, open-source solution for boundary detection in transparent containers using image-based analysis.
Proposed method
- The method assumes material boundaries appear as curves with both endpoints on the vessel contour in the image.
- A cost function is defined based on image properties (e.g., intensity, gradient, texture) along candidate curves to evaluate their likelihood as true material boundaries.
- Dijkstra’s algorithm is used to search for the minimum-cost curve connecting two points on the vessel contour, representing the most probable boundary.
- Multiple image properties are evaluated as indicators for boundary likelihood, including edge strength and contrast variations.
- The approach is applied to images of transparent containers with materials such as liquids, solids, and viscous fluids, and validated across diverse glassware types.
- The method supports extension to materials on carrier vessels (e.g., on plates or spoons) by adapting the boundary detection logic.
Experimental results
Research questions
- RQ1Can a general-purpose computer vision method reliably detect material boundaries in transparent vessels with complex, non-flat interfaces?
- RQ2How effective is a curve-based boundary model with endpoints constrained to the vessel contour in capturing material boundaries across diverse materials?
- RQ3To what extent can image properties such as intensity gradients and contrast be used to distinguish material boundaries from other image features?
- RQ4Can the method be generalized across various types of laboratory glassware and real-world containers?
- RQ5How does the use of Dijkstra’s algorithm for cost-minimizing pathfinding improve boundary detection accuracy in transparent containers?
Key findings
- The method successfully detects material boundaries across a wide range of materials, including liquid-air, solid-air, and solid-liquid interfaces.
- It achieves robust detection in transparent containers of various shapes and sizes, including beakers, flasks, vials, and separation funnels.
- The approach generalizes well to non-laboratory glassware such as bottles, jars, and columns from everyday use.
- The method can be extended to materials on carrier vessels, such as powders on spoons or plates, by adapting the boundary constraint model.
- The use of a cost function based on image properties enables accurate boundary selection even in the absence of strong color or texture contrast.
- The implementation is publicly available with code and documentation, supporting reproducibility and further development.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.