character_recognition

character_recognition / SmartTextExtraction / 0.1.1

Smart Text Extraction

Royalty Free
Extract text the smart way
Language
Scala
Metrics
API Calls - 1,635 Avg call duration - 36.80sec
Permissions
The Algorithm Platform License is the set of terms that are stated in the Software License section of the Algorithmia Application Developer and API License Agreement. It is intended to allow users to reserve as many rights as possible without limiting Algorithmia's ability to run it as a service. Learn More
This is necessary for algorithms that rely on external services, however it also implies that this algorithm is able to send your input data outside of the Algorithmia platform.
This allows an algorithm to compose sophisticated functionality using other algorithms as building blocks, however it also carries the potential of incurring additional royalty and usage costs from any algorithm that it calls.

Run an Example

Input
Output
{
  "predictions": [
    {
      "box": {
        "confidence": 0.9950003,
        "x0": 881.28,
        "x1": 1465.74,
        "y0": 719.54803,
        "y1": 796.4614
      },
      "predicted_text": "Familie R."
    },
    {
      "box": {
        "confidence": 0.9911935,
        "x0": 783.36,
        "x1": 1661.58,
        "y0": 529.4551,
        "y1": 621.7941
      },
      "predicted_text": "Grosse Scheidegqg"
    },
    {
      "box": {
        "confidence": 0.9897949,
        "x0": 832.32,
        "x1": 1514.7,
        "y0": 2517.7783,
        "y1": 2593.3984
      },
      "predicted_text": "Tel.: 033 853 67 1C"
    },
    {
      "box": {
        "confidence": 0.98942155,
        "x0": 391.68,
        "x1": 682.38,
        "y0": 1307.3975,
        "y1": 1385.8538
      },
      "predicted_text": "1xGloki"
    },
    {
      "box": {
        "confidence": 0.98888725,
        "x0": 1175.04,
        "x1": 1906.38,
        "y0": 915.1535,
        "y1": 994.3204
      },
      "predicted_text": "30. 07. 2007713 :29: 17"
    },
    {
      "box": {
        "confidence": 0.9876304,
        "x0": 881.28,
        "x1": 1514.7,
        "y0": 2415.2954,
        "y1": 2491.8325
      },
      "predicted_text": "MwSt Nr. : 430 234"
    },
    {
      "box": {
        "confidence": 0.9842965,
        "x0": 881.28,
        "x1": 1514.7,
        "y0": 622.0309,
        "y1": 695.52747
      },
      "predicted_text": "3818 Grindelwald"
    },
    {
      "box": {
        "confidence": 0.9773725,
        "x0": 391.68,
        "x1": 1857.42,
        "y0": 1214.9713,
        "y1": 1290.3024
      },
      "predicted_text": "Macchiato a - 4.50 CHF 9. 00"
    },
    {
      "box": {
        "confidence": 0.97674775,
        "x0": 391.68,
        "x1": 1857.42,
        "y0": 1404.1716,
        "y1": 1481.179
      },
      "predicted_text": "1ixSchweinschnitze!l a 22.00 CHF - 22. 0C"
    },
    {
      "box": {
        "confidence": 0.9657369,
        "x0": 391.68,
        "x1": 927.18,
        "y0": 1507.2958,
        "y1": 1581.3217
      },
      "predicted_text": "1xChasspiat211"
    },
    {
      "box": {
        "confidence": 0.9637868,
        "x0": 342.72,
        "x1": 1514.7,
        "y0": 2106.2112,
        "y1": 2188.6272
      },
      "predicted_text": "Entspricht in Euro- 36.33 EUR"
    },
    {
      "box": {
        "confidence": 0.96316856,
        "x0": 342.72,
        "x1": 1220.94,
        "y0": 2216.7395,
        "y1": 2291.154
      },
      "predicted_text": "Es bediente Sie: Ursula"
    },
    {
      "box": {
        "confidence": 0.958324,
        "x0": 440.64,
        "x1": 1759.5,
        "y0": 2715.1348,
        "y1": 2792.4666
      },
      "predicted_text": "E-mail: grossescheidegg@bluewin. ch"
    },
    {
      "box": {
        "confidence": 0.95821166,
        "x0": 1077.12,
        "x1": 1906.38,
        "y0": 1505.0181,
        "y1": 1578.429
      },
      "predicted_text": "a 18.50 CHF _- 18.50"
    },
    {
      "box": {
        "confidence": 0.95487106,
        "x0": 1419.84,
        "x1": 1906.38,
        "y0": 1013.7513,
        "y1": 1096.0767
      },
      "predicted_text": "Tisch - 7/01"
    },
    {
      "box": {
        "confidence": 0.9476666,
        "x0": 832.32,
        "x1": 1563.66,
        "y0": 2614.2703,
        "y1": 2688.2314
      },
      "predicted_text": "Fax.: 033 853 67 19"
    },
    {
      "box": {
        "confidence": 0.9400507,
        "x0": 1077.12,
        "x1": 1857.42,
        "y0": 1313.4612,
        "y1": 1386.7671
      },
      "predicted_text": "a - 5.00 CHF _- 5.00"
    },
    {
      "box": {
        "confidence": 0.9378626,
        "x0": 881.28,
        "x1": 1465.74,
        "y0": 425.60538,
        "y1": 518.1118
      },
      "predicted_text": "Berghote I"
    },
    {
      "box": {
        "confidence": 0.93661773,
        "x0": 342.72,
        "x1": 1710.54,
        "y0": 1902.9323,
        "y1": 1980.0236
      },
      "predicted_text": "Incl. 7.6% MwSt - 54.50 CHF: 3.85"
    },
    {
      "box": {
        "confidence": 0.92379266,
        "x0": 342.72,
        "x1": 878.22,
        "y0": 915.0636,
        "y1": 988.85333
      },
      "predicted_text": "Rech. Nr. 4572"
    },
    {
      "box": {
        "confidence": 0.8983837,
        "x0": 1517.76,
        "x1": 1857.42,
        "y0": 1699.5596,
        "y1": 1789.3853
      },
      "predicted_text": "54 50"
    },
    {
      "box": {
        "confidence": 0.89637405,
        "x0": 832.32,
        "x1": 1367.82,
        "y0": 1714.4747,
        "y1": 1788.5391
      },
      "predicted_text": "Total : CHF"
    },
    {
      "box": {
        "confidence": 0.85778725,
        "x0": 1517.76,
        "x1": 1955.34,
        "y0": 1622.4004,
        "y1": 1655.4767
      },
      "predicted_text": ""
    }
  ]
}

Install and Use

Install

Install the Algorithmia CLI client by running:

curl -sSLf https://algorithmia.com/install.sh | sh

Then authenticate by running:

$ algo auth
# When prompted for api endpoint, hit enter
# When prompted for API key, enter your key: YOUR_API_KEY
CLI Install Docs

Use



    algo run character_recognition/SmartTextExtraction/0.1.1 -d '{"image":"http://i.imgur.com/BRVm15K.jpg", "language":"deu"}' --timeout 300
  
CLI Docs