Batch OCR–Extract the text from several images as separate files
- Batch OCR (text recognition) multiple images or files at the same time.
- Select whether to keep the text formatting or merge all of the texts into single lines.
- Save the results to Files.
Supports images and PDFs
What's New
Version 2.0
Fixed output file names to reflect input file names
What it does
26 actions-
CommentExtract the text from miltiple images. Choose: Formatting is preserved or Content is merged into a single line
-
Set VariableImages
-
If
-
Choose from MenuChoose From
-
Choose from MenuFiles
-
Select File
-
Choose from MenuPhotos
-
Select Photos
-
Set VariableImages
-
Choose from MenuOutput Formatting
-
Choose from MenuKeep Formatting
-
Number
-
Set VariableFormatting Flag
-
Choose from MenuRemove Formatting
-
Number
-
Set VariableFormatting Flag
-
Select File
-
Repeat with Each
-
Get Name
-
Extract Text from Image
-
If
-
If
-
Split Text
-
Combine Text
-
Save File
-
Rename File
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#include 'actions/photos'
#include 'actions/documents'
#define color red
/*
Extract the text from miltiple images.
Choose:
Formatting is preserved
or
Content is merged into a single line
*/
@Images = ShortcutInput
if !@Images {
menu "Choose From" {
item "Files":
selectFile(true)
item "Photos":
selectPhotos(true)
}
@Images
}
menu "Output Formatting " {
item "Keep Formatting":
@FormattingFlag = 1
item "Remove Formatting":
@FormattingFlag = 0
}
const File = selectFile()
for _ in @Images {
getName(@RepeatItem)
const TextFromImage = extractImageText(@RepeatItem)
if @FormattingFlag == 1 {
} else {
const SplitText = splitText(TextFromImage, "
")
const MergedText = joinText(SplitText, " ")
}
const SavedFile = saveFilePrompt(IfResult)
rename(SavedFile)
}
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by te55eract
You Might Also Like
Advertisement