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