pqpo/SmartCropper
🔥 A library for cropping image in a smart way that can identify the border and correct the cropped image. 智能图片裁剪框架。自动识别边框,手动调节选区,使用透视变换裁剪并矫正选区;适用于身份证,名片,文档等照片的裁剪。 observed · 2026-08-28
Health v2 · maintenance only
66/100
- Activity 96
- Release rhythm 8
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3317
- days_rel: n/a
- days_push: 26
- n_releases_24m: 0
Adoption not part of the score
4132 stars · 759 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
An Android library for smart image cropping that automatically detects document borders using OpenCV (with an optional TensorFlow Lite HED model for improved detection), lets users adjust the selection with draggable anchors and a magnifier, and crops with perspective transformation to rectify the region. It is aimed at photos of ID cards, business cards, and documents.
Use cases
- crop and straighten photos of documents on android
- automatically detect document borders in a photo
- scan id cards or business cards with a phone camera
- perspective-correct a skewed document photo
- let users manually adjust crop selection with magnifier
- build a document scanner app on android
When to choose
- you need an Android view component for smart document cropping with edge detection
- you want automatic border detection plus manual anchor adjustment in one library
- you need perspective correction to produce a front-facing crop of a document
When to avoid
- you need cropping on iOS, web, or desktop platforms
- you need full OCR or text extraction from documents
- your project requires a permissive license - the repo has no explicit license file
- you need real-time camera border detection rather than cropping still images (see SmartCamera instead)
Facets
library · maturity maintenance
image-processing computer-vision machine-learning ui-components computer-vision image-processing mobile-development android-tools cpp jvm document-scanning perspective-correction edge-detection opencv tensorflow-lite hed-network jni crop-image-view android mobile
3 sources
- readme: https://github.com/pqpo/SmartCropper · fetched 2026-08-28 · 92f4590fb0dd
- homepage: https://pqpo.me/2017/09/11/opencv-border-recognition/ · fetched 2026-08-29 · e679b9a57bc6
- site_page: https://www.pqpo.me/about · fetched 2026-08-29 · e92c21202206
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pqpo/SmartCropper | main | 66 |
For agents
markdown · JSON · MCP: product_card(name="pqpo/SmartCropper")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem