6,666
社区成员
发帖
与我相关
我的任务
分享根据CSDN教程,下载测试 ai-engine-direct-helper 后,运行 easy_ocr.py 时发现问题
ai-engine-direct-helper 项目中的 C:\ai-hub\ai-engine-direct-helper\script\qai_appbuilder\qnncontext.py 引用部分 from qai_appbuilder import appbuilder 引用报错 在 'qai_appbuilder' 中找不到引用 'appbuilder'
你是想easy_ocr 进行demo,qnncontext文件只是他的源码,使用qai_appbuilder参考
from qai_appbuilder import (QNNContext, Runtime, LogLevel, ProfilingLevel, PerfProfile, QNNConfig, timer)
1.你的sdk请使用Qualcomm里面的2.38
2.https://github.com/quic/ai-engine-direct-helper/releases%E4%BB%8E%E9%93%BE%E6%8E%A5%E6%89%BE%E5%88%B0%E5%AF%B9%E5%BA%94%E7%9A%84%E7%89%88%E6%9C%AC
3.遵循文档指引
https://blog.csdn.net/csdnsqst0050/article/details/145588070?spm=1001.2014.3001.5502
https://blog.csdn.net/csdnsqst0050/article/details/145823748?spm=1001.2014.3001.5502
运行demo执行
pip install "qai-hub-models[easyocr]"
python python\easy_ocr\easy_ocr.py
会出现
Calling EasyOCR_Detector::Inference on NPU
Calling EasyOCR_Recognizer::Inference on NPU
Calling EasyOCR_Recognizer::Inference on NPU
Calling EasyOCR_Recognizer::Inference on NPU
Calling EasyOCR_Recognizer::Inference on NPU
Calling EasyOCR_Recognizer::Inference on NPU
Calling EasyOCR_Recognizer::Inference on NPU
Calling EasyOCR_Recognizer::Inference on NPU
Calling EasyOCR_Recognizer::Inference on NPU
白日依山尽
黄河入海流
欲穷千里目
更上一层楼
The sun beyond the mountain glows,
The Yellow River seawards flows_
You can enjoy a grander sight,
By climbing to a greater height。
Displaying image
Logs will be sent to the system's default channel
已解决,需要一直在 powershell 中运行
参考:https://chatgpt.com/c/6964c325-1a84-8329-b6ce-28ec19a7881d