cd /news/machine-learning/panetrans-drag-select-region-transla… · home topics machine-learning article
[ARTICLE · art-34483] src=discuss.huggingface.co ↗ pub= topic=machine-learning verified=true sentiment=↑ positive

PaneTrans — drag-select region translation + OCR on video/canvas, built on Transformers.js (local by default)

A developer released PaneTrans, a browser extension for drag-select region translation and OCR on video/canvas, built on Transformers.js with local processing by default. The tool uses an offscreen document for inference to maintain low latency, avoiding service worker idle teardown issues. The developer is testing NLLB q8 with WebGPU for higher-quality translation.

read1 min views1 publishedJun 19, 2026

Thanks for putting this much into it — really useful.

On the NLLB q8 / WebGPU point: good catch, and timely. That’s exactly what I’m testing right now — NLLB on q8 + WebGPU is my higher-quality path, so the two issues you linked are right on target. Appreciate the direct links, saves me the digging.

On offscreen vs service worker: this was a deliberate choice. The live overlay loop is latency-sensitive and needs the model + WebGPU context to stay warm, and an MV3 service worker gets torn down on idle — it can’t reliably hold a few-hundred-MB model resident between bursts, and re-spinning it up mid-overlay would kill the “text changes, re-translate” feel. So inference lives in the offscreen document and the service worker just routes and coordinates — basically the hybrid split you described. I’ll still read the HF service-worker guide to compare properly, but for this workload offscreen felt right.

The rest — OCR scheduling, capture strategy, cache/offline and the privacy story — is a great checklist. Saving the whole thing. Thanks again.

── more in #machine-learning 4 stories · sorted by recency
── more on @panetrans 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/panetrans-drag-selec…] indexed:0 read:1min 2026-06-19 ·