S
sepu1235
Guest
Hi everyone!
I would like to know how to simultaneously use Color and Infrared cameras in c++ winrt. Currently i using following code to get MediaCapture of one camera:
auto groups = co_await MediaFrameSourceGroup::FindAllAsync();
MediaFrameSourceGroup group = nullptr;
for (const auto& g : groups)
if (g.DisplayName() == "CameraName")
group = g;
MediaCapture mediaCapture;
MediaCaptureInitializationSettings mediaCaptureInitializationSettings;
mediaCaptureInitializationSettings.SourceGroup(group);
mediaCaptureInitializationSettings.SharingMode(MediaCaptureSharingMode::SharedReadOnly);
mediaCaptureInitializationSettings.StreamingCaptureMode(StreamingCaptureMode::Video);
mediaCaptureInitializationSettings.MemoryPreference(MediaCaptureMemoryPreference::Cpu);
co_await mediaCapture.InitializeAsync(settings);
According to this:
Capture from multiple sources using MediaFrameSourceGroup - UWP app developer
it is possible in C# UWP
Continue reading...
I would like to know how to simultaneously use Color and Infrared cameras in c++ winrt. Currently i using following code to get MediaCapture of one camera:
auto groups = co_await MediaFrameSourceGroup::FindAllAsync();
MediaFrameSourceGroup group = nullptr;
for (const auto& g : groups)
if (g.DisplayName() == "CameraName")
group = g;
MediaCapture mediaCapture;
MediaCaptureInitializationSettings mediaCaptureInitializationSettings;
mediaCaptureInitializationSettings.SourceGroup(group);
mediaCaptureInitializationSettings.SharingMode(MediaCaptureSharingMode::SharedReadOnly);
mediaCaptureInitializationSettings.StreamingCaptureMode(StreamingCaptureMode::Video);
mediaCaptureInitializationSettings.MemoryPreference(MediaCaptureMemoryPreference::Cpu);
co_await mediaCapture.InitializeAsync(settings);
According to this:
Capture from multiple sources using MediaFrameSourceGroup - UWP app developer
it is possible in C# UWP
Continue reading...