PaddlePaddle / PaddlePaddle/FastDeploy

rk3588部署飞浆ocr使用命令行代码可以运行,但是使用python脚本调用出现问题

Open
#2,466 4 comments 0 reactions 1 assignee View on GitHub

@juncaipeng is already working on this.

Since Jun 4, 2024.

Dominant language
Python
Stars
3.7k
Forks
756
Avg merge
19h 28m
Merged PRs (30d)
4

Description

环境

  • 【FastDeploy版本】:fastdeploy-python-0.0.0
  • 【编译命令】官方教程编译
  • 【系统平台】: Linux version5.10,110-rockchip-rk3588(root@orangepi5)(aarch64-linux-gnu-gcc)
  • 【硬件】: rk 588
  • 【编译语言】: C++ / Python3.9

问题描述

大佬们好,我是小白,我用c++和python编译都成功了,用命令行的形式也能够成功运行,我想用pycharm运行infer.py脚本,我将模型图片等都直接在代码中修改了,然后报错RuntimeError: FastDeploy initalized failed! Error: libopencv_flann.so.3.4: cannot open shared object file: No such file or directory
这个问题我在用命令行调用的时候也出现过,我通过添加环境变量解决了这个问题,我也想用同样的方式解决脚本这个问题,通过百度到的方法,例如在代码中用os库添加环境变量,用vim改写~/.bashrc,都试过了,还是无法解决这个问题,请问大佬们还有什么解决方式吗

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.