Skip to content

Repository files navigation

XtraMathBot

Table of contents

  1. About
  2. Getting Started
  3. Contact

About

This is my xtra math bot I made using Slenium, Pytesseract, and OpenCV. There are 2 parts to this project: Logging in and Answering Questions

Logging In

LoggingIn.mp4

Video 1: Logging in Phase

First, the bot logs in with selenium, a module which can minipulate key presses and mouse clicks. The bot enters your email, student name, and pin code into the text boxes and presses enter, continuing onto the questions phase.

Answering the Questions

Questions.mp4

Video 2: Answering the Questions

After the logging in phase is completed, it moves on to the answering questions phase. First, it takes 2 or 1 screenshot(s) (the top and bottom number or the whole area where the questions are in) and saves them in the path you specified. Next it uses 2 modules, pytesseract and openCV, to process and read the numbers and turn them into python strings. After that, the code turns the numbers into integers and it adds/subtracts/multiplies/divides them and stores it as the result. Finally, the program types in the answer with keyboard automation using pyautogui.

Keep the code running until it says you have completed your program.

Built With

This program is built with the following languages:

  • Python

Getting Started

To get this project running follow these steps

Installation

  1. Clone the Repository
   git clone https://github.com/OmPatel5/XtraMathBot.git
  1. Install Selenium
   pip install selenium
  1. Install Chrome WebDriver

Install Chrome Webdriver asociated with the version of your chrome you are using

   https://sites.google.com/a/chromium.org/chromedriver/downloads
  1. Install Tesseract-OCR

Install Tesseract-OCR with associated windows version

   https://github.com/UB-Mannheim/tesseract/wiki

Then enter this command in terminal to install tesseract on your virtual environment:

   pip install pytesseract
  1. Install the following packages:

Install Pillow

   pip install Pillow

Install OpenCV

   pip install opencv-python

Install Pyautogui

   pip install pyautogui

Install Pynput

   pip install pynput

Contact

Om Patel - omp091216@gmail.com

Project Link: https://github.com/OmPatel5/XtraMathBot

About

XtraMath Bot

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages