Reputation: 31
I need to Perspective Transform (using corner coordinates) document image in my flutter app.
See Example Here: 4 Point Image Perspective Transform
I have already tried implementing OpenCV C++ Library using dart FFI.
Problems in this approach:
I have also tried combining these two approaches: Transform Image widget and render widget UI as Image. https://medium.flutterdevs.com/perspective-in-flutter-904c6cade292
https://medium.com/flutter-community/export-your-widget-to-image-with-flutter-dc7ecfa6bafb
But Renders Image with respect to screen resolution. For Example: If Image resoulution is 2000x2000 px and it is taking only 400x400 px on screen, then rendered image will be 400x400 px.
Is there any other performance and size efficient way of doing Perspective Transform of Image using 4 Corner Coordinates ?
Upvotes: 3
Views: 1697
Reputation: 11
try to use one of this packages https://pub.dev/packages/document_scanner_flutter or https://pub.dev/packages/cunning_document_scanner or paid packages https://pub.dev/packages/flutter_genius_scan or https://pub.dev/packages/scanbot_sdk
Upvotes: 1