Hello everyone,
I am facing an issue with the PersonalImageClassifier extension and would appreciate your guidance.
What I am trying to do
I built a simple image-classification app using PersonalImageClassifier:
- User clicks a button
- Camera takes a picture
- The captured image is displayed in an Image component
- The image is sent to the PersonalImageClassifier for classification
- The predicted label should be displayed in a Label component
Blocks logic (high level)
I am using the following events:
- When Button.Click
→ CallCamera.TakePicture - When Camera.AfterPicture(image)
→ SetImage.Picturetoimage
→ Call classifier (using the available method for PersonalImageClassifier) - When PersonalImageClassifier.ClassifierReady
→ This event fires successfully - When PersonalImageClassifier.Error(errorCode)
→ This fires with errorCode = -1 - When PersonalImageClassifier.GotResult(result)
→ This event never fires
Important observations
-
ClassifierReadydoes fire, so the model seems to load -
Immediately after calling the classification method,
Errorfires with -1 -
The model was trained using the PIC web page and downloaded as a
.mdlfile -
I am testing using the MIT AI Companion
-
A WebViewer component is present and set in the classifier properties
My question
- What does Error -1 specifically indicate in this context?
- Is this related to:
.mdlmodel compatibility?- WebViewer / Android WebView limitations?
- Companion vs APK behavior?
- Is there a known limitation or workaround for this issue?
Attachments
I have attached:
- Screenshots of the Blocks
- Screenshots of the UI
- Screenshots of PersonalImageClassifier and WebViewer properties
Thank you very much for your time and support.
Any clarification or confirmation would be greatly appreciated.
Best regards,
Jalal
