Container OCR API for Canadian Terminals

Powering automation from Vancouver to Halifax. Accurately extract ISO 6346 codes through snow, ice, and freezing rain. Upload your own image for a free test to see the accuracy instantly.

Top-down view of a shipping container at a Canadian terminal gate, showing the extracted EMCU 850473 0 container number under challenging weather conditions.

The Reality of Terminal Gate OCR in Canada

Capturing container codes at active Canadian terminal gates presents severe physical challenges. From the freezing coastal winds of Halifax to the heavy snowfalls in Montreal, traditional optical scanners frequently fail when container text is obscured by frost, ice patches, or low-light winter conditions. Maintaining high throughput in these environments requires an AI engine that sees past the weather. For a deeper dive into overcoming these specific environmental hurdles, see our core Container OCR capabilities.

StructOCR: Engineered for Extreme Environments

Designed strictly as a high-performance REST API to ensure seamless integration into any language without heavy SDK dependencies, this endpoint is powered by our resilient Logistics Container OCR engine. It features complete rotation invariance—automatically reading upside-down text from top-down cranes covered in snow. The engine applies strict ISO 6346 validation to mathematically verify the check digit, guaranteeing data integrity even if a character is partially obscured by ice.

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
Need more testing? Create a free account to get 200 free credits (equals 200 Container scans).

Core Applications for the Canadian Market

Winterized Automated Gate Systems

Process inbound and outbound trucks instantly in sub-zero temperatures. Keep gates moving without requiring staff to manually wipe down frozen container codes. Ready to upgrade? View flexible pricing, supporting smooth international billing for Canadian enterprises.

Cross-Border Logistics (US/Canada)

Accelerate freight clearance by automatically cross-referencing visually extracted container numbers with digital customs manifests at busy border checkpoints.

Empty Container Depots

Accelerate turnaround times at empty container yards. Easily scan and log container numbers via mobile devices using our API's direct file upload capabilities, keeping workers out of the cold.

Railway Interchange Hubs

Track container movement across the vast Canadian rail network, handling the extreme vertical angles typical of intermodal transfers.

Technical Specs

  • Validation: Built-in ISO 6346 checksum verification.
  • Canadian Edge Optimization: Infrastructure is routed through Cloudflare's global edge network, providing ultra-low latency for API calls originating from major Canadian tech hubs.
  • 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 Weather Tolerance: Advanced filtering mitigates image noise from frost, snow accumulation, and low-contrast winter lighting.
  • Mathematical Reconstruction: If ice completely blocks a serial digit, the engine uses the remaining code and checksum logic to intelligently reconstruct the missing character.

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("vancouver_gate_winter.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 Canadian 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')}")
    else:
        print(f"❌ Extraction Failed: {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 winter images for free before subscribing?

Yes! You can utilize our free image test directly on the platform to upload your own challenging Canadian 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.

Does sending images to the API violate our local data privacy requirements?

The API accepts Base64-encoded strings and direct file uploads, meaning you do not need to host sensitive gate images on public storage. Data is processed statelessly in memory and is not retained.

Explore More Container Solutions

SOLUTION

Automated Crane Tally: Container OCR API

Automate crane tally operations with our Container OCR API. Upload STS or RTG crane camera captures to test our ISO 6346 extraction for free. Handles 180-degree rotations effortlessly.

Container
SOLUTION

Customs Clearance: Container OCR API

Accelerate cross-border freight clearance with our Container OCR API. Upload border checkpoint images to test our ISO 6346 extraction for free. Eliminate manual customs delays.

Container
SOLUTION

Damage Inspection: Container OCR API

Automate container damage inspection with our high-accuracy OCR API. Upload photos of dented or rusted containers to test ISO 6346 extraction for free.

Container
SOLUTION

Empty Depot Management: Container OCR API

Streamline your empty container depot operations with our high-accuracy OCR API. Upload yard captures to test our ISO 6346 extraction for free and eliminate lost units.

Container
SOLUTION

Container OCR API for European Terminals

High-accuracy ISO 6346 container number extraction for European automated ports and rail networks. Upload your image for a free test to verify accuracy instantly.

Container
SOLUTION

Intermodal Rail: Container OCR API

Automate intermodal rail operations with our high-accuracy Container OCR API. Upload rail yard captures to test our ISO 6346 extraction for free. Built for high-speed logistics.

Container
SOLUTION

ERP Integration: Container OCR API

Integrate container OCR data directly into your ERP system. Upload logistics photos to test our ISO 6346 extraction for free and eliminate manual data entry.

Container
SOLUTION

TOS Integration: Container OCR API

Integrate high-accuracy Container OCR directly into your Terminal Operating System (TOS). Upload terminal CCTV captures to test our ISO 6346 extraction for free.

Container
SOLUTION

Warehouse Management Systems: Container OCR API

Automate your Warehouse Management System (WMS) receiving process. Upload loading dock captures to test our high-accuracy Container OCR API for free.

Container
SOLUTION

Yard Management Systems: Container OCR API

Automate your Yard Management System (YMS) with our high-accuracy Container OCR API. Upload yard captures to test our ISO 6346 extraction for free.

Container

Technical Comparisons & Integrations

Explore platform integrations and competitive analysis

From tutorial to production in 5 minutes.

You've seen the code. Now get your API key, grab your 200 free credits, and see it work with your own images. No credit card required.

Instant Access Cancel Anytime 99.9% Uptime