// Ġ" input " Ġis Ġa ĠFile Ġobject Ġpointing Ġto Ġan Ġimage Ġfile . Ċ Ċ val Ġbytes Ġ= ĠByte String . copyFrom ( input . read Bytes ()) Ċ Ċ val Ġimage Ġ= ĠImage . newBuilder () ĊĠĠĠ Ġ. setContent ( bytes ) ĊĠĠĠ Ġ. build () Ċ val Ġfeature Ġ= ĠFeature . newBuilder () ĊĠĠĠ Ġ. setType ( Feature . Type . TEXT _ DE TE CTION ) ĊĠĠĠ Ġ. build () Ċ val Ġrequest Ġ= ĠAnnot ate Image Request . newBuilder () ĊĠĠĠ Ġ. add Features ( feature ) ĊĠĠĠ Ġ. setImage ( image ) ĊĠĠĠ Ġ. build () Ċ Ċ val Ġrequests Ġ= ĠlistOf ( request ) Ċ Ċ val Ġclient Ġ= ĠImage Annot ator Client . create () Ċ Ċ val Ġresponse Ġ= Ġclient . batch Annot ate Images ( requests ) Ċ val Ġresponses Ġ= Ġresponse . responses List . single () Ċ Ċ val Ġtext Annotations List Ġ= Ġresponses . text Annotations List Ċ val Ġfull Text Annotation Ġ= Ġresponses . full Text Annotation Ċ