MailScan is an advanced application, spearheading innovations in mail sorting processes. It leverages state-of-the-art camera scanning and text recognition technologies to significantly improve the efficiency of mail delivery systems. The primary function of MailScan is to meticulously scan envelopes and accurately identify recipient details, thereby enabling sorting personnel to effectively categorize mail based on the recipient's department and office location.
Crafted with the cutting-edge Svelte framework, MailScan excels in performance and offers a user-friendly interface. This makes it an invaluable tool for modern mail handling operations, seamlessly integrating the latest in web technology with practical mail management solutions.
- Envelope Scanning: Utilizes device cameras to capture images of mail envelopes.
- Text Recognition: Employs Optical Character Recognition (OCR) to extract recipient information from envelopes.
- Departmental Sorting: Determines the corresponding department and office location for each recipient.
- Efficiency Reports: Generates reports to track sorting efficiency and identify areas for improvement.
- SvelteKit
- PocketBase
Once you've created a project and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
# set PocketBase URL in .env
PUBLIC_POCKETBASE_URL=http://10.33.1.166:3010/
BODY_SIZE_LIMIT=5291456 # 5mb
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.
docker build -t mailscankit:latest .
docker run -d -p 3000:3000 mailscankit:latest
# Docker Pull Command
docker pull blazordevlab/mailscankit:latest
docker run -d -p 3000:3000 \
-e BODY_SIZE_LIMIT=5291456 \
-e PUBLIC_POCKETBASE_URL=http://127.0.0.1:3010 \
blazordevlab/mailscankit:latest
- Open the app in a web browser.
- Grant the necessary permissions for the app to access the device camera.
- Place the envelope under the camera and click the 'Scan' button.
- View the extracted recipient details and the assigned sorting category.
- Scan: The assistant uses their smartphone to scan the letters through the application.
- OCR Processing: Once the image of the letter is sent to the backend (powered by Python FastAPI service), OCR technology extracts the text.
- NLP Analysis: The application then performs natural language processing to identify names within the letter.
- Database Lookup: It uses these names to search a database for the employee's details, including their department and office address.
- TypeScript
- Docker
Contributions to MailScan are welcome! Please read our Contributing Guidelines for more information on how you can contribute to this project.
This project is licensed under the MIT License.
For support, feature requests, or any queries, please open an issue in this repository.