Tensorflow.js image

I have followed the documentation of tensorflow.js in codelab. But I received this error

Error: pixels passed to tf.browser.fromPixels() can not be null

How to solve it?

Hi @hanim_sofia ,

I apologize for the late response. Could you please provide information about which codelab tutorial you are using? Also, tf.browser.fromPixels() expects an image as its first parameter.

Please verify that the image path is correct and the image format is supported.

Let me know if it helps.

Thank You!!