I am Tony from Dynamsoft, where I write blogs and demos for its products.
You can find a list of the projects by me here: https://github.com/tony-xlh/awesome-dynamsoft/blob/main/docs/authors/tony.md
React Native Vision Camera Frame Processor Plugin of Dynamsoft Barcode Reader
License: MIT License
I am Tony from Dynamsoft, where I write blogs and demos for its products.
You can find a list of the projects by me here: https://github.com/tony-xlh/awesome-dynamsoft/blob/main/docs/authors/tony.md
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",
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.
Compilation failed; see the compiler error output for details.
is dynamsoft-barcode-reader can be used for free forever or just provide to try in some time,after that we should buy it
An update that removes the reanimated dependency and supports worklets-core would be most welcome.
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
Is it really necessary to recognize the EAN_13+5 barcode? Is this possible with this plugin?
https://roskod.ru/shtrihkodirovanie/ean-13-kody/ean-13-5/#:~:text=%D0%A8%D1%82%D1%80%D0%B8%D1%85%20%D0%BA%D0%BE%D0%B4%20EAN%2013%2B5%20%D0%BF%D1%80%D0%B5%D0%B4%D1%81%D1%82%D0%B0%D0%B2%D0%BB%D1%8F%D0%B5%D1%82%20%D1%81%D0%BE%D0%B1%D0%BE%D0%B9%20%D0%BA%D0%BE%D0%BC%D0%B1%D0%B8%D0%BD%D0%B0%D1%86%D0%B8%D1%8E%20%D0%B1%D0%B0%D0%B7%D0%BE%D0%B2%D0%BE%D0%B3%D0%BE%2013,%D0%B4%D0%BB%D1%8F%20%D0%BA%D0%BE%D0%B4%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F%20%D0%BF%D0%BE%D0%B4%D0%BC%D0%BD%D0%BE%D0%B6%D0%B5%D1%81%D1%82%D0%B2%D0%B0%20%D0%B1%D0%B0%D0%B7%D0%BE%D0%B2%D0%BE%D0%B3%D0%BE%20%D0%BA%D0%BE%D0%B4%D0%B0.
Still same error.
RN 0.70
Reanimeted 3.5.4.
RN Vision 2.16.2
Dynam 0.6.3
Originally posted by @diegopeixoto in #11 (comment)
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, im not getting any error and the camera is opening correctly
Hey,
I saw that you have a paid product (https://www.dynamsoft.com/barcode-reader/overview/) so I would like to know what are the differences between these two solutions, please.
I also saw the DBRConfig interface then I had this doubt.
Thank you in advance.
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",
Installing DynamsoftBarcodeReader (9.0.0)
This dependency cannot be downloaded
Can this read QR code pictures from the album like base64
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.
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.
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.
I installed your app there is a license key also..It working now in the future any problem with it?
I was wondering how we can add timeout between each scan.
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'],
},
],
],
};
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.