gitwtfhub

wtf is pmtd?

stvir/pmtd — explained in plain English

Analysis updated 2026-08-08 · repo last pushed 2019-08-02

213Audience · researcherComplexity · 3/5DormantSetup · moderate

TL;DR

Automatically finds and outlines text in images at multiple scales, using mask shapes to follow curved or angled text. Comes with pre-trained models ready to run on new images.

Mindmap

mindmap
  root((repo))
    What it does
      Finds text in images
      Outlines text shapes
      Handles curved text
    Tech stack
      PyTorch
      Object detection framework
      Pre-trained models
    Use cases
      Document scanning apps
      Street sign reading
      Product photo text extraction
    Audience
      Researchers
      App developers
    Data
      ICDAR 2015
      ICDAR 2017 MLT

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Build a document-scanning app that locates text before reading it.

REASON 2

Detect street signs from car camera images for navigation systems.

REASON 3

Extract text regions from product photos for catalog organization.

REASON 4

Evaluate text detection accuracy on academic benchmark datasets.

What's in the stack?

PyTorchMMDetection

How it stacks up

stvir/pmtddev-ocr/polymarket-arbitrage-trading-botfreertos/freertos-plus-tcp
Stars213213213
LanguageTypeScriptC
Last pushed2019-08-022026-07-10
MaintenanceDormantActive
Setup difficultymoderatehardhard
Complexity3/54/54/5
Audienceresearcherdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 30min

Requires PyTorch and an object detection framework, inference-only so no training infrastructure needed but environment setup is non-trivial.

No license information provided in the repository, so usage rights are unclear.

Wtf does this do

PMTD (Pyramid Mask Text Detector) is a tool that automatically finds and outlines text in images. Built by SenseTime's Video Intelligence Research team, it is designed to locate words in pictures, whether they are printed on signs, documents, or captured in the wild. Instead of a human manually drawing boxes around text, this software does it automatically. The system works by analyzing images at multiple scales simultaneously, which helps it spot text of varying sizes. It uses a technique that combines bounding boxes with more precise mask shapes, allowing it to follow the actual contour of irregularly angled or curved text rather than forcing everything into a flat rectangle. The project provides pre-trained models that have already learned from two standard text-detection benchmark datasets (ICDAR 2015 and ICDAR 2017 MLT), so users can run it on new images right away without needing to train it themselves. This would be useful for anyone building applications that involve reading or organizing text from images. For example, someone developing a document-scanning app, a system that reads street signs from car cameras, or a tool that extracts text from product photos could use this as the first step, finding where the text actually is before a separate tool reads what the text says. One thing worth noting is that the project provides inference code only, meaning it is set up for running the detector on images rather than training new models from scratch. It is built on top of an existing open-source object detection framework, and the results it produces match what the researchers reported in their original paper. The output can be formatted for submission to academic benchmarks, suggesting it is oriented toward research and evaluation use cases.

Yoink these prompts

Prompt 1
I have images with text in them and need to automatically draw precise outlines around each word. How do I run PMTD's pre-trained model on my images to get text region masks?
Prompt 2
I want to detect curved or angled text in photos. How does PMTD's pyramid mask approach follow text contours better than simple bounding boxes?
Prompt 3
Help me set up PMTD to run inference on a folder of images and output detection results in ICDAR benchmark format for evaluation.
Prompt 4
I'm building a document scanning app and need to find where text is located before OCR. How do I integrate PMTD's pre-trained models as the text detection step?

Frequently asked questions

wtf is pmtd?

Automatically finds and outlines text in images at multiple scales, using mask shapes to follow curved or angled text. Comes with pre-trained models ready to run on new images.

Is pmtd actively maintained?

Dormant — no commits in 2+ years (last push 2019-08-02).

What license does pmtd use?

No license information provided in the repository, so usage rights are unclear.

How hard is pmtd to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is pmtd for?

Mainly researcher.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.