/v1/words
Word-level boxes & confidence
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/ocr-api/v1/words" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ocr-api/v1/words", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ocr-api/v1/words");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/ocr-api/v1/words",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"count": 58,
"words": [
{
"bbox": {
"x0": 38,
"x1": 167,
"y0": 34,
"y1": 85
},
"text": "Mild",
"confidence": 96.5
},
{
"bbox": {
"x0": 198,
"x1": 477,
"y0": 36,
"y1": 104
},
"text": "Splendour",
"confidence": 96.8
},
{
"bbox": {
"x0": 504,
"x1": 559,
"y0": 37,
"y1": 88
},
"text": "of",
"confidence": 97
},
{
"bbox": {
"x0": 584,
"x1": 671,
"y0": 37,
"y1": 91
},
"text": "the",
"confidence": 93.3
},
{
"bbox": {
"x0": 698,
"x1": 1091,
"y0": 40,
"y1": 93
},
"text": "various-vested",
"confidence": 92.4
},
{
"bbox": {
"x0": 1119,
"x1": 1294,
"y0": 40,
"y1": 111
},
"text": "Night!",
"confidence": 96.2
},
{
"bbox": {
"x0": 105,
"x1": 304,
"y0": 111,
"y1": 162
},
"text": "Mother",
"confidence": 95.5
},
{
"bbox": {
"x0": 331,
"x1": 385,
"y0": 112,
"y1": 163
},
"text": "of",
"confidence": 93.3
},
{
"bbox": {
"x0": 411,
"x1": 824,
"y0": 112,
"y1": 184
},
"text": "wildly-working",
"confidence": 91.9
},
{
"bbox": {
"x0": 851,
"x1": 1048,
"y0": 116,
"y1": 167
},
"text": "visions!",
"confidence": 96.5
},
{
"bbox": {
"x0": 1077,
"x1": 1195,
"y0": 116,
"y1": 168
},
"text": "hail",
"confidence": 36.1
},
{
…