How can I add an adjustable frame on my camera using Google Vision Text Detector?

Please help my to add this adjustable frame on my camera when detecting text. I’ve look all over and can’t seem to figure it out. Any help?
Here’s an example
https://i.stack.imgur.com/SZVYF.jpg