- Download the source code
cd openalpr
- Copy dependecies to framework folder
Regarding with the compiling of the dependent libraris like opencv2.framework, leptonica.framework and tesseract.framework is another story.
//: A UIKit based Playground for presenting user interface | |
import UIKit | |
import PlaygroundSupport | |
struct User { | |
let firstName: String | |
let lastName: String | |
let email: String | |
let age: Int |
// Refer to: https://danielhall.io/a-swift-y-approach-to-dependency-injection | |
// Part two: https://www.danielhall.io/swift-y-dependency-injection-part-two | |
import Foundation | |
protocol NetworkingInjected {} | |
extension NetworkingInjected { | |
var networking: NetworkingProtocol { | |
return NetworkInjector.injectNetworking() |
cd openalpr
Regarding with the compiling of the dependent libraris like opencv2.framework, leptonica.framework and tesseract.framework is another story.
#!/bin/sh | |
GLOBAL_OUTDIR="`pwd`/dependencies" | |
LOCAL_OUTDIR="./outdir" | |
LEPTON_LIB="`pwd`/leptonica-1.76.0" | |
TESSERACT_LIB="`pwd`/tesseract-3.05.02" | |
# OPENCV_LIB = "`pwd`/opencv_3.4.1_5" | |
IOS_BASE_SDK="10.3" | |
IOS_DEPLOY_TGT="8.0" |