GithubHelp home page GithubHelp logo

mobisysgmbh / cordova-plugin-mlkit-barcode-scanner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flobiwankenobi/cordova-plugin-barcode-detector

19.0 19.0 22.0 27.43 MB

A Cordova barcode scanning plugin based on the Google Mobile Vision library for iOS & Android.

License: MIT License

Objective-C 41.09% JavaScript 3.53% Java 45.91% CSS 0.04% HTML 2.78% TypeScript 6.65%

cordova-plugin-mlkit-barcode-scanner's People

Contributors

c-schuhmann avatar chun-baoluo avatar flobiwankenobi avatar forrestmid avatar gordeev1 avatar h4ck-root avatar karinberg avatar khayargoli avatar robin-hartmann avatar zisiszaverdas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cordova-plugin-mlkit-barcode-scanner's Issues

Supporting multiple languages

Currently all dialogues are only available in English. Adding i18n support in the future would be good for non English speaking people.

TorchOn options set

Very fast scanning, thank you very much!

Maybe it could be paged so that the status of the torch can be set in the options?

Thanx!

[iOS] Code-39 issue

When I try to scan a code-39 barcode via iPhone, I usually don't get the full result back.
I can't even focus the camera to the entire barcode because a partial result was already returned.

For example, if I try to scan
image
and bring my phone from the left or right side, it will return a partial response.

Works well on Android.

'cordova-plugin-mlkit-barcode-scanner' is not in the npm registry.

I'm unable to re-install this plugin in my project. All of a sudden my CI builds started to fail because of this plugin. I tried re-installing the plugin but the command cordova plugin add cordova-plugin-mlkit-barcode-scanner failed with the following error:

{
"error": {
"code": "E404",
"summary": "'cordova-plugin-mlkit-barcode-scanner' is not in the npm registry.\nYou should bug the author to publish it\n(or use the name yourself!)\n\nNote that you can also install from a\ntarball, folder, http url, or git url.",
"detail": "\n 'cordova-plugin-mlkit-barcode-scanner@latest' is not in the npm registry.\nYou should bug the author to publish it (or use the name yourself!)\n\nNote that you can also install from a\ntarball, folder, http url, or git url."
}
}

error: cannot find symbol mCameraView.setPreferredImplementationMode(PreviewView.ImplementationMode.TEXTURE_VIEW);

I'm getting this error when trying to build my app with this plugin. Can you please help?

> Task :app:compileReleaseJavaWithJavac FAILED
/workspace/build/cordova/platforms/android/app/src/main/java/com/mobisys/cordova/plugins/mlkit/barcode/scanner/CaptureActivity.java:260: error: cannot find symbol
    mCameraView.setPreferredImplementationMode(PreviewView.ImplementationMode.TEXTURE_VIEW);
                                                                             ^
  symbol:   variable TEXTURE_VIEW
  location: class ImplementationMode
/workspace/build/cordova/platforms/android/app/src/main/java/com/mobisys/cordova/plugins/mlkit/barcode/scanner/CaptureActivity.java:306: error: cannot find symbol
    preview.setSurfaceProvider(mCameraView.createSurfaceProvider());
                                          ^
  symbol:   method createSurfaceProvider()
  location: variable mCameraView of type PreviewView
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /workspace/build/cordova/platforms/android/app/src/main/java/org/apache/cordova/file/AssetFilesystem.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

Camera permission handling under iOS has problems

On android, I get asked if I want to enable the camera permission. If I decline it, the plugin displays an error message, that the app can only be used when the camera permission is granted. On subsequent tries, I get a small notification, that camera permission is needed and I get asked for camera permissions again.

On iOS, I only get asked once about the camera permission. If I decline it, there are no error messages, the camera feed stays black. I have to go to the privacy settings and have to grant camera permissions by myself.

Plugin Add error no www/main.js

when using cordova plugin add i get the following error:

Failed to install 'cordova-plugin-mlkit-barcode-scanner': Error: Uh oh!
ENOENT: no such file or directory, open '/home/XYZ/Git/XYZ/plugins/cordova-plugin-mlkit-barcode-scanner/www/main.js'
at Object.openSync (fs.js:443:3)
at Object.readFileSync (fs.js:343:35)
at install (/home/XYZ/Git/XYZ/platforms/android/cordova/lib/pluginHandlers.js:162:36)
at ActionStack.process (/home/XYZ/Git/XYZ/platforms/android/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
at PluginManager.doOperation (/home/XYZ/Git/XYZ/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:112:24)
at PluginManager.addPlugin (/home/XYZ/Git/XYZ/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:142:21)
at /home/XYZ/Git/XYZ/platforms/android/cordova/Api.js:161:78
at process._tickCallback (internal/process/next_tick.js:68:7)
Uh oh!
ENOENT: no such file or directory, open '/home/XYZ/Git/XYZ/plugins/cordova-plugin-mlkit-barcode-scanner/www/main.js'

Unable to install packages

Hello,

I wanted to try the new version of your plugin, that's written in typescript. I've cloned the repo and tried to install the deps with npm i. This gives me an error:

npm ERR! code E401
npm ERR! Unable to authenticate, need: Bearer authorization_uri=https://login.windows.net/af9cdc44-a63a-4e57-9225-1ba61801a9ab, Basic realm="https://pkgsprodsu3weu.app.pkgs.visualstudio.com/", TFS-Federated

After digging in, I found the .npmrc file. This points to https://pkgs.dev.azure.com/mobisysgmbh/_packaging/mobisys/npm/registry/ which is probably a private repo I can't access.

Is this repo meant as open source project?

Thanks in advance for your anwer.

Kind regards,

Bart Bakker

Issue with the detectorSize option

First of all - thanks a lot for sharing this plugin - it works fantastic and makes a great use of google library!

I have an issue with detectorSize option. When this option is at 0.5 the close and light buttons seems be positioned based on that area.
If this is increased to 0.8 or 1, the buttons go outside of the screen area. They should be posistioned always in the same part of the screen, regardless of the "detector window.

Clean up the project

Hello,
I started playing around with this project last week because it is the best barcode scanner plugin I could find but doesn't quite fit what we need. Doing that I noticed that there are tons of things in there that are useful for you but problematic for everyone else. Examples of that are your eslint configurations as well as the npm files that make it impossible to even install packages without being logged in (most likely it even requires your account). Could you please clean up the repository so that it works out of the box when forked instead of requiring an hour of work?

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.