<?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: Lucas Hayes</title>
    <description>The latest articles on DEV Community by Lucas Hayes (@lucas_hayes_3546ebe6f8295).</description>
    <link>https://dev.to/lucas_hayes_3546ebe6f8295</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%2F4211461%2Ff24a8e04-abde-43c2-bef1-064d0d34efeb.png</url>
      <title>DEV Community: Lucas Hayes</title>
      <link>https://dev.to/lucas_hayes_3546ebe6f8295</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lucas_hayes_3546ebe6f8295"/>
    <language>en</language>
    <item>
      <title>Design the Paper Form for the Spreadsheet: Making Handwritten Field Sheets Convert Cleanly to Excel</title>
      <dc:creator>Lucas Hayes</dc:creator>
      <pubDate>Sat, 31 Oct 2026 16:55:44 +0000</pubDate>
      <link>https://dev.to/lucas_hayes_3546ebe6f8295/design-the-paper-form-for-the-spreadsheet-making-handwritten-field-sheets-convert-cleanly-to-excel-1mje</link>
      <guid>https://dev.to/lucas_hayes_3546ebe6f8295/design-the-paper-form-for-the-spreadsheet-making-handwritten-field-sheets-convert-cleanly-to-excel-1mje</guid>
      <description>&lt;p&gt;Most advice about getting handwritten data into Excel starts after the paper is already full: scan it better, clean it up, fix the OCR. But the cheapest place to fix a messy conversion is before anyone picks up a pen. If you run inspections, stock counts, site surveys, sign-in sheets or any other paper form that ends up in a spreadsheet, a few design choices on the form itself decide whether the photo-to-Excel step takes two minutes or two hours.&lt;/p&gt;

&lt;p&gt;This guide is for the person who owns the form: the operations lead, the lab manager, the volunteer coordinator. It walks through how to lay out a paper sheet so a phone photo turns into clean rows and columns, and how to set up the receiving spreadsheet so mistakes are caught on arrival.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key takeaways&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Design the paper form as a mirror of the final spreadsheet: one row per record, one column per field, in the same order.&lt;/li&gt;
&lt;li&gt;Constrain handwriting with boxes, tick-boxes and fixed codes; free text is where recognition errors cluster.&lt;/li&gt;
&lt;li&gt;Leave white margins and avoid shaded cells; OCR engines struggle with dark backgrounds, skew and missing borders.&lt;/li&gt;
&lt;li&gt;Validate on arrival in Excel with Data Validation rules instead of proofreading every cell by eye.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 1: Make the paper look like the spreadsheet
&lt;/h2&gt;

&lt;p&gt;The single most useful rule: the paper form should have the same grid as the destination sheet. If the spreadsheet has columns Date, Location, Item code, Count, Initials, the form should have those five columns, left to right, with one ruled row per entry.&lt;/p&gt;

&lt;p&gt;Many forms fail this test: date and inspector in a header block, readings in a grid, comments in a big box at the bottom. After conversion, someone copies the header values down every row by hand, and the comments have no cell to live in.&lt;/p&gt;

&lt;p&gt;Two fixes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Put repeating context in a column, not a header.&lt;/strong&gt; A narrow Date column that people fill once per row (or tick "same as above") converts to a proper field. A header that is written once does not.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Give comments a column, not a box.&lt;/strong&gt; A "Notes" column with a short line per row keeps each comment attached to its record.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 2: Constrain the handwriting
&lt;/h2&gt;

&lt;p&gt;Handwriting recognition has improved a lot. Google Cloud's Vision API, for example, documents a dedicated &lt;code&gt;DOCUMENT_TEXT_DETECTION&lt;/code&gt; feature for dense text and handwriting. But every recognizer is more accurate on short, predictable entries than on free-form writing. You can make the writing predictable:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tick-boxes instead of words.&lt;/strong&gt; "Pass / Fail / N/A" as three boxes beats asking people to write the word. A tick or cross in a known column becomes a clean value.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Short codes from a printed list.&lt;/strong&gt; If there are 12 possible locations, print them with two-letter codes on the form and ask for the code. Fewer characters, fewer misreads.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Character boxes for numbers.&lt;/strong&gt; A count field split into three small boxes encourages one digit per box and stops digits running together.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One date format, printed as a hint.&lt;/strong&gt; Print &lt;code&gt;YYYY-MM-DD&lt;/code&gt; faintly in the date column. Dates like 03/04 are ambiguous to people and software alike; a fixed year-month-day order is not.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 3: Print for the camera
&lt;/h2&gt;

