当前位置: 首页 > news >正文

网站开发不让搜索引擎晋州外贸网站建设

网站开发不让搜索引擎,晋州外贸网站建设,福州建设厅官方网站,城建亚泰建设集团网站在riscv编译安装飞桨PaddlePaddle参见#xff1a; 算能RISC-V通用云编译飞桨paddlepaddleopenKylin留档_在riscv下进行paddlelite源码编译-CSDN博客 安装好飞桨#xff0c;就可以用飞桨进行推理了。刚开始计划用ONNX推理#xff0c;但是在算能云没有装上#xff0c;所以最…在riscv编译安装飞桨PaddlePaddle参见 算能RISC-V通用云编译飞桨paddlepaddleopenKylin留档_在riscv下进行paddlelite源码编译-CSDN博客 安装好飞桨就可以用飞桨进行推理了。刚开始计划用ONNX推理但是在算能云没有装上所以最终是用的飞桨推理。但是还是用到了Paddle2ONNX里的代码。 下载Paddle2ONNX源代码 git clone https://github.com/PaddlePaddle/Paddle2ONNX ocr文字识别 下面是使用ONNX进行推理的示例我没有弄成希望有成功的朋友交流下经验。 安装需要的库 pip install shapely pyclipper 如果在riscv系统无法编译安装shapely那么可以先安装包 apt install libgeos-dev 下载相关模型文件 cd Paddle2ONNX/model_zoo/ocr# 下载det模型 wget https://bj.bcebos.com/paddle2onnx/model_zoo/ch_PP-OCRv2_det_infer.onnx# 下载rec模型 wget https://bj.bcebos.com/paddle2onnx/model_zoo/ch_PP-OCRv2_rec_infer.onnx# 下载cls模型 wget https://bj.bcebos.com/paddle2onnx/model_zoo/ch_ppocr_mobile_v2.0_cls_infer.onnx 进行识别 python3 infer.py \ --det_model_dir./ch_PP-OCRv2_det_infer.onnx \ --rec_model_dir./ch_PP-OCRv2_rec_infer.onnx \ --cls_model_dir./ch_ppocr_mobile_v2.0_cls_infer.onnx \ --image_path./images/lite_demo.png 使用飞桨推理进行文字识别 这个推理成功了。 下载和解压模型 wget -nc -P ./inference https://bj.bcebos.com/paddle2onnx/model_zoo/ch_PP-OCRv2_det_infer.tar cd ./inference tar xf ch_PP-OCRv2_det_infer.tar cd ..wget -nc -P ./inference https://bj.bcebos.com/paddle2onnx/model_zoo/ch_PP-OCRv2_rec_infer.tar cd ./inference tar xf ch_PP-OCRv2_rec_infer.tar cd ..wget -nc -P ./inference https://bj.bcebos.com/paddle2onnx/model_zoo/ch_ppocr_mobile_v2.0_cls_infer.tar cd ./inference tar xf ch_ppocr_mobile_v2.0_cls_infer.tar cd ..进行文字识别 python3 infer.py \ --cls_model_dir./inference/ch_ppocr_mobile_v2.0_cls_infer \ --rec_model_dir./inference/ch_PP-OCRv2_rec_infer \ --det_model_dir./inference/ch_PP-OCRv2_det_infer \ --image_path./images/lite_demo.png \ --use_paddle_predictTrue 推理识别结果 输出可紧致头发磷层从而达到0.99444813即时持久改善头发光泽的效果给干燥的头0.99019814发足够的滋养0.997668花费了0.457335秒 效果还不错 调试 ocr读取文件的时候报错 Python 3.11.0rc2 (main, Sep  4 2023, 07:22:49) [GCC 9.3.0] on linux Type help, copyright, credits or license for more information. import cv2 Traceback (most recent call last):   File stdin, line 1, in module   File /root/py311/lib/python3.11/site-packages/cv2/__init__.py, line 8, in module     from .cv2 import * ImportError: libtiff.so.6: cannot open shared object file: No such file or directory 安装libtiff pip install pylibtiff 结果还是报错 找到libtiff.so.5文件在/lib/riscv64-linux-gnu做了个链接。 ln -s libtiff.so.5 libtiff.so.6 报错ImportError: libgtk-x11-2.0.so.0 SyntaxError: invalid syntax (py311) root863c89a419ec:~/github/Paddle2ONNX/model_zoo/ocr# python -c import cv2 Traceback (most recent call last):   File string, line 1, in module   File /root/py311/lib/python3.11/site-packages/cv2/__init__.py, line 8, in module     from .cv2 import * ImportError: libtiff.so.6: cannot open shared object file: No such file or directory (py311) root863c89a419ec:~/github/Paddle2ONNX/model_zoo/ocr# python -c import cv2 Traceback (most recent call last):   File string, line 1, in module   File /root/py311/lib/python3.11/site-packages/cv2/__init__.py, line 8, in module     from .cv2 import * ImportError: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory 安装包apt-get install libgtk2.0-dev ok了 识别是numpy.int报错 File /root/github/Paddle2ONNX/model_zoo/ocr/utils/predict_det.py, line 210, in box_score_fast     xmin np.clip(np.floor(box[:, 0].min()).astype(np.int), 0, w - 1) File /usr/local/lib/python3.8/dist-packages/numpy/__init__.py, line 305, in __getattr__     raise AttributeError(__former_attrs__[attr]) AttributeError: module numpy has no attribute int. np.int was a deprecated alias for the builtin int. To avoid this error in existing code, use int by itself. Doing this will not modify any behavior and is safe. When replacing np.int, you may wish to use e.g. np.int64 or np.int32 to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: 进入/root/github/Paddle2ONNX/model_zoo/ocr/utils/predict_det.py源码把np.int都改成np.int32
http://www.hkea.cn/news/14335160/

相关文章:

  • 广安建设厅官方网站淡水做网站
  • 现在还有没有做任务的网站Md5(Wordpress)解密
  • 国税网站建设管理wordpress 互动模块
  • 网站建设市场背景戴尔公司网站建设特点
  • 做网站需要的执照设计素材的网站
  • python免费看电影的应用网站建设快照优化
  • 网站建站免费空间淘宝客如何做返积分制网站
  • 免费网站链接郑州网络营销推广
  • 佛山顺德网站建设公司漳州市网站建设
  • 建手机端网站做外贸的网站
  • icp备案网站建设方案书网页设计案例教程杨松答案
  • 深圳做网站做得比较好的公司常用网站有哪些
  • 网站建设与维护理解建设一个网站需要考虑什么
  • 做网站 杭州怎么做网站网页归档
  • 洛阳霞光做网站的公司国内网站开发 框架
  • 广西住房建设厅网站做网站卖流量
  • 做flash音乐网站的开题报告湖南郴州市旅游景点
  • 聊城做网站的公司效果专业APP客户端做网站
  • 做网站主要步骤南通网站定制企业
  • 免费正能量不良网站推荐进销存免费管理软件
  • 浙江平安建设信息系统网站如何建立自己的摄影网站
  • 网站建设要会哪些方面对接网站建设是什么意思
  • 国外很炫酷的网站怎么做网站推广和宣传
  • 做网站搭建需要什么人格尔木市建设局网站
  • 网站建站建设首选上海黔文信息科技有限公司2推荐成都网站建设
  • 哪个网站查食品建设好wordpress like 插件
  • 长沙需要做网站的企业自学做网站要多久
  • 在百度上怎么建网站重庆建设网站的公司哪家好
  • 祝明电子商务网站建设实验报告做网站多少钱西宁君博美评
  • 现在最好的企业网站管理系统搜索引擎优化的目标