# Add postprocessing support for custom model This section guides you in adding model postprocessing support in a Qualcomm IM SDK plugin, particularly in cases where the current Qualcomm IM SDK plugin does not support postprocessing for the model. This example explains the steps to add custom model postprocessing to the `qtimlvdetection` plugin. Prerequisites `qtimlvconverter` must support preprocessing for the model. ## Example: Adding YoloV8 module support to qtimlvdetection 1. Write a new module in the `qtimlvdetection` plugin to enable postprocessing support. See the following example code as a reference: [gst-plugin-mlvdetection/modules/ml-vdetection-yolov8.c imsdk.lnx.2.0.0.r2-rel · CodeLinaro / le / platform / vendor / qcom-opensource / gst-plugins-qti-oss GitLab](https://git.codelinaro.org/clo/le/platform/vendor/qcom-opensource/gst-plugins-qti-oss/-/blob/imsdk.lnx.2.0.0.r2-rel/gst-plugin-mlvdetection/modules/ml-vdetection-yolov8.c). 2. Write a new file for your custom model. In the model postprocessing module, the `gst_ml_module_process` function is responsible for executing all postprocessing operations. Recompile the plugin, using the instructions provided in [Compile and install Qualcomm IM SDK plugins](https://docs.qualcomm.com/doc/80-70017-15B/topic/compile-install-imsdk-plugins.html). 3. Add your new files in `Cmakelists.txt`. See the following example as a reference: [gst-plugin-mlvdetection/modules/CMakeLists.txt · imsdk.lnx.2.0.0.r2-rel · CodeLinaro / le / platform / vendor / qcom-opensource / gst-plugins-qti-oss GitLab](https://git.codelinaro.org/clo/le/platform/vendor/qcom-opensource/gst-plugins-qti-oss/-/blob/imsdk.lnx.2.0.0.r2-rel/gst-plugin-mlvdetection/modules/CMakeLists.txt) 4. Recompile the reference application and run it. See [Compile application: Qualcomm IM SDK](https://docs.qualcomm.com/doc/80-70017-15B/topic/compile-application-qualcomm-im-sdk.html) for instructions on how to compile reference applications with the eSDK. Last Published: Jan 21, 2026 [Previous Topic Obtain model constants](https://docs.qualcomm.com/bundle/publicresource/80-70017-15B/topics/integrate-ai-hub-models.md) [Next Topic Implement new use case](https://docs.qualcomm.com/bundle/publicresource/80-70017-15B/topics/implement-new-use-case.md)