Code Monkey home page Code Monkey logo

robertsasak / react-native-openalpr Goto Github PK

View Code? Open in Web Editor NEW
491.0 22.0 167.0 160.25 MB

An open-source React Native automatic license plate recognition package for OpenALPR

Home Page: https://medium.freecodecamp.com/license-plate-recognition-in-react-native-b4f790d3a160#.jngb9oclt

License: MIT License

Java 18.96% JavaScript 0.38% Objective-C 0.58% C 15.54% C++ 63.78% Objective-C++ 0.56% Ruby 0.13% Starlark 0.04% AIDL 0.02%
react-native openalpr camera camera-component opencv

react-native-openalpr's People

Contributors

azanli avatar cevacomic avatar dependabot[bot] avatar emrosenf avatar gitter-badger avatar hunsu avatar johnyangsam avatar kanerogers avatar mike-at-tiffik avatar richiepreece avatar robertsasak avatar samcorcos 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-native-openalpr's Issues

Load then crashed on device

App showed the camera for 1sec then crashes for both scenario:

  1. Followed the instruction on README.md to test on the new project did not work.
  2. Git cloned the example and follow the instruction on README.md still not working

Help please..

Crash on android emulator

Hello,

I've been trying to make this library work on Android. It seems to be working fine on the real device, but when I am trying to launch it from android emulator, whenever I open up the camera, it crashes after 1-2 seconds. I've linked everything using instructions. I've also added camera permissions. Copy-pasted code from the README. Does anyone have any clue what could be wrong here?

Run for 1.1.0 version

Could you please give example for version 1.1.0. Because we start our app and we see white screen. We done all steps for setup react-native-openalpr. Camera not start and dont ask permission for camera.

New Maintainer for this repository

A few months ago we reached out privately to a few people to see if anyone wanted to take over this project, because it is no longer used at CarDash and all contributors to the project have since left the company.

We didn't get a definitive answer at that time, so I am now reaching out to all prior contributors: @emrosenf @friendly-robot @samcorcos @RobertSasak @JohnYangSam @Hunsu are any of you willing to inherit this repository? (It will require deleting your own fork of the repository and then I transfer this repository to your account.)

If there is no interest from prior contributors to maintain this repository by Christmas, I will be archiving the repository and hopefully one of the forks survives as the de facto continuation of this project. To avoid an Event-Stream-like security situation I will not accept transferring this repository to anyone not mentioned above.

iOS previewLayer does not rotate properly

The image shown is not correct for rotations UIDeviceOrientationPortraitUpsideDown, UIDeviceOrientationLandscapeLeft and UIDeviceOrientationLandscapeRight. It is only correct when the view is in UIDeviceOrientationPortrait.

Wrong confidence range

Hello,
there is this line in the docs:

