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.

200 free credits = 100 Driver License scans, no credit card. Then from $5 for 500 credits, pay as you go. See pricing

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 · PDF · TIFF  ·  up to 500 files · max 4.5 MB each

No document handy?

No files selected
Need more testing? Create a free account to get 200 free credits (equals 100 Driver License scans).

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 Driver License OCR Solutions

SOLUTION

Indonesian SIM OCR API

Extract NIK, identity, and category data from Indonesian driver's licenses (Surat Izin Mengemudi). Test our low-latency, edge-routed API with a free image upload.

Driver License OCR
SOLUTION

UK Driving Licence OCR API

Extract name, licence number (field 5), address (field 8), dates and categories from UK DVLA driving licences as JSON. Free upload test and 100 free API scans.

Driver License OCR
SOLUTION

US Driver License Scanner API & SDK

Scan US driver's licenses from all 50 states with a REST API or our Python and Node SDKs. Extract name, DOB, address and the Document Discriminator (DD). 100 free scans.

Driver License OCR
SOLUTION

Brazilian CNH OCR API

Extract CPF, RG, and identity fields from Brazilian Carteira Nacional de Habilitação (CNH) instantly. High-accuracy OCR API deployed on edge networks for fast LatAm eKYC.

Driver License OCR
SOLUTION

CPF Extraction from Driver License API

Accurately extract the CPF (Tax ID) and RG from Brazilian driver licenses (CNH). Try our free image upload tool and integrate our fast, edge-routed OCR API.

Driver License OCR
SOLUTION

Document Discriminator (DD) Extraction API

Instantly extract the Document Discriminator (DD) and audit numbers from US driver's licenses. Test our edge-routed OCR API for free using image uploads.

Driver License OCR
SOLUTION

EU Driving Licence OCR API

Accurately parse numbered fields (1, 4a, 9) from European driving licences. Try our fast, edge-routed OCR API with a free image upload test.

Driver License OCR
SOLUTION

Malaysian Lesen Memandu OCR API

Extract the IC number, identity fields, and vehicle classes from Malaysian driving licenses (Lesen Memandu). Test our edge-routed API with a free image upload.

Driver License OCR

Technical Comparisons & Integrations

Explore platform integrations and competitive analysis

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.

Instant Access Cancel Anytime No Credit Card