IndustryKDS Logistics Ltd.Work period · 2025Equipment-mounted container OCR

Track My Container: ISO 6346 Container Recognition

Edge computer vision pipeline for reading ISO 6346 container numbers from reach stackers and side lifters using fisheye correction, YOLO-OBB detection, crop pairing, PaddleOCR, prefix correction, and check-digit validation.

Track My Container: ISO 6346 Container Recognition project workflow and system architecture
Project workflow and system architecture overview. Open full-size diagram

Workflow at a glance

  1. Correct imagery

    Prepare equipment-camera frames for reading.

  2. Detect and crop

    Locate container codes with oriented detection.

  3. Read and validate

    Use OCR and ISO 6346 check-digit validation.

  4. Associate and send

    Attach telemetry and deliver container events.

Project facts & reported results

YOLO-OBB
Detection

Implementation fact

PaddleOCR
OCR

Implementation fact

ISO 6346 check digit
Validation

Implementation fact

Project Overview

Problem Statement

Container codes appear at changing angles and distances, with fisheye distortion, glare, weathering, partial occlusion, and mixed horizontal or vertical layouts.

Approach & Methodology

Built custom YOLO11 (Oriented Bounding Box) model to detect containers at any angle. Developed specialized 2-stage filtering for Side Lifter (SLT) and Reach Stacker (RST) camera views to isolate the top container being lifted. Implemented ver_to_hor.py to detect vertical character bounding boxes, sort by y-coordinate, and reassemble into horizontal text before PaddleOCR. Integrated ISO 6346 checksum validation and deployed on NVIDIA Jetson Orin Nano for edge inference.

Outcome & Scope

Automates container-code capture and produces validated events that can be associated with equipment telemetry and downstream logistics systems.

Technical Challenges & Solutions

1

RTSP Stream Instability

RTSP streams from industrial cameras were unstable due to network issues, causing frame drops and missed container readings during critical operations.

Solution

Implemented frame-queueing mechanism with Kalman filtering for temporal smoothing. Deployed on Jetson Orin Nano for edge processing to reduce network dependency.

2

Fisheye Lens Distortion

Wide-angle cameras introduced significant radial distortion making container IDs unreadable at frame edges.

Solution

Calibrated cameras to extract intrinsic matrix and distortion coefficients. Applied OpenCV undistortion as preprocessing step before OCR.

3

Vertically Oriented Container IDs

Container IDs were often written vertically, which standard horizontal OCR models failed to read correctly.

Solution

Developed ver_to_hor.py script using YOLO11 to detect individual characters, sort them vertically, and reassemble into horizontal text string before OCR processing.

4

Faded and Damaged Text

Container IDs faded due to weather exposure, rust, and physical damage, leading to OCR errors and misreadings.

Solution

Implemented ISO 6346 validation to detect and correct OCR errors using checksum algorithm. Built intelligent error correction system for common character confusions.

5

Glare from Industrial Lights

Strong overhead industrial lighting caused glare and reflections on container surfaces, washing out ID text.

Solution

Installed polarizing filters on camera lenses and adjusted lighting angles. Implemented adaptive preprocessing with shadow/highlight correction algorithms.

6

Operator Handling Errors

Crane operators sometimes moved containers too quickly or at awkward angles, causing motion blur and poor capture angles.

Solution

Created Standard Operating Procedures (SOPs) for optimal container handling. Conducted training sessions with operators emphasizing camera-friendly movements.

7

Camera Damage from Operations

Cameras were occasionally damaged by crane operations or falling objects, requiring expensive replacements and downtime.

Solution

Implemented accountability policies with documented training. Installed protective housings and warning signage. Regular maintenance schedules.

8

Gate-Side Technical Issues

Multiple simultaneous issues at entry gates: camera positioning, poor network connectivity, inadequate lighting, and unreliable power supply.

Solution

Comprehensive infrastructure upgrade: repositioned cameras, upgraded to gigabit LAN, installed LED lighting with backup power, and deployed UPS systems.

9

Data Integrity and Synchronization

Container data needed cross-referencing with gate logs, GPS data, and depot inventory. Mismatches caused operational confusion.

Solution

Built backend cross-referencing system with automated reconciliation. Implemented API optimization with retry logic and conflict resolution strategies.

System Architecture

Hybrid IoT system with edge AI processing and cloud synchronization

Key Components:

Jetson Orin Nano Edge Device

Runs YOLO11 and OCR inference at depot edge with local buffering for offline operation

Multi-Camera Manager

Handles RTSP streams from multiple angles with synchronized frame capture

OCR Pipeline

PaddleOCR with preprocessing (undistortion, enhancement, rotation) and ISO 6346 validation

IoT Sensor Integration

Collects GPS coordinates, SONAR depth data, and height sensor readings

Data Validation Engine

Cross-references OCR results with sensor data and historical records

Cloud Sync Service

Uploads container logs to cloud database with retry logic and offline buffering

Analytics Dashboard

Real-time container tracking, search, depot visualization, and reporting

Key Features & Capabilities

Real-time GPS tracking and movement updates

Hybrid IoT with GPS, SONAR, height sensors

AI camera with automatic OCR reading

Depot space optimization and crane efficiency

Infrastructure-less scalable deployment

ISO 6346 validation and error correction

Technologies & Tools

Python
YOLO11 OBB
PaddleOCR
OpenCV
NVIDIA Jetson
ISO 6346
RTSP
Telemetry integration