feat: print captured photos on an ESC/POS thermal printer

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bankosegger
2026-11-11 14:56:41 +01:00
parent 898ceb5726
commit eae81bb052
3 changed files with 261 additions and 12 deletions

View File

@@ -26,6 +26,7 @@ mod diagnostics;
mod faces;
mod hand_pose;
mod palm;
mod printer;
struct PreviewFrame {
buffer: SharedPixelBuffer<Rgb8Pixel>,
@@ -140,7 +141,7 @@ fn main() -> Result<(), Box<dyn Error>> {
);
if take_picture {
// The snapshot is the capture: lighting can end after this copy.
// Face counting and the empty print hook run on their own worker.
// Face counting and thermal printing run on their own worker.
let snapshot = frame.try_clone()?;
if let Err(error) = capture_worker.submit(snapshot) {
eprintln!("[capture ERROR] Capture not queued: {error}");