# Flip Image

This function block flips an incoming image either vertically or horizontally. Use it whenever you need to correct mirrored camera feeds, prepare images for comparison, or change orientation before further processing.

## 📥 Inputs (sockets) <a href="#inputs" id="inputs"></a>

`Image Any` Accepts any image (color or grayscale) to be flipped.

## 📤 Outputs (sockets) <a href="#outputs" id="outputs"></a>

`Image Any` The flipped image output, same size and channels as the input.

## 🕹️ Controls <a href="#controls" id="controls"></a>

`Flip Type` Choose between `Flip Vertical` and `Flip Horizontal` to set the flip direction.

## 🎨 Features <a href="#features" id="features"></a>

* Fast, real-time flipping suitable for live camera feeds.
* Works with color and grayscale images and preserves image size.
* Minimal UI: a single selection to change behavior instantly.

## 📝 Usage Instructions <a href="#usage" id="usage"></a>

1. Connect an image-producing block to the `Image Any` input.
2. Select the desired option under `Flip Type` (`Flip Vertical` or `Flip Horizontal`).
3. Use the flipped image from the `Image Any` output for downstream blocks.

## 📊 Evaluation <a href="#evaluation" id="evaluation"></a>

When the block runs, it outputs the input image flipped according to the chosen `Flip Type`. The output updates immediately when the control is changed.

## 💡 Tips and Tricks <a href="#tips-and-tricks" id="tips-and-tricks"></a>

* If a camera preview looks mirrored, place this block right after your camera input (for example after `Camera USB` or `Camera IP`) to correct orientation before analysis.
* Preview results with `Show Image` to verify the flip visually.
* If you only need to flip a region, crop first using `Image ROI` or `Image ROI Select` then flip the cropped patch.
* Compare original and flipped images side-by-side using `Image Concatenate` or `Collage Images` to verify effects.
* For faster downstream processing, flip a resized image by pairing with `Image Resizer` before heavy analysis.
* If using detection or drawing blocks (for example `Object Detection`, `Draw Rectangle` or `Draw Detections`), remember that visual outputs will reflect the flipped image—recheck coordinates or overlays after flipping.

## 🛠️ Troubleshooting <a href="#troubleshooting" id="troubleshooting"></a>

* No change in output: ensure an image is connected to the `Image Any` input and that the correct `Flip Type` is selected.
* Unexpected overlays or misaligned rectangles after flipping: re-run any drawing or detection blocks used downstream to refresh visual annotations on the flipped image.
* If downstream processing seems slower, try flipping a smaller image using `Image Resizer` and then upscale or use the original resolution only when needed.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.augelab.com/function-blocks/blocks-reference/image-transformations/operations/flip-image.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
