查看: 4414|回复: 0

【Khadas VIM试用】双目视觉算法——战树莓派

[复制链接]
  • TA的每日心情
    奋斗
    2024-4-10 08:31
  • 签到天数: 300 天

    连续签到: 1 天

    [LV.8]以坛为家I

    发表于 2018-3-16 20:39:02 | 显示全部楼层 |阅读模式
    分享到:
    为了使这两块开发板之间的对比更加公平公正,我花了好一段时间为树莓派适配上了3.4.0。本来上面有一个3.3.0的opencv,不过后来文件系统挂了,虽然有镜像,但还是像试试新的版本,毕竟现在opencv都出道3.4.1了。
    本来觉得自己在安装opencv一路上可谓熟能生巧,没想到竟然在树莓派这里翻车了:
    16930578256fc856398b421bcf420222.jpg
    折腾了好几天不得不投降,把编译选项里面的DWITH_QT=OFF,估计也是qt的库有些什么问题,不过奇怪的是之前安装opencv3.3.0的时候DWITH_QT=ON是完全可以的,而后来我处于好奇又编译了一次3.3.0加上了QT,结果依然卡在这里……
    好了,题外话不多说,直接上图:

    这是一些打印信息:
    1. in world coordinate: [-2888.56, -6051.63, 160000]
    2. Painted ImageL
    3. Painted ImageR
    4. in world coordinate: [2567.61, 5379.23, 22132.8]
    5. Painted ImageL
    6. Painted ImageR
    7. in world coordinate: [-2888.56, -6051.63, 160000]
    8. Painted ImageL
    9. Painted ImageR
    10. in world coordinate: [-2888.56, -6051.63, 160000]
    11. Painted ImageL
    12. Painted ImageR
    13. in world coordinate: [inf, inf, inf]
    14. Painted ImageL
    15. Painted ImageR
    16. in world coordinate: [-2888.56, -6051.63, 160000]
    17. 34278839
    18. Painted ImageL
    19. Painted ImageR
    20. in world coordinate: [-2888.56, -6051.63, 160000]
    21. Painted ImageL
    22. Painted ImageR
    23. in world coordinate: [-2888.56, -6051.63, 160000]
    24. Painted ImageL
    25. Painted ImageR
    26. in world coordinate: [2432.47, 5096.11, 20967.9]
    27. Painted ImageL
    28. Painted ImageR
    29. in world coordinate: [249.821, 523.384, 2153.46]
    30. Painted ImageL
    31. Painted ImageR
    32. in world coordinate: [192.571, 403.442, 1659.96]
    33. Painted ImageL
    34. Painted ImageR
    35. in world coordinate: [-2888.56, -6051.63, 160000]
    36. Painted ImageL
    37. Painted ImageR
    38. in world coordinate: [-2888.56, -6051.63, 160000]
    39. Painted ImageL
    40. Painted ImageR
    41. in world coordinate: [253.939, 532.012, 2188.96]
    42. Painted ImageL
    43. Painted ImageR
    44. in world coordinate: [inf, inf, inf]
    45. Painted ImageL
    46. Painted ImageR
    47. in world coordinate: [inf, inf, inf]
    48. Painted ImageL
    49. Painted ImageR
    50. in world coordinate: [711.03, 1489.63, 6129.08]
    51. Painted ImageL
    52. Painted ImageR
    53. in world coordinate: [-2888.56, -6051.63, 160000]
    54. Painted ImageL
    55. Painted ImageR
    56. in world coordinate: [1711.74, 3586.15, 14755.2]
    57. Painted ImageL
    58. Painted ImageR
    59. in world coordinate: [-2888.56, -6051.63, 160000]
    60. Painted ImageL
    61. Painted ImageR
    62. in world coordinate: [872.018, 1826.91, 7516.79]
    63. Painted ImageL
    64. Painted ImageR
    65. in world coordinate: [inf, inf, inf]
    66. Painted ImageL
    67. Painted ImageR
    68. in world coordinate: [inf, inf, inf]
    69. Painted ImageL
    70. Painted ImageR
    71. in world coordinate: [440.162, 922.153, 3794.19]
    72. Painted ImageL
    73. Painted ImageR
    74. in world coordinate: [563.622, 1180.81, 4858.41]
    75. Painted ImageL
    76. Painted ImageR
    77. in world coordinate: [270.275, 566.235, 2329.77]
    78. Painted ImageL
    79. Painted ImageR
    80. in world coordinate: [-2888.56, -6051.63, 160000]
    81. Painted ImageL
    82. Painted ImageR
    83. in world coordinate: [inf, inf, inf]
    84. Painted ImageL
    85. Painted ImageR
    86. in world coordinate: [385.141, 806.884, 3319.92]
    87. Painted ImageL
    88. Painted ImageR
    89. in world coordinate: [-2888.56, -6051.63, 160000]
    90. Painted ImageL
    91. Painted ImageR
    92. in world coordinate: [-2888.56, -6051.63, 160000]
    93. Painted ImageL
    94. Painted ImageR
    95. in world coordinate: [-2888.56, -6051.63, 160000]
    96. Painted ImageL
    97. Painted ImageR
    98. in world coordinate: [-2888.56, -6051.63, 160000]
    99. Painted ImageL
    100. Painted ImageR
    101. in world coordinate: [216.981, 454.583, 1870.38]
    102. Painted ImageL
    103. Painted ImageR
    104. in world coordinate: [-2888.56, -6051.63, 160000]
    105. Painted ImageL
    106. Painted ImageR
    107. in world coordinate: [-2888.56, -6051.63, 160000]
    108. Painted ImageL
    109. Painted ImageR
    110. in world coordinate: [-2888.56, -6051.63, 160000]
    111. 33084807
    复制代码
    可以看到输出的日志,平均的30帧的运行时间需要32s左右,对比一下khadas的成绩:
    https://www.cirmall.com/bbs/thread-99298-1-1.html
    平均7s,简直把树莓派3B虐出渣来,不过树莓派虽然编译opencv的时候也加上了opengl,但这个程序运行的时候却并没有像khadas那样提示使用了opengl,这一点值得接下来探讨,毕竟程序基本完全一样,唯一不同的只是路径而已。
    想想新出的3B+,大有树莓派不争气的感觉啊,平均一秒一帧都做不到,虽然项目的实时性要求不高,但这个效果实在不如人意。
    不过有一点比khadas出色一些的是树莓派能够读取我的720P摄像头视频流。
    20180316203355.png
    但时间也因此从平均3.2升到3.3s才处理30帧。
    这一点在khadas上显示带宽不足,这一点令我感觉很迷惑,按理来说一般的usb2.0都应该可以支持两路720P的摄像头,树莓派的usb口也同样是hub扩展出来的。我猜测可能是khadas的hub能力稍微逊色了一些。
    回复

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /2 下一条



    手机版|小黑屋|与非网

    GMT+8, 2024-4-26 09:21 , Processed in 0.113808 second(s), 16 queries , MemCache On.

    ICP经营许可证 苏B2-20140176  苏ICP备14012660号-2   苏州灵动帧格网络科技有限公司 版权所有.

    苏公网安备 32059002001037号

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.