The Frigate ALPR Web Server is a companion script designed to seamlessly integrate with the Frigate ALPR system. This web server enhances the functionality of Frigate ALPR by providing a user-friendly interface to search, view, and manage license plate recognition data and associated images stored in the database.
- License Plate Database Search: Enables users to efficiently search the database for specific license plates.
- Image Attachment: For each license plate detected, if an associated image is saved, the web server displays this image alongside the recognition data.
- Log Viewing: Users can access and review the server logs to monitor activity and troubleshoot issues.
To configure the Frigate ALPR Web Server, follow these steps:
- Create Configuration File: In the
frigate_alpr_web
directory, create a file namedconfig.py
. - Edit Configuration: Populate
config.py
with the following class definitions, updating the placeholders with your specific details:
class Config(object):
SECRET_KEY = 'YOUR_SECRET_KEY_HERE'
SQLALCHEMY_DATABASE_URI = 'sqlite:////PATH_TO/frigate_alpr.db'
SQLALCHEMY_TRACK_MODIFICATIONS = False
LOG_FILE_PATH = '/PATH_TO/frigate_alpr.log'
IMAGE_MNT_LOCATION = '/PATH_TO/PLATES'
class DevConfig(Config):
DEBUG = True
class ProdConfig(Config):
DEBUG = False
SECRET_KEY
: A secret key used for securing cookies and sessions.SQLALCHEMY_DATABASE_URI
: The database URI that should be used for the connection.SQLALCHEMY_TRACK_MODIFICATIONS
: Set toFalse
to disable Flask-SQLAlchemy event system.LOG_FILE_PATH
: The path to where the server logs should be stored.IMAGE_MNT_LOCATION
: The path to where the images are stored.
**You must install these packages before running the application.
pip install Flask Flask-SQLAlchemy waitress
To start the Frigate ALPR Web Server:
- Set the Port (Optional): The default port is
5555
. To change the port, modify the corresponding setting in theapp.py
file. - Launch the Server:
python3 app.py
This command will start the web server using the IP address of the machine it's running on, listening on the specified (or default) port.
For production environments, it is recommended to use the ProdConfig
to disable debug mode, ensuring optimal performance and security.