Table of Contents

cv2.flip()

Function Definition: cv2.flip(input_array, flip_code = 1)

Parameters

NameTypeDescriptionExpected ValuesDefault Value
input_arraystringInput arrayImage Array
flip_codeintA 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 -11

Description

The function flips a 2D array around vertical, horizontal, or both axes.

Example

There are no examples documented for this article.