BIC Code Extraction: Container OCR API
Identify container ownership instantly. Upload your raw logistics captures to test our BIC code extraction accuracy for free, isolating owner codes perfectly from surrounding text.

The Challenge of Equipment Identification
Identifying container ownership quickly is critical for leasing companies and port authorities. The Bureau International des Conteneurs (BIC) assigns a unique 3-letter code to every owner, but extracting this specific string from a container door covered in decals, rust, and operational data is challenging. Standard text readers often confuse the BIC code with max gross weight text or logistics branding. To see how our engine cuts through this visual noise to isolate the exact owner, you can upload a test image to explore our core Container OCR capabilities completely free.
Precision Parsing for Owner Codes
Delivered strictly as a lightweight REST API to ensure seamless integration, this endpoint is powered by our Logistics Container OCR engine. It doesn't just read random text; it understands the specific structure of shipping codes. The engine applies strict ISO 6346 validation to confidently separate the 3-letter BIC code from the category identifier and serial number, guaranteeing precise ownership data for your software.
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
BIC Code Application Scenarios
Leasing Fleet Tracking
Automatically identify which containers belong to your leasing fleet as they pass through global checkpoints. Ready to scale your tracking software? View flexible pricing to secure maximum API limits.
Automated Depot Billing
Speed up empty depot billing by instantly categorizing inbound containers by their BIC owner code, routing maintenance invoices to the correct shipping line automatically.
Customs & Port Authority
Cross-reference the visually extracted BIC code with the declared carrier on the digital manifest to flag unauthorized equipment usage or smuggling risks.
Logistics App Development
Integrate precise BIC extraction into your mobile freight apps, allowing truck drivers to scan and verify equipment ownership before hooking up a chassis.
Technical Specs
- Targeted Parsing: The algorithm perfectly isolates the 3-letter BIC code from the category identifier (U, J, Z) and the trailing serial numbers.
- Edge Optimization: Infrastructure is routed through Cloudflare's global edge network, ensuring ultra-low latency for instant ownership verification.
- Input Versatility: Fully supports raw Base64 strings, direct multipart file uploads, and public image URLs—preventing the need to host sensitive images publicly.
- Dependency-Free: Pure REST architecture prevents language lock-in, integrating seamlessly with any modern logistics software stack.
Key Features
- Free Image Testing: Instantly upload images to test the extraction accuracy of the owner code before committing to integration.
- Granular Output: Cleanly separates the alphanumeric string, providing direct access to the `owner_code` variable in a structured JSON object.
- Harsh Environment Tolerance: Advanced visual filters mitigate deep shadows, peeling paint, and rust that commonly obscure ownership decals on older equipment.
Integration & AI Prompts
Call the endpoint directly via HTTP. The API is designed for maximum input versatility, natively accepting standard image URLs, direct multipart file uploads, or Base64-encoded strings.
import requests
import base64
# Prepare Base64 Image to extract the BIC Code
with open("container_door_capture.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("Extracting BIC Owner Code...")
response = requests.post(url, headers=headers, json=payload)
result = response.json()
if result.get('success'):
data = result['data']
parsed = data.get('parsed', {})
print("✅ Ownership Data Extracted!")
print(f"BIC Owner Code: {parsed.get('owner_code')}")
print(f"Full ISO Code: {data.get('container_number')}")
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 while breaking down the precise BIC owner code for immediate routing.
{
"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 BIC code extraction API for free?
Absolutely. You can upload container images directly on our platform to see how the engine isolates the 3-letter owner code from the rest of the text completely free of charge.
What happens if the BIC code is partially obscured by a decal or rust?
Because the API utilizes deep-learning models trained specifically on ISO 6346 structures, it can often infer and mathematically verify partially obscured owner codes using the context of the check digit.
Do you provide SDKs for integrating this into our software?
We focus entirely on providing a lightning-fast, universal REST API to prevent dependency conflicts across your stack. This ensures simple integration via standard HTTP requests whether you use Python, Node.js, or C#.
Explore More Container Solutions
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.
Enterprise Container Code Reader Software API
Integrate industrial container code reader software into your TOS or WMS via a lightweight REST API. Upload your images for a free accuracy test today.
Container OCR API for Canadian Terminals
High-accuracy ISO 6346 container number extraction built for extreme Canadian weather. Overcome snow, ice, and glare. Upload an image for a free test today.
Automated Crane Tally: Container OCR API
Automate crane tally operations with our Container OCR API. Upload STS or RTG crane camera captures to test our ISO 6346 extraction for free. Handles 180-degree rotations effortlessly.
Customs Clearance: Container OCR API
Accelerate cross-border freight clearance with our Container OCR API. Upload border checkpoint images to test our ISO 6346 extraction for free. Eliminate manual customs delays.
Damage Inspection: Container OCR API
Automate container damage inspection with our high-accuracy OCR API. Upload photos of dented or rusted containers to test ISO 6346 extraction for free.
Empty Depot Management: Container OCR API
Streamline your empty container depot operations with our high-accuracy OCR API. Upload yard captures to test our ISO 6346 extraction for free and eliminate lost units.
Container OCR API for European Terminals
High-accuracy ISO 6346 container number extraction for European automated ports and rail networks. Upload your image for a free test to verify accuracy instantly.
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.
Technical Comparisons & Integrations
Explore platform integrations and competitive analysis
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.
Add Container OCR to Your Bolt.new App in 5 Minutes
Step-by-step guide to integrating the StructOCR shipping container API into a Bolt.new app. Build logistics and yard management tools right in your browser.
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.
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.