Compose preprocessing operators for obtaining prepocessed data. The shape of input image for all operations is [H, W, C], where H is the image height, W is the image width, and C is the number of image channels.
**Args**
* transforms(callmethod) : The method of preprocess images.
* to_rgb(bool): Whether to transform the input from BGR mode to RGB mode, default is False.
# Class `hub.vision.transforms.RandomHorizontalFlip`
@@ -23,7 +23,14 @@ import paddlehub.vision.functional as F
classCompose:
def__init__(self,transforms,to_rgb=False):
"""
Compose preprocessing operators for obtaining prepocessed data. The shape of input image for all operations is [H, W, C], where H is the image height, W is the image width, and C is the number of image channels.
Args:
transforms(callmethod) : The method of preprocess images.
to_rgb(bool): Whether to transform the input from BGR mode to RGB mode, default is False.