'Rotated Rectangle in EMGUCV over contours

Can somebody help me out please. I want to draw a rotated rectangel over my contours. i have found an Opencv code for python, but I need it for c# Emgucv. Can somebody help me to understand the python code to rewrite it in c#. The picture below is the Python code and I dont know how wo write the following line in C' : box = np.int0[box]. Here is the link to the pyton code example : https://docs.opencv.org/4.x/dd/d49/tutorial_py_contour_features.html

THX V enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source