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:
@@ -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}");
|
||||
|
||||
Reference in New Issue
Block a user