{"category":"documents","description":"Finds the printed text in a picture and returns it as text and as a .txt file. Small pictures are enlarged and dark pictures are inverted first, because that makes the letters easier to read.","endpoint":"https://setget.net/v1/tools/ocr-image","examples":[{"input":{"image":"sample-scan.png"},"title":"Read a scanned note"},{"input":{"format":"words","image":"sample-scan.png","layout":"single_block"},"title":"Get every word with its position"}],"input_schema":{"additionalProperties":false,"properties":{"format":{"default":"text","description":"text keeps the lines as they are in the picture. paragraphs puts each paragraph on one line. words also lists every word with its position and confidence.","enum":["text","paragraphs","words"],"type":"string"},"image":{"description":"A picture that shows printed or on-screen text: PNG, JPEG, WebP, TIFF, BMP or GIF.","format":"setget-file","type":"string","x-accept":["image"]},"invert":{"default":"auto","description":"Swap light and dark before reading. auto does it when the picture is mostly dark, such as a dark-mode screenshot.","enum":["auto","yes","no"],"type":"string"},"language":{"default":"eng","description":"Language of the text: eng (English), deu (German), fra (French), spa (Spanish), ita (Italian), por (Portuguese), nld (Dutch), nor (Norwegian), swe (Swedish), dan (Danish), pol (Polish), rus (Russian).","enum":["eng","deu","fra","spa","ita","por","nld","nor","swe","dan","pol","rus"],"type":"string"},"layout":{"default":"auto","description":"How the text is arranged: auto works it out, single_column is one column of text, single_block is one even block, single_line is one line, sparse is scattered words such as labels on a photo or diagram.","enum":["auto","single_column","single_block","single_line","sparse"],"type":"string"}},"required":["image"],"type":"object"},"keywords":["ocr","image to text","picture to text","photo to text","extract text from image","screenshot to text","jpg to text","png to text","scan to text","text recognition","read text from image","copy text from image"],"related":["ocr-pdf","pdf-text","image-crop","image-rotate-flip","qr-decode","image-resize"],"slug":"ocr-image","summary":"Read the printed text in a photo, scan or screenshot and get it back as plain text, in 12 languages.","tier":"job","timeout_seconds":120,"title":"Image to text (OCR)","url":"https://setget.net/tools/ocr-image"}
