Skip to content

LukeyTheFireCube/dip-programming-prj-advanced-gui-awesome

 
 

Repository files navigation

Review Assignment Due Date

OcrRoo

v1 - Drafted by Rafael Avigad/James Makela


[Badges here]

AI Powered OCR Code Recognition from Video Tutorials

Build Tests Accessibility

About

A video player designed to assist visually impaired developers who want to learn to code. The program reads code from videos to assist visually impaired developers in using these resources.

Features - (need more info)


[Demo Video here]

  • Ability to upload, or enter a video link.
  • OcrRoo picks out any code text from the provided video, and reads that text to the user.

Installation

To install and run this project, please follow the Installation Guide in the Wiki.

Basic Installation

  1. Navigate to the projects root folder

  2. Create a virtual environment

python -m venv ./venv
  1. Activate the virtual environment Windows:
./venv/Scripts/activate

Mac/Linux

source venv/bin/activate
  1. Install dependencies with pip
pip install -r requirements.txt
  1. Navigate to App Directory

Change into app directory.

cd app/
  1. Run the Application

To run the application with silenced debug/logging output, execute the following command. Debug and logging outputs will be saved to an app.log file

python app.py
  1. Install Tesseract OCR
    For Windows: https://github.com/UB-Mannheim/tesseract/wiki
  • Download the installer.
  • Once it is downloaded open it and go through the installation steps.
  • When you run the program, there is an automated Tesseract executable search in the Settings. Feel free to do the search to save a lot of trouble.

To run the application with debug/logging output in the console, use the following command.This is recommended for development as it automatically reloads the app when changes are detected.

flask run --debug

Configuration Variables

To use the project, add the following configuration variables to your config.ini file:

  • openai_api_key: API key for OpenAI
  • tesseract_executable: Path to Tesseract OCR executable
  • ide_executable: Path to preferred IDE executable

In the current version of the project, this manual configuration is necessary.However, future builds will allow you to perform this configuration from the user interface (UI).

Contributing

To contribute to this project, please follow the Contribution Guide in the Wiki.

Code of Conduct


  • To view the code of conduct, please visit the [Code of Conduct] page in the Wiki.

License

This project is licensed under the Creative Commons Zero v1.0 Universal license.

Credits

This code was first created by the 2023, S2 Advanced Programming Diploma Group at North Metro TAFE. If you would like your contribution acknowledged, please contact Rafael.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 43.6%
  • HTML 32.0%
  • JavaScript 24.4%