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

[BUG] Can't open camera by index #85

Open
brilam opened this issue Oct 7, 2021 · 6 comments
Open

[BUG] Can't open camera by index #85

brilam opened this issue Oct 7, 2021 · 6 comments

Comments

@brilam
Copy link
Contributor

brilam commented Oct 7, 2021

Describe the bug
I've tried following the instructions for installing. Here is what I did:

image

After doing this, I run SkunkBooth and I get this:

image

It seems like the issue is stemming from OpenCV. I've tried adjusting the camera index, but that doesn't seem to do the trick. I am using an external USB webcam.

I've also tried installing the dependencies using pip and running SkunkBooth. The same thing occurs.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Follow the instructions listed in Contributing.

Expected behavior
SkunkBooth should be running.

Screenshots
See above.

Desktop (please complete the following information):

  • OS: Windows 10
  • Version: 19042.1237

Additional context
N/A

@Davidy22
Copy link
Owner

Davidy22 commented Oct 7, 2021

At the core, I believe this is a duplicate of #84, to do with how we just grab the camera at id 0 and don't do detection yet. Once that gets dealt with this should be cleared up as well

@brilam
Copy link
Contributor Author

brilam commented Oct 7, 2021

I have my suspicions that this is the case as well. I will look into it and if I can resolve it, I will send in a PR. Thanks.

@brilam
Copy link
Contributor Author

brilam commented Oct 8, 2021

At the core, I believe this is a duplicate of #84, to do with how we just grab the camera at id 0 and don't do detection yet. Once that gets dealt with this should be cleared up as well

Update: I discovered something interesting here. In my screenshot above, I used WSL for running this, and got the error above. However, running this in cmd seems to be working fine. Looking into this deeper, I've discovered something about WSL. Looking at Can I access the GPU in WSL 2? Are there plans to increase hardware support?, it seems that WSL doesn't have USB device support.

@Davidy22
Copy link
Owner

Davidy22 commented Oct 8, 2021

Hrm, well we're probably not going to be able to jury rig USB support via WSL from python, this is probably a wait for upstream issue. For now we can put a warning somewhere in docs that this is an issue I guess.

@Trisanu-007
Copy link
Collaborator

actually yeah WSL is the one place we didn't test. But wasn't it displayed during the livestream using WSL?

@Davidy22
Copy link
Owner

The issue is specifically the interaction between WSL and USB devices, integrated cameras are fine.

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

3 participants