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.ImagetoTensor - Converting from
TensortoPIL.Image - Converting to
numpy.nparray - Saving
PILorOpenCVimages
Usage#
An 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,