19async def async_acquire(port):
22 stream = device.stream()
27 for i
in range(0, 100):
28 result = await stream.wait_async()
29 image, status = result.value
31 if status == cvb.WaitStatus.Ok:
32 print(
"Buffer index: " + str(image.buffer_index) +
" from stream: " + str(port))
41loop = asyncio.get_event_loop()
42loop.run_until_complete(asyncio.gather(
43 async_acquire(port=0)))
46duration = watch.time_span
48print(
"Acquired on port 0 with " + str(rate_counter.rate) +
" fps")
49print(
"Overall measurement time: " +str(duration / 1000) +
" seconds")
Union[cvb.GenICamDevice, cvb.VinDevice, cvb.EmuDevice, cvb.VideoDevice, cvb.NonStreamingDevice] open(str provider, int acquisition_stack=cvb.AcquisitionStack.PreferVin)
Opens a device with the given provider and acquisition stack.
Definition: __init__.py:1570
Frame rate measurement counter with selectable averaging window.
Definition: __init__.py:5030
Speed measurement object.
Definition: __init__.py:5637
str install_path()
Directory Common Vision Blox has been installed to.
Definition: __init__.py:8257