Coder Social home page Coder Social logo

openalpr-ios's Introduction

openalpr-ios

A Ruby script that builds an Xcode project and a universal iOS static library framework for the openalpr library. As of this writing, this project is compatible with the 2.2.x release of OpenALPR and later.

Running the script will:

  • Download the OpenCV 3.0.0 framework binary release and symlink the headers directory so that the OpenALPR code will see them.
  • Download and build universal Tesseract 3.03, Leptonica 1.71, and OpenALPR static library framework bundles from source.
  • Generate a OpenALPR Xcode project

Requirements

  • Mac OS X
  • Ruby 2.1.x, bundler
  • Xcode and command line tools. Tested with Xcode 7.1.
  • curl, tar, unzip, git (seems to be installed by default on OS X)
  • cmake (homebrew | source)
  • autoconf (homebrew | source)

As of this writing, the latest openalpr commit on the master branch was eecd41e097534f84e2669da24d4aed4bf75a1132

Installation

  • Clone this module:

    # git clone [email protected]:twelve17/openalpr-ios.git
    
  • Install dependencies: bundle install

  • If running Homebrew, unlink existing installs of leptonica and tesseract, as the OpenALPR library will use those instead, which we don't want: brew unlink leptonica tesseract. You can run brew link to re-link them after the install is done.

  • Run bundle exec ./bin/build_frameworks.rb. By default, it will put all the frameworks under a subdirectory called output. You can pass an alternate path with the -d option. Intermediate files are kept under the work subdirectory, including a log called build.log which you can inspect for errors.

Usage

Bitcode

Because the OpenCV binary framework release is compiled without bitcode, the other frameworks built by this script are also built without it, which ultimately means your Xcode project also cannot be built with bitcode enabled. Per this message, it sounds like we want this feature disabled for OpenCV anyway.

To disable bitcode in your project:

  • In Build SettingsBuild Options, search for Enable Bitcode and set it to No.

Linking To Frameworks

  • In Xcode, open your project. Then go to Add Files and add all four frameworks (leptonica, opencv, tesseract, openalpr) from the output directory. Use the Copy items if needed option. This should cause the project to add a framework search path to the project's build settings (e.g. $(PROJECT_DIR)).
  • Ensure that all four frameworks are included in the Link Binary With Libraries build phase.
  • The alpr library requires a config file (openalpr.conf) and a data folder (runtime_data), both of which are included in the framework, but must be copied to the application resources:
    • Select your project on the project navigator, then, on the main pane, go to Targets<Your Project>Build PhasesCopy Bundle Resources, and click on the +.
    • Select Add Other...
    • Browse into the openalpr.framework bundle, and command-select both runtime_data and openalpr.conf. Unselect Copy items if needed and select Create folder references.

AlprSample App

You can use the AlprSample app included in this project to test your installation. It has one view that simply presents a fixed (pre-selected) license plate image, and a table view below it showing scanned plate values for that image.

To run the app, you will need to build the frameworks with build_frameworks.rb. Then, in Xcode, open the project and follow these steps:

  1. Find a plate image file you wish to test with and add it to the project.
  2. Edit ViewController.mm and change the value of plateFilename to the name of the file you added in step 1, e.g. NSString *plateFilename = @"license_plate.jpg";
  3. Link the project to the dependency frameworks and add the required resources per the "Linking To Frameworks" section above.
  4. Run the app! The library should work in a simulator.

Misc Notes

Dynamic Library?

I initially attempted to build dynamic libraries, since they are supported as of iOS 9. It required me to update the rpath of the dynamic libraries. Then the frameworks must be embedded into the application. However, even after doing that, I ran into odd run-time errors where the libopenalpr.dylib library could not load the statedetection library. PRs welcome!

AlprSample Creation

