当前位置:网站首页>Keras OCR instance test
Keras OCR instance test
2022-07-27 06:48:00 【sin_ four hundred and four】
keras-ocr
Document address
Reference article
An introductory in-depth study OCR: A collection of data sets and algorithms
Error set
pip install ‘numpy1.19’ --force-reinstall Reload library version
pip install 'h5py2.10.0’ --force-reinstall
code example
import matplotlib.pyplot as plt
import keras_ocr
# keras-ocr will automatically download pretrained
# weights for the detector and recognizer.
pipeline = keras_ocr.pipeline.Pipeline()
# Get a set of three example images
# Identify the default three pictures in a batch , Probably need to reserve 8g Memory , Only two are posted here
images = [
keras_ocr.tools.read(url) for url in [
# 'https://upload.wikimedia.org/wikipedia/commons/b/bd/Army_Reserves_Recruitment_Banner_MOD_45156284.jpg',
'http://5b0988e595225.cdn.sohucs.com/images/20170905/44ecb27c4e5349e28abcbff8f3a6d4d2.jpeg',
'https://upload.wikimedia.org/wikipedia/commons/b/b4/EUBanana-500x112.jpg'
]
]
# Each list of predictions in prediction_groups is a list of
# (word, box) tuples.
prediction_groups = pipeline.recognize(images)
# Plot the predictions
fig, axs = plt.subplots(nrows=len(images), figsize=(20, 20))
for ax, image, predictions in zip(axs, images, prediction_groups):
keras_ocr.tools.drawAnnotations(image=image, predictions=predictions, ax=ax)
# keras_ocr.tools.drawAnnotations(image=images[-1], predictions=prediction_groups[-1], ax=axs)
plt.show()
design sketch 
边栏推荐
- Raid explanation and configuration
- Basic knowledge of English: juxtaposition structure
- Redis快速学习
- Go语言学习
- 账号管理与权限
- Converting ArcGIS style stylesheet files to GeoServer SLD files
- 2022上半年英特尔有哪些“硬核创新”?看这张图就知道了!
- 一键修复漏洞可行吗?向日葵来告诉你一键修复漏洞可行吗?向日葵来告诉你一键修复漏洞可行吗?向日葵来告诉你一键修复漏洞可行吗?向日葵来告诉你一键修复漏洞可行吗?向日葵来告诉你一键修复漏洞可行吗?向日葵来告
- ESXI虚拟机启动,模块“MonitorLoop”打开电源失败
- Soul continues to make efforts to list its social channels in Hong Kong. Why is "soul style social" popular?
猜你喜欢

To improve the baby's allergy, take yiminshu. Azg and aibeca love la Beijia work together to protect the growth of Chinese babies

For redis under windows, it can only read but not write

Project training experience 1

What if the website server is attacked? Sunflower tips that preventing loopholes is the key

keras-ocr实例测试

网站服务器被攻击怎么办?向日葵提示防范漏洞是关键

FTX Foundation funded 15million to help covid-19 clinical trials, which will affect global public health

FTP服务简介与配置

shell--条件语句(if语句、case语句)

账号管理与权限
随机推荐
logging日志的封装
Shell -- circular statements (for, while, until)
阿里云短信验证第三方接口(快速使用)
Is it feasible to fix the vulnerability with one click? Sunflower to tell you that one click fix vulnerability is feasible? Sunflower to tell you that one click fix vulnerability is feasible? Sunflowe
FTX US launched FTX stocks, striding forward to the mainstream financial industry
Use of getattr, hasattr, delattr and setattr in reflectors
RAID详解与配置
Explanation of server related indicators
Multimodal database | star ring technology multimode database argodb "one database for multiple purposes", building a high-performance Lake warehouse integrated platform
Ftx.us launched stock and ETF trading services to make trading more transparent
rsync远程同步
shell--自定义变量与赋值
网站服务器被攻击怎么办?向日葵提示防范漏洞是关键
2022上半年英特尔有哪些“硬核创新”?看这张图就知道了!
Gin Vue admin uses the database in the docker container
GoLand writes Go program
关于在Gazebo中给无人机添加相机(摄像头)之后,无人机无法起飞
Basic knowledge of English: juxtaposition structure
How to write yaml file in a standard way
shell--循环语句(for、while、until)