Inside AI
← Build & Hack
Proposed build / AI Wearables

Build a glanceable workbench label reader

Proposed build · Capture a fictional parts-bin label, read it on a host computer, and show a short catalog match in the glasses.

Device profile · Brilliant Labs Frame ↗
Start with the documented setup

This is a proposed workflow. Follow the linked official setup, then use the checks below to decide whether it works on your hardware.

Difficulty and setup

Intermediate Python and asynchronous event handling. Use an original Frame you already have, its charging cradle, a Bluetooth-capable host, the current Brilliant SDK and a local OCR engine. Prepare printed fictional bin labels such as BIN-014 and a small local catalog. Work seated at a bench. This is a development recipe, not a finished app or a tested accessibility aid.

1. Establish the device baseline

Use the official current SDK examples to pair, show a short text message, and receive one photograph. The example index links camera.py and its companion camera_frame_app.lua, plus plain_text.py. Run each unmodified first; record firmware and package versions. The example camera opens an image viewer, which is useful for setup but should be removed from a capture-only final workflow. Current examples

2. Connect the stages

On an explicit host-side Capture action, clear the previous answer and create request_id plus monotonic start time. Ask the existing camera example to capture at a chosen fixed resolution. Feed the received JPEG bytes to local OCR. Accept a result only if one label matches the strict pattern BIN- followed by three digits and exists in the catalog. Show the label plus a short known description; otherwise show “No clear label”. Do not let a language model invent a missing bin ID.

3. Add glasses input after the basic path works

After the host button path is reliable, adapt the official multi_tap.py example to trigger the same request handler from a tap event. Debounce taps and reject a new request while capture is busy, or cancel and replace it explicitly. Keep the host and device message codes consistent when combining the camera, tap and text handlers. Example index Message-layer migration

4. Render a short answer

The basic Lua display API can draw text then commit the buffer. The example below is a display sanity check to execute when Frame is in REPL mode; it is not the complete recognition pipeline. Plain text has no automatic wrapping, so start with a short ASCII label and check its actual fit. For richer text layout use the matching current SDK message example. Lua display

frame.display.text('BIN-014', 30, 80)
frame.display.text('M3 washers', 30, 150)
frame.display.show()

5. Bound latency and retention

Use a five-second response deadline for the first prototype. A late result must not overwrite a newer request. Keep JPEG bytes only until OCR finishes, avoid image debug files after setup, and clear displayed answers after five seconds. Log timing for capture, transfer, OCR and display, along with success/unknown/error and the request ID. These settings are proposed defaults to test, not measured limits of Frame.

What counts as completion?

A user deliberately captures a bin label and sees either the exact catalog match or a clear unknown/error state. The prototype must not display a previous bin’s description after a failed capture. A local OCR path needs no cloud model; an optional model can later explain a matched catalog item using known catalog text, while keeping the identification step strict. No hardware run has been performed here.

Primary sources

Frame Lua peripheral API Frame Bluetooth protocol Brilliant SDK and device support Python SDK migration guide