How to Use Apple Shortcuts to Extract Text from Images

Search for a command to run...

No comments yet. Be the first to comment.
What is Postmark? Postmark is the email delivery service that developers and product teams actually like. Send transactional and marketing emails and get them to the inbox every time. Postmark maintains one of the best delivery reputations in th...

What is Airtable? Airtable is an easy-to-use platform for creating relational databases. The user interface is simple spreadsheet-like, colorful, friendly and allows anyone to create a database in minutes. You can create databases like employee d...

A list of no-code resources will be continuously updated for you to find all the information related to no-code tools in one place. If you’re new to No-Code, you can check out the Beginner’s guide to No-Code . Disclaimer: Some of the resourc...

When you're starting out with something new, there'll inevitably be questions like, what is it? Where do I find more information? Where do I get started? Etc. This post addresses your questions if you're starting out with no-code. Photo by Adi Golds...


TLDR;
Take a photo on your Apple Device
Run the Shortcut in Apple Shortcuts to fetch the latest photo and extract text from the image
Shortcuts is a feature in Apple's iOS and Mac operating system that allows users to create custom commands for Siri, the company's digital assistant. Shortcuts can be used to perform a variety of tasks, including opening apps, sending messages, making phone calls, and much more.
Users can create their own shortcuts, or download shortcuts created by others. Shortcuts can be stored in the Shortcuts app, or in the Today widget. Shortcuts can be triggered using Siri.
There is no one "best" way to use Apple Shortcuts. It depends on what you want to use them for. Some people use them to save time by automate tasks they perform frequently. Others use them to be more productive by creating custom commands for Siri. Still others use them to have fun by creating shortcuts that perform humorous or whimsical tasks.
1. Open the Shortcuts app.
2. Tap the Shortcuts tab on iPhone or All Shortcuts menu on Mac.
3. Tap the + button.
4. Select the type of automation you want to create.
5. Follow the on-screen instructions to complete


In this post we'll explore how to extract text from most recent image/photo or screenshot from your Mac or iPhone and send it to a note taking app Mem using API.
Get the latest photo or screenshot from your device (iPhone, iPad or Mac).
Search for "Get latest photos"
Add the step and enable "Include Screenshots"


Extract Text from the latest photo or screenshot from Step 1.
Search for "Extract Text from Image"
Add the step and ensure the input is "Latest Photos" from Step 1
In this step, the text is extracted from the image using Apple's OCR on device.


Copy the extracted text to clipboard.
Search for "Copy to Clipboard" action in Apple Shortcuts
Add "Text from Image" as input in this step. This step will help you to temporarily store the extracted text locally on device


· · ·
You can now send the extracted data to anywhere you'd like. Fe examples destinations:
In this post, we'll be exploring how to send the text to Mem using API.
To send the data using API to an external system, you need the API documentation and API Access Key.
Here's the example API Call that needs to be added in Apple Shortcuts:
curl \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: ApiAccessToken " \
-d '{ "content": "Hello there! I am a new mem." }' \
https://api.mem.ai/v0/mems
Once you have the API Access Token, let's continue with Step 4.
· · ·
Get the URL of the destination app (Mem) to initiate API Call.
From the code snippet above, the destination URL is:
https://api.mem.ai/v0/mems


This is the final step to send the data to your personal knowledge management system.

In this we need:
And, done!
Now, you're ready to run the shortcut from any of your apple devices to extract the text from most recent image or screenshot.

This automation saves you 2-3 minutes every time you want to extract text from your images.
Congratulations! You have successfully created an automation without writing a single line of code.
This blog is dedicated to help non-technical people build products and automations using No-Code. If you’re new to No-Code, you can check out the Beginner’s guide to No-Code .