About this Cloud Hub Solution:
The Image to Text API, also known as Optical Character Recognition (OCR) API, is a powerful tool that enables developers to extract text from images. This API supports a wide range of image formats, including scanned documents, photos, and screenshots.
With the Image to Text API, developers can:
- Convert images into editable text, regardless of the font, size, or layout
- Support multiple languages and characters, including English, Spanish, Chinese, and many more
- Customize the OCR parameters to suit their specific needs
- Integrate the API with other applications, such as natural language processing and machine learning tools
This API is ideal for developers who want to build applications that require image-to-text conversion, such as:
- Document scanning and digitization
- Automated data entry and text recognition
- Image-based data processing and analysis
- Accessibility tools for visually impaired users
- Natural language processing and machine learning applications
The Image to Text API uses advanced neural net technology to recognize and read text from images, supporting both handwritten and printed materials.
Examples
Looking at the following business card, it will extract the text information easily, even though the business card is positioned with an angle.
The API can be triggered with this few lines of cURL command
curl --request GET \--url 'https://api.apilayer.com/image_to_text/url?url=IMAGE PATH' \--header 'apikey: YOUR API KEY'The output is JSON data with all the text extracted and even the language is auto detected,{"lang": "en", "all_text": "TREVOR OWENS\nCreative Director\nINFINITY\nINFINITY LTD\n12 Badgers lane\nBt 54 1234\nT 028 1298 1234\nE[email protected]\nW www.infinity.com\n", "annotations": ["TREVOR", "OWENS", "Creative", "Director", "INFINITY", "INFINITY", "LTD", "12", "Badgers", "lane", "Bt", "54", "1234", "T", "028", "1298", "1234", "E", "[email protected]", "W", "www.infinity.com"]}
Example on a Handwritten Text
The API will also work for handwritings. Even for non-English texts.
{"lang": "fr", "all_text": "Les Stdjecifa Brangain Que Je Sain\nLres Marculina: ag\u00e9 beau,blanc,bleu,blond,bon,brun\ner\u00e9atif fort giner\u00e9ia g\u00e9nial,gentil,inbligent,jeune,-\nmarron, m\u00e9chant, aympatique, mime,gros,nois, nouve.\nnelit grand, rouxs\u00e9rieur, morti tmide, et vert.\nLafeminims:ag\u00e9e, leue, belle,blond,bowne,brume,\n\u00e1alive fortie, gin\u00e9reuse g\u00e9niale, gentille, intalligenis\nm\u00e9chante mympatique, mince, gro\npetit\narrante,marron,\nresseuse,p\u00e9nille.\n,grande,rousse,s\u00e9rieus\nNEAT CURSINE VRITING\n", "annotations": ["Les", "Stdjecifa", "Brangain", "Que", "Je", "Sain", "Lres", "Marculina:", "ag\u00e9", "beau,blanc,bleu,blond,bon,brun", "er\u00e9atif", "fort", "giner\u00e9ia", "g\u00e9nial,gentil,inbligent,jeune,-", "marron,", "m\u00e9chant,", "aympatique,", "mime,gros,nois,", "nouve.", "nelit", "grand,", "rouxs\u00e9rieur,", "morti", "tmide,", "et", "vert.", "Lafeminims:ag\u00e9e,", "leue,", "belle,blond,bowne,brume,", "\u00e1alive", "fortie,", "gin\u00e9reuse", "g\u00e9niale,", "gentille,", "intalligenis", "m\u00e9chante", "mympatique,", "mince,", "gro", "petit", "arrante,marron,", "resseuse,p\u00e9nille.", ",grande,rousse,s\u00e9rieus", "NEAT", "CURSINE", "VRITING"]}