Use Case
This project simulates the postal parcels sending service, this simulation consists of three use cases:
Use Case 1: weight the parcel
Use Case 2: fill in information, generate and print the QR-Code
Use Case 3: validate the QR-code
Experiment
We don’t have enough environment and money to support the simulation of this project, so we simply use the RFID to build a weighing system to simulate different weights. Through Raspberry Pi Zero W we build a simple information system to support this simulation. The RFID and RaspiCam are connect to the Raspberry PI and provide a weighing system and an image system.
- Raspberry Pi Zero W: RASPBIAN (Operating System), Flask (A Python Micro(web)framework), Flask-QRcode (Flask-extension render QR codes)
- RFID-RC522: SPI-Py, MFRC522-python
- PaspiCam: ZBar-python (QR code reader)
Web application in Python (REST – RESTful web services):
GET / Return RFID read results
GET /qrcode ?data=[input value]
GET /cam Return a real-time captured image
GET /status Read the QR-Code in the actual image
