cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
test_harris_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 68 of file test_harris_numpi_video_threaded.py.

Constructor & Destructor Documentation

◆ __init__()

def test_harris_numpi_video_threaded.FPS.__init__ (   self)

Definition at line 69 of file test_harris_numpi_video_threaded.py.

69  def __init__(self):
70  # store the start time, end time, and total number of frames
71  # that were examined between the start and end intervals
72  self._start = None
73  self._end = None
74  self._numFrames = 0

Member Function Documentation

◆ elapsed()

def test_harris_numpi_video_threaded.FPS.elapsed (   self)

Definition at line 86 of file test_harris_numpi_video_threaded.py.

86  def elapsed(self):
87  # return the total number of seconds between the start and
88  # end interval
89  return (self._end - self._start).total_seconds()
Here is the caller graph for this function:

◆ fps()

def test_harris_numpi_video_threaded.FPS.fps (   self)

Definition at line 90 of file test_harris_numpi_video_threaded.py.

90  def fps(self):
91  # compute the (approximate) frames per second
92  return self._numFrames / self.elapsed()
93 
94 
95 
96 
Here is the call graph for this function:

◆ start()

def test_harris_numpi_video_threaded.FPS.start (   self)

Definition at line 75 of file test_harris_numpi_video_threaded.py.

75  def start(self):
76  # start the timer
77  self._start = datetime.datetime.now()
78  return self

◆ stop()

def test_harris_numpi_video_threaded.FPS.stop (   self)

Definition at line 79 of file test_harris_numpi_video_threaded.py.

79  def stop(self):
80  # stop the timer
81  self._end = datetime.datetime.now()

◆ update()

def test_harris_numpi_video_threaded.FPS.update (   self)

Definition at line 82 of file test_harris_numpi_video_threaded.py.

82  def update(self):
83  # increment the total number of frames examined during the
84  # start and end intervals
85  self._numFrames += 1

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