The function flips a 2D array around vertical, horizontal, or both axes.
Table of Contents
cv2.flip()
Function Definition: cv2.flip(input_array, flip_code = 1)
- Python Library: Open CV
- Library Import: import cv2
- Mode: Stage Mode
Parameters
Name | Type | Description | Expected Values | Default Value |
---|---|---|---|---|
input_array | string | Input array | Image Array | |
flip_code | int | A flag to specify how to flip the array; 0 means flipping around the x-axis and positive value (for example, 1) means flipping around y-axis. Negative value (for example, -1) means flipping around both axes. | 0, 1 or -1 | 1 |
Description
Example
There are no examples documented for this article.