Text recognition app

now i`m trying to make camera app which can recognize text. For this I use the information from guides by google. This site describes how to make a full-screen reader. But i need to set Mobile Vision text scanner active in small rectangle(like in picture).Screenshot of barcode reader app(i need the same solution for text). Please help me).