Operations
Operations
Operations()
Bases: object
Operations that can be performed on the fly on any retrieved images
flip
flip(mode: Union[str, int, None] = None, code: Union[str, int, None] = None) -> Operations
Mirror the image or frames.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mode | str | "horizontal" mirrors left to right, "vertical" top to bottom, and "both" along both axes. | None |
code | int | Deprecated OpenCV flip code, as accepted by servers before 0.19.13: 0 is vertical, positive is horizontal, and negative is both. | None |