I cannot operate the camera on your device's camera Cospace, but I develop on Codespace #122069
Unanswered
20abdullahib
asked this question in
Codespaces
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
I cannot operate the camera on your device's camera Cospace, but I develop on Codespace
i try to run this code put i cant
are there solution to this problem
import cv2
def main():
# Open the default camera (index 0)
cap = cv2.VideoCapture(0)
if name == "main":
main()
appear to me
[ WARN:0@0.170] global cap_v4l.cpp:997 open VIDEOIO(V4L2:/dev/video0): can't open camera by index
[ERROR:0@0.170] global obsensor_uvc_stream_channel.cpp:159 getStreamChannelGroup Camera index out of range
Error: Unable to access the camera
Beta Was this translation helpful? Give feedback.
All reactions