Giter Site home page Giter Site logo

sunderee / mlkit-document-scanner Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 70 KB

Flutter plugin bringing MLKit Document Scanner to Flutter

Home Page: https://pub.dev/packages/mlkit_document_scanner

License: Apache License 2.0

Kotlin 61.55% Dart 38.45%
document-scanner flutter machine-learning mlkit mlkit-android

mlkit-document-scanner's People

Contributors

sunderee avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

ali-exe

mlkit-document-scanner's Issues

Feature: Implement Comprehensive Testing

Is your feature request related to a problem? Please describe.
Currently, the plugin lacks tests for both the Flutter and the native Android Kotlin implementation. This absence of tests can lead to uncaught bugs and regressions, impacting the reliability of the plugin.

Describe the solution you'd like
I would like to implement a comprehensive testing suite that covers:

  • Flutter Dart code for the plugin, ensuring that the Flutter side behaves as expected.
  • Native Android Kotlin code, to verify that the integration and functionalities work correctly on Android devices.

Describe alternatives you've considered
N/A

Additional context
Adding tests will significantly increase the plugin's reliability and ease future development by catching issues early. It is a crucial step for maintaining high-quality software.

Feature (Enhancement): Toggle Between JPEG and PDF Results

Is your feature request related to a problem? Please describe.
The plugin currently only supports exporting scanned documents in PDF format. Users and applications may require JPEG format for various reasons, including compatibility and file size considerations.

Describe the solution you'd like
Implement a feature to allow toggling between JPEG and PDF formats for the scan results. This could be an option during the initialization of the scanner or a setting in the scanning UI.

Describe alternatives you've considered
An alternative solution could be to provide the scanned document in both JPEG and PDF formats by default, allowing the caller to decide which one to use. However, this might lead to unnecessary processing and storage usage.

Additional context
Supporting both JPEG and PDF formats would enhance the plugin's flexibility and usability for different use cases and user preferences.

Feature Request: Change License from AGPL to Apache 2.0

Feature Request: Change License from AGPL to Apache 2.0

Hi,

I'd like to request a change in the license of this repository from AGPL to Apache License 2.0. Here are my reasons:

  • The Apache License 2.0 is more permissive and allows for broader use cases without requiring derivative works to be open sourced.
  • This change could encourage more adoption and contributions from developers who prefer Apache License 2.0 projects.
  • Apache License 2.0 is widely recognized and used in the industry, providing a familiar licensing model.

I believe this change would be beneficial for the community and the project as a whole. Thank you for considering this request.

Bug: No Feedback Mechanism for No Document Selected

Describe the bug
When a user does not select a document, the plugin fails to notify the caller of this scenario, leading to a potential state of confusion for the user and the application.

To Reproduce
Steps to reproduce the behavior:

  1. Launch the document scanner.
  2. Do not select any document and try to proceed or close the scanner.
  3. Notice that there is no feedback or error message provided to the user or the calling function.

Expected behavior
The plugin should provide a clear mechanism (such as a callback or an error) to indicate that no document was selected. This could be used by the application to notify users or handle the scenario appropriately.

Screenshots
N/A

Desktop (please complete the following information):
N/A

Smartphone (please complete the following information):

  • Device: [e.g., Pixel 5]
  • OS: [e.g., Android 11]
  • Version [e.g., 1.0.0 of the plugin]

Additional context
This issue is crucial for improving the plugin's usability and ensuring that applications using it can handle all user interactions gracefully.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.