Problem Summary
I have the following image which has two QR codes always on the fixed position as shown below. It also has a predefined region of interest taken from the user as shown by the green rectangle in image 1. Now what I want to do is when I am presented with an image (image2) taken at a certain angle, I want to do perspective warping using the QR codes as a reference anchor, such that the reading in the dial fits inside the red boundding box. Examples of image is given below. The original image which is used to draw the user defined region of interest is also given below.