M2 is a browser-based 3D laboratory that allows users to manipulate 3D models using hand gestures tracked via a webcam. The system utilizes MediaPipe to identify 21 hand landmarks and Three.js for rendering, processing video locally without external data transmission.
To address the issue of multiple people appearing in the camera frame during classroom use, the developer implemented a filtering function that restricts control to the primary user. The system now requests up to four hand detections from the neural network while limiting active control to two hands.
The filtering logic relies on three rules: new hands are accepted only if they are sufficiently large, tracked hands remain assigned to the user if they continue their movement, and the system retains a slot for a lost hand for 1.5 seconds to prevent accidental hand-swapping.
Palm size is calculated by measuring the distance between the wrist and the base of the middle finger, and the width between the index and little finger bases. A calibration step or an adaptive baseline with a 4% per-frame adjustment weight helps the system track the primary user.
The developer validated the logic using synthetic hand data and headless Chrome testing across 11 scenarios. The system is currently in closed beta, with pilot programs available for schools to test the technology in real-world classroom environments.




