Container OCR API for Saudi Arabia Supply Chains
Powering the rapid expansion of Saudi smart ports and inland logistics hubs. Accurately extract ISO 6346 codes through extreme desert glare and sandstorms. Upload your image for a free test.

Automating Logistics for Vision 2030
As Saudi Arabia rapidly expands its logistics infrastructure—from the massive Jeddah Islamic Port to the futuristic developments of NEOM—there is a massive push to eliminate manual inefficiencies. However, deploying automated scanning systems across vast desert landscapes presents severe challenges. Standard OCR algorithms fail when cameras are blinded by intense sunlight, or when container text is covered by airborne sand and dust. Local integrators need a robust, low-overhead API. For a deeper dive into overcoming these specific environmental hurdles, see our core Container OCR capabilities.
StructOCR: Engineered for Rapid National Scaling
Designed strictly as a high-performance REST API to ensure seamless integration into any new or legacy logistics software without heavy SDK dependencies, this endpoint is powered by our Logistics Container OCR engine. It features complete rotation invariance—automatically reading upside-down text from top-down yard cranes. The engine applies strict ISO 6346 validation to mathematically verify the check digit, guaranteeing absolute data integrity across massive new supply chain networks.
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
Core Applications for the Saudi Market
Smart Port Gate Automation (Jeddah / Dammam)
Process inbound and outbound freight trucks instantly. By identifying the ISO 6346 container code as the truck arrives, gates lift automatically without manual entry. Ready to scale? View flexible pricing, supporting seamless international billing via cryptocurrency (USDT/USDC).
Inland Logistics Parks & NEOM Hubs
Equip yard workers at newly constructed inland logistics parks with mobile devices. They can scan containers directly using our API's native Base64 file upload capabilities, avoiding expensive hardware scanners.
Rail Network Integration
Track intermodal container movement accurately across the expanding Saudi rail network, handling the extreme vertical angles and speeds of freight transport.
Cross-Border Customs Checkpoints
Accelerate land freight clearance by automatically cross-referencing visually extracted container numbers with digital customs manifests in real-time.
Technical Specs
- Validation: Built-in ISO 6346 checksum verification.
- Edge Optimization: Infrastructure is routed through Cloudflare's global edge network, providing low latency for API calls originating from major Saudi tech hubs.
- Rotation Invariance: Native support for 0°, 90°, 180°, and 270° orientations without manual pre-processing.
- Borderless Billing: Native support for crypto gateways (USDT/USDC) perfectly aligns with international development firms working in the region.
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 sandstorms, dust accumulation, and extreme sunlight reflection.
- Mathematical Reconstruction: If sand 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, accommodating varying connectivity at remote desert sites.
import requests
import base64
# Prepare Base64 Image from local Saudi port CCTV capture
with open("jeddah_gate_cam.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 Desert Environment 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 images for free before integrating?
Yes! You can utilize our free image test directly on the platform to upload your own challenging Saudi captures (via direct file upload) 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 without requiring you to rotate the image payload prior to calling the API.
Can our software company pay via cryptocurrency?
Yes, we fully support USDT and USDC payments alongside standard fiat methods, allowing developers working on international logistics projects in Saudi Arabia to manage infrastructure costs efficiently.
Explore More Container Solutions
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.
Container OCR API for Southeast Asia Logistics
Scale your ASEAN logistics software with our high-accuracy Container OCR API. Upload challenging yard images for a free extraction test.
Railway Portals: Container OCR API
Extract ISO 6346 codes from moving freight trains. Upload your railway portal camera captures to test our Container OCR API for free. Built for high-speed intermodal logistics.
Container OCR API for UAE Ports & Logistics
High-accuracy ISO 6346 container extraction for Dubai and UAE ports. Overcome extreme sun glare and sandstorms. Upload an image for a free test today.
Container OCR API for UK Logistics
High-accuracy container number extraction for UK ports and rail hubs. Overcome heavy rain and automate customs clearance. Upload an image for a free test.
Container OCR API for United States Logistics
Automate US port gates and intermodal yards with our high-throughput Container OCR API. Upload a challenging image for a free accuracy test today.
Weighbridge Automation: Container OCR API
Automate weighbridge data entry with our Container OCR API. Upload scale camera captures to test our ISO 6346 extraction for free. Eliminate manual logging and truck delays.
Choosing the Right Container OCR System Provider
Evaluating a container OCR system provider? Compare our high-concurrency API infrastructure. Upload your image for a free test to see our extraction accuracy.
Intermodal Rail OCR API for North America
Automate high-speed intermodal rail scanning across North America. Extract container numbers from moving trains natively. Upload your image for a free test.
ISO 6346 Validation: Container OCR API
Parse and validate ISO 6346 container codes with our high-accuracy OCR API. Upload images to test extraction and automatic check-digit calculation for free.
Technical Comparisons & Integrations
Explore platform integrations and competitive analysis
Add Container OCR using Cursor in 5 Minutes
Step-by-step guide to integrating the StructOCR shipping container API using the Cursor AI code editor. Build logistics and yard management tools rapidly.
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.
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.