Toybrick

楼主: troy

RK1808 AI计算棒全平台RockX演示Demo(已适配rockx python sdk)

djsk

新手上路

积分
37
发表于 2020-7-10 16:48:17 | 显示全部楼层
你好,我在计算棒中执行pip3 install --user rockx   提示不能找到


这个库上哪里去下载呀
系统我已经更新过了执行过 dnf update

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

pzx19940110

注册会员

积分
57
发表于 2020-7-13 11:12:40 | 显示全部楼层
troy 发表于 2020-7-10 08:55
你之前的场景是宿主机在公司,计算棒插在公司的宿主机上,然后远程SSH到宿主机?
你的上位机程序是跑在家 ...

是的,之前的宿主机和计算棒都是在公司,然后我远程登录到宿主机操作,上位机程序也都是在宿主机上跑的
回复

使用道具 举报

jiewen9

注册会员

积分
75
发表于 2020-8-19 09:18:15 | 显示全部楼层
您好请问下 最新的rockx python 支持 rk3288上面运行吗? 我的rk3288跑的是ubuntu16.04 armhf 32位的系统,我自己移植的;
回复

使用道具 举报

troy

版主

积分
1968
 楼主| 发表于 2020-8-19 09:32:58 | 显示全部楼层
jiewen9 发表于 2020-8-19 09:18
您好请问下 最新的rockx python 支持 rk3288上面运行吗? 我的rk3288跑的是ubuntu16.04 armhf 32位的系统, ...

可以实际测试一下,加计算棒的话应该是可以的。
回复

使用道具 举报

1076980246

注册会员

积分
166
发表于 2021-1-5 10:55:48 | 显示全部楼层
我用了那个组件 但是在人脸检测这块我看没有对多张图像同时推理,我目前使用4路摄像头,需要同时处理4路数据,如果每一路都申请一个RockX推理计算时间就会变长,你们做了批图像推理接口么。
回复

使用道具 举报

troy

版主

积分
1968
 楼主| 发表于 2021-1-6 09:36:23 | 显示全部楼层
1076980246 发表于 2021-1-5 10:55
我用了那个组件 但是在人脸检测这块我看没有对多张图像同时推理,我目前使用4路摄像头,需要同时处理4路数 ...

每路申请一个RockX的推理时间和你所谓的批处理其实是一样的。单个推理多长,4个的推理时间一样的是4倍的关系。
回复

使用道具 举报

Ptolemaeus

中级会员

积分
205
发表于 2021-3-11 07:58:57 | 显示全部楼层
这个代码不需要修改就在1126上也能用吧?
回复

使用道具 举报

AI爱好者

新手上路

积分
36
发表于 2021-6-2 16:13:34 | 显示全部楼层
用某两种rk3399开发板子分别在android 8.1,9.0,10.0验证都失败,一打开应用就死在应用上了。详细见下面LOG,麻烦帮忙分析下是什么原因?谢谢!帖子字数限制,贴部分LOG,完整见百度云盘:

