Examples of custom processing on segmentation texture in scripting?
I am trying to run some custom processing in js on the image data from a personSegmentationMaskTexture but cannot find docs on any exposed methods for accessing pixel data. Is this supported at this point and if so, do you have any examples or api documentation? Thanks!
2 Votes2 Followers Seen by 3
- Featured Answer
- Aw 452 answersYou can look into Spark SL, doing it on JS is not as easy. You just have to feed personSegmentationMaskTexture as a texture into your Shader code. If not, you can access the pixel data in JS using personSegmentationMaskTexture.signal. You can check out this tutorial by Sohail to understand how to access texture signal in JS: https://www.youtube.com/watch?v=XFDcQHhjoWc&t=1191s&ab_channel=SohailMehra
- This question has been closed.