StreamerResource¶
StreamerResource
¶
Streamer management — screenshots and OCR for PiKVM.
Source code in src/aiopikvm/resources/streamer.py
get_state()
async
¶
Get the current streamer state.
Returns:
| Type | Description |
|---|---|
StreamerState
|
Current streamer subsystem state. |
snapshot()
async
¶
Take a JPEG screenshot.
Returns:
| Type | Description |
|---|---|
bytes
|
Raw JPEG image bytes. |
ocr()
async
¶
Perform OCR on the current screen.
Returns:
| Type | Description |
|---|---|
str
|
Recognized text. |