&lt;p&gt;Most of these sheets will be photographed on a phone, not scanned on a flatbed. Design for that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Keep wide white margins.&lt;/strong&gt; The Tesseract project's guide to improving OCR quality notes that text with no surrounding border can cause problems and suggests about 10 pixels of white border, while very large empty borders can cause their own issues. A printed margin of 1–1.5 cm around the grid is a good start.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No shaded or coloured cells.&lt;/strong&gt; The same guide recommends dark text on a light background and notes that binarization can be suboptimal when the background is unevenly dark. Grey header bands and zebra striping look nice on screen and photograph badly in a warehouse.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Thin, dark gridlines.&lt;/strong&gt; Clear lines help table detection find the cells. Avoid dotted or very pale lines.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fewer rows per page.&lt;/strong&gt; A page with 15 generous rows photographs better than one with 40 cramped rows. Small writing in tight rows is where digits merge.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add corner marks.&lt;/strong&gt; Four small L-shaped marks at the corners of the grid make it obvious whether the whole table is in frame and straight. Tesseract's documentation notes that line segmentation quality drops significantly when a page is too skewed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 4: Set rules on the receiving sheet
&lt;/h2&gt;

&lt;p&gt;Even a well-designed form will produce some errors, from the writer as well as from the conversion. Do not proofread every cell. Instead, tell Excel what valid data looks like and let it point at the exceptions.&lt;/p&gt;

&lt;p&gt;Excel's Data Validation feature lets you restrict a cell or column to whole numbers in a range, dates, or entries from a list. For a field sheet that means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Count:&lt;/strong&gt; whole number between 0 and a sensible maximum.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Location code:&lt;/strong&gt; list, pointing at the same 12 codes printed on the form.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Date:&lt;/strong&gt; date between the start and end of the reporting period.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Result:&lt;/strong&gt; list of Pass, Fail, N/A.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Paste the converted rows into the sheet and use Data Validation's "Circle Invalid Data" command. A misread 7 that became a 1 in a code, a count of 900 instead of 90, or a date in the wrong year gets circled, and you check only those against the photo.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Convert one page, then fix the form
&lt;/h2&gt;

&lt;p&gt;Before you print 500 copies, run a pilot: fill in two pages with realistic handwriting, photograph them the way your team actually will (indoors, angled, on a clipboard), and convert them. A browser tool such as &lt;a href="https://imagetoexcel.io/" rel="noopener noreferrer"&gt;ImageToExcel&lt;/a&gt; takes a photo or PDF of a table and returns an editable Excel file with the rows and columns kept, which is enough to see where the form is fighting you.&lt;/p&gt;

&lt;p&gt;Look at the pilot output column by column:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If one column is consistently wrong, change what you ask for there (codes or boxes instead of words).&lt;/li&gt;
&lt;li&gt;If rows merge, add row height or stronger gridlines.&lt;/li&gt;
&lt;li&gt;If the header row is garbled, simplify the labels to one or two words.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Revise and run one more pilot before printing in bulk.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Does this help if we scan instead of photograph?&lt;/strong&gt;&lt;br&gt;
Yes. Flatbed scans are usually straighter and sharper, so the margins and corner marks matter less, but constrained fields and validation rules help either way.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Tesseract documentation, Improving the quality of the output: &lt;a href="https://tesseract-ocr.github.io/tessdoc/ImproveQuality.html" rel="noopener noreferrer"&gt;https://tesseract-ocr.github.io/tessdoc/ImproveQuality.html&lt;/a&gt; (checked 2026-10-31)&lt;/li&gt;
&lt;li&gt;Google Cloud Vision, Detect handwriting in images: &lt;a href="https://docs.cloud.google.com/vision/docs/handwriting" rel="noopener noreferrer"&gt;https://docs.cloud.google.com/vision/docs/handwriting&lt;/a&gt; (checked 2026-10-31)&lt;/li&gt;
&lt;li&gt;Microsoft Support, Apply data validation to cells: &lt;a href="https://support.microsoft.com/en-us/office/apply-data-validation-to-cells-29fecbcc-d1b9-42c1-9d76-eff3ce5f7249" rel="noopener noreferrer"&gt;https://support.microsoft.com/en-us/office/apply-data-validation-to-cells-29fecbcc-d1b9-42c1-9d76-eff3ce5f7249&lt;/a&gt; (checked 2026-10-31)&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;Lucas Hayes writes about practical data workflows: getting tables out of photos, scans and PDFs and into spreadsheets people can use.&lt;/p&gt;

