8#include <cvb/device_factory.hpp>
9#include <cvb/utilities/system_info.hpp>
10#include <cvb/driver/stream.hpp>
12int main(
int argc,
char* argv[])
18 auto path = Cvb::InstallPath();
19 path += CVB_LIT(
"drivers/GenICam.vin");
24 path =
Cvb::String(inputPath.begin(), inputPath.end());
27 path = Cvb::ExpandPath(path);
34 auto stream = device->Stream();
39 for (
int i = 0; i < 10; ++i)
47 std::cout <<
"Acquired image... " << std::fixed << waitResult.Image->RawTimestamp() << std::endl;
static std::shared_ptr< T > Open(const String &provider, AcquisitionStack acquisitionStack=AcquisitionStack::PreferVin)
Opens a device with the given provider with its default board and port (if applicable).
Definition: decl_device_factory.hpp:50
std::string String
String for wide characters or unicode characters.
Definition: string.hpp:45
@ Timeout
A timeout occurred, no image buffer has been returned.