1 | initial version |
You can find the min and max in x and y of rectangle vertices. Then draw the mother rectangle!:)
The good method is to leverage from groupRectangle and as much as I know it is from objdetect. You have some problems in linking and adding you header files, But I can tell the exact answer since I should see you code.