Text Detection (CTPN)

Algorithmia Platform License · Internet Access · Calls Other Algorithms

Try the API

{
  "boxes": [
    {
      "confidence": 0.9979859590530396,
      "x0": 79.44827586206897,
      "x1": 502.34482758620686,
      "y0": 1107.7115814208985,
      "y1": 1127.2968255615235
    },
    {
      "confidence": 0.9967637658119202,
      "x0": 66.20689655172414,
      "x1": 184.55172413793105,
      "y0": 448.3758041381836,
      "y1": 467.1996109008789
    },
    {
      "confidence": 0.9942678213119508,
      "x0": 66.20689655172414,
      "x1": 528.8275862068965,
      "y0": 1188.2928283691406,
      "y1": 1211.4931323242188
    },
    {
      "confidence": 0.993927001953125,
      "x0": 92.6896551724138,
      "x1": 184.55172413793105,
      "y0": 796.0472219848633,
      "y1": 811.3788009643555
    },
    {
      "confidence": 0.9927926659584044,
      "x0": 52.96551724137931,
      "x1": 528.8275862068965,
      "y0": 1260.04330078125,
      "y1": 1288.346891784668
    },
    {
      "confidence": 0.992573380470276,
      "x0": 79.44827586206897,
      "x1": 211.0344827586207,
      "y0": 1040.364677734375,
      "y1": 1058.5330099487303
    },
    {
      "confidence": 0.992203414440155,
      "x0": 450.2068965517241,
      "x1": 502.34482758620686,
      "y0": 789.6683404541016,
      "y1": 807.6386868286133
    },
    {
      "confidence": 0.9913154244422911,
      "x0": 66.20689655172414,
      "x1": 475.8620689655172,
      "y0": 313.40193771362306,
      "y1": 338.44722221374514
    },
    {
      "confidence": 0.9903059005737304,
      "x0": 66.20689655172414,
      "x1": 171.3103448275862,
      "y0": 421.4535431671143,
      "y1": 440.9873968505859
    },
    {
      "confidence": 0.9895852208137512,
      "x0": 436.9655172413793,
      "x1": 502.34482758620686,
      "y0": 1038.6346249389649,
      "y1": 1056.7609356689454
    },
    {
      "confidence": 0.989071786403656,
      "x0": 92.6896551724138,
      "x1": 475.8620689655172,
      "y0": 999.827380065918,
      "y1": 1023.6387127685548
    },
    {
      "confidence": 0.9890355467796326,
      "x0": 92.6896551724138,
      "x1": 489.1034482758621,
      "y0": 1404.2117407226565,
      "y1": 1421.3304449462892
    },
    {
      "confidence": 0.9854591488838196,
      "x0": 66.20689655172414,
      "x1": 369.9310344827586,
      "y0": 501.5486389160157,
      "y1": 521.9805250549316
    },
    {
      "confidence": 0.9850743412971495,
      "x0": 66.20689655172414,
      "x1": 409.6551724137931,
      "y0": 335.74292251586917,
      "y1": 359.731255569458
    },
    {
      "confidence": 0.9845850467681884,
      "x0": 79.44827586206897,
      "x1": 502.34482758620686,
      "y0": 1084.8671469116211,
      "y1": 1103.7627740478515
    },
    {
      "confidence": 0.9839123487472534,
      "x0": 66.20689655172414,
      "x1": 264,
      "y0": 475.5889073181152,
      "y1": 494.49362564086914
    },
    {
      "confidence": 0.98190176486969,
      "x0": 66.20689655172414,
      "x1": 356.6896551724138,
      "y0": 393.6718620300294,
      "y1": 412.9733348846436
    },
    {
      "confidence": 0.9797780513763428,
      "x0": 450.2068965517241,
      "x1": 502.34482758620686,
      "y0": 768.8739179992676,
      "y1": 786.3215716552735
    },
    {
      "confidence": 0.9783401489257812,
      "x0": 66.20689655172414,
      "x1": 528.8275862068965,
      "y0": 1308.9810568237306,
      "y1": 1338.861968688965
    },
    {
      "confidence": 0.9781494736671448,
      "x0": 79.44827586206897,
      "x1": 502.34482758620686,
      "y0": 1549.3459677124024,
      "y1": 1567.9349188232422
    },
    {
      "confidence": 0.9779312014579772,
      "x0": 92.6896551724138,
      "x1": 502.34482758620686,
      "y0": 244.4555407714844,
      "y1": 278.1627057647705
    },
    {
      "confidence": 0.9775745272636414,
      "x0": 158.89655172413794,
      "x1": 422.8965517241379,
      "y0": 863.0681561279297,
      "y1": 890.7909213256836
    },
    {
      "confidence": 0.9769511222839355,
      "x0": 463.44827586206895,
      "x1": 502.34482758620686,
      "y0": 636.4036128234864,
      "y1": 653.4987809753418
    },
    {
      "confidence": 0.9760129451751708,
      "x0": 145.6551724137931,
      "x1": 449.3793103448275,
      "y0": 889.0358172607422,
      "y1": 916.1662411499024
    },
    {
      "confidence": 0.9755894541740416,
      "x0": 119.17241379310344,
      "x1": 277.2413793103448,
      "y0": 742.8785287475586,
      "y1": 762.0321940612793
    },
    {
      "confidence": 0.9738649129867554,
      "x0": 79.44827586206897,
      "x1": 502.34482758620686,
      "y0": 1130.1890350341796,
      "y1": 1151.0327014160157
    },
    {
      "confidence": 0.9724316596984864,
      "x0": 119.17241379310344,
      "x1": 475.8620689655172,
      "y0": 1354.504870300293,
      "y1": 1371.771861877441
    },
    {
      "confidence": 0.9714150428771972,
      "x0": 79.44827586206897,
      "x1": 502.34482758620686,
      "y0": 976.1432229614256,
      "y1": 1000.9063018798828
    },
    {
      "confidence": 0.971374213695526,
      "x0": 463.44827586206895,
      "x1": 502.34482758620686,
      "y0": 718.1776234436036,
      "y1": 734.7177241516114
    },
    {
      "confidence": 0.97038733959198,
      "x0": 450.2068965517241,
      "x1": 502.34482758620686,
      "y0": 741.9246612548828,
      "y1": 759.6122212219238
    },
    {
      "confidence": 0.9678890109062196,
      "x0": 79.44827586206897,
      "x1": 502.34482758620686,
      "y0": 1422.2637057495117,
      "y1": 1443.1260595703125
    },
    {
      "confidence": 0.967703938484192,
      "x0": 92.6896551724138,
      "x1": 502.34482758620686,
      "y0": 1567.7923892211911,
      "y1": 1588.5243350219728
    },
    {
      "confidence": 0.9665812849998474,
      "x0": 66.20689655172414,
      "x1": 356.6896551724138,
      "y0": 293.92859092712405,
      "y1": 317.4571877288818
    },
    {
      "confidence": 0.9660832285881042,
      "x0": 52.96551724137931,
      "x1": 383.17241379310343,
      "y0": 556.9180053710937,
      "y1": 577.2417063903808
    },
    {
      "confidence": 0.965673565864563,
      "x0": 238.3448275862069,
      "x1": 330.2068965517241,
      "y0": 214.55894660949707,
      "y1": 230.82979667663577
    },
    {
      "confidence": 0.964240789413452,
      "x0": 79.44827586206897,
      "x1": 502.34482758620686,
      "y0": 953.0742361450197,
      "y1": 976.8621337890626
    },
    {
      "confidence": 0.963053822517395,
      "x0": 105.93103448275862,
      "x1": 475.8620689655172,
      "y0": 1370.651625671387,
      "y1": 1388.5600509643557
    },
    {
      "confidence": 0.9626933932304382,
      "x0": 79.44827586206897,
      "x1": 502.34482758620686,
      "y0": 1507.5659048461914,
      "y1": 1525.1672500610352
    },
    {
      "confidence": 0.958727777004242,
      "x0": 105.93103448275862,
      "x1": 475.8620689655172,
      "y0": 1153.5335858154297,
      "y1": 1174.1560333251953
    },
    {
      "confidence": 0.9578201174736024,
      "x0": 264.82758620689657,
      "x1": 303.7241379310345,
      "y0": 584.9844174194336,
      "y1": 603.5515496826172
    },
    {
      "confidence": 0.9540807008743286,
      "x0": 198.6206896551724,
      "x1": 409.6551724137931,
      "y0": 914.1171887207032,
      "y1": 942.4322952270508
    },
    {
      "confidence": 0.9488290548324584,
      "x0": 92.6896551724138,
      "x1": 502.34482758620686,
      "y0": 1527.6959130859375,
      "y1": 1546.0018252563475
    },
    {
      "confidence": 0.9440183639526368,
      "x0": 79.44827586206897,
      "x1": 502.34482758620686,
      "y0": 1445.5910842895507,
      "y1": 1464.181550598145
    },
    {
      "confidence": 0.9435264468193054,
      "x0": 251.58620689655172,
      "x1": 330.2068965517241,
      "y0": 164.8341968536377,
      "y1": 195.3248874282837
    },
    {
      "confidence": 0.9355789422988892,
      "x0": 238.3448275862069,
      "x1": 330.2068965517241,
      "y0": 129.75570213317872,
      "y1": 157.34757949829103
    },
    {
      "confidence": 0.9267652630805968,
      "x0": 66.20689655172414,
      "x1": 515.5862068965517,
      "y0": 1464.3137768554689,
      "y1": 1484.6640948486329
    },
    {
      "confidence": 0.9259190559387208,
      "x0": 119.17241379310344,
      "x1": 184.55172413793105,
      "y0": 772.9682853698731,
      "y1": 789.6297534179688
    },
    {
      "confidence": 0.9202520847320556,
      "x0": 79.44827586206897,
      "x1": 118.34482758620688,
      "y0": 1629.7936752319335,
      "y1": 1643.1660025024414
    },
    {
      "confidence": 0.9187018871307372,
      "x0": 119.17241379310344,
      "x1": 171.3103448275862,
      "y0": 720.7984104919434,
      "y1": 737.859234161377
    },
    {
      "confidence": 0.9137475490570068,
      "x0": 172.13793103448276,
      "x1": 409.6551724137931,
      "y0": 1589.9500350952148,
      "y1": 1609.08021484375
    },
    {
      "confidence": 0.9137141108512878,
      "x0": 119.17241379310344,
      "x1": 158.06896551724137,
      "y0": 668.182612915039,
      "y1": 684.956407623291
    },
    {
      "confidence": 0.9073677659034728,
      "x0": 450.2068965517241,
      "x1": 502.34482758620686,
      "y0": 581.1082385253907,
      "y1": 600.4252926635743
    },
    {
      "confidence": 0.9049127101898192,
      "x0": 79.44827586206897,
      "x1": 502.34482758620686,
      "y0": 1487.7797454833983,
      "y1": 1504.4446984863282
    },
    {
      "confidence": 0.8999844193458557,
      "x0": 66.20689655172414,
      "x1": 515.5862068965517,
      "y0": 530.3162844848633,
      "y1": 550.7775654602051
    },
    {
      "confidence": 0.8964601159095764,
      "x0": 66.20689655172414,
      "x1": 184.55172413793105,
      "y0": 586.2467286682129,
      "y1": 604.2620259094239
    },
    {
      "confidence": 0.8928713202476501,
      "x0": 66.20689655172414,
      "x1": 396.41379310344826,
      "y0": 357.5089150238037,
      "y1": 380.6227516937256
    },
    {
      "confidence": 0.8666982650756836,
      "x0": 463.44827586206895,
      "x1": 515.5862068965517,
      "y0": 1227.209369506836,
      "y1": 1242.4458950805663
    }
  ],
  "output": "data://.algo/character_recognition/TextDetectionCTPN/temp/receipt.png"
}

Install & Use

Use

curl -X POST -d '{"input": "http://3.media.collegehumor.cvcdn.com/57/40/45795b7aa3650756ad94f776add650fd.jpg",
"output": "data://.algo/character_recognition/TextDetectionCTPN/temp/receipt.png"}
' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/character_recognition/TextDetectionCTPN/0.2.0