Skip to content

add heigth and width to image for picture classification#84

Open
josmas wants to merge 1 commit intomit-cml:extension/personal-image-classifierfrom
josmas:fix/whclassifyimage
Open

add heigth and width to image for picture classification#84
josmas wants to merge 1 commit intomit-cml:extension/personal-image-classifierfrom
josmas:fix/whclassifyimage

Conversation

@josmas
Copy link
Member

@josmas josmas commented Mar 2, 2026

General items:

If your code changes how something works on the device (i.e., it affects the companion):

  • I branched from ucr
  • My pull request has ucr as the base

Further, if you've changed the blocks language or another user-facing designer/blocks API (added a SimpleProperty, etc.):

  • I have updated the corresponding version number in YaVersion.java
  • I have updated the corresponding upgrader in YoungAndroidFormUpgrader.java (components only)
  • I have updated the corresponding entries in versioning.js

For all other changes:

  • I branched from master
  • My pull request has master as the base

What does this PR accomplish?

Description
ClassifyImageData fails on Android because the width and height might be 0 if the webviewer is not laid out by the time the image is sent for classification. This makes the extension work reliably, at least when it comes to tfjs not handling 0 size images correctly.

Fixes # .

Resolves # .

@josmas
Copy link
Member Author

josmas commented Mar 2, 2026

Not needed if #85 is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant