Overlaying Text in GPU Memory

Hi ,
I need to overlay text in input image, but thing is that i’m able to do this operation in CPU memory using cv::putText but i’m not getting any for GPU . Anyone know who can i do that using GPU memory.

you could draw the text CPU-side into an extra Mat, upload that to GPU, and compose that onto the existing image on the GPU