mp.tasks.vision.drawing_styles.face_landmarker.mediapipe_c_utils.CFunction

Stores the ctypes signature information for a C function.

func_name The name of the C function.
argtypes The ctypes types for the function arguments.
restype The ctypes type for the function's return value.

Methods

create_python_wrapper

View source

Creates a callable wrapper that executes the C function on the executor.

Args
lib The ctypes shared library.
executor The executor to use for the C function.

Returns
A callable that executes the C function on the executor.

__eq__