Skip to content
This repository was archived by the owner on Mar 2, 2025. It is now read-only.

Commit 05ea6a4

Browse files
committed
Fusion improvements
1 parent 31c1da5 commit 05ea6a4

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

examples/opencv_gopro/frame.jpg

70.4 KB
Loading
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import cv2
2+
import numpy as np
3+
from goprocam import GoProCamera
4+
from goprocam import constants
5+
vidcap = cv2.VideoCapture("udp://10.5.5.9:8554")
6+
success,image = vidcap.read()
7+
success = True
8+
while success:
9+
cv2.imwrite("frame.jpg", image) # save frame as JPEG file
10+
success,image = vidcap.read()
11+
print('Read a new frame: ', success)

0 commit comments

Comments
 (0)