cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
test_sobel_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 73 of file test_sobel_numpi_video_threaded.py.

Constructor & Destructor Documentation

◆ __init__()

def test_sobel_numpi_video_threaded.FPS.__init__ (   self)

Definition at line 74 of file test_sobel_numpi_video_threaded.py.

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

Member Function Documentation

◆ elapsed()

def test_sobel_numpi_video_threaded.FPS.elapsed (   self)

Definition at line 91 of file test_sobel_numpi_video_threaded.py.

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

◆ fps()

def test_sobel_numpi_video_threaded.FPS.fps (   self)

Definition at line 95 of file test_sobel_numpi_video_threaded.py.

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

◆ start()

def test_sobel_numpi_video_threaded.FPS.start (   self)

Definition at line 80 of file test_sobel_numpi_video_threaded.py.

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

◆ stop()

def test_sobel_numpi_video_threaded.FPS.stop (   self)

Definition at line 84 of file test_sobel_numpi_video_threaded.py.

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

◆ update()

def test_sobel_numpi_video_threaded.FPS.update (   self)

Definition at line 87 of file test_sobel_numpi_video_threaded.py.

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

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