Skip to main content

Operations

Operations​

Operations()

Bases: object

Operations that can be performed on the fly on any retrieved images

Supported operations

flip​

flip(mode: Union[str, int, None] = None, code: Union[str, int, None] = None) -> Operations

Mirror the image or frames.

Parameters:

NameTypeDescriptionDefault
modestr

"horizontal" mirrors left to right, "vertical" top to bottom, and "both" along both axes.

None
codeint

Deprecated OpenCV flip code, as accepted by servers before 0.19.13: 0 is vertical, positive is horizontal, and negative is both.

None