Skip to content

Latest commit

Β 

History

History
57 lines (49 loc) Β· 1.64 KB

File metadata and controls

57 lines (49 loc) Β· 1.64 KB

AI

Setup Guide

πŸ“ Directory Structure

<dir_name>/
β”‚
β”œβ”€β”€ assets/
β”‚   β”œβ”€β”€ chrome_profile/
β”‚   β”œβ”€β”€ chrome-win64/
β”‚   β”œβ”€β”€ chromedriver.exe
β”‚   └── final_seat_vid.mp4
β”‚
β”œβ”€β”€ installers/
β”‚   β”œβ”€β”€ Setup_ePageSaferRT.exe
β”‚   └── tesseract-ocr-w64-setup-5.5.0.20241111.exe
β”‚
β”œβ”€β”€ models/
β”‚   └── best.pt
β”‚
β”œβ”€β”€ scripts/
β”‚   └── setup.bat
β”‚
β”œβ”€β”€ .gitignore
β”œβ”€β”€ main.py
β”œβ”€β”€ requirements.txt
└── README.md

πŸš€ Installation and Setup

1. Clone the Repository

git clone https://github.com/skkuswEng/AI.git
cd <dir_name>

2. Run the Setup Script

cd .\scripts
.\setup.bat

3. Download Large Files

From https://github.com/skkuswEng/AI/releases/tag/v1.0.0 download -this-> [AI_files.zip]

4. Place/Replace the assets and models folders in the project directory

5. Update the OCR path if needed

On line 25 of main.py, based on where the program was installed, it may be necessary to change the path.

# Initialize Tesseract OCR
pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files\Tesseract-OCR\tesseract.exe"

6. Change Backend URLs

On line 41 of main.py, the url of the server(s) the program broadcasts to need be changed correspondingly.

BACKEND_URLS = [
"http://localhost:8000/seat/renew",  # Ensure this matches the backend endpoint
]

πŸƒ Running the Project

Activate the Virtual Environment (from root)

.\scripts\venv\Scripts\Activate.ps1

Run the Program

  python main.py