Skip to content

An interactive fun game made using OpenCV to make recycling more fun!

License

Notifications You must be signed in to change notification settings

SachinSahu431/OpenCV-Ecology-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forgotten Principles: It’s all about recycling

Description:

  • Video games and digital media can be of great assistance in inculcating habits that are essential but not flashy

  • A virtual environment can greatly help in developing sustainable habits in citizens. Eventually, they develop these habits and incorporate them into their lifestyle.

  • This user-friendly game is to motivate users to take eco-conscious actions and learn how they can have an impact on climate justice.

  • Best part: The game is controlled with hand movements and motions. This will ensure that user remains physically active while playing the game.


Features:

  • Entire game is implemented in python
  • OpenCV is used to track user's hand motion
  • Hand Detecting Modules process real-time camera feed and hand gestures are identified
  • This makes the game more interactive. Instead of using a mouse or keyboard, the player can use his hands to control the game (Mimic real life situation)
  • This engages children to play games like this and learn more about eco-friendly methods
  • PyGame is used for creating the necessary graphics and UI
  • Use of self-designed graphics that are easy for users to understand
  • There are 3 levels in the game, with each one having its own objective

MAIN MENU

images in markdown

images in markdown


LEVEL-1: GRAB THE GARBAGE

  • This level is about Waste Management

  • When you start this level, you will see recyclable, non-recyclable and organic wastes on the ground and you task is to pick the waste and throw it in the correct trash can.

  • Handtracking (OpenCV) is used in this level. Your hand is mapped to a virtual hand which you can see on your screen. Close your fingers and make a fist to pick the waste and release the fist to drop it.

    images in markdown


LEVEL-2: POP THE POLLUTANT

  • This level is about Air pollution.

  • In this level, you can see the AQI (Air Quality Index) displayed on screen. And some pollutants will be moving towards the top, and you need to pop them before they escape.

  • If they reach the top, then the AQI will increase, indicating that the quality of air is decreasing.

  • Just like the previous level, your hand is mapped to a virtual hand which you can see on your screen. Here also, you need to make a fist to pop the pollutant.

    images in markdown


LEVEL-3: QUIZ GAME

  • In this level, you need to answer a Quiz based on eco-friendly methods.

  • This quiz will be Choose the Correct Answer type.

  • Each question has 4 options. For each correct answer, you score 50 points.

  • On answering correctly, you advance to next levels which are more challenging!

    images in markdown

Installation Procedure:

Download the repository. Structure of the repository is shown below:

   ECO-PRO
   |-- Grab-the-Garbage-1
   |-- Pop-the-Pollutant-2
   |-- Quiz-3
   

1. Seperate Each Level folder and make it as a root folder

2. Install the dependencies and ensure python version is 3.8.0

pygame==2.0.1
numpy==1.21.2
opencv-contrib-python==4.5.3.56
opencv-python==4.5.3.56
mediapipe==0.8.7.2
cvzone==1.5.0

About

An interactive fun game made using OpenCV to make recycling more fun!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages