CVBpy 15.0
cvb/StreamingSimple
1# CVBpy Example Script
2#
3# 1. Open the GenICam.vin driver.
4# 2. Acquire images.
5#
6# Requires: -
7
8import os
9import cvb
10
12 os.path.join(cvb.install_path(), "drivers", "CVMock.vin"),
13 cvb.AcquisitionStack.Vin) as device:
14
15 stream = device.stream()
16 stream.start()
17
18 for i in range(10):
19 image, status = stream.wait()
20 if status == cvb.WaitStatus.Ok:
21 print("Acquired image: " + str(i) + " | Timestamp: " + str(image.raw_timestamp))
22
23 stream.abort()
24
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:1629
str install_path()
Directory Common Vision Blox has been installed to.
Definition: __init__.py:8318