Using Posenet in max msp?

Im building a motion tracking instrument in max for disabled people. Im using Posenet to track 17 keypoints. However in my current project, Posenet opens in an external application called electron. is there any way i can get rid of electron and use my posenet through a pwindow which recieves real time information from my webcam using jit.grab?

if not is there any way i can embed the electron application window in my max patch? ive looked around and do not think this is possible.

another option is to embed the posenet test webpage and get the keypoints from this, although i do not know how i could do this.