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

Corrected camera index reading from config when multiple webcams #1886

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

muaddibus
Copy link

@muaddibus muaddibus commented Apr 30, 2024

Corrected camera index reading from config when multiple webcams
It was opening device index 0, regardless saved setting.

Fixed camera index reading from config
@Harvie
Copy link
Collaborator

Harvie commented Apr 30, 2024

Thanks for noticing this. What was the "prefix" variable used for originaly?

@muaddibus
Copy link
Author

Didnt found it to be used anywhere.

@Harvie
Copy link
Collaborator

Harvie commented Apr 30, 2024

Didnt found it to be used anywhere.

What?

image

@muaddibus
Copy link
Author

I misunderstood you. I ment i didnt fount self.idx variable used except for setting video capture device number, which is originally always set to zero, and doesnt take into account webcam param in config.

@StefanBruens
Copy link
Contributor

This is incorrect, prefix may be either "aligncam" or "webcam".

The current code works correctly, though the changed index in the config only applies after a restart.

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

Successfully merging this pull request may close these issues.

3 participants