Rectangle in camera

Hello, sorry if you do not understand, I’m using the google translator to ask the question.
I want to make a rectangle, like the one of the reader of the bar code, but in the normal camera. I am using the cordova plugin to take the photo and I would like a rectangle to be drawn in the middle of the camera. Does anyone know if this is possible?
Thank you.