Deployment
R2026bSince R2026b
The Visual Inspection Toolbox™ provides capabilities for deploying trained deep learning models to production environments and external inference frameworks.
Export models to ONNX — Export trained visual inspection models to the Open Neural Network Exchange (ONNX) format for integration with external inference frameworks. The Student-Teacher anomaly detector exports as an end-to-end model. The YOLOX object detector only exports the core detection network, with separate MATLAB® functions for preprocessing and postprocessing that handle resizing with a preserved aspect ratio, input formatting, threshold filtering, and non-maximum suppression. These functions support code generation for deploying complete detection systems on edge hardware.
Generate code — The toolbox supports deployment through CPU and GPU code generation. You can use MATLAB Coder™ to generate optimized C or C++ code for CPU-based deployment, or GPU Coder™ to generate CUDA® code for high-performance execution on NVIDIA® GPUs. These code generation tools enable you to package trained networks, along with preprocessing and postprocessing logic, into deployable libraries and executables. For more details, see MATLAB Coder (MATLAB Coder) and GPU Coder (GPU Coder).
Create standalone applications — You can use MATLAB Compiler™ to package visual inspection pipelines as standalone applications or deployable archives for sharing with end users who do not have MATLAB.
Deploy to field-programmable gate array (FPGA) — Deploy a YOLOX object detector to FPGA hardware for low-latency object detection.
These capabilities support a variety of deployment scenarios, including edge device inference, cloud-based prediction services, and integration with third-party frameworks, providing a pathway for validating deployment and ensuring that deployed models maintain the accuracy and behavior established during development. For more information, see Deploy Visual Inspection Code, Models, and Applications.
Functions
Topics
- Deploy Visual Inspection Code, Models, and Applications
Deploy visual inspection code, models, and applications to production environments using ONNX export, code generation, or standalone application packaging.






