User Guide for the Csmart Digit Desktop application
Overview
Csmart Digit Desktop is a desktop application for real-time coffee bean quality analysis using AI and computer vision. It connects to the Csmart Digit machine hardware to capture seed images, classify them using ONNX deep learning models, and produce detailed quality reports. Data is stored in HDF5 files containing images, extracted features, and classification results.
How It Fits Into the Csmart Ecosystem
Digit Desktop is the production analysis tool in the Csmart pipeline:
Csmart Digit Desktop captures images of coffee samples using the Digit machine and stores them in HDF5 format.
Csmart Studio Desktop uses those images to train and evaluate AI classification models.
The trained models (ONNX files) are deployed back to Csmart Digit Desktop for real-time inference.
Customize AI model parameters and classification rules
13
Evaluate Models
Compare AI model performance across analysis files
Additional screens manage Acquisition Settings, General Settings, Upload Analysis, Backup Settings, Runtime Environment, and About.
Key Concepts
Analysis Files
All analysis data is stored in HDF5 files (.hdf5). Each file contains the complete record of a coffee sample analysis: captured images, extracted features (color, shape, texture), classification results, and metadata. HDF5 is a high-performance binary format that efficiently stores large image datasets alongside numerical data.
AI Models
Digit Desktop uses ONNX models for seed classification. These models are trained in Csmart Studio Desktop and exported as .onnx files with an accompanying JSON metadata file. The JSON file defines class names, subsets, feature rules, density maps, and method equivalences.
Classification Modes
Seeds can be classified in two modes:
Mode
Description
Binary
Seeds are classified as OK or Defective (NOK)
Multiclass
Seeds are classified into specific defect categories organized by subsets: primary, secondary, foreign matter, and disregarded
Screen Sizes
Screen size refers to the sieve size used in coffee grading. It represents the physical size of the mesh holes through which beans are sorted. Digit Desktop tracks screen size for each seed (typically ranging from 10 to 19) and supports Moka (Peaberry) intermediates.
Moka (Peaberry) Beans
Peaberry (Moka) beans have a distinct round shape and different density characteristics. Digit Desktop supports separate recording and analysis of Moka beans, with dedicated density parameters for accurate weight estimation.
System Requirements
Minimum Hardware Requirements:
Processor: Intel Core i5 (10th generation or newer) or AMD equivalent
RAM: 8 GB DDR4
Storage: 256 GB SSD
GPU: NVIDIA GPU with CUDA support (recommended for faster inference)
OS: Windows 10 or later (64-bit)
Csmart Digit machine with Basler camera and ESP32 controller
Recommended Hardware:
Processor: Intel Core i7 (12th generation or newer)
RAM: 16 GB DDR4 or DDR5
Storage: 512 GB SSD or larger (analysis files can grow to several hundred megabytes)
GPU: NVIDIA RTX series (for GPU-accelerated inference)
OS: Windows 11 (64-bit)
Prerequisites
Before using Digit Desktop, ensure you have:
The Csmart Digit machine connected via USB (camera) and serial (ESP32 controller).
An ONNX AI model trained and exported from Csmart Studio Desktop.
The Python runtime installed (from the Runtime Environment screen on first launch).
NVIDIA GPU drivers installed if using GPU-accelerated inference.