Shortcuts

mmpose.apis.webcam.utils.limit_max_fps

mmpose.apis.webcam.utils.limit_max_fps(fps: float)[源代码]

A context manager to limit maximum frequence of entering the context.

参数

fps (float) – The maximum frequence of entering the context

Example::
>>> from mmpose.apis.webcam.utils import limit_max_fps
>>> import cv2
>>> while True:
...     with limit_max_fps(20):
...         cv2.imshow(img)  # display image at most 20 fps
Read the Docs v: latest
Versions
latest
1.x
v1.0.0rc0
v0.29.0
v0.28.0
v0.27.0
dev-1.x
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.