131 lines
3.5 KiB
Plaintext
131 lines
3.5 KiB
Plaintext
system
|
|
You are a precise OCR engine. Your task is to extract ALL text and tables from the provided image and return them as a single valid JSON object.
|
|
|
|
STRICT RULES — violating any of these is a failure:
|
|
1. Output ONLY a valid JSON object. No markdown, no code fences, no explanations, no commentary, no trailing text.
|
|
2. The JSON must conform exactly to this schema:
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "text" | "table",
|
|
"content": "..." // when type is "text"
|
|
"headers": [...] // when type is "table"
|
|
"rows": [[...], ...] // when type is "table"
|
|
}
|
|
]
|
|
}
|
|
3. For 'text' elements: preserve paragraph breaks as \n within the string.
|
|
4. For 'table' elements: 'headers' is an array of column-header strings; 'rows' is an array of arrays, one inner array per row, each cell a string.
|
|
5. Order elements top-to-bottom, left-to-right as they appear in the image.
|
|
6. Do NOT invent, correct, or paraphrase text. Transcribe verbatim.
|
|
7. If the image contains no extractable text or tables, output: {"elements": []}
|
|
8. Do NOT wrap the JSON in any other structure.
|
|
user
|
|
Extract all text and tables from this image.
|
|
Return the result as a single JSON object matching the schema defined in the system prompt. Output only the JSON.
|
|
assistant
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "table",
|
|
"headers": [
|
|
"",
|
|
"Mandag",
|
|
"Tirsdag",
|
|
"Onsdag",
|
|
"Torsdag",
|
|
"Fredag"
|
|
],
|
|
"rows": [
|
|
[
|
|
"1",
|
|
"MB M-dan 03 Normperiod",
|
|
"LK MORGEN 03 Normperiod",
|
|
"MB M-dan 03 Normperiod",
|
|
"MB M-dan 03 Normperiod",
|
|
"LK MORGEN 03 Normperiod"
|
|
],
|
|
[
|
|
"2",
|
|
"MB DAN 03 Normperiod",
|
|
"LK MAT 03 Normperiod",
|
|
"MB DAN 03 Normperiod",
|
|
"EH STØT 01 Normperiod ST TYS 03 Normperiod",
|
|
"LK MAT 03 Normperiod"
|
|
],
|
|
[
|
|
"3",
|
|
"MB DAN 03 Normperiod",
|
|
"LK MAT 03 Normperiod",
|
|
"MB DAN 03 Normperiod",
|
|
"MB KRI 03 Normperiod",
|
|
"LK MAT 03 Normperiod"
|
|
],
|
|
[
|
|
"4",
|
|
"LK MAT 03 Normperiod",
|
|
"MO F/K fys Normperiod",
|
|
"EH STØT 01 Normperiod ST TYS 03 Normperiod",
|
|
"LK BIO 03 Normperiod",
|
|
"JB SAM 03 Normperiod"
|
|
],
|
|
[
|
|
"5",
|
|
"MB ENG 03 Normperiod",
|
|
"MO F/K fys Normperiod",
|
|
"EH STØT 01 Normperiod ST TYS 03 Normperiod",
|
|
"LK BIO 03 Normperiod",
|
|
"JB SAM 03 Normperiod"
|
|
],
|
|
[
|
|
"6",
|
|
"MB IDR gym/hal Normperiod TH IDR gym/hal Normperiod",
|
|
"MB TIL Normperiod TH TIL Normperiod MO TIL Normperiod",
|
|
"LK GEO 03 Normperiod",
|
|
"MB ENG 03 Normperiod",
|
|
"MB DAN 03 Normperiod"
|
|
],
|
|
[
|
|
"7",
|
|
"MB IDR gym/hal Normperiod TH IDR gym/hal Normperiod",
|
|
"MB TIL Normperiod TH TIL Normperiod MO TIL Normperiod",
|
|
"MB ENG 03 Normperiod",
|
|
"JB HIS 03 Normperiod",
|
|
"MB DAN 03 Normperiod"
|
|
],
|
|
[
|
|
"8",
|
|
"",
|
|
"",
|
|
"MO F/K fys Normperiod",
|
|
"JB HIS 03 Normperiod",
|
|
""
|
|
],
|
|
[
|
|
"9",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
[
|
|
"10",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
[
|
|
"11",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
""
|
|
]
|
|
]
|
|
}
|
|
]
|
|
} |