Replies: 1 comment
-
Could anyone point me out if that's the correct way of creating an ImageData that react-native-canvas can read (from an ImageData from BodyPix), the ctx.putImageData doesn't draw anything on the canvas and the result of toDataURL becomes an empty base64 png image. Logs from code (createImageData output and toDataUrl output): |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello I'm trying to implement BodyPix for React Native, the BodyPix methods return canvas based ImageData but I'm not able to pass that data to the canvas since isn't an instance of it and I don't even know if it's compatible with react-native-canvas.
The method that draws mask onto canvas: https://www.npmjs.com/package/@tensorflow-models/body-pix#bodypixdrawmask
The ImageData that I want to pass to canvas comes from: https://www.npmjs.com/package/@tensorflow-models/body-pix#returns-4
Could anyone help me with this approach, thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions