<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Andrei Borovskii</title>
    <description>The latest articles on DEV Community by Andrei Borovskii (@andrei_b2).</description>
    <link>https://dev.to/andrei_b2</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3305283%2F65cba2ac-26b1-4860-8762-78ee93005b4f.png</url>
      <title>DEV Community: Andrei Borovskii</title>
      <link>https://dev.to/andrei_b2</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/andrei_b2"/>
    <language>en</language>
    <item>
      <title>YAGF using Granite Docling for page layout detection</title>
      <dc:creator>Andrei Borovskii</dc:creator>
      <pubDate>Tue, 01 Dec 2026 20:20:48 +0000</pubDate>
      <link>https://dev.to/andrei_b2/yagf-using-granite-docling-for-page-layout-detection-4cek</link>
      <guid>https://dev.to/andrei_b2/yagf-using-granite-docling-for-page-layout-detection-4cek</guid>
      <description>&lt;p&gt;The development build is showing a recorded Granite 500M result from a real Jetson run.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Granite Docling sees on a scanned calculus page
&lt;/h2&gt;

&lt;p&gt;I’m testing IBM’s Granite Docling V2 as an optional layout and formula reader in YAGF, an open-source OCR app for Linux. It runs on a Jetson AGX Orin and returns DocLang, which YAGF turns into editable page regions. &lt;a href="https://huggingface.co/ibm-granite/granite-docling-v2-500m" rel="noopener noreferrer"&gt;Granite Docling model card&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On the calculus page in the screenshot, 500M proposed &lt;strong&gt;24 areas&lt;/strong&gt;, including four display equations. It also read 31 inline formulas inside paragraphs. Those formulas came back without individual boxes, so YAGF keeps their paragraphs marked &lt;strong&gt;Text + formulas&lt;/strong&gt;. In the layout review, I can also accept or correct a block’s role, such as &lt;strong&gt;Page header&lt;/strong&gt;, &lt;strong&gt;Heading&lt;/strong&gt;, or &lt;strong&gt;Caption&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The smaller model surprised me. On 16 verified calculus crops, &lt;strong&gt;500M got 12 complete formulas right&lt;/strong&gt;, with a median of &lt;strong&gt;2.6 seconds per crop&lt;/strong&gt;. The 2B model got 9 right on that set. On a separate set of 10 subscript-heavy crops, &lt;strong&gt;2B needed 9 subscript edits&lt;/strong&gt;, compared with &lt;strong&gt;42 for 500M&lt;/strong&gt;, across 69 reference subscripts.&lt;/p&gt;

&lt;p&gt;If you work on OCR for scanned books, how do you evaluate inline equations when the transcription is right and the location is still uncertain? I’d like to add more examples like these to the benchmark.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/andrei-b/YAGF/tree/dev" rel="noopener noreferrer"&gt;YAGF 2 on GitHub&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy66tje5gmtf3g3j69lpx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy66tje5gmtf3g3j69lpx.png" alt=" " width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>linux</category>
      <category>machinelearning</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
