Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
Muthuraja18
/
image
like
2
Sleeping
App
Files
Files
Community
32
Fetching metadata from the HF Docker repository...
refs/pr/21
image
/
tools
/
ocr.py
Muthuraja18
Upload 11 files
0f0d66e
verified
11 days ago
Raw
Download with hf CLI
Copy download link
History
Blame
Safe
183 Bytes
from
PIL
import
Image
import
pytesseract
def
extract_text
(
image_path:
str
):
img = Image.
open
(image_path)
text = pytesseract.image_to_string(img)
return
text