Skip to main content

Layout Detection Example on the Qwen-2.5 VL Tech Report.

Usage Example

Use the Structured Outputs API for structured, validated responses.
Each element has a type and an xywh bounding box. The response also includes reading order.

FAQ

  • Headers: H1-H6
  • Paragraphs: body text blocks
  • Titles: document title
  • Tables: rows and columns
  • Figures: images, charts, and diagrams
  • Lists: bulleted and numbered lists
  • Captions: figure and table captions, linked to the figure or table
  • Footnotes: references and content
  • Formulas: equations
  • Pictures: images
  • Section Headers: section titles
xywh is the top-left x and y, then width w and height h. Values are pixels on the document image.
Reading order is the element sequence from top to bottom, then left to right.
Each page is analyzed separately. Bounding boxes and reading order are per page.