Steps for creating the app are kept here for posterity.

  • Create New Project
    • iOSApplicationSingle View Application
    • Product Name: AlprSample
  • You should end up with a project which contains, among other things, a ViewController.h and ViewController.m class. Rename the .m class to ViewController.mm (two m's). This causes Xcode to compile the class as "Objective-C++", which we need, as the openalpr code is in C++.
  • Disable bitcode per the "Bitcode" section above.
  • Link the project to the dependency frameworks and add the required resources per the "Linking To Frameworks" section above.

Tips

  • Viewing iOS device logs

  • Viewing symbols in library: nm -gUj openalpr.framework/Libraries/libopenalpr-static.a | c++filt

  • Inspecting the Simulator logs: tail -f ~/Library/Logs/CoreSimulator/*.log

  • clean up temporary Xcode items

     rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"
     rm -rf ~/Library/Developer/Xcode/DerivedData
     rm -rf ~/Library/Caches/com.apple.dt.Xcode
    

Credits

openalpr-ios's People

Contributors

bogidon avatar jeanazzopardi 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

openalpr-ios's Issues

bundle exec ./bin/build_frameworks.rb not creating output directory

Hi,

I want to use ALPR for my iOS app. I am trying to follow the instruction in github page. When i run bundle exec ./bin/build_frameworks.rb the command fails with the following errors.


bundler: failed to load command: ./bin/build_frameworks.rb (./bin/build_frameworks.rb)
RuntimeError: Child returned: pid 25248 exit 1
  /Users/abdulsamad/Documents/ALPR/lib/alpr/utils.rb:44:in `execute'
  /Users/abdulsamad/Documents/ALPR/lib/alpr/utils.rb:50:in `qexec'
  /Users/abdulsamad/Documents/ALPR/lib/alpr/package/automake.rb:37:in `<class:Automake>'
  /Users/abdulsamad/Documents/ALPR/lib/alpr/package/automake.rb:27:in `<module:Package>'
  /Users/abdulsamad/Documents/ALPR/lib/alpr/package/automake.rb:26:in `<top (required)>'
  /Users/abdulsamad/Documents/ALPR/lib/alpr/package.rb:2:in `require_relative'
  /Users/abdulsamad/Documents/ALPR/lib/alpr/package.rb:2:in `<top (required)>'
  /Users/abdulsamad/Documents/ALPR/bin/build_frameworks.rb:30:in `require_relative'
  /Users/abdulsamad/Documents/ALPR/bin/build_frameworks.rb:30:in `<top (required)>'

Does anybody have an idea what is wrong here. Can someone guide me to the right direction please.

Thanks
Abdul

Problem to build

When I run:

bundle exec ./bin/build_frameworks.rb

I got the following error:

configure: error: in /Users/zhouhao/Projects/openalpr-ios/work/leptonica-1.71': configure: error: cannot run C compiled programs. If you meant to cross compile, use --host'.
See config.log' for more details /Users/zhouhao/Projects/openalpr-ios/lib/alpr/utils.rb:44:in execute': Child returned: pid 11788 exit 1 (RuntimeError)
from /Users/zhouhao/Projects/openalpr-ios/lib/alpr/utils.rb:74:in log_execute' from /Users/zhouhao/Projects/openalpr-ios/lib/alpr/package/automake.rb:147:in do_autoconf_build'
from /Users/zhouhao/Projects/openalpr-ios/lib/alpr/package/automake.rb:58:in build_arch' from /Users/zhouhao/Projects/openalpr-ios/lib/alpr/package/base.rb:53:in block in install'
from /Users/zhouhao/Projects/openalpr-ios/lib/alpr/package/base.rb:52:in each' from /Users/zhouhao/Projects/openalpr-ios/lib/alpr/package/base.rb:52:in install'
from ./bin/build_frameworks.rb:69:in `

'

Any idea? Thanks

OpenCV Error

Hello
I have this error:

OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvShowImage, file /Volumes/Linux/builds/precommit_ios/opencv/modules/highgui/src/window.cpp, line 534
Caught exception in OpenALPR recognize: /Volumes/Linux/builds/precommit_ios/opencv/modules/highgui/src/window.cpp:534: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvShowImage

Terminated due to memory issue on physical device

I've ran openalpr-ios on the simulator with success. Now I'm trying to run the project on an iPhone 6s (9.3.1) and each time I get the following output in my debug console:

Missing config value for runtime_dir
Missing config value for detector
Missing config value for detection_iteration_increase
Missing config value for detection_strictness
Missing config value for max_plate_width_percent
Missing config value for max_plate_height_percent
Missing config value for max_detection_input_width
Missing config value for max_detection_input_height
Missing config value for contrast_detection_threshold
Missing config value for must_match_pattern
Missing config value for skip_detection
Missing config value for detection_mask_image
Missing config value for analysis_count
Missing config value for prewarp
Missing config value for max_plate_angle_degrees
Missing config value for ocr_img_size_percent
Missing config value for state_id_img_size_percent
Missing config value for ocr_min_font_point
Missing config value for postprocess_min_confidence
Missing config value for postprocess_confidence_skip_level
Missing config value for debug_general
Missing config value for debug_timing
Missing config value for debug_prewarp
Missing config value for debug_detector
Missing config value for debug_state_id
Missing config value for debug_plate_lines
Missing config value for debug_plate_corners
Missing config value for debug_char_segment
Missing config value for debug_char_analysis
Missing config value for debug_color_filter
Missing config value for debug_ocr
Missing config value for debug_postprocess
Missing config value for debug_show_images
Missing config value for debug_pause_on_frame
Message from debugger: Terminated due to memory issue

I've enabled the "Address Sanitizer" under the "Diagnostics" tab to determine if I could find where the memory issue is occurring. After enabling, Address Sanitizer break points in PlateScanner.mm at this point in the code:

screen shot 2016-04-04 at 11 43 55 am

Address Sanitizer outputs this error in the console:

==1173==ERROR: AddressSanitizer failed to allocate 0x215a4000 (559562752) bytes of LargeMmapAllocator (error code: 12)
==1173==Process memory map follows:
    0x01955f4000-0x0195607000   /System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Libraries/libCGInterfaces.dylib
    0x01a19b4000-0x01a19b4034   /System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Libraries/libCGInterfaces.dylib
    0x01a00b0000-0x01a00b0bf8   /System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Libraries/libCGInterfaces.dylib

...

    #43 0x18865df6f in UIApplicationMain (/System/Library/Frameworks/UIKit.framework/UIKit+0x7df6f)
    #44 0x100055f33 in main (/var/containers/Bundle/Application/EB9E5DE6-CC0E-4126-A8CB-BCBA8D423DF5/AlprSample.app/AlprSample+0x100011f33)
    #45 0x182f268b7 in <redacted> (/usr/lib/system/libdyld.dylib+0x28b7)

I've noticed the app loads okay so long as I don't provide it an image, but this doesn't help me much. I'm not sure how to go about this issue.

Build AlprSample fails

openalpr-ios/AlprSample/AlprSample/Plate.h:11:10: 'openalpr/alpr.h' file not found

But
Frameworks are present

how use alpr in xcode?

I think I successfully installed openalpr-ios and linked it in my xcode project. however, I have no idea how to use it in xcode? thank you, your help is greatly appreciated!

Cannot build leptonica for armv7

Hello,
i can build opencv, but it fails at leptonica. I attached the build.log and the leptonica config.log
files, maybe you can take a look at it? Any help would be appreciated. Below is the terminal output.

build.log
config.log

_:openalpr-ios knutzebj$ bundle exec bin/build_frameworks.rb
options: {}
Package opencv2 is already installed. Skipping build.
Downloading leptonica library.
Building leptonica for armv7 from /Users/knutzebj/openalpr-ios/work/leptonica-1.71
make: *** No rule to make target clean'. Stop. make: *** No rule to make target distclean'. Stop.
configure: WARNING: if you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used
configure: WARNING: using cross tools not prefixed with host triplet
bundler: failed to load command: bin/build_frameworks.rb (bin/build_frameworks.rb)
RuntimeError: Child returned: pid 43450 exit 2
/Users/knutzebj/openalpr-ios/lib/alpr/utils.rb:44:in execute' /Users/knutzebj/openalpr-ios/lib/alpr/utils.rb:74:in log_execute'
/Users/knutzebj/openalpr-ios/lib/alpr/package/automake.rb:147:in do_autoconf_build' /Users/knutzebj/openalpr-ios/lib/alpr/package/automake.rb:58:in build_arch'
/Users/knutzebj/openalpr-ios/lib/alpr/package/base.rb:53:in block in install' /Users/knutzebj/openalpr-ios/lib/alpr/package/base.rb:52:in each'
/Users/knutzebj/openalpr-ios/lib/alpr/package/base.rb:52:in install' bin/build_frameworks.rb:70:in <top (required)>'

OpenCV crash

Hiho,

I have a very strange problem with die Scaner. Since I included the Wikitude-SDK (which also implements a version of the OpenCV-SDK) I get an error using the openALPR-SDK:

OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file /Volumes/Linux/builds/precommit_ios/opencv/modules/imgproc/src/color.cpp, line 7564
libc++abi.dylib: terminating with uncaught exception of type cv::Exception

For me it looks like openALPR uses the wrong OpenCV-Framework - has anyone a similar problem or a hint how I could fix it?

Thank you for every advice.

Open ALPR Build Error

Hi,
I goes through all steps mentioned in read me file.
I am getting one error when building the xcode project:
clang: error: no such file or directory: '../openalpr-ios/openalpr-xcode/openalpr/openalpr/segmentation/segment.cpp'
clang: error: no input files
Command /Applications/Xcode_6_2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

Can you let me know how to resolve this error?

Can't install openalpr-ios

Hi guys,
I followed instructions and I'm stuck on this:
Run bundle exec ./bin/build_frameworks.rb. By default, it will put all the frameworks under a subdirectory called output.
When I run ./bin/build_frameworks.rb it throws errors:
options: {} opencv2 archive path: <path to project>/alpr/openalpr-ios/work/opencv2.framework.zip Package opencv2 already downloaded bundler: failed to load command: ./bin/build_frameworks.rb (./bin/build_frameworks.rb) RuntimeError: Missing opencv2 framework bundle: <path to project>/alpr/openalpr-ios/output/opencv2.framework <path to project>/alpr/openalpr-ios/lib/alpr/package/opencv.rb:98:in download'
/alpr/openalpr-ios/lib/alpr/package/opencv.rb:46:in install' <path to project>/alpr/openalpr-ios/bin/build_frameworks.rb:67:in <top (required)>'`

Can you please help me with this? Thanks.

Problems while installing

I have some problems using bundle exec ./bin/build_frameworks.rb

I follow the instructions multiple times and come to the same problem(s):

imac-wlan:openalpr-ios-master skelzor$ bundle exec ./bin/build_frameworks.rb
options: {}
Downloading opencv2 library.
adding opencv2 headers symlink hack: /Users/skelzor/Developer/openalpr-ios-master/output/opencv2.framework/Headers/opencv2 -> /Users/skelzor/Developer/openalpr-ios-master/output/opencv2.framework/Headers
Downloading leptonica library.
Building leptonica for armv7 from /Users/skelzor/Developer/openalpr-ios-master/work/leptonica-1.71
make: *** No rule to make target `clean'.  Stop.
make: *** No rule to make target `distclean'.  Stop.
configure: WARNING: if you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used
configure: WARNING: using cross tools not prefixed with host triplet
Building leptonica for armv7s from /Users/skelzor/Developer/openalpr-ios-master/work/leptonica-1.71
configure: WARNING: if you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used
configure: WARNING: using cross tools not prefixed with host triplet
Building leptonica for arm64 from /Users/skelzor/Developer/openalpr-ios-master/work/leptonica-1.71
configure: WARNING: if you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used
configure: WARNING: using cross tools not prefixed with host triplet
Building leptonica for i386 from /Users/skelzor/Developer/openalpr-ios-master/work/leptonica-1.71
Building leptonica for x86_64 from /Users/skelzor/Developer/openalpr-ios-master/work/leptonica-1.71
Downloading tesseract library.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   372    0   372    0     0     40      0 --:--:--  0:00:09 --:--:--    93
100 12.2M    0 12.2M    0     0  1108k      0 --:--:--  0:00:11 --:--:-- 11.0M
Building tesseract for armv7 from /Users/skelzor/Developer/openalpr-ios-master/work/tesseract-3.03
make: *** No rule to make target `clean'.  Stop.
make: *** No rule to make target `distclean'.  Stop.
/Users/skelzor/Developer/openalpr-ios-master/lib/alpr/utils.rb:44:in `execute': Child returned: pid 28285 exit 1 (RuntimeError)
    from /Users/skelzor/Developer/openalpr-ios-master/lib/alpr/utils.rb:74:in `log_execute'
    from /Users/skelzor/Developer/openalpr-ios-master/lib/alpr/package/automake.rb:141:in `do_autoconf_build'
    from /Users/skelzor/Developer/openalpr-ios-master/lib/alpr/package/automake.rb:58:in `build_arch'
    from /Users/skelzor/Developer/openalpr-ios-master/lib/alpr/package/base.rb:53:in `block in install'
    from /Users/skelzor/Developer/openalpr-ios-master/lib/alpr/package/base.rb:52:in `each'
    from /Users/skelzor/Developer/openalpr-ios-master/lib/alpr/package/base.rb:52:in `install'
    from ./bin/build_frameworks.rb:76:in `<main>'
imac-wlan:openalpr-ios-master skelzor$ 

everything is unlinked / not installed like in the instructions. I use homebrew 0.9.5 and ruby 2.3. bundler has version 1.11.2.

I also recognize errors when working with Alcatraz-Plugins.

Thank you for any hint and the work on this framework - we already use it with Android.

OpenCV can't install needs some extra $(inherited)

Tried to get this to work, but I keep getting this error:

[!] The openalpr-xcode [Debug] target overrides the HEADER_SEARCH_PATHS build setting defined in Pods/Target Support Files/Pods/Pods.debug.xcconfig'. This can lead to problems with the CocoaPods installation - Use the$(inherited)` flag, or
- Remove the build settings from the target.

[!] The openalpr-xcode [Release] target overrides the HEADER_SEARCH_PATHS build setting defined in Pods/Target Support Files/Pods/Pods.release.xcconfig'. This can lead to problems with the CocoaPods installation - Use the$(inherited)` flag, or
- Remove the build settings from the target.

I added the $(inherited) to the "Other linker flags" as suggested by some people but still no hope. the project does have the "$(inherited)" set in the header search paths..

Not able to compile framework

Hello

I tried to run build_frameworks.rb and received following errors

SyntaxError: /Users/pc5/Downloads/DEMO/openalpr-ios/lib/alpr/package/alpr.rb:31: syntax error, unexpected ','
    def initialize(log_file:, logger:,
                             ^
/Users/pc5/Downloads/DEMO/openalpr-ios/lib/alpr/package/alpr.rb:173: syntax error, unexpected keyword_end, expecting end-of-input
  /Users/pc5/Downloads/DEMO/openalpr-ios/lib/alpr/package.rb:1:in `require_relative'
  /Users/pc5/Downloads/DEMO/openalpr-ios/lib/alpr/package.rb:1:in `<top (required)>'
  /Users/pc5/Downloads/DEMO/openalpr-ios/bin/build_frameworks.rb:30:in `require_relative'
  /Users/pc5/Downloads//DEMO/openalpr-ios/bin/build_frameworks.rb:30:in `<top (required)>'

Please suggest solution

Thanks in advance
Mrugraj

bundle exec ./bin/build_frameworks.rb failed to load command

bundle exec ./bin/build_frameworks.rb
options: {}
Package opencv2 is already installed. Skipping build.
Building leptonica for armv7 from /Users/luoyang/openalpr-ios/work/leptonica-1.71
configure: WARNING: if you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used
configure: WARNING: using cross tools not prefixed with host triplet
bundler: failed to load command: ./bin/build_frameworks.rb (./bin/build_frameworks.rb)
RuntimeError: Child returned: pid 46968 exit 2
/Users/luoyang/openalpr-ios/lib/alpr/utils.rb:44:in execute' /Users/luoyang/openalpr-ios/lib/alpr/utils.rb:74:in log_execute'
/Users/luoyang/openalpr-ios/lib/alpr/package/automake.rb:147:in do_autoconf_build' /Users/luoyang/openalpr-ios/lib/alpr/package/automake.rb:58:in build_arch'
/Users/luoyang/openalpr-ios/lib/alpr/package/base.rb:53:in block in install' /Users/luoyang/openalpr-ios/lib/alpr/package/base.rb:52:in each'
/Users/luoyang/openalpr-ios/lib/alpr/package/base.rb:52:in install' /Users/luoyang/openalpr-ios/bin/build_frameworks.rb:69:in <top (required)>'

Leptonica not found when executing the build script

Hi, thanks for updating the repository! I've tried to run the build script, however I have the following issue:

 ~/Testing/PersonalTests/openalpr-ios   master  ./bin/build_frameworks.rb 
options: {}
Package opencv2 is already installed. Skipping build.
Package leptonica is already installed. Skipping build.
Building tesseract for armv7 from /Users/jeaz/Testing/PersonalTests/openalpr-ios/work/tesseract-3.03
make: *** No rule to make target `clean'.  Stop.
make: *** No rule to make target `distclean'.  Stop.
configure: WARNING: using cross tools not prefixed with host triplet
configure: error: leptonica not found
/Users/jeaz/Testing/PersonalTests/openalpr-ios/lib/alpr/utils.rb:44:in `execute': Child returned: pid 11910 exit 1 (RuntimeError)
    from /Users/jeaz/Testing/PersonalTests/openalpr-ios/lib/alpr/utils.rb:74:in `log_execute'
    from /Users/jeaz/Testing/PersonalTests/openalpr-ios/lib/alpr/package/automake.rb:147:in `do_autoconf_build'
    from /Users/jeaz/Testing/PersonalTests/openalpr-ios/lib/alpr/package/automake.rb:58:in `build_arch'
    from /Users/jeaz/Testing/PersonalTests/openalpr-ios/lib/alpr/package/base.rb:53:in `block in install'
    from /Users/jeaz/Testing/PersonalTests/openalpr-ios/lib/alpr/package/base.rb:52:in `each'
    from /Users/jeaz/Testing/PersonalTests/openalpr-ios/lib/alpr/package/base.rb:52:in `install'
    from ./bin/build_frameworks.rb:54:in `<main>'

This is the last line from the build log:


All done.
To build the software now, do something like:

$ ./configure [--enable-debug] [...other options]
=======================================================================
Executing: SDKROOT='/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk' CXX='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++' CC='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc' LD='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld' AS='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/as' AR='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar' NM='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm' RANLIB='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib' LDFLAGS='-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk/usr/lib/ -L/Users/jeaz/Testing/PersonalTests/openalpr-ios/work/leptonica-thin-lib/iPhoneOS-armv7' CFLAGS='-arch armv7 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk -miphoneos-version-min=9.0 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk/usr/include/ -I/Users/jeaz/Testing/PersonalTests/openalpr-ios/output/leptonica.framework/Headers' CPPFLAGS='-arch armv7 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk -miphoneos-version-min=9.0 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk/usr/include/ -I/Users/jeaz/Testing/PersonalTests/openalpr-ios/output/leptonica.framework/Headers' CXXFLAGS='-arch armv7 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk -miphoneos-version-min=9.0 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk/usr/include/ -I/Users/jeaz/Testing/PersonalTests/openalpr-ios/output/leptonica.framework/Headers' PATH='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Users/jeaz/.rvm/gems/ruby-2.2.1/bin:/Users/jeaz/.rvm/gems/ruby-2.2.1@global/bin:/Users/jeaz/.rvm/rubies/ruby-2.2.1/bin:/Users/jeaz/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin' BUILD_HOST_NAME='arm-apple-darwin7' ./configure --host=arm-apple-darwin7 --enable-shared=no && make -j12 2>&1
=======================================================================

Now, I've checked this folder: /Users/jeaz/Testing/PersonalTests/openalpr-ios/output/leptonica.framework/Headers and inside there is a folder called leptonica with the following files:

ls /Users/jeaz/Testing/PersonalTests/openalpr-ios/output/leptonica.framework/Headers/leptonica 
allheaders.h  bmf.h         freetype.h    list.h        recog.h
alltypes.h    bmp.h         gplot.h       morph.h       regutils.h
array.h       ccbord.h      heap.h        pix.h         stack.h
arrayaccess.h dewarp.h      imageio.h     ptra.h        sudoku.h
bbuffer.h     endianness.h  jbclass.h     queue.h       watershed.h
bilateral.h   environ.h     leptwin.h     readbarcode.h

Any idea what it could be please?

Got the problem to run bundle exec ./bin/build_frameworks.rb

Error message:

bundler: failed to load command: ./bin/build_frameworks.rb (./bin/build_frameworks.rb)
RuntimeError: Dependency 'cmake' is missing. Please install it and try again. See the README.md for details.
/Users/zhouhao/Downloads/openalpr-ios-master/bin/build_frameworks.rb:20:in block in check_deps' /Users/zhouhao/Downloads/openalpr-ios-master/bin/build_frameworks.rb:17:in each'
/Users/zhouhao/Downloads/openalpr-ios-master/bin/build_frameworks.rb:17:in check_deps' /Users/zhouhao/Downloads/openalpr-ios-master/bin/build_frameworks.rb:25:in <top (required)>'

I download Cmake.dmg and install. But it's installed in Application folder and there is no command line installed. What should I do ? Thanks.

build_frameworks fails

Marks-iMac:openalpr-ios markjwill$ bundle exec ./bin/build_frameworks.rb
options: {}
Downloading opencv2 library.
/Users/markjwill/Xcode Projects/openALPR/openalpr-ios/lib/alpr/utils.rb:44:in execute': Child returned: pid 5838 exit 6 (RuntimeError) from /Users/markjwill/Xcode Projects/openALPR/openalpr-ios/lib/alpr/utils.rb:74:in log_execute'
from /Users/markjwill/Xcode Projects/openALPR/openalpr-ios/lib/alpr/package/opencv.rb:89:in download' from /Users/markjwill/Xcode Projects/openALPR/openalpr-ios/lib/alpr/package/opencv.rb:46:in install'
from ./bin/build_frameworks.rb:67:in `

'

I didn't have ruby, gems or bundler when I started, so it feels like I've come a long way in the install instructions in the readme, but I'm not sure where to go here. I'm not familiar with ruby, but it seems easy enough to read, however best I can tell it's failing to write the log file? Not sure where that would be or how to proceed...

contents of work/build.log

Logfile created on 2016-02-16 18:41:10 -0600 by logger.rb/1.2.8# Logfile created on 2016-02-16 18:41:10 -0600 by logger.rb/1.2.8

Are there other log files somewhere I'm not seeing?

Marks-iMac:openalpr-ios markjwill$ bundle show
Gems included by the bundle:

  • bundler (1.11.2)
  • logger (1.2.8)
  • osx-plist (1.0.3)

How to use static library

I have created openalpr-xcode.a static library following given instruct. I have also imported library into my project but when I try to include alp.h in my project I receive warning saying there is no such file.

Building leptonica error

Hi I'm getting errors when trying to run bundle exec ./bin/build_frameworks.rb
Any ideas?

Ducs-Mac-mini:openalpr-ios-master ducnm33$ bundle exec ./bin/build_frameworks.rb
options: {}
Downloading opencv2 library.
adding opencv2 headers symlink hack: /Users/ducnm33/Downloads/TestOpenAlprIos/openalpr-ios-master/output/opencv2.framework/Headers/opencv2 -> /Users/ducnm33/Downloads/TestOpenAlprIos/openalpr-ios-master/output/opencv2.framework/Headers
Downloading leptonica library.
Building leptonica for armv7 from /Users/ducnm33/Downloads/TestOpenAlprIos/openalpr-ios-master/work/leptonica-1.71
make: *** No rule to make target `clean'.  Stop.
make: *** No rule to make target `distclean'.  Stop.
configure: WARNING: if you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used
configure: error: in `/Users/ducnm33/Downloads/TestOpenAlprIos/openalpr-ios-master/work/leptonica-1.71':
configure: error: C compiler cannot create executables
See `config.log' for more details
/Users/ducnm33/Downloads/TestOpenAlprIos/openalpr-ios-master/lib/alpr/utils.rb:44:in `execute': Child returned: pid 44897 exit 77 (RuntimeError)
    from /Users/ducnm33/Downloads/TestOpenAlprIos/openalpr-ios-master/lib/alpr/utils.rb:74:in `log_execute'
    from /Users/ducnm33/Downloads/TestOpenAlprIos/openalpr-ios-master/lib/alpr/package/automake.rb:147:in `do_autoconf_build'
    from /Users/ducnm33/Downloads/TestOpenAlprIos/openalpr-ios-master/lib/alpr/package/automake.rb:58:in `build_arch'
    from /Users/ducnm33/Downloads/TestOpenAlprIos/openalpr-ios-master/lib/alpr/package/base.rb:53:in `block in install'
    from /Users/ducnm33/Downloads/TestOpenAlprIos/openalpr-ios-master/lib/alpr/package/base.rb:52:in `each'
    from /Users/ducnm33/Downloads/TestOpenAlprIos/openalpr-ios-master/lib/alpr/package/base.rb:52:in `install'
    from ./bin/build_frameworks.rb:69:in `<main>'

bundler: failed to load command: ./bin/build_frameworks.rb (./bin/build_frameworks.rb)

A error that seems common but I not seen how to fix it

I run bundle exec ./bin/build_frameworks.rb

options: {}
Package opencv2 is already installed. Skipping build.
Package leptonica is already installed. Skipping build.
Building tesseract for armv7 from /Users/burfies1/openalpr/openalpr-ios/work/tesseract-3.03
make: *** No rule to make target clean'. Stop. make: *** No rule to make target distclean'. Stop.
bundler: failed to load command: ./bin/build_frameworks.rb (./bin/build_frameworks.rb)
RuntimeError: Child returned: pid 73905 exit 1
/Users/burfies1/openalpr/openalpr-ios/lib/alpr/utils.rb:44:in execute' /Users/burfies1/openalpr/openalpr-ios/lib/alpr/utils.rb:74:in log_execute'
/Users/burfies1/openalpr/openalpr-ios/lib/alpr/package/automake.rb:141:in do_autoconf_build' /Users/burfies1/openalpr/openalpr-ios/lib/alpr/package/automake.rb:58:in build_arch'
/Users/burfies1/openalpr/openalpr-ios/lib/alpr/package/base.rb:53:in block in install' /Users/burfies1/openalpr/openalpr-ios/lib/alpr/package/base.rb:52:in each'
/Users/burfies1/openalpr/openalpr-ios/lib/alpr/package/base.rb:52:in install' /Users/burfies1/openalpr/openalpr-ios/bin/build_frameworks.rb:76:in <top (required)>'

I am using latest xcode (8), have xcode command line tools install, cmake, autoconf etc

c++ linker errors?

I have been trying to get a proof of concept working for a couple days.

I have been able to compile the project just fine (after I fix the hard coded build paths). but when I take the libopenalpr-xcode.a (and other libraries) into my project I start to get linker errors on the c++ standard library.

I have been able to get a cv::Mat object created, but when I instantiate an Alpr instance I get the following linker errors.

Undefined symbols for architecture arm64:
  "_jpeg_free_small", referenced from:
      _free_pool in opencv2(jmemmgr.o)
      _self_destruct in opencv2(jmemmgr.o)
  "_jpeg_mem_available", referenced from:
      _realize_virt_arrays in opencv2(jmemmgr.o)
  "_jpeg_free_large", referenced from:
      _free_pool in opencv2(jmemmgr.o)
  "_jpeg_open_backing_store", referenced from:
      _realize_virt_arrays in opencv2(jmemmgr.o)
  "_jpeg_get_large", referenced from:
      _alloc_large in opencv2(jmemmgr.o)
      _alloc_barray in opencv2(jmemmgr.o)
  "_jpeg_mem_term", referenced from:
      _jinit_memory_mgr in opencv2(jmemmgr.o)
      _self_destruct in opencv2(jmemmgr.o)
  "_jpeg_mem_init", referenced from:
      _jinit_memory_mgr in opencv2(jmemmgr.o)
  "_jpeg_get_small", referenced from:
      _jinit_memory_mgr in opencv2(jmemmgr.o)
      _alloc_small in opencv2(jmemmgr.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have verified the headers paths and library paths are correct by setting them incorrectly and getting errors importing alpr.h. Any clues what I am doing wrong?

Missing files

afther installing the pods. Some files where missing the import for the version.h file.
also some files are missing from the project such as :

  • featurematcher.cpp (bad project reference)
  • featurematcher.h (bad project reference)
  • postprocess.h and postprocess.h (bad project reference)
  • stateidentifier.h and stateidentifier.cpp (Missing)
  • trex.h and trex.c (missing)
  • runtime_data (missing)

iOS 8 Support

I have issues running openALPR on iOS 8. The image-recognition process starts but never finishes. The whole framework is build for iOS 9, including the Tesseract-Framework. But the iOS-Version of Tesseract here is build for iOS 7.

As far as I dive in, I can't understand the problems with the iOS Versions, because the Frameworks are written in C and don't use plattform-specific features - so I have no entry point to find the bug. Has someone a hint for me where the problem in the image-recognition process could be?

error: expected a type

Hi,

I get the following error when trying to build my mixed-codebase Swift/Objective C iOS app:

/Users/silver/projects/iOS/Lice/Lice/Lice-Bridging-Header.h:6:9: note: in file included from /Users/silver/projects/iOS/Lice/Lice/Lice-Bridging-Header.h:6:
#import "OpenALPR.h"
        ^
/Users/silver/projects/iOS/Lice/Lice/OpenALPR.h:22:21: error: expected a type
- (void) scanImage:(cv::Mat&)colorImage
                    ^
<unknown>:0: error: failed to import bridging header '/Users/silver/projects/iOS/Lice/Lice/Lice-Bridging-Header.h'

Any tips?

Is it possible to have a pre-built framework?

I came across a few problems when trying to build the framework since last night.

  1. the script name changed and some of the paths are hard coded
  2. couple of warnings when integrating pods
  3. lib search paths changed
  4. runtime_data is missing (I imported the runtime_data folder, is it right?)
    I didn't know whether I'm doing it right but finally I got the the .framework generated. I'm wondering whether I could get a pre-build framework, then I can get started quickly.
    Thank you for this detailed integration document.

Recognition not working with iPhone Camera output

Hello,

I've managed to get the library working within my app when passing a static image as per the example, but when using an image from the camera recognition is unsuccessful every time - is there something differnent with the image thats returned from a AVCaptureSession() Here's the code I'm using to get the image:

NSData* imageData = [AVCaptureStillImageOutput jpegStillImageNSDataRepresentation:sampleBuffer];
UIImage* image = [UIImage imageWithData:imageData];
cv::Mat cvImage = [self cvMatFromUIImage:image];
[self.plateScanner scanImage:cvImage onSuccess:^(NSArray * results) {

// Never suceeds

Can not run app in device

Hi @twelve17 ,

Would you please give me some help?
I'm getting errors when trying to run app in device.
(Run app in simulator is ok)

Output log:

Missing config value for runtime_dir
Missing config value for detector
Missing config value for detection_iteration_increase
Missing config value for detection_strictness
Missing config value for max_plate_width_percent
Missing config value for max_plate_height_percent
Missing config value for max_detection_input_width
Missing config value for max_detection_input_height
Missing config value for contrast_detection_threshold
Missing config value for must_match_pattern
Missing config value for skip_detection
Missing config value for detection_mask_image
Missing config value for analysis_count
Missing config value for prewarp
Missing config value for max_plate_angle_degrees
Missing config value for ocr_img_size_percent
Missing config value for state_id_img_size_percent
Missing config value for ocr_min_font_point
Missing config value for postprocess_min_confidence
Missing config value for postprocess_confidence_skip_level
Missing config value for debug_general
Missing config value for debug_timing
Missing config value for debug_prewarp
Missing config value for debug_detector
Missing config value for debug_state_id
Missing config value for debug_plate_lines
Missing config value for debug_plate_corners
Missing config value for debug_char_segment
Missing config value for debug_char_analysis
Missing config value for debug_color_filter
Missing config value for debug_ocr
Missing config value for debug_postprocess
Missing config value for debug_show_images
Missing config value for debug_pause_on_frame

Failure in building leptonica (and others) - MacOS Sierra issues

The build_framework.rb managed to build the opencv2.framework, but fails when it comes to leoptonica....

Building leptonica for i386 from /Users/ian/Dev/openalpr-ios/openalpr-ios/work/leptonica-1.71
configure: error: in /Users/ian/Dev/openalpr-ios/openalpr-ios/work/leptonica-1.71': configure: error: cannot run C compiled programs. If you meant to cross compile, use --host'.
See config.log' for more details bundler: failed to load command: bin/build_frameworks.rb (bin/build_frameworks.rb) RuntimeError: Child returned: pid 82080 exit 1 /Users/ian/Dev/openalpr-ios/openalpr-ios/lib/alpr/utils.rb:44:in execute'
/Users/ian/Dev/openalpr-ios/openalpr-ios/lib/alpr/utils.rb:74:in log_execute' /Users/ian/Dev/openalpr-ios/openalpr-ios/lib/alpr/package/automake.rb:147:in do_autoconf_build'
/Users/ian/Dev/openalpr-ios/openalpr-ios/lib/alpr/package/automake.rb:58:in build_arch' /Users/ian/Dev/openalpr-ios/openalpr-ios/lib/alpr/package/base.rb:53:in block in install'
/Users/ian/Dev/openalpr-ios/openalpr-ios/lib/alpr/package/base.rb:52:in each' /Users/ian/Dev/openalpr-ios/openalpr-ios/lib/alpr/package/base.rb:52:in install'
bin/build_frameworks.rb:69:in `<top (required)>'

Looking in the leptonica config.log, I see this:

dyld: mach-o, but built for simulator (not macOS)
./configure: line 2878: 82300 Abort trap: 6 ./conftest$ac_cv_exeext
configure:2880: $? = 134
configure:2887: error: in `/Users/ian/Dev/openalpr-ios/openalpr-ios/work/leptonica-1.71':
configure:2889: error: cannot run C compiled programs.

Any clues appreciated - I'm fairly new to ruby and brew and downloading frameworks.

Thanks, Ian

Problem building tesseract-3.03 framework

Hello all

I have this error:

---
Building tesseract for armv7 from /Users/roberto/Desktop/Targhe/openalpr-ios-master/work/tesseract-3.03
make: *** No rule to make target clean'. Stop. make: *** No rule to make targetdistclean'. Stop.
bundler: failed to load command: ./bin/build_frameworks.rb (./bin/build_frameworks.rb)
RuntimeError: Child returned: pid 43641 exit 1
/Users/roberto/Desktop/Targhe/openalpr-ios-master/lib/alpr/utils.rb:44:in execute' /Users/roberto/Desktop/Targhe/openalpr-ios-master/lib/alpr/utils.rb:74:inlog_execute'
/Users/roberto/Desktop/Targhe/openalpr-ios-master/lib/alpr/package/automake.rb:141:in do_autoconf_build' /Users/roberto/Desktop/Targhe/openalpr-ios-master/lib/alpr/package/automake.rb:58:inbuild_arch'
/Users/roberto/Desktop/Targhe/openalpr-ios-master/lib/alpr/package/base.rb:53:in block in install' /Users/roberto/Desktop/Targhe/openalpr-ios-master/lib/alpr/package/base.rb:52:ineach'
/Users/roberto/Desktop/Targhe/openalpr-ios-master/lib/alpr/package/base.rb:52:in install' /Users/roberto/Desktop/Targhe/openalpr-ios-master/bin/build_frameworks.rb:76:in<top (required)>'
---

while doing "bundle exec ./bin/build_frameworks.rb"

framework is downloaded but looks like it can't find any suitable makefile.

Any help please ?

Tnx
Roberto

Syntax error in alpr.rb

On running bundle exec ./bin/build_frameworks.rb on El Capitan as per the readme, the script fails with a syntax error as follows:

$ bundle exec ./bin/build_frameworks.rb
/Users/username/dev/iOS/openalpr-ios/lib/alpr/package.rb:1:in `require_relative':      /Users/username/dev/iOS/openalpr-ios/lib/alpr/package/alpr.rb:31: syntax error, unexpected ',' (SyntaxError)
def initialize(log_file:, logger:,
                         ^
/Users/username/dev/iOS/openalpr-ios/lib/alpr/package/alpr.rb:173: syntax error, unexpected keyword_end, expecting end-of-input
from /Users/username/dev/iOS/openalpr-ios/lib/alpr/package.rb:1:in `<top (required)>'
from ./bin/build_frameworks.rb:7:in `require_relative'
from ./bin/build_frameworks.rb:7:in `<main>'

Build tesseract failed on ccutil

Hello,

Following build instructions trying to run build_frameworks.rb for commit 7e8040b, but it finishes with error.

bundle exec ./bin/build_frameworks.rb
options: {}
Downloading opencv2 library.
adding opencv2 headers symlink hack: /Users/andrey/Develop/black-sheep/taxi/license-ocr/openalpr-ios/output/opencv2.framework/Headers/opencv2 -> /Users/andrey/Develop/black-sheep/taxi/license-ocr/openalpr-ios/output/opencv2.framework/Headers
Downloading leptonica library.
Building leptonica for armv7 from /Users/andrey/Develop/black-sheep/taxi/license-ocr/openalpr-ios/work/leptonica-1.71
make: *** No rule to make target `clean'.  Stop.
make: *** No rule to make target `distclean'.  Stop.
configure: WARNING: if you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used
configure: WARNING: using cross tools not prefixed with host triplet
Building leptonica for armv7s from /Users/andrey/Develop/black-sheep/taxi/license-ocr/openalpr-ios/work/leptonica-1.71
configure: WARNING: if you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used
configure: WARNING: using cross tools not prefixed with host triplet
Building leptonica for arm64 from /Users/andrey/Develop/black-sheep/taxi/license-ocr/openalpr-ios/work/leptonica-1.71
configure: WARNING: if you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used
configure: WARNING: using cross tools not prefixed with host triplet
Building leptonica for i386 from /Users/andrey/Develop/black-sheep/taxi/license-ocr/openalpr-ios/work/leptonica-1.71
Building leptonica for x86_64 from /Users/andrey/Develop/black-sheep/taxi/license-ocr/openalpr-ios/work/leptonica-1.71
Downloading tesseract library.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   372    0   372    0     0     36      0 --:--:--  0:00:10 --:--:--    93
100 12.2M    0 12.2M    0     0   760k      0 --:--:--  0:00:16 --:--:-- 2319k
Building tesseract for armv7 from /Users/andrey/Develop/black-sheep/taxi/license-ocr/openalpr-ios/work/tesseract-3.03
make: *** No rule to make target `clean'.  Stop.
make: *** No rule to make target `distclean'.  Stop.
/Users/andrey/Develop/black-sheep/taxi/license-ocr/openalpr-ios/work/tesseract-3.03/config/missing: Unknown `--is-lightweight' option
Try `/Users/andrey/Develop/black-sheep/taxi/license-ocr/openalpr-ios/work/tesseract-3.03/config/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
configure: WARNING: using cross tools not prefixed with host triplet
configure: WARNING: Training tools WILL NOT be built because of missing pango library.
configure: WARNING: Try to install libpango1.0-dev package.
configure: WARNING: Training tools WILL NOT be built because of missing cairo library.
configure: WARNING: Try to install libcairo-dev?? package.
bundler: failed to load command: ./bin/build_frameworks.rb (./bin/build_frameworks.rb)
RuntimeError: Child returned: pid 89479 exit 2
  /Users/andrey/Develop/black-sheep/taxi/license-ocr/openalpr-ios/lib/alpr/utils.rb:44:in `execute'
  /Users/andrey/Develop/black-sheep/taxi/license-ocr/openalpr-ios/lib/alpr/utils.rb:74:in `log_execute'
  /Users/andrey/Develop/black-sheep/taxi/license-ocr/openalpr-ios/lib/alpr/package/automake.rb:147:in `do_autoconf_build'
  /Users/andrey/Develop/black-sheep/taxi/license-ocr/openalpr-ios/lib/alpr/package/automake.rb:58:in `build_arch'
  /Users/andrey/Develop/black-sheep/taxi/license-ocr/openalpr-ios/lib/alpr/package/base.rb:53:in `block in install'
  /Users/andrey/Develop/black-sheep/taxi/license-ocr/openalpr-ios/lib/alpr/package/base.rb:52:in `each'
  /Users/andrey/Develop/black-sheep/taxi/license-ocr/openalpr-ios/lib/alpr/package/base.rb:52:in `install'
  /Users/andrey/Develop/black-sheep/taxi/license-ocr/openalpr-ios/bin/build_frameworks.rb:76:in `<top (required)>'

Also build.log.txt please find attached.

Version info:

  • Mac OS X (El capitan, 10.11.6 (15G1212))
  • ruby 2.1.2p95
  • Bundler version 1.13.7
  • Xcode and command line tools: 8.2.1 (8C1002)
  • curl 7.43.0
  • tar 2.8.3
  • UnZip 5.52
  • git 2.9.3
  • cmake version 3.7.1 (homebrew)
  • autoconf 2.69 (homebrew)

Maybe I've missed something? Appreciate any help.

Image Orientation

Currently the library work well if the iPhone is held horizontally but fail to parse image if the device is held vertically. I'm trying to find a way to rotate the image without redrawing for performance reasons or flag openalpr with the image orientation. Any one with a solution?

Please update readme

I think the readme hasn't been updated in a while.

E.g. this instruction: # ./bin/sync_openalpr_source.sh ~/work/lp/openalpr

Is invalid as there are now 2 scripts in the bin directory which handle the syncing.

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.