I use Calib3d.findHomography with RANSAC to get four points of the detected area and I can draw the bounding box. Here is the question: given these four points, how can I calculate the size of the area? Any functions and code to use? Thanks a lot!
1 | initial version |
I use Calib3d.findHomography with RANSAC to get four points of the detected area and I can draw the bounding box. Here is the question: given these four points, how can I calculate the size of the area? Any functions and code to use? Thanks a lot!