Empty Depot Management: Container OCR API

Track empty container lifecycles with perfect accuracy. Upload your depot camera captures to test our extraction capabilities for free, effortlessly handling stacked, rusted, and weathered units.

Empty shipping containers stacked in a depot, with the StructOCR API extracting the ISO 6346 code, featuring a free test upload button.

The Visibility Gap in Empty Depots

Empty container depots are high-turnover environments where speed and stack accuracy are critical. When empty handlers move containers for storage, washing, or repair, tracking their exact block and tier relies heavily on manual spotters. These units are often highly weathered, covered in rust, or stacked in dense blocks with deep shadows, causing standard OCR to fail. This results in misplaced containers and severely slows down dispatch. To see how our engine cuts through these extreme visual challenges, you can upload a test image to explore our core Container OCR capabilities completely free.

A Cloudflare-Powered API for the Yard

Delivered strictly as a high-performance REST API to ensure seamless integration into any Depot Management System (DMS) without heavy SDK dependencies, this endpoint is powered by our Logistics Container OCR engine. It provides instant verification across the depot. The engine applies strict ISO 6346 validation on the fly, instantly calculating check digits to guarantee that only perfectly accurate Container Codes update your digital inventory map.

Live Demo: Container OCR

No registration required. Upload a file to test the extraction.

1
Upload
2
Results

Drop files here or click to browse

JPG · PNG · WebP  ·  up to 500 files · max 4.5 MB each

No files selected

Ready to use this in production? Get 20 free API calls — no credit card needed.

Get 20 Free API Calls →

Empty Depot Operations

Gate-In and Gate-Out Automation

Instantly log empty containers arriving from consignees or being dispatched to shippers. Ready to scale your depot software globally? View flexible pricing to secure maximum processing limits using modern payment rails including USDT/USDC.

Empty Handler Integration

Equip empty container handlers with cameras to verify the ID upon lifting, automatically updating your Depot Management System with the new stacking tier and block position.

M&R (Maintenance and Repair)

Automatically tie damage photos and repair estimates to the correct container ID by scanning the ISO code as the unit enters the maintenance zone.

Washing Station Logging

Record exactly when a container enters and exits the washing station, ensuring cleanliness compliance before the unit is released back into circulation.

Technical Specs

  • Edge Optimization: Deployed purely on Cloudflare's global edge network, ensuring ultra-low t1/t2 latency to process trucks rapidly at busy empty depot gates.
  • Input Versatility: Fully supports raw Base64 strings and direct multipart file uploads—ideal for offline-first tablets used by yard spotters in low-signal areas.
  • Validation: Built-in ISO 6346 checksum verification mathematically guarantees data accuracy before logging the unit into your inventory.
  • Weather & Dirt Tolerance: Advanced algorithms natively handle skewed captures, peeling paint, and heavy rust common on aging empty containers.

Key Features

  • Free Image Testing: Instantly upload highly obscured images from your actual depot to test extraction accuracy before deploying the API across your yard.
  • Standardized Output: Returns a unified `container_number` string ready for database ingestion, while isolating the Owner Code, Category, Serial, and Check Digit in a parsed object.
  • Universal Compatibility: Pure REST API architecture ensures zero dependency conflicts, integrating smoothly with custom Depot Management Systems (DMS).

Integration & AI Prompts

Call the endpoint directly via HTTP from your depot management software or mobile yard tablets. To maintain maximum security, the API flexibly accepts direct multipart file uploads or Base64-encoded strings, avoiding the need to expose local depot camera feeds to public URLs.

import requests
import base64

# Prepare Base64 Image from an empty depot gate camera
with open("depot_gate_capture.jpg", "rb") as image_file:
    base64_image = base64.b64encode(image_file.read()).decode('utf-8')

url = "https://api.structocr.com/v1/container"
headers = {
    "x-api-key": "YOUR_API_KEY",
    "Content-Type": "application/json"
}
payload = {
    "img": base64_image
}

try:
    print("Scanning Depot Capture...")
    response = requests.post(url, headers=headers, json=payload)
    result = response.json()

    if result.get('success'):
        data = result['data']
        print("✅ Container Code Extracted!")
        print(f"Full Number:  {data.get('container_number')}")
        print(f"Valid ISO:    {data.get('is_valid')}")
        print(f"Confidence:   {data.get('confidence')}")
    else:
        print(f"❌ Extraction Failed: {result.get('error')} - {result.get('message')}")

except Exception as e:
    print(f"An error occurred: {e}")

Standardized JSON Output

The API returns a cleanly parsed payload providing the full consolidated container number, validating the check digit, and breaking down the ISO 6346 components for your depot software.

{
  "success": true,
  "data": {
    "container_number": "ZCSU8921655",
    "is_valid": true,
    "confidence": "High",
    "parsed": {
      "owner_code": "ZCS",
      "category": "U",
      "serial_number": "892165",
      "check_digit": "5"
    }
  }
}

Frequently Asked Questions

Can we test the API with images from our empty depot before integrating it?

Absolutely. You can upload images directly on our platform to test how the OCR engine handles your specific camera angles, rust levels, and stacking shadows completely free of charge.

How does the API handle heavily rusted or repainted empty containers?

Because the API enforces strict ISO 6346 logic, if a single digit is obscured by rust, the engine utilizes the calculated check digit to intelligently verify and reconstruct the missing character.

Do we need to expose sensitive yard camera feeds to public URLs?

No. The API natively accepts direct file uploads and Base64-encoded strings directly from your secure network or mobile yard tablets.

Explore More Container Solutions

Precise Data Extraction and Seamless Integration with AI-powered OCR API.

Empower your solutions with automated data extraction by integrating best-in class StructOCR via API seamlessly.

No credit card required • Full API access included