pqpo/SmartCropper
An Android image cropping library that uses a TensorFlow HED neural network to detect document borders and correct perspective.

SmartCropper is an image cropping library for Android that automatically identifies borders in photos of documents, ID cards, and business cards. It employs a Holistically-Nested Edge Detection (HED) network implemented with TensorFlow to replace traditional Canny edge detection, improving border recognition accuracy. The library uses OpenCV for perspective transformation to crop and correct skewed documents, providing manual adjustment controls with magnification for fine-tuning selection areas.