diff --git a/imutils/video/fps.py b/imutils/video/fps.py index cad5b89..0680873 100644 --- a/imutils/video/fps.py +++ b/imutils/video/fps.py @@ -30,4 +30,7 @@ def elapsed(self): def fps(self): # compute the (approximate) frames per second - return self._numFrames / self.elapsed() \ No newline at end of file + return self._numFrames / self.elapsed() + + def num_frames(self): + return self._numFrames