Esempio n. 1
0
 def __init__(self, camera_port=0, parent=None):
     super(RecordVideo, self).__init__()
     self.camera = dc.cam()
     self.timer = QtCore.QBasicTimer()
Esempio n. 2
0
def video_feed():
    """Video streaming route. Put this in the src attribute of an img tag."""
    return Response(gen(cam()),
                    mimetype='multipart/x-mixed-replace; boundary=frame')
Esempio n. 3
0
import cv2
import numpy as np
import time
import mmap
import struct
import sys, random
import ctypes
import droneCamera as dc

cam = dc.cam()

for x in range(0,10):
  frame = cam.getFrame(1)
  cv2.imshow("frame", frame)
  cv2.waitKey(1)