Design public APIs to work seamlessly across different programming languages and platforms. Follow these key principles: 1. Use platform-agnostic types in public interfaces:
Design public APIs to work seamlessly across different programming languages and platforms. Follow these key principles:
int
over size_t
for array sizes and indicesclass CV_EXPORTS_W MyClass {
public:
CV_WRAP void process(int size); // Not size_t
CV_WRAP_AS(processBytes) Mat process(InputArray data); // Alias for clarity
};
Following these guidelines ensures your API works reliably across Python, Java, and C++ while maintaining long-term stability.
Enter the URL of a public GitHub repository