Container OCR API for Australian Logistics

Automate gates across Aussie ports and intermodal rail yards. Accurately extract ISO 6346 codes under intense glare, harsh sunlight, and moving conditions. Upload your own image for a free test to see the accuracy instantly.

Top-down view of a green shipping container at an Australian terminal gate, showing the extracted EMCU 850473 0 container number under harsh sunlight.

The Reality of Terminal Gate OCR in Australia

Capturing container codes at active Australian terminal gates presents extreme environmental challenges. Cameras endure intense coastal sunlight, extreme heat, and high-glare conditions that cause standard scanners to fail. When combined with 180-degree inverted text from top-down crane cameras and deep structural shadows on corrugated metal, maintaining high throughput becomes critical. For a deeper dive into overcoming these specific environmental hurdles, see our core Container OCR capabilities.

StructOCR: Built for the Yard, Deployed at the Edge

Engineered strictly as a high-performance REST API to ensure seamless integration into your existing systems without heavy SDK dependencies, this endpoint is powered by our Logistics Container OCR engine. It features complete rotation invariance—automatically reading upside-down text without pre-processing. The engine applies strict ISO 6346 validation to verify the owner code and calculate the check digit, guaranteeing data integrity before it reaches your TOS.

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 →

Core Applications for the APAC Market

Automated Port Gates (Sydney/Melbourne)

Process inbound and outbound trucks instantly. By identifying the ISO 6346 container code as the truck crosses the weighbridge, gates can automatically lift. Ready to scale your operations? View flexible pricing, including frictionless global payment rails like USDC for seamless international scaling.

Intermodal Rail Networks

Deploy across extensive inland rail networks. The API natively handles the extreme vertical angles and high-speed captures required for moving freight trains in vast regional logistics hubs.

Empty Container Parks (ECP)

Accelerate turnaround times at empty container depots. Easily scan and log container numbers via mobile devices using our API's direct file upload capabilities.

Cross-Border Customs Checkpoints

Accelerate freight clearance by automatically cross-referencing the visually extracted container number with digital customs manifests in real-time.

Technical Specs

  • Validation: Built-in ISO 6346 checksum verification.
  • APAC Edge Optimization: Infrastructure is routed through Cloudflare's global edge network, providing ultra-low t1/t2 latency for API calls originating from Sydney, Melbourne, and Brisbane.
  • Rotation Invariance: Native support for 0°, 90°, 180°, and 270° orientations without manual pre-processing.
  • Input Versatility: Fully supports raw Base64 strings, direct multipart file uploads, and public image URLs.

Key Features

  • ISO 6346 Parsing: Perfectly isolates the 3-letter Owner Code (BIC), 1-letter Equipment Category, 6-digit Serial Number, and 1-digit Check Digit.
  • Harsh Environment Tolerance: Advanced filtering mitigates deep shadows from corrugated metal, rust, dirt, and intense direct sunlight common in Australian port environments.
  • Multi-Camera Redundancy: High-throughput capacity supports concurrent API calls from multiple lane cameras capturing the same target, allowing your system to deduplicate based on timestamp and physical lane ID.

Integration & AI Prompts

Call the endpoint directly via HTTP. The API flexibly accepts standard image URLs, direct multipart file uploads, or Base64-encoded strings to minimize network latency on edge networks.

import requests
import base64

# Prepare Base64 Image from local CCTV capture
with open("ccr_brisbane_lane2.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 Gate Capture...")
    response = requests.post(url, headers=headers, json=payload)
    result = response.json()

    if result.get('success'):
        data = result['data']['parsed']
        print("✅ Container Code Extracted!")
        print(f"Full Number:  {data.get('owner_code')}{data.get('category')}{data.get('serial_number')}-{data.get('check_digit')}")
        print(f"Valid ISO:    {data.get('is_valid')}")
        print(f"Confidence:   {result['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 breaking down the ISO 6346 components, validating the check digit, and providing a structural confidence score.

{
  "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 I test the API with my own images for free before subscribing?

Yes! You can utilize our free image test directly on the platform to upload your own challenging captures (via direct file upload or URL) and instantly see the accuracy of our extraction engine.

How does the API handle upside-down text from top-down crane cameras?

The engine features complete rotation invariance. It will automatically detect, rotate, and read text that is 180-degrees inverted (such as 'EMCU' appearing upside down) without requiring you to rotate the image payload prior to calling the API.

Is the latency high for Australian terminals?

No. Because our infrastructure is deployed on Cloudflare's edge network, API requests are routed through local nodes in Australia (like Sydney and Melbourne), ensuring lightning-fast response times crucial for weighbridge and gate automation.

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