Simulink 的 OpenCV 接口
将 OpenCV 代码导入 Simulink® 中
Computer Vision Toolbox™ Interface for OpenCV in Simulink 支持您将 OpenCV 代码导入 Simulink 中。此支持包需要 Computer Vision Toolbox 和 Simulink Coder™。
您还可以从 Simulink 模型中生成 C++ 代码并将其部署到您的目标硬件中。
您可以使用 OpenCV 导入器将 OpenCV 代码导入 Simulink 模型中。有关详细信息,请参阅Install and Use Computer Vision Toolbox Interface for OpenCV in Simulink。
模块
FromOpenCV | Converts OpenCV data types to Simulink data types |
ToOpenCV | Converts Simulink data types to OpenCV data types |
Image To Matrix | Converts Simulink image data to matrix data (自 R2021b 起) |
Matrix To Image | Converts matrix data to Simulink image data (自 R2021b 起) |
主题
- Install and Use Computer Vision Toolbox Interface for OpenCV in Simulink
Import OpenCV code into Simulink.
- Convert Between Simulink Image Type and Matrices
Integrate Simulink.ImageType data in model with blocks that operate on matrix only.