Basics · Interactive Region Crop & Task Prompt Explorer · 658.1 MB WebGPU q4f16

Region Crop & Task Prompt Explorer

Drag a crop box across any equation, table, or heading — or nudge it cleanly with keyboard Arrow keys — then run Text Recognition:, Formula Recognition:, or Table Recognition: on those exact cropped pixels. Returning visitors auto-initialise directly from Cache Storage with zero re-download.

Probing WebGPU shader-f16 adapter capability…

1. Crop Canvas & Prompt Controls

Drag directly on the document canvas below to draw a crop box, or focus the canvas and press Arrow keys (Shift+Arrow resizes). Drop or paste (Ctrl/⌘+V) any local image.

Initialising GLM-OCR loader (auto-starts from Cache Storage if already downloaded)…

Interactive Document Crop Stage

Region: x=12% y=30% w=76% h=28% Pixels: 730×179 px

Cropped Pixels & Extracted Output

Select a region and run GLM-OCR to inspect pure-DOM LaTeX / table output for that crop.

Raw Output & Formatted Chat Prompt


          
Active PromptFormula Recognition:
Crop Pixels–
Decode Speed–
Infer Latency–
Generated Tokens–
Output NaN Count–

Show the code

Show the code — glm-core.mjs: parseLatexToAst() (zero-CDN pure-JS LaTeX math AST parser)