video2code Svelte Themes

Video2code

Final project from the Advanced Programming unit at North Metropolitan TAFE as part of the Diploma of Advanced Programming Semester 1 2025.

Video 2 Code

Live preview comming soon!

Installation

Pre-requisites

  1. Groq AI API key
  2. Tesseract OCR Installer

1. Clone Repo

2. Download Tesseract OCR

PLEASE TAKE NOTE OF WHERE YOU INSTALL TESSERACT.EXE AS YOU WILL NEED TO SET THE PATH IN THE DJANGO APPLICATION.

If you are on Windows, download the installer for Windows for Tesseract from Tesseract at UB Mannheim.

For other operating systems, please follow the instructions from Tesseract's documentation here.

3. Server

The server was built using Django REST Framework. It currently stores the video that will be served to the frontend via the REST API. The extraction of a specific video frame and resulting code is done here. To setup the server, run the following:

  1. Setup a virtual environment within the server folder (place it on the same level as project folder, .gitignore, and requirements.txt)
python -m venv .venv
  1. Activate virtual environment
source .venv/Scripts/activate
  1. Install project dependencies (make sure you are in the server directory)
pip install -r requirements.txt
  1. Set up environment variables
GROQ_KEY=YOUR_KEY
TESSERACT_PATH=YOUR_PATH
  1. Start project
cd adv_ui_ocrroo_project
python manage.py runserver

4. Client

The repository holds both the client (frontend) and server (backend) for the project. The client was built using Svelte. To setup the client, run the following:

  1. Install project dependencies
npm install
  1. Start client development server:
npm run dev

If you are using VS Code, for better developer experience, please feel free to install the Svelte language support extension.

5. Have fun!

Top categories

Loading Svelte Themes