How can I use gapi to draw on an one channel image?

I would like to use gapi to render some texts and rectangles on a grayscale image, but I only found render function for BGR and YUV images. I think drawing on a grayscale image could be a very simple case that rendering API should have. Could you provide the function in the later release? Or is there any workaround now like defining my own kernel? Thank you!

Hey, if you want to draw colored rectangle/text you still need to have 3ch BGR image.
But in case you need to draw “gray” rectangle try to use cv::gapi::render3ch with 1ch image input as a work around.