A modular QSR Order Verification Python Package
Project description
TED_QSRT
A modular, highly accurate computer vision verification system designed for Quick Service Restaurants (QSRs). This package compares a camera image of a packed food tray with OCR text extracted from an order receipt to ensure the order is correct.
Installation
You can install this directly from source:
cd fastfood_verifier_project
pip install -e .
Or build a distribution wheel for deployment on other servers:
# Build the wheel
python setup.py sdist bdist_wheel
# Install the wheel (replace with actual filename in dist/)
pip install dist/TED_QSRT-0.1.0-py3-none-any.whl
Command Line Usage
Once installed, you can trigger the AI verification pipeline directly from the terminal. It accepts two image paths and returns a JSON verification result.
ted-qsrt --item inputs/camera_view.jpg --receipt inputs/order_receipt.jpg
Alternatively, you can run the module directly:
python -m TED_QSRT --item inputs/camera_view.jpg --receipt inputs/order_receipt.jpg
REST API Server Usage
This package also comes with a built-in FastAPI server to immediately work with web interfaces or edge/mobile devices (iOS/Android).
Start the API Server:
uvicorn TED_QSRT.api.server:app --host 0.0.0.0 --port 8000
Endpoints
POST /verify
Accepts two multipart image uploads: item_image and receipt_image.
Returns a JSON object containing the comparison results.
Example Request:
curl -X POST "http://localhost:8000/verify" \
-H "accept: application/json" \
-H "Content-Type: multipart/form-data" \
-F "item_image=@inputs/camera_view.jpg" \
-F "receipt_image=@inputs/order_receipt.jpg"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ted_qsrt-0.1.0.tar.gz.
File metadata
- Download URL: ted_qsrt-0.1.0.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d506d38efdfec1b1552da102917abd824b1fcfda3095e3ff1fd6c76fae0298a0
|
|
| MD5 |
66a54532356b61478956342c1c20d794
|
|
| BLAKE2b-256 |
ead925d6625d6291bfd0e2c18a64bf866ff183be39930f621f66536ac4eb4434
|
File details
Details for the file ted_qsrt-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ted_qsrt-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6eb4626ed21accf25b3880484a55970cbf84d8a51f8ad080b5a7decd0d5b5770
|
|
| MD5 |
5193b449ffb59d8a221f99ecc4213e6c
|
|
| BLAKE2b-256 |
0b2766b920e708324bd663b09a267e4d5de4b9eb5d233f19c9cf873e9e557ae4
|