You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: projects/make-a-webcam-controlled-game-with-tensorflowjs/make-a-webcam-controlled-game-with-tensorflowjs.mdx
+23-8Lines changed: 23 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,9 @@ author: Dharma Jethva
4
4
uid: HQImLPf2Tmel6kw8hCis3vcJnLo2
5
5
datePublished: 2025-11-13
6
6
published: beta
7
-
description: Learn about using WebSocket and Socket.IO to build a chat application.
8
-
header:
9
-
bannerImage:
7
+
description: Learn to create a webcam-controlled game with TensorFlow.js and MediaPipe Hands. Real-time hand tracking and browser ML for interactive web projects.
**Note:** The main focus of this tutorial is understanding how hand tracking works with TensorFlow.js, not building a complex game. The game mechanics are kept simple so we can focus on the machine learning concepts.
41
44
@@ -67,7 +70,10 @@ To sum it up, the idea of programming with traditional computer programming is t
67
70
68
71
So, in summary, the idea of programming with machine learning is that the developers have some input (an image of a hand), they provide the expected output (labeled coordinates for the hand/fingers) to a model, and the model automatically generates the internal rules/patterns necessary to transform the input into that output. In this case, the model is trained with images of hands and the expected coordinates of their landmarks, and as the output, it automatically predicts the coordinates of the landmarks in a new, unseen image.
alt="Comparison of Traditional Computing vs Machine Learning"
76
+
/>
71
77
72
78
So, instead of the developers writing the rules, the machine writes the logic for us. Super cool, right?
73
79
@@ -87,7 +93,10 @@ This means:
87
93
88
94
[MediaPipe Hands](https://mediapipe.readthedocs.io/en/latest/solutions/hands.html) is a pre-trained machine learning model created by Google that can detect hands and identify 21 key points (landmarks) on each hand:
0 commit comments