Python API¶
- proteus.ImageInferenceRequest(images, asTensor=False)¶
Construct a request from an image or list of images
- Parameters:
images (image) – Images may be numpy arrays or filepaths or a list of these
asTensor (bool, optional) – Send data as a tensor or as base64-encoded string. Defaults to False.
- Raises:
TypeError – Raised if an unknown image format is passed
- Returns:
Request object
- Return type:
InferenceRequest
- exception proteus.RuntimeError¶
- proteus.mapTypeToXir(type: _proteus.DataType) xir.DataType ¶
- proteus.mapXirType(type: xir.DataType) _proteus.DataType ¶