Image AutoRotator

This function block automatically rotates images based on their content orientation. It analyzes the image and determines the appropriate angle to achieve a corrected orientation.

📥 Inputs

Image Any This input accepts any image data that needs to be auto-rotated based on its content.

📤 Outputs

Image Any The output provides the auto-rotated version of the input image.

🕹️ Controls

This function block does not have specific controls. However, it runs automatically upon receiving an image input.

🎨 Features

Centroid Calculation Automatically calculates the center of mass of the image to determine how it should be oriented.

Angle Determination Computes the angle by which the image needs to be rotated to achieve the desired upright position.

Automatic Processing The rotation process is performed automatically when an image is supplied, requiring no additional user input.

📝 Usage Instructions

  1. Connect Image Source: Link any function block that produces image data to the input.

  2. Run the Block: Execute the block to receive an auto-rotated version of the image based on its content orientation.

📊 Evaluation

When executed, this function block analyzes the input image and outputs the auto-rotated version, improving its orientation.

💡 Tips and Tricks

Multiple Images

If the task involves rotating multiple images, connect a Batch Processing block to handle them efficiently through this AutoRotator.

Preprocessing Images

For better results, consider using image preprocessing techniques like Blur to remove any noise before auto-rotation. This can help in accurate centroid and angle calculation.

🛠️ Troubleshooting

Image Not Rotating Properly

If the rotation does not seem accurate, ensure that the input image is of good quality and has clear features for analysis. Check for sufficient contrast between the foreground and background.

Last updated