Inside AI
← Deep Dives
Deep dive / AI Wearables

Inside Frame’s capture–think–display loop

Separate the glasses’ sensing and rendering work from the host’s recognition step, then follow one request across the Bluetooth link.

Device profile · Brilliant Labs Frame ↗

1. The physical front end

Light enters the bridge-mounted camera. Frame’s FPGA processes the image and the microcontroller controls the transaction. The display takes a different path through its micro OLED and optical assembly. The camera view and the wearer’s apparent view are not identical; a label that seems centred to the wearer may still miss the chosen crop. Hardware manual

2. Capture is a transaction

The Lua camera API starts a capture and exposes image_ready() before bytes can be read. Reading before completion risks bad data. Resolution and JPEG quality affect the payload and therefore transfer time. Treat exposure, capture and transfer as separate stages in your logs. Camera API

3. Why the host matters

Frame’s app model uses a host program and an on-glasses event loop. Recognition can be local to the host or implemented through a cloud request, depending on your program. The Bluetooth SDK transports bytes and messages; it does not guarantee correct OCR or a grounded description. For a known workbench label, deterministic lookup after OCR makes the output easier to check than an unrestricted scene description. Application architecture

4. The two Bluetooth programming modes

In REPL mode the host sends short Lua statements. When a persistent Lua loop is running, later ordinary Lua commands wait; raw data messages can still reach its callback. A live app should use the supported message loop to receive commands and return sensor data. Mixing REPL commands with a running loop is a common reason a seemingly valid display command never appears. Protocol

5. Keep the SDK halves together

The new Python migration changes more than names. Its Lua data processing returns an ordered message queue instead of populating the old app_data table. Sprite wire formats also changed. Update the host package and the uploaded companion libraries as one tested pair, and record their versions with the firmware. The published Halo emulator is useful for Halo development; it is not physical validation of a Frame camera or optical display. Migration guide SDK

6. Measure an answer’s age

Give each user request an ID and timestamp. Keep at most one capture in flight at first. If the user cancels or starts a newer request, discard an older completion before it reaches the display. Clear the visible answer after a short expiry and show an unavailable state when the connection drops. These are proposed application policies, and their behaviour is covered by the linked experiment.

Primary sources

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