This is a very small model that reads 7-segment displays in photos. It finds each digit (0-9), decimal point and minus sign, and the included script joins them into readings. It was built to read temperature and humidity from egg incubator controllers in low-cost camera photos. It is a single-stage centre-point detector with a MobileNetV2-style backbone, trained from scratch. It has 315,208 parameters and needs about 0.27 GMACs per picture. Input is a 320 x 240 RGB picture. The model is provided as ONNX and as PyTorch weights. The reading script needs only NumPy and OpenCV. Training used 130,000 computer-generated pictures (1,000 held out for checking) and 1,759 real photos. Real test photos, not used as training data, where every reading was exactly right: - PTTH-201 incubator controller: 216 of 216 - Controller panel shown on a screen: 85 of 100 - Public 7-segment photos: 106 of 122 The first two sets show devices that are also in the training photos. A test version trained without any PTTH-201 photos read only 44 of those 216 exactly. Test the model on your own displays before relying on it. Built for ESP32: an ESP32-CAM takes the photo and an ESP32-S3 (16 MB flash, 8 MB PSRAM) reads it. Version 1 is float32 and was tested on a computer only; it has not been run on an ESP32 yet. int8 conversion and on-board results are planned for version 2.
Reading temperature and humidity values from 7-segment incubator controllers in camera photos. Reading similar 7-segment meters and panels, after testing on your own photos. Learning about and experimenting with very small object detectors, and retraining for other displays using the PyTorch weights. Check each reading against the expected format and range before acting on it.
Displays unlike those seen in training are read much less reliably: a test version trained without one controller read only 44 of its 216 photos exactly. Decimal points are sometimes missed, and displays placed side by side can be joined or split wrongly. Pictures are resized to 320 x 240, so crop to roughly 4:3; very small digits can be missed. Only digits, the decimal point and the minus sign are recognised, not letters or error codes. Test scores are optimistic where test and training photos show the same device, and training settings were changed after looking at failures on some test photos. Only float32 was tested, on a computer; int8 conversion and microcontroller speed are untested. Do not use it as the only safeguard where a wrong reading could harm people, animals or equipment.
Apache 2.0
Aquaculture, Livestock and Fisheries
Peeyushlamba
Mershil Technologies
Image Feature Extraction
PyTorch, ONNX
CenterNet
None (trained from scratch)
0.000315 Billion
130,000 synthetic images and 1,759 real photos: PTTH-201 controller, a screen-shown panel, and 32 from the Roboflow new_merge dataset (CC BY 4.0).
English
Open
01/12/26 04:47:25
Hosted
0
© 2026 - Copyright AIKosh. All rights reserved.