JeVoisBase
1.22
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
Tweet
Loading...
Searching...
No Matches
timer.py
Go to the documentation of this file.
1
import
cv2
as
cv
2
3
class
Timer
:
4
def
__init__
(self):
5
self.
_tm
= cv.TickMeter()
6
self.
_record
= []
7
8
def
start
(self):
9
self.
_tm
.
start
()
10
11
def
stop
(self):
12
self.
_tm
.
stop
()
13
self.
_record
.append(self.
_tm
.getTimeMilli())
14
self.
_tm
.
reset
()
15
16
def
reset
(self):
17
self.
_record
= []
18
19
def
getRecords
(self):
20
return
self.
_record
utils.timer.Timer
Definition
timer.py:3
utils.timer.Timer.reset
reset(self)
Definition
timer.py:16
utils.timer.Timer.getRecords
getRecords(self)
Definition
timer.py:19
utils.timer.Timer._tm
_tm
Definition
timer.py:5
utils.timer.Timer.stop
stop(self)
Definition
timer.py:11
utils.timer.Timer.__init__
__init__(self)
Definition
timer.py:4
utils.timer.Timer.start
start(self)
Definition
timer.py:8
utils.timer.Timer._record
_record
Definition
timer.py:6
opencv_zoo
benchmark
utils
timer.py
Please help us improve this page: Edit it on
GitHub
or
email us your edits and suggestions.
Generated by
1.9.8