if (confidence > 0.9) {

but when I log confidence I get a number between 1-100. The correct check should therefore be:

if (confidence > 90) {

Zoom

I understand that higher resolution images will not necessary improve the licence plate recognition. More over it would use more CPU.

Instead of resizing image down to 480x360 I would like to crop the center of the image to size 480x360 (Camera.constants.CaptureQuality.medium). User of the app will be instructed to point camera in such a way that a licence plate is in the center of the image.

This would allowed to recognise licence plate from much longer distance.

Crash on Country MX

Hello, thanks for this lib, great job!

When compiling my react native project using country="mx", the camera don't work, literally if I change to 'us' it works, rarely enough if I use the live reload tool and change it to 'mx' (compiled in 'us') it works as expected.

So the issue, unable to compile using another country than 'us'.

And it breaks in this line of code on xcode project.

screen shot 2017-05-17 at 2 34 50 am

Thanks in advance

Quick Recognition

Hello,
I installed openalpr on both versions, iOS is running very well but on Android I have a very high lag (I use a Samsung S7), delayed reading ... is there any config for this? A screenshot if the number is the one I'm looking for how can I do? I saw that the camera module is not really the camera... Thank you, I am
waiting for your answer

Configuration with name 'default' not found

Hi,

Today i tried use this project in my android application. So i followed all installations instructions step by step. But i'm getting the following error:

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':app'.

Could not resolve all dependencies for configuration ':app:_debugApk'.
Configuration with name 'default' not found.

So, i downloaded the example and did the usual:

  • downloaded the example project
  • run 'npm install'
  • run 'react-native run-android'

and after that i'm getting the same error.

I don't know why this is occurring.

i'm using a MacOs operational system.

Slow first load

It takes around 8s before component show for the first time on iOS. UI thread is frozen and after 8 seconds camera show on the screen. Any following showing/hiding camera is very fast.
Has anybody else similar issue?

Apple Mach-O Linker (id) Error

Lib specs:

react: 16.0.0-alpha.6
react-native: 0.44.2
react-native-openalpr: 1.0.6

Issue:

Hi there,

I'm sure that I'm missing something fairly obvious but I have tried 4 or 5 times now from scratch to get your library into my project and I consistently get the same error:

screen shot 2017-08-24 at 5 04 13 pm

I can successfully build and run the project in /Example and I have tried replicating everything I can think of from its setup but nothing so far has worked. I HAVE noticed a few differences that I do not know how to resolve (or if they're significant). On the left you will see the example project (that builds and runs) and on the right you will see the equivalent screen/section in my project where I see differences:

Screen Shots

screen shot 2017-08-24 at 4 49 30 pm

In the above SS, there is a folder in the Frameworks library called AssetsLibrary that does not appear in the instructions. Also the individual frameworks appear red, very peculiar.

screen shot 2017-08-24 at 4 50 20 pm

Once again in the Build Phases the references to the frameworks are visually very different and I'm not sure why this is or if it matters.

Guess:

When I import the frameworks from node_modules/react-native-openalpr/ios/Frameworks, nothing gets added to my Framework Search Paths. This strikes me as meaningful, especially with the above-mentioned visual differences I'm seeing.

Any help would be greatly appreciated!

Photo Capture

i have a new issue, i want to make a capture screen in the same moment when onPlateRecognizer() return a plate number, a different image beside off the image for recogoneze plate for save this in phone memory ( i need this for android and ios ) please, help me ! :)

Android Crash - broken pipe

Thanks for the work you've put into this. Looks really promising.

However, I'm struggling to get the Example project working on Android, it crashes as soon as the camera mounts with the following. Can anyone give me any pointers?

2019-10-06 17:55:31.544 5323-5323/com.rnopenalprexample E/OpenCV/StaticHelper: OpenCV error: Cannot load info library for OpenCV
2019-10-06 17:55:33.077 5323-5380/com.rnopenalprexample E/AndroidRuntime: FATAL EXCEPTION: HandlerThread
    Process: com.rnopenalprexample, PID: 5323
    java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/base.apk", zip file "/data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_dependencies_apk.apk", zip file "/data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_resources_apk.apk", zip file "/data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_slice_0_apk.apk", zip file "/data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_slice_1_apk.apk", zip file "/data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_slice_2_apk.apk", zip file "/data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_slice_3_apk.apk", zip file "/data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_slice_4_apk.apk", zip file "/data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_slice_5_apk.apk", zip file "/data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_slice_6_apk.apk", zip file "/data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_slice_7_apk.apk", zip file "/data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_slice_8_apk.apk", zip file "/data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/lib/x86, /data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/base.apk!/lib/x86, /data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_dependencies_apk.apk!/lib/x86, /data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_resources_apk.apk!/lib/x86, /data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_slice_0_apk.apk!/lib/x86, /data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_slice_1_apk.apk!/lib/x86, /data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_slice_2_apk.apk!/lib/x86, /data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_slice_3_apk.apk!/lib/x86, /data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_slice_4_apk.apk!/lib/x86, /data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_slice_5_apk.apk!/lib/x86, /data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_slice_6_apk.apk!/lib/x86, /data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_slice_7_apk.apk!/lib/x86, /data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_slice_8_apk.apk!/lib/x86, /data/app/com.rnopenalprexample-Z4YXITY-fTiLbe2Asr_GVQ==/split_lib_slice_9_apk.apk!/lib/x86, /system/lib]]] couldn't find "libopenalpr-native.so"
        at java.lang.Runtime.loadLibrary0(Runtime.java:1012)
        at java.lang.System.loadLibrary(System.java:1669)
        at org.openalpr.AlprJNIWrapper.<clinit>(AlprJNIWrapper.java:9)
        at org.openalpr.OpenALPR$Factory.create(OpenALPR.java:80)
        at com.cardash.openalpr.ALPR.executeRecognition(ALPR.java:119)
        at com.cardash.openalpr.ALPR.access$100(ALPR.java:35)
        at com.cardash.openalpr.ALPR$1.handleMessage(ALPR.java:55)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:193)
        at android.os.HandlerThread.run(HandlerThread.java:65)

Simplify installation process

There has to be a way to just run react-native link, right? Surely we don't have to manually change all of this in Xcode, right...?

Not able to run the package

I followed the steps given but not able to run the project , the error being shown is
import com.sandro.openalpr.CameraReactPackage;

but here sandro package does not exists?

Black / blank screen when loading camera

Trying to implement the project on IOS, the application builds and launches fine both in the simulator and a real device, but after accepting the access to camera prompt the application hangs on a black screen, the camera never opens. There is no build or runtime errors output in Xcode, the only warning output is;

ALPRCameraManager requires main queue setup since it overrides `constantsToExport` but doesn't implement `requiresMainQueueSetup`. In a future release React Native will default to initializing all native modules on a background thread unless explicitly opted-out of

Environment:

MacOS 10.14
Xcode 10
IOS 12

react: 16.6.3
react-native 0.58.4

There's not much else to go on as the build succeeds with no errors. Has anyone experienced a similar issue or have any ideas what might be the cause?

iOS App crashing on switch to openalpr scanner

I used the react-native-openalpr to have a good license plate scanner on my app, it was working prefect. But now with iOS 12.4.1 on my iPhone 8 I get random crashing of the app.
Sometimes everything works great and the plate scanner works very good.
But on the other side the app is crashing immediately on camera open.

I debugged the code to the file
react-native-openalpr/ios/PlateScanner.mm on Line 60
Link to code segment

delegate->recognize(colorImage.data, (int)colorImage.elemSize(), colorImage.cols, colorImage.rows, regionsOfInterest);

I get a repeating error EXC_BAD_ACCESS (code=1, address=0x20) on this line.

I already excluded the fields colorImage.elemSize(), colorImage.cols, colorImage.rows, regionsOfInterest on xcode debug.

So I assume it caused by the camera image on field colorImage.data.

Can you give me more insight about possible causes if its related to ios update?

Thank you in advance

Compile issues

when i download and run this code i will get un error like React/RCTBridge.h file not found. how to achieve this issue. Please help me.

Failed to build apk (Configuration with name 'default' not found)

I tried setting up the example given with the project. When I try running "react-native run-android" to build apk, I am seeing the following error

Evaluating project ':opencv' using build file 'C:\mani\AwesomeProject\node_modules\react-native-openaplr\android\libraries\opencv\build.gradle'.

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':app'.

Could not resolve all dependencies for configuration ':app:_debugApk'.
A problem occurred configuring project ':react-native-openalpr'.
> Could not resolve all dependencies for configuration ':react-native-openalpr:_debugPublish'.
> Configuration with name 'default' not found.

Looks the project stopped compilation once opencv building is reached. Would anyone please help on how to fix this issue.

Environment:
Windows 10
Node v6.9.1
Npm v4.6.1

Other library versions are taken as it from example folder.

License question

Hi,

Is all of these files under MIT license? I though that OpenALPR files could be under GPL3?

-t

app crash on android after update to react-native 0.59

i think it might related to the the new react-native 64-bit support.
does the libary going to support "arm64-v8a" architecture?

FATAL EXCEPTION: HandlerThread
AndroidRuntime: Process: com.hertzserviceapp.dev, PID: 14591
E AndroidRuntime: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.hertzserviceapp.dev-ZpOScjwz6yrN2-4EWzZWJA==/base.apk"],nativeLibraryDirectories=[/data/app/com.hertzserviceapp.dev-ZpOScjwz6yrN2-4EWzZWJA==/lib/arm64, /data/app/com.hertzserviceapp.dev-ZpOScjwz6yrN2-4EWzZWJA==/base.apk!/lib/arm64-v8a, /system/lib64]]] couldn't find "libopenalpr-native.so"
06-30 17:28:17.718 14591 14733 E AndroidRuntime: at java.lang.Runtime.loadLibrary0(Runtime.java:1012)
06-30 17:28:17.718 14591 14733 E AndroidRuntime: at java.lang.System.loadLibrary(System.java:1669)
06-30 17:28:17.718 14591 14733 E AndroidRuntime: at org.openalpr.AlprJNIWrapper.(AlprJNIWrapper.java:9)
06-30 17:28:17.718 14591 14733 E AndroidRuntime: at org.openalpr.OpenALPR$Factory.create(OpenALPR.java:80)
06-30 17:28:17.718 14591 14733 E AndroidRuntime: at com.cardash.openalpr.ALPR.executeRecognition(ALPR.java:119)
06-30 17:28:17.718 14591 14733 E AndroidRuntime: at com.cardash.openalpr.ALPR.access$100(ALPR.java:35)
06-30 17:28:17.718 14591 14733 E AndroidRuntime: at com.cardash.openalpr.ALPR$1.handleMessage(ALPR.java:55)
06-30 17:28:17.718 14591 14733 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
06-30 17:28:17.718 14591 14733 E AndroidRuntime: at android.os.Looper.loop(Looper.java:193)
06-30 17:28:17.718 14591 14733 E AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:65)

I downloaded the example but when I run the project shows this error

undefined is not an object (evaluating '_react.PropTypes.oneOfType')

camera.js:46:26
loadModuleImplementation
require.js:320:6
guardedLoadModule
require.js:214:36
metroRequire
require.js:136:24

consultasCamera.js:12
loadModuleImplementation
require.js:320:6
guardedLoadModule
require.js:214:36
metroRequire
require.js:136:24

App.js:8
loadModuleImplementation
require.js:320:6
guardedLoadModule
require.js:214:36
metroRequire
require.js:136:24

index.js:4
loadModuleImplementation
require.js:320:6
guardedLoadModule
require.js:207:45
metroRequire
require.js:136:24
global code

static propTypes = {
    ...View.propTypes,
    aspect: PropTypes.oneOfType([
        PropTypes.string,
        PropTypes.number
    ]),
    captureQuality: PropTypes.oneOfType([
        PropTypes.string,
        PropTypes.number
    ]),
    country: PropTypes.string,
    onPlateRecognized: PropTypes.func,
    plateOutlineColor: PropTypes.string,
    showPlateOutline: PropTypes.bool,
    rotateMode: PropTypes.oneOfType([
        PropTypes.string,
        PropTypes.number
    ]),
    torchMode: PropTypes.oneOfType([
        PropTypes.string,
        PropTypes.number
    ]),
    touchToFocus: PropTypes.bool,
};

Pass options to OpenALPR

Is there any way currently to pass options to the OpenALPR recognizer -- plate formate, country code, etc.?

Error: importing the module

I have this error

