Expose setAutoResizeCanvas API #5901
Labels
platform:javascript
MediaPipe Javascript issues
task:image segmentation
Issues related to image segmentation: Locate objects and create image masks with labels
type:feature
Enhancement in the New Functionality or Request for a New Solution
MediaPipe Solution (you are using)
tasks-vision -> ImageSegmenter
Programming language
Typescript
Are you willing to contribute it
Yes
Describe the feature and the current behaviour/state
When using webgltexture as output. Canvas size is forced inside tasks-vision which prohibit application rendering from handling rendering buffer size such as device pixel ratio usage.
Will this change the current API? How?
Yes. Expose new api.
Who will benefit with this feature?
All web application who render directly on canvas which passed into tasks-vision.
Please specify the use cases for this feature
Init ImageSegmenter with canvas and gpu mode, then setup canvas to render result with device pixel ratio.
Any Other info
Issue: Cannot resize canvas to apply device pixel ratio for better rendering quality.
Other option is setting default as False.
The text was updated successfully, but these errors were encountered: