Philippine LTO Driver License OCR API

Automate eKYC and fleet onboarding in the Philippines. Instantly extract restriction codes, conditions, and core identity data from Land Transportation Office (LTO) driver's licenses. Upload a sample image below to test the extraction accuracy for free.

Diagram showing the OCR API scanning a Philippine LTO driver's license, accurately extracting the license number and specific restriction codes.

The Complexity of Philippine LTO Licenses

The Philippine driving license, issued by the Land Transportation Office (LTO), presents unique challenges for automated data extraction. Standard text-recognition engines frequently fail to accurately parse the highly specific 'Restriction Codes' (e.g., 1 for motorcycles, 2 for light vehicles) and 'Conditions' (e.g., A for wearing eyeglasses), which are critical for determining a driver's legal operating capacity. Additionally, varying card materials and temporary paper licenses create optical inconsistencies. To see how our layout-aware identity models overcome these specific regional data extraction challenges, explore our core driver license OCR capabilities.

Edge-Routed Speed & Zero-SDK Architecture

For the Southeast Asian market, mobile application size and network reliability are critical. We deliver our LTO OCR engine as a pure REST API, completely eliminating the need to force bloated SDKs onto your users' devices. Our architecture is natively deployed on Cloudflare's global edge network, meaning API requests originating from Metro Manila or Cebu are processed at the nearest local node for lightning-fast TTFB (Time to First Byte). Whether you send a direct file upload or a Base64-encoded string, our engine returns structured JSON instantly.

Live Demo: Driver License OCR Scanner

No registration required. Upload a file to test the extraction.

1
Upload
2
Results

Drop files here or click to browse

JPG · PNG · WebP  ·  up to 500 files · max 4.5 MB each

No files selected

Ready to use this in production? Get 20 free API calls — no credit card needed.

Get 20 Free API Calls →

High-Growth Use Cases in the Philippines

Ride-Hailing & Logistics Onboarding

Automate gig-economy fleet registration. Instantly verify if a new driver holds the correct Restriction Code 1 (motorcycle) or 2/3 (commercial vehicles) before authorizing them to accept bookings. Read more about our mobility driver verification solutions.

Digital Wallet & Fintech eKYC

Accelerate user onboarding for Philippine e-wallets and neobanks. Instantly extract identity fields from the LTO license to cross-reference with national compliance databases. To remove cross-border fiat friction, you can manage your enterprise API subscription natively using USDT/USDC. Explore our flexible pricing plans.

Vehicle Rental & Tourism

Streamline car and scooter rentals across the Philippines. Capture the driver's details, agency code, and license expiration accurately using just a smartphone photo, removing manual data entry bottlenecks at the rental counter.

Technical Specs

  • Edge Processing Architecture: Deployed entirely on Cloudflare Workers, ensuring that API requests from Southeast Asia are handled by regional edge nodes for near-zero routing latency.
  • Input Versatility: Fully supports multipart file uploads and raw Base64 strings, eliminating the need to compile and maintain heavy native Android/iOS SDKs.
  • Base64 Auto-Cleansing: Our API intelligently sanitizes malformed Base64 payloads (e.g., stripping carriage returns and spaces) prior to processing.
  • Cryptocurrency Payments: Designed for global SaaS compliance and convenience, developers can fund API usage seamlessly via traditional credit cards or Web3-native USDT/USDC.

Key Features

  • Restriction Code Extraction: Contextually isolates the specific LTO restriction numbers (e.g., 1, 2, 3) and maps them to the `vehicle_class` field for immediate fleet authorization.
  • Conditions Parsing: Accurately extracts driving conditions (e.g., Condition A, B, C) and captures supplementary data like Blood Type and Weight into the `extra_details` object.
  • Date Standardization: Natively converts the local date formats printed on the license into strict, database-ready `YYYY-MM-DD` ISO strings.

Integration & AI Prompts

Integrating our API into your backend takes minutes. We natively process direct file uploads, public URLs, and Base64-encoded strings—automatically stripping out illegal whitespaces or newlines to ensure your requests never fail. For comprehensive endpoint parameters, consult our developer documentation.

import requests
import base64

# 1. Prepare Base64 Image of the Philippine LTO License
with open("lto_license_sample.jpg", "rb") as image_file:
    base64_image = base64.b64encode(image_file.read()).decode('utf-8')

url = "https://api.structocr.com/v1/driver-license"
headers = {
    "x-api-key": "YOUR_API_KEY",
    "Content-Type": "application/json"
}

# Pass the pure Base64 string directly
payload = {
    "img": base64_image 
}

response = requests.post(url, headers=headers, json=payload)
result = response.json()

if result.get('success'):
    data = result['data']
    print(f"✅ License Number: {data['document_number']}")
    print(f"✅ Name: {data['surname']}, {data['given_names']}")
    print(f"✅ Restriction Codes: {data['vehicle_class']}")

Standardized JSON Output

Observe how the unique data points of a Philippine LTO license are mapped into a standardized schema. Crucial restriction codes are mapped to `vehicle_class`, while localized fields like conditions and blood type are stored in `extra_details`.

{
  "success": true,
  "data": {
    "type": "drivers_license",
    "country_code": "PHL",
    "region": "NCR",
    "document_number": "N01-89-123456",
    "personal_number": null,
    "surname": "DELA CRUZ",
    "given_names": "JUAN MIGUEL",
    "sex": "M",
    "date_of_birth": "1985-11-20",
    "place_of_birth": null,
    "date_of_issue": "2023-11-20",
    "date_of_expiry": "2033-11-20",
    "date_of_first_issue": null,
    "issuing_authority": "LTO",
    "address": "123 RIZAL AVENUE, MANILA, METRO MANILA 1000",
    "vehicle_class": "1, 2",
    "extra_details": {}
  }
}

Frequently Asked Questions

Can I test the Philippine LTO driver license OCR before purchasing?

Yes! You can use the free image upload testing widget at the top of this page. Upload a sample photo of an LTO license to evaluate the extraction speed and accuracy instantly.

Do I need to install a heavy SDK in my mobile app?

No, StructOCR operates as a pure REST API. You can simply capture the document image using the user's native camera, convert it to a Base64 string, and POST it to our endpoint. This approach drastically reduces your app's bundle size.

Does the API extract LTO Restriction Codes?

Yes. The API is specifically trained to recognize the layout of Philippine licenses. It extracts the Restriction Codes (e.g., 1, 2, 3) and places them inside the structured `vehicle_class` field within the JSON response.

Explore More Drivers-license Solutions

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