module

TensorflowLite::Image

Constants

DEFAULT_SCALE_MODE = Scale::Fit

Class methods

calculate_boxing_offset(original_width : Int32, original_height : Int32, target_width : Int32, target_height : Int32) : Tuple(Int32, Int32)

how much do we need to adjust detections if we scaled to fit

Source
calculate_cropping_offset(original_width : Int32, original_height : Int32, target_width : Int32, target_height : Int32) : Tuple(Int32, Int32)

how much we need to adjust detections if we scaled to cover

Source

Nested types