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
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
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.
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.
Automated Gate Systems: Container OCR API
Automate terminal gates with our high-accuracy Container OCR API. Upload your own CCTV images to test our ISO 6346 extraction for free. Built for moving vehicles.
Container OCR API for Australian Logistics
High-accuracy ISO 6346 container number extraction for Australian ports and intermodal yards. Upload your image for a free test today to see instant results.
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.
Industrial Container Code Recognition (CCR)
Extract ISO 6346 container numbers from challenging terminal environments. High-accuracy OCR featuring 180-degree rotation invariance and shadow mitigation.
Container OCR API for Malaysian Logistics
Automate Port Klang and local logistics yards with our robust Container OCR API. Upload a challenging container image for a free accuracy test today.
Container OCR API for Netherlands Logistics
Automate Rotterdam and Dutch inland terminals with our high-accuracy ISO 6346 Container OCR API. Upload your image for a free test today to verify accuracy.
Container OCR API for Saudi Arabia Supply Chains
Scale Saudi logistics and Vision 2030 smart ports with our high-throughput Container OCR API. Upload a challenging image for a free accuracy test today.
Container OCR API for Singapore Terminals
High-throughput ISO 6346 container extraction for Singapore's automated transshipment hubs. Upload an image for a free real-time accuracy test.
Technical Comparisons & Integrations
Explore platform integrations and competitive analysis
Google Cloud Vision vs. StructOCR API for Shipping Containers
Comparing generic enterprise OCR solutions like Google Cloud Vision against StructOCR's purpose-built API for ISO 6346 shipping container recognition.
Add Container OCR to Your Lovable.dev App in 5 Minutes
Step-by-step guide to integrating the StructOCR shipping container API into a Lovable.dev app. Build logistics and yard management tools with zero backend.
Manual TOS Entry vs. Container OCR Automation API
Analyzing the ROI and operational efficiency of replacing manual gate checkers with an automated Container OCR API in logistics yards.
Add Container OCR to Your Replit App in 5 Minutes
Step-by-step guide to integrating the StructOCR shipping container API into a Replit application. Build logistics and yard management tools using Replit Agent and Secrets.
Tesseract OCR vs. StructOCR API for ISO 6346 Container Numbers
A technical comparison for developers evaluating open-source Tesseract vs. a dedicated cloud API for extracting shipping container numbers.
Add Container OCR to Your v0 App in 5 Minutes
Step-by-step guide to integrating the StructOCR shipping container API into a v0 by Vercel app. Build logistics and yard management tools with zero backend.
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.