Views
No views yet
1from transformers import pipeline
2from PIL import Image
3
4# Load the pipeline
5pipe = pipeline("image-to-text", model="a0a7/gregg-recognition")
6
7# Load an image
8image = Image.open("path/to/shorthand/image.png")
9
10# Generate text
11result = pipe(image)
12print(result[0]['generated_text'])1from gregg_recognition import GreggRecognition
2
3# Initialize the recognizer
4recognizer = GreggRecognition(model_type="image_to_text")
5
6# Recognize text from image
7result = recognizer.recognize("path/to/image.png")
8print(result)1# Install the package
2pip install gregg-recognition
3
4# Use the CLI
5gregg-recognize path/to/image.png --verbose1@misc{gregg-recognition,
2 title={Gregg Shorthand Recognition Model},
3 author={Your Name},
4 year={2025},
5 url={https://huggingface.co/a0a7/gregg-recognition}
6}