module "c:/Users/User/Desktop/Projects/react-native/TestApp/node_modules/react-native-openalpr/index"
Could not find a declaration file for module 'react-native-openalpr'. 'c:/Users/User/Desktop/Projects/react-native/TestApp/node_modules/react-native-openalpr/index.js' implicitly has an 'any' type.
Try npm install @types/react-native-openalpr if it exists or add a new declaration (.d.ts) file containing declare module 'react-native-openalpr';ts(7016)

What could be the problem?

Version of libraries

What is the version of Tesseract and OpenCV used in your project?

And is there any instruction on how to build Tesseract and OpenCV libraries for iOS? Thanks.

Android version not compiling

3 Errors

Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
Message{kind=ERROR, text=Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'., sources=[/Users/scott/sandbox/react_native/cdcv/node_modules/react-native-openalpr/android/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3], original message=, tool name=Optional.of(AAPT)}

Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
Message{kind=ERROR, text=Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'., sources=[/Users/scott/sandbox/react_native/cdcv/node_modules/react-native-openalpr/android/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4], original message=, tool name=Optional.of(AAPT)}

No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.
Message{kind=ERROR, text=No resource found that matches the given name: attr 'android:keyboardNavigationCluster'., sources=[/Users/scott/sandbox/react_native/cdcv/node_modules/react-native-openalpr/android/build/intermediates/res/merged/debug/values-v26/values-v26.xml:15:21-54], original message=, tool name=Optional.of(AAPT)}

New project built using Android Studio 3.1.4

buildToolsVersion = "26.0.3"
minSdkVersion = 16
compileSdkVersion = 26
targetSdkVersion = 26
supportLibVersion = "26.1.0"

iOS version did build after adding AssetLibrary to Link Frameworks

Balck screen when unmount camera

hello!

I have a problem with this library!

When render Camera I don't have problem but when change of state "camera_open" to false, the screen turns black. If I minimize the app and I resume the app, the app recover the state with the image "Welcome".

if(this.state.camera_open){
            return (
                <View style={{flex: 1}}>
                    <View style={{position: 'absolute', backgroundColor: 'transparent'}}>
                        <Image source={camera} style={{margin:0.5}}/>
                    </View>
                    <Camera
                        ref='camera'
                        style={{flex: 1}}
                        aspect={Camera.constants.Aspect.fill}
                        captureQuality={Camera.constants.CaptureQuality.midium}
                        country="us"
                        onPlateRecognized={({ plate, confidence }) => this._onPlateRecognized(plate, confidence)}
                        torchMode={Camera.constants.TorchMode.off}
                        touchToFocus={true}
                        showPlateOutline={false}
                        />
                </View>
            );
} else {
   return (
          <View style={{flex: 1}}>
              <Text source={Welcome} style={{margin:0.5}}></Text>
           </View>
    );
}

When i try to open the app it crashes

When i try to open the app it crashes and when i check my logcat it gives me this
12-13 23:11:58.570 7386-7427/com.awesomeproject E/AndroidRuntime: FATAL EXCEPTION: HandlerThread Process: com.awesomeproject, PID: 7386 java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/base.apk", zip file "/data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/split_lib_dependencies_apk.apk", zip file "/data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/split_lib_slice_0_apk.apk", zip file "/data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/split_lib_slice_1_apk.apk", zip file "/data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/split_lib_slice_2_apk.apk", zip file "/data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/split_lib_slice_3_apk.apk", zip file "/data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/split_lib_slice_4_apk.apk", zip file "/data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/split_lib_slice_5_apk.apk", zip file "/data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/split_lib_slice_6_apk.apk", zip file "/data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/split_lib_slice_7_apk.apk", zip file "/data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/split_lib_slice_8_apk.apk", zip file "/data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/lib/x86, /system/fake-libs, /data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/base.apk!/lib/x86, /data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/split_lib_dependencies_apk.apk!/lib/x86, /data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/split_lib_slice_0_apk.apk!/lib/x86, /data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/split_lib_slice_1_apk.apk!/lib/x86, /data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/split_lib_slice_2_apk.apk!/lib/x86, /data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/split_lib_slice_3_apk.apk!/lib/x86, /data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/split_lib_slice_4_apk.apk!/lib/x86, /data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/split_lib_slice_5_apk.apk!/lib/x86, /data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/split_lib_slice_6_apk.apk!/lib/x86, /data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/split_lib_slice_7_apk.apk!/lib/x86, /data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/split_lib_slice_8_apk.apk!/lib/x86, /data/app/com.awesomeproject-u_BQPWSNgToWJy9vA39Etw==/split_lib_slice_9_apk.apk!/lib/x86, /system/lib, /system/vendor/lib]]] couldn't find "libopenalpr-native.so" at java.lang.Runtime.loadLibrary0(Runtime.java:1011) at java.lang.System.loadLibrary(System.java:1657) at org.openalpr.AlprJNIWrapper.<clinit>(AlprJNIWrapper.java:9) at org.openalpr.OpenALPR$Factory.create(OpenALPR.java:80) at com.cardash.openalpr.ALPR.executeRecognition(ALPR.java:119) at com.cardash.openalpr.ALPR.access$100(ALPR.java:35) at com.cardash.openalpr.ALPR$1.handleMessage(ALPR.java:55) at android.os.Handler.dispatchMessage(Handler.java:105) at android.os.Looper.loop(Looper.java:164) at android.os.HandlerThread.run(HandlerThread.java:65)

