14mock_info = next((info
for info
in discover
if "CVMock.vin" in info.access_token),
None)
16 raise RuntimeError(
"unable to find CVMock.vin")
20 mock_info.access_token, cvb.AcquisitionStack.Vin)
as device:
22 stream = device.stream()
26 image, status = stream.wait()
27 if status == cvb.WaitStatus.Ok:
28 print(
"Acquired image: " + str(i))
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
List[cvb.DiscoveryInformation] discover_from_root(int flags=cvb.DiscoverFlags.FindAll, int time_span=300)
Discovers available devices / nodes depending on the given flags.
Definition: __init__.py:1550