Container OCR API for Malaysian Logistics

Modernize terminal gates and inland logistics parks across Malaysia. Accurately extract ISO 6346 codes rapidly, without heavy software integrations. Upload your image for a free test.

Top-down view of a shipping container at a Malaysian logistics hub, showing the extracted EMCU 850473 0 container number.

Upgrading Malaysia's Logistics Infrastructure

As Malaysia cements its position as a critical manufacturing and shipping hub in Southeast Asia, local terminals and inland depots are transitioning from manual clipboard logging to automated yard management. This transition is often stalled by expensive, proprietary OCR hardware and software SDKs that are difficult for local IT teams to maintain. Furthermore, unpredictable tropical weather degrades image quality. For a deeper dive into overcoming these environmental hurdles, see our core Container OCR capabilities.

StructOCR: The Lightweight Integration Partner

We provide a pure, high-performance REST API that acts as the foundational intelligence for your logistics upgrade, completely eliminating the need for complex local SDK installations. Powered by our Logistics Container OCR engine, it easily integrates into any local WMS or TOS. The API includes strict ISO 6346 validation logic to mathematically verify codes before your database records them, ensuring accuracy at scale.

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 Malaysian Market

Port Gate Automation (Port Klang / PTP)

Process inbound and outbound trucks instantly without manual data entry. Ready to scale your integration? View flexible pricing, featuring modern payment rails like USDC/USDT to bypass traditional cross-border financial hurdles.

Empty Container Depots

Accelerate gate turnaround times at empty container yards. Depot workers can easily scan container numbers via mobile devices utilizing our API's direct Base64 handling.

Manufacturing Export Loading

Automate dock doors at major manufacturing facilities in Penang or Johor. Scan and log shipping container numbers seamlessly as they attach to loading bays.

Inland Freight Rail

Track intermodal container movement accurately across the national rail network with extreme motion and angle tolerance.

Technical Specs

  • Validation: Built-in ISO 6346 checksum verification logic.
  • APAC Edge Optimization: Infrastructure routed through Cloudflare's regional edge network ensures highly competitive t1/t2 latency for Malaysian logistics software providers.
  • Rotation Invariance: Automatically corrects and reads upside-down text generated by overhead yard cameras.
  • Input Versatility: Fully supports raw Base64 strings and direct multipart file uploads.

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.
  • Zero SDK Friction: Connect existing logistics platforms using standard API calls without needing to update or cross-compile local software libraries.
  • Harsh Environment Recovery: Intelligent filters isolate alphanumeric characters from rusted corrugated metal surfaces.

Integration & AI Prompts

Call the endpoint directly via standard HTTP. The API securely processes raw Base64 strings, direct multipart file uploads, or standard image URLs.

import requests
import base64

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

    if result.get('success'):
        data = result['data']['parsed']
        print("✅ Extraction Complete!")
        print(f"Container ID: {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

Receive clean, actionable JSON data immediately to populate your yard management dashboards.

{
  "success": true,
  "data": {
    "container_number": "EMCU8504730",
    "is_valid": true,
    "confidence": "High",
    "parsed": {
      "owner_code": "EMC",
      "category": "U",
      "serial_number": "850473",
      "check_digit": "0"
    }
  }
}

Frequently Asked Questions

Can I test the API with my own depot images for free?

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

Do we need to install software packages on our local servers?

No. StructOCR operates entirely as a cloud API. Your systems simply send image payloads via standard HTTP, removing the maintenance headache of local SDKs.

Can our software company pay via cryptocurrency?

Yes, we fully support USDT and USDC payments alongside standard methods, allowing Malaysian SaaS platforms to manage infrastructure costs with borderless flexibility.

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