目录
Timer
用法
效果
TimerFps
用法
效果
以下工具类代码来自开源项目pyslam。
Timer
代码语言:javascript复制import cv2
class Colors(object):
'''
Colors class:reset all colors with colors.reset; two
sub classes fg for foreground
and bg for background; use as colors.subclass.colorname.
i.e. colors.fg.red or colors.bg.greenalso, the generic bold, disable,
underline, reverse, strike through,
and invisible work with the main class i.e. colors.bold
'''
reset='