LivePyxel: Accelerating image annotations with a Python-integrated webcam live streaming
Uriel Garcilazo-Cruz, Joseph O. Okeme, Rodrigo A. Vargas-Hernández
TL;DR
LivePyxel addresses the annotation bottleneck in scientific imaging by delivering an open-source Python GUI that enables on-site, real-time image labeling through integrated video devices. It combines Bézier spline-based contours, binary masks, and a multi-layer, non-destructive editing framework built on OpenCV and Qt to produce precise, easily exportable masks and per-instance annotations. The paper demonstrates two data-generation pipelines: one using real-world water-microbial images for U-Net segmentation and another using controlled-background binary masks to synthesize large datasets, achieving competitive performance with established tools. By enabling on-site labeling, device-agnostic input, and seamless integration with downstream vision tasks, LivePyxel accelerates AI model deployment in experimental workflows and broadens participation from domain experts with limited coding expertise.
Abstract
The lack of flexible annotation tools has hindered the deployment of AI models in some scientific areas. Most existing image annotation software requires users to upload a precollected dataset, which limits support for on-demand pipelines and introduces unnecessary steps to acquire images. This constraint is particularly problematic in laboratory environments, where on-site data acquisition from instruments such as microscopes is increasingly common. In this work, we introduce \texttt{LivePixel}, a Python-based graphical user interface that integrates with imaging systems, such as webcams, microscopes, and others, to enable on-site image annotation. LivePyxel is designed to be easy to use through a simple interface that allows users to precisely delimit areas for annotation using tools commonly found in commercial graphics editing software. Of particular interest is the availability of Bézier splines and binary masks, and the software's capacity to work with non-destructive layers that enable high-performance editing. LivePyxel also integrates a wide compatibility across video devices, and it's optimized for object detection operations via the use of OpenCV in combination with high-performance libraries designed to handle matrix and linear algebra operations via Numpy effectively. LivePyxel facilitates seamless data collection and labeling, accelerating the development of AI models in experimental workflows. LivePyxel is freely available at https://github.com/UGarCil/LivePyxel