org.opencv.android.Utils: nMatToBitmap caught cv::Exception: OpenCV(3.4.1) /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp:101: error: (-215) src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols in function void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean)
03-05 12:40:27.592  7603  7663 E CameraBridge: Mat type: Mat [ 800*1280*CV_8UC4, isCont=true, isSubmat=false, nativeObj=0x7658674ae0, dataAddr=0x75de300680 ]
03-05 12:40:27.593  7603  7663 E CameraBridge: Bitmap type: 1920*1080
03-05 12:40:27.593  7603  7663 E CameraBridge: Utils.matToBitmap() throws an exception: OpenCV(3.4.1) /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp:101: error: (-215) src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols in function void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean)
03-05 12:40:27.615  7603  7663 E cv::error(): OpenCV(3.4.1) Error: Assertion failed (src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols) in void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean), file /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp, line 101
03-05 12:40:27.617  7603  7663 E org.opencv.android.Utils: nMatToBitmap caught cv::Exception: OpenCV(3.4.1) /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp:101: error: (-215) src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols in function void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean)
03-05 12:40:27.618  7603  7663 E CameraBridge: Mat type: Mat [ 800*1280*CV_8UC4, isCont=true, isSubmat=false, nativeObj=0x7658674ae0, dataAddr=0x75de300680 ]
03-05 12:40:27.618  7603  7663 E CameraBridge: Bitmap type: 1920*1080
03-05 12:40:27.618  7603  7663 E CameraBridge: Utils.matToBitmap() throws an exception: OpenCV(3.4.1) /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp:101: error: (-215) src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols in function void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean)
03-05 12:40:27.648  7603  7663 E cv::error(): OpenCV(3.4.1) Error: Assertion failed (src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols) in void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean), file /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp, line 101
03-05 12:40:27.650  7603  7663 E org.opencv.android.Utils: nMatToBitmap caught cv::Exception: OpenCV(3.4.1) /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp:101: error: (-215) src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols in function void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean)
03-05 12:40:27.650  7603  7663 E CameraBridge: Mat type: Mat [ 800*1280*CV_8UC4, isCont=true, isSubmat=false, nativeObj=0x7658674ae0, dataAddr=0x75de300680 ]
03-05 12:40:27.650  7603  7663 E CameraBridge: Bitmap type: 1920*1080
03-05 12:40:27.650  7603  7663 E CameraBridge: Utils.matToBitmap() throws an exception: OpenCV(3.4.1) /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp:101: error: (-215) src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols in function void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean)
03-05 12:40:27.669  7603  7628 I TCPClientConnect: >TCP杩炴帴鏈嶅姟鍣╥p = 192.168.180.8<
03-05 12:40:27.673  7603  7628 E TCPClientConnect: >TCP杩炴帴鏈嶅姟鍣╥p = 192.168.180.8:8002澶辫触, 3绉掑悗閲嶆柊杩炴帴<isConnect = true
03-05 12:40:27.673  7603  7628 W TCPClientConnect: >TCP192.168.180.8閲嶇疆杩炴帴<
03-05 12:40:27.674  7603  7628 D MainActivity: tcp_disconnect: 192.168.180.8
03-05 12:40:27.674  7603  7628 W System.err: java.net.SocketException: Socket is not connected
03-05 12:40:27.675  7603  7628 W System.err:    at java.net.Socket.shutdownInput(Socket.java:1567)
03-05 12:40:27.675  7603  7628 W System.err:    at com.rockchip.inno.androidmasterrockx.Util.net.TCPClient.TCPClientFactory.disconnect(TCPClientFactory.java:107)
03-05 12:40:27.675  7603  7628 W System.err:    at com.rockchip.inno.androidmasterrockx.Util.net.TCPClient.TCPClientConnect.resetConnect(TCPClientConnect.java:107)
03-05 12:40:27.675  7603  7628 W System.err:    at com.rockchip.inno.androidmasterrockx.Util.net.TCPClient.TCPClientConnect.run(TCPClientConnect.java:54)
03-05 12:40:27.675  7603  7628 W System.err:    at java.lang.Thread.run(Thread.java:919)
03-05 12:40:27.684  7603  7663 E cv::error(): OpenCV(3.4.1) Error: Assertion failed (src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols) in void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean), file /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp, line 101
03-05 12:40:27.686  7603  7663 E org.opencv.android.Utils: nMatToBitmap caught cv::Exception: OpenCV(3.4.1) /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp:101: error: (-215) src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols in function void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean)
03-05 12:40:27.687  7603  7663 E CameraBridge: Mat type: Mat [ 800*1280*CV_8UC4, isCont=true, isSubmat=false, nativeObj=0x7658674ae0, dataAddr=0x75de300680 ]
03-05 12:40:27.687  7603  7663 E CameraBridge: Bitmap type: 1920*1080
03-05 12:40:27.688  7603  7663 E CameraBridge: Utils.matToBitmap() throws an exception: OpenCV(3.4.1) /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp:101: error: (-215) src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols in function void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean)
03-05 12:40:27.713  7603  7663 E cv::error(): OpenCV(3.4.1) Error: Assertion failed (src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols) in void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean), file /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp, line 101
03-05 12:40:27.714  7603  7663 E org.opencv.android.Utils: nMatToBitmap caught cv::Exception: OpenCV(3.4.1) /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp:101: error: (-215) src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols in function void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean)
03-05 12:40:27.714  7603  7663 E CameraBridge: Mat type: Mat [ 800*1280*CV_8UC4, isCont=true, isSubmat=false, nativeObj=0x7658674ae0, dataAddr=0x75de300680 ]
03-05 12:40:27.715  7603  7663 E CameraBridge: Bitmap type: 1920*1080
03-05 12:40:27.715  7603  7663 E CameraBridge: Utils.matToBitmap() throws an exception: OpenCV(3.4.1) /build/master_pack-android/opencv/modules/java/generator/src/cpp/utils.cpp:101: error: (-215) src.dims == 2 && info.height == (uint32_t)src.rows && info.width == (uint32_t)src.cols in function void Java_org_opencv_android_Utils_nMatToBitmap2(JNIEnv*, jclass, jlong, jobject, jboolean)
^C
130|nanopc-t4:/ # ^C
130|nanopc-t4:/ # ^C
130|nanopc-t4:/ #
130|nanopc-t4:/ #
130|nanopc-t4:/ # ifconfig
eth1      Link encap:Ethernet  HWaddr 10:dc:b6:9f:2d:d9  Driver rndis_host
          inet addr:192.168.180.1  Bcast:192.168.180.255  Mask:255.255.255.0
          inet6 addr: fe80::df53:8610:86e3:9063/64 Scope: Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:126 errors:0 dropped:0 overruns:0 frame:0
          TX packets:117 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:5710 TX bytes:16876

lo        Link encapocal Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope: Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 TX bytes:0

eth0      Link encap:Ethernet  HWaddr fe:1c:ed:01:e9:b7  Driver rk_gmac-dwmac
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 TX bytes:0
          Interrupt:27

nanopc-t4:/ #


回复

使用道具 举报

AI爱好者

新手上路

积分
36
发表于 2021-6-2 16:15:43 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表