資源簡介
Keras訓練CNN+GRU+CTC不定長中文識別模型工程代碼,含模型文件
代碼片段和文件信息
from?test.model?import?predict?as?ocr_predict
import?cv2
from?PIL?import?Image
if?__name__?==?‘__main__‘:
????img?=?cv2.imread(‘./img/03.jpg‘)
????image?=?Image.fromarray(img).convert(‘L‘)
????sim_pred?=?ocr_predict(image)
????print?sim_pred
評論
共有 條評論