python - 手写文字识别
问题描述
我正在寻找可以识别一些手写文本的任何 github 项目,以便我可以将其实现到某个项目中。
我通过了这个 repo,这里看起来很有希望SimpleHTR
我下载了包括 tensorflow 在内的所有要求
,并尝试使用
python main.py
但它失败了给我这个关于张量流的奇怪错误
Traceback (most recent call last):
File "C:\Users\Abdelhamied\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\Abdelhamied\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\Abdelhamied\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Program Files\Python37\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:\Program Files\Python37\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 9, in <module>
from Model import Model, DecoderType
File "C:\Users\Abdelhamied\Desktop\SimpleHTR-master\src\Model.py", line 6, in <module>
import tensorflow as tf
File "C:\Users\Abdelhamied\AppData\Roaming\Python\Python37\site-packages\tensorflow\__init__.py", line 24, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:\Users\Abdelhamied\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:\Users\Abdelhamied\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\Abdelhamied\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\Abdelhamied\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\Abdelhamied\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Program Files\Python37\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:\Program Files\Python37\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
我已经尝试重新安装 tensorflow,升级 pip,覆盖 system32 文件夹中的 msvcp140.dll,但没有任何效果
所以任何人都可以帮助我!
解决方案
推荐阅读
- react-native - 带有变量占位符的文本输入并在按钮单击时清除
- ios - 无法完全安装 pod 'FBSDKLoginKit' 它就停在那里
- python-3.x - 熊猫如何将二维数据帧转换为一维数据帧
- c# - 隐藏或保护 .txt 保存数据 c#
- python - Python 多处理,TypeError
- webpack - 与 webpack 的浏览器同步不起作用
- javascript - Vue + Laravel:如何正确下载 PDF 文件?
- java - ChannelInboundHandlerAdapter 即时删除
- r - 从润滑日期时间对象中提取时间(HMS)?
- sql - 过去 30 天的移动平均线