Browse Source

add tensorflow backend support

pull/1/MERGE
Marcus Universe 7 years ago
parent
commit
2fa544caee
6 changed files with 2 additions and 4 deletions
  1. BIN
      cache/demo1.png
  2. BIN
      cache/demo2.png
  3. BIN
      cache/demo3.png
  4. +1
    -1
      hyperlpr/finemapping_vertical.py
  5. +0
    -2
      hyperlpr/niblack_thresholding.py
  6. +1
    -1
      hyperlpr/pipline.py

BIN
cache/demo1.png View File

Before After
Width: 2345  |  Height: 1279  |  Size: 4.9 MB

BIN
cache/demo2.png View File

Before After
Width: 1065  |  Height: 757  |  Size: 1.3 MB

BIN
cache/demo3.png View File

Before After
Width: 712  |  Height: 515  |  Size: 491 kB

+ 1
- 1
hyperlpr/finemapping_vertical.py View File

@@ -23,7 +23,7 @@ def getModel():
return model

model = getModel()
# model.load_weights("./model/model12.h5")
model.load_weights("./model/model12.h5")


def finemappingVertical(image):


+ 0
- 2
hyperlpr/niblack_thresholding.py View File

@@ -1,8 +1,6 @@
import cv2
import numpy as np

from skimage.filters import (threshold_otsu, threshold_niblack,
threshold_sauvola)


def niBlackThreshold( src, blockSize, k, binarizationMethod= 0 ):


+ 1
- 1
hyperlpr/pipline.py View File

@@ -221,7 +221,7 @@ def SimpleRecognizePlate(image):
if len(val)==3:
blocks, res, confidence = val
if confidence/7>0.7:
# image = drawRectBox(image,rect,res)
image = drawRectBox(image,rect,res)
res_set.append(res)
for i,block in enumerate(blocks):



Loading…
Cancel
Save