@Gaudi1116

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

Raspberry PiとOpenCVでカメラを使って写真が取れない

Raspberry Pi 4とOpenCVで写真を撮ろうと思ったのですが、エラーが出ます。解決方法を教えて下さい。

発生している問題・エラー

[ WARN:0@0.185] global cap_v4l.cpp:913 open VIDEOIO(V4L2:/dev/video0): can't open camera by index
[ERROR:0@0.194] global obsensor_uvc_stream_channel.cpp:158 getStreamChannelGroup Camera index out of range

自分で試したこと

Googleで検索しましたが、見つからず。

0 likes

1Answer

↑ こちらのコードで「カメラ番号」をチェックして、見つけたインデックスを CAMERA_INDEX = xのように設定してみてください。

これで解決しないようであれば、実行したPythonコードの記載を質問欄に追加してください。

0Like

Your answer might help someone💌