add tensorflow backend support
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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
@@ -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):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user