#25113·opencv

Python API: Support MemoryView objects

Author: cassianokcCreated Feb 27, 2024Updated Sep 16, 2026
Labelsfeaturecategory: python bindings

Describe the feature and motivation

Currently Python OpenCV uses np.ndarray objects as inputs when cv::Mats are expected, in order to use memoryview directly on Python one needs to cast it to a np.ndarray then use it. Allowing usage of memoryview objects will allow seamless integration with Cython.

Additional context

No response