react-native-vision-camera-resizerInterfaces
ResizerOptions
interface ResizerOptionsConfigures options for a Resizer.
Properties
channelOrder
channelOrder: ChannelOrderConfigures the output ChannelOrder
the Resizer will write for each resized pixel.
dataType
dataType: DataTypeConfigures the scalar DataType the
Resizer will use for each output channel.
height
height: numberConfigures the height the Resizer will
resize Frames to.
pixelLayout
pixelLayout: PixelLayoutConfigures how the individual channels per pixel are arranged in memory.
- Use
'interleaved'if your ML model input tensor is (N)HWC shaped - e.g.:[1, H, W, 3] - Use
'planar'if your ML model input tensor is (N)CHW shaped - e.g.:[1, 3, H, W].
See
scaleMode
scaleMode: ScaleModeConfigures the resize behavior when input and output aspect ratios differ.
'cover': Perform a centered crop to fill the full output.'contain': Keep the full source image and pad remaining output areas with black bars.
width
width: number