How connect my GoPro Hero 4 camera live stream to openCV using Python?

后端 未结 2 458
醉梦人生
醉梦人生 2021-02-06 10:32

I \'m having troubles trying to capture a live stream from my new GoPro Hero 4 camera and do some image processing on it using openCV.

Here is my trial (nothing shows up

2条回答
  •  面向向阳花
    2021-02-06 10:58

    This is because you are not choosing a literal stream to capture video from. Your ip from the videocapture object must contain an extension on the end, whether it's .jpg or .mpeg (I'd prefer using this), or a few others listed in the documentation. If you use a literal video stream (such as the .mpeg instead of a picture), you should do cv.grab then cv.retrieve. this goes for all ip cameras. Hope this helped :)

提交回复
热议问题