From 693eef964a0676e7daf1b28fc546b523d030744b Mon Sep 17 00:00:00 2001 From: Tim Welch Date: Sun, 9 Dec 2018 12:12:50 -0500 Subject: [PATCH] Initial ffmpeg support Cleaned up unused imports and hard coded width/height values. --- src/ffmpeg_reader.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/ffmpeg_reader.py b/src/ffmpeg_reader.py index 679bc41..2b415bc 100755 --- a/src/ffmpeg_reader.py +++ b/src/ffmpeg_reader.py @@ -5,12 +5,6 @@ from cv2 import CAP_PROP_FRAME_HEIGHT from cv2 import CAP_PROP_FOURCC import sys -import json -#import subprocess -#from ._run import Error -from subprocess import Popen, PIPE - - class ffmpeg_reader: """ This class was created to look as similar to the openCV features used in Howdy as possible for overall code cleanliness. """ @@ -84,8 +78,6 @@ class ffmpeg_reader: # and then take numframes of video to fill the buffer for faster recognition. if self.init_camera: self.init_camera = False - self.set(CAP_PROP_FRAME_HEIGHT, 352) - self.set(CAP_PROP_FRAME_WIDTH, 352) self.video = () self.record(self.numframes) return 0, self.video