wangzhibo
2025-07-30 c706a69abfe9bae1322adbd344dfdaae37cdf564
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
from typing import Any
from insightface.app.common import Face
import numpy
 
Face = Face
Frame = numpy.ndarray[Any, Any]
'''
from typing import Any
import numpy
import numpy.typing as npt  # Import numpy.typing for NDArray
 
from insightface.app.common import Face
 
Face = Face
Frame = npt.NDArray[numpy.uint8]  # Specify the dtype, e.g., uint8 for image frames
'''