Shortcuts

mmpose.apis.webcam.utils.is_image_file

mmpose.apis.webcam.utils.is_image_file(path: str)bool[源代码]

Check if a path is an image file by its extension.

参数

path (str) – The image path.

返回

Weather the path is an image file.

返回类型

bool