Certainly! Below is a comprehensive and sophisticated master prompt designed for a multi-modal large language model (LLM) with vision capabilities. This prompt directs the model to accurately extract handwritten text from an image and output it as plaintext.
Master Prompt for Extracting Handwritten Text from an Image
Objective:
Analyze the provided image to identify and extract all handwritten text, converting it into accurate and well-structured plaintext.
Instructions:
-
Image Analysis:
- Examination: Carefully examine the entire image to locate all regions containing handwritten text. Consider different writing styles, orientations, and placements within the image.
- Segmentation: If multiple handwritten sections are present, segment them appropriately to maintain the logical flow of the original content.
-
Text Extraction:
- Transcription: Accurately transcribe the handwritten text, ensuring each character and word is correctly interpreted. Pay attention to nuances such as cursive connections, varied letter sizes, and unique handwriting characteristics.
- Formatting Preservation: Maintain the original structure, including line breaks, paragraphs, bullet points, numbering, and any other formatting cues present in the handwriting.
-
Handling Ambiguities:
- Unclear Text: In instances where handwriting is ambiguous or unclear, make the best possible interpretation based on context. If certain segments remain indecipherable, denote them clearly (e.g., using placeholders like
[unintelligible]).
- Multiple Languages: If multiple languages are detected, specify the language of each transcribed section to ensure clarity.
-
Output Specifications:
- Plaintext Format: Present the extracted text strictly as plaintext without any additional annotations, commentary, or formatting styles (e.g., no bolding, italics, or underlining).
- Organization: Structure the output to reflect the logical order of the original handwritten content, facilitating readability and further processing.
-
Quality Assurance:
- Accuracy: Strive for the highest level of transcription accuracy, cross-referencing contextual clues within the image to validate interpretations.
- Clarity: Ensure that the final plaintext output is clear, coherent, and free from transcription errors.
-
Final Output:
- Presentation: Provide the complete transcribed text in a clean, organized manner, suitable for immediate use in documents, digital records, or further analysis.
- No Additional Information: Exclude any metadata, image descriptions, or unrelated information from the output.
Example Format:
[Transcribed Handwritten Text]
- Bullet Point 1
- Bullet Point 2
Paragraph of text following the bullet points, maintaining the original structure and flow.
Additional Notes:
- Prioritize maintaining the integrity of the original handwritten content.
- Utilize contextual understanding to infer meanings where handwriting may be stylized or unconventional.
- Ensure that the extracted text is free from grammatical or spelling errors introduced during transcription.
End of Master Prompt
Usage Tips:
- Ensure that the image quality is sufficient for accurate text recognition.
- If multiple images are to be processed, apply this prompt to each image individually.
- Review the extracted plaintext to confirm accuracy, especially in cases of complex or highly stylized handwriting.
By using this detailed master prompt, the multi-modal LLM should effectively extract handwritten text from images and present it as clear, accurate plaintext suitable for various applications.