ml5js / ml5-examples

A collection of ml5.js examples

Home Page:https://examples.ml5js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

featureExtractor with base64 images

lenny76 opened this issue · comments

hi
is it correct that featureExtractor does not work with images in base64 format?
I have this error

Pixels passed to tf.browser.fromPixels() can not be null

thanks

Hi @lenny76 - Correct: the featureExtractor does not work with base64. You will need to convert images to any one of these types: HTMLImageElement, HTMLCanvasElement, P5 Image, HTMLVideoElement, or ImageData.

Hope this helps! + Please close if the tip above resolves the issue. Many thanks!

Thank you! ❤️🙏