Here’s the full Markdown content for your blog post: Extract Text from Image (for beginners).
/blog/extract-text-from-image.md
#
✅ ---slug: extract-text-from-imagetitle: How to Extract Text from an Image Using the Terminalauthor: Frádely Dilonétags: [ocr, terminal, image, beginner]---
Sometimes you have a screenshot or photo of text and want to copy the words. Here's how to do it using a tool called **Tesseract OCR**.
---
### 📥 Step 1: Install Tesseract
#### 🐧 On Ubuntu / Debian:
```bashsudo apt install tesseract-ocr
#
🍎 On macOS (with Homebrew):brew install tesseract
#
🖼 Step 2: Place your imageMake sure your image file is in the same folder. Example:
myphoto.jpg
#
📤 Step 3: Extract the textRun this command:
tesseract myphoto.jpg output
This creates a file called:
output.txt
Inside, you'll find all the text it could detect from your image.
✅ That’s it!
Use this to extract quotes, copy from scanned documents, or save handwritten notes digitally.