Prerequisites
Before installing CoroNet, ensure you have:- Python 3.8 or higher installed on your system
- pip package manager (usually comes with Python)
- An OpenAI API key with access to GPT-4o models
- Administrator/sudo privileges for installing Tesseract OCR
Installation Steps
Install Python Dependencies
Install all required Python packages from This installs the following key dependencies:
requirements.txt:Web Framework
Web Framework
- Flask 3.0.3 - Web framework and routing
- Jinja2 3.1.6 - Template engine for HTML rendering
- Werkzeug 3.1.3 - WSGI utilities
AI & Computer Vision
AI & Computer Vision
- openai 2.6.1 - OpenAI API client for GPT-4o
- pytesseract 0.3.13 - Tesseract OCR Python wrapper
- Pillow 12.0.0 - Image processing library
Data & Configuration
Data & Configuration
- python-dotenv 1.1.1 - Environment variable management
- requests 2.32.5 - HTTP library
- Standard library:
csv,os,datetime
The complete dependency list is available in
requirements.txt with pinned versions for reproducibility.Install Tesseract OCR
Tesseract OCR must be installed separately as it’s a system-level application:Verify Tesseract Installation:You should see output similar to:
Configure Environment Variables
Create a Getting an OpenAI API Key:
.env file in the project root directory with your OpenAI API key:- Visit platform.openai.com
- Sign up or log in to your account
- Navigate to API keys in your account settings
- Click Create new secret key
- Copy the key and paste it into your
.envfile
Project Structure
After installation, your project directory should look like this:The
uploads/ and data/ directories are created automatically when you first run the application (see app.py:21-22).Configuration Details
Flask Configuration
The application uses Flask’s built-in development server with these settings (app.py:11-12):
Tesseract Configuration
If Tesseract is not in your system PATH, you can specify its location manually inapp.py:
OpenAI Configuration
The OpenAI client is initialized with your API key (app.py:14-15):
Troubleshooting
ModuleNotFoundError: No module named 'flask'
ModuleNotFoundError: No module named 'flask'
Problem: Python dependencies not installed or wrong virtual environment.Solution:
TesseractNotFoundError
TesseractNotFoundError
Problem: Tesseract OCR is not installed or not in PATH.Solution:
- Verify installation:
tesseract --version - Add Tesseract to PATH or specify location in code (see Configuration Details above)
- Restart your terminal after installation
OpenAI API Key Error
OpenAI API Key Error
Problem: Missing or invalid OpenAI API key.Solution:
- Verify
.envfile exists in project root - Check key format: should start with
sk- - Ensure no extra spaces or quotes around the key
- Test key validity at platform.openai.com/api-keys
Permission Denied on uploads/ or data/ directories
Permission Denied on uploads/ or data/ directories
Problem: Insufficient permissions to create or write to directories.Solution:
Next Steps
Now that CoroNet is installed, let’s get it running:Quickstart Tutorial
Follow our step-by-step tutorial to detect your first license plate
Configuration Guide
Learn about advanced configuration options
