SmartCropper is an image cropping library that automatically detects borders and applies perspective correction to cropped regions.
The tool addresses the problem of capturing clean, properly-aligned photos of documents, identity cards, business cards, and similar flat objects. It works by automatically identifying the borders of the subject in an image, allowing manual adjustment of the crop region, and then applying perspective transformation to correct the cropped area so it appears straight-on regardless of the camera angle.
SmartCropper suits projects that need to process photos of documents or cards where users capture images at arbitrary angles. It is particularly valuable in applications handling identity verification, document scanning, or business card digitization, where the input images are typically smartphone photos taken in uncontrolled conditions. The library handles the common case where a user photographs a flat object from an angle, and the tool must both identify what to crop and correct the perspective distortion in a single operation.
The project shows active maintenance with regular updates addressing issues and improvements. Development includes responsiveness to user-reported problems and incorporation of feedback into the codebase. The tool continues to receive refinements that enhance its border detection and perspective correction capabilities.