</description>
      <category>excel</category>
      <category>productivity</category>
      <category>ocr</category>
      <category>data</category>
    </item>
    <item>
      <title>AI Credits vs API Credits: What You're Actually Paying For (and Where Free Credits Really Come From)</title>
      <dc:creator>Lucas Hayes</dc:creator>
      <pubDate>Tue, 27 Oct 2026 17:15:14 +0000</pubDate>
      <link>https://dev.to/lucas_hayes_3546ebe6f8295/ai-credits-vs-api-credits-what-youre-actually-paying-for-and-where-free-credits-really-come-from-eg9</link>
      <guid>https://dev.to/lucas_hayes_3546ebe6f8295/ai-credits-vs-api-credits-what-youre-actually-paying-for-and-where-free-credits-really-come-from-eg9</guid>
      <description>&lt;p&gt;"Credits" is one of the most overloaded words in AI pricing. The same word gets used for a ChatGPT-style app allowance, a prepaid developer balance, a cloud promotion, and a startup grant. Mixing them up is how people end up buying the wrong plan or chasing "free credit" offers that don't exist.&lt;/p&gt;

&lt;p&gt;Here is a plain breakdown of the main kinds, how they're metered, and how to find legitimate free ones.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. App credits (consumer and prosumer tools)
&lt;/h2&gt;

&lt;p&gt;Many image, video, and chat apps sell a monthly plan that includes a fixed number of credits. Each generation, upscale, or long-context request costs some of them. Key points:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;They are tied to &lt;strong&gt;one product&lt;/strong&gt; and usually can't be used anywhere else.&lt;/li&gt;
&lt;li&gt;They often &lt;strong&gt;reset monthly&lt;/strong&gt; and may not roll over.&lt;/li&gt;
&lt;li&gt;The "cost per credit" varies by action, so compare plans by what you actually do (e.g. images per month), not by raw credit count.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. API credits (developer billing)
&lt;/h2&gt;

&lt;p&gt;API credits are a prepaid or granted &lt;strong&gt;dollar balance&lt;/strong&gt; on a developer platform. Every API call is metered, usually per million input and output tokens for text models, and the cost is deducted from that balance.&lt;/p&gt;

&lt;p&gt;This is completely separate from a chat subscription. Paying for a chat app does not give you API credits, and API credits don't unlock the chat app.&lt;/p&gt;

&lt;p&gt;To estimate cost, you need two numbers per model: the input price and the output price per 1M tokens. A quick sanity check: a workload of 1M input tokens plus 250K output tokens costs &lt;code&gt;input_price + 0.25 × output_price&lt;/code&gt;. Output tokens are often several times more expensive than input, so verbose responses add up fast.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Official vs third-party channels
&lt;/h2&gt;

&lt;p&gt;The same model is often available both from the original provider and from third-party gateways and routers. Prices, rate limits, and terms can differ. Before you switch to a cheaper channel, check:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;whether the listed price is per token at the same unit,&lt;/li&gt;
&lt;li&gt;data handling and retention terms,&lt;/li&gt;
&lt;li&gt;whether features you rely on (tools, caching, batch) are supported.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. Where real free credits come from
&lt;/h2&gt;

&lt;p&gt;Legitimate free credits generally come from a short list of sources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Free tiers&lt;/strong&gt; on consumer apps (limited daily or monthly usage).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Free or trial API usage&lt;/strong&gt; on some developer platforms, which can change or end without much notice.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cloud promotional credits&lt;/strong&gt; for new accounts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Startup programs&lt;/strong&gt;, typically via accelerators, VCs, or cloud partner programs, with eligibility rules.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Be skeptical of anything promising a fixed signup bonus from an unofficial site. Always apply on the provider's own pages.&lt;/p&gt;

&lt;p&gt;If you'd rather not track all of this yourself, directories such as &lt;a href="https://ai-credits.ai/" rel="noopener noreferrer"&gt;AI Credits&lt;/a&gt; collect free tiers, startup credit programs, and official-versus-third-party API prices in one place and link out to the official pages.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. A simple decision checklist
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Are you using a &lt;strong&gt;product&lt;/strong&gt; (chat, image, video app) or &lt;strong&gt;building&lt;/strong&gt; with an API? That decides app credits vs API credits.&lt;/li&gt;
&lt;li&gt;Estimate monthly usage in the unit that's actually billed (images, seconds, or tokens).&lt;/li&gt;
&lt;li&gt;Compare at least the official price and one alternative channel.&lt;/li&gt;
&lt;li&gt;Check free tiers and startup programs before paying, but verify every offer at the source.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Understanding which kind of credit you're dealing with usually saves more money than any discount code.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>api</category>
      <category>llm</category>
      <category>startup</category>
    </item>
    <item>
      <title>How to Get a Table Out of a Photo or PDF and Into Excel Without Retyping It</title>
      <dc:creator>Lucas Hayes</dc:creator>
      <pubDate>Tue, 27 Oct 2026 17:08:06 +0000</pubDate>
      <link>https://dev.to/lucas_hayes_3546ebe6f8295/how-to-get-a-table-out-of-a-photo-or-pdf-and-into-excel-without-retyping-it-1jgd</link>
      <guid>https://dev.to/lucas_hayes_3546ebe6f8295/how-to-get-a-table-out-of-a-photo-or-pdf-and-into-excel-without-retyping-it-1jgd</guid>
      <description>&lt;p&gt;If you have ever stared at a photo of a printed price list, a scanned bank statement, or a dashboard screenshot and thought "I just need this in a spreadsheet," you know the usual options are bad. You either retype it cell by cell, or you run it through an OCR tool that hands back one long block of text, and then you spend twenty minutes splitting it into columns.&lt;/p&gt;

