u/itsmrsaha

I have built a Python package that lets beginners detect hand gestures without struggling through complex computer vision and mediapipe setup, so that they can use hand gestures in their project easily

Built a gesture-controlled calculator a while back using MediaPipe. Extracted the detection logic into a standalone library so anyone can add gesture recognition to their project without touching CV code.

from mp_gesture_lib import GestureDetector
detector = GestureDetector()          # bundled model, zero config
result = detector.detect(frame)       # pass any BGR webcam frame
print(result.gesture, result.confidence)

What it detects out of the box:

  • Finger count 1–10 (geometry-based, no ML)
  • Math ops: plus, minus, multiply, divide, equal, clear (ML model, bundled)
  • Two-hand rules for plus/multiply (landmark geometry)
  • Returns "unknown" cleanly when nothing matches

Custom model support — drop your own .task file, it's checked first. Bundled model is fallback. Any label passes through raw, no hard-coded mapping.

pip install mp-gesture-lib

📖 Docs: debabratasaha-dev.github.io/mp-gesture-lib-package
🐙 GitHub: github.com/debabratasaha-dev/mp-gesture-lib-package

Feedback welcome — especially on the gesture pipeline priority logic. If you find it useful, I’d really appreciate a ⭐️ on GitHub!

debabratasaha-dev.github.io
u/itsmrsaha — 10 hours ago
▲ 4 r/FunMachineLearning+2 crossposts

I turned my gesture calculator hobby project into a pip package — so you can detect and use multiple hand gestures in your project in just 3 lines of Python code

Built a gesture-controlled calculator a while back using MediaPipe. Extracted the detection logic into a standalone library so anyone can add gesture recognition to their project without touching CV code.

from mp_gesture_lib import GestureDetector
detector = GestureDetector()          # bundled model, zero config
result = detector.detect(frame)       # pass any BGR webcam frame
print(result.gesture, result.confidence)

What it detects out of the box:

  • Finger count 1–10 (geometry-based, no ML)
  • Math ops: plus, minus, multiply, divide, equal, clear (ML model, bundled)
  • Two-hand rules for plus/multiply (landmark geometry)
  • Returns "unknown" cleanly when nothing matches

Custom model support — drop your own .task file, it's checked first. Bundled model is fallback. Any label passes through raw, no hard-coded mapping.

pip install mp-gesture-lib

📖 Docs: debabratasaha-dev.github.io/mp-gesture-lib-package
🐙 GitHub: github.com/debabratasaha-dev/mp-gesture-lib-package

Feedback welcome — especially on the gesture pipeline priority logic. If you find it useful, I’d really appreciate a ⭐️ on GitHub!

u/itsmrsaha — 9 hours ago

Tired of messy JSON? I made a tool that visualizes your data as both a tree and a pannable graph. 🚀

Hey everyone! 👋

I’ve always found it a bit painful to debug deeply nested JSON files, so I decided to build my own visualizer. Instead of just a boring list, I wanted something more interactive and visual.

I call it JSON Tree Viewer.

Live Demo: https://debabratasaha-dev.github.io/JSON-tree-viewer/
GitHub Repo: https://github.com/debabratasaha-dev/JSON-tree-viewer

Key Features:

  • 🕸️ Dual View: Switch between a classic interactive Tree View and a zoomable Graph View.
  • 🔍 Interactive Graph: Drag, pan, and zoom to explore complex JSON structures visually.
  • 🎨 Modern UI: Built with a glassmorphism sidebar, smooth animations, and a sleek dark mode.
  • 🏷️ Smart Tagging: Automatically detects data types (Strings, Numbers, Objects, etc.) with clean icons.
  • 🚀 Lightweight: Zero heavy frameworks—just pure HTML, CSS, and JavaScript.

I’d love to hear your feedback! What features should I add next? If you find it useful, I’d really appreciate a ⭐️ on GitHub!

u/itsmrsaha — 5 days ago
▲ 32 r/json

Tired of messy JSON? I made a tool that visualizes your data as both a tree and a pannable graph. 🚀

Hey everyone! 👋

I’ve always found it a bit painful to debug deeply nested JSON files, so I decided to build my own visualizer. Instead of just a boring list, I wanted something more interactive and visual.

I call it JSON Tree Viewer.

Live Demo: https://debabratasaha-dev.github.io/JSON-tree-viewer/
GitHub Repo: https://github.com/debabratasaha-dev/JSON-tree-viewer

Key Features:

  • 🕸️ Dual View: Switch between a classic interactive Tree View and a zoomable Graph View.
  • 🔍 Interactive Graph: Drag, pan, and zoom to explore complex JSON structures visually.
  • 🎨 Modern UI: Built with a glassmorphism sidebar, smooth animations, and a sleek dark mode.
  • 🏷️ Smart Tagging: Automatically detects data types (Strings, Numbers, Objects, etc.) with clean icons.
  • 🚀 Lightweight: Zero heavy frameworks—just pure HTML, CSS, and JavaScript.

I’d love to hear your feedback! What features should I add next? If you find it useful, I’d really appreciate a ⭐️ on GitHub!

u/itsmrsaha — 5 days ago