Calculate moving average of 3x3 homography matrices

Job ID: 32693923

Budget: $30 – $250 USD

The total number of 3x3 homography matrices is around 160K.
Each homography matrix projects the image from camera- (cam_view_1.jpg) to top-view (top_view_1.jpg).

Note that the reference-points (red-dots) may vary from one image to another and hence the scale of the matrix may change.

The homography matrix for cam_view_1 -> top_view_1 is:
-156399.0362570212, -812316.5807606786, 143090519.29495946
24449.701467687442, -982407.3062078588, 147784018.8125531
-11.330804255111957, -736.1835040833266, 28634.49043049858

The homography matrix for cam_view2 -> top_view_2 is:
-0.4057195728473708, -2.3341038499333258, 416.54208240668316
0.06659081277911126, -2.8283531710681795, 427.1502617756748
-3.2471167623300936e-05, -0.002160010952378696, 0.12255084544102246

Both matrices project on the same space (slight change in camera-rotation) but note that the scale is vastly different.

Task: Define a python script that calculates a moving average of homography-matrices taking the difference of scale into account.