Streaming video-based 3D reconstruction method compatible with existing monoscopic and stereoscopic endoscopy systems