Skip to content

Commit

Permalink
iOS版本更新为端到端识别
Browse files Browse the repository at this point in the history
  • Loading branch information
lisiyuan committed Nov 13, 2018
1 parent c224980 commit 36d168e
Show file tree
Hide file tree
Showing 70 changed files with 16,539 additions and 0 deletions.
Empty file modified Prj-iOS/Resource/README.md
100644 → 100755
Empty file.
3 changes: 3 additions & 0 deletions Prj-iOS/lpr/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.DS_Store
Pods/
.clang-format
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions Prj-iOS/lpr/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
platform :ios, '10.1'

target "lpr" do

pod 'OpenCV', '~> 3.4.2'
pod 'Masonry'

end
20 changes: 20 additions & 0 deletions Prj-iOS/lpr/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
PODS:
- Masonry (1.1.0)
- OpenCV (3.4.2)

DEPENDENCIES:
- Masonry
- OpenCV (~> 3.4.2)

SPEC REPOS:
https://github.com/cocoapods/specs.git:
- Masonry
- OpenCV

SPEC CHECKSUMS:
Masonry: 678fab65091a9290e40e2832a55e7ab731aad201
OpenCV: 452909747854c92e0f59670961ed5131f5286cb5

PODFILE CHECKSUM: 94db02cda76a5ac6371a03e6e2ca4e9035fc0da6

COCOAPODS: 1.5.3
4 changes: 4 additions & 0 deletions Prj-iOS/lpr/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

Depency Library:
- Masonry, 1.1.0
- OpenCV, 3.4.2
Binary file not shown.
123 changes: 123 additions & 0 deletions Prj-iOS/lpr/Resource/CharacterRecognization.prototxt
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
input: "data"
input_dim: 1
input_dim: 1
input_dim: 30
input_dim: 14
layer {
name: "conv2d_1"
type: "Convolution"
bottom: "data"
top: "conv2d_1"
convolution_param {
num_output: 32
bias_term: true
pad: 0
kernel_size: 3
stride: 1
}
}
layer {
name: "activation_1"
type: "ReLU"
bottom: "conv2d_1"
top: "activation_1"
}
layer {
name: "max_pooling2d_1"
type: "Pooling"
bottom: "activation_1"
top: "max_pooling2d_1"
pooling_param {
pool: MAX
kernel_size: 2
stride: 2
pad: 0
}
}
layer {
name: "conv2d_2"
type: "Convolution"
bottom: "max_pooling2d_1"
top: "conv2d_2"
convolution_param {
num_output: 64
bias_term: true
pad: 0
kernel_size: 3
stride: 1
}
}
layer {
name: "activation_2"
type: "ReLU"
bottom: "conv2d_2"
top: "activation_2"
}
layer {
name: "max_pooling2d_2"
type: "Pooling"
bottom: "activation_2"
top: "max_pooling2d_2"
pooling_param {
pool: MAX
kernel_size: 2
stride: 2
pad: 0
}
}
layer {
name: "conv2d_3"
type: "Convolution"
bottom: "max_pooling2d_2"
top: "conv2d_3"
convolution_param {
num_output: 128
bias_term: true
pad: 0
kernel_size: 2
stride: 1
}
}
layer {
name: "activation_3"
type: "ReLU"
bottom: "conv2d_3"
top: "activation_3"
}
layer {
name: "flatten_1"
type: "Flatten"
bottom: "activation_3"
top: "flatten_1"
}
layer {
name: "dense_1"
type: "InnerProduct"
bottom: "flatten_1"
top: "dense_1"
inner_product_param {
num_output: 256
}
}
layer {
name: "relu2"
type: "ReLU"
bottom: "dense_1"
top: "relu2"
}
layer {
name: "dense2"
type: "InnerProduct"
bottom: "relu2"
top: "dense2"
inner_product_param {
num_output: 65
}
}

layer {
name: "prob"
type: "Softmax"
bottom: "dense2"
top: "prob"
}
Binary file not shown.
95 changes: 95 additions & 0 deletions Prj-iOS/lpr/Resource/HorizonalFinemapping.prototxt
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
input: "data"
input_dim: 1
input_dim: 3
input_dim: 16
input_dim: 66
layer {
name: "conv1"
type: "Convolution"
bottom: "data"
top: "conv1"
convolution_param {
num_output: 10
bias_term: true
pad: 0
kernel_size: 3
stride: 1
}
}
layer {
name: "relu1"
type: "ReLU"
bottom: "conv1"
top: "conv1"
}
layer {
name: "max_pooling2d_3"
type: "Pooling"
bottom: "conv1"
top: "max_pooling2d_3"
pooling_param {
pool: MAX
kernel_size: 2
stride: 2
pad: 0
}
}
layer {
name: "conv2"
type: "Convolution"
bottom: "max_pooling2d_3"
top: "conv2"
convolution_param {
num_output: 16
bias_term: true
pad: 0
kernel_size: 3
stride: 1
}
}
layer {
name: "relu2"
type: "ReLU"
bottom: "conv2"
top: "conv2"
}
layer {
name: "conv3"
type: "Convolution"
bottom: "conv2"
top: "conv3"
convolution_param {
num_output: 32
bias_term: true
pad: 0
kernel_size: 3
stride: 1
}
}
layer {
name: "relu3"
type: "ReLU"
bottom: "conv3"
top: "conv3"
}
layer {
name: "flatten_2"
type: "Flatten"
bottom: "conv3"
top: "flatten_2"
}
layer {
name: "dense"
type: "InnerProduct"
bottom: "flatten_2"
top: "dense"
inner_product_param {
num_output: 2
}
}
layer {
name: "relu4"
type: "ReLU"
bottom: "dense"
top: "dense"
}
Binary file not shown.
Loading

0 comments on commit 36d168e

Please sign in to comment.