ImGui - choose device

Heyhey,

I want to make an executable. OpenCV is implemented and I want to give the user the Option to choose/change the camera in StrideWindow (ImGui). I think the ComboWidget is the way to do this but I can’t tap the input (CameraInputDevice). May I have to enumerate the devices?

Like this:

Add:

sebescudie made this patch for me!

Think it works fine with VL.Video
ComboAndDynamicEnum.vl (18.9 KB)

To use it with VL.OpenCV I have to copy the Patchstructure with its own nodes I think.

1 Like

There are some tools in gamma to do this, but its not very obvious. I am actually doing something very similar to enumerate Video, Audio and Midi Devices for our application.

enumerate-select-videodevice.vl (10.9 KB)

2 Likes