Files
douyin_guaji-main/typings/cv2.pyi
T
Your Name efe6e2252f feat: Add logging and error handling enhancements
- Introduced new logging modules for action tracking, error logging, and performance tracking to improve observability.
- Added functions for retrieving debug and error log paths in `path_config.py`.
- Updated various components to utilize the new logging system, enhancing error handling and performance diagnostics.
- Implemented a GUI component for viewing error logs, improving user experience in monitoring application issues.
- Cleaned up unnecessary blank lines and improved code readability across multiple files.
2025-12-29 20:48:09 +08:00

31 lines
1.0 KiB
Python

"""
OpenCV (cv2) 类型存根文件
用于解决 Pylance 无法识别 cv2 模块成员的问题
"""
from typing import Any, Tuple
# 常量
IMREAD_COLOR: int
IMREAD_GRAYSCALE: int
COLOR_RGB2BGR: int
COLOR_BGR2RGB: int
COLOR_BGR2GRAY: int
TM_CCOEFF_NORMED: int
TM_CCORR_NORMED: int
TM_SQDIFF_NORMED: int
# 函数
def imread(filename: str, flags: int = ...) -> Any: ...
def cvtColor(src: Any, code: int, dst: Any = ..., dstCn: int = ...) -> Any: ...
def resize(src: Any, dsize: Tuple[int, int], dst: Any = ..., fx: float = ..., fy: float = ..., interpolation: int = ...) -> Any: ...
def matchTemplate(image: Any, templ: Any, method: int, result: Any = ..., mask: Any = ...) -> Any: ...
def minMaxLoc(src: Any, mask: Any = ...) -> Tuple[float, float, Tuple[int, int], Tuple[int, int]]: ...
def imwrite(filename: str, img: Any, params: Any = ...) -> bool: ...
def setLogLevel(level: int) -> None: ...
class utils:
class logging:
LOG_LEVEL_SILENT: int
def setLogLevel(level: int) -> None: ...
def equalizeHist(src: Any, dst: Any = ...) -> Any: ...