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

cant access virtual camera #62

Open
RodnoiD1m0n opened this issue Jun 26, 2023 · 1 comment
Open

cant access virtual camera #62

RodnoiD1m0n opened this issue Jun 26, 2023 · 1 comment

Comments

@RodnoiD1m0n
Copy link

RodnoiD1m0n commented Jun 26, 2023

im trying to access Vtube Studio's virtual camera(for personal use) using cv2.VideoCapture(1) but i get:

[ERROR:[email protected]] global obsensor_uvc_stream_channel.cpp:156 cv::obsensor::getStreamChannelGroup Camera index out of range

i tried with different cameras(my own builtin(index 0) and obs's virtual(index 2)) they work just fine, but this one returns error. i read Vtube Studio's licence agreement in case it was forbidden by Vtube Studio or something and found nothing related to it. also i can access it from obs.

im on windows 10, python3.10.11, cv2 version 4.8.0(got via print(cv2.__version__))

@RodnoiD1m0n
Copy link
Author

I think one possible reason could be due to color space/format used by Vtube Studio's virtual camera. from what I know cv2 can't capture NV12 format. I can't say for sure since i don't know what color space/format uses Vtube Studio in it's virtual camera

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