Urgent.News

What's breaking now, across thousands of outlets.

Tech

Split your OCR error rate in two before you touch preprocessing

On September 30 I ran an OCR preprocessing benchmark with 14 versions of each crop: the original, the built-in Scan enhancement, 2x upscaling, grayscale, four fixed thresholds, Otsu, adaptive thresholding, two denoisers and two JPEG qualities. One row barely moved. A small block of vertical Chinese text sat between 89.7% and 94.9% character error rate in every version on the Professional tier,…

In September, a test was conducted to compare the performance of 14 different OCR preprocessing methods on a single crop containing vertical Chinese text. The text achieved a character error rate (CER) between 89.7% and 94.9% across all versions, while the original 1x crop scored 92.3% on all three OCR tiers. This inconsistency indicated that pixel quality may not be the primary factor affecting OCR accuracy.

The OCR samples were taken from a custom web page featuring community service hour information, with additional crops from a holiday notice template obtained online. The recognition was performed using ImgIng, Fast OCR, and Ultimate OCR on an Apple M4 device with a Chromium 149 build, employing the WebGPU backend. Tesseract.js 5 (default parameters) served as the control for comparison.

Upon analyzing the results, it became apparent that the order of characters played a significant role in determining the OCR accuracy. A new metric was introduced to account for this, treating both the reference and hypothesis texts as bags of characters, and counting the shared characters while calculating the remaining errors. High CER with low order-free rates indicated that characters were correct but in the wrong sequence, while high values for both suggested that text was lost or misread.

After identifying the importance of character order, the test proceeded by evaluating the impact of rotation and tilt on recognition accuracy. Vertical text was rotated left by 90°, resulting in zero errors for all three OCR tiers on the 2x crop, while only Fast and Professional OCR made mistakes on the 1x crop (2 punctuation marks error for Fast and no errors for Ultimate). Tesseract.js continued to perform poorly on both rules, regardless of the applied preprocessing.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

CrowdSec alert from my own IP: the 'attack' was my phone's photo app

The worry was simple: CrowdSec was "being hammered". The numbers looked alarming, and I wanted to know who was attacking my homelab. The answer, after a proper look on 21 September, was me.

  • CrowdSec flagged author's IP for suspicious thumbnail requests
  • Photo-backup app on author's phone triggered alerts
  • Author built tool to push bans to Cloudflare's edge

CF7 Real Estate Lead Capture to CRM: A Complete Implementation Guide

Real estate websites live and die by lead response time. When a potential buyer submits an inquiry about a property, every minute of delay reduces the chance of conversion.

  • CF7 form captures real estate inquiries with structured fields
  • CF7 API plugin automates data transfer to CRM system
  • Property ID and inquiry type crucial for personalized follow-up

Measure ink and lighting before you binarize an image for OCR

My team is looking at client-side OCR for an internal tool where people attach screenshots and photos of printed notices.

  • Measure ink darkness and paper brightness variation before thresholding
  • Fixed threshold discards light text and blackens uneven lighting areas
  • Measure ink density, paper brightness percentile, and Otsu threshold value

Launch day is the worst day to judge a product

Most launches I've watched, my own included, have the same shape. Day one is a screenshot, a one-liner and a link. And the product on that day is the least it will ever be: half the settings are…

  • First day is worst for judging product quality
  • Features incomplete, onboarding vague
  • By third week, product significantly improves

More from Saturday 10 October →