Added some mssing type constants to python type stubs generator.

This commit is contained in:
Alexander Smorkalov 2024-11-28 09:42:22 +03:00
parent 85a844e9c2
commit d0ccd85a02

View File

@ -55,8 +55,8 @@ def apply_manual_api_refinement(root: NamespaceNode) -> None:
def export_matrix_type_constants(root: NamespaceNode) -> None:
MAX_PREDEFINED_CHANNELS = 4
depth_names = ("CV_8U", "CV_8S", "CV_16U", "CV_16S", "CV_32S",
"CV_32F", "CV_64F", "CV_16F", "CV_Bool")
depth_names = ("CV_8U", "CV_8S", "CV_16U", "CV_16S", "CV_32U", "CV_32S",
"CV_64U", "CV_64S", "CV_32F", "CV_64F", "CV_16F", "CV_16BF" "CV_Bool")
for depth_value, depth_name in enumerate(depth_names):
# Export depth constants
root.add_constant(depth_name, str(depth_value))