How to build openalpr in iOS?

I'm wondering how you managed to openalpr to iOS? The reason I need to compile it by myself is that I'd like to change and debug the openalpr. Thanks.

Image is flipped and upside down

Running the example on device Nexus 5x, Android 8.1.0

For some reason the image is flipped both horizontally and vertically, so upper left corner in real word is in bottom right corner. Plate numbers are read as camera sees them. Switching orientation only rotates the menu.

Works alright on nexus 4, Android 5.1.1

Capture is not a function

This is probably a no-brainer, but how do I call the capture function on this.camera ref?

I'm switching from an existing 'react-native-camera' implementation to 'react-native-openalpr' where the "take picture" function for 'react-native-camera' is this.camera.capture(). On the description of 'react-native-openalpr' it says that its camera is based off of 'react-native-camera' so I assume that the naming conventions would be similar.

I'm looking through the console log of this.camera ref but I cannot seem to find the equivalent function of capture. Can someone point this out to me please?

Example -> Android Studio -> Failed to crunch file

Followed this guide: https://github.com/cardash/react-native-openalpr#running-the-example-project-on-android-while-developing to get the example project running. In step 4 I get the following errors in Android Studio.

Actual Behavior

Error:Failed to crunch file C:\Users\oscar\Desktop\react-native-openalpr-master\Example\node_modules\react-native-openalpr\android\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.0.1\res\drawable-xhdpi\abc_textfield_search_activated_mtrl_alpha.9.png into C:\Users\oscar\Desktop\react-native-openalpr-master\Example\node_modules\react-native-openalpr\android\build\intermediates\res\merged\androidTest\debug\drawable-xhdpi\abc_textfield_search_activated_mtrl_alpha.9.png

Error:Execution failed for task ':react-native-openalpr:mergeDebugAndroidTestResources'.
Error: Failed to crunch file C:\Users\oscar\Desktop\react-native-openalpr-master\Example\node_modules\react-native-openalpr\android\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.0.1\res\drawable-xhdpi\abc_textfield_search_activated_mtrl_alpha.9.png into C:\Users\oscar\Desktop\react-native-openalpr-master\Example\node_modules\react-native-openalpr\android\build\intermediates\res\merged\androidTest\debug\drawable-xhdpi\abc_textfield_search_activated_mtrl_alpha.9.png

Expected Behavior

Android Studio Gradle should build without a problem.

