Explorer
Syncing—

Text StatisticsService

ocr-document-parsing

Text statistics only: POST JSON {"text": "..."} to /v1/ocr and get a JSON object with chars, words, lines and pages_hint (pages are counted by form-feed characters). Reading images or PDFs (OCR) is not available; a request with url instead of text returns a JSON 400 error saying so. Identical input gives identical output on every supplier.

Active Suppliers
2
of 2 ever configured
Service Info
Service ID
ocr-document-parsing
Compute Units / Relay
100,000
Active Applications
2
Relay Mining EMA
1 relays
Service Metadata Cardsource: on-chain metadata (LCD)
{10 items
"schema":"pocket-service-card/v1"
"description":"Text statistics only: POST JSON {"text": "..."} to /v1/ocr and get a JSON object with chars, words, lines and pages_hint (pages are counted by form-feed charact..."
"rpc_types":[1 item
0:{4 items
"type":"REST"
"intent":"expected"
"backend_hint":"ocr-document-parsing HTTP server on :8080; POST /v1/ocr, GET /v1/health + /v1/version."
"notes":"Every response is a JSON object; errors are JSON 4xx with an error field."
}
]
"apis":[1 item
0:"ocr-api"
]
"specs":[1 item
0:{4 items
"kind":"openapi"
"api":"ocr-api"
"url":"https://services.supnodes.com/specs/ocr-document-parsing/openapi.json"
"notes":"Machine-readable OpenAPI 3.0.3 contract for this service."
}
]
"access":"public"
"results":"deterministic"
"serving":{7 items
"backend":"Single-process Python 3 HTTP server, standard library only, behind a RelayMiner (rest backend). No auth toward the backend; callers cannot send headers. No upst..."
"implementations":[1 item
0:"ocr-document-parsing >= 1.0"
]
"docs":"https://services.supnodes.com/specs/ocr-document-parsing/README.md"
"min_disk_gb":1
"min_ram_gb":1
"healthcheck":[3 items
0:{4 items
"rpc_type":"REST"
"request":{2 items
"path":"/v1/version"
"method":"GET"
}
"expect":{2 items
"json_path":"$.service"
"matches":"^ocr-document-parsing$"
}
"notes":"Identity probe: pins the backend to this service so a wrong backend cannot be staked under this id."
}
1:{4 items
"rpc_type":"REST"
"request":{2 items
"path":"/v1/health"
"method":"GET"
}
"expect":{2 items
"json_path":"$.status"
"matches":"^ok$"
}
"notes":"Readiness probe."
}
2:{4 items
"rpc_type":"REST"
"request":{3 items
"path":"/v1/ocr"
"method":"POST"
"body":{1 item
"text":"Invoice from Acme Corp, total $42.00, dated 2026-01-15."
}
}
"expect":{2 items
"json_path":"$.words"
"matches":"^8$"
}
"notes":"Functional probe: a one-line text of 8 words. No upstream calls."
}
]
"notes":"Upstream: none. Gateway operators: configure as type passthrough with rpc_types ["rest"]."
}
"docs":"https://services.supnodes.com/specs/ocr-document-parsing/README.md"
"updated":"2026-09-30"
}