Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opencv4.7.0推理ppocr报错 #2407

Open
Zomcxj opened this issue Mar 15, 2024 · 1 comment
Open

opencv4.7.0推理ppocr报错 #2407

Zomcxj opened this issue Mar 15, 2024 · 1 comment
Assignees
Labels
Question Further information is requested

Comments

@Zomcxj
Copy link

Zomcxj commented Mar 15, 2024


温馨提示:根据社区不完全统计,按照模板提问,可以加快回复和解决问题的速度


环境

  • 【FastDeploy版本】: 说明具体的版本,如fastdeploy-linux-cpu-0.0.0 自编译opencv4.7.0
  • 【编译命令】cmake .. -DCMAKE_INSTALL_PREFIX=${PWD}/ppocr_fastdeploy_sdk -DOPENCV_DIRECTORY=/home/cxj/opencv/opencv4.7.0 -DENABLE_VISION=ON -DENABLE_TEXT=ON -DENABLE_PADDLE_BACKEND=ON
  • 【系统平台】: Linux x64(Ubuntu 18.04)
  • 【硬件】: intel core i7-10700 CPU @ 2.90GHz × 4
  • 【编译语言】: C++

能够成功编译出sdk ppocr cpp也能成功编译 opencv4.5.2编译的sdk可以检测识别处结果
opencv4.7.0报错[1] 86146 segmentation faullt (core dumped) ./infer_demo ../B.jpg 0

定位到
if(!ppocr_v3.Predict(&im, &result)) {}
--》》ppocr_v2.h virtual bool Predict(cv::Mat* img, fastdeploy::vision::OCRResult* result);
--》》ppocr_v2.cc if(!detect_->BatchPredict(images, &batch_boxes)) 之前

@Jiang-Jia-Jun
Copy link
Collaborator

此前代码接口未测试到4.7的高版本,建议先使用兼容版本

@Jiang-Jia-Jun Jiang-Jia-Jun added the Question Further information is requested label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants