cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
test_median_blur_numpi_video_threaded.FPS Class Reference

Public Member Functions

def __init__ (self)
 
def start (self)
 
def stop (self)
 
def update (self)
 
def elapsed (self)
 
def fps (self)
 

Detailed Description

Definition at line 74 of file test_median_blur_numpi_video_threaded.py.

Constructor & Destructor Documentation

◆ __init__()

def test_median_blur_numpi_video_threaded.FPS.__init__ (   self)

Definition at line 75 of file test_median_blur_numpi_video_threaded.py.

75  def __init__(self):
76  # store the start time, end time, and total number of frames
77  # that were examined between the start and end intervals
78  self._start = None
79  self._end = None
80  self._numFrames = 0

Member Function Documentation

◆ elapsed()

def test_median_blur_numpi_video_threaded.FPS.elapsed (   self)

Definition at line 92 of file test_median_blur_numpi_video_threaded.py.

92  def elapsed(self):
93  # return the total number of seconds between the start and
94  # end interval
95  return (self._end - self._start).total_seconds()
Here is the caller graph for this function:

◆ fps()

def test_median_blur_numpi_video_threaded.FPS.fps (   self)

Definition at line 96 of file test_median_blur_numpi_video_threaded.py.

96  def fps(self):
97  # compute the (approximate) frames per second
98  return self._numFrames / self.elapsed()
99 
100 
101 
102 
Here is the call graph for this function:

◆ start()

def test_median_blur_numpi_video_threaded.FPS.start (   self)

Definition at line 81 of file test_median_blur_numpi_video_threaded.py.

81  def start(self):
82  # start the timer
83  self._start = datetime.datetime.now()
84  return self

◆ stop()

def test_median_blur_numpi_video_threaded.FPS.stop (   self)

Definition at line 85 of file test_median_blur_numpi_video_threaded.py.

85  def stop(self):
86  # stop the timer
87  self._end = datetime.datetime.now()

◆ update()

def test_median_blur_numpi_video_threaded.FPS.update (   self)

Definition at line 88 of file test_median_blur_numpi_video_threaded.py.

88  def update(self):
89  # increment the total number of frames examined during the
90  # start and end intervals
91  self._numFrames += 1

The documentation for this class was generated from the following file: