Release Notes
This page documents the release history of DeGirumJS, detailing new features, modifications, and bug fixes for each version of the SDK.
Version 0.1.3 (1/8/2025)
New Features and Modifications
New drawing parameters for
autoScaleDrawing
in the model classesAdded two optional parameters,
targetDisplayWidth
andtargetDisplayHeight
, to specify a custom reference resolution whenautoScaleDrawing
is enabled. (previously, the reference resolution was fixed at 1920x1080)Defaults to
1920x1080
if no values are provided.Ensures consistent scaling of overlays (e.g., bounding boxes, labels, keypoints) across varying input image dimensions.
Bug Fixes
Fixed a bug where backend errors were thrown asynchronously from
predict
andpredict_batch
functions. Now, the user can catch these errors and handle them gracefully.
Version 0.1.2 (1/7/2025)
New Features and Modifications
Lightweight
listModels()
function: Now, querying the list of models from the cloud (for CloudZoo classes) only fetches the names of the models. The parameters can now be fetched with a new function:getModelInfo(modelName)
.Updated
autoScaleDrawing
parameter for model classesdisplayResultToCanvas()
function: Now, the parameter is made to scale all results to optimal viewing for 1080p resolution.autoScaleDrawing
saves you from guesswork about how to size overlays for various input image dimensions by comparing the actual canvas size to a reference (e.g., 1080p) and scaling accordingly.
Version 0.1.1 (12/31/2024)
New Features and Modifications
Asynchronous
dg.connect(...)
Thedg.connect(...)
method is now asynchronous. You should useawait dg.connect(...)
to properly wait for initialization. This improvement ensures the AI Server or Cloud connections (and their respective zoo classes) are fully ready before returning objects.ReadableStream Support in
predict_batch
BothAIServerModel
andCloudServerModel
now accept a ReadableStream in addition to an async iterable for thepredict_batch(...)
method. This makes it easier to stream frames or data chunks directly from sources like the new WebCodecs API or other stream-based pipelines.predict()
andpredict_batch()
AcceptVideoFrame
These methods now also allowVideoFrame
objects as valid inputs.OffscreenCanvas Support in
displayResultToCanvas()
You can now draw inference results onto anOffscreenCanvas
as well as a standard<canvas>
element.Brighter Overlay Colors Default generated overlay colors have been adjusted to be more visible on dark backgrounds.
Support for SegmentationYoloV8 Postprocessing Added the ability to draw results from models that use the SegmentationYoloV8 postprocessor.
Bug Fixes
Proper Overlay Color for Age Classification Overlay colors for per-person text in age classification models are now correctly set.
Postprocessing Improvements Various fixes and optimizations have been implemented in the postprocessing code.
Version 0.1.0 (10/4/2024)
New Features and Modifications
Optimized Cloud inference connection handling, now resources are used only when needed and released properly.
New default color generation logic creates a more visually appealing set of colors for different types of models when viewing inference results.
Version 0.0.9 (9/17/2024)
New Features and Modifications
Optimized Mask Drawing in displayResultToCanvas() for results from Detection models with masks per detected object.
Bug Fixes
Postprocessing for Detection models that return masks now handles inputPadMethod options properly.
Last updated
Was this helpful?