&lt;p&gt;This post walks through a workflow that actually saves time, and, just as important, how to check the result so a misread number doesn't end up in a report.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Start with the best source you can get
&lt;/h2&gt;

&lt;p&gt;OCR quality is decided before you upload anything. A few habits make a big difference:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Prefer the original file.&lt;/strong&gt; If the table came from a PDF that has selectable text, use the PDF, not a screenshot of it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shoot straight on.&lt;/strong&gt; When photographing paper, hold the phone parallel to the page and avoid shadows across the table. Skewed photos are the most common cause of columns drifting into each other.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Crop to the table.&lt;/strong&gt; Headers, logos, and handwritten notes around the table can confuse table detection. Crop tightly if you can.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep the resolution.&lt;/strong&gt; Messaging apps often compress images. Send the file to yourself as a document instead of a photo.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. Use a tool that rebuilds the table, not just the text
&lt;/h2&gt;

&lt;p&gt;Plain OCR answers "what characters are on this page?" What you need is "which characters belong to which row and column?" That second step, table structure detection, is what turns a picture into something you can sort and filter.&lt;/p&gt;

&lt;p&gt;Tools built for this, such as &lt;a href="https://imagetoexcel.io/" rel="noopener noreferrer"&gt;ImageToExcel&lt;/a&gt;, detect the grid, keep rows and columns together, and export straight to an .xlsx file. They usually accept JPG, PNG, WEBP and PDF input, including multi-page scans, so the same flow works for a phone photo and a 12-page statement.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Review before you export
&lt;/h2&gt;

&lt;p&gt;Never trust OCR output blindly, especially with financial data. A quick review routine:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Check the totals.&lt;/strong&gt; If the source has a total row, add the extracted column yourself with &lt;code&gt;=SUM()&lt;/code&gt; and compare. A mismatch tells you immediately that something was misread.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Look for classic swaps.&lt;/strong&gt; &lt;code&gt;0&lt;/code&gt; and &lt;code&gt;O&lt;/code&gt;, &lt;code&gt;1&lt;/code&gt; and &lt;code&gt;l&lt;/code&gt;, &lt;code&gt;5&lt;/code&gt; and &lt;code&gt;S&lt;/code&gt;, and &lt;code&gt;,&lt;/code&gt; versus &lt;code&gt;.&lt;/code&gt; as decimal separators are the usual suspects.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Count the rows.&lt;/strong&gt; Compare the row count against the source. Merged or dropped rows are easier to spot by count than by eye.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch merged cells.&lt;/strong&gt; Headers that span several columns in the original often get flattened. Fix those by hand before you build formulas on top of them.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  4. Clean up in Excel
&lt;/h2&gt;

&lt;p&gt;Once the data is in a sheet, a few built-in features finish the job:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Text to Columns&lt;/strong&gt; (Data tab) to split anything that landed in one cell.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TRIM and CLEAN&lt;/strong&gt; to remove stray spaces and non-printing characters that break lookups.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Format as Table&lt;/strong&gt; (Ctrl+T) so filters and structured references work right away.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;VALUE()&lt;/strong&gt; to turn numbers that were read as text back into numbers.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5. Specific cases worth knowing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bank statements and credit card statements:&lt;/strong&gt; dates and amounts matter most. Sort by date after export to catch rows that were read out of order.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Invoices and receipts:&lt;/strong&gt; you usually only need a handful of fields (date, vendor, line items, total). Extract those into a consistent layout so you can stack many documents into one sheet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Screenshots of web dashboards:&lt;/strong&gt; these are usually clean, but check that negative numbers kept their minus sign or parentheses.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;Getting a table from an image into Excel is a two-part job: good extraction, then a fast, deliberate check. Spend thirty seconds on the source, let a table-aware converter do the heavy lifting, and always reconcile at least one total before you rely on the numbers.&lt;/p&gt;

</description>
      <category>excel</category>
      <category>ocr</category>
      <category>productivity</category>
      <category>data</category>
    </item>
  </channel>
</rss>
