Car Sharing Driver Licence Capture with OCR
Extract licence fields from the uploaded front image, check expiry and category automatically, and send exceptions to review. OCR captures the data; your compliance process stays in charge of decisions.
200 free credits = 100 Driver License scans, no credit card. Then from $5 for 500 credits, pay as you go. See pricing

The Requirement
Car-sharing apps onboard drivers remotely and need licence details before the first trip. Manual review queues slow down sign-ups, especially for licences from other countries.
Capture Once, Confirm, Then Report
Extract licence fields from the uploaded front image, check expiry and category automatically, and send exceptions to review. The driver licence OCR API returns structured JSON, so the same record can feed your forms, reports, and audit trail. Driving eligibility and authenticity checks remain with the operator.
Live Demo: Driver License OCR Scanner
No registration required. Upload a file to test the extraction.
Drop files here or click to browse
JPG · PNG · PDF · TIFF · up to 500 files · max 4.5 MB each
No document handy?
Workflow Applications
App sign-up
Pre-fill document_number, date_of_expiry, vehicle_class, date_of_first_issue and require confirmation before saving.
Periodic licence re-checks
Ask for a clearer image when the document is cropped, blurred, or covered by glare.
Cross-border members
Keep extracted data separate from approval, reporting, and eligibility decisions.
Technical Specs
- Endpoint: POST https://api.structocr.com/v1/driver-license
- Inputs: JPG, PNG, WebP, or PDF as Base64 JSON; maximum 4.5MB
- Cost: 2 credits per successful request; failures are not billed
- Output: Structured JSON with normalized names, numbers, and ISO dates
- Decision boundary: OCR extracts printed data and does not verify identity, authenticity, or legal eligibility
- Regulations change: Confirm current requirements with the relevant authority before relying on any workflow
Key Features
- Data minimization: Store only the fields the regulation or process requires.
- Confirmation step: Let the customer or staff correct extracted fields before submission.
- Retention policy: Delete or mask document images according to your documented schedule.
- Independent decisions: Driving eligibility and authenticity checks remain with the operator.
Server-Side Integration
Send the driver licence image from your backend and keep only the fields your process needs.
import base64
import os
import requests
with open("license.jpg", "rb") as image_file:
image = base64.b64encode(image_file.read()).decode("ascii")
response = requests.post(
"https://api.structocr.com/v1/driver-license",
headers={"x-api-key": os.environ["STRUCTOCR_API_KEY"]},
json={"img": image},
timeout=30,
)
if response.ok:
data = response.json()["data"]
print("document_number:", data.get("document_number"))
print("date_of_expiry:", data.get("date_of_expiry"))
print("vehicle_class:", data.get("vehicle_class"))
print("date_of_first_issue:", data.get("date_of_first_issue"))
else:
print("Retake or review:", response.json().get("error"))Illustrative Response
Wholly fictional data showing the response shape. It is not a real person’s document.
{
"success": true,
"data": {
"document_number": "SAMPLE",
"date_of_expiry": "1990-01-01",
"vehicle_class": "SAMPLE",
"date_of_first_issue": "1990-01-01"
}
}Frequently Asked Questions
Does OCR make us compliant?
No. OCR speeds up data capture. Driving eligibility and authenticity checks remain with the operator.
Which fields are relevant here?
Usually document_number, date_of_expiry, vehicle_class, date_of_first_issue. Collect only what your obligation requires.
What if the photo is unreadable?
The API returns an error instead of guessing; ask for a new photo of the full document without glare.
Explore More Driver License OCR Solutions
Casino Entry and Player Registration with ID Barcodes
Scan US driver licenses and state ID cards for casino entry and player registration. Pre-fill AAMVA fields from the PDF417 barcode and route unreadable cards to a retake.
Check Cashing and Money Transfer ID Capture with PDF417
Scan US driver licenses and state ID cards for check cashing and money transfer. Pre-fill AAMVA fields from the PDF417 barcode and route unreadable cards to a retake.
Consumer Loan Application Prefill from ID Barcodes
Scan US driver licenses and state ID cards for consumer lending. Pre-fill AAMVA fields from the PDF417 barcode and route unreadable cards to a retake.
Coworking Space Member and Guest ID Registration
Scan US driver licenses and state ID cards for coworking spaces. Pre-fill AAMVA fields from the PDF417 barcode and route unreadable cards to a retake.
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.
Crypto ATM and Kiosk ID Capture with a PDF417 API
Scan US driver licenses and state ID cards for crypto ATMs and kiosks. Pre-fill AAMVA fields from the PDF417 barcode and route unreadable cards to a retake.
Delivery Driver Onboarding with a License Barcode API
Use PDF417 and AAMVA parsing for delivery platforms. Pre-fill given_names, surname, date_of_expiry, handle unreadable barcodes, and keep API credentials server-side.
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.
Equipment Rental License Intake with PDF417
Use PDF417 and AAMVA parsing for equipment rental. Pre-fill document_number, date_of_expiry, vehicle_class, handle unreadable barcodes, and keep API credentials server-side.
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.
Technical Comparisons & Integrations
Explore platform integrations and competitive analysis
Add Driver's License OCR to Your Bolt.new App in 5 Minutes
Step-by-step guide to integrating the StructOCR Driver's License scanner API into a Bolt.new app. Build car rental and mobility onboarding flows right in your browser.
Add Driver's License OCR using Cursor in 5 Minutes
Step-by-step guide to integrating the StructOCR Driver's License scanner API using the Cursor AI code editor. Build car rental and mobility onboarding flows rapidly.
Add Driver's License OCR to Your Lovable.dev App in 5 Minutes
Step-by-step guide to integrating the StructOCR Driver's License scanner API into a Lovable.dev app. Build car rental and mobility onboarding flows with zero backend.
Add Driver's License OCR to Your Replit App in 5 Minutes
Step-by-step guide to integrating the StructOCR Driver's License scanner API into a Replit application. Build car rental and mobility onboarding flows using Replit Agent and Secrets.
Add Driver's License OCR to Your v0 App in 5 Minutes
Step-by-step guide to integrating the StructOCR Driver's License scanner API into a v0 by Vercel app. Build car rental and mobility onboarding flows with zero backend.
Add VIN OCR to Your v0 App in 5 Minutes
Step-by-step guide to integrating the StructOCR VIN scanner API into a v0 by Vercel app. Build automotive and fleet tools with zero backend.
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.