logo
Browse Source

Updata README

main
Kaiyuan Hu 3 years ago
parent
commit
b781709510
  1. 11
      README.md

11
README.md

@ -11,17 +11,17 @@ In computer vision (CV) directions, image transformations are usually an indispe
## Interface
`Class TransformImage(Operator)` [source](./transform_image.py)
`Class TransformImage(Operator)` [\[source\]](./transform_image.py)
`__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])`
**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.
@ -37,11 +37,8 @@ You can get the required python package by [requirements.txt](./requirements.txt
- towhee
- torch
- torchvision
- numpy
- pillow
### How it works

Loading…
Cancel
Save