Attention: This MediaPipe Solutions Preview is an early release. Learn more.

mp.calculators.tensor.image_to_tensor_calculator_pb2.ImageToTensorCalculatorOptions

Stay organized with collections Save and categorize content based on your preferences.

A ProtocolMessage

border_mode BorderMode border_mode
gpu_origin Mode gpu_origin
keep_aspect_ratio bool keep_aspect_ratio
output_tensor_float_range FloatRange output_tensor_float_range
output_tensor_height int32 output_tensor_height
output_tensor_int_range IntRange output_tensor_int_range
output_tensor_uint_range UIntRange output_tensor_uint_range
output_tensor_width int32 output_tensor_width

Child Classes

class FloatRange

class IntRange

class UIntRange

BORDER_REPLICATE 2
BORDER_UNSPECIFIED 0
BORDER_ZERO 1
BorderMode Instance of google.protobuf.internal.enum_type_wrapper.EnumTypeWrapper
ext Instance of google.protobuf.pyext._message.FieldDescriptor