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
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
Nested types
- TensorflowLite::Image::AgeEstimationExact
- TensorflowLite::Image::AgeEstimationRange
- TensorflowLite::Image::Canvas
- TensorflowLite::Image::Classification
- TensorflowLite::Image::Common
- TensorflowLite::Image::Detection
- TensorflowLite::Image::FaceDetection
- TensorflowLite::Image::Format
- TensorflowLite::Image::GenderEstimation
- TensorflowLite::Image::ObjectDetection
- TensorflowLite::Image::PoseEstimation
- TensorflowLite::Image::Scale
- TensorflowLite::Image::Segmentation