An AI-powered local object detection system extending Open Source POS (OSPOS) to solve unreadable, missing, and anti-counterfeiting changing barcodes.
• Marchelino Mina
• Elarya Ehab
• Mariane Magdy
• Dr. Aya Ibrahim
• Dr. Maged Fathy
• Eng Aly Ahmed Sewelam
01. Problem & Motivation: Barcode failure & retailer challenges
02. Project Objectives: Specific measurable targets
03. System Architecture: AWS, Docker, YOLO & OSPOS
04. Environment & Tools: Hardware & cloud stack
05. Implementation Flow: Pipeline setup to deployment
06. Live Demo & Workflow: End-to-end POS API integration
07. Results & Challenges: Accuracy & engineering solutions
08. Future Improvements: Scalability & Conclusion
Unreadable / Missing Barcodes: Damaged labels, domestic items without barcodes, or glossy reflective surfaces fail on standard scanners.
Anti-Counterfeiting Rotations: Manufacturers constantly change barcode formats, causing registration errors at cash registers.
Retail Bottleneck: Cashiers manually keying in SKU codes slows checkout lines and introduces human error.
Automated Checkout: Create an intelligent, computer-vision assistant that recognizes products by visual features regardless of barcodes.
Seamless POS Integration: Direct API injection straight into existing Open Source POS (OSPOS) basket.
Nationwide Scale: Build a low-cost, client-agnostic model adaptable to any physical retail store.
Train a local YOLO object detection model specifically on domestic products frequently lacking clear barcodes.
Build a custom PHP extension for OSPOS exposing endpoints for external apps to push items directly to cart.
Host OSPOS & CVAT in isolated Docker containers on AWS EC2, secured via Nginx, SSH keys & Let's Encrypt SSL.
Design an artificially lit under-counter camera setup to guarantee high visual accuracy (>90%).
Edge Camera Hardware: Under-counter camera captures product, fed into Dell G15 local YOLO wrapper service.
YOLO Inference Engine: Detects product visually, resolves corresponding barcode/SKU instantly.
RESTful API Bridge: Sends async HTTPS POST payload to the custom OSPOS API endpoint.
Cloud Container Deployment: Nginx Reverse Proxy handles HTTPS requests and routes traffic to OSPOS & CVAT Docker containers on AWS EC2.
| Layer / Platform | Technology Used | Role & Technical Purpose |
|---|---|---|
| Training Workstation | Dell G15 (NVIDIA RTX 3050 Ti GPU) | Local deep learning acceleration for YOLO ML training |
| Cloud Server / OS | AWS EC2 / Ubuntu Linux | Cloud hosting environment with cryptographic SSH security |
| Containerization | Docker & Docker Compose | Isolated microservices for OSPOS app & CVAT instance |
| ML & Annotation | YOLOv8 & CVAT Tool | 500+ annotated domestic product frames divided across team |
| Core POS & API Extension | OSPOS (Open Source POS) + Custom API | Exposes REST API endpoints to manipulate active cart |
| Networking & SSL | Nginx Reverse Proxy & Let's Encrypt | Domain routing, SSL/TLS certificate, secure HTTPS API access |
Dataset creation (500+ frames) annotated via CVAT on AWS EC2.
YOLO ML model training on Dell G15 RTX 3050 Ti GPU workstation.
Developed OSPOS extension providing "add item to basket" REST endpoint.
Built under-counter camera rig with dedicated artificial light.
Configured Docker, Nginx reverse proxy, & Let's Encrypt SSL on AWS.
Verified sub-second visual item scanning & basket injection.
Problem: Store reflections caused false positives.
Solution: Custom under-counter enclosure with fixed artificial LED illumination.
Problem: Native OSPOS lacked external cart modification endpoints.
Solution: Developed custom OSPOS PHP API extension for reliable external POST calls.
Problem: Securing live retail endpoints over public internet.
Solution: Nginx reverse proxy, SSH cryptographic keys, and SSL encryption.
Transition from local GPU workstation to cloud GPU instances for client-agnostic processing nationwide.
Implement continuous training pipelines to auto-label new inventory items uploaded by store managers.
Deploy lightweight TensorRT models on edge microprocessors (e.g. NVIDIA Jetson) for offline operation.
A sustainable computer-vision platform solving unreadable barcode challenges for modern retailers.
https://miro.medium.com/v2/resize:fit:2000/1*Z8kZQj7Rpjbk4hfaAZcxGQ.png
Source: medium.com
https://moschip.com/wp-content/uploads/2026/03/Building-a-vision-based-self-checkout-solution.webp
Source: moschip.com