logo
shiyu22 3 years ago
parent
commit
1b0eda49d8
  1. 11
      README.md

11
README.md

@ -10,17 +10,17 @@ In computer vision (CV) directions, image transformations are usually an indispe
## Interface ## Interface
`Class TransformImage(Operator)` [source](./transform_image.py)
`Class TransformImage(Operator)` [\[source\]](./transform_image.py)
`__init__(self, size: int)` `__init__(self, size: int)`
**param:**
**params:**
- size(int): the image size to use.
- size(int): the size of the output image.
`__call__(self, img_tensor: Union[np.ndarray, Image.Image, torch.Tensor, str])` `__call__(self, img_tensor: Union[np.ndarray, Image.Image, torch.Tensor, str])`
**param:**
**params:**
Img_tensor(np.ndarray/Image.Image/torch.Tensor, str): original image data, the type can be np.ndarry, PIL.image, or str path of the image. Img_tensor(np.ndarray/Image.Image/torch.Tensor, str): original image data, the type can be np.ndarry, PIL.image, or str path of the image.
@ -36,11 +36,8 @@ You can get the required python package by [requirements.txt](./requirements.txt
- towhee - towhee
- torch - torch
- torchvision - torchvision
- numpy - numpy
- pillow - pillow
### How it works ### How it works

Loading…
Cancel
Save