Outline Scaler
class OutlineScaler(val frameWidth: Int, val frameHeight: Int, val containerWidth: Float, val containerHeight: Float)
A utility class to handle the scaling of outlines (the bounding boxes used for object detections) into a container, while keeping the aspect ratio of the original frame (camera ratio)
Parameters
frame Width
The width of the frame, captured by the camera
frame Height
The height of the frame, captured by the camera
container Width
The width of the container where the outline will be drawn
container Height
The height of the container where the outline will be drawn
Types
Properties
Functions
Link copied to clipboard
Scales the given bounding box dimensions and positions to fit inside a container, like a BoxWithConstraints.