Skip to content

Aoderus/OpenCV_CameraList_MSMF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenCV_CameraList_MSMF

A simple function to get a list of cameras with a friendly name, id, and path. To use opencv (cv::CAP_MSMF)

The ID can be used to initialize the camera you want

Short example:

msmf::DeviceEnumerator de;
std::map<int, msmf::Device> devices;
devices = de.getVideoDevicesMap();

for (auto const& device : devices) {
int Id = device.first;
std::string Name = device.second.deviceName
std::string Path = device.second.devicePath;
}

My version of the code is a modification of the code for DShow: https://github.com/studiosi/OpenCVDeviceEnumerator

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages