Camera API
std::optional<auterion::Camera> camera = auterion::Camera::openFirst(sdk);
if (camera) {
printf("Got camera: %s, model=%s\n", camera->descriptor().unique_name.c_str(),
camera->descriptor().camera_model.c_str());
camera->subscribeImage([](const auterion::Image& image) {
// The image data is available as image.data(),
// encoded as image.header().encoding
printf("Got image: size=%dx%d\n", image.width(), image.height());
});
} else {
printf("Timeout, no camera found\n");
}
std::optional<auterion::Camera> camera = auterion::Camera::open(
sdk,
[](const auterion::CameraDescriptor& descriptor) {
// The camera will be selected for the first descriptor that returns true here
return descriptor.primary_purpose ==
auterion::CameraDescriptor::PrimaryPurpose::Survey;
});
if (camera) {
// ...
}Image Data
CameraMonitor
Last updated