jvconnected.devicepreview
- class jvconnected.devicepreview.JpegSource(device: jvconnected.device.Device, fps: int = 30)[source]
Bases:
objectAcquire preview images sequentially from the device
This acts an Asynchronous Context Manager and an Asynchronous Iterator and should be used within an
async withblock. The individual image frames can then be retreived using anasync forloop:async with JpegSource(device) as src: async for image_bytes in src: process_image(image_bytes)
- device: jvconnected.device.Device
The device instance