add tensorflow backend support
This commit is contained in:
Vendored
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 4.6 MiB |
Vendored
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 MiB |
Vendored
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 480 KiB |
@@ -23,7 +23,7 @@ def getModel():
|
|||||||
return model
|
return model
|
||||||
|
|
||||||
model = getModel()
|
model = getModel()
|
||||||
# model.load_weights("./model/model12.h5")
|
model.load_weights("./model/model12.h5")
|
||||||
|
|
||||||
|
|
||||||
def finemappingVertical(image):
|
def finemappingVertical(image):
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
import cv2
|
import cv2
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
from skimage.filters import (threshold_otsu, threshold_niblack,
|
|
||||||
threshold_sauvola)
|
|
||||||
|
|
||||||
|
|
||||||
def niBlackThreshold( src, blockSize, k, binarizationMethod= 0 ):
|
def niBlackThreshold( src, blockSize, k, binarizationMethod= 0 ):
|
||||||
|
|||||||
+1
-1
@@ -221,7 +221,7 @@ def SimpleRecognizePlate(image):
|
|||||||
if len(val)==3:
|
if len(val)==3:
|
||||||
blocks, res, confidence = val
|
blocks, res, confidence = val
|
||||||
if confidence/7>0.7:
|
if confidence/7>0.7:
|
||||||
# image = drawRectBox(image,rect,res)
|
image = drawRectBox(image,rect,res)
|
||||||
res_set.append(res)
|
res_set.append(res)
|
||||||
for i,block in enumerate(blocks):
|
for i,block in enumerate(blocks):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user