AcquisitionStack::GenTL);
while(true)
{
std::tie(image, status, nodeMaps) = stream->Wait();
}
stream->Abort();
static std::vector< DiscoveryInformation > Discover()
static std::shared_ptr< T > Open(const String &provider, AcquisitionStack acquisitionStack=AcquisitionStack::PreferVin)
std::shared_ptr< Image > ImagePtr
{
{
while(true) {
using (var image = stream.Wait(out status))
{
}
}
stream.Abort();
}
}
static Device Open(DiscoveryInformation info, AcquisitionStack acquisitionStack=AcquisitionStack.PreferVin)
static DiscoveryInformationList Discover()
import cvb
stream.start()
while True:
image, status, node_maps = stream.wait()
stream.abort()
Union[cvb.GenICamDevice, cvb.VinDevice, cvb.EmuDevice, cvb.VideoDevice, cvb.NonStreamingDevice] open(str provider, int acquisition_stack=cvb.AcquisitionStack.PreferVin)
List[cvb.DiscoveryInformation] discover_from_root(int flags=cvb.DiscoverFlags.FindAll, int time_span=300)
Note: Error handling has been omitted from the above example.
- All devices are discovered across all interfaces and transport layers except for the legacy VIN transport layers.
- The first discovered device is opened using the GenTL acquisition stack and internally allocated buffers.
- A data stream is instantiated with index zero (default; when working with devices with more than one stream, the stream index could be passed as parameter).
- The stream acquisition is simplified to the combined start, which advises the driver to start the acquisition engine and stream control mechanism automatically. A user does not have to call these separate streaming components separately unless they want to. By default, infinite acquisition is started. After starting the stream, the stream engine and control are running in the background until the stream is stopped, sending a continuous flow of images or composites.
- Each image will need to be proactively waited for by means of a call to wait on the stream. The returned tuple consists of three components: the actual image, a status code and a nodemap enumerator.
- The abort operation immediately stops the ongoing stream.