• OAK-FFC系列产品上手指南


    编辑:OAK中国
    首发:oakchina.cn
    喜欢的话,请多多👍⭐️✍

    ▌前言

    Hello,大家好,这里是OAK中国,我是助手君。

    本教程将以OAK-FFC-4P为例,讲解如何从硬件到软件去使用分体式的OAK相机

    ▌硬件连接

    连接相机

    OAK-FFC-4P共有四个相机接口,不同接口对应的名称如图。

    在这里插入图片描述

    注意相机接口的触点方向,图中OV9282镜头模组接口触点在下方。
    在这里插入图片描述
    在这里插入图片描述

    连接时注意要将黄色的软排线的触点接触连接器的触点。
    教程

    OAK-FFC相机接线教程


    在这里插入图片描述

    连接设备

    按照下图接入5V电源线和Type C线。
    在这里插入图片描述

    ▌运行示例

    克隆代码

    git clone https://gitee.com/oakchina/depthai-python.git
    
    • 1

    选择分支

    cd depthai-python
    git checkout multi_cam_support
    
    • 1
    • 2

    下载依赖

    python3 examples\install_requirements.py
    
    • 1

    查看示例帮助

    python3 tests/cam_test.py -h
    
    • 1
    usage: cam_test.py [-h] [-cams CAMERAS [CAMERAS ...]] [-mres {480,800,400,720}] [-cres {800,5mp,12mp,48mp,4k,1080,1200,720}] [-rot [{mono,rgb,all}]] [-fps FPS] [-ds ISP_DOWNSCALE]
                       [-rs]
    
    optional arguments:
      -h, --help            show this help message and exit
      -cams CAMERAS [CAMERAS ...], --cameras CAMERAS [CAMERAS ...]
                            Which camera sockets to enable, and type: c[olor] / m[ono]. E.g: -cams rgb,m right,c . Default: rgb,c left,m right,m camd,c
      -mres {480,800,400,720}, --mono-resolution {480,800,400,720}
                            Select mono camera resolution (height). Default: 800
      -cres {800,5mp,12mp,48mp,4k,1080,1200,720}, --color-resolution {800,5mp,12mp,48mp,4k,1080,1200,720}
                            Select color camera resolution / height. Default: 1080
      -rot [{mono,rgb,all}], --rotate [{mono,rgb,all}]
                            Which cameras to rotate 180 degrees. All if not filtered
      -fps FPS, --fps FPS   FPS to set for all cameras
      -ds ISP_DOWNSCALE, --isp-downscale ISP_DOWNSCALE
                            Downscale the ISP output by this factor
      -rs, --resizable-windows
                            Make OpenCV windows resizable. Note: may introduce some artifacts
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18

    运行代码(四目OV9282 mono)

    python3 tests/cam_test.py -mres 400 -cams rgb,m left,m right,m camd,m
    
    • 1

    在这里插入图片描述

    四目IMX477 color

    python3 tests/cam_test.py -rs -cams rgb,c left,c right,c camd,c
    
    • 1

    在这里插入图片描述

    双目IMX477 color 双目OV9282 mono

    python3 tests/cam_test.py -rs -cams rgb,c left,m right,m camd,c
    
    • 1

    在这里插入图片描述

    ▌参考资料

    https://docs.oakchina.cn/en/latest/
    https://www.oakchina.cn/selection-guide/


    OAK中国
    | OpenCV AI Kit在中国区的官方代理商和技术服务商
    | 追踪AI技术和产品新动态

    戳「+关注」获取最新资讯↗↗

  • 相关阅读:
    嵌软工程师要掌握的硬件知识2:一文看懂什么是开漏和推挽电路(open-drain / push-pull)
    compose——侧边栏
    depthimage-to-laserscan
    渗透测试-一文读懂XSS、CSRF、SSRF、XXE漏洞原理、应用、防御
    关于蓝绿发布(Blue-Green Deployment)
    内存管理机制
    python面试题——版本管理工具GIT(一)
    Android入门第38天-使用随鼠标移动的圆点来熟悉onTouchEvent
    ElasticSearch讲解(开源的、高拓展的分布式全文检索引擎)
    [C#] FFmpeg 音视频开发总结
  • 原文地址:https://blog.csdn.net/oakchina/article/details/126221095