Software versions

  • OS platform and version: Microsoft Windows 10 Pro, Version 10.0.16299 Build 16299
  • NodeJS version: v6.11.4
  • React Native version: 0.41.2

Is there a conflict with RNCamera

Hi,

1st, thanks for your job !

I'm facing a problem in my project, even after installing the whole plugin.

I use RN 0.60.4 and RN Camera 2.9.0.

The tag used is

No compile problem but after launch I've got "null is not an object (evaluating CameraManager.Aspect).

Can it be related to using RN Camera in the same project ?

pod install failed

React native version 0.60.4

Fetching podspec for RNOpenAlpr from ../node_modules/react-native-openalpr/ios
[!] The RNOpenAlpr pod failed to validate due to 1 error:
- ERROR | attributes: Missing required attribute homepage.
- WARN | source: The version should be included in the Git tag.
- WARN | description: The description is equal to the summary.

Update to work with latest react version

Is it possible to update the this project to work with the latest project:

this is the error i get on a blank react template

_> Configure project :openalpr
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: The specified Android SDK Build Tools version (25.0.0) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.4.
Android SDK Build Tools 27.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '25.0.0'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':opencv'.

Could not resolve all files for configuration ':opencv:classpath'.
Could not find com.android.tools:common:25.3.2.
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/common/25.3.2/common-25.3.2.pom
https://jcenter.bintray.com/com/android/tools/common/25.3.2/common-25.3.2.jar
Required by:
project :opencv > com.android.tools.build:gradle:2.3.2 > com.android.tools.build:gradle-core:2.3.2 > com.android.tools.build:builder:2.3.2
project :opencv > com.android.tools.build:gradle:2.3.2 > com.android.tools.build:gradle-core:2.3.2 > com.android.tools.build:builder:2.3.2 > com.android.tools.build:manifest-merger:25.3.2
project :opencv > com.android.tools.build:gradle:2.3.2 > com.android.tools.build:gradle-core:2.3.2 > com.android.tools.build:builder:2.3.2 > com.android.tools.ddms:ddmlib:25.3.2
project :opencv > com.android.tools.build:gradle:2.3.2 > com.android.tools.build:gradle-core:2.3.2 > com.android.tools.build:builder:2.3.2 > com.android.tools.analytics-library:shared:25.3.2
project :opencv > com.android.tools.build:gradle:2.3.2 > com.android.tools.build:gradle-core:2.3.2 > com.android.tools.build:builder:2.3.2 > com.android.tools.analytics-library:tracker:25.3.2
project :opencv > com.android.tools.build:gradle:2.3.2 > com.android.tools.build:gradle-core:2.3.2 > com.android.tools.build:builder:2.3.2 > com.android.tools:sdklib:25.3.2 > com.android.tools.layoutlib:layoutlib-api:25.3.2
project :opencv > com.android.tools.build:gradle:2.3.2 > com.android.tools.build:gradle-core:2.3.2 > com.android.tools.build:builder:2.3.2 > com.android.tools:sdklib:25.3.2 > com.android.tools:dvlib:25.3.2
project :opencv > com.android.tools.build:gradle:2.3.2 > com.android.tools.build:gradle-core:2.3.2 > com.android.tools.build:builder:2.3.2 > com.android.tools:sdklib:25.3.2 > com.android.tools:repository:25.3.2

  • 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_

error in iOS

I follow the instructions as per the install documentation but I got an errror:

ld: framework not found openalpr
clang: error: linker command failed with exit code 1 (use -v to see invocation)

It looks like after adding the frameworks to the project there were no updates on framework search path. But if I try to manually add the path

$(PROJECT_DIR)/../node_modules/react-native-openalpr/ios/Frameworks

I got the error:

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_ALAssetsLibrary", referenced from:
      objc-class-ref in opencv2(cap_ios_video_camera.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any idea? I'm on XCode 9.2

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.