How can I find minimum area rectangle in binary image?

I want bounding rotated rectangle that can returns center, angle, width, height, point[0], point[1], point[2], point[3] and contour area as attach picture. Thank you and Happy new year.


http://www.emgu.com/wiki/index.php/Minimum_Area_Rectangle_in_CSharp
https://docs.opencv.org/3.2.0/dd/d49/tutorial_py_contour_features.html
Capture.PNG