Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select device based on serialNr with Media Foundation under Windows #57

Open
sayezz opened this issue Nov 29, 2021 · 0 comments
Open

Select device based on serialNr with Media Foundation under Windows #57

sayezz opened this issue Nov 29, 2021 · 0 comments

Comments

@sayezz
Copy link

sayezz commented Nov 29, 2021

Hi,
can somebody explain/show me how to select the camera based on the serial number (lets assume I have two Lepton cams connected to the computer) with Windows Media Foundation?

In the current implementation first the device gets selected based on the device path (which is partly identical for all Lepton cams). Retrieving the device information (like serial number) happens only later.

	if (!SelectDevice()) // here the camera gets selected
	{
		return;
	}
	if (!InitializeDevice())
	{
		return;
	}
	if (!InitializeXuGuidToNodeMap()) // here I can retrieve the serial number
	{
		return;
	}

Do I need first to open all cameras, comparing the serial number to the one I want to use and then close all the other cameras again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant