Damage Inspection: Container OCR API

Instantly link container damage photos to the correct digital record. Upload your local inspection yard captures to test our extraction accuracy for free, easily handling rust, dents, and heavy weathering.

A weathered shipping container undergoing damage inspection, with the extracted ISO 6346 code and a free test upload button.

The Challenge of M&R Visual Audits

Maintenance and Repair (M&R) operations require meticulous documentation. When inspectors photograph damaged containers, manually linking those images to the correct Equipment Interchange Receipt (EIR) is slow and error-prone. The physical condition of damaged containers—featuring heavy rust, deep dents across corrugated text, peeling paint, and dirt—causes standard optical character recognition to fail completely. 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.

Resilient Extraction for Harsh Conditions

Delivered strictly as a high-performance REST API to ensure seamless integration into any M&R workflow or mobile application without heavy SDK dependencies, this endpoint is powered by our Logistics Container OCR engine. It utilizes advanced deep-learning filters to reconstruct characters obscured by rust or physical distortion. The engine applies strict ISO 6346 validation on the fly, instantly calculating check digits to guarantee perfect data integrity before attaching the photos to your liability audit trail.

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 →

Damage & Inspection Scenarios

Automated EIR Generation

Accelerate the creation of Equipment Interchange Receipts. Snap a photo of the container doors, and the system automatically extracts the ID to populate the damage report. Ready to scale your M&R operations? View flexible pricing to secure maximum processing limits for your depot.

Automated Gate Damage Portals

Integrate with multi-camera damage inspection portals at the terminal gate. Instantly index 360-degree high-resolution images of the container directly to the extracted ISO code.

Empty Depot Management

Streamline empty container handling by quickly identifying which units require maintenance, washing, or structural repair before being dispatched back to shipping lines.

Liability & Claims Auditing

Create a bulletproof digital audit trail. By indelibly linking the time-stamped damage photo to the validated container number, you eliminate downstream disputes over damage responsibility.

Technical Specs

  • Error Correction: Built-in ISO 6346 checksum verification acts as a powerful error-correction tool, allowing the engine to mathematically deduce a single obscured character if rust or dents cover it.
  • Edge Optimization: Deployed on Cloudflare's edge network, ensuring ultra-low t1/t2 latency for rapid responses on mobile networks in remote yards.
  • Input Versatility: Fully supports raw Base64 strings, direct multipart file uploads, and public image URLs—ideal for offline-first mobile inspection apps.
  • Perspective Transformation: Algorithms automatically flatten and correct skewed photos taken by inspectors standing close to the container.

Key Features

  • Free Image Testing: Instantly upload highly weathered images from your actual yard to test extraction accuracy before writing any integration code.
  • Standardized Output: Returns a unified `container_number` string while perfectly isolating the 3-letter Owner Code, 1-letter Category, 6-digit Serial, and Check Digit in a parsed object.
  • Damage Tolerance: Advanced filtering mitigates structural deformations, peeling paint, heavy rust, and dirt common on aging shipping containers.

Integration & AI Prompts

Call the endpoint directly via HTTP. The API flexibly accepts standard image URLs, direct multipart file uploads, or Base64-encoded strings, making it perfect for integration into inspector mobile tablets or automated camera portals.

import requests
import base64

# Prepare Base64 Image from an inspector's mobile tablet
with open("damaged_container_photo.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 Inspection 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.

{
  "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 photos of heavily rusted containers for free?

Absolutely. You can upload photos directly on our platform to test how the OCR engine handles your worst-case scenarios—including rust, dents, and dirt—completely free of charge.

What happens if a character is completely obscured by a dent or peeling paint?

Because the API enforces strict ISO 6346 logic, if a single digit in the serial number is obscured but the rest of the code is legible, the engine utilizes the calculated check digit to intelligently verify and reconstruct the missing character.

Can inspectors upload images directly from their mobile devices without exposing them publicly?

Yes. The API natively accepts direct file uploads and Base64-encoded strings directly from your mobile frontend or backend, ensuring sensitive damage photos never need to be hosted on public URLs.

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