📍 Pixel Perfect

Coordinate Precision Tool

Get exact bounding box coordinates for every extracted field. Perfect for verification, highlighting, or building interactive document overlays in your applications. No guesswork - just pixel-perfect accuracy.

// Extract with coordinate proof using query collection
const formData = new FormData();
formData.append('document', contractFile);
formData.append('processor_id', 'query-collection-uuid');

const response = await fetch('/api/ask/batch', {
  method: 'POST',
  headers: { 'X-API-Key': 'your-api-key' },
  body: formData
});

const job = await response.json();
const statusResponse = await fetch(`/api/jobs/${job.id}`, {
  headers: { 'X-API-Key': 'your-api-key' }
});

const document = await statusResponse.json();

// Get field with precise coordinates
const totalField = document.data.find(f => f.field_name === 'contract_total');

// Exact bounding box coordinates
console.log('Value:', totalField.value); // "$60,000"
console.log('Exact location:', totalField.geometry[0].bbox); // [450, 500, 550, 500, 550, 520, 450, 520] - array of 8 floats representing 4 points
console.log('Page dimensions:', document.page_metadata["1"].dimensions);
console.log('Confidence:', totalField.confidence); // 0.98
Exact bounding boxes for every answer
🎯

Pixel Perfect

Exact bounding box coordinates (array of 8 floats representing 4 points) for every extracted field

🔍

Verification Ready

Visual proof of extraction accuracy with exact source locations

🎨

Interactive Overlays

Build highlighting and annotation features using coordinate data

Coordinate Precision Demo

Interactive demo coming soon...

Perfect For Your Applications

Build interactive document experiences

Use exact coordinates to create verification tools, highlighting features, and interactive overlays that your users will love.

Verification

Audit extraction accuracy by highlighting exact source locations in documents

Example applications:

Show where totals were found

Verify vendor information

🖍️

Highlighting

Build document viewers with automatic field highlighting and annotations

Example applications:

Highlight extracted fields

Show confidence levels visually

📝

Annotation

Add interactive annotations and notes to document fields

Example applications:

Add review comments

Mark fields for approval

🔗

Integration

Feed coordinate data to downstream systems for advanced processing

Example applications:

Connect to ERP systems

Build custom dashboards

Coordinate Precision vs Manual Methods

Why pixel-perfect coordinates beat guesswork

Replace manual positioning and approximation with exact, verifiable coordinate data

Unique: Exact bounding box coordinates (array of 8 floats representing 4 points) + confidence scores for every extracted field

NinjadocAITemplate OCRGeneric LLM/AI API
Natural Language Questions
~
📍Answer + Coordinate Proof
~
5-Minute Integration
~
💲Transparent Pricing
~
🔧TypeScript SDK + React Components
🧠Context Understanding
~
🎯Zero Configuration Required
~
📐Handles Document Layout Variations
~
🔌Developer-Friendly REST API
~

Trusted by Developers

Pixel-perfect precision delivered

"The coordinate precision is exactly what we needed for our document verification system. Every bounding box is pixel-perfect."

David Lee

Software Engineer

"Building interactive overlays was so much easier with exact coordinates. No more guesswork or manual positioning."

Anna Martinez

Product Manager

Frequently Asked Questions

Everything you need to know

What format are the coordinates provided in?

Coordinates are provided as array of 8 floats representing 4 points relative to the page dimensions. Each coordinate includes confidence scores and the extracted text.

How accurate are the bounding boxes?

Our coordinate precision provides pixel-perfect bounding boxes with high accuracy, making them ideal for verification, highlighting, and interactive overlays.

Can I use coordinates for document highlighting?

Yes, the coordinates are perfect for building highlighting features, annotations, and interactive document viewers in your applications.

What APIs support coordinate precision?

Coordinate precision is available as an add-on to all our extraction APIs. Simply include 'include_coordinates': true in your request.

How do coordinates help with verification?

Coordinates allow you to visually verify extractions by showing exactly where in the document the information was found, eliminating uncertainty.

Can I use this for mobile applications?

Absolutely! The coordinate data works perfectly for mobile document viewers and interactive overlays on any platform.