Use ImageSegmenter instance as reactive leads to exception #5592
Labels
os:macOS
Issues on MacOS
platform:javascript
MediaPipe Javascript issues
task:image segmentation
Issues related to image segmentation: Locate objects and create image masks with labels
type:bug
Bug in the Source Code of MediaPipe Solution
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
None
OS Platform and Distribution
MacOS Sonoma 14.5
Mobile device if the issue happens on mobile device
No response
Browser and version if the issue happens on browser
No response
Programming Language and version
Javascript, Vue.js
MediaPipe version
0.10.14
Bazel version
No response
Solution
ImageSegmenter
Android Studio, NDK, SDK versions (if issue is related to building in Android environment)
No response
Xcode & Tulsi version (if issue is related to building for iOS)
No response
Describe the actual behavior
Got a mistake "Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'."
Describe the expected behaviour
Don't get it)
Standalone code/steps you may have used to try to get what you need
I have component based on Vue.js where I try to launch ImageSegmenter
and I got exception
"Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'"
But If change my code
this.imageSegmenter = markRaw(await ImageSegmenter.createFromOptions(....);)
everything works fine
I guess this.imageSegmenter is not a plain ImageSegmenter it's wrapped Proxy, 'cause every data object is reactive in Vue.js
Other info / Complete Logs
No response
The text was updated successfully, but these errors were encountered: