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
Ready to use this in production? Get 20 free API calls — no credit card needed.
Get 20 Free API Calls →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.
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