Reading Individual Pixels in a Video Frame?

Hi I’m looking to create some content in an app that is dynamic based on certain parts of an image in a WebRTC feed using React Native WebRTC.

Is there a way to read individual pixels from a single frame of WebRTC video (I would only have to do this once in awhile) and for example, count the number of white pixels in the frame?

If there isn’t a way to do this in the react-native code, would there be a good way to hook in to the native code and expose something, or is using a screenshot library or something else on top a better approach?

This is currently not possible nor do I know of a way to make it possible.

I actually would think that you can add this library (React Native View Shot) and use it to take a screenshot and capture pixel data from there