[{"data":1,"prerenderedAt":773,"buildId":774},["ShallowReactive",2],{"\u002Focr":3,"\u002Focr-surround":494,"navigation":504},{"id":4,"title":5,"body":6,"description":485,"extension":486,"meta":487,"navigation":488,"path":490,"seo":491,"stem":492,"__hash__":493},"docs\u002F5.ocr\u002F1.index.md","Text recognition (OCR)",{"type":7,"value":8,"toc":475},"minimark",[9,28,36,40,71,74,108,111,196,207,211,279,282,356,365,375,379,393,397,412,427,446,450,453,467],[10,11,12,13,17,18,23,24,27],"p",{},"The ",[14,15,16],"strong",{},"Extract text"," step reads the text in an image so later steps can store it, search it or hand it to an ",[19,20,22],"a",{"href":21},"\u002Fai","AI step",". It runs through an OCR connection. The first-party one is ",[14,25,26],{},"Tessra OCR",": Tesseract 5 in a small container next to Tessra, so images never leave your server.",[10,29,30,31,35],{},"OCR is optional. Tessra runs, uploads and runs every other workflow without it, and the main Tessra image contains nothing OCR needs. To use it, ",[19,32,34],{"href":33},"\u002Focr\u002Fsetup","start the worker and connect it",".",[37,38,16],"h2",{"id":39},"extract-text",[41,42,43,54,57],"ol",{},[44,45,46,47,49,50,35],"li",{},"Add ",[14,48,16],{}," after a step that gives content, such as ",[19,51,53],{"href":52},"\u002Freference\u002Fsteps#load-content","Load content",[44,55,56],{},"Choose an OCR connection. With none yet, the step says how to start the worker and offers to create the connection.",[44,58,59,60,63,64,67,68,35],{},"Choose the ",[14,61,62],{},"Image",", a ",[14,65,66],{},"Language"," if it isn't the connection's default, and a ",[14,69,70],{},"Preset",[10,72,73],{},"It continues on one of two paths:",[75,76,77,102],"ul",{},[44,78,79,82,83,87,88,92,93,97,98,101],{},[14,80,81],{},"Next"," when it found text. ",[84,85,86],"code",{},"text"," holds it as a ",[19,89,91],{"href":90},"\u002Fautomations\u002Fvalues","working attachment",", line by line, which ",[19,94,96],{"href":95},"\u002Freference\u002Fsteps#add-attachment","Add attachment"," stores with the file and every AI step's ",[14,99,100],{},"Text"," setting takes as it is.",[44,103,104,107],{},[14,105,106],{},"No text found"," when the image has none. That's a success, not a failure: connect steps to it, or leave it empty to end the run there.",[10,109,110],{},"A failure, such as a worker that isn't running or an image over its limits, fails the step like any other, with the worker's reason. Tessra never falls back to a hosted service or an AI model when OCR is unavailable.",[112,113,114,126],"table",{},[115,116,117],"thead",{},[118,119,120,124],"tr",{},[121,122,123],"th",{},"Output",[121,125],{},[127,128,129,146,156,166,176,186],"tbody",{},[118,130,131,136],{},[132,133,134],"td",{},[84,135,86],{},[132,137,138,139,143,144,35],{},"The text, as a working attachment named ",[140,141,142],"em",{},"OCR text",". Empty on ",[14,145,106],{},[118,147,148,153],{},[132,149,150],{},[84,151,152],{},"preview",[132,154,155],{},"The first 500 characters, for conditions and templates.",[118,157,158,163],{},[132,159,160],{},[84,161,162],{},"hasText",[132,164,165],{},"Whether any text was found.",[118,167,168,173],{},[132,169,170],{},[84,171,172],{},"confidence",[132,174,175],{},"How sure Tesseract is, from 0 to 1, weighted by word length.",[118,177,178,183],{},[132,179,180],{},[84,181,182],{},"words",[132,184,185],{},"Each word with its confidence and box, in the original image's pixels, up to 2,000.",[118,187,188,193],{},[132,189,190],{},[84,191,192],{},"ocr",[132,194,195],{},"The languages, preset and image size used, and how long it took.",[10,197,198,200,201,203,204,206],{},[84,199,86],{},", ",[84,202,152],{}," and ",[84,205,182],{}," are marked sensitive, so run history shows them only to you.",[37,208,210],{"id":209},"presets","Presets",[112,212,213,225],{},[115,214,215],{},[118,216,217,219,222],{},[121,218,70],{},[121,220,221],{},"For",[121,223,224],{},"What it does",[127,226,227,240,253,266],{},[118,228,229,234,237],{},[132,230,231],{},[14,232,233],{},"Automatic",[132,235,236],{},"Most images",[132,238,239],{},"Lets Tesseract find the layout. Enlarges images under 1,600 pixels on their longest side.",[118,241,242,247,250],{},[132,243,244],{},[14,245,246],{},"Screenshot",[132,248,249],{},"Interface text, light or dark",[132,251,252],{},"Enlarges images under 2,600 pixels, so small text gets large enough, and inverts dark mode.",[118,254,255,260,263],{},[132,256,257],{},[14,258,259],{},"Document",[132,261,262],{},"Receipts, forms, single-column pages",[132,264,265],{},"Reads line by line, so an amount stays on the line with its label.",[118,267,268,273,276],{},[132,269,270],{},[14,271,272],{},"Sparse text",[132,274,275],{},"Photos, signs, busy images",[132,277,278],{},"Looks for scattered words in any order, and stretches weak contrast.",[10,280,281],{},"How often each preset found the expected words in the test fixtures (a light and a dark screenshot, a receipt, and a photo of the receipt):",[112,283,284,299],{},[115,285,286],{},[118,287,288,291,293,295,297],{},[121,289,290],{},"Fixture",[121,292,233],{},[121,294,246],{},[121,296,259],{},[121,298,272],{},[127,300,301,315,328,343],{},[118,302,303,306,309,311,313],{},[132,304,305],{},"Screenshot, light",[132,307,308],{},"100%",[132,310,308],{},[132,312,308],{},[132,314,308],{},[118,316,317,320,322,324,326],{},[132,318,319],{},"Screenshot, dark",[132,321,308],{},[132,323,308],{},[132,325,308],{},[132,327,308],{},[118,329,330,333,336,338,341],{},[132,331,332],{},"Receipt",[132,334,335],{},"56%",[132,337,335],{},[132,339,340],{},"89%",[132,342,308],{},[118,344,345,348,350,352,354],{},[132,346,347],{},"Receipt photo",[132,349,335],{},[132,351,335],{},[132,353,340],{},[132,355,340],{},[10,357,358,359,361,362,364],{},"Automatic and Screenshot miss a receipt's amounts, because Tesseract reads the right-aligned column as a separate block it then drops. Use ",[14,360,259],{}," for receipts when the line order matters (an amount next to its label), or ",[14,363,272],{}," to catch every number in any order.",[10,366,367,370,371,374],{},[14,368,369],{},"Preprocessing",", under Advanced, overrides how the preset prepares the image: page segmentation, scale (1 to 4 times), inverting colors and turning the image black and white. Leave them on ",[14,372,373],{},"Preset default"," unless text is being missed.",[37,376,378],{"id":377},"languages-and-formats","Languages and formats",[10,380,381,382,385,386,388,389,35],{},"Tessra OCR reads PNG, JPEG, WebP, GIF (the first frame) and BMP images, and comes with English. The connection's ",[14,383,384],{},"Default language"," applies to steps that don't choose one; a step's ",[14,387,66],{}," lists what the worker has. To read more than one language at once, choose several, such as English and German. To add languages, see ",[19,390,392],{"href":391},"\u002Focr\u002Fsetup#adding-languages","Adding languages",[37,394,396],{"id":395},"search","Search",[10,398,399,400,203,402,405,406,408,409,411],{},"Store the text with ",[19,401,96],{"href":95},[19,403,395],{"href":404},"\u002Flibrary\u002Fsearch"," finds it like any text attachment. A match shows the attachment's name and the scan icon of the step that made it, such as ",[140,407,142],{}," from ",[14,410,16],{},", so you can tell text read from the image apart from notes you wrote.",[10,413,12,414,417,418,422,423,35],{},[14,415,416],{},"Make images searchable"," ",[19,419,421],{"href":420},"\u002Fautomations\u002Ftemplates#built-in-templates","template"," does this for every new image. It's a library workflow, so uploads finish first and the text arrives a moment later. See ",[19,424,426],{"href":425},"\u002Fguides\u002Fsearchable-screenshots","Make screenshots searchable",[10,428,429,430,434,435,438,439,442,443,445],{},"To add text to images you uploaded before, add the template a second time and change its trigger to ",[19,431,433],{"href":432},"\u002Freference\u002Fsteps#run-manually","Run manually",". Then in ",[14,436,437],{},"Files",", select the images and choose ",[14,440,441],{},"More actions › Run automation",", up to 100 files at a time. Images that already have an ",[140,444,142],{}," attachment get theirs replaced.",[37,447,449],{"id":448},"privacy","Privacy",[10,451,452],{},"Tessra sends the image to the address of the OCR connection and nowhere else, through the same guarded outbound rules as every connection. The worker:",[75,454,455,458,461,464],{},[44,456,457],{},"keeps nothing: it reads the image, answers, and deletes its temporary copy;",[44,459,460],{},"never sees Tessra's database, storage, S3 credentials, workflows or accounts;",[44,462,463],{},"needs no internet access, and never downloads language data while running;",[44,465,466],{},"doesn't log images or text, only sizes, timings and the run and step that asked.",[10,468,469,470,474],{},"Extract text is marked as sending file content to an outside service, because the worker is one, even on your own server. A ",[19,471,473],{"href":472},"\u002Fautomations\u002Ftesting","test run"," runs it only when you allow that.",{"title":476,"searchDepth":477,"depth":478,"links":479},"",2,3,[480,481,482,483,484],{"id":39,"depth":477,"text":16},{"id":209,"depth":477,"text":210},{"id":377,"depth":477,"text":378},{"id":395,"depth":477,"text":396},{"id":448,"depth":477,"text":449},"Read the text in screenshots, receipts and photos with Tessra OCR, a local worker that keeps images on your server.","md",{},{"title":489},"Overview","\u002Focr",{"title":5,"description":485},"5.ocr\u002F1.index","Ym6R71B5fO1P38tQM4qngzpPdv8cez_8lruIiYt9j7k",[495,500],{"title":496,"path":497,"stem":498,"description":499,"children":-1},"AI detect and suggest tags","\u002Fai\u002Fdetect-and-tag","5.ai\u002F4.detect-and-tag","Settings, outputs and examples for the AI detect and AI suggest tags steps.",{"title":501,"path":33,"stem":502,"description":503,"children":-1},"Setup","5.ocr\u002F2.setup","Start the Tessra OCR worker with Docker Compose or on its own, connect Tessra to it, add languages and size its limits.",[505,525,562,603,614,629,635,678,711,725,741],{"title":506,"path":507,"stem":508,"children":509,"icon":524},"Getting started","\u002Fgetting-started","1.getting-started\u002F1.index",[510,512,516,520],{"title":511,"path":507,"stem":508},"Introduction",{"title":513,"path":514,"stem":515},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":517,"path":518,"stem":519},"Configure ShareX","\u002Fgetting-started\u002Fsharex","1.getting-started\u002F3.sharex",{"title":521,"path":522,"stem":523},"Updating Tessra","\u002Fgetting-started\u002Fupdating","1.getting-started\u002F4.updating","i-lucide-rocket",{"title":526,"icon":527,"path":528,"stem":529,"children":530,"page":561},"Library","i-lucide-folder","\u002Flibrary","2.library",[531,535,539,543,547,551,555,557],{"title":532,"path":533,"stem":534},"Uploading files","\u002Flibrary\u002Fuploading","2.library\u002F1.uploading",{"title":536,"path":537,"stem":538},"Files and folders","\u002Flibrary\u002Ffiles-and-folders","2.library\u002F2.files-and-folders",{"title":540,"path":541,"stem":542},"Sharing files","\u002Flibrary\u002Fsharing","2.library\u002F3.sharing",{"title":544,"path":545,"stem":546},"Tags","\u002Flibrary\u002Ftags","2.library\u002F4.tags",{"title":548,"path":549,"stem":550},"Fields","\u002Flibrary\u002Ffields","2.library\u002F5.fields",{"title":552,"path":553,"stem":554},"Attachments","\u002Flibrary\u002Fattachments","2.library\u002F6.attachments",{"title":396,"path":404,"stem":556},"2.library\u002F7.search",{"title":558,"path":559,"stem":560},"Trash and recovery","\u002Flibrary\u002Ftrash","2.library\u002F8.trash",false,{"title":563,"path":564,"stem":565,"children":566,"icon":602},"Automations","\u002Fautomations","3.automations\u002F01.index",[567,568,572,576,579,583,587,590,594,598],{"title":489,"path":564,"stem":565},{"title":569,"path":570,"stem":571},"Your first workflow","\u002Fautomations\u002Ffirst-workflow","3.automations\u002F02.first-workflow",{"title":573,"path":574,"stem":575},"The editor","\u002Fautomations\u002Feditor","3.automations\u002F03.editor",{"title":577,"path":90,"stem":578},"Values and templates","3.automations\u002F04.values",{"title":580,"path":581,"stem":582},"Conditions and branching","\u002Fautomations\u002Fbranching","3.automations\u002F05.branching",{"title":584,"path":585,"stem":586},"Upload intake","\u002Fautomations\u002Fintake","3.automations\u002F06.intake",{"title":588,"path":472,"stem":589},"Testing","3.automations\u002F07.testing",{"title":591,"path":592,"stem":593},"Runs and history","\u002Fautomations\u002Fruns","3.automations\u002F08.runs",{"title":595,"path":596,"stem":597},"Quarantine and failures","\u002Fautomations\u002Fquarantine","3.automations\u002F09.quarantine",{"title":599,"path":600,"stem":601},"Workflow templates","\u002Fautomations\u002Ftemplates","3.automations\u002F10.templates","i-lucide-workflow",{"title":604,"path":605,"stem":606,"children":607,"icon":613},"Connections","\u002Fconnections","4.connections\u002F1.index",[608,609],{"title":489,"path":605,"stem":606},{"title":610,"path":611,"stem":612},"AI providers","\u002Fconnections\u002Fai-providers","4.connections\u002F2.ai-providers","i-lucide-plug",{"title":615,"path":21,"stem":616,"children":617,"icon":628},"AI","5.ai\u002F1.index",[618,619,623,627],{"title":489,"path":21,"stem":616},{"title":620,"path":621,"stem":622},"AI classify and extract","\u002Fai\u002Fclassify-and-extract","5.ai\u002F2.classify-and-extract",{"title":624,"path":625,"stem":626},"AI describe, summarize and write","\u002Fai\u002Fdescribe-and-write","5.ai\u002F3.describe-and-write",{"title":496,"path":497,"stem":498},"i-lucide-sparkles",{"title":630,"path":490,"stem":492,"children":631,"icon":634},"OCR",[632,633],{"title":489,"path":490,"stem":492},{"title":501,"path":33,"stem":502},"i-lucide-scan-text",{"title":636,"path":637,"stem":638,"children":639,"icon":677},"Self-hosting","\u002Fself-hosting","6.self-hosting\u002F1.index",[640,641,645,649,653,657,661,665,669,673],{"title":489,"path":637,"stem":638},{"title":642,"path":643,"stem":644},"Troubleshooting","\u002Fself-hosting\u002Ftroubleshooting","6.self-hosting\u002F10.troubleshooting",{"title":646,"path":647,"stem":648},"Configuration","\u002Fself-hosting\u002Fconfiguration","6.self-hosting\u002F2.configuration",{"title":650,"path":651,"stem":652},"Reverse proxies and HTTPS","\u002Fself-hosting\u002Freverse-proxy","6.self-hosting\u002F3.reverse-proxy",{"title":654,"path":655,"stem":656},"DigitalOcean","\u002Fself-hosting\u002Fdigitalocean","6.self-hosting\u002F4.digitalocean",{"title":658,"path":659,"stem":660},"Backups and restoration","\u002Fself-hosting\u002Fbackups","6.self-hosting\u002F5.backups",{"title":662,"path":663,"stem":664},"Users and roles","\u002Fself-hosting\u002Fusers","6.self-hosting\u002F6.users",{"title":666,"path":667,"stem":668},"Single sign-on","\u002Fself-hosting\u002Fsingle-sign-on","6.self-hosting\u002F7.single-sign-on",{"title":670,"path":671,"stem":672},"Two-factor and passkeys","\u002Fself-hosting\u002Ftwo-factor-and-passkeys","6.self-hosting\u002F8.two-factor-and-passkeys",{"title":674,"path":675,"stem":676},"Importing","\u002Fself-hosting\u002Fimporting","6.self-hosting\u002F9.importing","i-lucide-server",{"title":679,"path":680,"stem":681,"children":682,"icon":710},"Guides","\u002Fguides","7.guides\u002F1.index",[683,684,688,692,696,700,704,708],{"title":489,"path":680,"stem":681},{"title":685,"path":686,"stem":687},"Optimize ShareX uploads","\u002Fguides\u002Fcompress-uploads","7.guides\u002F2.compress-uploads",{"title":689,"path":690,"stem":691},"Send Discord notifications","\u002Fguides\u002Fdiscord-notifications","7.guides\u002F3.discord-notifications",{"title":693,"path":694,"stem":695},"Organize screenshots with AI","\u002Fguides\u002Fcategorize-screenshots","7.guides\u002F4.categorize-screenshots",{"title":697,"path":698,"stem":699},"Extract receipts with AI","\u002Fguides\u002Fextract-receipts","7.guides\u002F5.extract-receipts",{"title":701,"path":702,"stem":703},"Name screenshots with AI","\u002Fguides\u002Fai-file-names","7.guides\u002F6.ai-file-names",{"title":705,"path":706,"stem":707},"Run AI locally with Ollama","\u002Fguides\u002Flocal-ai-ollama","7.guides\u002F7.local-ai-ollama",{"title":426,"path":425,"stem":709},"7.guides\u002F8.searchable-screenshots","i-lucide-book-open",{"title":712,"icon":713,"path":714,"stem":715,"children":716,"page":561},"Reference","i-lucide-library","\u002Freference","8.reference",[717,721],{"title":718,"path":719,"stem":720},"Step reference","\u002Freference\u002Fsteps","8.reference\u002F1.steps",{"title":722,"path":723,"stem":724},"Limits and errors","\u002Freference\u002Flimits","8.reference\u002F2.limits",{"title":726,"path":727,"stem":728,"children":729,"icon":740},"Development","\u002Fdevelopment","9.development\u002F1.index",[730,732,736],{"title":731,"path":727,"stem":728},"Local development",{"title":733,"path":734,"stem":735},"Plugin development","\u002Fdevelopment\u002Fplugins","9.development\u002F2.plugins",{"title":737,"path":738,"stem":739},"Writing documentation","\u002Fdevelopment\u002Fdocumentation","9.development\u002F3.documentation","i-lucide-code",{"title":742,"path":743,"stem":744,"children":745,"icon":772},"Comparisons","\u002Fcomparisons","99.comparisons\u002F1.index",[746,748,752,756,760,764,768],{"title":747,"path":743,"stem":744},"Comparing Tessra",{"title":749,"path":750,"stem":751},"Tessra and Zipline","\u002Fcomparisons\u002Fzipline","99.comparisons\u002F2.zipline",{"title":753,"path":754,"stem":755},"Tessra and XBackBone","\u002Fcomparisons\u002Fxbackbone","99.comparisons\u002F3.xbackbone",{"title":757,"path":758,"stem":759},"Tessra and chibisafe","\u002Fcomparisons\u002Fchibisafe","99.comparisons\u002F4.chibisafe",{"title":761,"path":762,"stem":763},"Tessra and Slink","\u002Fcomparisons\u002Fslink","99.comparisons\u002F5.slink",{"title":765,"path":766,"stem":767},"Tessra and Pingvin Share","\u002Fcomparisons\u002Fpingvin-share","99.comparisons\u002F6.pingvin-share",{"title":769,"path":770,"stem":771},"Tessra and PicoShare","\u002Fcomparisons\u002Fpicoshare","99.comparisons\u002F7.picoshare","i-lucide-scale",1796303405652,"2eb8bd5e-681b-4964-b4c2-2a23ddfda32e"]