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

Error if /dev/video0 file not present #27

Open
rsjethani opened this issue Oct 15, 2019 · 2 comments
Open

Error if /dev/video0 file not present #27

rsjethani opened this issue Oct 15, 2019 · 2 comments

Comments

@rsjethani
Copy link
Contributor

If /dev/vide0 device is not present the we get error: no such file or directory. On some systems the webcam may be present as /dev/video1 etc.

@blackjack
Copy link
Owner

Hi! Are you talking about the example program? Yeah, path to webcam is currently hardcoded, so if your webcam device path differs you need to adjust your source code.

@rsjethani
Copy link
Contributor Author

@blackjack sure the webcam consumer can find out how the webcam is represented on his system and then call Open() accordingly but this will make the consumer's package less portable.

In Pr #28 I am proposing a way where the consumer can safely assume that the package will try to locate webcam automatically hence no hard coding will be required.

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

2 participants