An AI system that assesses how cartons are stacked in trucks and containers from a single photo. It detects cartons with YOLOX, reads SKU labels with OCR, rebuilds the stack as a grid, and scores it against loading rules. It's built on ASP.NET Core and uses a detection model I trained myself.




An AI system that assesses how cartons are stacked in trucks and containers from a single photo. It detects cartons with YOLOX, reads SKU labels with OCR, rebuilds the stack as a grid, and scores it against loading rules. It's built on ASP.NET Core and uses a detection model I trained myself.
The Problem Carton loads in trucks and containers were checked manually from field photos, which was slow and inconsistent. The photos themselves are hard to work with: they're heavily compressed, contain 100–200 small cartons of mixed sizes, are often wrapped in plastic, and frequently carry GPS camera stamps.
The Solution I designed and built two connected applications:
Key Technical Challenges
Quality & Architecture The API follows Clean Architecture (Domain, Application, Infrastructure, Api). It has 60+ xUnit unit and integration tests that use a fixture-based fake vision layer, so they run without the model or native libraries. The build allows zero warnings (TreatWarningsAsErrors). Errors follow the ProblemDetails format (RFC 7807), Swagger includes response examples, and TypeScript contracts match the C# DTOs for frontend use.
My Role I owned the project end to end: gathering requirements and business rules, research on real field photos, model training, API architecture, implementation, testing and deployment strategy.
Tech Stack
| Area | Technologies |
|---|---|
| Backend API | C#, .NET 8, ASP.NET Core Web API, Clean Architecture |
| Computer Vision | YOLOX, ONNX Runtime, OpenCvSharp (OpenCV), PaddleOCR PP-OCRv5 (Sdcb.PaddleOCR) |
| Machine Learning / Training | Python 3.11, PyTorch, torchvision, ONNX, onnxsim, NumPy, OpenCV |
| Trainer Tooling | Gradio (GUI), Typer (CLI), Pydantic |
| API Documentation | Swagger / OpenAPI (Swashbuckle), ProblemDetails |
| Testing | xUnit, WebApplicationFactory (integration tests), pytest |
| Frontend Contract | TypeScript type definitions |
| Deployment | Docker, Coolify (Linux), Windows Server + IIS |
Nandang Hermawan
Senior Fullstack Developer
Full Stack Developer with over 9 years of experience leading technical projects from concept to deployment. Skilled in both backend and frontend development, I enjoy collaborating with cross-functional teams to deliver solutions that drive real business value.