<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ankit Khare on Medium]]></title>
        <description><![CDATA[Stories by Ankit Khare on Medium]]></description>
        <link>https://medium.com/@ankitkhare?source=rss-7442469f9846------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*V9TIlP8NKEz-As3SUsh0KQ.png</url>
            <title>Stories by Ankit Khare on Medium</title>
            <link>https://medium.com/@ankitkhare?source=rss-7442469f9846------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 05:19:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ankitkhare/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Reality of Document AI Comparisons]]></title>
            <link>https://medium.com/@ankitkhare/reality-of-document-ai-comparisons-415fe22c8423?source=rss-7442469f9846------2</link>
            <guid isPermaLink="false">https://medium.com/p/415fe22c8423</guid>
            <category><![CDATA[document-intelligence]]></category>
            <category><![CDATA[document-ai]]></category>
            <category><![CDATA[aidoc]]></category>
            <category><![CDATA[ocr]]></category>
            <category><![CDATA[idp]]></category>
            <dc:creator><![CDATA[Ankit Khare]]></dc:creator>
            <pubDate>Fri, 17 Oct 2025 08:00:19 GMT</pubDate>
            <atom:updated>2025-10-20T23:25:55.264Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZQBdq4DDFkWkdvzI.jpg" /></figure><h3>TL;DR</h3><p>Benchmarks in document AI can be easily gamed. Anyone can make their system look like the best — especially if the dataset, prompts, or evaluation methods aren’t transparent. I came across one such recent comparison claiming 116/120 wins over Landing AI and Mistral which looks impressive on paper but falls apart under scrutiny: no standard OCR metrics (like CER/WER), no ground truth data, and likely internal reviewers instead of independent evaluators.</p><p>Their benchmark mixes real points with marketing spin — cherry-picking test data instances and not showing live playground results or extractions via. API. In contrast, transparent evaluations (like <em>Will It Extract</em> <a href="https://landing.ai/category/will-it-extract">episodes</a>) show how honest, reproducible comparisons should be done.</p><p>Bottom line: treat flashy accuracy numbers with skepticism. True credibility comes from transparency, reproducibility, and showing your work — not just winning your own benchmark.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FJWB1Ka-6FL8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DJWB1Ka-6FL8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FJWB1Ka-6FL8%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d67e7d0ac22e39217b2754db5c87a4ba/href">https://medium.com/media/d67e7d0ac22e39217b2754db5c87a4ba/href</a></iframe><h3>Introduction</h3><p>The reality of document analysis solutions is that anyone can make it look like their solution is the best. A good and knowledgeable customer/user will never take the benchmark at face value. They will do their own testing. In fact, sometimes it works the opposite way. Whenever someone publishes their doc solution and compares it to GPT or Gemini, you gotta be even more careful, and notice how they have set up their prompts and whether they have made all the prompts and chats public to begin with. Because the outcome of the LLM depends on how you prompt it and how you set up the problem.</p><blockquote><strong><em>Will It Extract Plug!</em></strong><em><br>Remember the Will It Extract Episode 1? Have a look </em><a href="https://landing.ai/will-it-extract/launching-will-it-extract-ade-on-messy-docs"><em>here</em></a><em> if you haven’t already! I was fully transparent with all the ChatGPT chat links and live comparison videos of me prompting them systematically and showing, step by step, the whole process.</em></blockquote><h3>Recap from Comparison Report</h3><p>According to the comparison report, out of 120 test documents spanning invoices, forms, bank statements, and passports, Docsumo’s OCR was preferred in 116 cases, versus only 4 for Landing AI and 0 for Mistral. These eye-popping results, along with anecdotal examples of competitors’ failures, paint a picture of Docsumo as the clear winner. But how credible are these claims? In this analysis, we closely examine Docsumo’s evaluation methodology and claims, contrast them with known facts, and outline what a “proper eval” should entail. Our goal is to separate marketing spin from a fair, concrete assessment of OCR capabilities.</p><h3>Proof is in the Pudding — Smell Test using playground</h3><p>Hey, even before you read further, why don’t we just smell-test Docsumo’s playground and the LandingAI playground? I won’t even talk much. The video will be worth a thousand words.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FhgduJPGDcVA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DhgduJPGDcVA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FhgduJPGDcVA%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/44473074089a02022d890a988e0f0387/href">https://medium.com/media/44473074089a02022d890a988e0f0387/href</a></iframe><h3>Digging Deeper into the Comparison Report</h3><p>At first glance, Docsumo’s report appears comprehensive — they even made their sample outputs public via a HuggingFace space for anyone to inspect. However, a deeper look reveals serious credibility issues in how this benchmark was designed and presented. Let’s break down the concerns in detail.</p><p><strong>1. Lack of Objective Metrics:</strong> The benchmark results rely heavily on subjective human judgments (“preference count”) and qualitative anecdotes, rather than standard OCR accuracy metrics. Docsumo’s own documentation emphasizes that OCR accuracy should be measured by quantifiable metrics like Character Error Rate (CER), Word Error Rate (WER), field-level accuracy, etc., along with processing speed. In fact, Character Error Rate (the percentage of characters misrecognized) and word-level precision/recall are widely used benchmarks in OCR research. Yet, Docsumo’s report did not publish any CER, WER, or precision/recall figures for the three systems. Without these metrics, it’s impossible to verify claims of “higher accuracy” in a rigorous way. The only quantitative result shared was the number of documents (out of 120) where each system’s output was “preferred” by reviewers — a highly subjective criterion unless strict scoring guidelines were in place (which were not described).</p><p><strong>2. Opaque Human Evaluation Procedure:</strong> Docsumo states that three human reviewers independently rated the outputs, but provides no details on the evaluation criteria or protocol. Were these reviewers employees of Docsumo? (Likely yes, given no external audit is mentioned.) On what basis did they decide one OCR’s output was better — overall visual similarity to the original? number of errors? preservation of formatting? The blog simply presents a tally of preferences with Docsumo winning 97% of the time. Such an extreme skew naturally raises suspicions of confirmation bias. If the evaluators knew which output came from Docsumo (especially since layout differences might make it obvious), their judgments could be unintentionally biased in favor of their home product. A credible benchmark would ideally be double-blind (reviewers don’t know which output is which) and use predefined scoring rubrics or error counts. Docsumo gives no indication that these safeguards were in place.</p><p><strong>3. No Public Release of Test Data:</strong> While Docsumo did make the outputs available, the actual input documents (the images/PDFs) used in the test are not readily downloadable as a bundle for independent verification. One can manually inspect them on HuggingFace, but Docsumo did not release ground-truth text for each image or any script to reproduce their scoring. Without ground truth and metrics, the community cannot truly verify how many characters or fields each system got wrong. In essence, we are asked to trust Docsumo’s internal evaluation. This runs counter to the spirit of scientific benchmarking, where test sets and metrics are usually shared openly. As one Reddit commenter bluntly put it, “Come on man, don’t use words like objectivity… This is an ad.” The lack of a transparent, reproducible evaluation protocol severely undermines the credibility of the reported results.</p><p>4. <strong>Docsumo’s observations also mix truth with hyperbole</strong> — For Landing AI’s Agentic Document Extraction, Docsumo’s observations also mix truth with hyperbole. Generative extraction models can indeed paraphrase or describe content instead of extracting verbatim text — for example, interpreting a logo or stamp in words. Docsumo notes a case where a simple “ABC” logo turned into a 130-word description by Landing’s model. But did they notice the visually grounded image being saved by the Python library? Is it really not a desired outcome for someone’s use case?</p><p>Similarly, reading vertical text is a known challenge — a misread like “89000458” becoming “80000456” was reported. These are legitimate errors. Most likely they used the research release Andrew launched in early April, which had some kinks — and note that if someone claims 99% accuracy right from the beginning, it’s likely a fantasy. I mean, come on.</p><p>5. <strong>Speed — </strong>If you have read so far, you already know the playground didn’t take more than a few seconds. Docsumo said we took around 1 minute per page, and sometimes over 2 minutes on some pages but forgot to mention that they tried research release version.</p><h3>Conclusion</h3><p>So why did I write this article, lol? Because this was a perfect example of why benchmarks, comparisons, and flashy metrics should always be taken carefully and in context. Anyone can claim victory on their own test if they control the setup. What truly matters isn’t just the number, it’s <em>how</em> you got there. Transparency builds trust. When you share prompts, show your setup, and let others reproduce your results, you don’t just prove performance, you prove integrity.</p><p>My next article with our Staff MLE, Shankar, on <strong>DocVQA</strong> validation split is going to be mind-blowing — we got 95%+ accuracy putting us in top 3 — but again, it’s not about the number. It’s about transparency, reproducibility, and earning trust, one evaluation at a time.</p><p><em>Originally published at </em><a href="https://landing.ai/blog/reality-of-doc-ai-comparisons"><em>https://landing.ai</em></a><em> on October 17, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=415fe22c8423" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Going Beyond OCR+LLM: Introducing Agentic Document Extraction]]></title>
            <link>https://medium.com/visual-ai/going-beyond-ocr-llm-introducing-agentic-document-extraction-34807b7fb659?source=rss-7442469f9846------2</link>
            <guid isPermaLink="false">https://medium.com/p/34807b7fb659</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[ocr]]></category>
            <category><![CDATA[document-processing]]></category>
            <dc:creator><![CDATA[Ankit Khare]]></dc:creator>
            <pubDate>Fri, 21 Mar 2025 01:08:27 GMT</pubDate>
            <atom:updated>2025-03-21T01:08:27.446Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XJUBRnXjq1fUD0MZUg_okA.png" /><figcaption>Agentic Document Extraction Showcase App from LandingAI</figcaption></figure><h3>Introduction</h3><p>If you’ve ever tried to extract meaningful data from PDFs — especially documents with complex layouts like tables, charts, or forms — you’ve likely run into OCR’s limitations. OCR is great for raw text, but it ignores <strong>structural relationships</strong> critical for true comprehension.</p><p><strong>Enter Agentic Document Extraction</strong>: Instead of flattening everything into text, it <strong>retains visual and spatial context</strong>. This means you can point users to the <em>exact region</em> of a PDF backing an AI-generated answer — <strong>we call it “visual grounding.”</strong> Whether you’re analyzing financial reports, academic papers, medical forms, or legal contracts, this approach ensures <strong>verifiable references</strong> and <strong>remarkably fewer hallucinations</strong>. This way, you can <strong>not only extract meaning from your documents but also build confidence in the provided answers</strong>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FYrj3xqh3k6Y%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DYrj3xqh3k6Y&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FYrj3xqh3k6Y%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/cb25c1ff3540c174aabe6b15b9e2a5f9/href">https://medium.com/media/cb25c1ff3540c174aabe6b15b9e2a5f9/href</a></iframe><h3>Overview</h3><p>In this post we will:</p><ul><li>Examine how <strong>OCR</strong> extracts raw text but <strong>fails to capture structure</strong> (tables, figures, spatial relationships) and analyze <strong>ChatGPT’s PDF upload feature</strong>, which improves comprehension but lacks <strong>precise document grounding</strong> and can hallucinate.</li><li><strong>Introduce Agentic Document Extraction and </strong>discuss its ability to <strong>preserve visual structure, spatial relationships, and extract verifiable references</strong>.</li><li><strong>Take practical examples from AI Research Papers </strong>where we upload <strong>arXiv papers</strong> (e.g., <em>“Attention Is All You Need”</em>, <em>“DeepSeek-R1”</em>) and illustrate how <strong>Agentic Document Extraction</strong> correctly identifies <strong>concepts, tabular results, and key figures</strong> while <strong>visually grounding answers</strong>.</li></ul><h3>❌ Limitations of OCR</h3><p>OCR is designed for <strong>text extraction</strong>, but it ignores <strong>structural relationships</strong> (many of which are visual in nature) that are critical for document comprehension.</p><p><strong>Common Issues with OCR</strong></p><ul><li>Loses key visual elements like tables, figures, and checkboxes.</li><li>Fails to capture relationships between text and annotations, captions, or diagrams.</li><li>Struggles with multi-column layouts, handwritten elements, and non-standard fonts.</li></ul><p>👉 <strong>Example:</strong> If you upload a <strong>research paper from arXiv</strong>, OCR might extract text but <strong>won’t recognize images, table structures, or spatial relationships</strong> between different sections.</p><h3>❌ Limitations of ChatGPT-Based PDF Uploads</h3><p>Uploading PDFs directly into ChatGPT improves understanding over simple OCR by <strong>letting the LLM reason about extracted text</strong>. However, this still lacks <strong>structured comprehension of the document layout</strong>.</p><p><strong>Common Issues with ChatGPT-Based PDF Uploads</strong></p><ul><li>Works well for <strong>linear text</strong> but <strong>fails with structured content like tables, checkboxes, or diagrams</strong>.</li><li><strong>Cannot pinpoint the exact location</strong> of an answer within the document.</li><li><strong>Prone to hallucinations</strong>, often fabricating answers due to missing structured input.</li></ul><p>👉 <strong>Example:</strong> If you ask ChatGPT for the <strong>authors of “Attention Is All You Need”</strong>, it will succeed. But if you try with the <strong>DeepSeek-R1 paper</strong>, it will likely fail.</p><p><strong>Why?</strong> The authors of <em>“Attention Is All You Need”</em> are clearly listed below the title on the first page. However, <em>DeepSeek-R1</em> has <strong>a long list of contributors spanning the last three pages</strong>, which ChatGPT might fail to extract accurately.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D3oFHIXxMQeQ&amp;type=text%2Fhtml&amp;schema=youtube&amp;display_name=YouTube&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F3oFHIXxMQeQ%3Ffeature%3Doembed" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/29910052ef25affac4cb85537fde34a1/href">https://medium.com/media/29910052ef25affac4cb85537fde34a1/href</a></iframe><h3>How Agentic Document Extraction is Different</h3><p>Unlike OCR and LLM-based PDF processing, <strong>Agentic Document Extraction</strong> treats documents as <strong>structured visual representations</strong>, enabling <strong>more accurate and verifiable</strong> answers.</p><h3>✅ Understands Complex Layouts</h3><ul><li>Extracts <strong>text, tables, charts, and form fields</strong> while preserving their <strong>layout and relationships</strong> (<em>more on how this preservation happens later</em>).</li><li>Captures <strong>checkboxes, flowcharts, financial tables, and other structured elements</strong>.</li></ul><h3>✅ Visual Grounding</h3><ul><li>Every extracted element is <strong>linked to its exact location in the document</strong> (<em>Can you guess how? Hint: It stores </em><strong><em>bounding box coordinates</em></strong><em> along with the extracted elements!</em>).</li><li>Enables <strong>verifiable AI-generated answers</strong> by pointing directly to <strong>the source data in the PDF</strong>.</li></ul><h3>✅ Accurate Extraction of Images and Charts</h3><ul><li>Accurately extracts <strong>data from charts, tables, and complex visual layouts</strong>.</li><li>Eliminates errors and <strong>partial interpretations</strong> common in text-only analysis.</li><li>Enables <strong>comprehensive data capture</strong> for <strong>precise insights across industries</strong>.</li></ul><blockquote>💡<strong>Note:</strong> I built a simple Streamlit app called <strong>Multi-PDF Research Paper QA Assistant</strong>, which leverages <strong>LandingAI’s Agentic Document Extraction API</strong> to process academic documents <strong>page by page</strong>, extract structured content using AI, and allow users to ask natural language questions with answers supported by <strong>visual evidence from the original PDFs</strong>. In this post, I’ll focus on <strong>highlighting the key differentiators</strong> of this technology with the help of examples. In the second part (to be released next week), I will <strong>walk through how I built this application</strong> and dive into the <strong>behind-the-scenes details of leveraging this API</strong>.</blockquote><h3>Where LLMs Fail &amp; Agentic Document Extraction Excels</h3><p>Now, let’s examine <strong>real-world examples</strong> where traditional LLMs <strong>fail</strong>, but <strong>Agentic Document Extraction works magically</strong>.</p><h3>Example 1: Extracting Accuracy from the DeepSeek-R1 Paper</h3><p>I uploaded <em>“DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning”</em> and asked it to find the <strong>R1-zero-pass@1 accuracy at 4000 steps</strong>.</p><h3>Results</h3><ul><li><strong>ChatGPT Result:</strong> <strong>40% (Incorrect)</strong></li><li><strong>Correct Answer:</strong> <strong>60% (Extracted Correctly by Agentic Document Extraction)</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ht9toPqejy6bRIMGi1NImg.png" /><figcaption>Original Figure from the Paper</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HI5uaZx5mMDFRaxv0NrJkw.png" /><figcaption>ChatGPT 4o Response</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S-cwrs6K5ox0xwTI4Hxmlw.png" /><figcaption>Response using Agentic Document Extraction API from LandingAI</figcaption></figure><p>👉 <strong>Agentic Document Extraction Provides:</strong></p><ol><li>The <strong>correct answer</strong>.</li><li>An <strong>explanation</strong> of why this answer was chosen.</li><li><strong>Visual grounding</strong>, linking the answer to the exact PDF region.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LDVmbVmVu5wLJpgkQXuUnQ.png" /><figcaption>Thanks to the Agentic Document Extraction API, it becomes easy to perform Visual Grounding</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YGW03YbsBVJYUd3fbhhYHQ.png" /><figcaption>An explanation of the overall thesis behind formulating the answer, along with a list of supporting evidence from different pages of the PDF that back the answer — each accompanied by the corresponding reasoning for why that specific chunk or PDF section was selected.</figcaption></figure><h3>Example 2: Identifying Softmax in Transformer Architecture</h3><p>I asked where <strong>Softmax is applied</strong> in <strong>Figure 2 of “Attention Is All You Need”</strong>.</p><ul><li><strong>ChatGPT</strong> struggled with a <strong>cluttered and incomplete visual breakdown</strong>.</li><li><strong>Agentic Document Extraction</strong> accurately extracted <strong>the relevant figure section</strong> and visually highlighted the answer.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Lhj9MbZkMT8q6zKny6mlg.png" /><figcaption>ChatGPT 4o model response</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yxSyaq1LT38yltVDEMqWMA.png" /><figcaption>ChatGPT 4o model’s attempt to breakdown the answer visually by generating a cluttered image</figcaption></figure><p>Below are all the screenshots showing the answer using our API:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oIW22NmppLMwk3XBRwASCA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JeTg5YumilvJXM_d4ifm6w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oBn6PNFoz4vLr8sENOLbfQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cJikdcjcE9Pjif5cjPzxqQ.png" /><figcaption>Again, you get an overall explanation behind formulating the answer, along with a list of supporting evidence from different pages of the uploaded PDF that back the answer — each accompanied by the corresponding reasoning for why that specific chunk or PDF section was selected.</figcaption></figure><h3>Example 3: Examining Figures for Exact Evidence</h3><p>Previous prompt might be a little confusing but notice what happens when I prompt the system to examine figure 1 explicitly. It is able to visually ground the answer in the figure and provide exact evidence:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NFu4D2p6EOmdYi_G0YN-9A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mwpFUWak8QRjvvadCQdrAA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rZjJ33jQ1Y7H9tCw9LpLlA.png" /></figure><p>I’m sure that by now, you must be amazed, thinking about how well you could leverage this technology in your domain and already imagining the ways you could extract meaningful insights from your data while ensuring <strong>visually grounded facts</strong> that build confidence in the answers — providing <strong>exact evidence</strong> and <strong>minimizing hallucinations to almost zero!</strong></p><h3>Conclusion</h3><p>Building a “Chat with PDF” tool that <strong>truly understands</strong> document layout is no longer just wishful thinking. By leveraging <strong>Agentic Document Extraction</strong> you can offer an end-to-end solution that not only answers questions but also points users to the <em>precise PDF region</em> backing those answers.</p><h3>What Do You Think?</h3><p>Ready to see how your own documents stand up to an Agentic approach?</p><p>— Test our Agentic Document Extraction API for free</p><p>— Join our <a href="https://discord.com/invite/RVcW3j9RgR"><strong>Discord community</strong></a><strong>, </strong>and share what you build!</p><p>— Stay tuned for <strong>Part 2, <em>“Beyond OCR: Building Apps with Agentic Document Extraction API,”</em> </strong>where we will discuss how we built the app and leveraged our <strong>Agentic Document Extraction API</strong> to perform <strong>visual grounding</strong> and generate <strong>associated reasoning for every relevant region</strong>.</p><h3><strong>If you enjoyed this guide </strong>❤️</h3><ol><li><strong>Give me some claps👏 - 20 maybe :)</strong></li><li><strong>Follow</strong> me to never miss an update.</li></ol><p><strong>Got Questions?</strong> comment below! I never miss to reply.</p><p><em>Ankit Khare</em></p><p><em>Developer Relations @LandingAI</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34807b7fb659" width="1" height="1" alt=""><hr><p><a href="https://medium.com/visual-ai/going-beyond-ocr-llm-introducing-agentic-document-extraction-34807b7fb659">Going Beyond OCR+LLM: Introducing Agentic Document Extraction</a> was originally published in <a href="https://medium.com/visual-ai">LandingAI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Camera-Based Parking Detection System using VisionAgent]]></title>
            <link>https://medium.com/visual-ai/building-a-camera-based-parking-detection-system-using-visionagent-9946ffe851ed?source=rss-7442469f9846------2</link>
            <guid isPermaLink="false">https://medium.com/p/9946ffe851ed</guid>
            <category><![CDATA[visual-ai]]></category>
            <category><![CDATA[object-detection]]></category>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Ankit Khare]]></dc:creator>
            <pubDate>Wed, 19 Feb 2025 19:48:34 GMT</pubDate>
            <atom:updated>2025-02-19T19:48:34.463Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*eV3o_EgaDTewl0m0E_7GwA.png" /></figure><p>Picture this: you pull into a busy community parking lot or a shopping mall, and instead of driving circles to hunt for an open space, a digital sign or an app guides you straight to the nearest empty spot. That’s the promise of an automated, camera-based parking detection system. In this post, we’ll take a no-fuss approach to show how you can use <a href="https://landing.ai/visionagent">VisionAgent</a> to build just that — without layers of complex logic. VisionAgent is a generative Visual AI application builder that follows an agentic framework to handle complex visual tasks requiring reasoning. It modularizes tool selection to pick the best visual tool for a task and leverages built-in visual design patterns to solve particularly complex visual problems.</p><h3>Why This Matters</h3><ul><li><strong>Saves Time</strong>: No more circling around looking for a space. Drivers can see free spots immediately.</li><li><strong>Reduces Congestion</strong>: Less wandering traffic means fewer queues and less frustration.</li><li><strong>Easy Setup</strong>: A few cameras placed around the lot, plus VisionAgent’s detection tools, can get you started quickly.</li></ul><h3>The Basic Idea</h3><ul><li><strong>Camera Feeds</strong>: You install a camera (or cameras) overlooking rows of parking spaces.</li><li><strong>Car Detection</strong>: Every few seconds, you capture a frame from the camera and feed it into your application created using vision code generated by VisionAgent.</li><li><strong>Empty Spot Identification</strong>: Identify which parking stalls are unoccupied by spotting gaps between detected cars (or by labeling parking stall outlines). VisionAgent helps you write the initial code for this, which you can modify yourself or re-prompt VisionAgent to optimize for you.</li><li><strong>Live Updates</strong>: Show a list of empty spots or a real-time feed with bounding boxes drawn in green for empty spaces and red for occupied.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3bR9-1RKYWxhRkriK0S_TQ.png" /><figcaption>VisionAgent-powered Empty Parking Spots Detector, allowing users to upload parking-lot images for analysis</figcaption></figure><h3>How VisionAgent Helps</h3><ul><li><strong>Easy Chat Interface</strong>: You can prompt the VisionAgent, and it analyzes your prompt to find an optimal solution by breaking down the problem into several solvable steps. Generally, most steps involve writing vision code to solve your problem. For this application, I gave the initial prompt, “find empty car spots,” along with an image, and the VisionAgent planner agentically comes out with the following execution pathway:</li></ul><ol><li>Use countgd_object_detection model to detect all cars in the image.</li><li>Sort and group detections into horizontal lines.</li><li>Analyze gaps between cars to identify empty spots.</li><li>Combine car detections and empty spots.</li><li>Visualize results with bounding boxes and save the final image.</li></ol><p>VisionAgent leverages an LLM at various steps to verify its observations and create a pathway to solve the problem.</p><ul><li><strong>Quick Object Detection</strong>: VisionAgent has a built-in library of models that it uses to find a suitable model for you, like countgd_object_detection, which can readily identify cars (and even trucks, SUVs, etc.), potentially saving tons of time that goes into model selection and configuration.</li><li><strong>Flexible Integration</strong>: In just a few lines of Python (often combined with Streamlit), you can build a straightforward web interface for viewing camera feeds and utilizing the code generated by the VisionAgent.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DPHoCTKGL-2EO2iU-eD9Vg.png" /><figcaption>Inside the VisionAgent workspace: The system processes the uploaded parking-lot image, executes code to detect cars and empty spaces, and leverages a clear, interactive interface for real-time analysis</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3pMOXYX0GlmZGmpaxk7RwA.png" /><figcaption>VisionAgent UI: The agent outputs the final solution showing the code, code output and it’s visualization</figcaption></figure><h3>A Lightweight Pipeline</h3><ol><li><strong>Capture an Image:</strong> from a webcam, IP camera, or a static snapshot.</li><li><strong>Detect Cars:</strong></li></ol><pre>detections = countgd_object_detection(&quot;car&quot;, image)</pre><ol><li><strong>Identify Empty Spots</strong> Either by computing gaps between bounding boxes or by detecting each stall (if you have labeled them in advance). Mark those empty stall regions as “empty_spot” with a green bounding box.</li><li><strong>Visualize &amp; Report</strong> Draw bounding boxes. Print or display the number of cars vs. empty spots.</li></ol><pre>overlay_bounding_boxes(image, all_detections)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LaP33uLs-6AhJ62uREIjdA.png" /><figcaption>Application Interface showing the annotated image where detected cars (yellow bounding boxes) and empty spots (green bounding boxes) are marked accompanied by detailed statistics on total spots, parked cars, and empty spots</figcaption></figure><h3>Example Code Snippet</h3><pre>from vision_agent.tools import countgd_object_detection, overlay_bounding_boxes<br><br>def detect_parking(image):<br>    # 1. Detect cars<br>    car_detections = countgd_object_detection(&quot;car&quot;, image)<br>    # 2. Find empty spots (simplified approach: check horizontal gaps, etc.)<br>    # ... minimal logic to find &#39;empty_spot&#39; bounding boxes ...<br>    empty_spots = [<br>        {&quot;label&quot;: &quot;empty_spot&quot;, &quot;bbox&quot;: [100, 50, 200, 120], &quot;color&quot;: (0, 255, 0)}<br>    ]<br>    # 3. Combine results &amp; overlay<br>    all_detections = car_detections + empty_spots<br>    annotated_img = overlay_bounding_boxes(image, all_detections)<br>    return annotated_img, all_detections</pre><p>You would then display annotated_img in your interface and maybe show the count of detected cars vs. empty spots.</p><h3>Challenges &amp; Tips</h3><ul><li><strong>Camera Angle</strong>: Make sure the camera has a clear view of each parking space.</li><li><strong>Lighting</strong>: Day vs. night can change how well cars are detected. Infrared cameras or good lighting can help.</li><li><strong>Parking Layout</strong>: Some lots have angled slots or half-faded lines, so you might need to tweak your logic for finding empty spots.</li><li><strong>Performance</strong>: If you want real-time detection (e.g., multiple frames per second), you might have to train an efficient model using VisionAgent’s custom model feature where you can input your data and train custom models tailored specifically to your task.</li></ul><h3>Bring It All Together</h3><ol><li>Install the VisionAgent Python package.</li><li>Set up a camera or upload test photos.</li><li>Write a short script or a Streamlit app that:</li></ol><ul><li>Grabs a frame from the camera.</li><li>Calls detect_parking (or your variant).</li><li>Displays the annotated image, plus simple stats like “Cars: X, Empty Spots: Y.”</li></ul><p>4. Refine as needed — perhaps add a “Parking Occupancy: 80% Full” to your user interface.</p><p>With <a href="https://landing.ai/visionagent">VisionAgent</a> handling most of the vision code, you can build a simple, practical parking-lot monitoring system without getting bogged down in advanced computer-vision complexity. In no time, you’ll have a real-time feed telling drivers, “Hey, there’s a green spot open in row 2!” — and that’s an easy win for everyone. Download the full code from this <a href="https://github.com/ankit1khare/empty_parking_spot_detect">repository</a>, run the Streamlit app locally, and enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9946ffe851ed" width="1" height="1" alt=""><hr><p><a href="https://medium.com/visual-ai/building-a-camera-based-parking-detection-system-using-visionagent-9946ffe851ed">Building a Camera-Based Parking Detection System using VisionAgent</a> was originally published in <a href="https://medium.com/visual-ai">LandingAI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Update Documents in Elasticsearch]]></title>
            <link>https://medium.com/rocksetcloud/how-to-update-documents-in-elasticsearch-476563a1b125?source=rss-7442469f9846------2</link>
            <guid isPermaLink="false">https://medium.com/p/476563a1b125</guid>
            <category><![CDATA[rocksdb]]></category>
            <category><![CDATA[cdc]]></category>
            <category><![CDATA[database-design]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[streaming]]></category>
            <dc:creator><![CDATA[Ankit Khare]]></dc:creator>
            <pubDate>Wed, 20 Mar 2024 05:27:04 GMT</pubDate>
            <atom:updated>2024-03-20T05:27:04.212Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*L5nqCUCkTbv-RbrYawxtVg.jpeg" /></figure><h3>How to Update Documents in Elasticsearch</h3><p><a href="https://rockset.com/comparisons/elasticsearch-vs-rockset/">Elasticsearch</a> is an open-source search and analytics engine based on Apache Lucene. When building applications on change data capture (CDC) data using Elasticsearch, you’ll want to architect the system to handle frequent updates or modifications to the existing documents in an index.</p><p>In this blog, we’ll walk through the different options available for updates including full updates, partial updates and scripted updates. We’ll also discuss what happens under the hood in Elasticsearch when modifying a document and how frequent updates impact CPU utilization in the system.</p><h3>Example application with frequent updates</h3><p>To better understand use cases that have <a href="https://rockset.com/blog/updates-inserts-deletes-elasticsearch-rockset/">frequent updates</a>, let’s look at a search application for a video streaming service like Netflix. When a user searches for a show, ie “political thriller”, they are returned a set of relevant results based on keywords and other metadata.</p><p>Let’s look at an example document in Elasticsearch of the show “House of Cards”:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/754af0cecd9cc843a5ef25ab11d617da/href">https://medium.com/media/754af0cecd9cc843a5ef25ab11d617da/href</a></iframe><p>The search can be configured in Elasticsearch to use name and description as full-text search fields. The views field, which stores the number of views per title, can be used to boost content, ranking more popular shows higher. The views field is incremented every time a user watches an episode of a show or a movie.</p><p>When using this search configuration in an application the scale of Netflix, the number of updates performed can easily cross millions per minute as determined by the <a href="https://about.netflix.com/en/news/what-we-watched-a-netflix-engagement-report">Netflix Engagement Report</a>. From the Netflix Engagement Report, users watched ~100 billion hours of content on Netflix between January to July. Assuming an average watch time of 15 minutes per episode or a movie, the number of views per minute reaches 1.3 million on average. With the search configuration specified above, each view would require an update in the millions scale.</p><p>Many search and analytics applications can experience frequent updates, especially when built on CDC data.</p><h3>Performing updates in Elasticsearch</h3><p>Let’s delve into a general example of how to perform an update in Elasticsearch with the code below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dc42b7e5be93523409cd498bc487b73c/href">https://medium.com/media/dc42b7e5be93523409cd498bc487b73c/href</a></iframe><h3>Full updates versus partial updates in Elasticsearch</h3><p>When performing an update in Elasticsearch, you can use the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html">index API</a> to replace an existing document or the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html">update API</a> to make a partial update to a document.</p><p>The index API retrieves the entire document, makes changes to the document and then reindexes the document. With the update API, you simply send the fields you wish to modify, instead of the entire document. This still results in the document being reindexed but minimizes the amount of data sent over the network. The update API is especially useful in cases where the document size is large and sending the entire document over the network will be time consuming.</p><p>Let’s see how both the index API and the update API work using Python code.</p><h3>Full updates using the index API in Elasticsearch</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/62d8553b29bee97688edcb9285c77ec9/href">https://medium.com/media/62d8553b29bee97688edcb9285c77ec9/href</a></iframe><p>As you can see in the code above, the index API requires two separate calls to Elasticsearch which can result in slower performance and higher load on your cluster.</p><h3>Partial updates using the update API in Elasticsearch</h3><p>Partial updates internally use the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html">reindex API</a>, but have been configured to only require a single network call for better performance.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dd4a6f1bddc4dafe694f1924cda3b26f/href">https://medium.com/media/dd4a6f1bddc4dafe694f1924cda3b26f/href</a></iframe><p>You can use the update API in Elasticsearch to update the view count but, by itself, the update API cannot be used to increment the view count based on the previous value. That is because we need the older view count to set the new view count value.</p><p>Let’s see how we can fix this using a powerful scripting language, Painless.</p><h3>Partial updates using Painless scripts in Elasticsearch</h3><p><a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting-painless.html">Painless</a> is a scripting language designed for Elasticsearch and can be used for query and aggregation calculations, complex conditionals, data transformations and more. Painless also enables the use of scripts in update queries to modify documents based on complex logic.</p><p>In the example below, we use a Painless script to perform an update in a single API call and increment the new view count based on the value of the old view count.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6a6c3c27061abef4bbceeb165a0917f2/href">https://medium.com/media/6a6c3c27061abef4bbceeb165a0917f2/href</a></iframe><p>The Painless script is pretty intuitive to understand, it is simply incrementing the view count by 1 for every document.</p><h3>Updating a nested object in Elasticsearch</h3><p><a href="https://rockset.com/blog/nested-queries-parent-child-relationships-elasticsearch/">Nested objects</a> in Elasticsearch are a data structure that allows for the indexing of arrays of objects as separate documents within a single parent document. Nested objects are useful when dealing with complex data that naturally forms a nested structure, like objects within objects. In a typical Elasticsearch document, arrays of objects are flattened, but using the nested data type allows each object in the array to be indexed and queried independently.</p><p>Painless scripts can also be used to update nested objects in Elasticsearch.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/56c1ce46bc40d3fc5bfb1a4eebffa364/href">https://medium.com/media/56c1ce46bc40d3fc5bfb1a4eebffa364/href</a></iframe><h3>Adding a new field in Elasticsearch</h3><p>Adding a new field to a document in Elasticsearch can be accomplished through an index operation.</p><p>You can partially update an existing document with the new field using the Update API. When dynamic mapping on the index is enabled, introducing a new field is straightforward. Simply index a document containing that field and Elasticsearch will automatically figure out the suitable mapping and add the new field to the mapping.</p><p>With dynamic mapping on the index disabled, you will need to use the update mapping API. You can see an example below of how to update the index mapping by adding a “category” field to the movies index.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/62462aa8d5a5cbc78e42761db48bc984/href">https://medium.com/media/62462aa8d5a5cbc78e42761db48bc984/href</a></iframe><h3>Updates in Elasticsearch under the hood</h3><p>While the code is simple, Elasticsearch internally is doing a lot of heavy lifting to perform these updates because data is stored in immutable segments. As a result, Elasticsearch cannot simply make an in-place update to a document. The only way to perform an update is to <a href="https://rockset.com/blog/elasticsearch-reindexing-when-to-reindex-best-practices-and-alternatives/">reindex the entire document</a>, regardless of which API is used.</p><p>Elasticsearch uses Apache Lucene under the hood. A Lucene index is composed of one or more segments. A segment is a self-contained, immutable index structure that represents a subset of the overall index. When documents are added or updated, new Lucene segments are created and older documents are marked for soft deletion. Over time, as new documents are added or existing ones are updated, multiple segments may accumulate. To optimize the index structure, Lucene periodically merges smaller segments into larger ones.</p><h3>Updates are essentially inserts in Elasticsearch</h3><p>Since each update operation is a reindex operation, all updates are essentially inserts with soft deletes.</p><p>There are cost implications for treating an update as an insert operation. On one hand, the soft deletion of data means that old data is still being retained for some period of time, bloating the storage and memory of the index. Performing soft deletes, reindexing and garbage collection operations also take a heavy toll on CPU, a toll that is exacerbated by repeating these operations on all replicas.</p><p>Updates can get more tricky as your product grows and your data changes over time. To keep Elasticsearch performant, you will need to <a href="https://rockset.com/blog/how-to-solve-4-elasticsearch-performance-challenges-at-scale/">update the shards</a>, analyzers and tokenizers in your cluster, requiring a reindexing of the entire cluster. For production applications, this will require setting up a new cluster and migrating all of the data over. Migrating clusters is both time intensive and error prone so it’s not an operation to take lightly.</p><h3>Updates in Elasticsearch</h3><p>The simplicity of the update operations in Elasticsearch can mask the heavy operational tasks happening under the hood of the system. Elasticsearch treats each update as an upsert, requiring the full document to be recreated and reindexed. For applications with frequent updates, this can quickly become expensive as we saw in the Netflix example where millions of updates happen every minute. We recommend either batching updates using the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html">Bulk API</a>, which adds latency to your workload, or looking at alternative solutions when faced with frequent updates in Elasticsearch.</p><p>Rockset, a search and analytics database built in the cloud, is a mutable alternative to Elasticsearch. Being built on <a href="https://rockset.com/blog/rocksdb-is-eating-the-database-world/">RocksDB</a>, a key-value store popularized for its mutability, Rockset can make in-place updates to documents. This results in only the value of individual fields being updated and reindexed rather than the entire document. If you’d like to compare the performance of Elasticsearch and Rockset for update-heavy workloads, you can start a <a href="https://rockset.com/create/">free trial of Rockset</a> with $300 in credits.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=476563a1b125" width="1" height="1" alt=""><hr><p><a href="https://medium.com/rocksetcloud/how-to-update-documents-in-elasticsearch-476563a1b125">How to Update Documents in Elasticsearch</a> was originally published in <a href="https://medium.com/rocksetcloud">Rockset</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Easy street parking with MASK-RCNN]]></title>
            <link>https://medium.com/@ankitkhare/easy-street-parking-with-mask-rcnn-8a1d57a63317?source=rss-7442469f9846------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a1d57a63317</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[parking-management-system]]></category>
            <category><![CDATA[mask-rcnn]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Ankit Khare]]></dc:creator>
            <pubDate>Mon, 18 Feb 2019 07:03:25 GMT</pubDate>
            <atom:updated>2019-02-18T18:33:55.776Z</atom:updated>
            <content:encoded><![CDATA[<p>Pre-trained Mask-RCNN from <a href="https://github.com/matterport/Mask_RCNN"><strong>Matterport</strong></a> can be easily used to detect cars in a parking. In order to utilize it I recorded a video of the parking near my apartment. Even with my hands shaking due to cold, the overall prototype successfully detect an available parking space vacancy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*N7xTllUBD5oeXpB2g-9kaA.gif" /><figcaption>Pardon me for shaking hands. It was cold outside :0</figcaption></figure><p>Observe the change of color in the other parking spots. It is primarily due to moving camera while recording, the car parked in the area gets out from the marked spot. Using Twilio API, we can easy generate a number and use it to send a custom message to our own cell phone whenever there’s a vacancy available to park. There’s a great medium post <a href="https://medium.com/@ageitgey/snagging-parking-spaces-with-mask-r-cnn-and-python-955f2231c400">here</a> which describes the process flow. The underlying assumption is that, the first frame will determine the parking spots and no car in the first frame should be a moving one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*ycho1IszlPtslWP7MI-NkA.gif" /><figcaption>Assumption: The first frame will determine the parking spots and no car in the first frame should be in motion</figcaption></figure><p>This is very inconvenient. We can’t expect to take our cell phone out and get bluffed by a moving car just because it was in the first frame. So, we need to think of something better. What about <strong>identifying the static cars</strong> by <strong>observing them for 5 seconds </strong>and assuming that they are parked in the authorized parking area only. This way, no moving cars would hamper our system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*lPdqSl72laFFogYy1pt6Eg.gif" /><figcaption>Observe the passing by car at the beginning of the video. Our new method is working great!</figcaption></figure><p>The approach is pretty simple. I just took two frames and compared them for a possible motion using frame subtraction. Next I eroded the area occupied by the moving vehicle so that MASK-RCNN would not capture it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cdcf720b003f861fd31d48a55db6819a/href">https://medium.com/media/cdcf720b003f861fd31d48a55db6819a/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*x6wTWuWlwlnic30Mj61S0g.png" /><figcaption>This frame makes the operations performed in the above code very intuitive I guess</figcaption></figure><p>Let’s check how well our system performs in night, just for the fun :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*gbav_QJfpmbu5ns6BEgyPw.gif" /><figcaption>Credits to Mask RCNN, works pretty well even at night with a bad quality input video</figcaption></figure><p>What if we use <strong>IPhone 7 plus</strong> ? let’s see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*6JS-_uYaIWwv03K16zdx_A.gif" /><figcaption>Far better! It’s funny how the leftmost car gets identified by MASK-RCNN with full confidence as soon as the headlights of the ‘Camry’ focus on it</figcaption></figure><p>Easy, right! Now all I have for you guys is to check my other <a href="https://github.com/ankit1khare/Smart-Park-with-YOLO-V3"><strong>Yolo repository</strong></a> to see how we can speed up the process using batch-processing. Essentially, I am asking you to read multiple frames, keep them in buffer and then send them for processing to GPU at once to maximize GPU utilization. This way you might be able to take advantage of <strong>colab’s 12 GB of free K80.</strong></p><p>Have fun and do let me know if you come up with any further cool ideas! You can find the code on my <strong>Git</strong>. The code is <strong>runnable on Google Colab</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a1d57a63317" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>