Giter Site home page Giter Site logo

tony-xlh / vision-camera-dynamsoft-barcode-reader Goto Github PK

View Code? Open in Web Editor NEW
66.0 66.0 14.0 10.53 MB

React Native Vision Camera Frame Processor Plugin of Dynamsoft Barcode Reader

License: MIT License

Java 55.44% JavaScript 1.64% TypeScript 16.06% Swift 11.90% Ruby 5.42% C 1.22% Objective-C 6.98% Objective-C++ 1.35%

vision-camera-dynamsoft-barcode-reader's Introduction

vision-camera-dynamsoft-barcode-reader's People

Contributors

xulihang avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vision-camera-dynamsoft-barcode-reader's Issues

Attention(exceptionCode:-20111)

When I try to use this library I got not full barcodeText. "barcodeText": "[Attention(exceptionCode:-20111)] S**3000*25"

"vision-camera-dynamsoft-barcode-reader": "^0.4.3",
"react-native-vision-camera": "^2.13.0",

FrameProcessorPlugin cannot be applied to given types; super("decode");

I am trying to use this library in a new React Native 0.72.4 app.
Here are the details of my setup, build environment, etc.:
https://gradle.com/s/jw23c563san6w

I'm getting an error during the build process:

/home/matthew/dev/stackbayapp/node_modules/vision-camera-dynamsoft-barcode-reader/android/src/main/java/com/visioncameradynamsoftbarcodereader/VisionCameraDynamsoftBarcodeReaderPackage.java:23: error: cannot find symbol
FrameProcessorPlugin.register(plugin);
^
symbol: method register(VisionCameraDBRPlugin)
location: class FrameProcessorPlugin
/home/matthew/dev/stackbayapp/node_modules/vision-camera-dynamsoft-barcode-reader/android/src/main/java/com/visioncameradynamsoftbarcodereader/VisionCameraDBRPlugin.java:28: error: VisionCameraDBRPlugin is not abstract and does not override abstract method callback(Frame,ReadableNativeMap) in FrameProcessorPlugin
public class VisionCameraDBRPlugin extends FrameProcessorPlugin {
^
/home/matthew/dev/stackbayapp/node_modules/vision-camera-dynamsoft-barcode-reader/android/src/main/java/com/visioncameradynamsoftbarcodereader/VisionCameraDBRPlugin.java:33: error: method does not override or implement a method from a supertype
@OverRide
^
/home/matthew/dev/stackbayapp/node_modules/vision-camera-dynamsoft-barcode-reader/android/src/main/java/com/visioncameradynamsoftbarcodereader/VisionCameraDBRPlugin.java:160: error: constructor FrameProcessorPlugin in class FrameProcessorPlugin cannot be applied to given types;
super("decode");
^
required: no arguments
found: String
reason: actual and formal argument lists differ in length
4 errors

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':vision-camera-dynamsoft-barcode-reader:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

services time question

is dynamsoft-barcode-reader can be used for free forever or just provide to try in some time,after that we should buy it

Vision Camera V3 support

An update that removes the reanimated dependency and supports worklets-core would be most welcome.

Build fail on iOS Simulator on M1

Hello,

Works perfectly on Android + iOS Devices, but when building the app on iOS Simulator, the build fails.

"react-native-vision-camera": "^2.14.1",
"vision-camera-dynamsoft-barcode-reader": "^0.4.3",
"react": "18.0.0",
"react-native": "0.69.3"

Build error: building for iOS Simulator, but linking in dylib built for iOS, file '.../ios/Pods/DynamsoftBarcodeReader/DynamsoftBarcodeReader.framework/DynamsoftBarcodeReader' for architecture arm64

Tried to rm Pods, pod install, clean Xcode build, delete Derived Data, but still have the issue.

I couldn't try to build on the example app, the build fails but for other reasons

How to recognize EAN_13+5 barcode?

SwiftEmitModule build commands failed

React Native Version: 0.70.1
iOS min. deployment: 13.4
XCode: 14.0.1
Simulator: iPhone 12 Pro
Development System: Mac M1

I'm having trouble interpreting the following build error:

The following build commands failed: SwiftEmitModule normal x86_64 Emitting\ module\ for\ vision_camera_dynamsoft_barcode_reader (in target 'vision-camera-dynamsoft-barcode-reader' from project 'Pods') (1 failure)

Not sure if relevant, but this error is happening after a Firebase SDK integration.

The QR scanner is working on Android but not on iOS

The Barcode scanner to scan PDF417 works on Android but not iOS; no errors, and the camera is opening correctly on both platforms.

"react-native-reanimated": "^2.9.1",
"react-native-vision-camera": "^2.14.0",
"vision-camera-dynamsoft-barcode-reader": "^0.4.3",

error in example

os:windows11
opeartion: git clone (you repo) && cd example && yarn && yarn android

Task :app:checkDebugAarMetadata FAILED
9 actionable tasks: 2 executed, 7 up-to-date
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:checkDebugAarMetadata'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not download stetho-2.2.0.aar (com.facebook.fresco:stetho:2.2.0)
> Could not get resource 'https://jcenter.bintray.com/com/facebook/fresco/stetho/2.2.0/stetho-2.2.0.aar'.
> Could not GET 'https://jcenter.bintray.com/com/facebook/fresco/stetho/2.2.0/stetho-2.2.0.aar'.
> peer not authenticated
Could not download nativeimagefilters-2.2.0.aar (com.facebook.fresco:nativeimagefilters:2.2.0)
> Could not get resource 'https://jcenter.bintray.com/com/facebook/fresco/nativeimagefilters/2.2.0/nativeimagefilters-2.2.0.aar'.
> Could not GET 'https://jcenter.bintray.com/com/facebook/fresco/nativeimagefilters/2.2.0/nativeimagefilters-2.2.0.aar'.
> No PSK available. Unable to resume.
Could not download memory-type-native-2.2.0.aar (com.facebook.fresco:memory-type-native:2.2.0)
> Could not get resource 'https://jcenter.bintray.com/com/facebook/fresco/memory-type-native/2.2.0/memory-type-native-2.2.0.aar'.
> Could not GET 'https://jcenter.bintray.com/com/facebook/fresco/memory-type-native/2.2.0/memory-type-native-2.2.0.aar'.
> No PSK available. Unable to resume.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 2m 50s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:checkDebugAarMetadata'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not download stetho-2.2.0.aar (com.facebook.fresco:stetho:2.2.0)
> Could not get resource 'https://jcenter.bintray.com/com/facebook/fresco/stetho/2.2.0/stetho-2.2.0.aar'.
> Could not GET 'https://jcenter.bintray.com/com/facebook/fresco/stetho/2.2.0/stetho-2.2.0.aar'.
> peer not authenticated
Could not download nativeimagefilters-2.2.0.aar (com.facebook.fresco:nativeimagefilters:2.2.0)
> Could not get resource 'https://jcenter.bintray.com/com/facebook/fresco/nativeimagefilters/2.2.0/nativeimagefilters-2.2.0.aar'.
> Could not GET 'https://jcenter.bintray.com/com/facebook/fresco/nativeimagefilters/2.2.0/nativeimagefilters-2.2.0.aar'.
> No PSK available. Unable to resume.
Could not download memory-type-native-2.2.0.aar (com.facebook.fresco:memory-type-native:2.2.0)
> Could not get resource 'https://jcenter.bintray.com/com/facebook/fresco/memory-type-native/2.2.0/memory-type-native-2.2.0.aar'.
> Could not GET 'https://jcenter.bintray.com/com/facebook/fresco/memory-type-native/2.2.0/memory-type-native-2.2.0.aar'.
> No PSK available. Unable to resume.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 2m 50s

at makeError (C:\Users\83773\Desktop\vision-camera-dynamsoft-barcode-reader\example\node_modules\execa\index.js:174:9)
at C:\Users\83773\Desktop\vision-camera-dynamsoft-barcode-reader\example\node_modules\execa\index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (C:\Users\83773\Desktop\vision-camera-dynamsoft-barcode-reader\example\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:5)
at async Command.handleAction (C:\Users\83773\Desktop\vision-camera-dynamsoft-barcode-reader\example\node_modules\@react-native-community\cli\build\index.js:186:9)

info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

It is free ?

I installed your app there is a license key also..It working now in the future any problem with it?

Can't find variable __decode

Hello -- thank you for building this.

The project successfully built, but I get an error every frame of the frame processor. can't find variable __decode

This is the stack as follows:

 ERROR  Frame Processor threw an error: Can't find variable: __decode
In: decode@/Users/patrick/Development/vision-camera-dynamsoft-barcode-reader/src/index.tsx (25:9):1:47
    @[native code]
    _f@/Users/patrick/Development/vision-camera-dynamsoft-barcode-reader/example/src/App.tsx (16:43):1:163
    @[native code]
    _f@/Users/patrick/Development/vision-camera-dynamsoft-barcode-reader/example/node_modules/react-native-vision-camera/src/hooks/useFrameProcessor.ts (28:21):1:425
    @[native code]

I wonder if it something to do with the babel.config?

I did not change the babel from install, it looks like this:

const path = require('path');
const pak = require('../package.json');

module.exports = {
  presets: ['module:metro-react-native-babel-preset'],
  plugins: [
    [
      'module-resolver',
      {
        extensions: ['.tsx', '.ts', '.js', '.json'],
        alias: {
          [pak.name]: path.join(__dirname, '..', pak.source),
        },
      },
    ],
    [
      'react-native-reanimated/plugin',
      {
        globals: ['__decode'],
      },
    ],
  ],
};

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.