Preprocessing and Visual Overlays
Customize preprocessing and drawing parameters for DeGirumJS models.
Input Handling (Pre-processing)
inputPadMethod
'letterbox' (Default)
let model = await zoo.loadModel('your_model', { inputPadMethod: 'letterbox' });'stretch'
let model = await zoo.loadModel('your_model', { inputPadMethod: 'stretch' });'crop-first'
let model = await zoo.loadModel('your_model', { inputPadMethod: 'crop-first', inputCropPercentage: 0.9 });'crop-last'
inputLetterboxFillColor
inputCropPercentage
Overlay Customization
overlayAlpha
overlayColor
overlayFontScale
overlayLineWidth
overlayShowLabels
overlayShowProbabilities
autoScaleDrawing
targetDisplayWidth / targetDisplayHeight
Label Filtering
labelBlacklist
labelWhitelist
Was this helpful?

