TOS Integration: Container OCR API
Feed perfectly validated ISO 6346 container data directly into your Terminal Operating System (TOS). Upload your local terminal captures to test our extraction accuracy for free, eliminating manual data entry errors.

The Data Integrity Gap in Terminal Operations
Terminal Operating Systems (TOS) are only as effective as the data fed into them. When terminal tractors, cranes, and gate systems rely on manual data entry or outdated OCR, corrupt container numbers enter your TOS database. This leads to lost containers, delayed vessel operations, and massive exception-handling overhead. To see how our engine acts as a firewall against bad data, you can upload a test image to explore our core Container OCR capabilities completely free.
A Clean API Engineered for TOS Ecosystems
Delivered strictly as a high-performance REST API to ensure seamless integration into any proprietary or commercial TOS (such as Navis N4 or CyberLogitec) without heavy SDK dependencies, this endpoint is powered by our Logistics Container OCR engine. It handles complex visual environments effortlessly. The engine applies strict ISO 6346 validation on the fly, instantly calculating check digits to guarantee that only 100% accurate Container Codes trigger your automated TOS workflows.
Live Demo: Container OCR
No registration required. Upload a file to test the extraction.
Drop files here or click to browse
JPG · PNG · WebP · up to 500 files · max 4.5 MB each
Ready to use this in production? Get 20 free API calls — no credit card needed.
Get 20 Free API Calls →TOS Workflow Automation
Automated Yard Allocation
Instantly verify container IDs as they enter the yard block, allowing the TOS to automatically assign optimal stacking positions without clerk intervention. Ready to scale your terminal infrastructure? View flexible pricing to secure maximum API processing limits.
Vessel Stowage Reconciliation
Automatically match OCR reads from STS cranes against the digital Baplie stowage plan, alerting the TOS immediately if a container is being loaded out of sequence.
Gate-to-TOS Synchronization
Process truck arrivals faster by pushing perfectly validated container numbers directly from the physical gate pedestal into the TOS gate module.
Equipment Handover Logs
Create reliable digital handshakes between terminal tractors and RTG cranes, updating the TOS inventory database in real-time with zero manual input.
Technical Specs
- Edge Optimization: Deployed on Cloudflare's global edge network, ensuring ultra-low t1/t2 latency to keep high-frequency TOS event streams running smoothly.
- Input Versatility: Fully supports raw Base64 strings, direct multipart file uploads, and public image URLs—ideal for highly secure, air-gapped port networks.
- Validation: Built-in ISO 6346 checksum verification mathematically eliminates downstream database corruption in your TOS.
- High Concurrency: Robust backend architecture supports simultaneous API calls across hundreds of terminal nodes without throttling.
Key Features
- Free Image Testing: Instantly upload highly obscured images from your actual terminal environment to test extraction accuracy before committing to integration.
- 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, whether your TOS is built on Java, C#, or legacy frameworks.
Integration & AI Prompts
Call the endpoint directly via HTTP from your TOS middleware. To maintain maximum security within port intranets, the API flexibly accepts direct multipart file uploads or Base64-encoded strings, avoiding the need to expose camera feeds via public URLs.
import requests
import base64
# Prepare Base64 Image from terminal middleware
with open("tos_event_capture_992.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 Terminal 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 TOS.
{
"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 images from our terminal before integrating it into our TOS?
Absolutely. You can upload images directly on our platform to test how the OCR engine handles your specific camera angles, lighting conditions, and operational challenges completely free of charge.
Do we need to expose our terminal camera feeds to public URLs?
No. The API is designed for secure, local integration, natively accepting direct file uploads and Base64-encoded strings so your terminal operations remain strictly confidential.
Will this integrate with proprietary or custom-built Terminal Operating Systems?
Yes. Because we provide a standard HTTP REST API that returns structured JSON, it acts as a universal building block that can be consumed by any modern or legacy software stack.
Explore More Container Solutions
BIC Code Extraction: Container OCR API
Extract BIC Owner Codes from shipping containers instantly. Upload your images to test our high-accuracy BIC Code OCR API for free and automate equipment tracking.
How to Build a Container Recognition Scanner App
Step-by-step developer guide on how to build a custom container recognition scanner using a lightweight API. Test your image payloads for free today.
Check Digit Calculator: Container OCR API
Automate container check digit calculation with our high-accuracy OCR API. Upload images to test ISO 6346 validation for free and prevent manual data entry errors.
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