Here are some ways you can use Margin Settings to control the placement of your object:
Center the object with minimum margins around it. To place the detected object vertically or horizontally center with minimum margins around it, adjust the margin settings accordingly. This will ensure that the object is centered in the new image with a specified minimum margin around it. You can set these margins using either percentage (%) or pixel (px) values.
Add vertical top or bottom margins to the object. If you want to place the detected object at a specific distance from the top or bottom of the output image, you can use the vertical margin settings. For example, adding a vertical bottom margin of 30% or 300px will ensure that the object is always positioned 30% or 300 pixels from the bottom of the output image, respectively.
Add horizontal left or right margins to the object. If you want to place the detected object at a specific distance from the left or right side of the output image, you can use the horizontal margin settings. You can specify these margins in either percentages or pixels, such as 20% or 150px.