guides:example-programs
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| guides:example-programs [2026/03/22 22:56] – [Metrics] osnr | guides:example-programs [2026/03/22 22:56] (current) – [Frame image] osnr | ||
|---|---|---|---|
| Line 20: | Line 20: | ||
| </ | </ | ||
| - | === Frame image === | ||
| - | < | ||
| - | When the camera frame is /im/ { | ||
| - | Wish the web server handles route "/ | ||
| - | set filename "/ | ||
| - | image saveAsJpeg $im $filename | ||
| - | set fsize [file size $filename] | ||
| - | set fd [open $filename r] | ||
| - | fconfigure $fd -encoding binary -translation binary | ||
| - | set body [read $fd $fsize] | ||
| - | close $fd | ||
| - | dict create statusAndHeaders " | ||
| - | }} $im] | ||
| - | } | ||
| - | </ | ||
guides/example-programs.txt · Last modified: by osnr
