MediaPipe is used to detect hand landmarks in real-time. Custom logic maps different gestures (open hand, closed fist, etc.) to LED numbers. Connect LEDs to Arduino digital pins (D9–D13 in this case).
Paul and David Bradt’s Ardiono Projects offers multiple ways to use Arduino and Raspberry Pi microcontrollers for your model railroading projects. Buy the book here. Code for Button/Blink Test (SN095) ...