| Algorithm 3: RANSAC Weight Bin Training | |
| 1: | Input: The top left and bottom right coordinates of the pre-defined rectangular area |
| 2: | Output: RANSAC model of the weight bin |
| 3: | Generate all possible keypoints based on the top left and bottom right coordinates of the pre-defined rectangular area |
| 4: | Calculate the mean absolute deviation of the possible keypoints |
| 5: | Generate the RANSAC linear regression model |