Toybrick

标题: 关于RockX升级安装问题,开发板为TB-RK3399proDs [打印本页]

作者: 淮九    时间: 2024-1-30 15:57
标题: 关于RockX升级安装问题,开发板为TB-RK3399proDs
系统为官方出厂自带debian,板载rknntoolkit为1.6.0,驱动为1.7.0
目前想升级python版Rockx测试,按照官方步骤使用sudo apt-get install -y rockx-rk3399pro成功安装1.6.0版本
pip3 install --user rockx -i http://repo.rock-chips.com/pypi/simple  --trusted-host=repo.rock-chips.com
这步只有1.2.0版本,跳过使用离线包安装
尝试1.4.4版本安装报错如下,提示
Traceback (most recent call last):
  File "rockx_carplate.py", line 33, in <module>
    carplate_det_handle = RockX(RockX.ROCKX_MODULE_CARPLATE_DETECTION, target_device=args.device)
  File "/usr/local/lib/python3.7/dist-packages/rockx/RockX.py", line 235, in __init__
    self.rockx_base = RockXBase()
  File "/usr/local/lib/python3.7/dist-packages/rockx/RockXBase.py", line 218, in __init__
    RockXBase._load_library()
  File "/usr/local/lib/python3.7/dist-packages/rockx/RockXBase.py", line 504, in _load_library
    POINTER(rockx_tensor_t),POINTER(rockx_image_t)]
  File "/usr/lib/python3.7/ctypes/__init__.py", line 369, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python3.7/ctypes/__init__.py", line 374, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/local/lib/python3.7/dist-packages/rockx/sdk/rockx-rk3399pro-Linux/lib64/librockx.so: undefined symbol: rockx_carplate_align_v2

尝试1.6.1版本报错如下,提示
Traceback (most recent call last):
  File "rockx_carplate.py", line 34, in <module>
    carplate_det_handle = RockX(RockX.ROCKX_MODULE_CARPLATE_DETECTION, target_device=args.device, rockx_data_dir=args.rockx_data_dir)
  File "/usr/local/lib/python3.7/dist-packages/rockx/RockX.py", line 215, in __init__
    self.rockx_base = RockXBase()
  File "/usr/local/lib/python3.7/dist-packages/rockx/RockXBase.py", line 244, in __init__
    RockXBase._load_library()
  File "/usr/local/lib/python3.7/dist-packages/rockx/RockXBase.py", line 554, in _load_library
    CDLL(rt_path)
  File "/usr/lib/python3.7/ctypes/__init__.py", line 356, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /usr/local/lib/python3.7/dist-packages/rockx/sdk/rockx-None-Linux/lib64/librknnrt.so: cannot open shared object file: No such file or directory

请问如何解决


作者: 淮九    时间: 2024-1-31 16:38
是否为官方给的demo没有适配开发板 ,有没有能跑通的demo
作者: 淮九    时间: 2024-1-31 16:58
目测python示例demo没有更新,手上四个版本RocxX
RockX_SDK_V1.2.0_20200302
RockX_SDK_V1.4.4_20210623
RockX_SDK_V1.5.0_20220713
RockX_SDK_V1.6.1_20221222
只有1.2.0能跑通demo
作者: 淮九    时间: 2024-3-22 09:27
有没有技术可以回复一下哈




欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3