{"id":23050895,"url":"https://github.com/codewithcharan/rock-paper-scissors-project","last_synced_at":"2025-04-03T03:43:01.370Z","repository":{"id":195627880,"uuid":"693054138","full_name":"CodeWithCharan/Rock-Paper-Scissors-Project","owner":"CodeWithCharan","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-18T19:53:51.000Z","size":25850,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-08T17:44:52.616Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodeWithCharan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-18T08:54:24.000Z","updated_at":"2023-09-18T08:55:35.000Z","dependencies_parsed_at":"2023-09-19T01:26:24.261Z","dependency_job_id":null,"html_url":"https://github.com/CodeWithCharan/Rock-Paper-Scissors-Project","commit_stats":null,"previous_names":["codewithcharan/rock-paper-scissors-project"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWithCharan%2FRock-Paper-Scissors-Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWithCharan%2FRock-Paper-Scissors-Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWithCharan%2FRock-Paper-Scissors-Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWithCharan%2FRock-Paper-Scissors-Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeWithCharan","download_url":"https://codeload.github.com/CodeWithCharan/Rock-Paper-Scissors-Project/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246933354,"owners_count":20857052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-15T23:39:26.453Z","updated_at":"2025-04-03T03:43:01.334Z","avatar_url":"https://github.com/CodeWithCharan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rock-Paper-Scissors with AI\n\nIn this project, you will play the classic game of Rock-Paper-Scissors against an AI opponent. I've created an AI model that is trained to recognize hand gestures using Keras, TensorFlow, and OpenCV. I used OpenCV to gather images and utilized a pretrained model called \"SqueezeNet\" using the Keras library with TensorFlow as the backend framework.\n\n![RPS_thumbnail](https://github.com/CodeWithCharan/Rock-Paper-Scissors-Project/assets/106027109/f86ff745-6cd0-4eb8-add9-8d588a6bea8a)\n\n## Requirements\n\nTo run this project, you will need the following software and libraries:\n\n- Python 3\n- Keras\n- TensorFlow\n- OpenCV\n\n## Setup Instructions\n\nFollow these steps to set up and run the project:\n\n1. Clone the repository:\n\n    ```\n    git clone https://github.com/your-username/rock-paper-scissors.git\n    cd rock-paper-scissors\n    ```\n\n2. Download Python 3.7.0 from [here](https://www.python.org/downloads/release/python-370/). Note that you should not add Python 3.7.0 to your PATH during installation.\n\n3. Create a virtual environment for the specific Python version:\n\n    ```\n    virtualenv -p \u003cpaste_python_3.7_path_location\u003e venv\n    ```\n\n4. Activate the virtual environment:\n\n    - In Command Prompt (CMD):\n\n        ```\n        venv\\Scripts\\activate.bat\n        ```\n\n    - In PowerShell:\n\n        ```\n        venv\\Scripts\\Activate.ps1\n        ```\n\n5. Install the project dependencies:\n\n    ```\n    pip install -r requirements.txt\n    ```\n\n6. Gather Images for each gesture (rock, paper, scissors, and none). In this example, we gather 200 images for each gesture. Note that this step is optional:\n    ```\n    python gather_images.py rock 200\n    python gather_images.py paper 200\n    python gather_images.py scissors 200\n    python gather_images.py none 200\n    ```\n\n7. Train the model (optional):\n    ```\n    python train.py\n    ```\n\n8. Test the model on some images(optional):\n    ```\n    python test.py \u003cfile path\u003e.jpg\n    ```\n\n\n9. Play the game against AI:\n    ```\n    python play.py\n    ```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithcharan%2Frock-paper-scissors-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewithcharan%2Frock-paper-scissors-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithcharan%2Frock-paper-scissors-project/lists"}