Image Input
PyTouch provides an image handler class which loads images obtained from sensors.
It allows for some basic functionality such as:
- Converting from
PIL.Image
toTensor
- Converting from
Tensor
toPIL.Image
- Converting to
numpy.nparray
- Saving
PIL
orOpenCV
images
#
UsageAn example is shown below on the usage of ImageHandler
Returning the image,
Returing a Tensor
,
Returning a numpy array
,
Converting from Tensor
to PIL.Image
,
Saving to file,