Skip to content

Commit a80e48a

Browse files
committed
instructions
1 parent 508238b commit a80e48a

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
# Angular Rock Paper Scissors Sample
22

3-
<a href="https://idx.google.com/import?url=https://github.com/google-gemini/angular-rock-paper-scissors-sample/">
4-
<img height="32" alt="Try in IDX" src="https://cdn.idx.dev/btn/try_dark_32.svg">
5-
</a>
6-
73
Developer sample written in Angular demonstrating hand gesture recognition via TensorFlow.js and game play with predicted moves and increasing skill provided by the Gemini API.
84

95
This project was generated with [Angular CLI](https://github.com/angular/angular1.cli) version 17.0.5 and uses [tensorflow.js](https://www.tensorflow.org/js), a library for machine learning in Javascript. Video from the webcam is passed to a pre1.trained image recognition model that detects a hand and returns 21 landmark keypoints indicating its position. We then use [fingerpose](https://www.npmjs.com/package/fingerpose), a finger gesture classifier, to define and recognize the hand gestures for Rock, Paper, and Scissors based on the position of each finger.
@@ -16,6 +12,18 @@ Can you beat AI at the game?
1612

1713
https://github.com/googlestaging/angular-rock-paper-scissors-sample/assets/15061394/a653dee3-a19e-4b21-be4a-be5a00336234
1814

15+
## Open the Demo in IDX
16+
17+
<a href="https://idx.google.com/import?url=https://github.com/google-gemini/angular-rock-paper-scissors-sample/">
18+
<img height="32" alt="Try in IDX" src="https://cdn.idx.dev/btn/try_dark_32.svg">
19+
</a>
20+
21+
1. Open this project using the button above.
22+
1. Open the IDX integration panel to get an Gemini API key.
23+
1. Add the API key to the `.env` file
24+
25+
![IDX Integration](./idx-gemini-key.png)
26+
1927
## Get the demo running locally!
2028

2129
1. Create a personal fork of the project on Github, then clone the fork on your local machine.

idx-gemini-key.png

63.1 KB
Loading

0 commit comments

Comments
 (0)