Skip to content

Conversation

@rsjethani
Copy link
Contributor

@rsjethani rsjethani commented Oct 15, 2019

Add FindAndOpen() func

This function will lookup suitable webcam device and open it. IMO this is better than hardcoding /dev/video0.

Addresses: Issue #27

This function will lookup suitable webcam device
and open it. IMO this is better than hardcoding `/dev/video0`.
@rsjethani rsjethani force-pushed the add_FindAndOpen_func branch from d1acfaa to 204ec01 Compare November 23, 2019 19:03
@blackjack
Copy link
Owner

Sorry for delayed response. I was a bit in disbelief on how to actually find if device is v4l2 device or not. Apparently there way is indeed to iterate over all "/dev/video*" devices. I'll gladly do a review of this PR then.
Thanks for the effort!

@rsjethani
Copy link
Contributor Author

@blackjack so you are saying that I should iterate only over video* devices?

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.

2 participants