How can I run a computer vision code and have the detection seen in QGround Control?

hello
I am trying to run a computer vision code in python, I already have the connection established between the raspberry pixhawk with QGround Control and I can view the camera, my question is if I could run a computer vision code on the raspberry and the detection can also be viewed in the QGround COntrol video window. Someone who can help me please?